@techdocs/cli 1.5.2-next.0 → 1.5.2-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/embedded-app/.config-schema.json +47 -0
  3. package/dist/embedded-app/index.html +1 -1
  4. package/dist/embedded-app/static/2924.b96e10c0.chunk.js +3 -0
  5. package/dist/embedded-app/static/2924.b96e10c0.chunk.js.map +1 -0
  6. package/dist/embedded-app/static/{6051.3886d1ae.chunk.js → 6051.84051083.chunk.js} +1 -1
  7. package/dist/embedded-app/static/6051.84051083.chunk.js.map +1 -0
  8. package/dist/embedded-app/static/main.42be8165.js +487 -0
  9. package/dist/embedded-app/static/main.42be8165.js.map +1 -0
  10. package/dist/embedded-app/static/{module-material-ui.1b712255.js → module-material-ui.bdbd8daa.js} +7 -7
  11. package/dist/embedded-app/static/module-material-ui.bdbd8daa.js.map +1 -0
  12. package/dist/embedded-app/static/{runtime.a63d9535.js → runtime.42be8165.js} +2 -2
  13. package/dist/embedded-app/static/{runtime.a63d9535.js.map → runtime.42be8165.js.map} +1 -1
  14. package/dist/embedded-app/static/{vendor.a63d9535.js → vendor.42be8165.js} +1 -1
  15. package/dist/embedded-app/static/{vendor.a63d9535.js.map → vendor.42be8165.js.map} +1 -1
  16. package/dist/index.cjs.js +1 -1
  17. package/package.json +4 -4
  18. package/dist/embedded-app/static/2924.e8c74660.chunk.js +0 -3
  19. package/dist/embedded-app/static/2924.e8c74660.chunk.js.map +0 -1
  20. package/dist/embedded-app/static/6051.3886d1ae.chunk.js.map +0 -1
  21. package/dist/embedded-app/static/main.a63d9535.js +0 -487
  22. package/dist/embedded-app/static/main.a63d9535.js.map +0 -1
  23. package/dist/embedded-app/static/module-material-ui.1b712255.js.map +0 -1
@@ -0,0 +1,487 @@
1
+ (()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[179],{88797:function(Y,T,t){"use strict";t.d(T,{n:function(){return o}});const o=Symbol.for("CATALOG_FILTER_EXISTS_0e15b590c0b343a2bae3e787e84c2111")},34106:function(Y,T,t){"use strict";t.d(T,{Tf:function(){return d},l2:function(){return i},zG:function(){return o}});const o="default",i="backstage.io/view-url",d="backstage.io/edit-url",S="kubernetes.io/api-server",p="kubernetes.io/api-server-certificate-authority",f="kubernetes.io/auth-provider"},74314:function(Y,T,t){"use strict";t.d(T,{eE:function(){return p},iB:function(){return d},of:function(){return S}});var o=t(34106);function i(f){let l=f.indexOf(":");const g=f.indexOf("/");g!==-1&&g<l&&(l=-1);const O=l===-1?void 0:f.slice(0,l),A=g===-1?void 0:f.slice(l+1,g),P=f.slice(Math.max(l+1,g+1));if(O===""||A===""||P==="")throw new TypeError(`Entity reference "${f}" was not on the form [<kind>:][<namespace>/]<name>`);return{kind:O,namespace:A,name:P}}function d(f){return{kind:f.kind,namespace:f.metadata.namespace||o.zG,name:f.metadata.name}}function S(f,l){if(!f)throw new Error("Entity reference must not be empty");const g=l==null?void 0:l.defaultKind,O=(l==null?void 0:l.defaultNamespace)||o.zG;let A,P,C;if(typeof f=="string"){const M=i(f);var x;A=(x=M.kind)!==null&&x!==void 0?x:g;var E;P=(E=M.namespace)!==null&&E!==void 0?E:O,C=M.name}else{var I;A=(I=f.kind)!==null&&I!==void 0?I:g;var R;P=(R=f.namespace)!==null&&R!==void 0?R:O,C=f.name}if(A)if(P){if(!C){const M=JSON.stringify(f);throw new Error(`Entity reference ${M} had missing or empty name`)}}else{const M=JSON.stringify(f);throw new Error(`Entity reference ${M} had missing or empty namespace`)}else{const M=JSON.stringify(f);throw new Error(`Entity reference ${M} had missing or empty kind (e.g. did not start with "component:" or similar)`)}return{kind:A,namespace:P,name:C}}function p(f){let l,g,O;if("metadata"in f){l=f.kind;var A;g=(A=f.metadata.namespace)!==null&&A!==void 0?A:o.zG,O=f.metadata.name}else{l=f.kind;var P;g=(P=f.namespace)!==null&&P!==void 0?P:o.zG,O=f.name}return`${l.toLocaleLowerCase("en-US")}:${g.toLocaleLowerCase("en-US")}/${O.toLocaleLowerCase("en-US")}`}},8709:function(Y,T,t){"use strict";t.d(T,{S4:function(){return o},aS:function(){return E},cz:function(){return x},nP:function(){return l},w$:function(){return g}});const o="ownedBy",i="ownerOf",d="consumesApi",S="apiConsumedBy",p="providesApi",f="apiProvidedBy",l="dependsOn",g="dependencyOf",O="parentOf",A="childOf",P="memberOf",C="hasMember",x="partOf",E="hasPart"},90663:function(Y,T,t){"use strict";t.d(T,{M6:function(){return d},P1:function(){return o}});const o="backstage.io/managed-by-location",i="backstage.io/managed-by-origin-location",d="backstage.io/source-location"},51547:function(Y,T,t){"use strict";t.d(T,{CV:function(){return f},NZ:function(){return p},Ou:function(){return S}});var o=t(74314),i=t(90663);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 S(l){if(typeof l!="string")throw new TypeError(`Unable to parse location ref '${l}', unexpected argument ${typeof l}`);const g=l.indexOf(":");if(g<0)throw new TypeError(`Unable to parse location ref '${l}', expected '<type>:<target>', e.g. 'url:https://host/path'`);const O=l.substring(0,g).trim(),A=l.substring(g+1).trim();if(!O||!A)throw new TypeError(`Unable to parse location ref '${l}', expected '<type>:<target>', e.g. 'url:https://host/path'`);if(O==="http"||O==="https")throw new TypeError(`Invalid location ref '${l}', please prefix it with 'url:', e.g. 'url:${l}'`);if(d.test(A))throw new TypeError(`Invalid location ref '${l}', target is a javascript: URL`);return{type:O,target:A}}function p(l){const{type:g,target:O}=l;if(g){if(!O)throw new TypeError("Unable to stringify location ref, empty target")}else throw new TypeError("Unable to stringify location ref, empty type");if(d.test(O))throw new TypeError(`Invalid location ref '${g}:${O}', target is a javascript: URL`);return`${g}:${O}`}function f(l){var g,O,A,P,C;const x=(C=(O=l.metadata)===null||O===void 0||(g=O.annotations)===null||g===void 0?void 0:g[i.M6])!==null&&C!==void 0?C:(P=l.metadata)===null||P===void 0||(A=P.annotations)===null||A===void 0?void 0:A[i.P1];if(!x)throw new Error(`Entity '${(0,o.eE)(l)}' is missing location`);return S(x)}},9791:function(Y,T,t){"use strict";t.d(T,{O:function(){return O}});var o=t(52322),i=t(62774),d=t(60364),S=t(2784),p=t(83229),f=t(26639),l=t(39595),g=t(58033);function O(A){const{text:P,language:C,showLineNumbers:x=!1,highlightedNumbers:E,customStyle:I,showCopyCodeButton:R=!1}=A,M=(0,d.Z)(),F=M.palette.type==="dark"?f.Z:l.Z,N=M.palette.type==="dark"?"#256bf3":"#e6ffed";return(0,o.jsxs)(i.Z,{position:"relative",children:[(0,o.jsx)(p.Z,{customStyle:I,language:C,style:F,showLineNumbers:x,wrapLines:!0,lineNumberStyle:{color:M.palette.textVerySubtle},lineProps:v=>E!=null&&E.includes(v)?{style:{backgroundColor:N}}:{},children:P}),R&&(0,o.jsx)(i.Z,{position:"absolute",top:0,right:0,children:(0,o.jsx)(g.b,{text:P})})]})}},58033:function(Y,T,t){"use strict";t.d(T,{b:function(){return O}});var o=t(52322),i=t(44394),d=t(58513),S=t(61837),p=t(80030),f=t(19353),l=t(2784),g=t(95074);function O(A){const{text:P,tooltipDelay:C=1e3,tooltipText:x="Text copied to clipboard","aria-label":E="Copy text"}=A,I=(0,i.h_)(d.V),[R,M]=(0,l.useState)(!1),[{error:F},N]=(0,g.Z)();(0,l.useEffect)(()=>{F&&I.post(F)},[F,I]);const v=k=>{k.stopPropagation(),M(!0),N(P)};return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(p.ZP,{id:"copy-test-tooltip",title:x,placement:"top",leaveDelay:C,onClose:()=>M(!1),open:R,children:(0,o.jsx)(S.Z,{onClick:v,"aria-label":E,children:(0,o.jsx)(f.Z,{})})})})}},70249:function(Y,T,t){"use strict";t.d(T,{u:function(){return x}});var o=t(52322),i=t(60905),d=t(79692),S=t(90436),p=t(2784),f=t.p+"static/missingAnnotation.67f79e98..svg",l=t.p+"static/noInformation.4b426325..svg",g=t.p+"static/createComponent.975d1e1e..svg",O=t.p+"static/noBuild.1715fa71..svg";const A=(0,d.Z)({generalImg:{width:"95%",zIndex:2,position:"relative",left:"50%",top:"50%",transform:"translate(-50%, 15%)"}},{name:"BackstageEmptyStateImage"}),P=({missing:E})=>{const I=A();switch(E){case"field":return(0,o.jsx)("img",{src:f,className:I.generalImg,alt:"annotation is missing"});case"info":return(0,o.jsx)("img",{src:l,alt:"no Information",className:I.generalImg});case"content":return(0,o.jsx)("img",{src:g,alt:"create Component",className:I.generalImg});case"data":return(0,o.jsx)("img",{src:O,alt:"no Build",className:I.generalImg});default:return null}},C=(0,d.Z)(E=>({root:{backgroundColor:E.palette.background.default,padding:E.spacing(2,0,0,0)},action:{marginTop:E.spacing(2)},imageContainer:{position:"relative"}}),{name:"BackstageEmptyState"});function x(E){const{title:I,description:R,missing:M,action:F}=E,N=C();return(0,o.jsxs)(i.Z,{container:!0,direction:"row",justifyContent:"space-around",alignItems:"flex-start",className:N.root,spacing:2,children:[(0,o.jsx)(i.Z,{item:!0,xs:12,md:6,children:(0,o.jsxs)(i.Z,{container:!0,direction:"column",children:[(0,o.jsx)(i.Z,{item:!0,xs:!0,children:(0,o.jsx)(S.Z,{variant:"h5",children:I})}),(0,o.jsx)(i.Z,{item:!0,xs:!0,children:(0,o.jsx)(S.Z,{variant:"body1",children:R})}),(0,o.jsx)(i.Z,{item:!0,xs:!0,className:N.action,children:F})]})}),(0,o.jsx)(i.Z,{item:!0,xs:12,md:6,className:N.imageContainer,children:typeof M=="string"?(0,o.jsx)(P,{missing:M}):M.customImage})]})}},74359:function(Y,T,t){"use strict";t.d(T,{y:function(){return P}});var o=t(52322),i=t(79692),d=t(11776),S=t(38402),p=t(49378),f=t(2784),l=t(58033),g=t(538);const O=(0,i.Z)(C=>({text:{fontFamily:"monospace",whiteSpace:"pre",overflowX:"auto",marginRight:C.spacing(2)},divider:{margin:C.spacing(2)}}),{name:"BackstageErrorPanel"}),A=({error:C,message:x,stack:E,children:I})=>{const R=O();return(0,o.jsxs)(d.Z,{dense:!0,children:[(0,o.jsxs)(S.Z,{alignItems:"flex-start",children:[(0,o.jsx)(p.Z,{classes:{secondary:R.text},primary:"Error",secondary:C}),(0,o.jsx)(l.b,{text:C})]}),(0,o.jsxs)(S.Z,{alignItems:"flex-start",children:[(0,o.jsx)(p.Z,{classes:{secondary:R.text},primary:"Message",secondary:x}),(0,o.jsx)(l.b,{text:x})]}),E&&(0,o.jsxs)(S.Z,{alignItems:"flex-start",children:[(0,o.jsx)(p.Z,{classes:{secondary:R.text},primary:"Stack Trace",secondary:E}),(0,o.jsx)(l.b,{text:E})]}),I]})};function P(C){const{title:x,error:E,defaultExpanded:I,children:R}=C;return(0,o.jsx)(g.G,{severity:"error",title:x!=null?x:E.message,defaultExpanded:I,children:(0,o.jsx)(A,{error:E.name,message:E.message,stack:E.stack,children:R})})}},98864:function(Y,T,t){"use strict";t.d(T,{rU:function(){return H}});var o=t(52322),i=t(44394),d=t(6542),S=t(62369),p=t(86689),f=t(79692),l=t(90436),g=t(72779),O=t.n(g),A=t(76635),P=t.n(A),C=t(2784),x=t(73557),E=t(71597);function I(){const[z]=(0,x.is)((0,o.jsx)(x.AW,{index:!0,element:(0,o.jsx)("div",{})}));return!z.index}const R=(0,f.Z)({visuallyHidden:{clip:"rect(0 0 0 0)",clipPath:"inset(50%)",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",height:1,width:1},externalLink:{position:"relative"}},{name:"Link"}),M=z=>/^([a-z+.-]+):/.test(z),F=/^[\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,N=window.open;if(N&&!N.__backstage){const z=function(...q){const rt=String(q[0]);if(F.test(rt))throw new Error("Rejected window.open() with a javascript: URL as a security precaution");return N.apply(this,q)};z.__backstage=!0,window.open=z}const v=()=>{try{return(0,i.h_)(d.D).getOptionalString("app.baseUrl")}catch{return}},k=()=>{const z="http://sample.dev";var G;const q=(G=v())!==null&&G!==void 0?G:"/",{pathname:rt}=new URL(q,z);return(0,A.trimEnd)(rt,"/")},ot=z=>{let G=String(z);const q=k(),rt=M(G),xt=G.startsWith(q);return!rt&&!xt&&(G=q.concat(G)),G},X=z=>{if(z instanceof Array)return z.map(X).join(" ").trim();if(typeof z=="object"&&z){var G;return X(z==null||(G=z.props)===null||G===void 0?void 0:G.children)}return["string","number"].includes(typeof z)?String(z):""},H=C.forwardRef(({onClick:z,noTrack:G,...q},rt)=>{const xt=R(),Et=(0,S.z)(),ut=I()?ot(q.to):q.to,Ot=X(q.children)||ut,Ct=M(ut),bt=Ct&&!!/^https?:/.exec(ut);if(F.test(ut))throw new Error("Link component rejected javascript: URL as a security precaution");const st=$=>{z==null||z($),G||Et.captureEvent("click",Ot,{attributes:{to:ut}})};return Ct?(0,o.jsxs)(p.Z,{...bt?{target:"_blank",rel:"noopener"}:{},...q,...q["aria-label"]?{"aria-label":`${q["aria-label"]}, Opens in a new window`}:{},ref:rt,href:ut,onClick:st,className:O()(xt.externalLink,q.className),children:[q.children,(0,o.jsx)(l.Z,{component:"span",className:xt.visuallyHidden,children:", Opens in a new window"})]}):(0,o.jsx)(p.Z,{...q,ref:rt,component:E.rU,to:ut,onClick:st})})},15929:function(Y,T,t){"use strict";t.d(T,{Q:function(){return f}});var o=t(52322),i=t(77277),d=t(2784),S=t(98864);const p=d.forwardRef((g,O)=>(0,o.jsx)(S.rU,{ref:O,...g,color:"initial"})),f=d.forwardRef((g,O)=>(0,o.jsx)(i.Z,{ref:O,component:p,...g})),l=null},55015:function(Y,T,t){"use strict";t.d(T,{E:function(){return f}});var o=t(52322),i=t(62774),d=t(67358),S=t(60364),p=t(2784);function f(l){const g=(0,S.Z)(),[O,A]=(0,p.useState)(!1);return(0,p.useEffect)(()=>{const P=setTimeout(()=>A(!0),g.transitions.duration.short);return()=>clearTimeout(P)},[g.transitions.duration.short]),O?(0,o.jsx)(d.Z,{...l,"data-testid":"progress"}):(0,o.jsx)(i.Z,{display:"none"})}},35879:function(Y,T,t){"use strict";t.d(T,{H:function(){return H}});var o=t(52322),i=t(62774),d=t(21324),S=t(7089),p=t(30192),f=t(74603),l=t(56939),g=t(12231),O=t(73698),A=t(15459),P=t(42494),C=t(79692),x=t(90436),E=t(2784),I=t(72379);const R=(0,C.Z)(z=>(0,P.Z)({icon:{position:"absolute",right:z.spacing(.5),pointerEvents:"none"}}),{name:"BackstageClosedDropdown"});var F=()=>{const z=R();return(0,o.jsx)(I.Z,{className:z.icon,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{d:"M7.5 8L6 9.5L12.0703 15.5703L18.1406 9.5L16.6406 8L12.0703 12.5703L7.5 8Z",fill:"#616161"})})};const N=(0,C.Z)(z=>(0,P.Z)({icon:{position:"absolute",right:z.spacing(.5),pointerEvents:"none"}}),{name:"BackstageOpenedDropdown"});var k=()=>{const z=N();return(0,o.jsx)(I.Z,{className:z.icon,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{d:"M16.5 16L18 14.5L11.9297 8.42969L5.85938 14.5L7.35938 16L11.9297 11.4297L16.5 16Z",fill:"#616161"})})};const ot=(0,A.Z)(z=>(0,P.Z)({root:{"label + &":{marginTop:z.spacing(3)},"&.Mui-focused > div[role=button]":{borderColor:z.palette.primary.main}},input:{borderRadius:z.shape.borderRadius,position:"relative",backgroundColor:z.palette.background.paper,border:"1px solid #ced4da",fontSize:z.typography.body1.fontSize,padding:z.spacing(1.25,3.25,1.25,1.5),transition:z.transitions.create(["border-color","box-shadow"]),fontFamily:"Helvetica Neue","&:focus":{background:z.palette.background.paper,borderRadius:z.shape.borderRadius}}}),{name:"BackstageSelectInputBase"})(f.Z),X=(0,C.Z)(z=>(0,P.Z)({formControl:{margin:z.spacing(1,0),maxWidth:300},label:{transform:"initial",fontWeight:"bold",fontSize:z.typography.body2.fontSize,fontFamily:z.typography.fontFamily,color:z.palette.text.primary,"&.Mui-focused":{color:z.palette.text.primary}},formLabel:{transform:"initial",fontWeight:"bold",fontSize:z.typography.body2.fontSize,fontFamily:z.typography.fontFamily,color:z.palette.text.primary,"&.Mui-focused":{color:z.palette.text.primary}},chips:{display:"flex",flexWrap:"wrap"},chip:{margin:2},checkbox:{},root:{display:"flex",flexDirection:"column"}}),{name:"BackstageSelect"});function H(z){const{multiple:G,items:q,label:rt,placeholder:xt,selected:Et,onChange:ut,triggerReset:Ot,native:Ct=!1,disabled:bt=!1,margin:st}=z,$=X(),[_,tt]=(0,E.useState)(Et||(G?[]:"")),[it,dt]=(0,E.useState)(!1);(0,E.useEffect)(()=>{tt(G?[]:"")},[Ot,G]),(0,E.useEffect)(()=>{tt(Et||(G?[]:""))},[Et,G]);const W=ft=>{tt(ft.target.value),ut(ft.target.value)},K=ft=>{if(bt){ft.preventDefault();return}dt(gt=>G&&!(ft.target instanceof HTMLElement)?!0:!gt)},pt=()=>{dt(!1)},yt=ft=>()=>{const gt=_.filter(ct=>ct!==ft);tt(gt),ut(gt)};return(0,o.jsx)(i.Z,{className:$.root,children:(0,o.jsxs)(p.Z,{className:$.formControl,children:[(0,o.jsx)(l.Z,{className:$.formLabel,children:rt}),(0,o.jsxs)(O.Z,{"aria-label":rt,value:_,native:Ct,disabled:bt,"data-testid":"select",displayEmpty:!0,multiple:G,margin:st,onChange:W,open:it,onOpen:K,onClose:pt,input:(0,o.jsx)(ot,{}),label:rt,renderValue:ft=>{var gt;return G&&_.length!==0?(0,o.jsx)(i.Z,{className:$.chips,children:ft.map(ct=>{var Rt,Tt;return(0,o.jsx)(S.Z,{label:(Rt=q.find(It=>It.value===ct))===null||Rt===void 0?void 0:Rt.label,clickable:!0,onDelete:yt(ct),className:$.chip},(Tt=q.find(It=>It.value===ct))===null||Tt===void 0?void 0:Tt.value)})}):(0,o.jsx)(x.Z,{children:_.length===0?xt||"":(gt=q.find(ct=>ct.value===ft))===null||gt===void 0?void 0:gt.label})},IconComponent:()=>it?(0,o.jsx)(k,{}):(0,o.jsx)(F,{}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},getContentAnchorEl:null},children:[xt&&!G&&(0,o.jsx)(g.Z,{value:[],children:xt}),Ct?q&&q.map(ft=>(0,o.jsx)("option",{value:ft.value,children:ft.label},ft.value)):q&&q.map(ft=>(0,o.jsxs)(g.Z,{value:ft.value,children:[G&&(0,o.jsx)(d.Z,{color:"primary",checked:_.includes(ft.value)||!1,className:$.checkbox}),ft.label]},ft.value))]})]})})}},13788:function(Y,T,t){"use strict";t.d(T,{q:function(){return st}});var o=t(52322),i=t(80851),d=t(62774),S=t(77277),p=t(49429),f=t(61837),l=t(86136),g=t(49378),O=t(12231),A=t(50758),P=t(79784),C=t(79692),x=t(90436),E=t(41156),I=t(2784),R=t(77770),M=t(80079);function F($,_){const it=(0,i.q)().getSystemIcon($);return it?(0,o.jsx)(it,{..._}):(0,o.jsx)(M.Z,{..._})}function N($){return F("brokenImage",$)}function v($){return F("catalog",$)}function k($){return F("chat",$)}function ot($){return F("dashboard",$)}function X($){return F("docs",$)}function H($){return F("email",$)}function z($){return F("github",$)}function G($){return F("group",$)}function q($){return F("help",$)}function rt($){return F("user",$)}function xt($){return F("warning",$)}var Et=t(98864);const ut=(0,C.Z)({popoverList:{minWidth:260,maxWidth:400},menuItem:{whiteSpace:"normal"}},{name:"BackstageSupportButton"}),Ot=({icon:$})=>{const _=(0,i.q)();var tt;const it=$&&(tt=_.getSystemIcon($))!==null&&tt!==void 0?tt:q;return(0,o.jsx)(it,{})},Ct=({link:$})=>{var _;return(0,o.jsx)(Et.rU,{to:$.url,children:(_=$.title)!==null&&_!==void 0?_:$.url})},bt=({item:$})=>{var _;return(0,o.jsxs)(O.Z,{children:[(0,o.jsx)(l.Z,{children:(0,o.jsx)(Ot,{icon:$.icon})}),(0,o.jsx)(g.Z,{primary:$.title,secondary:(_=$.links)===null||_===void 0?void 0:_.reduce((tt,it,dt)=>[...tt,dt>0&&(0,o.jsx)("br",{},dt),(0,o.jsx)(Ct,{link:it},it.url)],[])})]})};function st($){const{title:_,items:tt,children:it}=$,{items:dt}=(0,R.v)(),[W,K]=(0,I.useState)(!1),[pt,yt]=(0,I.useState)(null),ft=ut(),gt=(0,E.Z)(Tt=>Tt.breakpoints.down("sm")),ct=Tt=>{yt(Tt.currentTarget),K(!0)},Rt=()=>{K(!1)};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(d.Z,{display:"flex",ml:1,children:gt?(0,o.jsx)(f.Z,{color:"primary",size:"small",onClick:ct,"data-testid":"support-button","aria-label":"Support",children:(0,o.jsx)(q,{})}):(0,o.jsx)(S.Z,{"data-testid":"support-button","aria-label":"Support",color:"primary",onClick:ct,startIcon:(0,o.jsx)(q,{}),children:"Support"})}),(0,o.jsxs)(P.ZP,{"data-testid":"support-button-popover",open:W,anchorEl:pt,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},onClose:Rt,children:[(0,o.jsxs)(A.Z,{className:ft.popoverList,autoFocusItem:Boolean(pt),children:[_&&(0,o.jsx)(O.Z,{alignItems:"flex-start",className:ft.menuItem,children:(0,o.jsx)(x.Z,{variant:"subtitle1",children:_})}),I.Children.map(it,(Tt,It)=>(0,o.jsx)(O.Z,{alignItems:"flex-start",className:ft.menuItem,children:Tt},`child-${It}`)),(tt!=null?tt:dt).map((Tt,It)=>(0,o.jsx)(bt,{item:Tt},`item-${It}`))]}),(0,o.jsx)(p.Z,{children:(0,o.jsx)(S.Z,{color:"primary",onClick:Rt,"aria-label":"Close",children:"Close"})})]})]})}},84462:function(Y,T,t){"use strict";t.d(T,{i:function(){return dt}});var o=t(52322),i=t(67222),d=t(62774),S=t(61837),p=t(15459),f=t(79692),l=t(60364),g=t(90436),O=t(21070),A=t(90324),P=t(98281),C=t(48049),x=t(51209),E=t(33375),I=t(44233),R=t(27604),M=t(36444),F=t(37971),N=t(59709),v=t(17373),k=t(3702),ot=t(93111),X=t(76635),H=t(2784),z=t(77277),G=t(35879);const q=(0,f.Z)(W=>({root:{height:"100%",width:"315px",display:"flex",flexDirection:"column",marginRight:W.spacing(3)},value:{fontWeight:"bold",fontSize:18},header:{display:"flex",alignItems:"center",height:W.spacing(7.5),justifyContent:"space-between",borderBottom:`1px solid ${W.palette.grey[500]}`},filters:{display:"flex",flexDirection:"column","& > *":{marginTop:W.spacing(2)}}}),{name:"BackstageTableFilters"}),rt=W=>{var K;const pt=q(),{onChangeFilters:yt}=W,[ft,gt]=(0,H.useState)({...W.selectedFilters}),[ct,Rt]=(0,H.useState)(!1),Tt=()=>{gt({}),Rt(It=>!It)};return(0,H.useEffect)(()=>{yt(ft)},[ft,yt]),(0,o.jsxs)(d.Z,{className:pt.root,children:[(0,o.jsxs)(d.Z,{className:pt.header,children:[(0,o.jsx)(d.Z,{className:pt.value,children:"Filters"}),(0,o.jsx)(z.Z,{color:"primary",onClick:Tt,children:"Clear all"})]}),(0,o.jsx)(d.Z,{className:pt.filters,children:((K=W.filters)===null||K===void 0?void 0:K.length)&&W.filters.map(It=>(0,o.jsx)(G.H,{triggerReset:ct,...It.element,selected:ft[It.element.label],onChange:Zt=>gt({...ft,[It.element.label]:Zt})},It.element.label))})]})};var xt=t(4614);const Et={Add:(0,H.forwardRef)((W,K)=>(0,o.jsx)(O.Z,{...W,ref:K})),Check:(0,H.forwardRef)((W,K)=>(0,o.jsx)(P.Z,{...W,ref:K})),Clear:(0,H.forwardRef)((W,K)=>(0,o.jsx)(E.Z,{...W,ref:K})),Delete:(0,H.forwardRef)((W,K)=>(0,o.jsx)(I.Z,{...W,ref:K})),DetailPanel:(0,H.forwardRef)((W,K)=>(0,o.jsx)(x.Z,{...W,ref:K})),Edit:(0,H.forwardRef)((W,K)=>(0,o.jsx)(R.Z,{...W,ref:K})),Export:(0,H.forwardRef)((W,K)=>(0,o.jsx)(k.Z,{...W,ref:K})),Filter:(0,H.forwardRef)((W,K)=>(0,o.jsx)(M.Z,{...W,ref:K})),FirstPage:(0,H.forwardRef)((W,K)=>(0,o.jsx)(F.Z,{...W,ref:K})),LastPage:(0,H.forwardRef)((W,K)=>(0,o.jsx)(N.Z,{...W,ref:K})),NextPage:(0,H.forwardRef)((W,K)=>(0,o.jsx)(x.Z,{...W,ref:K})),PreviousPage:(0,H.forwardRef)((W,K)=>(0,o.jsx)(C.Z,{...W,ref:K})),ResetSearch:(0,H.forwardRef)((W,K)=>(0,o.jsx)(E.Z,{...W,ref:K})),Search:(0,H.forwardRef)((W,K)=>(0,o.jsx)(M.Z,{...W,ref:K})),SortArrow:(0,H.forwardRef)((W,K)=>(0,o.jsx)(A.Z,{...W,ref:K})),ThirdStateCheck:(0,H.forwardRef)((W,K)=>(0,o.jsx)(v.Z,{...W,ref:K})),ViewColumn:(0,H.forwardRef)((W,K)=>(0,o.jsx)(ot.Z,{...W,ref:K}))};function ut(W,K){const pt=K.split(".");let yt=W[pt[0]];for(let ft=1;ft<pt.length;++ft){if(yt===void 0)return yt;const gt=pt[ft];yt=yt[gt]}return yt}const Ot=(0,p.Z)(W=>({header:{padding:W.spacing(1,2,1,2.5),borderTop:`1px solid ${W.palette.grey.A100}`,borderBottom:`1px solid ${W.palette.grey.A100}`,fontWeight:W.typography.fontWeightBold,position:"static",wordBreak:"normal"}}),{name:"BackstageTableHeader"})(i.W$),Ct=(0,p.Z)(W=>({root:{padding:W.spacing(3,0,2.5,2.5)},title:{"& > h6":{fontWeight:W.typography.fontWeightBold}},searchField:{paddingRight:W.spacing(2)}}),{name:"BackstageTableToolbar"})(i.UW),bt=(0,f.Z)(W=>({root:{display:"flex",alignItems:"center",justifyContent:"space-between"},title:{fontWeight:W.typography.fontWeightBold,fontSize:18,whiteSpace:"nowrap"}}),{name:"BackstageTableFiltersContainer"}),st=(0,f.Z)(()=>({root:{display:"flex",alignItems:"start"}}),{name:"BackstageTable"});function $(W,K){return W.map(pt=>{var yt;const ft=(yt=pt.headerStyle)!==null&&yt!==void 0?yt:{};let gt=pt.cellStyle||{};if(pt.highlight)if(ft.color=K.palette.textContrast,typeof gt=="object")gt.fontWeight=K.typography.fontWeightBold;else{const ct=gt;gt=(Rt,Tt,It)=>({...ct(Rt,Tt,It),fontWeight:K.typography.fontWeightBold})}return{...pt,headerStyle:ft,cellStyle:gt}})}function _(W,K){return(0,X.transform)(W,(pt,yt,ft)=>{(0,X.isEqual)(yt,K[ft])||(pt[ft]=yt)})}const tt={search:"",filtersOpen:!1,filters:{}};function it(W){const{toolbarRef:K,setSearch:pt,hasFilters:yt,selectedFiltersLength:ft,toggleFilters:gt}=W,ct=bt(),Rt=(0,H.useCallback)(Tt=>{W.onSearchChanged(Tt),pt(Tt)},[W,pt]);return yt?(0,o.jsxs)(d.Z,{className:ct.root,children:[(0,o.jsxs)(d.Z,{className:ct.root,children:[(0,o.jsx)(S.Z,{onClick:gt,"aria-label":"filter list",children:(0,o.jsx)(M.Z,{})}),(0,o.jsxs)(g.Z,{className:ct.title,children:["Filters (",ft,")"]})]}),(0,o.jsx)(Ct,{...W,ref:K,onSearchChanged:Rt})]}):(0,o.jsx)(Ct,{...W,ref:K,onSearchChanged:Rt})}function dt(W){const{data:K,columns:pt,options:yt,title:ft,subtitle:gt,filters:ct,initialState:Rt,emptyContent:Tt,onStateChange:It,components:Zt,isLoading:Yt,...he}=W,Kt=st(),Ft=(0,l.Z)(),Ht={...tt,...Rt},[ne,Ce]=(0,H.useState)(Ht.filtersOpen),Ae=(0,H.useCallback)(()=>Ce(u=>!u),[Ce]),[Me,Ve]=(0,H.useState)(0),[_e,ke]=(0,H.useState)(K),[fe,Ye]=(0,H.useState)(Ht.filters),we=$(pt,Ft),[ze,te]=(0,H.useState)(Ht.search);(0,H.useEffect)(()=>{if(It){const u=_({search:ze,filtersOpen:ne,filters:fe},tt);It(u)}},[ze,ne,fe,It]);const Qe={headerStyle:{textTransform:"uppercase"}},Se=(0,H.useCallback)(u=>{var D;return(D=pt.find(B=>B.title===u))===null||D===void 0?void 0:D.field},[pt]);(0,H.useEffect)(()=>{if(typeof K=="function")return;if(!fe){ke(K);return}const u=Object.values(fe);if(K&&u.flat().length){const D=K.filter(B=>!!Object.entries(fe).filter(([,et])=>!!et.length).every(([et,ht])=>{const mt=ut(B,Se(et));return Array.isArray(mt)&&Array.isArray(ht)?mt.some(kt=>ht.includes(kt)):Array.isArray(mt)?mt.includes(ht):Array.isArray(ht)?ht.includes(mt):mt===ht}));ke(D)}else ke(K);Ve(u.flat().length)},[K,fe,Se]);const Le=(u,D)=>{const B=ht=>{const mt=new Set,kt=zt=>{zt!=null&&mt.add(zt)};return D&&D.forEach(zt=>{const Bt=ut(zt,Se(ht));Array.isArray(Bt)?Bt.forEach(kt):kt(Bt)}),mt},et=ht=>({placeholder:"All results",label:ht.column,multiple:ht.type==="multiple-select",items:[...B(ht.column)].sort().map(mt=>({label:mt,value:mt}))});return u.map(ht=>({type:ht.type,element:et(ht)}))},Ie=!!(ct!=null&&ct.length),ie=(0,H.useCallback)(u=>(0,o.jsx)(it,{setSearch:te,hasFilters:Ie,selectedFiltersLength:Me,toggleFilters:Ae,...u}),[Ae,Ie,Me,te]),je=typeof K!="function"&&K.length===0,Be=pt.length,L=(0,H.useCallback)(u=>Yt?(0,o.jsx)("tbody",{"data-testid":"loading-indicator",children:(0,o.jsx)("tr",{children:(0,o.jsx)("td",{colSpan:Be,children:(0,o.jsx)(d.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",minHeight:"15rem"},children:(0,o.jsx)(xt.Z,{size:"5rem"})})})})}):Tt&&je?(0,o.jsx)("tbody",{children:(0,o.jsx)("tr",{children:(0,o.jsx)("td",{colSpan:Be,children:Tt})})}):(0,o.jsx)(i.os,{...u}),[je,Tt,Be,Yt]);return(0,o.jsxs)(d.Z,{className:Kt.root,children:[ne&&K&&typeof K!="function"&&(ct==null?void 0:ct.length)&&(0,o.jsx)(rt,{filters:Le(ct,K),selectedFilters:fe,onChangeFilters:Ye}),(0,o.jsx)(i.ZP,{components:{Header:Ot,Toolbar:ie,Body:L,...Zt},options:{...Qe,...yt},columns:we,icons:Et,title:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(g.Z,{variant:"h5",component:"h2",children:ft}),gt&&(0,o.jsx)(g.Z,{color:"textSecondary",variant:"body1",children:gt})]}),data:typeof K=="function"?K:_e,style:{width:"100%"},localization:{toolbar:{searchPlaceholder:"Filter",searchTooltip:"Filter"}},...he})]})}dt.icons=Object.freeze(Et)},538:function(Y,T,t){"use strict";t.d(T,{G:function(){return N}});var o=t(52322),i=t(41128),d=t(79692),S=t(27616),p=t(8284),f=t(70660),l=t(60905),g=t(90436),O=t(91750),A=t(38016),P=t(2784);const C=(v,k)=>(k.palette.type==="light"?i._j:i.$n)(k.palette[v].light,.6),x=(v,k)=>(k.palette.type==="light"?i.$n:i._j)(k.palette[v].light,.9),E=(0,d.Z)(v=>({root:{marginRight:v.spacing(1),fill:({severity:k})=>C(k,v)}})),I=({severity:v})=>{const k=E({severity:v});return(0,o.jsx)(O.Z,{classes:k})},R=({severity:v})=>{const k=E({severity:v});return(0,o.jsx)(A.Z,{classes:k})},M=(0,d.Z)(v=>({panel:{backgroundColor:({severity:k})=>x(k,v),color:({severity:k})=>C(k,v),verticalAlign:"middle"},summary:{display:"flex",flexDirection:"row"},summaryText:{color:({severity:k})=>C(k,v),fontWeight:v.typography.fontWeightBold},message:{width:"100%",display:"block",color:({severity:k})=>C(k,v),backgroundColor:({severity:k})=>x(k,v)},details:{width:"100%",display:"block",color:v.palette.textContrast,backgroundColor:v.palette.background.default,border:`1px solid ${v.palette.border}`,padding:v.spacing(2),fontFamily:"sans-serif"}}),{name:"BackstageWarningPanel"}),F=v=>v.charAt(0).toLocaleUpperCase("en-US")+v.slice(1);function N(v){const{severity:k="warning",title:ot,message:X,children:H,defaultExpanded:z}=v,G=M({severity:k}),q=F(k)+(ot?`: ${ot}`:"");return(0,o.jsxs)(S.Z,{defaultExpanded:z!=null?z:!1,className:G.panel,role:"alert",children:[(0,o.jsxs)(p.Z,{expandIcon:(0,o.jsx)(R,{severity:k}),className:G.summary,children:[(0,o.jsx)(I,{severity:k}),(0,o.jsx)(g.Z,{className:G.summaryText,variant:"subtitle1",children:q})]}),(X||H)&&(0,o.jsx)(f.Z,{children:(0,o.jsxs)(l.Z,{container:!0,children:[X&&(0,o.jsx)(l.Z,{item:!0,xs:12,children:(0,o.jsx)(g.Z,{className:G.message,variant:"body1",children:X})}),H&&(0,o.jsx)(l.Z,{item:!0,xs:12,className:G.details,children:H})]})})]})}},77770:function(Y,T,t){"use strict";t.d(T,{v:function(){return S}});var o=t(44394),i=t(6542);const d={url:"https://github.com/backstage/backstage/issues",items:[{title:"Support Not Configured",icon:"warning",links:[{title:"Add `app.support` config key",url:"https://github.com/backstage/backstage/blob/master/app-config.yaml"}]}]};function S(){const f=(0,o.I_)().get(i.D),l=f==null?void 0:f.getOptionalConfig("app.support");return l?{url:l.getString("url"),items:l.getConfigArray("items").flatMap(g=>{var O;return{title:g.getString("title"),icon:g.getOptionalString("icon"),links:((O=g.getOptionalConfigArray("links"))!==null&&O!==void 0?O:[]).flatMap(A=>({url:A.getString("url"),title:A.getString("title")}))}})}:d}},42398:function(Y,T,t){"use strict";t.d(T,{V:function(){return l}});var o=t(52322),i=t(79692),d=t(72779),S=t.n(d),p=t(2784);const f=(0,i.Z)(g=>({root:{gridArea:"pageContent",minWidth:0,paddingTop:g.spacing(3),paddingBottom:g.spacing(3),paddingLeft:g.spacing(2),paddingRight:g.spacing(2),[g.breakpoints.up("sm")]:{paddingLeft:g.spacing(3),paddingRight:g.spacing(3)}},stretch:{display:"flex",flexDirection:"column",flexGrow:1},noPadding:{padding:0}}),{name:"BackstageContent"});function l(g){const{className:O,stretch:A,noPadding:P,children:C,...x}=g,E=f();return(0,o.jsx)("article",{...x,className:S()(E.root,O,{[E.stretch]:A,[E.noPadding]:P}),children:C})}},30706:function(Y,T,t){"use strict";t.d(T,{y:function(){return O}});var o=t(52322),i=t(62774),d=t(79692),S=t(90436),p=t(2784),f=t(18671);const l=A=>(0,d.Z)(P=>({container:{width:"100%",display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"flex-end",alignItems:"center",marginBottom:P.spacing(2),textAlign:A.textAlign},leftItemsBox:{flex:"1 1 auto",minWidth:0,overflow:"visible"},rightItemsBox:{flex:"0 1 auto",display:"flex",flexDirection:"row",flexWrap:"wrap",alignItems:"center",marginLeft:P.spacing(1),minWidth:0,overflow:"visible"},description:{},title:{display:"inline-flex",marginBottom:0}}),{name:"BackstageContentHeader"}),g=({title:A="Unknown page",className:P})=>(0,o.jsx)(S.Z,{variant:"h4",component:"h2",className:P,"data-testid":"header-title",children:A});function O(A){const{description:P,title:C,titleComponent:x=void 0,children:E,textAlign:I="left"}=A,R=l({textAlign:I})(),M=x||(0,o.jsx)(g,{title:C,className:R.title});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(f.q,{title:C}),(0,o.jsxs)(i.Z,{className:R.container,children:[(0,o.jsxs)(i.Z,{className:R.leftItemsBox,children:[M,P&&(0,o.jsx)(S.Z,{className:R.description,variant:"body2",children:P})]}),(0,o.jsx)(i.Z,{className:R.rightItemsBox,children:E})]})]})}},87435:function(Y,T,t){"use strict";t.d(T,{m:function(){return x}});var o=t(52322),i=t(60905),d=t(79692),S=t(90436),p=t(2784),f=t(73557),l=t(98864),g=t(77770),O=t.p+"static/mic-drop.fe3ef4d0..svg";const A=(0,d.Z)(E=>({micDrop:{maxWidth:"60%",bottom:E.spacing(2),right:E.spacing(2),[E.breakpoints.down("xs")]:{maxWidth:"96%",bottom:"unset",right:"unset",margin:E.spacing(10,"auto",4)}}}),{name:"BackstageErrorPageMicDrop"}),P=()=>{const E=A();return(0,o.jsx)("img",{src:O,className:E.micDrop,alt:"Girl dropping mic from her hands"})},C=(0,d.Z)(E=>({container:{padding:E.spacing(8),[E.breakpoints.down("xs")]:{padding:E.spacing(2)}},title:{paddingBottom:E.spacing(5),[E.breakpoints.down("xs")]:{paddingBottom:E.spacing(4),fontSize:E.typography.h3.fontSize}},subtitle:{color:E.palette.textSubtle}}),{name:"BackstageErrorPage"});function x(E){const{status:I,statusMessage:R,additionalInfo:M,supportUrl:F}=E,N=C(),v=(0,f.s0)(),k=(0,g.v)();return(0,o.jsxs)(i.Z,{container:!0,spacing:0,className:N.container,children:[(0,o.jsxs)(i.Z,{item:!0,xs:12,sm:8,md:4,children:[(0,o.jsxs)(S.Z,{"data-testid":"error",variant:"body1",className:N.subtitle,children:["ERROR ",I,": ",R]}),(0,o.jsx)(S.Z,{variant:"body1",className:N.subtitle,children:M}),(0,o.jsx)(S.Z,{variant:"h2",className:N.title,children:"Looks like someone dropped the mic!"}),(0,o.jsxs)(S.Z,{variant:"h6",children:[(0,o.jsx)(l.rU,{to:"#","data-testid":"go-back-link",onClick:()=>v(-1),children:"Go back"}),"... or please"," ",(0,o.jsx)(l.rU,{to:F||k.url,children:"contact support"})," if you think this is a bug."]})]}),(0,o.jsx)(P,{})]})}},48037:function(Y,T,t){"use strict";t.d(T,{h:function(){return z}});var o=t(52322),i=t(44394),d=t(6542),S=t(62774),p=t(60905),f=t(79692),l=t(80030),g=t(90436),O=t(2784),A=t(18671),P=t(98864),C=t(16173),x=t(11776),E=t(38402),I=t(79784),R=t(15459);const M=(0,R.Z)({root:{textDecoration:"underline",cursor:"pointer"}},{name:"BackstageBreadcrumbsClickableText"})(g.Z),F=(0,R.Z)({root:{textDecoration:"underline",color:"inherit"}},{name:"BackstageBreadcrumbsStyledBox"})(S.Z);function N(G){const{children:q,...rt}=G,[xt,Et]=O.useState(null),ut=O.Children.toArray(q),[Ot,Ct,...bt]=ut,st=bt.length?bt.pop():ut[ut.length-1],$=ut.length>3,_=dt=>{Et(dt.currentTarget)},tt=()=>{Et(null)},it=Boolean(xt);return(0,o.jsxs)(O.Fragment,{children:[(0,o.jsxs)(C.Z,{"aria-label":"breadcrumb",...rt,children:[ut.length>1&&(0,o.jsx)(F,{clone:!0,children:Ot}),ut.length>2&&(0,o.jsx)(F,{clone:!0,children:Ct}),$&&(0,o.jsx)(M,{onClick:_,children:"..."}),(0,o.jsx)(S.Z,{style:{fontStyle:"italic"},children:st})]}),(0,o.jsx)(I.ZP,{open:it,anchorEl:xt,onClose:tt,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:(0,o.jsx)(x.Z,{children:bt.map((dt,W)=>(0,o.jsx)(E.Z,{button:!0,children:(0,o.jsx)(F,{clone:!0,children:dt})},W))})})]})}var v=t(44409);const k=(0,f.Z)(G=>({header:{gridArea:"pageHeader",padding:G.spacing(3),width:"100%",boxShadow:G.shadows[4],position:"relative",zIndex:100,display:"flex",flexDirection:"row",alignItems:"center",backgroundImage:G.page.backgroundImage,backgroundPosition:"center",backgroundSize:"cover",[G.breakpoints.down("sm")]:{flexWrap:"wrap"}},leftItemsBox:{maxWidth:"100%",flexGrow:1},rightItemsBox:{width:"auto",alignItems:"center"},title:{color:G.page.fontColor,wordBreak:"break-word",fontSize:G.typography.h3.fontSize,marginBottom:0},subtitle:{color:G.page.fontColor,opacity:.8,display:"inline-block",marginTop:G.spacing(1),maxWidth:"75ch"},type:{textTransform:"uppercase",fontSize:11,opacity:.8,marginBottom:G.spacing(1),color:G.page.fontColor},breadcrumb:{color:G.page.fontColor},breadcrumbType:{fontSize:"inherit",opacity:.7,marginRight:-G.spacing(.3),marginBottom:G.spacing(.3)},breadcrumbTitle:{fontSize:"inherit",marginLeft:-G.spacing(.3),marginBottom:G.spacing(.3)}}),{name:"BackstageHeader"}),ot=({type:G,typeLink:q,classes:rt,pageTitle:xt})=>G?q?(0,o.jsxs)(N,{className:rt.breadcrumb,children:[(0,o.jsx)(P.rU,{to:q,children:G}),(0,o.jsx)(g.Z,{children:xt})]}):(0,o.jsx)(g.Z,{className:rt.type,children:G}):null,X=({pageTitle:G,classes:q,tooltip:rt})=>{const{contentRef:xt}=(0,v.r)(),Et=(0,o.jsx)(g.Z,{ref:xt,tabIndex:-1,className:q.title,variant:"h1",children:G});return rt?(0,o.jsx)(l.ZP,{title:rt,placement:"top-start",children:Et}):Et},H=({classes:G,subtitle:q})=>q?typeof q!="string"?(0,o.jsx)(o.Fragment,{children:q}):(0,o.jsx)(g.Z,{className:G.subtitle,variant:"subtitle2",component:"span",children:q}):null;function z(G){const{children:q,pageTitleOverride:rt,style:xt,subtitle:Et,title:ut,tooltip:Ot,type:Ct,typeLink:bt}=G,st=k(),_=(0,i.h_)(d.D).getOptionalString("app.title")||"Backstage",tt=rt||ut,it=ut||rt,dt=`${tt} | %s | ${_}`,W=`${tt} | ${_}`;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(A.q,{titleTemplate:dt,defaultTitle:W}),(0,o.jsxs)("header",{style:xt,className:st.header,children:[(0,o.jsxs)(S.Z,{className:st.leftItemsBox,children:[(0,o.jsx)(ot,{classes:st,type:Ct,typeLink:bt,pageTitle:it}),(0,o.jsx)(X,{classes:st,pageTitle:it,tooltip:Ot}),(0,o.jsx)(H,{classes:st,subtitle:Et})]}),(0,o.jsx)(p.Z,{container:!0,className:st.rightItemsBox,spacing:4,children:q})]})]})}},67880:function(Y,T,t){"use strict";t.d(T,{T:function(){return f}});var o=t(52322),i=t(2784),d=t(79692),S=t(41547);const p=(0,d.Z)(l=>({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",[l.breakpoints.down("xs")]:{height:"100%"},"@media print":{display:"block",height:"auto",overflowY:"inherit"}}}),{name:"BackstagePage"});function f(l){const{themeId:g,children:O}=l,A=p();return(0,o.jsx)(S.Z,{theme:P=>({...P,page:P.getPageTheme({themeId:g})}),children:(0,o.jsx)("main",{className:A.root,children:O})})}},32166:function(Y,T,t){"use strict";t.d(T,{g:function(){return p}});var o=t(52322),i=t(2784),d=t(48037),S=t(67880);function p(f){const{themeId:l,children:g,...O}=f;return(0,o.jsxs)(S.T,{themeId:l,children:[(0,o.jsx)(d.h,{...O}),g]})}},44409:function(Y,T,t){"use strict";t.d(T,{t:function(){return C},r:function(){return x}});var o=t(52322),i=t(62774),d=t(79692),S=t(41156),p=t(2784),f=t(76921),l;(function(E){E.SIDEBAR_PIN_STATE="sidebarPinState"})(l||(l={}));const g={getSidebarPinState(){let E;try{E=JSON.parse(window.localStorage.getItem("sidebarPinState")||"true")}catch{return!0}return!!E},setSidebarPinState(E){return window.localStorage.setItem("sidebarPinState",JSON.stringify(E))}};var O=t(93539);const A=(0,d.Z)(E=>({root:{width:"100%",transition:"padding-left 0.1s ease-out",isolation:"isolate",[E.breakpoints.up("sm")]:{paddingLeft:I=>I.isPinned?I.sidebarConfig.drawerWidthOpen:I.sidebarConfig.drawerWidthClosed},[E.breakpoints.down("xs")]:{paddingBottom:I=>I.sidebarConfig.mobileSidebarHeight},"@media print":{padding:"0px !important"}},content:{zIndex:0,isolation:"isolate","&:focus":{outline:0}}}),{name:"BackstageSidebarPage"}),P=(0,p.createContext)({content:{contentRef:void 0}});function C(E){const[I,R]=(0,p.useState)(()=>g.getSidebarPinState()),{sidebarConfig:M}=(0,p.useContext)(f.kG),F=(0,p.useRef)(null),N=(0,p.useMemo)(()=>({content:{contentRef:F}}),[F]);(0,p.useEffect)(()=>{g.setSidebarPinState(I)},[I]);const v=(0,S.Z)(X=>X.breakpoints.down("xs"),{noSsr:!0}),k=()=>R(!I),ot=A({isPinned:I,sidebarConfig:M});return(0,o.jsx)(O.lE,{value:{isPinned:I,toggleSidebarPinState:k,isMobile:v},children:(0,o.jsx)(P.Provider,{value:N,children:(0,o.jsx)(i.Z,{className:ot.root,children:E.children})})})}function x(){const{content:E}=(0,p.useContext)(P);return{focusContent:(0,p.useCallback)(()=>{var R,M;E==null||(M=E.contentRef)===null||M===void 0||(R=M.current)===null||R===void 0||R.focus()},[E]),contentRef:E==null?void 0:E.contentRef}}},93539:function(Y,T,t){"use strict";t.d(T,{Pf:function(){return O},lE:function(){return g}});var o=t(52322),i=t(29651),d=t(68993),S=t(2784);const p={isPinned:!0,toggleSidebarPinState:()=>{},isMobile:!1},f=(0,S.createContext)(p),l=(0,i.CT)("sidebar-pin-state-context");function g(A){const{children:P,value:C}=A;return(0,o.jsx)(f.Provider,{value:C,children:(0,o.jsx)(l.Provider,{value:(0,d.E)({1:C}),children:P})})}const O=()=>{const A=(0,S.useContext)(l),P=(0,S.useContext)(f);if(A===void 0)return P||p;const C=A.atVersion(1);if(C===void 0)throw new Error("No context found for version 1.");return C}},76921:function(Y,T,t){"use strict";t.d(T,{$E:function(){return f},Ag:function(){return P},kG:function(){return A},po:function(){return p},rW:function(){return g}});var o=t(2784);const i=72,d=24,S=18,p={drawerWidthClosed:i,drawerWidthOpen:224,defaultOpenDelayMs:100,defaultCloseDelayMs:0,defaultFadeDuration:200,logoHeight:32,iconContainerWidth:i,iconSize:i-d*2,iconPadding:d,selectedIndicatorWidth:3,userBadgePadding:S,userBadgeDiameter:i-S*2,mobileSidebarHeight:56},f=C=>({...p,...C,iconContainerWidth:p.drawerWidthClosed,iconSize:p.drawerWidthClosed-p.iconPadding*2,userBadgeDiameter:p.drawerWidthClosed-p.userBadgePadding*2}),l={drawerWidthClosed:0,drawerWidthOpen:202,defaultOpenDelayMs:p.defaultOpenDelayMs+200},g=C=>({...l,...C}),O="@backstage/core/sidebar-intro-dismissed",A=(0,o.createContext)({sidebarConfig:p,submenuConfig:l}),P=(0,o.createContext)({isHoveredOn:!1,setIsHoveredOn:()=>{}})},72388:function(Y,T,t){"use strict";t.d(T,{Os:function(){return f},fC:function(){return l}});var o=t(52322),i=t(29651),d=t(68993),S=t(2784);const p=(0,i.CT)("analytics-context"),f=()=>{const O=(0,S.useContext)(p);if(O===void 0)return{routeRef:"unknown",pluginId:"root",extension:"App"};const A=O.atVersion(1);if(A===void 0)throw new Error("No context found for version 1.");return A},l=O=>{const{attributes:A,children:P}=O,x={...f(),...A},E=(0,d.E)({1:x});return(0,o.jsx)(p.Provider,{value:E,children:P})};function g(O,A){const P=C=>_jsx(l,{attributes:A,children:_jsx(O,{...C})});return P.displayName=`WithAnalyticsContext(${O.displayName||O.name||"Component"})`,P}},7355:function(Y,T,t){"use strict";t.d(T,{f:function(){return p},h:function(){return S}});var o=t(87612),i=t(96087);const d=(0,i.u)("core-plugin-api:analytics-tracker-events",()=>({mostRecentGatheredNavigation:void 0,mostRecentRoutableExtensionRender:void 0,beforeUnloadRegistered:!1})),S="_ROUTABLE-EXTENSION-RENDERED";class p{setContext(l){this.context=l}captureEvent(l,g,{value:O,attributes:A}={}){const{_routeNodeType:P,...C}=this.context;if(l===S){d.mostRecentGatheredNavigation&&(d.mostRecentRoutableExtensionRender={context:{...C,extension:"App"}});return}if(d.mostRecentGatheredNavigation){try{this.analyticsApi.captureEvent({...d.mostRecentGatheredNavigation,...d.mostRecentRoutableExtensionRender})}catch(x){console.warn("Error during analytics event capture. %o",x)}d.mostRecentGatheredNavigation=void 0,d.mostRecentRoutableExtensionRender=void 0}if(l==="navigate"&&P==="gathered"&&C.pluginId==="root"){d.mostRecentGatheredNavigation={action:l,subject:g,value:O,attributes:A,context:C};return}try{this.analyticsApi.captureEvent({action:l,subject:g,value:O,attributes:A,context:C})}catch(x){console.warn("Error during analytics event capture. %o",x)}}constructor(l,g={routeRef:"unknown",pluginId:"root",extension:"App"}){(0,o._)(this,"analyticsApi",void 0),(0,o._)(this,"context",void 0),this.analyticsApi=l,this.context=g,d.beforeUnloadRegistered||(addEventListener("beforeunload",()=>{d.mostRecentGatheredNavigation&&(this.analyticsApi.captureEvent({...d.mostRecentGatheredNavigation,...d.mostRecentRoutableExtensionRender}),d.mostRecentGatheredNavigation=void 0,d.mostRecentRoutableExtensionRender=void 0)},{once:!0,passive:!0}),d.beforeUnloadRegistered=!0)}}},62369:function(Y,T,t){"use strict";t.d(T,{z:function(){return l}});var o=t(72388),i=t(44394),d=t(86386),S=t(2784),p=t(7355);function f(){try{return(0,i.h_)(d.v)}catch{return{captureEvent:()=>{}}}}function l(){const g=(0,S.useRef)(null),O=(0,o.Os)(),A=f();function P(){return g.current===null&&(g.current=new p.f(A)),g.current}const C=P();return C.setContext(O),C}},78847:function(Y,T,t){"use strict";t.d(T,{$:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"core.alert"})},86386:function(Y,T,t){"use strict";t.d(T,{v:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"core.analytics"})},6542:function(Y,T,t){"use strict";t.d(T,{D:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"core.config"})},96727:function(Y,T,t){"use strict";t.d(T,{N:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"core.discovery"})},58513:function(Y,T,t){"use strict";t.d(T,{V:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"core.error"})},82723:function(Y,T,t){"use strict";t.d(T,{C:function(){return i},W:function(){return d}});var o=t(95965),i;(function(S){S[S.None=0]="None",S[S.Active=1]="Active"})(i||(i={}));const d=(0,o.T)({id:"core.featureflags"})},85094:function(Y,T,t){"use strict";t.d(T,{g:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"core.fetch"})},77186:function(Y,T,t){"use strict";t.d(T,{$:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"core.identity"})},96253:function(Y,T,t){"use strict";t.d(T,{o:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"core.translation"})},95965:function(Y,T,t){"use strict";t.d(T,{T:function(){return d}});var o=t(87612);class i{get id(){return this.config.id}get T(){throw new Error(`tried to read ApiRef.T of ${this}`)}toString(){return`apiRef{${this.config.id}}`}constructor(p){if((0,o._)(this,"config",void 0),this.config=p,!p.id.split(".").flatMap(l=>l.split("-")).every(l=>l.match(/^[a-z][a-z0-9]*$/)))throw new Error(`API id must only contain period separated lowercase alphanum tokens with dashes, got '${p.id}'`)}}function d(S){return new i(S)}},42380:function(Y,T,t){"use strict";t.d(T,{n:function(){return o}});function o(i,d){return"id"in i?{api:i,deps:{},factory:()=>d}:i}},44394:function(Y,T,t){"use strict";t.d(T,{I_:function(){return S},h_:function(){return p}});var o=t(52322),i=t(2784),d=t(29651);function S(){const l=(0,d.Vt)("api-context");if(!l)throw new Error("API context is not available");const g=l.atVersion(1);if(!g)throw new Error("ApiContext v1 not available");return g}function p(l){const O=S().get(l);if(!O)throw new Error(`No implementation available for ${l}`);return O}function f(l){return function(O){const A=C=>{const x=S(),E={};for(const I in l)if(l.hasOwnProperty(I)){const R=l[I],M=x.get(R);if(!M)throw new Error(`No implementation available for ${R}`);E[I]=M}return _jsx(O,{...C,...E})},P=O.displayName||O.name||"Component";return A.displayName=`withApis(${P})`,A}}},80851:function(Y,T,t){"use strict";t.d(T,{q:function(){return i}});var o=t(29651);const i=()=>{const d=(0,o.Vt)("app-context");if(!d)throw new Error("App context is not available");const S=d.atVersion(1);if(!S)throw new Error("AppContext v1 not available");return S}},62584:function(Y,T,t){"use strict";t.d(T,{I:function(){return p},R:function(){return S}});var o=t(96087);const i=(0,o.u)("component-data-store",()=>new WeakMap),d="__backstage_data";function S(f,l,g){const O=f;var A;let P=(A=O[d])!==null&&A!==void 0?A:i.get(f);if(P||(P={map:new Map},Object.defineProperty(O,d,{enumerable:!1,configurable:!0,writable:!1,value:P}),i.set(f,P)),P.map.has(l)){const C=f.displayName||f.name;throw new Error(`Attempted to attach duplicate data "${l}" to component "${C}"`)}P.map.set(l,g)}function p(f,l){if(!f)return;const g=f.type;if(!g)return;var O;const A=(O=g[d])!==null&&O!==void 0?O:i.get(g);if(A)return A.map.get(l)}},82963:function(Y,T,t){"use strict";t.d(T,{CO:function(){return C},YO:function(){return x},P4:function(){return P}});var o=t(52322),i=t(2784),d=t(62369),S=t(72388),p=t(80851),f=t(37321),l=t(62584),g=t(87612);class O extends i.Component{static getDerivedStateFromError(I){return{error:I}}render(){const{error:I}=this.state,{app:R,plugin:M}=this.props,{ErrorBoundaryFallback:F}=R.getComponents();return I?(0,o.jsx)(F,{error:I,resetError:this.handleErrorReset,plugin:M}):this.props.children}constructor(...I){super(...I),(0,g._)(this,"state",{error:void 0}),(0,g._)(this,"handleErrorReset",()=>{this.setState({error:void 0})})}}var A=t(7355);function P(E){const{component:I,mountPoint:R,name:M}=E;return x({component:{lazy:()=>I().then(F=>{const N=k=>{const ot=(0,d.z)();try{(0,f.t)(R)}catch(X){if(typeof X=="object"&&X!==null){const{message:H}=X;if(typeof H=="string"&&H.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 X}return(0,i.useEffect)(()=>{ot.captureEvent(A.h,"")},[ot]),(0,o.jsx)(F,{...k})},v=M||F.displayName||F.name||"LazyComponent";return N.displayName=`RoutableExtension(${v})`,N},F=>v=>{const k=(0,p.q)(),{BootErrorPage:ot}=k.getComponents();return(0,o.jsx)(ot,{step:"load-chunk",error:F})})},data:{"core.mountPoint":R},name:M})}function C(E){const{component:I,name:R}=E;return x({component:I,name:R})}function x(E){const{data:I={},name:R}=E;R||console.warn("Declaring extensions without name is DEPRECATED. Make sure that all usages of createReactExtension, createComponentExtension and createRoutableExtension provide a name.");let M;if("lazy"in E.component){const N=E.component.lazy;M=(0,i.lazy)(()=>N().then(v=>({default:v})))}else M=E.component.sync;const F=R||M.displayName||M.name||"Component";return{expose(N){const v=k=>{const ot=(0,p.q)(),{Progress:X}=ot.getComponents(),H=I==null?void 0:I["core.mountPoint"];return(0,o.jsx)(i.Suspense,{fallback:(0,o.jsx)(X,{}),children:(0,o.jsx)(O,{app:ot,plugin:N,children:(0,o.jsx)(S.fC,{attributes:{pluginId:N.getId(),...R&&{extension:R},...H&&{routeRef:H.id}},children:(0,o.jsx)(M,{...k})})})})};(0,l.R)(v,"core.plugin",N),(0,l.R)(v,"core.extensionName",R);for(const[k,ot]of Object.entries(I))(0,l.R)(v,k,ot);return v.displayName=`Extension(${F})`,v}}}},2532:function(Y,T,t){"use strict";t.d(T,{v:function(){return g}});var o=t(87612),i=t(2784),d=t(62584),S=t(44394),p=t(82723);function f(O,A,P,C){return i.Children.toArray(O).flatMap(x=>{if(!(0,i.isValidElement)(x))return[];if(x.type===i.Fragment)return f(x.props.children,A,P,C);if((0,d.I)(x,"core.featureFlagged")){const E=x.props;return("with"in E?A.isActive(E.with):!A.isActive(E.without))?f(x.props.children,A,P,C):[]}if(P===void 0||P(x))return[x];if(C)throw new Error(C);return f(x.props.children,A,P,C)})}class l{selectByComponentData(A){const P=f(this.node,this.featureFlagsApi,C=>(0,d.I)(C,A.key)!==void 0,A.withStrictError);return new l(P,this.featureFlagsApi)}findComponentData(A){return f(this.node,this.featureFlagsApi,C=>(0,d.I)(C,A.key)!==void 0).map(C=>(0,d.I)(C,A.key)).filter(C=>C!==void 0)}getElements(){return f(this.node,this.featureFlagsApi)}constructor(A,P){(0,o._)(this,"node",void 0),(0,o._)(this,"featureFlagsApi",void 0),this.node=A,this.featureFlagsApi=P}}function g(O,A,P=[]){const C=(0,S.h_)(p.W),x=new l(O,C);return(0,i.useMemo)(()=>A(x),[O,...P])}},15006:function(Y,T,t){"use strict";t.d(T,{r:function(){return d}});var o=t(87612);class i{getId(){return this.config.id}getApis(){var p;return(p=this.config.apis)!==null&&p!==void 0?p:[]}getFeatureFlags(){var p,f;return(f=(p=this.config.featureFlags)===null||p===void 0?void 0:p.slice())!==null&&f!==void 0?f:[]}get routes(){var p;return(p=this.config.routes)!==null&&p!==void 0?p:{}}get externalRoutes(){var p;return(p=this.config.externalRoutes)!==null&&p!==void 0?p:{}}provide(p){return p.expose(this)}toString(){return`plugin{${this.config.id}}`}constructor(p){(0,o._)(this,"config",void 0),this.config=p}}function d(S){return new i(S)}},30283:function(Y,T,t){"use strict";t.d(T,{N:function(){return f}});var o=t(87612),i=t(92918);let d=i.K,S=d;class p{get title(){return this.id}toString(){return`routeRef{type=absolute,id=${this.id}}`}constructor(g,O){(0,o._)(this,"id",void 0),(0,o._)(this,"params",void 0),(0,o._)(this,S,void 0),this.id=g,this.params=O,this[d]="absolute"}}function f(l){var g;return new p(l.id,(g=l.params)!==null&&g!==void 0?g:[])}},92918:function(Y,T,t){"use strict";t.d(T,{K:function(){return i}});var o=t(96087);const i=(0,o.u)("route-ref-type",()=>Symbol("route-ref-type"))},37321:function(Y,T,t){"use strict";t.d(T,{t:function(){return S}});var o=t(2784),i=t(73557),d=t(29651);function S(p){const{pathname:f}=(0,i.TH)(),l=(0,d.Vt)("routing-context");if(!l)throw new Error("Routing context is not available");const g=l.atVersion(1),O=(0,o.useMemo)(()=>g&&g.resolve(p,{pathname:f}),[g,p,f]);if(!l)throw new Error("useRouteRef used outside of routing context");if(!g)throw new Error("RoutingContext v1 not available");const A="optional"in p&&p.optional;if(!O&&!A)throw new Error(`No path for ${p}`);return O}},35304:function(Y,T,t){"use strict";t.d(T,{F:function(){return A},y:function(){return P}});var o=t(88412),i=t(52475),d=t(80956),S=t(87612),p=t(18015),f=new WeakMap,l=new WeakMap,g=new WeakMap;class O{get id(){return(0,o._)(this,f)}get T(){throw new Error("Not implemented")}getDefaultMessages(){return(0,o._)(this,l)}setDefaultResource(x){(0,d._)(this,g,x)}getDefaultResource(){return(0,o._)(this,g)}toString(){return`TranslationRef{id=${this.id}}`}constructor(x){(0,i._)(this,f,{writable:!0,value:void 0}),(0,i._)(this,l,{writable:!0,value:void 0}),(0,i._)(this,g,{writable:!0,value:void 0}),(0,S._)(this,"$$type","@backstage/TranslationRef"),(0,S._)(this,"version","v1"),(0,d._)(this,f,x.id),(0,d._)(this,l,x.messages)}}function A(C){const x=new O(C);return C.translations&&x.setDefaultResource((0,p.N)({ref:x,translations:C.translations})),x}function P(C){const x=C;if(x.$$type!=="@backstage/TranslationRef")throw new Error(`Invalid translation ref, bad type '${x.$$type}'`);if(x.version!=="v1")throw new Error(`Invalid translation ref, bad version '${x.version}'`);return x}},18015:function(Y,T,t){"use strict";t.d(T,{N:function(){return i},W:function(){return o}});function o(d){const S=d;if(S.$$type!=="@backstage/TranslationResource")throw new Error(`Invalid translation resource, bad type '${S.$$type}'`);if(S.version!=="v1")throw new Error(`Invalid translation resource, bad version '${S.version}'`);return S}function i(d){return{$$type:"@backstage/TranslationResource",version:"v1",id:d.ref.id,resources:Object.entries(d.translations).map(([S,p])=>({language:S,loader:()=>p().then(f=>{const l=f.default;return{messages:(l==null?void 0:l.$$type)==="@backstage/TranslationMessages"?l.messages:l}})}))}}},41385:function(Y,T,t){"use strict";t.d(T,{V:function(){return S}});var o=t(87612),i=t(48998);async function d(p){try{const l=await p.text();if(l){var f;if(!((f=p.headers.get("content-type"))===null||f===void 0)&&f.startsWith("application/json"))try{const g=JSON.parse(l);if(g.error&&g.response)return g}catch{}return{error:{name:"Error",message:`Request failed with status ${p.status} ${p.statusText}, ${l}`},response:{statusCode:p.status}}}}catch{}return{error:{name:"Error",message:`Request failed with status ${p.status} ${p.statusText}`},response:{statusCode:p.status}}}class S extends Error{static async fromResponse(f){const l=await d(f),g=l.response.statusCode||f.status,O=l.error.name||f.statusText,A=`Request failed with ${g} ${O}`,P=(0,i.Fq)(l.error);return new S({message:A,response:f,data:l,cause:P})}constructor(f){super(f.message),(0,o._)(this,"response",void 0),(0,o._)(this,"body",void 0),(0,o._)(this,"cause",void 0),this.name="ResponseError",this.response=f.response,this.body=f.data,this.cause=f.cause}}},30474:function(Y,T,t){"use strict";t.d(T,{V:function(){return o}});function o(d){if(typeof d!="object"||d===null||Array.isArray(d))return!1;const S=d;return!(typeof S.name!="string"||S.name===""||typeof S.message!="string")}function i(d){if(typeof d!="object"||d===null||Array.isArray(d))throw new Error(`Encountered invalid error, not an object, got '${d}'`);const S=d;if(typeof S.name!="string"||S.name==="")throw new Error(`Encountered error object without a name, got '${d}'`);if(typeof S.message!="string")throw new Error(`Encountered error object without a message, got '${d}'`)}},48998:function(Y,T,t){"use strict";t.d(T,{Fq:function(){return p},n:function(){return f}});var o=t(24852),i=t.n(o),d=t(30474);function S(l,g){const A={name:"Unknown",message:"<no reason given>",...serializeErrorInternal(l)};return g!=null&&g.includeStack||delete A.stack,A}function p(l){const g=(0,o.deserializeError)(l);return l.stack||(g.stack=void 0),g}function f(l){if((0,d.V)(l)){const g=String(l);return g!=="[object Object]"?g:`${l.name}: ${l.message}`}return`unknown error '${l}'`}},91657:function(Y,T,t){"use strict";t.d(T,{a:function(){return je},q:function(){return Be}});var o=t(87612),i=t(38264);const d="amazonaws.com";function S(L){const u=L.getOptionalString("endpoint");var D;const B=(D=L.getOptionalBoolean("s3ForcePathStyle"))!==null&&D!==void 0?D:!1;let et,ht;if(u){try{const Mt=new URL(u);et=Mt.host,ht=Mt.pathname}catch{throw new Error(`invalid awsS3 integration config, endpoint '${u}' is not a valid URL`)}if(ht!=="/")throw new Error(`invalid awsS3 integration config, endpoints cannot contain path, got '${u}'`)}else et=d;const mt=L.getOptionalString("accessKeyId"),kt=L.getOptionalString("secretAccessKey"),zt=L.getOptionalString("roleArn"),Bt=L.getOptionalString("externalId");return{host:et,endpoint:u,s3ForcePathStyle:B,accessKeyId:mt,secretAccessKey:kt,roleArn:zt,externalId:Bt}}function p(L){const u=L.map(S);return u.some(D=>D.host===d)||u.push({host:d}),u}class f{get type(){return"awsS3"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(u){return(0,i.FI)(u)}resolveEditUrl(u){return u}constructor(u){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=u}}(0,o._)(f,"factory",({config:L})=>{var u;const D=p((u=L.getOptionalConfigArray("integrations.awsS3"))!==null&&u!==void 0?u:[]);return(0,i.gz)(D.map(B=>new f(B)),B=>B.config.host)});var l=t(88412),g=t(52475),O=t(80956);const A="GB";var P=new WeakMap,C=new WeakMap,x=new WeakMap,E=new WeakMap,I=new WeakMap,R=new WeakMap,M=new WeakMap;class F{static fromRepoUrl(u){const D=new URL(u);let B,et,ht;const mt=D.pathname.split("/").map(oe=>decodeURIComponent(oe));if(mt[2]==="_git"?(B=mt[1],et=ht=mt[3]):mt[3]==="_git"?(B=mt[1],et=mt[2],ht=mt[4]):mt[4]==="_git"&&(B=`${mt[1]}/${mt[2]}`,et=mt[3],ht=mt[5]),!B||!et||!ht)throw new Error("Azure URL must point to a git repository");var kt;const zt=(kt=D.searchParams.get("path"))!==null&&kt!==void 0?kt:void 0;let Bt;const Mt=D.searchParams.get("version");if(Mt){if(Mt.slice(0,2)!=="GB")throw new Error("Azure URL version must point to a git branch");Bt=Mt.slice(2)}return new F(D.origin,B,et,ht,zt,Bt)}toRepoUrl(){let u;return(0,l._)(this,x)===(0,l._)(this,E)?u=(0,l._)(this,M).call(this,(0,l._)(this,C),"_git",(0,l._)(this,E)):u=(0,l._)(this,M).call(this,(0,l._)(this,C),(0,l._)(this,x),"_git",(0,l._)(this,E)),(0,l._)(this,I)&&u.searchParams.set("path",(0,l._)(this,I)),(0,l._)(this,R)&&u.searchParams.set("version",A+(0,l._)(this,R)),u.toString()}toFileUrl(){if(!(0,l._)(this,I))throw new Error("Azure URL must point to a specific path to be able to download a file");const u=(0,l._)(this,M).call(this,(0,l._)(this,C),(0,l._)(this,x),"_apis","git","repositories",(0,l._)(this,E),"items");return u.searchParams.set("api-version","6.0"),u.searchParams.set("path",(0,l._)(this,I)),(0,l._)(this,R)&&u.searchParams.set("version",(0,l._)(this,R)),u.toString()}toArchiveUrl(){const u=(0,l._)(this,M).call(this,(0,l._)(this,C),(0,l._)(this,x),"_apis","git","repositories",(0,l._)(this,E),"items");return u.searchParams.set("recursionLevel","full"),u.searchParams.set("download","true"),u.searchParams.set("api-version","6.0"),(0,l._)(this,I)&&u.searchParams.set("scopePath",(0,l._)(this,I)),(0,l._)(this,R)&&u.searchParams.set("version",(0,l._)(this,R)),u.toString()}toCommitsUrl(){const u=(0,l._)(this,M).call(this,(0,l._)(this,C),(0,l._)(this,x),"_apis","git","repositories",(0,l._)(this,E),"commits");return u.searchParams.set("api-version","6.0"),(0,l._)(this,R)&&u.searchParams.set("searchCriteria.itemVersion.version",(0,l._)(this,R)),u.toString()}getOwner(){return(0,l._)(this,C)}getProject(){return(0,l._)(this,x)}getRepo(){return(0,l._)(this,E)}getPath(){return(0,l._)(this,I)}getRef(){return(0,l._)(this,R)}constructor(u,D,B,et,ht,mt){(0,g._)(this,P,{writable:!0,value:void 0}),(0,g._)(this,C,{writable:!0,value:void 0}),(0,g._)(this,x,{writable:!0,value:void 0}),(0,g._)(this,E,{writable:!0,value:void 0}),(0,g._)(this,I,{writable:!0,value:void 0}),(0,g._)(this,R,{writable:!0,value:void 0}),(0,g._)(this,M,{writable:!0,value:(...kt)=>{const zt=new URL((0,l._)(this,P));return zt.pathname=kt.map(Bt=>encodeURIComponent(Bt)).join("/"),zt}}),(0,O._)(this,P,u),(0,O._)(this,C,D),(0,O._)(this,x,B),(0,O._)(this,E,et),(0,O._)(this,I,ht),(0,O._)(this,R,mt)}}const N="dev.azure.com",v=["clientId","clientSecret","tenantId","personalAccessToken"],k=new Map([["ClientSecret",["clientId","clientSecret","tenantId"]],["ManagedIdentity",["clientId"]],["PersonalAccessToken",["personalAccessToken"]]]);function ot(L){for(const u of k.entries()){const[D,B]=u,et=v.filter(ht=>!B.includes(ht));if(B.every(ht=>L[ht]!==void 0)&&et.every(ht=>L[ht]===void 0))return{kind:D,organizations:L.organizations,...B.reduce((ht,mt)=>(ht[mt]=L[mt],ht),{})}}throw new Error("is not a valid credential")}function X(L){var u,D;const B=(D=L.getOptionalString("host"))!==null&&D!==void 0?D:N;let et=(u=L.getOptionalConfigArray("credentials"))===null||u===void 0?void 0:u.map(Bt=>({organizations:Bt.getOptionalStringArray("organizations"),personalAccessToken:Bt.getOptionalString("personalAccessToken"),tenantId:Bt.getOptionalString("tenantId"),clientId:Bt.getOptionalString("clientId"),clientSecret:Bt.getOptionalString("clientSecret")}));const ht=L.getOptionalString("token");if(L.getOptional("credential")!==void 0&&L.getOptional("credentials")!==void 0)throw new Error("Invalid Azure integration config, 'credential' and 'credentials' cannot be used together. Use 'credentials' instead.");if(L.getOptional("token")!==void 0&&L.getOptional("credentials")!==void 0)throw new Error("Invalid Azure integration config, 'token' and 'credentials' cannot be used together. Use 'credentials' instead.");if(ht!==void 0){const Bt=[{personalAccessToken:ht}];var mt;et=(mt=et==null?void 0:et.concat(Bt))!==null&&mt!==void 0?mt:Bt}if(L.getOptional("credential")!==void 0){const Bt=[{organizations:L.getOptionalStringArray("credential.organizations"),token:L.getOptionalString("credential.token"),tenantId:L.getOptionalString("credential.tenantId"),clientId:L.getOptionalString("credential.clientId"),clientSecret:L.getOptionalString("credential.clientSecret")}];var kt;et=(kt=et==null?void 0:et.concat(Bt))!==null&&kt!==void 0?kt:Bt}if(!(0,i.bK)(B))throw new Error(`Invalid Azure integration config, '${B}' is not a valid host`);let zt;if(et!==void 0){const Bt=et==null?void 0:et.reduce((Mt,oe,Oe)=>{let Te;try{ot(oe)}catch(Ue){Te=Ue.message}return Te!==void 0&&Mt.push(`credential at position ${Oe+1} ${Te}`),Mt},Array.of()).concat(Object.entries(et.filter(Mt=>Mt.organizations!==void 0&&Mt.organizations.length>0).reduce((Mt,oe,Oe)=>{var Te;return(Te=oe.organizations)===null||Te===void 0||Te.forEach(Ue=>{Mt[Ue]||(Mt[Ue]=[]),Mt[Ue].push(Oe+1)}),Mt},{})).filter(([Mt,oe])=>oe.length>1).reduce((Mt,[oe,Oe])=>(Mt.push(`organization ${oe} is specified multiple times in credentials at positions ${Oe.slice(0,Oe.length-1).join(", ")} and ${Oe[Oe.length-1]}`),Mt),Array.of()));if((Bt==null?void 0:Bt.length)>0)throw new Error(`Invalid Azure integration config for ${B}: ${Bt.join("; ")}`);if(zt=et.map(Mt=>ot(Mt)),zt.some(Mt=>Mt.kind!=="PersonalAccessToken")&&B!==N)throw new Error(`Invalid Azure integration config for ${B}, only personal access tokens can be used with hosts other than ${N}`);if(zt.filter(Mt=>Mt.organizations===void 0||Mt.organizations.length===0).length>1)throw new Error(`Invalid Azure integration config for ${B}, you cannot specify multiple credentials without organizations`)}return{host:B,credentials:zt}}function H(L){const u=L.map(X);return u.some(D=>D.host===N)||u.push({host:N}),u}class z{get type(){return"azure"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(u){const{url:D,base:B}=u;if((0,i.jv)(D))return D;try{const ht=F.fromRepoUrl(B),mt=new URL(B);var et;const kt=new URL(`https://a.com${(et=ht.getPath())!==null&&et!==void 0?et:""}`),zt=new URL(D,kt).pathname;return mt.searchParams.set("path",zt),u.lineNumber&&(mt.searchParams.set("line",String(u.lineNumber)),mt.searchParams.set("lineEnd",String(u.lineNumber+1)),mt.searchParams.set("lineStartColumn","1"),mt.searchParams.set("lineEndColumn","1")),mt.toString()}catch{return new URL(D,B).toString()}}resolveEditUrl(u){return u}constructor(u){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=u}}(0,o._)(z,"factory",({config:L})=>{var u;const D=H((u=L.getOptionalConfigArray("integrations.azure"))!==null&&u!==void 0?u:[]);return(0,i.gz)(D.map(B=>new z(B)),B=>B.config.host)});var G=t(82717),q=t.n(G);const rt="bitbucket.org",xt="https://api.bitbucket.org/2.0";function Et(L){const u=rt,D=xt,B=L.getString("username"),et=L.getString("appPassword");return{host:u,apiBaseUrl:D,username:B,appPassword:et}}function ut(L){const u=L.map(Et);return u.length===0&&u.push({host:rt,apiBaseUrl:xt}),u}class Ot{get type(){return"bitbucketCloud"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(u){const D=(0,i.FI)(u);if(u.lineNumber){const B=new URL(D);return B.hash=`lines-${u.lineNumber}`,B.toString()}return D}resolveEditUrl(u){const D=q()(u),B=new URL(u);return B.searchParams.set("mode","edit"),B.searchParams.set("at",D.ref),B.toString()}constructor(u){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=u}}(0,o._)(Ot,"factory",({config:L})=>{var u;const D=ut((u=L.getOptionalConfigArray("integrations.bitbucketCloud"))!==null&&u!==void 0?u:[]);return(0,i.gz)(D.map(B=>new Ot(B)),B=>B.config.host)});var Ct=t(76635);const bt="bitbucket.org",st="https://api.bitbucket.org/2.0";function $(L){var u;const D=(u=L.getOptionalString("host"))!==null&&u!==void 0?u:bt;let B=L.getOptionalString("apiBaseUrl");const et=L.getOptionalString("token"),ht=L.getOptionalString("username"),mt=L.getOptionalString("appPassword");if(!(0,i.bK)(D))throw new Error(`Invalid Bitbucket integration config, '${D}' is not a valid host`);return B?B=(0,Ct.trimEnd)(B,"/"):D===bt?B=st:B=`https://${D}/rest/api/1.0`,{host:D,apiBaseUrl:B,token:et,username:ht,appPassword:mt}}function _(L){const u=L.map($);return u.some(D=>D.host===bt)||u.push({host:bt,apiBaseUrl:st}),u}class tt{get type(){return"bitbucket"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(u){const D=(0,i.FI)(u);if(!u.lineNumber)return D;const B=new URL(D);return this.integrationConfig.host==="bitbucket.org"?B.hash=`lines-${u.lineNumber}`:B.hash=`${u.lineNumber}`,B.toString()}resolveEditUrl(u){const D=q()(u),B=new URL(u);return B.searchParams.set("mode","edit"),B.searchParams.set("spa","0"),B.searchParams.set("at",D.ref),B.toString()}constructor(u){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=u}}(0,o._)(tt,"factory",({config:L})=>{var u,D,B;const et=_((B=L.getOptionalConfigArray("integrations.bitbucket"))!==null&&B!==void 0?B:[...(u=L.getOptionalConfigArray("integrations.bitbucketCloud"))!==null&&u!==void 0?u:[],...(D=L.getOptionalConfigArray("integrations.bitbucketServer"))!==null&&D!==void 0?D:[]]);return(0,i.gz)(et.map(ht=>new tt(ht)),ht=>ht.config.host)});function it(L){const u=L.getString("host");let D=L.getOptionalString("apiBaseUrl");const B=L.getOptionalString("token"),et=L.getOptionalString("username"),ht=L.getOptionalString("password");if(!(0,i.bK)(u))throw new Error(`Invalid Bitbucket Server integration config, '${u}' is not a valid host`);return D?D=(0,Ct.trimEnd)(D,"/"):D=`https://${u}/rest/api/1.0`,{host:u,apiBaseUrl:D,token:B,username:et,password:ht}}function dt(L){return L.map(it)}class W{get type(){return"bitbucketServer"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(u){const D=(0,i.FI)(u);if(u.lineNumber){const B=new URL(D);return B.hash=u.lineNumber.toString(),B.toString()}return D}resolveEditUrl(u){return u.includes("?")?u.substring(0,u.indexOf("?")):u}constructor(u){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=u}}(0,o._)(W,"factory",({config:L})=>{var u;const D=dt((u=L.getOptionalConfigArray("integrations.bitbucketServer"))!==null&&u!==void 0?u:[]);return(0,i.gz)(D.map(B=>new W(B)),B=>B.config.host)});function K(L){const u=L.getString("host");let D=L.getOptionalString("baseUrl"),B=L.getOptionalString("cloneUrl"),et=L.getOptionalString("gitilesBaseUrl");const ht=L.getOptionalString("username"),mt=L.getOptionalString("password");if((0,i.bK)(u)){if(D&&!(0,i.jv)(D))throw new Error(`Invalid Gerrit integration config, '${D}' is not a valid baseUrl`);if(B&&!(0,i.jv)(B))throw new Error(`Invalid Gerrit integration config, '${B}' is not a valid cloneUrl`);if(et&&!(0,i.jv)(et))throw new Error(`Invalid Gerrit integration config, '${et}' is not a valid gitilesBaseUrl`)}else throw new Error(`Invalid Gerrit integration config, '${u}' is not a valid host`);return D?D=(0,Ct.trimEnd)(D,"/"):D=`https://${u}`,et?et=(0,Ct.trimEnd)(et,"/"):et=`https://${u}`,B?B=(0,Ct.trimEnd)(B,"/"):B=D,{host:u,baseUrl:D,cloneUrl:B,gitilesBaseUrl:et,username:ht,password:mt}}function pt(L){return L.map(K)}var yt=t(48834).lW;const ft=")]}'";function gt(L,u){const D=new URL(L.gitilesBaseUrl),B=new URL(u),ht=B.pathname.substring(B.pathname.startsWith("/a/")?2:0).replace(D.pathname,"").split("/").filter(oe=>!!oe),mt=ht.indexOf("+");if(mt<=0)throw new Error(`Unable to parse project from url: ${u}`);const kt=(0,Ct.trimStart)(ht.slice(0,mt).join("/"),"/"),zt=ht.indexOf("heads");if(zt<=0)throw new Error(`Unable to parse branch from url: ${u}`);const Bt=ht[zt+1],Mt=ht.slice(zt+2).join("/");return{branch:Bt,filePath:Mt===""?"/":Mt,project:kt}}function ct(L,u,D,B){return`${L.gitilesBaseUrl}/${u}/+/refs/heads/${D}/${(0,Ct.trimStart)(B,"/")}`}function Rt(L,u,D,B){const et=B==="/"||B===""?".tar.gz":`/${B}.tar.gz`;return`${It(L)}/${u}/+archive/refs/heads/${D}${et}`}function Tt(L){return L.password?"/a/":"/"}function It(L){if(!L.baseUrl||!L.gitilesBaseUrl)throw new Error("Unexpected Gerrit config values. baseUrl or gitilesBaseUrl not set.");if(L.gitilesBaseUrl.startsWith(L.baseUrl))return L.gitilesBaseUrl.replace(L.baseUrl.concat("/"),L.baseUrl.concat(Tt(L)));if(L.password)throw new Error("Since the baseUrl (Gerrit) is not part of the gitilesBaseUrl, an authentication URL could not be constructed.");return L.gitilesBaseUrl}function Zt(L,u){const{branch:D,project:B}=gt(L,u);return`${L.baseUrl}${Tt(L)}projects/${encodeURIComponent(B)}/branches/${D}`}function Yt(L,u){const{project:D}=gt(L,u);return`${L.cloneUrl}${Tt(L)}${D}`}function he(L,u){const{branch:D,filePath:B,project:et}=gt(L,u);return`${L.baseUrl}${Tt(L)}projects/${encodeURIComponent(et)}/branches/${D}/files/${encodeURIComponent(B)}/content`}function Kt(L){return`${L.baseUrl}${Tt(L)}projects/`}function Ft(L){const u={};if(!L.password)return u;const D=yt.from(`${L.username}:${L.password}`,"utf8");return u.Authorization=`Basic ${D.toString("base64")}`,{headers:u}}async function Ht(L){const u=await L.text();if(u.startsWith(ft))try{return JSON.parse(u.slice(ft.length))}catch(D){throw new Error(`Invalid response from Gerrit: ${u.slice(0,10)} - ${D}`)}throw new Error(`Gerrit JSON body prefix missing. Found: ${u.slice(0,10)}`)}class ne{get type(){return"gerrit"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(u){const{url:D,base:B,lineNumber:et}=u;let ht;if(D.startsWith("/")){const{branch:mt,project:kt}=gt(this.config,B);return ct(this.config,kt,mt,D)}return D?ht=new URL(D,B):ht=new URL(B),et&&(ht.hash=et.toString()),ht.toString()}resolveEditUrl(u){return u}constructor(u){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=u}}(0,o._)(ne,"factory",({config:L})=>{var u;const D=pt((u=L.getOptionalConfigArray("integrations.gerrit"))!==null&&u!==void 0?u:[]);return(0,i.gz)(D.map(B=>new ne(B)),B=>B.config.host)});var Ce=t(61800);const Ae="gitlab.com",Me="https://gitlab.com/api/v4";function Ve(L){const u=L.getString("host");let D=L.getOptionalString("apiBaseUrl");const B=L.getOptionalString("token");let et=L.getOptionalString("baseUrl");if(D?D=(0,Ct.trimEnd)(D,"/"):u===Ae&&(D=Me),et?et=(0,Ct.trimEnd)(et,"/"):et=`https://${u}`,(0,i.bK)(u)){if(!D||!(0,i.jv)(D))throw new Error(`Invalid GitLab integration config, '${D}' is not a valid apiBaseUrl`);if(!(0,i.jv)(et))throw new Error(`Invalid GitLab integration config, '${et}' is not a valid baseUrl`)}else throw new Error(`Invalid GitLab integration config, '${u}' is not a valid host`);return{host:u,token:B,apiBaseUrl:D,baseUrl:et}}function _e(L){const u=L.map(Ve);return u.some(D=>D.host===Ae)||u.push({host:Ae,apiBaseUrl:Me,baseUrl:`https://${Ae}`}),u}function ke(L){let u="";return L.host!==Ae&&(u=new URL(L.baseUrl).pathname),trimEnd(u,"/")}class fe{get type(){return"gitlab"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(u){return(0,i.FI)(u)}resolveEditUrl(u){return Ye(u,"edit")}constructor(u){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=u}}(0,o._)(fe,"factory",({config:L})=>{var u;const D=_e((u=L.getOptionalConfigArray("integrations.gitlab"))!==null&&u!==void 0?u:[]);return(0,i.gz)(D.map(B=>new fe(B)),B=>B.config.host)});function Ye(L,u){return L.replace(/\/\-\/(blob|tree|edit)\//,`/-/${u}/`)}function we(L){const u=L.getString("host");let D=L.getOptionalString("baseUrl");const B=L.getOptionalString("username"),et=L.getOptionalString("password");if(!(0,i.bK)(u))throw new Error(`Invalid Gitea integration config, '${u}' is not a valid host`);return D?D=(0,Ct.trimEnd)(D,"/"):D=`https://${u}`,{host:u,baseUrl:D,username:B,password:et}}var ze=t(48834).lW;function te(L,u){try{var D;const B=(D=L.baseUrl)!==null&&D!==void 0?D:`https://${L.host}`,[et,ht,mt,kt,zt,Bt,...Mt]=u.replace(B,"").split("/"),oe=Mt.join("/").replace(/^\//,"");return`${B}/${ht}/${mt}/_edit/${Bt}/${oe}`}catch(B){throw new Error(`Incorrect URL: ${u}, ${B}`)}}function Qe(L,u){try{var D;const B=(D=L.baseUrl)!==null&&D!==void 0?D:`https://${L.host}`,[et,ht,mt,kt,zt,Bt,...Mt]=u.replace(B,"").split("/"),oe=Mt.join("/").replace(/^\//,"");return`${B}/api/v1/repos/${ht}/${mt}/contents/${oe}?ref=${Bt}`}catch(B){throw new Error(`Incorrect URL: ${u}, ${B}`)}}function Se(L){const u={},{username:D,password:B}=L;return B?(D?u.Authorization=`basic ${ze.from(`${D}:${B}`).toString("base64")}`:u.Authorization=`token ${B}`,{headers:u}):u}class Le{get type(){return"gitea"}get title(){return this.config.host}resolveUrl(u){return(0,i.FI)(u)}resolveEditUrl(u){return te(this.config,u)}constructor(u){(0,o._)(this,"config",void 0),this.config=u}}(0,o._)(Le,"factory",({config:L})=>{var u;const B=((u=L.getOptionalConfigArray("integrations.gitea"))!==null&&u!==void 0?u:[]).map(et=>we(et));return(0,i.gz)(B.map(et=>new Le(et)),et=>et.config.host)});class Ie{static fromConfig(u){return new Ie({awsS3:f.factory({config:u}),azure:z.factory({config:u}),bitbucket:tt.factory({config:u}),bitbucketCloud:Ot.factory({config:u}),bitbucketServer:W.factory({config:u}),gerrit:ne.factory({config:u}),github:Ce.X.factory({config:u}),gitlab:fe.factory({config:u}),gitea:Le.factory({config:u})})}get awsS3(){return this.byType.awsS3}get azure(){return this.byType.azure}get bitbucket(){return this.byType.bitbucket}get bitbucketCloud(){return this.byType.bitbucketCloud}get bitbucketServer(){return this.byType.bitbucketServer}get gerrit(){return this.byType.gerrit}get github(){return this.byType.github}get gitlab(){return this.byType.gitlab}get gitea(){return this.byType.gitea}list(){return Object.values(this.byType).flatMap(u=>u.list())}byUrl(u){let D=Object.values(this.byType).map(B=>B.byUrl(u)).filter(Boolean);if(D.length>1){const B=D.filter(et=>!(et instanceof tt));B.length!==0&&(D=B)}return D[0]}byHost(u){return Object.values(this.byType).map(D=>D.byHost(u)).find(Boolean)}resolveUrl(u){const D=this.byUrl(u.base);return D?D.resolveUrl(u):(0,i.FI)(u)}resolveEditUrl(u){const D=this.byUrl(u);return D?D.resolveEditUrl(u):u}constructor(u){(0,o._)(this,"byType",void 0),this.byType=u}}var ie=t(95965);class je{static fromConfig(u){return Ie.fromConfig(u)}}const Be=(0,ie.T)({id:"integration.scmintegrations"})},61800:function(Y,T,t){"use strict";t.d(T,{X:function(){return O},B:function(){return A}});var o=t(87612),i=t(38264),d=t(76635);const S="github.com",p="https://api.github.com",f="https://raw.githubusercontent.com";function l(P){var C,x;const E=(x=P.getOptionalString("host"))!==null&&x!==void 0?x:S;let I=P.getOptionalString("apiBaseUrl"),R=P.getOptionalString("rawBaseUrl");const M=P.getOptionalString("token"),F=(C=P.getOptionalConfigArray("apps"))===null||C===void 0?void 0:C.map(N=>({appId:N.getNumber("appId"),clientId:N.getString("clientId"),clientSecret:N.getString("clientSecret"),webhookSecret:N.getString("webhookSecret"),privateKey:N.getString("privateKey"),allowedInstallationOwners:N.getOptionalStringArray("allowedInstallationOwners")}));if(!(0,i.bK)(E))throw new Error(`Invalid GitHub integration config, '${E}' is not a valid host`);return I?I=(0,d.trimEnd)(I,"/"):E===S&&(I=p),R?R=(0,d.trimEnd)(R,"/"):E===S&&(R=f),{host:E,apiBaseUrl:I,rawBaseUrl:R,token:M,apps:F}}function g(P){const C=P.map(l);return C.some(x=>x.host===S)||C.push({host:S,apiBaseUrl:p,rawBaseUrl:f}),C}class O{get type(){return"github"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(C){return A((0,i.FI)(C),"tree")}resolveEditUrl(C){return A(C,"edit")}constructor(C){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=C}}(0,o._)(O,"factory",({config:P})=>{var C;const x=g((C=P.getOptionalConfigArray("integrations.github"))!==null&&C!==void 0?C:[]);return(0,i.gz)(x.map(E=>new O(E)),E=>E.config.host)});function A(P,C){return P.replace(/\/\/([^/]+)\/([^/]+)\/([^/]+)\/(blob|tree|edit)\//,(x,E,I,R)=>`//${E}/${I}/${R}/${C}/`)}},38264:function(Y,T,t){"use strict";t.d(T,{FI:function(){return g},bK:function(){return p},gz:function(){return l},jv:function(){return f}});var o=t(82717),i=t.n(o),d=t(76635),S=t.n(d);function p(A){const P=new URL("http://example.com");return P.host=A,P.host===A}function f(A){try{return new URL(A),!0}catch{return!1}}function l(A,P){return{list(){return A},byUrl(C){try{const x=typeof C=="string"?new URL(C):C;return A.find(E=>P(E)===x.host)}catch{return}},byHost(C){return A.find(x=>P(x)===C)}}}function g(A){const{url:P,base:C,lineNumber:x}=A;try{return new URL(P),P}catch{}let E;if(P.startsWith("/")){const{filepath:I}=i()(C);E=new URL(C);const R=(0,d.trimEnd)(E.pathname.substring(0,E.pathname.length-I.length),"/");E.pathname=`${R}${P}`}else E=new URL(P,C);return E.search=new URL(C).search,x&&(E.hash=`L${x}`),E.toString()}function O(A){beforeAll(()=>A.listen({onUnhandledRequest:"error"})),afterAll(()=>A.close()),afterEach(()=>A.resetHandlers())}},81025:function(Y,T,t){"use strict";var o={};t.r(o),t.d(o,{TechDocsPlugin:function(){return f.s4}});var i=t(52322),d=t(2784),S=t(28316),p=t(73557),f=t(4577),l=t(29895),g=t(2296),O=t(57058),A=t(77277),P=t(87435),C=t(74359),x=t(55015),E=t(71597);function I({children:r}){return(0,p.GV)()?(0,i.jsx)(i.Fragment,{children:r}):(0,i.jsx)(p.VA,{children:r})}const R=()=>(0,i.jsx)(P.m,{status:"404",statusMessage:"PAGE NOT FOUND"}),M=({step:r,error:e})=>{let n="";return r==="load-config"?n=`The configuration failed to load, someone should have a look at this error: ${e.message}`:r==="load-chunk"&&(n=`Lazy loaded chunk failed to load, try to reload the page: ${e.message}`),(0,i.jsx)(I,{children:(0,i.jsx)(P.m,{status:"501",statusMessage:n})})},F=({error:r,resetError:e,plugin:n})=>(0,i.jsx)(C.y,{title:`Error in ${n==null?void 0:n.getId()}`,defaultExpanded:!0,error:r,children:(0,i.jsx)(A.Z,{variant:"outlined",onClick:e,children:"Retry"})}),N={Progress:x.E,Router:E.VK,NotFoundErrorPage:R,BootErrorPage:M,ErrorBoundaryFallback:F};var v=t(87612);const k="Invalid discovery URL pattern,";class ot{static compile(e){const n=e.split(/\{\{\s*pluginId\s*\}\}/),s=n.join("pluginId");let a;try{a=new URL(s)}catch{throw new Error(`${k} URL '${s}' is invalid`)}if(a.hash)throw new Error(`${k} URL must not have a hash`);if(a.search)throw new Error(`${k} URL must not have a query`);if(s.endsWith("/"))throw new Error(`${k} URL must not end with a slash`);return new ot(n)}async getBaseUrl(e){return this.parts.join(encodeURIComponent(e))}constructor(e){(0,v._)(this,"parts",void 0),this.parts=e}}var X=t(82394),H=t.n(X);let z=Symbol.observable;class G{[z](){return this}get closed(){return this.isClosed}next(e){if(this.isClosed)throw new Error("PublishSubject is closed");this.subscribers.forEach(n=>n.next(e))}error(e){if(this.isClosed)throw new Error("PublishSubject is closed");this.isClosed=!0,this.terminatingError=e,this.subscribers.forEach(n=>n.error(e))}complete(){if(this.isClosed)throw new Error("PublishSubject is closed");this.isClosed=!0,this.subscribers.forEach(e=>e.complete())}subscribe(e,n,s){const a=typeof e=="function"?{next:e,error:n,complete:s}:e;return this.observable.subscribe(a)}constructor(){(0,v._)(this,"isClosed",!1),(0,v._)(this,"terminatingError",void 0),(0,v._)(this,"observable",new(H())(e=>this.isClosed?(this.terminatingError?e.error(this.terminatingError):e.complete(),()=>{}):(this.subscribers.add(e),()=>{this.subscribers.delete(e)}))),(0,v._)(this,"subscribers",new Set)}}let q=Symbol.observable;class rt{[q](){return this}get closed(){return this.isClosed}next(e){if(this.isClosed)throw new Error("BehaviorSubject is closed");this.currentValue=e,this.subscribers.forEach(n=>n.next(e))}error(e){if(this.isClosed)throw new Error("BehaviorSubject is closed");this.isClosed=!0,this.terminatingError=e,this.subscribers.forEach(n=>n.error(e))}complete(){if(this.isClosed)throw new Error("BehaviorSubject is closed");this.isClosed=!0,this.subscribers.forEach(e=>e.complete())}subscribe(e,n,s){const a=typeof e=="function"?{next:e,error:n,complete:s}:e;return this.observable.subscribe(a)}constructor(e){(0,v._)(this,"isClosed",void 0),(0,v._)(this,"currentValue",void 0),(0,v._)(this,"terminatingError",void 0),(0,v._)(this,"observable",void 0),(0,v._)(this,"subscribers",new Set),this.isClosed=!1,this.currentValue=e,this.terminatingError=void 0,this.observable=new(H())(n=>this.isClosed?(this.terminatingError?n.error(this.terminatingError):n.complete(),()=>{}):(n.next(this.currentValue),this.subscribers.add(n),()=>{this.subscribers.delete(n)}))}}class xt{post(e){this.subject.next(e)}alert$(){return this.subject}constructor(){(0,v._)(this,"subject",new G)}}class Et{captureEvent(e){}}class ut{post(e,n){return n!=null&&n.hidden||this.alertApi.post({message:e.message,severity:"error"}),this.errorApi.post(e,n)}error$(){return this.errorApi.error$()}constructor(e,n){(0,v._)(this,"alertApi",void 0),(0,v._)(this,"errorApi",void 0),this.alertApi=e,this.errorApi=n}}class Ot{post(e,n){this.subject.next({error:e,context:n})}error$(){return this.subject}constructor(){(0,v._)(this,"subject",new G)}}class Ct{static forward(e,n){window.addEventListener("unhandledrejection",s=>{e.post(s.reason,n)})}}const bt=new Map;class st{static create(e){var n;return new st((n=e.namespace)!==null&&n!==void 0?n:"",e.errorApi)}static addStorageEventListener(){window.addEventListener("storage",e=>{for(const[s,a]of bt.entries()){var n;!((n=e.key)===null||n===void 0)&&n.startsWith(s)&&a.handleStorageChange(e.key)}})}get(e){return this.snapshot(e).value}snapshot(e){let n,s="absent";try{const a=localStorage.getItem(this.getKeyName(e));a&&(n=JSON.parse(a,(c,m)=>(typeof m=="object"&&m!==null&&Object.freeze(m),m)),s="present")}catch{this.errorApi.post(new Error(`Error when parsing JSON config from storage for: ${e}`))}return{key:e,value:n,presence:s}}forBucket(e){const n=`${this.namespace}/${e}`;return bt.has(n)||bt.set(n,new st(n,this.errorApi)),bt.get(n)}async set(e,n){localStorage.setItem(this.getKeyName(e),JSON.stringify(n)),this.notifyChanges(e)}async remove(e){localStorage.removeItem(this.getKeyName(e)),this.notifyChanges(e)}observe$(e){return st.hasSubscribed||(st.addStorageEventListener(),st.hasSubscribed=!0),this.observable.filter(({key:n})=>n===e)}handleStorageChange(e){if(!(e!=null&&e.startsWith(this.namespace)))return;const n=e==null?void 0:e.slice(`${this.namespace}/`.length);n.includes("/")||this.notifyChanges(decodeURIComponent(n))}getKeyName(e){return`${this.namespace}/${encodeURIComponent(e)}`}notifyChanges(e){const n=this.snapshot(e);for(const s of this.subscribers)s.next(n)}constructor(e,n){(0,v._)(this,"namespace",void 0),(0,v._)(this,"errorApi",void 0),(0,v._)(this,"subscribers",void 0),(0,v._)(this,"observable",void 0),this.namespace=e,this.errorApi=n,this.subscribers=new Set,this.observable=new(H())(s=>(this.subscribers.add(s),()=>{this.subscribers.delete(s)}))}}(0,v._)(st,"hasSubscribed",!1);function $(r){let e=r.baseImplementation||t.g.fetch;var n;const s=[(n=r.middleware)!==null&&n!==void 0?n:[]].flat().reverse();for(const a of s)e=a.apply(e);return{fetch:e}}class _{static create(e){var n,s;const a=tt(e),c=((n=e.header)===null||n===void 0?void 0:n.name)||"authorization",m=((s=e.header)===null||s===void 0?void 0:s.value)||(y=>`Bearer ${y}`);return new _(e.identityApi,a,c,m)}apply(e){return async(n,s)=>{const a=new Request(n,s),{token:c}=await this.identityApi.getCredentials();return a.headers.get(this.headerName)||typeof c!="string"||!c||!this.allowUrl(a.url)?e(n,s):(a.headers.set(this.headerName,this.headerValue(c)),e(a))}}constructor(e,n,s,a){(0,v._)(this,"identityApi",void 0),(0,v._)(this,"allowUrl",void 0),(0,v._)(this,"headerName",void 0),(0,v._)(this,"headerValue",void 0),this.identityApi=e,this.allowUrl=n,this.headerName=s,this.headerValue=a}}function tt(r){return r.allowUrl?r.allowUrl:r.urlPrefixAllowlist?it(r.urlPrefixAllowlist):r.config?it([r.config.getString("backend.baseUrl")]):()=>!1}function it(r){const e=r.map(n=>n.replace(/\/$/,""));return n=>e.some(s=>n===s||n.startsWith(`${s}/`))}function dt(r,e){return!e||e==="/"?r:`${r.replace(/\/$/,"")}/${e.replace(/^\//,"")}`}class W{apply(e){return async(n,s)=>{const a=new Request(n,s),c="plugin://";if(!a.url.startsWith(c))return e(n,s);const{hostname:m,pathname:y,search:w,hash:U,username:nt,password:at}=new URL(`http://${a.url.substring(c.length)}`);let vt=await this.discoveryApi.getBaseUrl(m);if(nt||at){const St=new URL(vt),Nt=`${nt}${at?`:${at}`:""}@`;vt=`${St.protocol}//${Nt}${St.host}${St.pathname}`}const lt=`${dt(vt,y)}${w}${U}`;return e(lt,typeof n=="string"||K(n)?s:n)}}constructor(e){(0,v._)(this,"discoveryApi",void 0),this.discoveryApi=e}}function K(r){return typeof r=="object"&&(r==null?void 0:r.constructor)===URL}class pt{static resolvePluginProtocol(e){return new W(e.discoveryApi)}static injectIdentityAuth(e){return _.create(e)}constructor(){}}function yt(r,e){for(const n of e)if(!r.has(n))return!1;return!0}function ft(r,...e){const n=new Set(r);for(const s of e)for(const a of s)n.add(a);return n}class gt{request(e){return new Promise((n,s)=>{this.requests.push({scopes:e,resolve:n,reject:s}),this.subject.next(this.getCurrentPending())})}resolve(e,n){this.requests=this.requests.filter(s=>yt(e,s.scopes)?(s.resolve(n),!1):!0),this.subject.next(this.getCurrentPending())}reject(e){this.requests.forEach(n=>n.reject(e)),this.requests=[],this.subject.next(this.getCurrentPending())}pending(){return this.subject}getCurrentPending(){const e=this.requests.length===0?void 0:this.requests.slice(1).reduce((n,s)=>ft(n,s.scopes),this.requests[0].scopes);return{scopes:e,resolve:n=>{e&&this.resolve(e,n)},reject:n=>{e&&this.reject(n)}}}constructor(){(0,v._)(this,"requests",[]),(0,v._)(this,"subject",new rt(this.getCurrentPending()))}}class ct{createAuthRequester(e){const n=new gt,s=this.handlerCount;return this.handlerCount++,n.pending().subscribe({next:a=>{const c=this.currentRequests.slice(),m=this.makeAuthRequest(a,e);m?c[s]=m:delete c[s],this.currentRequests=c,this.subject.next(c.filter(Boolean))}}),a=>n.request(a)}makeAuthRequest(e,n){const{scopes:s}=e;if(s)return{provider:n.provider,trigger:async()=>{const a=await n.onAuthRequest(s);e.resolve(a)},reject:()=>{const a=new Error("Login failed, rejected by user");a.name="RejectedError",e.reject(a)}}}authRequest$(){return this.subject}constructor(){(0,v._)(this,"subject",new rt([])),(0,v._)(this,"currentRequests",[]),(0,v._)(this,"handlerCount",0)}}function Rt(r){return new Promise((e,n)=>{const s=r.width||500,a=r.height||700,c=window.screen.width/2-s/2,m=window.screen.height/2-a/2,y=window.open(r.url,r.name,`menubar=no,location=no,resizable=no,scrollbars=no,status=no,width=${s},height=${a},top=${m},left=${c}`);let w="";if(!y||typeof y.closed=="undefined"||y.closed){const vt=new Error("Failed to open auth popup.");vt.name="PopupRejectedError",n(vt);return}const U=vt=>{if(vt.source!==y||vt.origin!==r.origin)return;const{data:lt}=vt;if(lt.type==="config_info"){w=lt.targetOrigin;return}if(lt.type!=="authorization_response")return;const St=lt;if("error"in St){const Nt=new Error(St.error.message);Nt.name=St.error.name,n(Nt)}else e(St.response);at()},nt=setInterval(()=>{if(y.closed){const vt=`Login failed, ${w&&w!==window.location.origin?`Incorrect app origin, expected ${w}`:"popup was closed"}`,lt=new Error(vt);lt.name="PopupClosedError",n(lt),at()}},100);function at(){window.removeEventListener("message",U),clearInterval(nt)}window.addEventListener("message",U)})}let Tt=!1;function It(r){return[...r].join(" ")}class Zt{async createSession(e){return e.instantPopup?this.enableExperimentalRedirectFlow?this.executeRedirect(e.scopes):this.showPopup(e.scopes):this.authRequester(e.scopes)}async refreshSession(e){const n=await fetch(await this.buildUrl("/refresh",{optional:!0,...e&&{scope:this.joinScopesFunc(e)}}),{headers:{"x-requested-with":"XMLHttpRequest"},credentials:"include"}).catch(a=>{throw new Error(`Auth refresh request failed, ${a}`)});if(!n.ok){const a=new Error(`Auth refresh request failed, ${n.statusText}`);throw a.status=n.status,a}const s=await n.json();if(s.error){const a=new Error(s.error.message);throw s.error.name&&(a.name=s.error.name),a}return await this.sessionTransform(s)}async removeSession(){const e=await fetch(await this.buildUrl("/logout"),{method:"POST",headers:{"x-requested-with":"XMLHttpRequest"},credentials:"include"}).catch(n=>{throw new Error(`Logout request failed, ${n}`)});if(!e.ok){const n=new Error(`Logout request failed, ${e.statusText}`);throw n.status=e.status,n}}async showPopup(e){var n,s,a,c,m,y,w,U;const nt=this.joinScopesFunc(e),at=await this.buildUrl("/start",{scope:nt,origin:window.location.origin,flow:"popup"}),vt=!((s=this.popupOptions)===null||s===void 0||(n=s.size)===null||n===void 0)&&n.fullscreen?window.screen.width:((c=this.popupOptions)===null||c===void 0||(a=c.size)===null||a===void 0?void 0:a.width)||450,lt=!((y=this.popupOptions)===null||y===void 0||(m=y.size)===null||m===void 0)&&m.fullscreen?window.screen.height:((U=this.popupOptions)===null||U===void 0||(w=U.size)===null||w===void 0?void 0:w.height)||730,St=await Rt({url:at,name:`${this.provider.title} Login`,origin:new URL(at).origin,width:vt,height:lt});return await this.sessionTransform(St)}async executeRedirect(e){const n=this.joinScopesFunc(e);return window.location.href=await this.buildUrl("/start",{scope:n,origin:window.location.origin,redirectUrl:window.location.href,flow:"redirect"}),new Promise(()=>{})}async buildUrl(e,n){const s=await this.discoveryApi.getBaseUrl("auth"),a=this.buildQueryString({...n,env:this.environment});return`${s}/${this.provider.id}${e}${a}`}buildQueryString(e){if(!e)return"";const n=Object.entries(e).map(([s,a])=>{if(typeof a=="string")return`${encodeURIComponent(s)}=${encodeURIComponent(a)}`;if(a)return encodeURIComponent(s)}).filter(Boolean).join("&");return n?`?${n}`:""}constructor(e){(0,v._)(this,"discoveryApi",void 0),(0,v._)(this,"environment",void 0),(0,v._)(this,"provider",void 0),(0,v._)(this,"joinScopesFunc",void 0),(0,v._)(this,"authRequester",void 0),(0,v._)(this,"sessionTransform",void 0),(0,v._)(this,"enableExperimentalRedirectFlow",void 0),(0,v._)(this,"popupOptions",void 0);const{configApi:n,discoveryApi:s,environment:a,provider:c,joinScopes:m=It,oauthRequestApi:y,sessionTransform:w=at=>at,popupOptions:U}=e;!Tt&&!n&&(console.warn("DEPRECATION WARNING: Authentication providers require a configApi instance to configure the authentication flow. Please provide one to the authentication provider constructor."),Tt=!0);var nt;this.enableExperimentalRedirectFlow=n&&(nt=n.getOptionalBoolean("enableExperimentalRedirectFlow"))!==null&&nt!==void 0?nt:!1,this.authRequester=y.createAuthRequester({provider:c,onAuthRequest:async at=>this.enableExperimentalRedirectFlow?this.executeRedirect(at):this.showPopup(at)}),this.discoveryApi=s,this.environment=a,this.provider=c,this.joinScopesFunc=m,this.sessionTransform=w,this.popupOptions=U}}function Yt(r,e){for(const n of e)if(!r.has(n))return!1;return!0}class he{sessionExistsAndHasScope(e,n){if(!e)return!1;if(!n||this.options.sessionScopes===void 0)return!0;const s=this.options.sessionScopes(e);return Yt(s,n)}getExtendedScope(e,n){const s=new Set(this.options.defaultScopes);if(e&&this.options.sessionScopes!==void 0){const a=this.options.sessionScopes(e);for(const c of a)s.add(c)}if(n)for(const a of n)s.add(a);return s}constructor(e){(0,v._)(this,"options",void 0),this.options=e}}var Kt=t(95965),Ft;(function(r){r.SignedIn="SignedIn",r.SignedOut="SignedOut"})(Ft||(Ft={}));const Ht=(0,Kt.T)({id:"core.auth.google"}),ne=(0,Kt.T)({id:"core.auth.github"}),Ce=(0,Kt.T)({id:"core.auth.okta"}),Ae=(0,Kt.T)({id:"core.auth.gitlab"}),Me=(0,Kt.T)({id:"core.auth.microsoft"}),Ve=(0,Kt.T)({id:"core.auth.onelogin"}),_e=(0,Kt.T)({id:"core.auth.bitbucket"}),ke=(0,Kt.T)({id:"core.auth.bitbucket-server"}),fe=(0,Kt.T)({id:"core.auth.atlassian"});class Ye{setIsSignedIn(e){this.signedIn!==e&&(this.signedIn=e,this.subject.next(this.signedIn?Ft.SignedIn:Ft.SignedOut))}sessionState$(){return this.subject}constructor(){(0,v._)(this,"subject",new rt(Ft.SignedOut)),(0,v._)(this,"signedIn",!1)}}class we{async getSession(e){if(this.helper.sessionExistsAndHasScope(this.currentSession,e.scopes)){if(!this.sessionShouldRefreshFunc(this.currentSession))return this.currentSession;try{const s=await this.collapsedSessionRefresh(e.scopes),a=this.sessionScopesFunc(this.currentSession),c=this.sessionScopesFunc(s);return Yt(c,a)&&(this.currentSession=s),s}catch(s){if(e.optional)return;throw s}}if(!this.currentSession&&!e.instantPopup)try{const n=await this.collapsedSessionRefresh(e.scopes);return this.currentSession=n,this.getSession(e)}catch{}if(!e.optional)return this.currentSession=await this.connector.createSession({...e,scopes:this.helper.getExtendedScope(this.currentSession,e.scopes)}),this.stateTracker.setIsSignedIn(!0),this.currentSession}async removeSession(){this.currentSession=void 0,await this.connector.removeSession(),this.stateTracker.setIsSignedIn(!1)}sessionState$(){return this.stateTracker.sessionState$()}async collapsedSessionRefresh(e){if(this.refreshPromise)return this.refreshPromise;this.refreshPromise=this.connector.refreshSession(e);try{const n=await this.refreshPromise;return this.stateTracker.setIsSignedIn(!0),n}finally{delete this.refreshPromise}}constructor(e){(0,v._)(this,"connector",void 0),(0,v._)(this,"helper",void 0),(0,v._)(this,"sessionScopesFunc",void 0),(0,v._)(this,"sessionShouldRefreshFunc",void 0),(0,v._)(this,"stateTracker",new Ye),(0,v._)(this,"refreshPromise",void 0),(0,v._)(this,"currentSession",void 0);const{connector:n,defaultScopes:s=new Set,sessionScopes:a,sessionShouldRefresh:c}=e;this.connector=n,this.sessionScopesFunc=a,this.sessionShouldRefreshFunc=c,this.helper=new he({sessionScopes:a,defaultScopes:s})}}const ze={id:"oauth2",title:"Your Identity Provider",icon:()=>null};class te{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:c=ze,oauthRequestApi:m,defaultScopes:y=[],scopeTransform:w=vt=>vt,popupOptions:U}=e,nt=new Zt({configApi:n,discoveryApi:s,environment:a,provider:c,oauthRequestApi:m,sessionTransform({backstageIdentity:vt,...lt}){const St={...lt,providerInfo:{idToken:lt.providerInfo.idToken,accessToken:lt.providerInfo.accessToken,scopes:te.normalizeScopes(w,lt.providerInfo.scope),expiresAt:lt.providerInfo.expiresInSeconds?new Date(Date.now()+lt.providerInfo.expiresInSeconds*1e3):void 0}};if(vt){var Nt;const Dt=(Nt=vt.expiresInSeconds)!==null&&Nt!==void 0?Nt:lt.providerInfo.expiresInSeconds;St.backstageIdentity={token:vt.token,identity:vt.identity,expiresAt:Dt?new Date(Date.now()+Dt*1e3):void 0}}return St},popupOptions:U}),at=new we({connector:nt,defaultScopes:new Set(y),sessionScopes:vt=>vt.providerInfo.scopes,sessionShouldRefresh:vt=>{var lt,St;let Nt=1/0;return!((lt=vt.providerInfo)===null||lt===void 0)&&lt.expiresAt&&(Nt=Math.min(Nt,(vt.providerInfo.expiresAt.getTime()-Date.now())/1e3)),!((St=vt.backstageIdentity)===null||St===void 0)&&St.expiresAt&&(Nt=Math.min(Nt,(vt.backstageIdentity.expiresAt.getTime()-Date.now())/1e3)),Nt<60*5}});return new te({sessionManager:at,scopeTransform:w})}async signIn(){await this.getAccessToken()}async signOut(){await this.sessionManager.removeSession()}sessionState$(){return this.sessionManager.sessionState$()}async getAccessToken(e,n){const s=te.normalizeScopes(this.scopeTransform,e),a=await this.sessionManager.getSession({...n,scopes:s});var c;return(c=a==null?void 0:a.providerInfo.accessToken)!==null&&c!==void 0?c:""}async getIdToken(e={}){const n=await this.sessionManager.getSession({...e,scopes:new Set(["openid"])});var s;return(s=n==null?void 0:n.providerInfo.idToken)!==null&&s!==void 0?s:""}async getBackstageIdentity(e={}){const n=await this.sessionManager.getSession(e);return n==null?void 0:n.backstageIdentity}async getProfile(e={}){const n=await this.sessionManager.getSession(e);return n==null?void 0:n.profile}static normalizeScopes(e,n){if(!n)return new Set;const s=Array.isArray(n)?n:n.split(/[\s|,]/).filter(Boolean);return new Set(e(s))}constructor(e){(0,v._)(this,"sessionManager",void 0),(0,v._)(this,"scopeTransform",void 0),this.sessionManager=e.sessionManager,this.scopeTransform=e.scopeTransform}}const Qe={id:"google",title:"Google",icon:()=>null},Se="https://www.googleapis.com/auth/";class Le{static create(e){const{configApi:n,discoveryApi:s,oauthRequestApi:a,environment:c="development",provider:m=Qe,defaultScopes:y=["openid",`${Se}userinfo.email`,`${Se}userinfo.profile`]}=e;return te.create({configApi:n,discoveryApi:s,oauthRequestApi:a,provider:m,environment:c,defaultScopes:y,scopeTransform(w){return w.map(U=>U==="openid"?U:U==="profile"||U==="email"?`${Se}userinfo.${U}`:U.startsWith(Se)?U:`${Se}${U}`)}})}}const Ie={id:"microsoft",title:"Microsoft",icon:()=>null};class ie{static create(e){return new ie(e)}microsoftGraph(){return this.oauth2[ie.MicrosoftGraphID]}static resourceForScopes(e){const n=[...new Set(e.split(" ").map(ie.resourceForScope).filter(c=>c!=="openid"))];if(n.length>1)return Promise.reject(new Error(`Requested access token with scopes from multiple Azure resources: ${n.join(", ")}. Access tokens can only have a single audience.`));var s;const a=(s=n[0])!==null&&s!==void 0?s:ie.MicrosoftGraphID;return Promise.resolve(a)}static resourceForScope(e){var n;const s=(n=e.match(RegExp("^(?<resourceURI>.*)\\/(?<scp>[^\\/]*)$")))===null||n===void 0?void 0:n.groups;if(s){const{resourceURI:a}=s;return a.replace(/^api:\/\//,"")}switch(e){case"email":case"openid":case"offline_access":case"profile":return"openid";default:return ie.MicrosoftGraphID}}async getAccessToken(e,n){const s=e===void 0?ie.MicrosoftGraphID:await ie.resourceForScopes(Array.isArray(e)?e.join(" "):e);return s in this.oauth2||(this.oauth2[s]=te.create({configApi:this.configApi,discoveryApi:this.discoveryApi,oauthRequestApi:this.oauthRequestApi,provider:this.provider,environment:this.environment,scopeTransform:this.scopeTransform})),this.oauth2[s].getAccessToken(e,n)}getIdToken(e){return this.microsoftGraph().getIdToken(e)}getProfile(e){return this.microsoftGraph().getProfile(e)}getBackstageIdentity(e){return this.microsoftGraph().getBackstageIdentity(e)}signIn(){return this.microsoftGraph().signIn()}signOut(){return this.microsoftGraph().signOut()}sessionState$(){return this.microsoftGraph().sessionState$()}constructor(e){(0,v._)(this,"oauth2",void 0),(0,v._)(this,"configApi",void 0),(0,v._)(this,"environment",void 0),(0,v._)(this,"provider",void 0),(0,v._)(this,"oauthRequestApi",void 0),(0,v._)(this,"discoveryApi",void 0),(0,v._)(this,"scopeTransform",void 0);const{configApi:n,environment:s="development",provider:a=Ie,oauthRequestApi:c,discoveryApi:m,defaultScopes:y=["openid","offline_access","profile","email","User.Read"],scopeTransform:w=U=>U.concat("offline_access")}=e;this.configApi=n,this.environment=s,this.provider=a,this.oauthRequestApi=c,this.discoveryApi=m,this.scopeTransform=w,this.oauth2={[ie.MicrosoftGraphID]:te.create({configApi:this.configApi,discoveryApi:this.discoveryApi,oauthRequestApi:this.oauthRequestApi,provider:this.provider,environment:this.environment,scopeTransform:this.scopeTransform,defaultScopes:y})}}}(0,v._)(ie,"MicrosoftGraphID","00000003-0000-0000-c000-000000000000");const je={id:"github",title:"GitHub",icon:()=>null};class Be{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:c=je,oauthRequestApi:m,defaultScopes:y=["read:user"]}=e;return te.create({configApi:n,discoveryApi:s,oauthRequestApi:m,provider:c,environment:a,defaultScopes:y})}}const L={id:"okta",title:"Okta",icon:()=>null},u=new Set(["openid","profile","email","phone","address","groups","offline_access"]),D="okta.";class B{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:c=L,oauthRequestApi:m,defaultScopes:y=["openid","email","profile","offline_access"]}=e;return te.create({configApi:n,discoveryApi:s,oauthRequestApi:m,provider:c,environment:a,defaultScopes:y,scopeTransform(w){return w.map(U=>u.has(U)||U.startsWith(D)?U:`${D}${U}`)}})}}const et={id:"gitlab",title:"GitLab",icon:()=>null};class ht{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:c=et,oauthRequestApi:m,defaultScopes:y=["read_user"]}=e;return te.create({configApi:n,discoveryApi:s,oauthRequestApi:m,provider:c,environment:a,defaultScopes:y})}}const mt={id:"onelogin",title:"onelogin",icon:()=>null},kt=new Set(["openid","profile","email","phone","address","groups","offline_access"]),zt="onelogin.";class Bt{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:c=mt,oauthRequestApi:m}=e;return te.create({configApi:n,discoveryApi:s,oauthRequestApi:m,provider:c,environment:a,defaultScopes:["openid","email","profile","offline_access"],scopeTransform(y){return y.map(w=>kt.has(w)||w.startsWith(zt)?w:`${zt}${w}`)}})}}const Mt={id:"bitbucket",title:"Bitbucket",icon:()=>null};class oe{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:c=Mt,oauthRequestApi:m,defaultScopes:y=["team"]}=e;return te.create({configApi:n,discoveryApi:s,oauthRequestApi:m,provider:c,environment:a,defaultScopes:y})}}const Oe={id:"bitbucketServer",title:"Bitbucket Server",icon:()=>null};class Te{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:c=Oe,oauthRequestApi:m,defaultScopes:y=["PROJECT_ADMIN"]}=e;return te.create({configApi:n,discoveryApi:s,oauthRequestApi:m,provider:c,environment:a,defaultScopes:y})}}const Ue={id:"atlassian",title:"Atlassian",icon:()=>null};class no{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:c=Ue,oauthRequestApi:m}=e;return te.create({configApi:n,discoveryApi:s,oauthRequestApi:m,provider:c,environment:a})}}var Xt=t(42380),le=t(96727),re=t(6542),Rn=t(78847),me=t(86386),Tn=t(58513);const wn=(0,Kt.T)({id:"core.storage"});var In=t(85094),Je=t(77186);const be=(0,Kt.T)({id:"core.oauthrequest"}),oo=(0,Kt.T)({id:"plugin.permission.api"});var He=t(41385),ro=t(96279),Dn=t.n(ro),so=t(9571),Gt=t(30195),De;(function(r){r.DENY="DENY",r.ALLOW="ALLOW",r.CONDITIONAL="CONDITIONAL"})(De||(De={}));const Xe=Gt.z.lazy(()=>Gt.z.object({rule:Gt.z.string(),resourceType:Gt.z.string(),params:Gt.z.record(Gt.z.any()).optional()}).or(Gt.z.object({anyOf:Gt.z.array(Xe).nonempty()})).or(Gt.z.object({allOf:Gt.z.array(Xe).nonempty()})).or(Gt.z.object({not:Xe}))),io=Gt.z.object({result:Gt.z.literal(De.ALLOW).or(Gt.z.literal(De.DENY))}),ao=Gt.z.union([Gt.z.object({result:Gt.z.literal(De.ALLOW).or(Gt.z.literal(De.DENY))}),Gt.z.object({result:Gt.z.literal(De.CONDITIONAL),pluginId:Gt.z.string(),resourceType:Gt.z.string(),conditions:Xe})]),lo=(r,e)=>Gt.z.object({items:Gt.z.array(Gt.z.intersection(Gt.z.object({id:Gt.z.string()}),r)).refine(n=>n.length===e.size&&n.every(({id:s})=>e.has(s)),{message:"Items in response do not match request"})});class co{async authorize(e,n){return this.makeRequest(e,io,n)}async authorizeConditional(e,n){return this.makeRequest(e,ao,n)}async makeRequest(e,n,s){if(!this.enabled)return e.map(nt=>({result:De.ALLOW}));const a={items:e.map(nt=>({id:so.Z(),...nt}))},c=await this.discovery.getBaseUrl("permission"),m=await Dn()(`${c}/authorize`,{method:"POST",body:JSON.stringify(a),headers:{...this.getAuthorizationHeader(s==null?void 0:s.token),"content-type":"application/json"}});if(!m.ok)throw await He.V.fromResponse(m);const y=await m.json(),U=lo(n,new Set(a.items.map(({id:nt})=>nt))).parse(y).items.reduce((nt,at)=>(nt[at.id]=at,nt),{});return a.items.map(nt=>U[nt.id])}getAuthorizationHeader(e){return e?{Authorization:`Bearer ${e}`}:{}}constructor(e){(0,v._)(this,"enabled",void 0),(0,v._)(this,"discovery",void 0),this.discovery=e.discovery;var n;this.enabled=(n=e.config.getOptionalBoolean("permission.enabled"))!==null&&n!==void 0?n:!1}}class dn{static create(e){const{config:n,discovery:s,identity:a}=e,c=new co({discovery:s,config:n});return new dn(c,a)}async authorize(e){return(await this.permissionClient.authorize([e],await this.identityApi.getCredentials()))[0]}constructor(e,n){(0,v._)(this,"permissionClient",void 0),(0,v._)(this,"identityApi",void 0),this.permissionClient=e,this.identityApi=n}}const un=[(0,Xt.n)({api:le.N,deps:{configApi:re.D},factory:({configApi:r})=>ot.compile(`${r.getString("backend.baseUrl")}/api/{{ pluginId }}`)}),(0,Xt.n)({api:Rn.$,deps:{},factory:()=>new xt}),(0,Xt.n)({api:me.v,deps:{},factory:()=>new Et}),(0,Xt.n)({api:Tn.V,deps:{alertApi:Rn.$},factory:({alertApi:r})=>{const e=new ut(r,new Ot);return Ct.forward(e,{hidden:!1}),e}}),(0,Xt.n)({api:wn,deps:{errorApi:Tn.V},factory:({errorApi:r})=>st.create({errorApi:r})}),(0,Xt.n)({api:In.g,deps:{configApi:re.D,identityApi:Je.$,discoveryApi:le.N},factory:({configApi:r,identityApi:e,discoveryApi:n})=>$({middleware:[pt.resolvePluginProtocol({discoveryApi:n}),pt.injectIdentityAuth({identityApi:e,config:r})]})}),(0,Xt.n)({api:be,deps:{},factory:()=>new ct}),(0,Xt.n)({api:Ht,deps:{discoveryApi:le.N,oauthRequestApi:be,configApi:re.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>Le.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,Xt.n)({api:Me,deps:{discoveryApi:le.N,oauthRequestApi:be,configApi:re.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>ie.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,Xt.n)({api:ne,deps:{discoveryApi:le.N,oauthRequestApi:be,configApi:re.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>Be.create({configApi:n,discoveryApi:r,oauthRequestApi:e,defaultScopes:["read:user"],environment:n.getOptionalString("auth.environment")})}),(0,Xt.n)({api:Ce,deps:{discoveryApi:le.N,oauthRequestApi:be,configApi:re.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>B.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,Xt.n)({api:Ae,deps:{discoveryApi:le.N,oauthRequestApi:be,configApi:re.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>ht.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,Xt.n)({api:Ve,deps:{discoveryApi:le.N,oauthRequestApi:be,configApi:re.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>Bt.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,Xt.n)({api:_e,deps:{discoveryApi:le.N,oauthRequestApi:be,configApi:re.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>oe.create({configApi:n,discoveryApi:r,oauthRequestApi:e,defaultScopes:["team"],environment:n.getOptionalString("auth.environment")})}),(0,Xt.n)({api:ke,deps:{discoveryApi:le.N,oauthRequestApi:be,configApi:re.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>Te.create({configApi:n,discoveryApi:r,oauthRequestApi:e,defaultScopes:["REPO_READ"]})}),(0,Xt.n)({api:fe,deps:{discoveryApi:le.N,oauthRequestApi:be,configApi:re.D},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>no.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,Xt.n)({api:oo,deps:{discovery:le.N,identity:Je.$,config:re.D},factory:({config:r,discovery:e,identity:n})=>dn.create({config:r,discovery:e,identity:n})})];var uo=t(43642),ho=t(80079),fo=t(90941),go=t(32915),po=t(40562),vo=t(21853),mo=t(60744),yo=t(66569),Eo=t(30254),xo=t(13384),Co=t(15933),Ao=t(58838),So=t(86737),Oo=t(4989),bo=t(44407),Po=t(18628),Mn=t(84219),Ln=t(98685),Ro=t(39781),To=t(39412),jn=t(78258);const wo={brokenImage:ho.Z,catalog:Po.Z,scaffolder:go.Z,techdocs:po.Z,search:vo.Z,chat:mo.Z,dashboard:yo.Z,docs:Eo.Z,email:xo.Z,github:Ao.Z,group:Mn.Z,help:So.Z,"kind:api":Co.Z,"kind:component":bo.Z,"kind:domain":uo.Z,"kind:group":Mn.Z,"kind:location":Oo.Z,"kind:system":fo.Z,"kind:user":Ln.Z,"kind:resource":To.Z,"kind:template":jn.Z,user:Ln.Z,warning:Ro.Z};var Io=t(87561),Do=t(12536),Mo=t(19219),hn=t(41547),Lo=t(3493),fn=t(81887);const jo=(0,Do.Z)({productionPrefix:"jss4-"});function Bn(r){const{children:e,theme:n,noCssBaseline:s=!1}=r,a=n.getTheme("v4"),c=n.getTheme("v5");let m;s||(m=(0,i.jsx)(Io.ZP,{}));let y=(0,i.jsxs)(i.Fragment,{children:[m,e]});return a&&(y=(0,i.jsx)(Mo.ZP,{generateClassName:jo,children:(0,i.jsx)(hn.Z,{theme:a,children:y})})),c&&(y=(0,i.jsx)(Lo.Z,{injectFirst:!0,children:(0,i.jsx)(fn.Z,{theme:c,children:y})})),y}const Un={light:{type:"light",mode:"light",background:{default:"#F8F8F8",paper:"#FFFFFF"},status:{ok:"#1DB954",warning:"#FF9800",error:"#E22134",running:"#1F5493",pending:"#FFED51",aborted:"#757575"},bursts:{fontColor:"#FEFEFE",slackChannelText:"#ddd",backgroundColor:{default:"#7C3699"},gradient:{linear:"linear-gradient(-137deg, #4BB8A5 0%, #187656 100%)"}},primary:{main:"#1F5493"},banner:{info:"#2E77D0",error:"#E22134",text:"#FFFFFF",link:"#000000",closeButtonColor:"#FFFFFF",warning:"#FF9800"},border:"#E6E6E6",textContrast:"#000000",textVerySubtle:"#DDD",textSubtle:"#6E6E6E",highlight:"#FFFBCC",errorBackground:"#FFEBEE",warningBackground:"#F59B23",infoBackground:"#ebf5ff",errorText:"#CA001B",infoText:"#004e8a",warningText:"#000000",linkHover:"#2196F3",link:"#0A6EBE",gold:"#FFD600",navigation:{background:"#171717",indicator:"#9BF0E1",color:"#b5b5b5",selectedColor:"#FFF",navItem:{hoverBackground:"#404040"},submenu:{background:"#404040"}},pinSidebarButton:{icon:"#181818",background:"#BDBDBD"},tabbar:{indicator:"#9BF0E1"}},dark:{type:"dark",mode:"dark",background:{default:"#333333",paper:"#424242"},status:{ok:"#71CF88",warning:"#FFB84D",error:"#F84C55",running:"#3488E3",pending:"#FEF071",aborted:"#9E9E9E"},bursts:{fontColor:"#FEFEFE",slackChannelText:"#ddd",backgroundColor:{default:"#7C3699"},gradient:{linear:"linear-gradient(-137deg, #4BB8A5 0%, #187656 100%)"}},primary:{main:"#9CC9FF",dark:"#82BAFD"},secondary:{main:"#FF88B2"},banner:{info:"#2E77D0",error:"#E22134",text:"#FFFFFF",link:"#000000",closeButtonColor:"#FFFFFF",warning:"#FF9800"},border:"#E6E6E6",textContrast:"#FFFFFF",textVerySubtle:"#727272",textSubtle:"#CCCCCC",highlight:"#FFFBCC",errorBackground:"#FFEBEE",warningBackground:"#F59B23",infoBackground:"#ebf5ff",errorText:"#CA001B",infoText:"#004e8a",warningText:"#000000",linkHover:"#82BAFD",link:"#9CC9FF",gold:"#FFD600",navigation:{background:"#424242",indicator:"#9BF0E1",color:"#b5b5b5",selectedColor:"#FFF",navItem:{hoverBackground:"#404040"},submenu:{background:"#404040"}},pinSidebarButton:{icon:"#404040",background:"#BDBDBD"},tabbar:{indicator:"#9BF0E1"}}};var Lt=t(88412),h=t(52475),b=t(80956),j=t(73689),Z=t(93606);const V={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")`},Q={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 J(r){const{colors:e,shape:n,options:s}=r,c=`linear-gradient(90deg, ${(e.length===1?[e[0],e[0]]:e).join(", ")})`,m=`${n}, ${c}`;var y;const w=(y=s==null?void 0:s.fontColor)!==null&&y!==void 0?y:"#FFFFFF";return{colors:e,shape:n,backgroundImage:m,fontColor:w}}const At={home:J({colors:Q.teal,shape:V.wave}),documentation:J({colors:Q.pinkSea,shape:V.wave2}),tool:J({colors:Q.purpleSky,shape:V.round}),service:J({colors:Q.marineBlue,shape:V.wave}),website:J({colors:Q.veryBlue,shape:V.wave}),library:J({colors:Q.rubyRed,shape:V.wave}),other:J({colors:Q.darkGrey,shape:V.wave}),app:J({colors:Q.toastyOrange,shape:V.wave}),apis:J({colors:Q.teal,shape:V.wave2}),card:J({colors:Q.greens,shape:V.wave})},wt=16,jt='"Helvetica Neue", Helvetica, Roboto, Arial, sans-serif',Ut="home";function Vt(r){const{palette:e,htmlFontSize:n=wt,fontFamily:s=jt,defaultPageTheme:a=Ut,pageTheme:c=At,typography:m}=r;if(!c[a])throw new Error(`${a} is not defined in pageTheme.`);const y={htmlFontSize:n,fontFamily:s,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}};return{palette:e,typography:m!=null?m:y,page:c[a],getPageTheme:({themeId:w})=>{var U;return(U=c[w])!==null&&U!==void 0?U:c[a]}}}var Pt=t(47591);const pe={MuiCssBaseline:{styleOverrides:r=>({html:{height:"100%",fontFamily:r.typography.fontFamily},body:{height:"100%",fontFamily:r.typography.fontFamily,overscrollBehaviorY:"none",fontSize:"0.875rem",lineHeight:1.43},a:{color:"inherit",textDecoration:"none"}})},MuiGrid:{defaultProps:{spacing:2}},MuiSwitch:{defaultProps:{color:"primary"}},MuiTableRow:{styleOverrides:{root:({theme:r})=>({"&:nth-of-type(odd)":{backgroundColor:r.palette.background.default}}),hover:{"&:hover":{cursor:"pointer"}},head:({theme:r})=>({"&:nth-of-type(odd)":{backgroundColor:r.palette.background.paper}})}},MuiTableCell:{styleOverrides:{root:({theme:r})=>({wordBreak:"break-word",overflow:"hidden",verticalAlign:"middle",lineHeight:"1",margin:0,padding:r.spacing(3,2,3,2.5),borderBottom:0}),sizeSmall:({theme:r})=>({padding:r.spacing(1.5,2,1.5,2.5)}),head:({theme:r})=>({wordBreak:"break-word",overflow:"hidden",color:r.palette.textSubtle,fontWeight:"normal",lineHeight:"1"})}},MuiTabs:{styleOverrides:{root:{minHeight:24}}},MuiTab:{styleOverrides:{root:({theme:r})=>({color:r.palette.link,minHeight:24,textTransform:"initial",letterSpacing:"0.07em","&:hover":{color:(0,Pt._j)(r.palette.link,.3),background:(0,Pt.$n)(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"}}},ae=r=>(...e)=>{const n=e.length===0?[1]:e,s=(a,c)=>typeof a=="string"?a:c*a;return n.map(a=>{const c=s(a,r);return typeof c=="number"?`${c}px`:c}).join(" ")};function Qt(r,e){if(!e||typeof e=="string")return;const n=typeof e=="function"?e(r):e;if(n)return{"@global":n}}function _t(r,e){if(!(!e||typeof e=="string")){if(typeof e=="object"){const n={...r},s=r.spacing(1);return typeof s=="number"&&(n.spacing=ae(s)),Object.fromEntries(Object.entries(e).map(([a,c])=>typeof c=="function"?[a,c({theme:n})]:[a,c]))}return e}}const ee=/^&.Mui-([\w-]+)$/;function qt(r){let e=r;if(!r||typeof r!="object")return e;for(const n of Object.keys(r)){const s=r[n];if(!(!s||typeof s!="object"))for(const a of Object.keys(s)){const c=a,m=c.match(ee);if(m){const[,y]=m,{[c]:w,...U}=s;w&&(e={...e,[n]:U,[y]:w})}}}return e}function Wt(r,e={}){const n={},s={};for(const a of Object.keys(e)){const c=e[a];c&&("styleOverrides"in c&&(a==="MuiCssBaseline"?n[a]=Qt(r,c.styleOverrides):n[a]=qt(_t(r,c.styleOverrides))),"defaultProps"in c&&(s[a]=c.defaultProps))}return{overrides:n,props:s}}var $t=new WeakMap;class Jt{getTheme(e){return(0,Lt._)(this,$t).get(e)}constructor(e,n){(0,h._)(this,$t,{writable:!0,value:new Map}),(0,b._)(this,$t,new Map),e&&(0,Lt._)(this,$t).set("v4",e),n&&(0,Lt._)(this,$t).set("v5",n)}}function ce(r){const e=Vt(r),n={...pe,...r.components},s=(0,Z.Z)({...e,components:n}),a=Wt(s,n),c={...(0,j.Z)(e),...a};return new Jt(c,s)}function Pe(r){const e=adaptV4Theme(r),n=createTheme(r);return new Jt(n,e)}const se={light:ce({palette:Un.light}),dark:ce({palette:Un.dark})};var $e=t(98192),de=t(15222);const Fe=[{id:"light",title:"Light Theme",variant:"light",icon:(0,i.jsx)(de.Z,{}),Provider:({children:r})=>(0,i.jsx)(Bn,{theme:se.light,children:r})},{id:"dark",title:"Dark Theme",variant:"dark",icon:(0,i.jsx)($e.Z,{}),Provider:({children:r})=>(0,i.jsx)(Bn,{theme:se.dark,children:r})}];var gn=t(64279),Bo=t(13980),Uo=t.n(Bo);class _r{get(e){for(const n of this.holders){const s=n.get(e);if(s)return s}}constructor(...e){(0,v._)(this,"holders",void 0),this.holders=e}}var $n=t(29651),Fn=t(68993);const qo=(0,$n.CT)("api-context"),$o=r=>{var e;const{apis:n,children:s}=r,a=(e=(0,d.useContext)(qo))===null||e===void 0?void 0:e.atVersion(1),c=a?new _r(n,a):n;return(0,i.jsx)(qo.Provider,{value:(0,Fn.E)({1:c}),children:s})};$o.propTypes={apis:Uo().shape({get:Uo().func.isRequired}).isRequired,children:Uo().node};var Yr=t(9850),Qr=t.n(Yr),Jr=t(12782),Xr=t.n(Jr);const qr=/^[a-z][a-z0-9]*(?:[-_][a-z][a-z0-9]*)*$/i;function pn(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)}function Fo(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 Re={type(r,e,n,s){return`Invalid type in config for key '${r}' in '${e}', got ${n}, wanted ${s}`},missing(r){return`Missing required config value at '${r}'`},convert(r,e,n){return`Unable to convert config value for key '${r}' in '${e}' to a ${n}`}};class en{static fromConfigs(e){return e.length===0?new en(void 0):e.reduce((n,{data:s,context:a,filteredKeys:c,deprecatedKeys:m})=>{const y=new en(s,a,n);if(y.filteredKeys=c,m)for(const{key:w,description:U}of m)console.warn(`The configuration key '${w}' of ${a} is deprecated and may be removed soon. ${U||""}`);return y},void 0)}has(e){var n;if(this.readValue(e)!==void 0)return!0;var a;return(a=(n=this.fallback)===null||n===void 0?void 0:n.has(e))!==null&&a!==void 0?a:!1}keys(){var e;const n=this.data?Object.keys(this.data):[];var s;const a=(s=(e=this.fallback)===null||e===void 0?void 0:e.keys())!==null&&s!==void 0?s:[];return[...new Set([...n,...a])]}get(e){const n=this.getOptional(e);if(n===void 0)throw new Error(Re.missing(this.fullKey(e!=null?e:"")));return n}getOptional(e){var n;const s=Qr()(this.readValue(e)),a=(n=this.fallback)===null||n===void 0?void 0:n.getOptional(e);if(s===void 0){if(!1)var c;return a}else if(a===void 0)return s;return Xr()({},{value:a},{value:s},(m,y)=>!pn(y)||!pn(m)?y:void 0).value}getConfig(e){const n=this.getOptionalConfig(e);if(n===void 0)throw new Error(Re.missing(this.fullKey(e)));return n}getOptionalConfig(e){var n;const s=this.readValue(e),a=(n=this.fallback)===null||n===void 0?void 0:n.getOptionalConfig(e);if(pn(s))return this.copy(s,e,a);if(s!==void 0)throw new TypeError(Re.type(this.fullKey(e),this.context,Fo(s),"object"));return a}getConfigArray(e){const n=this.getOptionalConfigArray(e);if(n===void 0)throw new Error(Re.missing(this.fullKey(e)));return n}getOptionalConfigArray(e){const n=this.readConfigValue(e,a=>{if(!Array.isArray(a))return{expected:"object-array"};for(const[c,m]of a.entries())if(!pn(m))return{expected:"object-array",value:m,key:`${e}[${c}]`};return!0});if(!n){if(!1)var s;return}return n.map((a,c)=>this.copy(a,`${e}[${c}]`))}getNumber(e){const n=this.getOptionalNumber(e);if(n===void 0)throw new Error(Re.missing(this.fullKey(e)));return n}getOptionalNumber(e){const n=this.readConfigValue(e,a=>typeof a=="number"||typeof a=="string"||{expected:"number"});if(typeof n=="number"||n===void 0)return n;const s=Number(n);if(!Number.isFinite(s))throw new Error(Re.convert(this.fullKey(e),this.context,"number"));return s}getBoolean(e){const n=this.getOptionalBoolean(e);if(n===void 0)throw new Error(Re.missing(this.fullKey(e)));return n}getOptionalBoolean(e){const n=this.readConfigValue(e,a=>typeof a=="boolean"||typeof a=="number"||typeof a=="string"||{expected:"boolean"});if(typeof n=="boolean"||n===void 0)return n;const s=String(n).trim();if(/^(?:y|yes|true|1|on)$/i.test(s))return!0;if(/^(?:n|no|false|0|off)$/i.test(s))return!1;throw new Error(Re.convert(this.fullKey(e),this.context,"boolean"))}getString(e){const n=this.getOptionalString(e);if(n===void 0)throw new Error(Re.missing(this.fullKey(e)));return n}getOptionalString(e){return this.readConfigValue(e,n=>typeof n=="string"&&n!==""||{expected:"string"})}getStringArray(e){const n=this.getOptionalStringArray(e);if(n===void 0)throw new Error(Re.missing(this.fullKey(e)));return n}getOptionalStringArray(e){return this.readConfigValue(e,n=>{if(!Array.isArray(n))return{expected:"string-array"};for(const[s,a]of n.entries())if(typeof a!="string"||a==="")return{expected:"string-array",value:a,key:`${e}[${s}]`};return!0})}fullKey(e){return`${this.prefix}${this.prefix?".":""}${e}`}copy(e,n,s){const a=new en(e,this.context,s,this.fullKey(n));return a.filteredKeys=this.filteredKeys,a}readConfigValue(e,n){const s=this.readValue(e);if(s===void 0){var a;if(!1)var c;return(a=this.fallback)===null||a===void 0?void 0:a.readConfigValue(e,n)}const m=n(s);if(m!==!0){const{key:y=e,value:w=s,expected:U}=m;throw new TypeError(Re.type(this.fullKey(y),this.context,Fo(w),U))}return s}readValue(e){const n=e?e.split("."):[];for(const a of n)if(!qr.test(a))throw new TypeError(`Invalid config key '${e}'`);if(this.data===void 0)return;let s=this.data;for(const[a,c]of n.entries())if(pn(s))s=s[c];else if(s!==void 0){const m=this.fullKey(n.slice(0,a).join("."));throw new TypeError(Re.type(m,this.context,Fo(s),"object"))}return s}constructor(e,n="mock-config",s,a=""){(0,v._)(this,"data",void 0),(0,v._)(this,"context",void 0),(0,v._)(this,"fallback",void 0),(0,v._)(this,"prefix",void 0),(0,v._)(this,"filteredKeys",void 0),(0,v._)(this,"notifiedFilteredKeys",void 0),this.data=e,this.context=n,this.fallback=s,this.prefix=a,this.notifiedFilteredKeys=new Set}}const vn="theme";class Wn{static createWithStorage(e){const n=new Wn(e);if(!window.localStorage)return n;var s;const a=(s=window.localStorage.getItem(vn))!==null&&s!==void 0?s:void 0;return n.setActiveThemeId(a),n.activeThemeId$().subscribe(c=>{c?window.localStorage.setItem(vn,c):window.localStorage.removeItem(vn)}),window.addEventListener("storage",c=>{if(c.key===vn){var m;const y=(m=localStorage.getItem(vn))!==null&&m!==void 0?m:void 0;n.setActiveThemeId(y)}}),n}getInstalledThemes(){return this.themes.slice()}activeThemeId$(){return this.subject}getActiveThemeId(){return this.activeThemeId}setActiveThemeId(e){this.activeThemeId=e,this.subject.next(e)}constructor(e){(0,v._)(this,"themes",void 0),(0,v._)(this,"activeThemeId",void 0),(0,v._)(this,"subject",void 0),this.themes=e,this.subject=new rt(void 0)}}var nn=t(82723);function tr(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 ts{registerFlag(e){tr(e.name),this.registeredFeatureFlags.push(e)}getRegisteredFlags(){return this.registeredFeatureFlags.slice()}isActive(e){return this.flags||(this.flags=this.load()),this.flags.get(e)===nn.C.Active}save(e){this.flags||(this.flags=this.load()),e.merge||this.flags.clear();for(const[s,a]of Object.entries(e.states))this.flags.set(s,a);const n=Array.from(this.flags.entries()).filter(([,s])=>s===nn.C.Active);window.localStorage.setItem("featureFlags",JSON.stringify(Object.fromEntries(n)))}load(){try{const e=window.localStorage.getItem("featureFlags");if(!e)return new Map;const n=JSON.parse(e);if(typeof n!="object"||n===null||Array.isArray(n))return new Map;const s=Object.entries(n).filter(([a,c])=>(tr(a),c===nn.C.Active));return new Map(s)}catch{return new Map}}constructor(){(0,v._)(this,"registeredFeatureFlags",[]),(0,v._)(this,"flags",void 0)}}const Nn=(0,Kt.T)({id:"core.apptheme"}),er=(0,Kt.T)({id:"core.applanguage"});var es=t(96253);class Wo{static validateFactories(e,n){for(const s of n){const a=[s],c=new Set;for(;a.length;){const m=a.shift(),y=e.get(m);if(y)for(const w of Object.values(y.deps)){if(w.id===s.id)throw new Error(`Circular dependency of api factory for ${s}`);c.has(w)||(c.add(w),a.push(w))}}}}get(e){return this.load(e)}load(e,n=[]){const s=this.apis.get(e.id);if(s)return s;const a=this.factories.get(e);if(!a)return;if(n.includes(a.api))throw new Error(`Circular dependency of api factory for ${a.api}`);const c=this.loadDeps(e,a.deps,[...n,a.api]),m=a.factory(c);return this.apis.set(e.id,m),m}loadDeps(e,n,s){const a={};for(const c in n)if(n.hasOwnProperty(c)){const m=n[c],y=this.load(m,s);if(!y)throw new Error(`No API factory available for dependency ${m} of dependent ${e}`);a[c]=y}return a}constructor(e){(0,v._)(this,"factories",void 0),(0,v._)(this,"apis",void 0),this.factories=e,this.apis=new Map}}var No;(function(r){r[r.default=10]="default",r[r.app=50]="app",r[r.static=100]="static"})(No||(No={}));class ns{register(e,n){const s=No[e],a=this.factories.get(n.api.id);return a&&a.priority>=s?!1:(this.factories.set(n.api.id,{priority:s,factory:n}),!0)}get(e){const n=this.factories.get(e.id);if(n)return n.factory}getAllApis(){const e=new Set;for(const{factory:n}of this.factories.values())e.add(n.api);return e}constructor(){(0,v._)(this,"factories",new Map)}}function os(r){const e={};for(const s in r.collectors)r.collectors.hasOwnProperty(s)&&(e[s]=r.collectors[s]());const n=[{node:d.Children.toArray(r.root),parent:void 0,contexts:{}}];for(;n.length!==0;){const{node:s,parent:a,contexts:c}=n.shift();d.Children.forEach(s,m=>{if(!(0,d.isValidElement)(m))return;const y={};for(const w in e)if(e.hasOwnProperty(w)){const U=e[w];y[w]=U.visit(U.accumulator,m,a,c[w])}for(const w of r.discoverers){const U=w(m);U&&n.push({node:U,parent:m,contexts:y})}})}return Object.fromEntries(Object.entries(e).map(([s,a])=>[s,a.accumulator]))}function Zn(r,e){return()=>({accumulator:r(),visit:e})}function rs(r){var e;return(e=r.props)===null||e===void 0?void 0:e.children}function ss(r){var e,n;if(!((e=r.props)===null||e===void 0)&&e.path&&(!((n=r.props)===null||n===void 0)&&n.element)){var s;return(s=r.props)===null||s===void 0?void 0:s.element}}var Ee=t(62584);const is=Zn(()=>new Set,(r,e)=>{const n=(0,Ee.I)(e,"core.plugin");n&&r.add(n)});var mn=t(44394);const nr=r=>{const{children:e}=r,n=(0,mn.h_)(nn.W),s="with"in r?n.isActive(r.with):!n.isActive(r.without);return(0,i.jsx)(i.Fragment,{children:s?e:null})};(0,Ee.R)(nr,"core.featureFlagged",!0);const Kn={caseSensitive:!1,path:"*",element:"match-all",routeRefs:new Set,plugins:new Set};function kn(r){const e=r;if(e!=null&&e.type){var n,s;return(s=(n=e.type.displayName)!==null&&n!==void 0?n:e.type.name)!==null&&s!==void 0?s:String(e.type)}return String(e)}const or=r=>{const e=new Set;return r&&e.add(r),e};function rr(r,e=new Array){return d.Children.forEach(r,n=>{if(!(0,d.isValidElement)(n))return;const s=(0,Ee.I)(n,"core.mountPoint");if(s){const a=(0,Ee.I)(n,"core.plugin");e.push({routeRef:s,plugin:a})}rr(n.props.children,e)}),e}const as=Zn(()=>({paths:new Map,parents:new Map,objects:new Array}),(r,e,n,s)=>{var a,c;if(s!=null&&s.isElementAncestor)return s;if((n==null?void 0:n.props.element)===e)return{...s,isElementAncestor:!0};const m=(a=e.props)===null||a===void 0?void 0:a.path,y=(0,Ee.I)(e,"core.mountPoint");if(y&&m)throw new Error(`Path property may not be set directly on a routable extension "${kn(e)}"`);var w;const U=(w=s==null||(c=s.obj)===null||c===void 0?void 0:c.children)!==null&&w!==void 0?w:r.objects;if(m!==void 0){if(typeof m!="string")throw new Error(`Element path must be a string at "${kn(e)}"`);const St=m.startsWith("/")?m.slice(1):m,Nt=e.props.element;if((0,Ee.I)(e,"core.gatherMountPoints")){var nt;if(Nt)throw new Error(`Mount point gatherers may not have an element prop "${kn(e)}"`);const Dt={path:St,element:"gathered",routeRefs:new Set,caseSensitive:Boolean((nt=e.props)===null||nt===void 0?void 0:nt.caseSensitive),children:[Kn],plugins:new Set};return U.push(Dt),{obj:Dt,gatherPath:St,routeRef:s==null?void 0:s.routeRef,gatherRouteRef:s==null?void 0:s.routeRef}}if(Nt){var at;const[Dt,...ue]=rr(Nt);if(ue.length>0)throw new Error(`Route element with path "${m}" may not contain multiple routable extensions`);if(!Dt)return s;const{routeRef:ve,plugin:Ke}=Dt,Pn={path:St,element:"mounted",routeRefs:new Set([ve]),caseSensitive:Boolean((at=e.props)===null||at===void 0?void 0:at.caseSensitive),children:[Kn],plugins:or(Ke)};return U.push(Pn),r.paths.set(ve,St),r.parents.set(ve,s==null?void 0:s.routeRef),{obj:Pn,routeRef:ve!=null?ve:s==null?void 0:s.routeRef,gatherPath:St,gatherRouteRef:s==null?void 0:s.gatherRouteRef}}}if(y){var vt;if((s==null?void 0:s.gatherPath)===void 0)throw new Error(`Routable extension "${kn(e)}" with mount point "${y}" must be assigned a path`);s==null||(vt=s.obj)===null||vt===void 0||vt.routeRefs.add(y);const St=(0,Ee.I)(e,"core.plugin");if(St){var lt;s==null||(lt=s.obj)===null||lt===void 0||lt.plugins.add(St)}return r.paths.set(y,s.gatherPath),r.parents.set(y,s==null?void 0:s.gatherRouteRef),{...s,routeRef:y}}return s}),ls=Zn(()=>({paths:new Map,parents:new Map,objects:new Array}),(r,e,n,s)=>{var a,c,m;if((n==null?void 0:n.props.element)===e)return s;let y=s==null?void 0:s.obj,w=s==null?void 0:s.routeRef,U=s==null?void 0:s.sticky;const nt=(a=e.props)===null||a===void 0?void 0:a.path;var at;const vt=(at=y==null?void 0:y.children)!==null&&at!==void 0?at:r.objects,lt=Boolean((c=e.props)===null||c===void 0?void 0:c.caseSensitive);let St=s==null?void 0:s.path;if((0,Ee.I)(e,"core.gatherMountPoints")){if(!nt)throw new Error("Mount point gatherer must have a path");St=nt}const Nt=(m=e.props)===null||m===void 0?void 0:m.element;let Dt=(0,Ee.I)(e,"core.mountPoint");if(!Dt&&(0,d.isValidElement)(Nt)&&(Dt=(0,Ee.I)(Nt,"core.mountPoint")),Dt){let Ke=nt;if(St&&(Ke?St=void 0:Ke=St),!Ke)throw new Error("Mounted routable extension must have a path");r.paths.set(Dt,Ke),w&&U?(r.parents.set(Dt,w),nt&&(w=Dt,U=!1)):(r.parents.set(Dt,w),w=Dt),nt?(y={caseSensitive:lt,path:nt,element:"mounted",routeRefs:new Set([Dt]),children:[Kn],plugins:or((0,Ee.I)(e.props.element,"core.plugin"))},vt.push(y)):y==null||y.routeRefs.add(Dt)}if((0,Ee.I)(e,"core.gatherMountPoints")&&(U=!0),(0,Ee.I)(e,"core.gatherMountPoints")){if(!nt)throw new Error("Mount point gatherer must have a path");if(!Dt){var ve;y={caseSensitive:lt,path:nt,element:"gathered",routeRefs:new Set,children:[Kn],plugins:(s==null||(ve=s.obj)===null||ve===void 0?void 0:ve.plugins)||new Set},vt.push(y)}}return{obj:y,path:St,routeRef:w,sticky:U}}),cs=Zn(()=>new Set,(r,e)=>{if(e.type===nr){const n=e.props;r.add("with"in n?n.with:n.without)}});var yn=t(84800),ds=t(96087);const En=(0,ds.u)("route-ref-type",()=>Symbol("route-ref-type"));function sr(r){return r[En]==="absolute"}function ir(r){return r[En]==="sub"}function us(r){return r[En]==="external"}function zn(...r){const e=r.join("/").replace(/\/\/+/g,"/");return e!=="/"&&e.endsWith("/")?e.slice(0,-1):e}function hs(r,e,n){let s,a="";if(sr(r))s=r;else if(ir(r))s=r.parent,a=r.path;else if(us(r)){const y=n.get(r);if(!y)return[void 0,""];if(sr(y))s=y;else if(ir(y))s=y.parent,a=y.path;else throw new Error(`ExternalRouteRef was bound to invalid target, ${y}`)}else throw r[En]?new Error(`Unknown or invalid route ref type, ${r[En]}`):new Error(`Unknown object passed to useRouteRef, got ${r}`);if(!s)return[void 0,""];const c=e.get(s);if(c===void 0)return[void 0,""];const m=zn(c,a);return[s,m]}function fs(r,e,n,s,a){var c;const m=(c=(0,yn.fp)(a,e))!==null&&c!==void 0?c:[],y=Array();let w=-1;for(let at=r;at&&(w=m.findIndex(vt=>vt.route.routeRefs.has(at)),w===-1);at=s.get(at))y.unshift(at);y.length===0&&(w-=1);const U=w===-1?"":m[w].pathname,nt=y.slice(0,-1).map(at=>{const vt=n.get(at);if(vt===void 0)throw new Error(`No path for ${at}`);if(vt.includes(":"))throw new Error(`Cannot route to ${r} with parent ${at} as it has parameters`);return vt});return`${zn(U,...nt)}/`}class gs{resolve(e,n){const[s,a]=hs(e,this.routePaths,this.routeBindings);if(!s)return;let c;typeof n=="string"?c=this.trimPath(n):n.pathname?c={...n,pathname:this.trimPath(n.pathname)}:c=n;const m=this.appBasePath+fs(s,c,this.routePaths,this.routeParents,this.routeObjects);return(...[w])=>zn(m,(0,yn.Gn)(a,w))}trimPath(e){return e&&(e.startsWith(this.appBasePath)?e.slice(this.appBasePath.length):e)}constructor(e,n,s,a,c){(0,v._)(this,"routePaths",void 0),(0,v._)(this,"routeParents",void 0),(0,v._)(this,"routeObjects",void 0),(0,v._)(this,"routeBindings",void 0),(0,v._)(this,"appBasePath",void 0),this.routePaths=e,this.routeParents=n,this.routeObjects=s,this.routeBindings=a,this.appBasePath=c}}const ps=(0,$n.CT)("routing-context"),vs=({routePaths:r,routeParents:e,routeObjects:n,routeBindings:s,basePath:a="",children:c})=>{const m=new gs(r,e,n,s,a),y=(0,Fn.E)({1:m});return(0,i.jsx)(ps.Provider,{value:y,children:c})};function ms(r,e){const n=new Set(e.values());n.delete(void 0);for(const s of e.keys()){if(n.has(s))continue;let a=s,c="";for(;a;){const y=r.get(a);if(y===void 0)throw new Error(`No path for ${a}`);c=zn(y,c),a=e.get(a)}const m=c.match(/:(\w+)/g);if(m){for(let y=0;y<m.length;y++)for(let w=y+1;w<m.length;w++)if(m[w]===m[y])throw new Error(`Parameter ${m[w]} is duplicated in path ${c}`)}}}function ys(r,e){for(const n of e)if(n.externalRoutes){for(const[s,a]of Object.entries(n.externalRoutes))if(!a.optional&&!r.has(a))throw new Error(`External route '${s}' of the '${n.getId()}' plugin must be bound to a target route. See https://backstage.io/link?bind-routes for details.`)}}const Es=(0,$n.CT)("app-context"),xs=({appContext:r,children:e})=>{const n=(0,Fn.E)({1:r});return(0,i.jsx)(Es.Provider,{value:n,children:e})};function ar(r){return new Error(`Tried to access IdentityApi ${r} before app was loaded`)}function Zo(r){console.warn(`WARNING: Call to ${r} is deprecated and will break in the future`)}class Cs{setTarget(e,n){this.target=e,this.signOutTargetUrl=n.signOutTargetUrl,this.resolveTarget(e)}getUserId(){if(!this.target)throw ar("getUserId");if(!this.target.getUserId)throw new Error("IdentityApi does not implement getUserId");return Zo("getUserId"),this.target.getUserId()}getProfile(){if(!this.target)throw ar("getProfile");if(!this.target.getProfile)throw new Error("IdentityApi does not implement getProfile");return Zo("getProfile"),this.target.getProfile()}async getProfileInfo(){return this.waitForTarget.then(e=>e.getProfileInfo())}async getBackstageIdentity(){const e=await this.waitForTarget.then(n=>n.getBackstageIdentity());return e.userEntityRef.match(/^.*:.*\/.*$/)||console.warn(`WARNING: The App IdentityApi provided an invalid userEntityRef, '${e.userEntityRef}'. It must be a full Entity Reference of the form '<kind>:<namespace>/<name>'.`),e}async getCredentials(){return this.waitForTarget.then(e=>e.getCredentials())}async getIdToken(){return this.waitForTarget.then(e=>{if(!e.getIdToken)throw new Error("IdentityApi does not implement getIdToken");return Zo("getIdToken"),e.getIdToken()})}async signOut(){await this.waitForTarget.then(e=>e.signOut()),window.location.href=this.signOutTargetUrl}constructor(){(0,v._)(this,"target",void 0),(0,v._)(this,"waitForTarget",void 0),(0,v._)(this,"resolveTarget",()=>{}),(0,v._)(this,"signOutTargetUrl","/"),this.waitForTarget=new Promise(e=>{this.resolveTarget=e})}}var As=t(72164);function Ss(r,e,n){if(r!==void 0){const a=n.find(c=>c.id===r);if(a)return a}if(e){const a=n.find(c=>c.variant==="dark");if(a)return a}const s=n.find(a=>a.variant==="light");return s||n[0]}const Os=()=>{const r=(0,d.useMemo)(()=>window.matchMedia("(prefers-color-scheme: dark)"),[]),[e,n]=(0,d.useState)(r.matches);return(0,d.useEffect)(()=>{const s=a=>{n(a.matches)};return r.addListener(s),()=>{r.removeListener(s)}},[r]),e};function lr({children:r}){const e=(0,mn.h_)(Nn),n=(0,As.Z)(e.activeThemeId$(),e.getActiveThemeId()),s=Boolean(window.matchMedia)?Os():!1,a=Ss(n,s,e.getInstalledThemes());if(!a)throw new Error("App has no themes");return(0,i.jsx)(a.Provider,{children:r})}const cr=async()=>bs();function bs(r="__APP_INJECTED_RUNTIME_CONFIG__"){const e=[{context:"app-config.yaml",data:{app:{title:"Techdocs Preview App",baseUrl:"http://localhost:3000"},backend:{baseUrl:"http://localhost:3000"},techdocs:{builder:"external"}}}];if(!e)throw new Error("No static configuration provided");if(!Array.isArray(e))throw new Error("Static configuration has invalid format");const n=e.slice();if(r!=="__app_injected_runtime_config__".toLocaleUpperCase("en-US"))try{const a=JSON.parse(r);Array.isArray(a)?n.push(...a):n.push({data:a,context:"env"})}catch(a){throw new Error(`Failed to load runtime configuration, ${a}`)}const s=window.__APP_CONFIG__;return s&&n.push({context:"window",data:s}),n}class Ps{add(e,n){return this.apis.push([e.id,n]),n}build(){return new on(new Map(this.apis))}constructor(){(0,v._)(this,"apis",[])}}class on{static builder(){return new Ps}static from(e){return new on(new Map(e.map(([n,s])=>[n.id,s])))}static with(e,n){return new on(new Map([[e.id,n]]))}with(e,n){return new on(new Map([...this.apis,[e.id,n]]))}get(e){return this.apis.get(e.id)}constructor(e){(0,v._)(this,"apis",void 0),this.apis=e}}function Rs(r){const e=new Map;return r&&r({bind:(s,a)=>{for(const[c,m]of Object.entries(a)){const y=s[c];if(!y)throw new Error(`Key ${c} is not an existing external route`);if(!m&&!y.optional)throw new Error(`External route ${c} is required but was undefined`);m&&e.set(y,m)}}}),e}function xn(){const[r]=(0,p.is)((0,i.jsx)(p.AW,{index:!0,element:(0,i.jsx)("div",{})}));return!r.index}const dr=(0,d.createContext)(void 0);var ur=t(80851),hr=t(62369),Ts=t(72388);const ws=(r,e)=>{try{const n=(0,yn.fp)(e,{pathname:r}),s=n==null?void 0:n.filter(w=>{var U;return(w==null||(U=w.route.routeRefs)===null||U===void 0?void 0:U.size)>0}).pop(),a=s==null?void 0:s.route;if(!a||a.path===""&&r!=="/")return;let c;a.routeRefs.size===1&&(c=a.routeRefs.values().next().value);let m;a.plugins.size===1&&(m=a.plugins.values().next().value);const y=Object.entries((s==null?void 0:s.params)||{}).reduce((w,[U,nt])=>(nt!==void 0&&U!=="*"&&(w[U]=nt),w),{});return{extension:"App",pluginId:(m==null?void 0:m.getId())||"root",...c?{routeRef:c.id}:{},_routeNodeType:a.element,params:y}}catch{return}},Is=({pathname:r,search:e,hash:n,attributes:s})=>{const a=(0,hr.z)();return(0,d.useEffect)(()=>{a.captureEvent("navigate",`${r}${e}${n}`,{attributes:s})},[a,r,e,n,s]),null},Hn=({routeObjects:r})=>{const{pathname:e,search:n,hash:s}=(0,p.TH)(),{params:a,...c}=ws(e,r)||{params:{}};return(0,i.jsx)(Ts.fC,{attributes:c,children:(0,i.jsx)(Is,{pathname:e,search:n,hash:s,attributes:a})})};function fr(r){return xn()?gr(r):""}function gr(r){var e;let{pathname:n}=new URL((e=r.getOptionalString("app.baseUrl"))!==null&&e!==void 0?e:"/","http://sample.dev");return n=n.replace(/\/*$/,""),n}function pr({component:r,appIdentityProxy:e,children:n}){const[s,a]=(0,d.useState)(),c=(0,mn.h_)(re.D),m=fr(c);return s?(e.setTarget(s,{signOutTargetUrl:m||"/"}),(0,i.jsx)(i.Fragment,{children:n})):(0,i.jsx)(r,{onSignInSuccess:a})}function Ds(r){const{Router:e,SignInPage:n}=(0,ur.q)().getComponents(),s=(0,mn.h_)(re.D),a=gr(s),c=`${a}/*`,m=(0,d.useContext)(dr);if(!m)throw new Error("AppRouter must be rendered within the AppProvider");const{routeObjects:y,appIdentityProxy:w}=m;return n?xn()?(0,i.jsxs)(e,{children:[(0,i.jsx)(Hn,{routeObjects:y}),(0,i.jsx)(pr,{component:n,appIdentityProxy:w,children:(0,i.jsx)(p.Z5,{children:(0,i.jsx)(p.AW,{path:c,element:(0,i.jsx)(i.Fragment,{children:r.children})})})})]}):(0,i.jsxs)(e,{basename:a,children:[(0,i.jsx)(Hn,{routeObjects:y}),(0,i.jsx)(pr,{component:n,appIdentityProxy:w,children:r.children})]}):(w.setTarget({getUserId:()=>"guest",getIdToken:async()=>{},getProfile:()=>({email:"guest@example.com",displayName:"Guest"}),getProfileInfo:async()=>({email:"guest@example.com",displayName:"Guest"}),getBackstageIdentity:async()=>({type:"user",userEntityRef:"user:default/guest",ownershipEntityRefs:["user:default/guest"]}),getCredentials:async()=>({}),signOut:async()=>{}},{signOutTargetUrl:a||"/"}),xn()?(0,i.jsxs)(e,{children:[(0,i.jsx)(Hn,{routeObjects:y}),(0,i.jsx)(p.Z5,{children:(0,i.jsx)(p.AW,{path:c,element:(0,i.jsx)(i.Fragment,{children:r.children})})})]}):(0,i.jsxs)(e,{basename:a,children:[(0,i.jsx)(Hn,{routeObjects:y}),r.children]}))}const Cn="language",We="en";var An=new WeakMap,rn=new WeakMap,Gn=new WeakMap;class Vn{static create(e){var n;const s=(n=e==null?void 0:e.availableLanguages)!==null&&n!==void 0?n:[We];if(s.length!==new Set(s).size)throw new Error(`Supported languages may not contain duplicates, got '${s.join("', '")}'`);if(!s.includes(We))throw new Error(`Supported languages must include '${We}'`);var a;const c=(a=e==null?void 0:e.defaultLanguage)!==null&&a!==void 0?a:We;if(!s.includes(c))throw new Error(`Initial language must be one of the supported languages, got '${c}'`);return new Vn(s,c)}static createWithStorage(e){const n=Vn.create(e);if(!window.localStorage)return n;const s=window.localStorage.getItem(Cn),{languages:a}=n.getAvailableLanguages();return s&&a.includes(s)&&n.setLanguage(s),n.language$().subscribe(({language:c})=>{c!==window.localStorage.getItem(Cn)&&window.localStorage.setItem(Cn,c)}),window.addEventListener("storage",c=>{if(c.key===Cn){var m;const y=(m=localStorage.getItem(Cn))!==null&&m!==void 0?m:void 0;y&&n.setLanguage(y)}}),n}getAvailableLanguages(){return{languages:(0,Lt._)(this,An).slice()}}setLanguage(e){const n=e!=null?e:We;if(n!==(0,Lt._)(this,rn)){if(n&&!(0,Lt._)(this,An).includes(n))throw new Error(`Failed to change language to '${n}', available languages are '${(0,Lt._)(this,An).join("', '")}'`);(0,b._)(this,rn,n),(0,Lt._)(this,Gn).next({language:n})}}getLanguage(){return{language:(0,Lt._)(this,rn)}}language$(){return(0,Lt._)(this,Gn)}constructor(e,n){(0,h._)(this,An,{writable:!0,value:void 0}),(0,h._)(this,rn,{writable:!0,value:void 0}),(0,h._)(this,Gn,{writable:!0,value:void 0}),(0,b._)(this,An,e),(0,b._)(this,rn,n),(0,b._)(this,Gn,new rt({language:(0,Lt._)(this,rn)}))}}var Ne=t(29190),_n=t(15356),Ms=t(24991),Ls=t(18015),vr=t(35304);function mr(r){return Object.fromEntries(Object.entries(r).filter(e=>e[1]!==null))}var sn=new WeakMap,Yn=new WeakMap,an=new WeakMap,Qn=new WeakSet;class js{addTranslationResource(e){const n=(0,Ls.W)(e);for(const s of n.resources){const a=(0,Ne._)(this,Qn,Ko).call(this,s.language,n.id);(0,Lt._)(this,an).has(a)||(0,Lt._)(this,an).set(a,s.loader)}}needsLoading(e,n){const s=(0,Ne._)(this,Qn,Ko).call(this,e,n);return(0,Lt._)(this,an).get(s)?!(0,Lt._)(this,sn).has(s):!1}async load(e,n){const s=(0,Ne._)(this,Qn,Ko).call(this,e,n),a=(0,Lt._)(this,an).get(s);if(!a||(0,Lt._)(this,sn).has(s))return;const c=(0,Lt._)(this,Yn).get(s);if(c){await c;return}const m=a().then(y=>{this.onLoad({language:e,namespace:n,messages:y.messages}),(0,Lt._)(this,sn).add(s)},y=>{throw(0,Lt._)(this,sn).add(s),y});(0,Lt._)(this,Yn).set(s,m),await m}constructor(e){(0,_n._)(this,Qn),(0,v._)(this,"onLoad",void 0),(0,h._)(this,sn,{writable:!0,value:void 0}),(0,h._)(this,Yn,{writable:!0,value:void 0}),(0,h._)(this,an,{writable:!0,value:void 0}),this.onLoad=e,(0,b._)(this,sn,new Set),(0,b._)(this,Yn,new Map),(0,b._)(this,an,new Map)}}function Ko(r,e){return`${r}/${e}`}var Sn=new WeakMap,ln=new WeakMap,qe=new WeakMap,ko=new WeakMap,Jn=new WeakMap,yr=new WeakSet,Xn=new WeakSet,zo=new WeakSet;class Ho{static create(e){const{languages:n}=e.languageApi.getAvailableLanguages(),s=(0,Ms.Fs)({fallbackLng:We,supportedLngs:n,interpolation:{escapeValue:!1},ns:[],defaultNS:!1,fallbackNS:!1,initImmediate:!1});if(s.init(),!s.isInitialized)throw new Error("i18next was unexpectedly not initialized");const{language:a}=e.languageApi.getLanguage();a!==We&&s.changeLanguage(a);const c=new js(w=>{s.addResourceBundle(w.language,w.namespace,mr(w.messages),!1,!0)}),m=(e==null?void 0:e.resources)||[];for(let w=m.length-1;w>=0;w--){const U=m[w];U.$$type==="@backstage/TranslationResource"?c.addTranslationResource(U):U.$$type==="@backstage/TranslationMessages"&&s.addResourceBundle(We,U.id,mr(U.messages),!0,!1)}const y=new Ho(s,c,e.languageApi.getLanguage().language);return e.languageApi.language$().subscribe(({language:w})=>{(0,Ne._)(y,yr,Bs).call(y,w)}),y}getTranslation(e){const n=(0,vr.y)(e);return(0,Ne._)(this,zo,Er).call(this,n),(0,Ne._)(this,Xn,Go).call(this,n)}translation$(e){const n=(0,vr.y)(e);return(0,Ne._)(this,zo,Er).call(this,n),new(H())(s=>{let a={},c=!1;const m=()=>{a={};const w=a;(0,Lt._)(this,ln).load((0,Lt._)(this,qe),n.id).then(()=>{if(w===a){const U=(0,Ne._)(this,Xn,Go).call(this,n);(U.ready||c)&&(c=U.ready,s.next(U))}},U=>{w===a&&s.error(Array.isArray(U)?U[0]:U)})},y=()=>{const w=(0,Ne._)(this,Xn,Go).call(this,n);c&&!w.ready&&(c=w.ready,s.next(w)),w.ready||m()};return(0,Lt._)(this,ln).needsLoading((0,Lt._)(this,qe),n.id)&&m(),(0,Lt._)(this,Jn).add(y),()=>{(0,Lt._)(this,Jn).delete(y)}})}constructor(e,n,s){(0,_n._)(this,yr),(0,_n._)(this,Xn),(0,_n._)(this,zo),(0,h._)(this,Sn,{writable:!0,value:void 0}),(0,h._)(this,ln,{writable:!0,value:void 0}),(0,h._)(this,qe,{writable:!0,value:void 0}),(0,h._)(this,ko,{writable:!0,value:new Set}),(0,h._)(this,Jn,{writable:!0,value:new Set}),(0,b._)(this,Sn,e),(0,b._)(this,ln,n),(0,b._)(this,qe,s)}}function Bs(r){(0,Lt._)(this,qe)!==r&&((0,b._)(this,qe,r),(0,Lt._)(this,Sn).changeLanguage(r),(0,Lt._)(this,Jn).forEach(e=>e()))}function Go(r){return(0,Lt._)(this,ln).needsLoading((0,Lt._)(this,qe),r.id)?{ready:!1}:{ready:!0,t:(0,Lt._)(this,Sn).getFixedT(null,r.id)}}function Er(r){if((0,Lt._)(this,ko).has(r.id))return;(0,Lt._)(this,ko).add(r.id);const e=r.getDefaultMessages();(0,Lt._)(this,Sn).addResourceBundle(We,r.id,e,!0,!1);const n=r.getDefaultResource();n&&(0,Lt._)(this,ln).addTranslationResource(n)}function xr(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 Us(r){const e=en.fromConfigs(r),n=e.getOptionalString("app.baseUrl"),s=e.getOptionalString("backend.baseUrl");let a=r,c,m;if(n&&s){const y=new URL(n).origin,w=new URL(s).origin;if(y===w){const U=xr(s);s!==U&&(c=U)}}if(n){const y=xr(n);n!==y&&(m=y)}return(m||c)&&(a=a.concat({data:{app:m&&{baseUrl:m},backend:c&&{baseUrl:c}},context:"relative-resolver"})),a}function $s(r,e,n){var s;const a=Boolean(r),c=(0,gn.default)(r||(()=>Promise.resolve([])));let m;if(a&&c.loading){const{Progress:U}=e;m=(0,i.jsx)(U,{})}else if(c.error){const{BootErrorPage:U}=e;m=(0,i.jsx)(U,{step:"load-config",error:c.error})}const{ThemeProvider:y=lr}=e;return m?{node:(0,i.jsx)($o,{apis:on.with(Nn,n),children:(0,i.jsx)(y,{children:m})})}:{api:en.fromConfigs(!((s=c.value)===null||s===void 0)&&s.length?Us(c.value):[])}}class Fs{getPlugins(){return this.app.getPlugins()}getSystemIcon(e){return this.app.getSystemIcon(e)}getSystemIcons(){return this.app.getSystemIcons()}getComponents(){return this.app.getComponents()}constructor(e){(0,v._)(this,"app",void 0),this.app=e}}var Vo=new WeakMap;class Ws{getPlugins(){return Array.from(this.plugins)}getSystemIcon(e){return this.icons[e]}getSystemIcons(){return this.icons}getComponents(){return this.components}createRoot(e){const n=this.getProvider();return()=>(0,i.jsx)(n,{children:e})}getProvider(){if((0,Lt._)(this,Vo))throw new Error("app.getProvider() or app.createRoot() has already been called, and can only be called once");(0,b._)(this,Vo,!0);const e=new Fs(this);let n=!1;return({children:a})=>{const c=(0,d.useRef)(!0),m=(0,d.useMemo)(()=>Wn.createWithStorage(this.themes),[]),{routing:y,featureFlags:w,routeBindings:U}=(0,d.useMemo)(()=>{const lt=os({root:a,discoverers:[rs,ss],collectors:{routing:xn()?ls:as,collectedPlugins:is,featureFlags:cs}});return lt.collectedPlugins.forEach(St=>this.plugins.add(St)),this.verifyPlugins(this.plugins),this.getApiHolder(),{...lt,routeBindings:Rs(this.bindRoutes)}},[a]);n||(n=!0,ms(y.paths,y.parents),ys(U,this.plugins));const nt=$s(this.configLoader,this.components,m),at="api"in nt;if(at){const{api:lt}=nt;this.configApi=lt}if("node"in nt)return nt.node;if(at&&c.current){c.current=!1;const lt=this.getApiHolder().get(nn.W);if(lt){for(const Dt of this.featureFlags)lt.registerFlag({...Dt,pluginId:""});for(const Dt of this.plugins.values())if("getFeatureFlags"in Dt)for(const ue of Dt.getFeatureFlags())lt.registerFlag({name:ue.name,pluginId:Dt.getId()});else for(const ue of Dt.output())ue.type==="feature-flag"&&lt.registerFlag({name:ue.name,pluginId:Dt.getId()});const St=lt.getRegisteredFlags(),Nt=new Set(St.map(Dt=>Dt.name));for(const Dt of w)Nt.has(Dt)||lt.registerFlag({name:Dt,pluginId:""})}}const{ThemeProvider:vt=lr}=this.components;return(0,i.jsx)($o,{apis:this.getApiHolder(),children:(0,i.jsx)(xs,{appContext:e,children:(0,i.jsx)(vt,{children:(0,i.jsx)(vs,{routePaths:y.paths,routeParents:y.parents,routeObjects:y.objects,routeBindings:U,basePath:fr(nt.api),children:(0,i.jsx)(dr.Provider,{value:{routeObjects:y.objects,appIdentityProxy:this.appIdentityProxy},children:a})})})})})}}getRouter(){return Ds}getApiHolder(){if(this.apiHolder){for(const e of this.plugins)for(const n of e.getApis())this.apiFactoryRegistry.get(n.api)||this.apiFactoryRegistry.register("default",n);return Wo.validateFactories(this.apiFactoryRegistry,this.apiFactoryRegistry.getAllApis()),this.apiHolder}this.apiFactoryRegistry.register("static",{api:Nn,deps:{},factory:()=>Wn.createWithStorage(this.themes)}),this.apiFactoryRegistry.register("static",{api:re.D,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:Je.$,deps:{},factory:()=>this.appIdentityProxy}),this.apiFactoryRegistry.register("static",{api:er,deps:{},factory:()=>this.appLanguageApi}),this.apiFactoryRegistry.register("default",{api:es.o,deps:{languageApi:er},factory:({languageApi:e})=>Ho.create({languageApi:e,resources:this.translationResources})}),this.apiFactoryRegistry.register("default",{api:nn.W,deps:{},factory:()=>new ts});for(const e of this.defaultApis)this.apiFactoryRegistry.register("default",e);for(const e of this.plugins)for(const n of e.getApis())if(!this.apiFactoryRegistry.register("default",n))throw new Error(`Plugin ${e.getId()} tried to register duplicate or forbidden API factory for ${n.api}`);for(const e of this.apis)if(!this.apiFactoryRegistry.register("app",e))throw new Error(`Duplicate or forbidden API factory for ${e.api} in app`);return Wo.validateFactories(this.apiFactoryRegistry,this.apiFactoryRegistry.getAllApis()),this.apiHolder=new Wo(this.apiFactoryRegistry),this.apiHolder}verifyPlugins(e){const n=new Set;for(const s of e){const a=s.getId();if(n.has(a))throw new Error(`Duplicate plugin found '${a}'`);n.add(a)}}constructor(e){var n,s,a;(0,v._)(this,"apiHolder",void 0),(0,v._)(this,"configApi",void 0),(0,v._)(this,"apis",void 0),(0,v._)(this,"icons",void 0),(0,v._)(this,"plugins",void 0),(0,v._)(this,"featureFlags",void 0),(0,v._)(this,"components",void 0),(0,v._)(this,"themes",void 0),(0,v._)(this,"configLoader",void 0),(0,v._)(this,"defaultApis",void 0),(0,v._)(this,"bindRoutes",void 0),(0,v._)(this,"appLanguageApi",void 0),(0,v._)(this,"translationResources",void 0),(0,v._)(this,"appIdentityProxy",new Cs),(0,v._)(this,"apiFactoryRegistry",void 0),(0,h._)(this,Vo,{writable:!0,value:!1});var c;this.apis=(c=e.apis)!==null&&c!==void 0?c:[],this.icons=e.icons;var m;this.plugins=new Set((m=e.plugins)!==null&&m!==void 0?m:[]);var y;this.featureFlags=(y=e.featureFlags)!==null&&y!==void 0?y:[],this.components=e.components,this.themes=e.themes;var w;this.configLoader=(w=e.configLoader)!==null&&w!==void 0?w:cr;var U;this.defaultApis=(U=e.defaultApis)!==null&&U!==void 0?U:[],this.bindRoutes=e.bindRoutes,this.apiFactoryRegistry=new ns,this.appLanguageApi=Vn.createWithStorage({defaultLanguage:(n=e.__experimentalTranslations)===null||n===void 0?void 0:n.defaultLanguage,availableLanguages:(s=e.__experimentalTranslations)===null||s===void 0?void 0:s.availableLanguages});var nt;this.translationResources=(nt=(a=e.__experimentalTranslations)===null||a===void 0?void 0:a.resources)!==null&&nt!==void 0?nt:[]}}function Ns(r){return new Ws(r)}function Zs(r){var e,n,s,a;return Ns({...r,apis:(e=r==null?void 0:r.apis)!==null&&e!==void 0?e:[],bindRoutes:r==null?void 0:r.bindRoutes,components:{...N,...r==null?void 0:r.components},configLoader:r==null?void 0:r.configLoader,defaultApis:un,icons:{...wo,...r==null?void 0:r.icons},plugins:(n=r==null?void 0:r.plugins)!==null&&n!==void 0?n:[],featureFlags:(s=r==null?void 0:r.featureFlags)!==null&&s!==void 0?s:[],themes:(a=r==null?void 0:r.themes)!==null&&a!==void 0?a:Fe})}var qn=t(2532);let Cr=!1;const Ks=r=>{const e=(0,ur.q)(),{NotFoundErrorPage:n}=e.getComponents(),s=(0,d.useMemo)(()=>xn(),[]),c=[...(0,qn.v)(r.children,m=>m.getElements().flatMap(y=>{let w=y.props.path;if(w==="")return[];var U;w=(U=w==null?void 0:w.replace(/\/\*$/,""))!==null&&U!==void 0?U:"/";let nt=s?y:y.props.element;return!s&&!nt&&(nt=y,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:w,element:nt,children:y.props.children?[{path:w==="/"?"/":"*",element:y.props.children}]:void 0}]}).sort((y,w)=>w.path.localeCompare(y.path)).map(y=>({...y,path:y.path==="/"?"/":`${y.path}/*`}))),{path:"*",element:(0,i.jsx)(n,{})}];return(0,p.V$)(c)};var On=t(74314),ks=t(51547),zs=t(88797);function Ar(r){return!r.cursor}function ia(r){return!Ar(r)}class Hs{async getEntityAncestors(e,n){const{kind:s,namespace:a,name:c}=(0,On.of)(e.entityRef);return await this.requestRequired("GET",`/entities/by-name/${encodeURIComponent(s)}/${encodeURIComponent(a)}/${encodeURIComponent(c)}/ancestry`,n)}async getLocationById(e,n){return await this.requestOptional("GET",`/locations/${encodeURIComponent(e)}`,n)}async getEntities(e,n){const{filter:s=[],fields:a=[],order:c,offset:m,limit:y,after:w}=e!=null?e:{},U=this.getParams(s);if(a.length&&U.push(`fields=${a.map(encodeURIComponent).join(",")}`),c)for(const lt of[c].flat())lt&&U.push(`order=${encodeURIComponent(lt.order)}:${encodeURIComponent(lt.field)}`);m!==void 0&&U.push(`offset=${m}`),y!==void 0&&U.push(`limit=${y}`),w!==void 0&&U.push(`after=${encodeURIComponent(w)}`);const nt=U.length?`?${U.join("&")}`:"",at=await this.requestRequired("GET",`/entities${nt}`,n),vt=(lt,St)=>{var Nt,Dt;if(((Nt=lt.metadata)===null||Nt===void 0?void 0:Nt.name)===void 0||lt.kind===void 0||((Dt=St.metadata)===null||Dt===void 0?void 0:Dt.name)===void 0||St.kind===void 0)return 0;const ue=(0,On.eE)(lt),ve=(0,On.eE)(St);return ue<ve?-1:ue>ve?1:0};return{items:at.sort(vt)}}async getEntitiesByRefs(e,n){var s;const a={entityRefs:e.entityRefs};!((s=e.fields)===null||s===void 0)&&s.length&&(a.fields=e.fields);const m=`${await this.discoveryApi.getBaseUrl("catalog")}/entities/by-refs`,y=await this.fetchApi.fetch(m,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"POST",body:JSON.stringify(a)});if(!y.ok)throw await He.V.fromResponse(y);const{items:w}=await y.json();return{items:w.map(U=>U!=null?U:void 0)}}async queryEntities(e={},n){const s=[];if(Ar(e)){var a,c;const{fields:y=[],filter:w,limit:U,orderFields:nt,fullTextFilter:at}=e;s.push(...this.getParams(w)),U!==void 0&&s.push(`limit=${U}`),nt!==void 0&&(Array.isArray(nt)?nt:[nt]).forEach(({field:lt,order:St})=>s.push(`orderField=${lt},${St}`)),y.length&&s.push(`fields=${y.map(encodeURIComponent).join(",")}`);const vt=at==null||(a=at.term)===null||a===void 0?void 0:a.trim();vt&&s.push(`fullTextFilterTerm=${vt}`),!(at==null||(c=at.fields)===null||c===void 0)&&c.length&&s.push(`fullTextFilterFields=${at.fields.join(",")}`)}else{const{fields:y=[],limit:w,cursor:U}=e;s.push(`cursor=${U}`),w!==void 0&&s.push(`limit=${w}`),y.length&&s.push(`fields=${y.map(encodeURIComponent).join(",")}`)}const m=s.length?`?${s.join("&")}`:"";return this.requestRequired("GET",`/entities/by-query${m}`,n)}async getEntityByRef(e,n){const{kind:s,namespace:a,name:c}=(0,On.of)(e);return this.requestOptional("GET",`/entities/by-name/${encodeURIComponent(s)}/${encodeURIComponent(a)}/${encodeURIComponent(c)}`,n)}async getEntityByName(e,n){const{kind:s,namespace:a="default",name:c}=e;return this.requestOptional("GET",`/entities/by-name/${encodeURIComponent(s)}/${encodeURIComponent(a)}/${encodeURIComponent(c)}`,n)}async refreshEntity(e,n){const s=await this.fetchApi.fetch(`${await this.discoveryApi.getBaseUrl("catalog")}/refresh`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"POST",body:JSON.stringify({entityRef:e})});if(s.status!==200)throw new Error(await s.text())}async getEntityFacets(e,n){const{filter:s=[],facets:a}=e,c=this.getParams(s);for(const y of a)c.push(`facet=${encodeURIComponent(y)}`);const m=c.length?`?${c.join("&")}`:"";return await this.requestOptional("GET",`/entity-facets${m}`,n)}async addLocation(e,n){const{type:s="url",target:a,dryRun:c}=e,m=await this.fetchApi.fetch(`${await this.discoveryApi.getBaseUrl("catalog")}/locations${c?"?dryRun=true":""}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"POST",body:JSON.stringify({type:s,target:a})});if(m.status!==201)throw new Error(await m.text());const{location:y,entities:w,exists:U}=await m.json();if(!y)throw new Error(`Location wasn't added: ${a}`);return{location:y,entities:w,exists:U}}async getLocationByRef(e,n){return(await this.requestRequired("GET","/locations",n)).map(a=>a.data).find(a=>e===(0,ks.NZ)(a))}async removeLocationById(e,n){await this.requestIgnored("DELETE",`/locations/${encodeURIComponent(e)}`,n)}async removeEntityByUid(e,n){await this.requestIgnored("DELETE",`/entities/by-uid/${encodeURIComponent(e)}`,n)}async validateEntity(e,n,s){const a=await this.fetchApi.fetch(`${await this.discoveryApi.getBaseUrl("catalog")}/validate-entity`,{headers:{"Content-Type":"application/json",...(s==null?void 0:s.token)&&{Authorization:`Bearer ${s==null?void 0:s.token}`}},method:"POST",body:JSON.stringify({entity:e,location:n})});if(a.ok)return{valid:!0};if(a.status!==400)throw await He.V.fromResponse(a);const{errors:c=[]}=await a.json();return{valid:!1,errors:c}}async requestIgnored(e,n,s){const a=`${await this.discoveryApi.getBaseUrl("catalog")}${n}`,c=s!=null&&s.token?{Authorization:`Bearer ${s.token}`}:{},m=await this.fetchApi.fetch(a,{method:e,headers:c});if(!m.ok)throw await He.V.fromResponse(m)}async requestRequired(e,n,s){const a=`${await this.discoveryApi.getBaseUrl("catalog")}${n}`,c=s!=null&&s.token?{Authorization:`Bearer ${s.token}`}:{},m=await this.fetchApi.fetch(a,{method:e,headers:c});if(!m.ok)throw await He.V.fromResponse(m);return m.json()}async requestOptional(e,n,s){const a=`${await this.discoveryApi.getBaseUrl("catalog")}${n}`,c=s!=null&&s.token?{Authorization:`Bearer ${s.token}`}:{},m=await this.fetchApi.fetch(a,{method:e,headers:c});if(!m.ok){if(m.status===404)return;throw await He.V.fromResponse(m)}return await m.json()}getParams(e=[]){const n=[];for(const s of[e].flat()){const a=[];for(const[c,m]of Object.entries(s))for(const y of[m].flat())y===zs.n?a.push(encodeURIComponent(c)):typeof y=="string"&&a.push(`${encodeURIComponent(c)}=${encodeURIComponent(y)}`);a.length&&n.push(`filter=${a.join(",")}`)}return n}constructor(e){(0,v._)(this,"discoveryApi",void 0),(0,v._)(this,"fetchApi",void 0),this.discoveryApi=e.discoveryApi,this.fetchApi=e.fetchApi||{fetch:Dn()}}}var Gs=t(88624),Vs=t(36802),Sr=t(36434),bn=t(65524),_s=t(15006),xe=t(82963),Ys=t(53945),cn=t(76635);async function Qs({storageApi:r}){const e=r.forBucket("settings"),n=r.forBucket("starredEntities"),s=e.snapshot("starredEntities").value;if(!(0,cn.isArray)(s))return;var a;const c=new Set((a=n.snapshot("entityRefs").value)!==null&&a!==void 0?a:[]);s.filter(cn.isString).map(m=>m.split(":")).filter(m=>m.length===4&&m[0]==="entity").map(([m,y,w,U])=>(0,On.eE)({kind:y,namespace:w,name:U})).forEach(m=>c.add(m)),await n.set("entityRefs",Array.from(c)),await e.remove("starredEntities")}class Js{async toggleStarred(e){this.starredEntities.has(e)?this.starredEntities.delete(e):this.starredEntities.add(e),await this.settingsStore.set("entityRefs",Array.from(this.starredEntities))}starredEntitie$(){return this.observable}notifyChanges(){for(const e of this.subscribers)e.next(new Set(this.starredEntities))}constructor(e){(0,v._)(this,"settingsStore",void 0),(0,v._)(this,"starredEntities",void 0),(0,v._)(this,"subscribers",new Set),(0,v._)(this,"observable",new(H())(s=>(s.next(new Set(this.starredEntities)),this.subscribers.add(s),()=>{this.subscribers.delete(s)}))),Qs(e).then(),this.settingsStore=e.storageApi.forBucket("starredEntities");var n;this.starredEntities=new Set((n=this.settingsStore.snapshot("entityRefs").value)!==null&&n!==void 0?n:[]),this.settingsStore.observe$("entityRefs").subscribe({next:s=>{var a;this.starredEntities=new Set((a=s.value)!==null&&a!==void 0?a:[]),this.notifyChanges()}})}}const ye=(0,_s.r)({id:"catalog",apis:[(0,Xt.n)({api:Gs.A,deps:{discoveryApi:le.N,fetchApi:In.g},factory:({discoveryApi:r,fetchApi:e})=>new Hs({discoveryApi:r,fetchApi:e})}),(0,Xt.n)({api:Vs.p,deps:{storageApi:wn},factory:({storageApi:r})=>new Js({storageApi:r})})],routes:{catalogIndex:bn._Z,catalogEntity:Sr.w},externalRoutes:{createComponent:bn.yw,viewTechDoc:bn.jU,createFromTemplate:bn.ql}}),aa=ye.provide((0,xe.P4)({name:"CatalogIndexPage",component:()=>Promise.all([t.e(3893),t.e(1600)]).then(t.bind(t,51600)).then(r=>r.CatalogPage),mountPoint:bn._Z})),Xs=ye.provide((0,xe.P4)({name:"CatalogEntityPage",component:()=>t.e(8951).then(t.bind(t,78951)).then(r=>r.CatalogEntityPage),mountPoint:Sr.w})),la=ye.provide((0,xe.CO)({name:"EntityAboutCard",component:{lazy:()=>Promise.all([t.e(4966),t.e(7893)]).then(t.bind(t,37893)).then(r=>r.AboutCard)}})),ca=ye.provide((0,xe.CO)({name:"EntityLinksCard",component:{lazy:()=>t.e(7750).then(t.bind(t,17750)).then(r=>r.EntityLinksCard)}})),da=ye.provide((0,xe.CO)({name:"EntityLabelsCard",component:{lazy:()=>t.e(5877).then(t.bind(t,85877)).then(r=>r.EntityLabelsCard)}})),ua=ye.provide((0,xe.CO)({name:"EntityHasSystemsCard",component:{lazy:()=>t.e(5458).then(t.bind(t,5458)).then(r=>r.HasSystemsCard)}})),ha=ye.provide((0,xe.CO)({name:"EntityHasComponentsCard",component:{lazy:()=>t.e(1105).then(t.bind(t,1105)).then(r=>r.HasComponentsCard)}})),fa=ye.provide((0,xe.CO)({name:"EntityHasSubcomponentsCard",component:{lazy:()=>t.e(2440).then(t.bind(t,82440)).then(r=>r.HasSubcomponentsCard)}})),ga=ye.provide((0,xe.CO)({name:"EntityHasResourcesCard",component:{lazy:()=>t.e(9770).then(t.bind(t,79770)).then(r=>r.HasResourcesCard)}})),pa=ye.provide((0,xe.CO)({name:"EntityDependsOnComponentsCard",component:{lazy:()=>t.e(9545).then(t.bind(t,19545)).then(r=>r.DependsOnComponentsCard)}})),va=ye.provide((0,xe.CO)({name:"EntityDependencyOfComponentsCard",component:{lazy:()=>t.e(184).then(t.bind(t,40184)).then(r=>r.DependencyOfComponentsCard)}})),ma=ye.provide((0,xe.CO)({name:"EntityDependsOnResourcesCard",component:{lazy:()=>t.e(1032).then(t.bind(t,81032)).then(r=>r.DependsOnResourcesCard)}})),ya=ye.provide((0,xe.CO)({name:"RelatedEntitiesCard",component:{lazy:()=>t.e(3487).then(t.bind(t,33487)).then(r=>r.RelatedEntitiesCard)}})),Ea=ye.provide((0,Ys.E5)({name:"CatalogSearchResultListItem",component:()=>t.e(7670).then(t.bind(t,27670)).then(r=>r.CatalogSearchResultListItem),predicate:r=>r.type==="software-catalog"}));var Or=t(91657),br=t(58496);class qs{async getApiOrigin(){return await this.discoveryApi.getBaseUrl("techdocs")}async getStorageUrl(){return`${await this.discoveryApi.getBaseUrl("techdocs")}/static/docs`}async getBuilder(){return this.configApi.getString("techdocs.builder")}async getEntityDocs(e,n){const a=`${await this.getApiOrigin()}/${n}`,c=await fetch(`${a.endsWith("/")?a:`${a}/`}index.html`);if(c.status===404)throw new Error("Page not found");return c.text()}async syncEntityDocs(e){return"cached"}async getBaseUrl(e,n,s){const a=await this.getApiOrigin();return new URL(e,`${a}/${s}`).toString()}constructor({configApi:e,discoveryApi:n,identityApi:s}){(0,v._)(this,"configApi",void 0),(0,v._)(this,"discoveryApi",void 0),(0,v._)(this,"identityApi",void 0),this.configApi=e,this.discoveryApi=n,this.identityApi=s}}class ti{async getApiOrigin(){return await this.discoveryApi.getBaseUrl("techdocs")}async getEntityMetadata(e){return{apiVersion:"backstage.io/v1alpha1",kind:"Component",metadata:{name:"local"},spec:{owner:"test",lifecycle:"experimental"}}}async getTechDocsMetadata(e){return{site_name:"Live preview environment",site_description:""}}constructor({configApi:e,discoveryApi:n,identityApi:s}){(0,v._)(this,"configApi",void 0),(0,v._)(this,"discoveryApi",void 0),(0,v._)(this,"identityApi",void 0),this.configApi=e,this.discoveryApi=n,this.identityApi=s}}const ei=[(0,Xt.n)({api:br.D,deps:{configApi:re.D,discoveryApi:le.N,identityApi:Je.$},factory:({configApi:r,discoveryApi:e,identityApi:n})=>new qs({configApi:r,discoveryApi:e,identityApi:n})}),(0,Xt.n)({api:br.g,deps:{configApi:re.D,discoveryApi:le.N,identityApi:Je.$},factory:({configApi:r,discoveryApi:e,identityApi:n})=>new ti({configApi:r,discoveryApi:e,identityApi:n})}),(0,Xt.n)({api:Or.q,deps:{configApi:re.D},factory:({configApi:r})=>Or.a.fromConfig(r)})],ni={backend:{baseUrl:"http://localhost:3000"},techdocs:{builder:"external"}},oi={backend:{baseUrl:"http://localhost:7007"},techdocs:{builder:"external"}};async function ri(){const r=await fetch("/.detect");return r.ok?(await r.text()).trim()==="techdocs-cli-server":!1}async function si(){const r=await cr(),e=await ri();return[...r,{context:"detected",data:e?ni:oi}]}var Ze=t(79692),ii=t(58845);const ai=(0,Ze.Z)({svg:{width:"auto",height:30},path:{fill:"#7df3e1"}});var li=()=>{const r=ai();return(0,i.jsx)("svg",{className:r.svg,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2079.95 456.05",children:(0,i.jsx)("path",{className:r.path,d:"M302.9,180a80.62,80.62,0,0,0,13.44-10.37c.8-.77,1.55-1.54,2.31-2.31a81.89,81.89,0,0,0,7.92-9.37,62.37,62.37,0,0,0,6.27-10.77,48.6,48.6,0,0,0,4.36-16.4c1.49-19.39-10-38.67-35.62-54.22L198.42,14,78.16,129.22l-78.29,75,108.6,65.9a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.8,66.42-25.69,19.16-18.36,25.52-42.12,13.7-61.87a49.69,49.69,0,0,0-6.8-8.87,89.78,89.78,0,0,0,19.28,2.15H259a85.09,85.09,0,0,0,31-5.79A80.88,80.88,0,0,0,302.9,180Zm-100.59,59.8c-19.32,18.51-50.4,21.24-75.7,5.9l-75.13-45.6,67.44-64.65,76.42,46.39C222.88,198.57,221.36,221.6,202.31,239.84Zm8.94-82.21L140.6,114.74,205,53l69.37,42.11c25.94,15.73,29.31,37.05,10.55,55A60.71,60.71,0,0,1,211.25,157.63Zm29.86,190c-19.57,18.75-46.17,29.08-74.88,29.08a123.84,123.84,0,0,1-64.11-18.19L-.13,296.51v24.67l108.6,65.91a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.81,66.42-25.69,12.88-12.34,20-27.13,19.68-41.49v-1.79A87.85,87.85,0,0,1,241.11,347.67Zm0-39c-19.57,18.76-46.17,29.09-74.88,29.09a123.84,123.84,0,0,1-64.11-18.19L-.13,257.52V282.2l108.6,65.91a111.59,111.59,0,0,0,57.76,16.41c24.92,0,48.8-8.8,66.42-25.68,12.88-12.35,20-27.13,19.68-41.5v-1.79A86.86,86.86,0,0,1,241.11,308.68Zm0-39c-19.57,18.76-46.17,29.09-74.88,29.09a123.84,123.84,0,0,1-64.11-18.19L-.13,218.54v24.68l108.6,65.91a111.59,111.59,0,0,0,57.76,16.41c24.92,0,48.8-8.8,66.42-25.69,12.88-12.34,20-27.12,19.68-41.49v-1.82A87.14,87.14,0,0,1,241.11,269.7Zm83.69,25.74a94.16,94.16,0,0,1-60.19,25.86h0V348a81.6,81.6,0,0,0,51.73-22.37c14-13.38,21.15-28.11,21-42.64v-2.2A95.14,95.14,0,0,1,324.8,295.44Zm-83.69,91.21c-19.57,18.75-46.17,29.09-74.88,29.09a123.76,123.76,0,0,1-64.11-18.2L-.13,335.49v24.67l108.6,65.91a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.81,66.42-25.69,12.88-12.34,20-27.13,19.68-41.49v-1.79A87.35,87.35,0,0,1,241.11,386.65Zm85.75-210.21c-.68.69-1.35,1.38-2.06,2.05a99.19,99.19,0,0,1-22.23,15.69,94.53,94.53,0,0,1-26.24,8.71,97.84,97.84,0,0,1-14.16,1.57c.5,1.61.9,3.25,1.25,4.9a52.7,52.7,0,0,1,1.13,12V231h.05A84.48,84.48,0,0,0,290,225.47a80.83,80.83,0,0,0,26.38-16.82c.81-.77,1.51-1.56,2.27-2.34a82,82,0,0,0,7.92-9.38,62.85,62.85,0,0,0,6.29-10.78,48.5,48.5,0,0,0,4.32-16.44c.09-1.23.2-2.47.19-3.7v-2c-.72,1-1.48,2.06-2.26,3.09A98,98,0,0,1,326.86,176.44Zm0,77.92c-.68.7-1.3,1.41-2,2.1a94.09,94.09,0,0,1-60.19,25.85h0V309h0a81.65,81.65,0,0,0,51.73-22.37,73.51,73.51,0,0,0,16.48-22.49,48.56,48.56,0,0,0,4.32-16.44c.09-1.24.2-2.48.19-3.71v-2.2c-.74,1.08-1.47,2.16-2.27,3.22A95.81,95.81,0,0,1,326.82,254.36Zm0-39c-.68.7-1.3,1.41-2,2.1a92.22,92.22,0,0,1-10.62,8.65,93.53,93.53,0,0,1-11.63,7,95.63,95.63,0,0,1-37.94,10.18h-.05l0,26.67h0a81.63,81.63,0,0,0,51.73-22.37c.81-.77,1.51-1.56,2.27-2.34a82,82,0,0,0,7.92-9.38,63.16,63.16,0,0,0,6.29-10.77,48.55,48.55,0,0,0,4.32-16.45c.09-1.23.2-2.47.19-3.7v-2.2c-.74,1.08-1.47,2.16-2.27,3.22A98.19,98.19,0,0,1,326.82,215.38Zm241-88.84q7.94,0,17.09.17t18.12,1a139.3,139.3,0,0,1,16.74,2.57,42.78,42.78,0,0,1,13.3,5.14,64.27,64.27,0,0,1,20.54,19.89Q662,168,662,186.54q0,19.54-9.49,33.78t-27.1,21.09v.68q22.78,4.82,34.87,20.58t12.08,38.4a72.62,72.62,0,0,1-4.83,26.06,65.29,65.29,0,0,1-14.33,22.46,71.57,71.57,0,0,1-23.47,15.78q-14,6-32.28,6H478.38V126.54Zm9,105.27q28,0,40.21-9.78t12.26-29.31q0-13-4.14-20.58a29.47,29.47,0,0,0-11.4-11.66A45,45,0,0,0,597,155.17a161.2,161.2,0,0,0-20.19-1.2h-65.6v77.84Zm16.57,112.13q21.74,0,34-11.66T639.59,300q0-12-4.48-19.88a34.85,34.85,0,0,0-11.91-12.52,50.14,50.14,0,0,0-17.09-6.52,105,105,0,0,0-20-1.88H511.17v84.7Zm274.79,26.74q-7.61,4.45-21.06,4.46-11.4,0-18.12-6.34t-6.74-20.75a70.17,70.17,0,0,1-28.13,20.75,97.87,97.87,0,0,1-57.65,3.6,53.51,53.51,0,0,1-18.82-8.58A41.19,41.19,0,0,1,705,348.56q-4.65-9.42-4.66-22.8,0-15.09,5.18-24.69a44.92,44.92,0,0,1,13.64-15.6,62.63,62.63,0,0,1,19.33-9.09q10.88-3.08,22.27-5.14,12.08-2.4,23-3.6a128,128,0,0,0,19.16-3.43c5.53-1.48,9.89-3.65,13.12-6.51s4.83-7,4.83-12.52q0-9.6-3.62-15.43a24.94,24.94,0,0,0-9.32-8.92,38.38,38.38,0,0,0-12.78-4.11,96.54,96.54,0,0,0-14-1q-18.63,0-31.07,7T736.6,249.29H707.26q.69-16.46,6.9-27.77a52.21,52.21,0,0,1,16.57-18.35,70,70,0,0,1,23.65-10.11A125.51,125.51,0,0,1,782.86,190a168.63,168.63,0,0,1,24,1.72,63.26,63.26,0,0,1,21.58,7A41.23,41.23,0,0,1,844,213.59q5.87,9.57,5.87,25v91q0,10.26,1.21,15.05t8.11,4.79a35.57,35.57,0,0,0,9-1.37Zm-47.64-90.87c-3.69,2.74-8.52,4.72-14.5,6s-12.26,2.27-18.82,3.07-13.17,1.71-19.85,2.73a73.7,73.7,0,0,0-18,4.94,32.62,32.62,0,0,0-12.94,9.73q-5,6.32-5,17.23a23.31,23.31,0,0,0,2.94,12.11,24.11,24.11,0,0,0,7.59,8,32,32,0,0,0,10.88,4.44,60.94,60.94,0,0,0,13.11,1.36q14.5,0,24.86-3.92a52.49,52.49,0,0,0,16.91-9.9,39.1,39.1,0,0,0,9.67-13,32.53,32.53,0,0,0,3.11-13.14ZM1002.07,225q-11.05-9.25-29.69-9.26-15.89,0-26.58,5.83A47.29,47.29,0,0,0,928.71,237a64.66,64.66,0,0,0-9.15,22.12A119.83,119.83,0,0,0,916.8,285a98.22,98.22,0,0,0,2.93,24,64.18,64.18,0,0,0,9.15,20.74,46.2,46.2,0,0,0,16.23,14.58q10,5.49,23.82,5.48,21.75,0,34-11.31t15-31.89h30q-4.83,32.91-24.68,50.75t-54,17.83q-20.37,0-36.07-6.52A69.86,69.86,0,0,1,907,350.11a79.92,79.92,0,0,1-15.88-28.63A118.64,118.64,0,0,1,885.73,285a129.41,129.41,0,0,1,5.18-37.21,85.63,85.63,0,0,1,15.71-30.17A73.46,73.46,0,0,1,933,197.35Q948.91,190,970,190a108.54,108.54,0,0,1,28.48,3.6,69.59,69.59,0,0,1,23.48,11.15,61,61,0,0,1,16.74,19q6.55,11.49,8.29,27.26h-30.38Q1013.11,234.21,1002.07,225Zm109.77-98.41v145l81.47-77.49h39.36l-70.77,64.46,75.95,112.82h-37.29l-61.1-92.59-27.62,25.38v67.21H1082.5V126.54Zm170.54,205.22a31.07,31.07,0,0,0,10.87,10.63,49,49,0,0,0,15.19,5.66,87.06,87.06,0,0,0,17.44,1.71,109.18,109.18,0,0,0,14.5-1,53.22,53.22,0,0,0,14-3.78,26.27,26.27,0,0,0,10.53-8q4.14-5.32,4.14-13.55,0-11.31-8.63-17.14a73.69,73.69,0,0,0-21.58-9.43q-12.94-3.6-28.13-6.52a146,146,0,0,1-28.14-8.23A58.16,58.16,0,0,1,1261,267.13q-8.64-9.6-8.63-26.75,0-13.38,6-23a49.26,49.26,0,0,1,15.53-15.61,71.76,71.76,0,0,1,21.4-8.91A99.41,99.41,0,0,1,1319,190a141.31,141.31,0,0,1,28,2.58,64.85,64.85,0,0,1,22.62,8.91,46.16,46.16,0,0,1,15.7,17.15q5.87,10.8,6.91,26.91h-29.35q-.69-8.57-4.48-14.23a29.36,29.36,0,0,0-9.67-9.08,44.16,44.16,0,0,0-12.94-5,67.68,67.68,0,0,0-14.33-1.54,87.29,87.29,0,0,0-13.29,1,45.28,45.28,0,0,0-12.26,3.6,24.49,24.49,0,0,0-9,6.86q-3.46,4.29-3.46,11.14a16.32,16.32,0,0,0,5.36,12.52,42.75,42.75,0,0,0,13.63,8.23,120,120,0,0,0,18.64,5.48q10.37,2.24,20.72,4.63,11,2.4,21.57,5.83A70.74,70.74,0,0,1,1382,284.1a44.55,44.55,0,0,1,13.12,14.23q5,8.58,5,21.26,0,16.13-6.73,26.75a52.5,52.5,0,0,1-17.61,17.14,73.89,73.89,0,0,1-24.51,9.09,146.3,146.3,0,0,1-27.1,2.57,126.24,126.24,0,0,1-28.31-3.09A69.56,69.56,0,0,1,1272,361.94a51.74,51.74,0,0,1-16.57-18.52q-6.21-11.49-6.9-27.95h29.34A32.65,32.65,0,0,0,1282.38,331.76Zm226.46-137.67v25.72h-35.56V329.88a31.37,31.37,0,0,0,.87,8.23,8.42,8.42,0,0,0,3.28,4.8,14.61,14.61,0,0,0,6.73,2.23,99.19,99.19,0,0,0,11.22.51h13.46v25.72H1486.4a105.8,105.8,0,0,1-19.5-1.55,28.65,28.65,0,0,1-13.12-5.65,24.09,24.09,0,0,1-7.42-11.66q-2.43-7.54-2.42-19.89V219.81h-30.38V194.09h30.38V140.94h29.34v53.15ZM1699.4,370.68q-7.61,4.45-21.06,4.46-11.4,0-18.12-6.34t-6.74-20.75a70.17,70.17,0,0,1-28.13,20.75,97.87,97.87,0,0,1-57.65,3.6,53.51,53.51,0,0,1-18.82-8.58,41.19,41.19,0,0,1-12.6-15.26q-4.65-9.42-4.66-22.8,0-15.09,5.18-24.69a44.92,44.92,0,0,1,13.64-15.6,62.63,62.63,0,0,1,19.33-9.09q10.88-3.08,22.27-5.14,12.07-2.4,23-3.6a128,128,0,0,0,19.16-3.43c5.53-1.48,9.89-3.65,13.12-6.51s4.83-7,4.83-12.52q0-9.6-3.62-15.43a24.94,24.94,0,0,0-9.32-8.92,38.38,38.38,0,0,0-12.78-4.11,96.54,96.54,0,0,0-14-1q-18.63,0-31.07,7t-13.46,26.57h-29.34q.67-16.46,6.9-27.77A52.21,52.21,0,0,1,1562,203.17a70,70,0,0,1,23.65-10.11,125.51,125.51,0,0,1,28.48-3.09,168.63,168.63,0,0,1,24,1.72,63.26,63.26,0,0,1,21.58,7,41.23,41.23,0,0,1,15.53,14.89q5.87,9.57,5.87,25v91q0,10.26,1.21,15.05t8.11,4.79a35.57,35.57,0,0,0,9-1.37Zm-47.64-90.87c-3.69,2.74-8.52,4.72-14.5,6s-12.26,2.27-18.82,3.07-13.17,1.71-19.85,2.73a73.7,73.7,0,0,0-17.95,4.94,32.62,32.62,0,0,0-12.94,9.73q-5,6.32-5,17.23a23.31,23.31,0,0,0,2.94,12.11,24.11,24.11,0,0,0,7.59,8,32,32,0,0,0,10.88,4.44,60.94,60.94,0,0,0,13.11,1.36q14.51,0,24.86-3.92a52.49,52.49,0,0,0,16.91-9.9,39.1,39.1,0,0,0,9.67-13,32.53,32.53,0,0,0,3.11-13.14Zm208.85,141.62q-20,21.6-62.83,21.6a122.11,122.11,0,0,1-25.37-2.74,78,78,0,0,1-23.48-8.92,54.41,54.41,0,0,1-17.43-16.11q-6.91-10-7.6-24.35h29.35a21.47,21.47,0,0,0,5,13.38,36.67,36.67,0,0,0,11.4,8.91,55.52,55.52,0,0,0,14.67,5,79.51,79.51,0,0,0,15.19,1.55q14.49,0,24.51-5A46,46,0,0,0,1840.59,401a56.53,56.53,0,0,0,9.49-21.09,117.46,117.46,0,0,0,2.94-27.09V341.19h-.7q-7.59,16.46-23,24.18a71.8,71.8,0,0,1-32.63,7.71q-20,0-34.86-7.2A72.88,72.88,0,0,1,1737,346.51a82.13,82.13,0,0,1-15-28.46,116.62,116.62,0,0,1-5-34.47,133.92,133.92,0,0,1,4.14-32.4A88.17,88.17,0,0,1,1735,221a75.49,75.49,0,0,1,25.55-22.29q15.87-8.75,39-8.75a66.21,66.21,0,0,1,31.07,7.38,52.13,52.13,0,0,1,22.09,22.11h.35V194.09h27.61V356.28Q1880.63,399.83,1860.61,421.43Zm-37.46-79.72a47.94,47.94,0,0,0,16.4-15.78,71.89,71.89,0,0,0,9.15-22.11,106.77,106.77,0,0,0,2.93-24.69,96.71,96.71,0,0,0-2.76-23,64,64,0,0,0-8.8-20.4,45.76,45.76,0,0,0-15.71-14.57q-9.66-5.49-23.47-5.49-14.16,0-24.17,5.32a46.77,46.77,0,0,0-16.4,14.23,60.14,60.14,0,0,0-9.32,20.57,99.69,99.69,0,0,0-2.93,24.35,120.63,120.63,0,0,0,2.42,24,67.5,67.5,0,0,0,8.28,21.77,46.37,46.37,0,0,0,15.54,15.78q9.66,6,24.16,6T1823.15,341.71Zm228,18.34q-20,15.09-50.41,15.09-21.4,0-37.11-6.86a73.16,73.16,0,0,1-26.41-19.2,81.52,81.52,0,0,1-16-29.49,141.12,141.12,0,0,1-6-37.38,106.1,106.1,0,0,1,6.21-37A88.56,88.56,0,0,1,1938.8,216a79.09,79.09,0,0,1,26.58-19.2A81.66,81.66,0,0,1,1999,190q23.82,0,39.53,9.78a78,78,0,0,1,25.2,24.86,98.18,98.18,0,0,1,13.12,32.91,140.6,140.6,0,0,1,2.93,34h-133.6a70,70,0,0,0,2.76,22.12,49.9,49.9,0,0,0,10,18.51A49.1,49.1,0,0,0,1976.6,345q10.7,4.82,25.2,4.8,18.65,0,30.55-8.57t15.71-26.06h29Q2071.18,345,2051.17,360.05Zm-7.08-113.84a50,50,0,0,0-10.7-16,53.1,53.1,0,0,0-56.62-10.63,47.48,47.48,0,0,0-15.71,10.81,51.69,51.69,0,0,0-10.35,15.94,60.18,60.18,0,0,0-4.49,19.37h102.53A59.47,59.47,0,0,0,2044.09,246.21ZM302.9,180a80.62,80.62,0,0,0,13.44-10.37c.8-.77,1.55-1.54,2.31-2.31a81.89,81.89,0,0,0,7.92-9.37,62.37,62.37,0,0,0,6.27-10.77,48.6,48.6,0,0,0,4.36-16.4c1.49-19.39-10-38.67-35.62-54.22L198.42,14,78.16,129.22l-78.29,75,108.6,65.9a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.8,66.42-25.69,19.16-18.36,25.52-42.12,13.7-61.87a49.69,49.69,0,0,0-6.8-8.87,89.78,89.78,0,0,0,19.28,2.15H259a85.09,85.09,0,0,0,31-5.79A80.88,80.88,0,0,0,302.9,180Zm-100.59,59.8c-19.32,18.51-50.4,21.24-75.7,5.9l-75.13-45.6,67.44-64.65,76.42,46.39C222.88,198.57,221.36,221.6,202.31,239.84Zm8.94-82.21L140.6,114.74,205,53l69.37,42.11c25.94,15.73,29.31,37.05,10.55,55A60.71,60.71,0,0,1,211.25,157.63Zm29.86,190c-19.57,18.75-46.17,29.08-74.88,29.08a123.84,123.84,0,0,1-64.11-18.19L-.13,296.51v24.67l108.6,65.91a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.81,66.42-25.69,12.88-12.34,20-27.13,19.68-41.49v-1.79A87.85,87.85,0,0,1,241.11,347.67Zm0-39c-19.57,18.76-46.17,29.09-74.88,29.09a123.84,123.84,0,0,1-64.11-18.19L-.13,257.52V282.2l108.6,65.91a111.59,111.59,0,0,0,57.76,16.41c24.92,0,48.8-8.8,66.42-25.68,12.88-12.35,20-27.13,19.68-41.5v-1.79A86.86,86.86,0,0,1,241.11,308.68Zm0-39c-19.57,18.76-46.17,29.09-74.88,29.09a123.84,123.84,0,0,1-64.11-18.19L-.13,218.54v24.68l108.6,65.91a111.59,111.59,0,0,0,57.76,16.41c24.92,0,48.8-8.8,66.42-25.69,12.88-12.34,20-27.12,19.68-41.49v-1.82A87.14,87.14,0,0,1,241.11,269.7Zm83.69,25.74a94.16,94.16,0,0,1-60.19,25.86h0V348a81.6,81.6,0,0,0,51.73-22.37c14-13.38,21.15-28.11,21-42.64v-2.2A95.14,95.14,0,0,1,324.8,295.44Zm-83.69,91.21c-19.57,18.75-46.17,29.09-74.88,29.09a123.76,123.76,0,0,1-64.11-18.2L-.13,335.49v24.67l108.6,65.91a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.81,66.42-25.69,12.88-12.34,20-27.13,19.68-41.49v-1.79A87.35,87.35,0,0,1,241.11,386.65Zm85.75-210.21c-.68.69-1.35,1.38-2.06,2.05a99.19,99.19,0,0,1-22.23,15.69,94.53,94.53,0,0,1-26.24,8.71,97.84,97.84,0,0,1-14.16,1.57c.5,1.61.9,3.25,1.25,4.9a52.7,52.7,0,0,1,1.13,12V231h.05A84.48,84.48,0,0,0,290,225.47a80.83,80.83,0,0,0,26.38-16.82c.81-.77,1.51-1.56,2.27-2.34a82,82,0,0,0,7.92-9.38,62.85,62.85,0,0,0,6.29-10.78,48.5,48.5,0,0,0,4.32-16.44c.09-1.23.2-2.47.19-3.7v-2c-.72,1-1.48,2.06-2.26,3.09A98,98,0,0,1,326.86,176.44Zm0,77.92c-.68.7-1.3,1.41-2,2.1a94.09,94.09,0,0,1-60.19,25.85h0V309h0a81.65,81.65,0,0,0,51.73-22.37,73.51,73.51,0,0,0,16.48-22.49,48.56,48.56,0,0,0,4.32-16.44c.09-1.24.2-2.48.19-3.71v-2.2c-.74,1.08-1.47,2.16-2.27,3.22A95.81,95.81,0,0,1,326.82,254.36Zm0-39c-.68.7-1.3,1.41-2,2.1a92.22,92.22,0,0,1-10.62,8.65,93.53,93.53,0,0,1-11.63,7,95.63,95.63,0,0,1-37.94,10.18h-.05l0,26.67h0a81.63,81.63,0,0,0,51.73-22.37c.81-.77,1.51-1.56,2.27-2.34a82,82,0,0,0,7.92-9.38,63.16,63.16,0,0,0,6.29-10.77,48.55,48.55,0,0,0,4.32-16.45c.09-1.23.2-2.47.19-3.7v-2.2c-.74,1.08-1.47,2.16-2.27,3.22A98.19,98.19,0,0,1,326.82,215.38Z"})})};const ci=(0,Ze.Z)({svg:{width:"auto",height:28},path:{fill:"#7df3e1"}});var di=()=>{const r=ci();return(0,i.jsx)("svg",{className:r.svg,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 337.46 428.5",children:(0,i.jsx)("path",{className:r.path,d:"M303,166.05a80.69,80.69,0,0,0,13.45-10.37c.79-.77,1.55-1.53,2.3-2.3a83.12,83.12,0,0,0,7.93-9.38A63.69,63.69,0,0,0,333,133.23a48.58,48.58,0,0,0,4.35-16.4c1.49-19.39-10-38.67-35.62-54.22L198.56,0,78.3,115.23,0,190.25l108.6,65.91a111.59,111.59,0,0,0,57.76,16.41c24.92,0,48.8-8.8,66.42-25.69,19.16-18.36,25.52-42.12,13.7-61.87a49.22,49.22,0,0,0-6.8-8.87A89.17,89.17,0,0,0,259,178.29h.15a85.08,85.08,0,0,0,31-5.79A80.88,80.88,0,0,0,303,166.05ZM202.45,225.86c-19.32,18.51-50.4,21.23-75.7,5.9L51.61,186.15l67.45-64.64,76.41,46.38C223,184.58,221.49,207.61,202.45,225.86Zm8.93-82.22-70.65-42.89L205.14,39,274.51,81.1c25.94,15.72,29.31,37,10.55,55A60.69,60.69,0,0,1,211.38,143.64Zm29.86,190c-19.57,18.75-46.17,29.09-74.88,29.09a123.73,123.73,0,0,1-64.1-18.2L0,282.52v24.67L108.6,373.1a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.81,66.42-25.69,12.88-12.34,20-27.13,19.68-41.49v-1.79A87.27,87.27,0,0,1,241.24,333.68Zm0-39c-19.57,18.75-46.17,29.08-74.88,29.08a123.81,123.81,0,0,1-64.1-18.19L0,243.53v24.68l108.6,65.91a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.81,66.42-25.69,12.88-12.34,20-27.13,19.68-41.5v-1.78A87.27,87.27,0,0,1,241.24,294.7Zm0-39c-19.57,18.76-46.17,29.09-74.88,29.09a123.81,123.81,0,0,1-64.1-18.19L0,204.55v24.68l108.6,65.91a111.59,111.59,0,0,0,57.76,16.41c24.92,0,48.8-8.8,66.42-25.68,12.88-12.35,20-27.13,19.68-41.5v-1.82A86.09,86.09,0,0,1,241.24,255.71Zm83.7,25.74a94.15,94.15,0,0,1-60.2,25.86h0V334a81.6,81.6,0,0,0,51.74-22.37c14-13.38,21.14-28.11,21-42.64v-2.19A94.92,94.92,0,0,1,324.94,281.45Zm-83.7,91.21c-19.57,18.76-46.17,29.09-74.88,29.09a123.73,123.73,0,0,1-64.1-18.2L0,321.5v24.68l108.6,65.9a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.8,66.42-25.69,12.88-12.34,20-27.13,19.68-41.49v-1.79A86.29,86.29,0,0,1,241.24,372.66ZM327,162.45c-.68.69-1.35,1.38-2.05,2.06a94.37,94.37,0,0,1-10.64,8.65,91.35,91.35,0,0,1-11.6,7,94.53,94.53,0,0,1-26.24,8.71,97.69,97.69,0,0,1-14.16,1.57c.5,1.61.9,3.25,1.25,4.9a53.27,53.27,0,0,1,1.14,12V217h.05a84.41,84.41,0,0,0,25.35-5.55,81,81,0,0,0,26.39-16.82c.8-.77,1.5-1.56,2.26-2.34a82.08,82.08,0,0,0,7.93-9.38A63.76,63.76,0,0,0,333,172.17a48.55,48.55,0,0,0,4.32-16.45c.09-1.23.2-2.47.19-3.7V150q-1.08,1.54-2.25,3.09A96.73,96.73,0,0,1,327,162.45Zm0,77.92c-.69.7-1.31,1.41-2,2.1a94.2,94.2,0,0,1-60.2,25.86h0l0,26.67h0a81.6,81.6,0,0,0,51.74-22.37A73.51,73.51,0,0,0,333,250.13a48.56,48.56,0,0,0,4.32-16.44c.09-1.24.2-2.47.19-3.71v-2.19c-.74,1.07-1.46,2.15-2.27,3.21A95.68,95.68,0,0,1,327,240.37Zm0-39c-.69.7-1.31,1.41-2,2.1a93.18,93.18,0,0,1-10.63,8.65,91.63,91.63,0,0,1-11.63,7,95.47,95.47,0,0,1-37.94,10.18h0V256h0a81.65,81.65,0,0,0,51.74-22.37c.8-.77,1.5-1.56,2.26-2.34a82.08,82.08,0,0,0,7.93-9.38A63.76,63.76,0,0,0,333,211.15a48.56,48.56,0,0,0,4.32-16.44c.09-1.24.2-2.48.19-3.71v-2.2c-.74,1.08-1.46,2.16-2.27,3.22A95.68,95.68,0,0,1,327,201.39Z"})})},ge=t(76921);const Pr={isOpen:!1,setOpen:()=>{}},Rr=(0,d.createContext)(Pr),Tr=(0,$n.CT)("sidebar-open-state-context");function wr(r){const{children:e,value:n}=r;return(0,i.jsx)(Rr.Provider,{value:n,children:(0,i.jsx)(Tr.Provider,{value:(0,Fn.E)({1:n}),children:e})})}const _o=()=>{const r=(0,d.useContext)(Tr),e=(0,d.useContext)(Rr);if(r===void 0)return e||Pr;const n=r.atVersion(1);if(n===void 0)throw new Error("No context found for version 1.");return n};var Ir=t(98864),Dr=t(44409),Ge=t(62774),Mr=t(41156),ui=t(72779),tn=t.n(ui),hi=t(50023),Lr=t(61837),fi=t(4190),Yo=t(90436),gi=t(87685),pi=t(44882),vi=t(57998);const jr=(0,d.createContext)({selectedMenuItemIndex:-1,setSelectedMenuItemIndex:()=>{}});var Qo=t(93539);const mi=(0,Ze.Z)(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"}})),yi=r=>{const{to:e,label:n,icon:s,value:a}=r,{sidebarConfig:c}=(0,d.useContext)(ge.kG),m=mi({sidebarConfig:c}),y=(0,p.TH)(),{selectedMenuItemIndex:w,setSelectedMenuItemIndex:U}=(0,d.useContext)(jr),nt=(vt,lt)=>{U(lt===w?-1:lt)},at=a===w&&w>=0||a!==w&&!(w>=0)&&e===y.pathname;return(0,i.jsx)(vi.Z,{"aria-label":n,label:n,icon:s,component:Ir.rU,to:e||y.pathname,onChange:nt,value:a,selected:at,classes:m})},Br=r=>{const{children:e,to:n,label:s,icon:a,value:c}=r,{isMobile:m}=(0,Qo.Pf)();return m?(0,i.jsx)(yi,{to:n,label:s,icon:a,value:c}):(0,i.jsx)(i.Fragment,{children:e})},Ur=(0,Ze.Z)(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`})})),Ei=r=>(0,cn.orderBy)(r,({props:{priority:e}})=>Number.isInteger(e)?e:-1,"desc"),xi=d.createElement(Br).type,Ci=({children:r,label:e="Menu",open:n,onClose:s})=>{const{sidebarConfig:a}=(0,d.useContext)(ge.kG),c=Ur({sidebarConfig:a});return(0,i.jsxs)(fi.ZP,{anchor:"bottom",open:n,onClose:s,ModalProps:{BackdropProps:{classes:{root:c.marginMobileSidebar}}},classes:{root:c.marginMobileSidebar,paperAnchorBottom:c.overlay},children:[(0,i.jsxs)(Ge.Z,{className:c.overlayHeader,children:[(0,i.jsx)(Yo.Z,{variant:"h3",children:e}),(0,i.jsx)(Lr.Z,{onClick:s,classes:{root:c.overlayHeaderClose},children:(0,i.jsx)(gi.Z,{})})]}),(0,i.jsx)(Ge.Z,{component:"nav",children:r})]})},Ai=r=>{const{sidebarConfig:e}=(0,d.useContext)(ge.kG),{children:n}=r,s=Ur({sidebarConfig:e}),a=(0,p.TH)(),[c,m]=(0,d.useState)(-1);(0,d.useEffect)(()=>{m(-1)},[a.pathname]);let y=(0,qn.v)(n,U=>U.getElements().filter(nt=>nt.type===xi));if(n)y.length?y=Ei(y):y.push((0,i.jsx)(Br,{icon:(0,i.jsx)(pi.Z,{}),children:n},"default_menu"));else return null;const w=c>=0&&!y[c].props.to;return(0,i.jsx)(wr,{value:{isOpen:!0,setOpen:()=>{}},children:(0,i.jsxs)(jr.Provider,{value:{selectedMenuItemIndex:c,setSelectedMenuItemIndex:m},children:[(0,i.jsx)(Ci,{label:y[c]&&y[c].props.label,open:w,onClose:()=>m(-1),children:y[c]&&y[c].props.children}),(0,i.jsx)(hi.Z,{className:s.root,"data-testid":"mobile-sidebar-root",component:"nav",children:y})]})})},$r=(0,Ze.Z)(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 Fr;(function(r){r[r.Closed=0]="Closed",r[r.Idle=1]="Idle",r[r.Open=2]="Open"})(Fr||(Fr={}));const Si=r=>{const{sidebarConfig:e}=(0,d.useContext)(ge.kG),{openDelayMs:n=e.defaultOpenDelayMs,closeDelayMs:s=e.defaultCloseDelayMs,disableExpandOnHover:a,children:c}=r,m=$r({sidebarConfig:e}),y=(0,Mr.Z)(ue=>ue.breakpoints.down("md"),{noSsr:!0}),[w,U]=(0,d.useState)(0),nt=(0,d.useRef)(),{isPinned:at,toggleSidebarPinState:vt}=(0,Qo.Pf)(),lt=()=>{at||a||(nt.current&&(clearTimeout(nt.current),nt.current=void 0),w!==2&&!y&&(nt.current=window.setTimeout(()=>{nt.current=void 0,U(2)},n),U(1)))},St=()=>{at||a||(nt.current&&(clearTimeout(nt.current),nt.current=void 0),w===1?U(0):w===2&&(nt.current=window.setTimeout(()=>{nt.current=void 0,U(0)},s)))},Nt=w===2&&!y||at,Dt=ue=>{ue?(U(2),vt()):(U(0),vt())};return(0,i.jsxs)("nav",{style:{},"aria-label":"sidebar nav",children:[(0,i.jsx)(bi,{}),(0,i.jsx)(wr,{value:{isOpen:Nt,setOpen:Dt},children:(0,i.jsx)(Ge.Z,{className:m.root,"data-testid":"sidebar-root",onMouseEnter:a?()=>{}:lt,onFocus:a?()=>{}:lt,onMouseLeave:a?()=>{}:St,onBlur:a?()=>{}:St,children:(0,i.jsx)(Ge.Z,{className:tn()(m.drawer,m.drawerWidth,{[m.drawerOpen]:Nt}),children:c})})})]})},Oi=r=>{var e;const n=(0,ge.$E)((e=r.sidebarOptions)!==null&&e!==void 0?e:{});var s;const a=(0,ge.rW)((s=r.submenuOptions)!==null&&s!==void 0?s:{}),{children:c,disableExpandOnHover:m,openDelayMs:y,closeDelayMs:w}=r,{isMobile:U}=(0,Qo.Pf)();return U?(0,i.jsx)(Ai,{children:c}):(0,i.jsx)(ge.kG.Provider,{value:{sidebarConfig:n,submenuConfig:a},children:(0,i.jsx)(Si,{openDelayMs:y,closeDelayMs:w,disableExpandOnHover:m,children:c})})};function bi(){const{sidebarConfig:r}=(0,d.useContext)(ge.kG),{focusContent:e,contentRef:n}=(0,Dr.r)(),s=$r({sidebarConfig:r});return n!=null&&n.current?(0,i.jsx)(A.Z,{onClick:e,variant:"contained",className:tn()(s.visuallyHidden),children:"Skip to content"}):null}var Pi=t(26739),to=t(1667),Ri=t(83543),Ti=t(59797),Wr=t(98989);const wi=(0,Ze.Z)(r=>({root:{zIndex:1e3,position:"relative",overflow:"visible",width:r.spacing(7)+1},drawer:e=>{var n,s;return{display:"flex",flexFlow:"column nowrap",alignItems:"flex-start",position:"fixed",[r.breakpoints.up("sm")]:{marginLeft:e.left,transition:r.transitions.create("margin-left",{easing:r.transitions.easing.sharp,duration:r.transitions.duration.shortest})},top:0,bottom:0,padding:0,background:(s=(n=r.palette.navigation.submenu)===null||n===void 0?void 0:n.background)!==null&&s!==void 0?s:"#404040",overflowX:"hidden",msOverflowStyle:"none",scrollbarWidth:"none",cursor:"default",width:e.submenuConfig.drawerWidthClosed,transitionDelay:`${e.submenuConfig.defaultOpenDelayMs}ms`,"& > *":{flexShrink:0},"&::-webkit-scrollbar":{display:"none"}}},drawerOpen:e=>({width:e.submenuConfig.drawerWidthOpen,[r.breakpoints.down("xs")]:{width:"100%",position:"relative",paddingLeft:r.spacing(3),left:0,top:0}}),title:{fontSize:r.typography.h5.fontSize,fontWeight:r.typography.fontWeightMedium,color:r.palette.common.white,padding:r.spacing(2.5),[r.breakpoints.down("xs")]:{display:"none"}}}),{name:"BackstageSidebarSubmenu"}),Ii=r=>{const{isOpen:e}=_o(),{sidebarConfig:n,submenuConfig:s}=(0,d.useContext)(ge.kG),a=e?n.drawerWidthOpen:n.drawerWidthClosed,c=wi({left:a,submenuConfig:s}),{isHoveredOn:m}=(0,d.useContext)(ge.Ag),[y,w]=(0,d.useState)(!1);return(0,d.useEffect)(()=>{w(m)},[m]),(0,i.jsxs)(Ge.Z,{className:tn()(c.drawer,{[c.drawerOpen]:y}),children:[(0,i.jsx)(Yo.Z,{variant:"h5",component:"span",className:c.title,children:r.title}),r.children]})};var Di=t(19126),Nr=t.n(Di);function Zr(r,e,n=!1){const s=new URLSearchParams(e.search).toString(),a=Nr().parse(s),c=new URLSearchParams(r.search).toString(),m=Nr().parse(c),y=n?cn.isEqual:cn.isMatch;return(0,cn.isEqual)(e.pathname,r.pathname)&&y(m,a)}const Mi=r=>(0,Ze.Z)(e=>{var n,s,a,c;return{root:{color:e.palette.navigation.color,display:"flex",flexFlow:"row nowrap",alignItems:"center",height:48,cursor:"pointer"},buttonItem:{background:"none",border:"none",width:"100%",margin:0,padding:0,textAlign:"inherit",font:"inherit",textTransform:"none"},closed:{width:r.drawerWidthClosed,justifyContent:"center"},open:{[e.breakpoints.up("sm")]:{width:r.drawerWidthOpen}},highlightable:{"&:hover":{background:(a=(n=e.palette.navigation.navItem)===null||n===void 0?void 0:n.hoverBackground)!==null&&a!==void 0?a:"#404040"}},highlighted:{background:(c=(s=e.palette.navigation.navItem)===null||s===void 0?void 0:s.hoverBackground)!==null&&c!==void 0?c:"#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 eo(r){return(0,d.useMemo)(()=>Mi(r),[r])()}const Li=(r,e)=>(0,qn.v)(r.props.children,n=>{let s=!1;return n.getElements().forEach(({props:{to:a,dropdownItems:c}})=>{if(!s){if(c!=null&&c.length){c.forEach(({to:m})=>s=s||Zr(e,(0,yn.i3)(m)));return}a&&(s=Zr(e,(0,yn.i3)(a)))}}),s},[e.pathname]);function Jo(r){return r.to===void 0}const ji=d.createElement(Ii).type,Bi=d.forwardRef(function({to:e,end:n,style:s,className:a,activeStyle:c,caseSensitive:m,activeClassName:y="active","aria-current":w="page",...U},nt){let{pathname:at}=(0,p.TH)(),{pathname:vt}=(0,p.WU)(e);m||(at=at.toLocaleLowerCase("en-US"),vt=vt.toLocaleLowerCase("en-US"));let lt=at===vt;!lt&&!n&&(lt=at.startsWith(`${vt}/`));const St=lt?w:void 0;return(0,i.jsx)(E.rU,{...U,to:e,ref:nt,"aria-current":St,style:{...s,...lt?c:void 0},className:tn()([typeof a!="function"?a:void 0,lt?y:void 0])})}),Kr=(0,d.forwardRef)((r,e)=>{const{icon:n,text:s,hasNotifications:a=!1,hasSubmenu:c=!1,disableHighlight:m=!1,onClick:y,noTrack:w,children:U,className:nt,...at}=r,{sidebarConfig:vt}=(0,d.useContext)(ge.kG),lt=eo(vt),{isOpen:St}=_o(),Nt=!St&&c?{display:"flex",marginLeft:"20px"}:{lineHeight:"0"},Dt=(0,i.jsxs)(Ge.Z,{style:Nt,children:[(0,i.jsx)(n,{fontSize:"small"}),!St&&c?(0,i.jsx)(Wr.Z,{fontSize:"small"}):(0,i.jsx)(i.Fragment,{})]}),ue=(0,i.jsx)(Pi.Z,{color:"secondary",variant:"dot",overlap:"circular",invisible:!a,className:tn()({[lt.closedItemIcon]:!St}),children:Dt}),ve=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Ge.Z,{"data-testid":"login-button",className:lt.iconContainer,children:ue}),s&&(0,i.jsx)(Yo.Z,{variant:"subtitle2",component:"span",className:lt.label,children:s}),(0,i.jsx)("div",{className:lt.secondaryAction,children:U})]}),Ke=St?ve:ue,Pn={onClick:y,className:tn()(nt,lt.root,St?lt.open:lt.closed,Jo(r)&&lt.buttonItem,{[lt.highlightable]:!m})},Gr=(0,hr.z)(),{pathname:Xo}=(0,p.WU)(!Jo(r)&&r.to?r.to:""),Vr=(0,d.useCallback)(na=>{if(!w){const oa="click",ra=s!=null?s:"Sidebar Item",sa=Xo?{attributes:{to:Xo}}:void 0;Gr.captureEvent(oa,ra,sa)}y==null||y(na)},[Gr,s,Xo,w,y]);return Jo(r)?(0,i.jsx)(A.Z,{role:"button","aria-label":s,...Pn,ref:e,onClick:Vr,children:Ke}):(0,i.jsx)(Bi,{...Pn,activeClassName:lt.selected,to:r.to?r.to:"",ref:e,"aria-label":s||r.to,...at,onClick:Vr,children:Ke})}),Ui=({children:r,...e})=>{const{sidebarConfig:n}=(0,d.useContext)(ge.kG),s=eo(n),[a,c]=(0,d.useState)(!1),m=(0,p.TH)(),y=Li(r,m),w=(0,Mr.Z)(vt=>vt.breakpoints.down("sm")),U=()=>{c(!0)},nt=()=>{c(!1)},at=()=>w?a?(0,i.jsx)(Ti.Z,{fontSize:"small",className:s.submenuArrow}):(0,i.jsx)(Ri.Z,{fontSize:"small",className:s.submenuArrow}):!a&&(0,i.jsx)(Wr.Z,{fontSize:"small",className:s.submenuArrow});return(0,i.jsx)(ge.Ag.Provider,{value:{isHoveredOn:a,setIsHoveredOn:c},children:(0,i.jsxs)("div",{"data-testid":"item-with-submenu",onMouseLeave:nt,onTouchStart:a?nt:U,onMouseEnter:U,className:tn()(a&&s.highlighted),children:[(0,i.jsx)(Kr,{hasSubmenu:!0,className:y?s.selected:"",...e,children:at()}),a&&r]})})},kr=(0,d.forwardRef)((r,e)=>{const[n]=(0,qn.v)(r.children,s=>s.getElements().filter(a=>a.type===ji));return n?(0,i.jsx)(Ui,{...r,children:n}):(0,i.jsx)(Kr,{...r,ref:e})});function Aa(r){const{sidebarConfig:e}=useContext(SidebarConfigContext),[n,s]=useState(""),a=eo(e),c=r.icon?r.icon:SearchIcon,m=()=>{r.onSearch(n),s("")},y=at=>{at.key==="Enter"&&(at.preventDefault(),m())},w=at=>{s(at.target.value)},U=at=>{at.preventDefault(),at.stopPropagation()},nt=at=>{m(),at.preventDefault()};return _jsx(Box,{className:a.searchRoot,children:_jsx(kr,{icon:c,to:r.to,onClick:nt,disableHighlight:!0,children:_jsx(TextField,{placeholder:"Search",value:n,onClick:U,onChange:w,onKeyDown:y,className:a.searchContainer,InputProps:{disableUnderline:!0,className:a.searchField},inputProps:{className:a.searchFieldHTMLInput}})})})}const Sa=(0,to.Z)("div")({flex:1},{name:"BackstageSidebarSpace"}),Oa=(0,to.Z)("div")({height:8},{name:"BackstageSidebarSpacer"}),$i=(0,to.Z)("hr")(({theme:r})=>({height:1,width:"100%",background:"#383838",border:"none",margin:r.spacing(1.2,0)}),{name:"BackstageSidebarDivider"}),Fi=r=>({overflowY:"auto","&::-webkit-scrollbar":{backgroundColor:r.palette.background.default,width:"5px",borderRadius:"5px"},"&::-webkit-scrollbar-thumb":{backgroundColor:r.palette.text.secondary,borderRadius:"5px"}}),ba=(0,to.Z)("div")(({theme:r})=>{const e=Fi(r);return{flex:"0 1 auto",overflowX:"hidden",width:"calc(100% - 5px)",minHeight:"48px",overflowY:"hidden","@media (hover: none)":e,"&:hover":e}}),Pa=()=>{const{sidebarConfig:r}=useContext(SidebarConfigContext),e=eo(r),{isOpen:n,setOpen:s}=useSidebarOpenState();if(useMediaQuery(m=>m.breakpoints.down("md"),{noSsr:!0}))return null;const c=()=>{s(!n)};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:n?_jsx(DoubleArrowLeft,{}):_jsx(DoubleArrowRight,{})})})},Wi=(0,Ze.Z)({root:{width:ge.po.drawerWidthClosed,height:3*ge.po.logoHeight,display:"flex",flexFlow:"row nowrap",alignItems:"center",marginBottom:-14},link:{width:ge.po.drawerWidthClosed,marginLeft:24}}),Ni=()=>{const r=Wi(),{isOpen:e}=_o();return(0,i.jsx)("div",{className:r.root,children:(0,i.jsx)(Ir.rU,{to:"/docs/default/component/local/",underline:"none",className:r.link,children:e?(0,i.jsx)(li,{}):(0,i.jsx)(di,{})})})},Zi=({children:r})=>(0,i.jsxs)(Dr.t,{children:[(0,i.jsxs)(Oi,{children:[(0,i.jsx)(Ni,{}),(0,i.jsx)($i,{}),(0,i.jsx)(kr,{icon:ii.Z,to:"/docs/default/component/local",text:"Docs Preview"})]}),r]});var Ki=t(80030),ki=t(32388),zi=t(4142),Hi=t(65386),Gi=t(45902);const Vi=(0,Ze.Z)(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 zr;(function(r){r.LIGHT="light",r.DARK="dark"})(zr||(zr={}));const _i=()=>{const r=(0,mn.h_)(Nn),e=Vi(),[n,s]=(0,d.useState)(r.getActiveThemeId()==="dark"?"dark":"light"),a={light:{icon:zi.Z,title:"Dark theme"},dark:{icon:ki.Z,title:"Light theme"}},{title:c,icon:m}=a[n],y=()=>{s(w=>{const U=w==="light"?"dark":"light";return r.setActiveThemeId(U),U})};return(0,i.jsx)(Ge.Z,{display:"flex",alignItems:"center",mr:2,children:(0,i.jsx)(Ki.ZP,{title:c,arrow:!0,children:(0,i.jsx)(Lr.Z,{size:"small",onClick:y,children:(0,i.jsx)(m,{className:e.headerIcon})})})})},Yi=()=>(0,i.jsxs)(f.I6,{children:[(0,i.jsx)(Hi.S,{}),(0,i.jsx)(Gi.F,{withSearch:!1})]}),Qi=(0,i.jsx)(Yi,{}),Hr=Zs({apis:ei,configLoader:si,plugins:Object.values(o)}),Ji=Hr.getProvider(),Xi=Hr.getRouter(),qi=f.s4.provide((0,g.KY)({name:"ThemeToggleAddon",component:_i,location:O.o.Header})),ta=(0,i.jsxs)(Ks,{children:[(0,i.jsx)(p.Fg,{to:"/docs/default/component/local/"},"/"),(0,i.jsx)(p.AW,{path:"/catalog/:namespace/:kind/:name",element:(0,i.jsx)(Xs,{})}),(0,i.jsx)(p.AW,{path:"/docs",element:(0,i.jsx)(f.Jl,{}),children:(0,i.jsx)(l.u,{})}),(0,i.jsxs)(p.AW,{path:"/docs/:namespace/:kind/:name/*",element:(0,i.jsx)(f.I6,{}),children:[Qi,(0,i.jsx)(g.DR,{children:(0,i.jsx)(qi,{})})]})]});var ea=()=>(0,i.jsx)(Ji,{children:(0,i.jsx)(Xi,{children:(0,i.jsx)(Zi,{children:ta})})});S.render((0,i.jsx)(ea,{}),document.getElementById("root"))},29651:function(Y,T,t){"use strict";t.d(T,{CT:function(){return d},Vt:function(){return S}});var o=t(2784),i=t(96087);function d(f){return(0,i.u)(f,()=>(0,o.createContext)(void 0))}function S(f){return(0,o.useContext)(d(f))}function p(f){return{set(l){globalThis[`__@backstage/${f}__`]=createContext(createVersionedValueMap(l))},reset(){delete globalThis[`__@backstage/${f}__`]}}}},68993:function(Y,T,t){"use strict";t.d(T,{E:function(){return o}});function o(i){Object.freeze(i);const d={atVersion(S){return i[S]}};return Object.defineProperty(d,"$map",{configurable:!0,enumerable:!0,get(){return i}}),d}},96087:function(Y,T,t){"use strict";t.d(T,{u:function(){return S}});function o(){return typeof window!="undefined"&&window.Math===Math?window:typeof self!="undefined"&&self.Math===Math?self:Function("return this")()}const i=o(),d=p=>`__@backstage/${p}__`;function S(p,f){const l=d(p);let g=i[l];return g||(g=f(),i[l]=g,g)}},88624:function(Y,T,t){"use strict";t.d(T,{A:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"plugin.catalog.service"})},36802:function(Y,T,t){"use strict";t.d(T,{p:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"catalog-react.starred-entities"})},30389:function(Y,T,t){"use strict";t.d(T,{_i:function(){return x}});var o=t(52322),i=t(2784),d=t(41156),S=t(60364),p=t(77277),f=t(4190),l=t(62774),g=t(90436),O=t(60905),A=t(36444);const P=E=>{var I;const R=(0,d.Z)(k=>{var ot,X;return k.breakpoints.down((X=(ot=E.options)===null||ot===void 0?void 0:ot.drawerBreakpoint)!==null&&X!==void 0?X:"md")}),M=(0,S.Z)(),[F,N]=(0,i.useState)(!1);var v;return R?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(p.Z,{style:{marginTop:M.spacing(1),marginLeft:M.spacing(1)},onClick:()=>N(!0),startIcon:(0,o.jsx)(A.Z,{}),children:"Filters"}),(0,o.jsx)(f.ZP,{open:F,onClose:()=>N(!1),anchor:(v=(I=E.options)===null||I===void 0?void 0:I.drawerAnchor)!==null&&v!==void 0?v:"left",disableAutoFocus:!0,keepMounted:!0,variant:"temporary",children:(0,o.jsxs)(l.Z,{m:2,children:[(0,o.jsx)(g.Z,{variant:"h6",component:"h2",style:{marginBottom:M.spacing(1)},children:"Filters"}),E.children]})})]}):(0,o.jsx)(O.Z,{item:!0,lg:2,children:E.children})},C=E=>(0,o.jsx)(O.Z,{item:!0,xs:12,lg:10,children:E.children}),x=E=>(0,o.jsx)(O.Z,{container:!0,style:{position:"relative"},children:E.children});x.Filters=P,x.Content=C},77605:function(Y,T,t){"use strict";t.d(T,{K:function(){return z}});var o=t(52322),i=t(62774),d=t(90436),S=t(38016),p=t(88013),f=t(2784),l=t(44394),g=t(64279),O=t(88624),A=t(21324),P=t(5806),C=t(19996),x=t(25505);const E=(0,o.jsx)(x.Z,{fontSize:"small"}),I=(0,o.jsx)(C.Z,{fontSize:"small"});function R({selected:G}){return(0,o.jsx)(A.Z,{icon:E,checkedIcon:I,checked:G})}const M=(0,f.memo)(G=>{const{selected:q,value:rt,availableOptions:xt,showCounts:Et}=G,ut=Et?`${rt} (${xt==null?void 0:xt[rt]})`:rt;return(0,o.jsx)(P.Z,{control:(0,o.jsx)(R,{selected:q}),label:ut,onClick:Ot=>Ot.preventDefault()})});var F=t(79692),N=t(86619),v=t(72779),k=t.n(v);const ot=(0,F.Z)({input:{}},{name:"CatalogReactEntityAutocompletePickerInput"});function X(G){const q=ot();return(0,o.jsx)(N.Z,{variant:"outlined",...G,className:k()(q.input,G.className)})}var H=t(25942);function z(G){var q;const{label:rt,name:xt,path:Et,showCounts:ut,Filter:Ot,InputProps:Ct,initialSelectedOptions:bt=[]}=G,{updateFilters:st,filters:$,queryParameters:{[xt]:_}}=(0,H.wp)(),tt=(0,l.h_)(O.A),{value:it}=(0,g.default)(async()=>{var ct;const Rt=Et,{facets:Tt}=await tt.getEntityFacets({facets:[Rt],filter:(ct=$.kind)===null||ct===void 0?void 0:ct.getCatalogFilters()});return Object.fromEntries(Tt[Rt].map(({value:It,count:Zt})=>[It,Zt]))},[$.kind]),dt=(0,f.useMemo)(()=>[_].flat().filter(Boolean),[_]);var W;const[K,pt]=(0,f.useState)(dt.length?dt:(W=(q=$[xt])===null||q===void 0?void 0:q.values)!==null&&W!==void 0?W:bt);(0,f.useEffect)(()=>{dt.length&&pt(dt)},[dt]);const yt=Object.keys(it!=null?it:{}),ft=K.length&&yt.length;(0,f.useEffect)(()=>{st({[xt]:ft?new Ot(K):void 0})},[xt,ft,K,Ot,st]);const gt=$[xt];return gt&&typeof gt=="object"&&!("values"in gt)||!yt.length||yt.length<=1?null:(0,o.jsx)(i.Z,{pb:1,pt:1,children:(0,o.jsxs)(d.Z,{variant:"button",component:"label",children:[rt,(0,o.jsx)(p.ZP,{multiple:!0,disableCloseOnSelect:!0,options:yt,value:K,onChange:(ct,Rt)=>pt(Rt),renderOption:(ct,{selected:Rt})=>(0,o.jsx)(M,{selected:Rt,value:ct,availableOptions:it,showCounts:!!ut}),size:"small",popupIcon:(0,o.jsx)(S.Z,{"data-testid":`${String(xt)}-picker-expand`}),renderInput:ct=>(0,o.jsx)(X,{...ct,...Ct})})]})})}},63833:function(Y,T,t){"use strict";t.d(T,{d:function(){return st}});var o=t(52322),i=t(74314),d=t(79692),S=t(62774),p=t(90436),f=t(5806),l=t(21324),g=t(86619),O=t(19996),A=t(25505),P=t(38016),C=t(88013),x=t(2784),E=t(25942),I=t(4967),R=t(6232),M=t(98685),F=t(62367),N=t(86540),v=t(44394),k=t(69294),ot=t(88624);function X({enabled:$}){const _=(0,v.h_)(ot.A),[tt]=(0,x.useState)(async()=>{if(!$)return[];const it="relations.ownedBy";return _.getEntityFacets({facets:[it]}).then(dt=>dt.facets[it].map(W=>W.value).map(W=>{const{kind:K,name:pt,namespace:yt}=(0,i.of)(W);return{apiVersion:"backstage.io/v1beta1",kind:K,metadata:{name:pt,namespace:yt}}}).sort((W,K)=>(W.metadata.namespace||"").localeCompare(K.metadata.namespace||"","en-US")||W.metadata.name.localeCompare(K.metadata.name,"en-US")||W.kind.localeCompare(K.kind,"en-US"))).catch(()=>[])});return(0,k.default)(async(it,dt)=>{const W=await tt;if(!W)return{items:[]};var K;const pt=(K=dt==null?void 0:dt.limit)!==null&&K!==void 0?K:20,{text:yt,start:ft}=H(it),gt=W.filter(Rt=>q(yt,Rt)),ct=ft+pt;return{items:gt.slice(0,ct),...G({entities:gt,limit:ct,payload:{text:yt,start:ct}})}},[tt],{loading:!0,value:{items:[]}})}function H($){return z($)&&$.cursor?JSON.parse(atob($.cursor)):{text:$.text||"",start:0}}function z($){return!!$.cursor}function G({entities:$,limit:_,payload:tt}){return $.length>_?{cursor:btoa(JSON.stringify(tt))}:{}}function q($,_){var tt;const it=$.trim();return _.kind.includes(it)||((tt=_.metadata.namespace)===null||tt===void 0?void 0:tt.includes(it))||_.metadata.name.includes(it)}function rt(){const $=(0,v.h_)(ot.A);return(0,k.default)(async(_,tt)=>{const it=_,dt=_;var W;const K=(W=tt==null?void 0:tt.limit)!==null&&W!==void 0?W:20;if(dt.cursor){const yt=await $.queryEntities({cursor:dt.cursor,limit:K});return{cursor:yt.pageInfo.nextCursor,items:[...dt.items,...yt.items]}}const pt=await $.queryEntities({fullTextFilter:{term:it.text||"",fields:["metadata.name","kind","spec.profile.displayname","metadata.title"]},filter:{kind:["User","Group"]},orderFields:[{field:"metadata.name",order:"asc"}],limit:K});return{cursor:pt.pageInfo.nextCursor,items:pt.items}},[],{loading:!0})}var xt=t(21638);function Et({mode:$,initialSelectedOwnersRefs:_}){const tt=$==="owners-only",it=rt(),dt=X({enabled:tt}),[W,K]=tt?dt:it;return[W,K,ut({enabled:!tt,initialSelectedOwnersRefs:_})]}function ut({enabled:$,initialSelectedOwnersRefs:_}){const tt=(0,x.useRef)({}),it=(0,v.h_)(ot.A),[,dt]=(0,k.default)(async()=>{(await it.getEntitiesByRefs({entityRefs:_})).items.forEach(K=>{K&&(tt.current[(0,i.eE)(K)]=K)})},[]);return(0,xt.n)(()=>{$&&_.length>0&&dt()}),{getEntity:W=>tt.current[W],setEntity:W=>{tt.current[(0,i.eE)(W)]=W}}}const Ot=(0,d.Z)({input:{}},{name:"CatalogReactEntityOwnerPicker"}),Ct=(0,o.jsx)(A.Z,{fontSize:"small"}),bt=(0,o.jsx)(O.Z,{fontSize:"small"}),st=$=>{var _,tt;const it=Ot(),{mode:dt="owners-only"}=$||{},{updateFilters:W,filters:K,queryParameters:{owners:pt}}=(0,E.wp)(),[yt,ft]=(0,x.useState)(""),gt=(0,x.useMemo)(()=>[pt].flat().filter(Boolean),[pt]);var ct;const[Rt,Tt]=(0,x.useState)(gt.length?gt:(ct=(_=K.owners)===null||_===void 0?void 0:_.values)!==null&&ct!==void 0?ct:[]),[{value:It,loading:Zt},Yt,he]=Et({mode:dt,initialSelectedOwnersRefs:Rt});(0,R.b)(()=>Yt({text:yt}),[yt,Yt],250);const Kt=(It==null?void 0:It.items)||[];return(0,x.useEffect)(()=>{if(gt.length){const Ft=new I.rf(gt);Tt(Ft.values)}},[gt]),(0,x.useEffect)(()=>{W({owners:Rt.length?new I.rf(Rt):void 0})},[Rt,W]),["user","group"].includes(((tt=K.kind)===null||tt===void 0?void 0:tt.value.toLocaleLowerCase("en-US"))||"")?null:(0,o.jsx)(S.Z,{pb:1,pt:1,children:(0,o.jsxs)(p.Z,{variant:"button",component:"label",children:["Owner",(0,o.jsx)(C.ZP,{multiple:!0,disableCloseOnSelect:!0,loading:Zt,options:Kt,value:Rt,getOptionSelected:(Ft,Ht)=>typeof Ht=="string"?(0,i.eE)(Ft)===Ht:Ft===Ht,getOptionLabel:Ft=>{const Ht=typeof Ft=="string"?he.getEntity(Ft)||(0,i.of)(Ft,{defaultKind:"group",defaultNamespace:"default"}):Ft;return(0,N.w)(Ht,(0,N.$)(Ht))},onChange:(Ft,Ht)=>{ft(""),Tt(Ht.map(ne=>{const Ce=typeof ne=="string"?ne:(0,i.eE)(ne);return typeof ne!="string"&&he.setEntity(ne),Ce}))},filterOptions:Ft=>Ft,renderOption:(Ft,{selected:Ht})=>{const ne=Ft.kind.toLocaleLowerCase("en-US")==="group";return(0,o.jsx)(f.Z,{control:(0,o.jsx)(l.Z,{icon:Ct,checkedIcon:bt,checked:Ht}),onClick:Ce=>Ce.preventDefault(),label:(0,o.jsxs)(S.Z,{display:"flex",flexWrap:"wrap",alignItems:"center",children:[ne?(0,o.jsx)(F.Z,{fontSize:"small"}):(0,o.jsx)(M.Z,{fontSize:"small"}),"\xA0",(0,N.w)(Ft,(0,N.$)(Ft,{defaultKind:Ft.kind}))]})})},size:"small",popupIcon:(0,o.jsx)(P.Z,{"data-testid":"owner-picker-expand"}),renderInput:Ft=>(0,o.jsx)(g.Z,{...Ft,className:it.input,onChange:Ht=>{ft(Ht.currentTarget.value)},variant:"outlined"}),ListboxProps:{onScroll:Ft=>{const Ht=Ft.currentTarget;Math.abs(Ht.scrollHeight-Ht.clientHeight-Ht.scrollTop)<1&&(It!=null&&It.cursor)&&Yt({items:It.items,cursor:It.cursor})},"data-testid":"owner-picker-listbox"}})]})})}},41748:function(Y,T,t){"use strict";t.d(T,{d:function(){return A}});var o=t(52322),i=t(74314),d=t(34106),S=t(2784),p=t(36434),f=t(86540),l=t(98864),g=t(37321),O=t(80030);const A=(0,S.forwardRef)((P,C)=>{const{entityRef:x,defaultKind:E,title:I,children:R,...M}=P,F=(0,g.t)(p.w);let N,v,k;if(typeof x=="string"){const G=(0,i.of)(x);N=G.kind,v=G.namespace,k=G.name}else"metadata"in x?(N=x.kind,v=x.metadata.namespace,k=x.metadata.name):(N=x.kind,v=x.namespace,k=x.name);N=N.toLocaleLowerCase("en-US");var ot;v=(ot=v==null?void 0:v.toLocaleLowerCase("en-US"))!==null&&ot!==void 0?ot:d.zG;const X={kind:encodeURIComponent(N),namespace:encodeURIComponent(v),name:encodeURIComponent(k)},H=(0,f.$)({kind:N,namespace:v,name:k},{defaultKind:E}),z=(0,o.jsxs)(l.rU,{...M,ref:C,to:F(X),children:[R,!R&&(I!=null?I:H)]});return I?(0,o.jsx)(O.ZP,{title:H,children:z}):z})},68138:function(Y,T,t){"use strict";t.d(T,{r:function(){return P}});var o=t(52322),i=t(2784),d=t(41748),S=t(74314),p=t(55015),f=t(74359),l=t(64279),g=t(88624),O=t(44394);function A(C){const{entityRefs:x,defaultKind:E,getTitle:I,...R}=C,M=(0,O.h_)(g.A),{value:F=new Array,loading:N,error:v}=(0,l.default)(async()=>{const k=x.reduce((X,H)=>typeof H=="object"&&"metadata"in H?X:[...X,(0,S.of)(H)],new Array),ot=x.filter(X=>typeof X=="object"&&"metadata"in X);return k.length>0?[...(await M.getEntities({filter:k.map(X=>({kind:X.kind,"metadata.namespace":X.namespace,"metadata.name":X.name}))})).items,...ot]:ot},[x]);return N?(0,o.jsx)(p.E,{}):v?(0,o.jsx)(f.y,{error:v}):(0,o.jsx)(o.Fragment,{children:F.map((k,ot)=>(0,o.jsxs)(i.Fragment,{children:[ot>0&&", ",(0,o.jsx)(d.d,{...R,defaultKind:E,entityRef:k,title:I(k)})]},ot))})}function P(C){const{entityRefs:x,defaultKind:E,fetchEntities:I,getTitle:R,...M}=C;return I?(0,o.jsx)(A,{...M,defaultKind:E,entityRefs:x,getTitle:R}):(0,o.jsx)(o.Fragment,{children:x.map((F,N)=>(0,o.jsxs)(i.Fragment,{children:[N>0&&", ",(0,o.jsx)(d.d,{...M,defaultKind:E,entityRef:F,title:R?R(F):void 0})]},N))})}},86540:function(Y,T,t){"use strict";t.d(T,{$:function(){return S},w:function(){return p}});var o=t(34106),i=t(72579),d=t.n(i);function S(f,l){const g=l==null?void 0:l.defaultKind;let O,A,P;return"metadata"in f?(O=f.kind,A=f.metadata.namespace,P=f.metadata.name):(O=f.kind,A=f.namespace,P=f.name),(A===void 0||A==="")&&(A=o.zG),(l==null?void 0:l.defaultNamespace)!==void 0?(l==null?void 0:l.defaultNamespace)===A&&(A=void 0):A===o.zG&&(A=void 0),O=O.toLocaleLowerCase("en-US"),O=g&&g.toLocaleLowerCase("en-US")===O?void 0:O,`${O?`${O}:`:""}${A?`${A}/`:""}${P}`}function p(f,l){for(const g of["spec.profile.displayName","metadata.title"]){const O=d()(f,g);if(O&&typeof O=="string")return O}return l}},97894:function(Y,T,t){"use strict";t.d(T,{x:function(){return l}});var o=t(52322),i=t(79692),d=t(2784),S=t(4967),p=t(77605);const f=(0,i.Z)({input:{}},{name:"CatalogReactEntityTagPicker"}),l=g=>{const O=f();return(0,o.jsx)(p.K,{label:"Tags",name:"tags",path:"metadata.tags",Filter:S.Cu,showCounts:g.showCounts,InputProps:{className:O.input}})}},23433:function(Y,T,t){"use strict";t.d(T,{E:function(){return H}});var o=t(52322),i=t(44394),d=t(6542),S=t(79692),p=t(94339),f=t(90436),l=t(11776),g=t(12231),O=t(86136),A=t(49378),P=t(9520),C=t(47603),x=t(11640),E=t(76635),I=t.n(E),R=t(2784),M=t(4967),F=t(25942),N=t(42870),v=t(81269),k=t(64039);const ot=(0,S.Z)(z=>({root:{backgroundColor:"rgba(0, 0, 0, .11)",boxShadow:"none",margin:z.spacing(1,0,1,0)},title:{margin:z.spacing(1,0,0,1),textTransform:"uppercase",fontSize:12,fontWeight:"bold"},listIcon:{minWidth:30,color:z.palette.text.primary},menuItem:{minHeight:z.spacing(6)},groupWrapper:{margin:z.spacing(1,1,2,1)}}),{name:"CatalogReactUserListPicker"});function X(z){return[{name:"Personal",items:[{id:"owned",label:"Owned",icon:C.Z},{id:"starred",label:"Starred",icon:x.Z}]},{name:z!=null?z:"Company",items:[{id:"all",label:"All"}]}]}const H=z=>{const{initialFilter:G,availableFilters:q}=z,rt=ot(),xt=(0,i.h_)(d.D);var Et;const ut=(Et=xt.getOptionalString("organization.name"))!==null&&Et!==void 0?Et:"Company",{filters:Ot,updateFilters:Ct,backendEntities:bt,queryParameters:{kind:st,user:$},loading:_}=(0,F.wp)(),tt=["starred","all"],it=X(ut).map(Zt=>({...Zt,items:Zt.items.filter(({id:Yt})=>["group","user"].some(he=>he===st)?tt.includes(Yt):!q||q.includes(Yt))})).filter(({items:Zt})=>!!Zt.length),{isStarredEntity:dt}=(0,N.C)(),{isOwnedEntity:W,loading:K}=(0,v.Z)(),pt=_||K,yt=(0,R.useMemo)(()=>new M.IZ("owned",W,dt),[W,dt]),ft=(0,R.useMemo)(()=>new M.IZ("starred",W,dt),[W,dt]),gt=(0,R.useMemo)(()=>[$].flat()[0],[$]),[ct,Rt]=(0,R.useState)(gt!=null?gt:G),Tt=(0,R.useMemo)(()=>bt.filter((0,k.G)((0,E.compact)(Object.values({...Ot,user:void 0})))),[Ot,bt]),It=(0,R.useMemo)(()=>({all:Tt.length,starred:Tt.filter(Zt=>ft.filterEntity(Zt)).length,owned:Tt.filter(Zt=>yt.filterEntity(Zt)).length}),[Tt,ft,yt]);return(0,R.useEffect)(()=>{gt&&Rt(gt)},[gt]),(0,R.useEffect)(()=>{!pt&&ct&&ct!=="all"&&It[ct]===0&&Rt("all")},[pt,It,ct,Rt]),(0,R.useEffect)(()=>{Ct({user:ct?new M.IZ(ct,W,dt):void 0})},[ct,W,dt,Ct]),(0,o.jsx)(p.Z,{className:rt.root,children:it.map(Zt=>(0,o.jsxs)(R.Fragment,{children:[(0,o.jsx)(f.Z,{variant:"subtitle2",component:"span",className:rt.title,children:Zt.name}),(0,o.jsx)(p.Z,{className:rt.groupWrapper,children:(0,o.jsx)(l.Z,{disablePadding:!0,dense:!0,role:"menu","aria-label":Zt.name,children:Zt.items.map(Yt=>{var he,Kt;return(0,o.jsxs)(g.Z,{role:"none presentation",button:!0,divider:!0,onClick:()=>Rt(Yt.id),selected:Yt.id===((he=Ot.user)===null||he===void 0?void 0:he.value),className:rt.menuItem,disabled:It[Yt.id]===0,"data-testid":`user-picker-${Yt.id}`,tabIndex:0,ContainerProps:{role:"menuitem"},children:[Yt.icon&&(0,o.jsx)(O.Z,{className:rt.listIcon,children:(0,o.jsx)(Yt.icon,{fontSize:"small"})}),(0,o.jsx)(A.Z,{children:(0,o.jsxs)(f.Z,{variant:"body1",children:[Yt.label," "]})}),(0,o.jsx)(P.Z,{children:(Kt=It[Yt.id])!==null&&Kt!==void 0?Kt:"-"})]},Yt.id)})})})]},Zt.name))})}},4967:function(Y,T,t){"use strict";t.d(T,{A5:function(){return E},Bf:function(){return f},Cu:function(){return l},IZ:function(){return C},Qe:function(){return P},mM:function(){return x},rf:function(){return O},zH:function(){return A},zo:function(){return p}});var o=t(87612),i=t(8709),d=t(74314),S=t(75435);class p{getCatalogFilters(){return{kind:this.value}}toQueryValue(){return this.value}constructor(R){(0,o._)(this,"value",void 0),this.value=R}}class f{getTypes(){return Array.isArray(this.value)?this.value:[this.value]}getCatalogFilters(){return{"spec.type":this.getTypes()}}toQueryValue(){return this.getTypes()}constructor(R){(0,o._)(this,"value",void 0),this.value=R}}class l{filterEntity(R){return this.values.every(M=>{var F;return((F=R.metadata.tags)!==null&&F!==void 0?F:[]).includes(M)})}toQueryValue(){return this.values}constructor(R){(0,o._)(this,"values",void 0),this.values=R}}class g{filterEntity(R){const M=this.toUpperArray(this.value.split(/\s/)),F=this.toUpperArray([R.metadata.tags]),N=this.toUpperArray([R.metadata.name,R.metadata.title]);for(const v of M)if(F.every(k=>k!==v)&&N.every(k=>!k.includes(v)))return!1;return!0}toUpperArray(R){return R.flat().filter(M=>Boolean(M)).map(M=>M.toLocaleUpperCase("en-US"))}constructor(R){_define_property(this,"value",void 0),this.value=R}}class O{filterEntity(R){return this.values.some(M=>(0,S.h)(R,i.S4).some(F=>(0,d.eE)(F)===M))}toQueryValue(){return this.values}constructor(R){(0,o._)(this,"values",void 0),this.values=R.reduce((M,F)=>{try{return M.push((0,d.eE)((0,d.of)(F,{defaultKind:"Group"}))),M}catch{return M}},[])}}class A{filterEntity(R){return this.values.some(M=>{var F;return((F=R.spec)===null||F===void 0?void 0:F.lifecycle)===M})}toQueryValue(){return this.values}constructor(R){(0,o._)(this,"values",void 0),this.values=R}}class P{filterEntity(R){return this.values.some(M=>R.metadata.namespace===M)}toQueryValue(){return this.values}constructor(R){(0,o._)(this,"values",void 0),this.values=R}}class C{filterEntity(R){switch(this.value){case"owned":return this.isOwnedEntity(R);case"starred":return this.isStarredEntity(R);default:return!0}}toQueryValue(){return this.value}constructor(R,M,F){(0,o._)(this,"value",void 0),(0,o._)(this,"isOwnedEntity",void 0),(0,o._)(this,"isStarredEntity",void 0),this.value=R,this.isOwnedEntity=M,this.isStarredEntity=F}}class x{filterEntity(R){var M;const F=(M=R.metadata.annotations)===null||M===void 0?void 0:M["backstage.io/orphan"];return F!==void 0&&this.value.toString()===F}constructor(R){(0,o._)(this,"value",void 0),this.value=R}}class E{filterEntity(R){var M,F;const N=(R==null||(F=R.status)===null||F===void 0||(M=F.items)===null||M===void 0?void 0:M.length)>0;return N!==void 0&&this.value===N}constructor(R){(0,o._)(this,"value",void 0),this.value=R}}},25942:function(Y,T,t){"use strict";t.d(T,{UO:function(){return I},wp:function(){return R}});var o=t(52322),i=t(76635),d=t.n(i),S=t(19126),p=t.n(S),f=t(2784),l=t(73557),g=t(69294),O=t(48760),A=t(90736),P=t(88624),C=t(64039),x=t(44394);const E=(0,f.createContext)(void 0),I=M=>{const F=(0,A.default)(),N=(0,x.h_)(P.A),[v,k]=(0,f.useState)({}),ot=(0,l.TH)(),X=(0,f.useMemo)(()=>{var ut;return(ut=p().parse(ot.search,{ignoreQueryPrefix:!0}).filters)!==null&&ut!==void 0?ut:{}},[ot]),[H,z]=(0,f.useState)(()=>({appliedFilters:{},entities:[],backendEntities:[]})),[{loading:G,error:q},rt]=(0,g.default)(async()=>{const ut=(0,i.compact)(Object.values(v)),Ot=(0,C.G)(ut),Ct=(0,C.w)(ut),bt=(0,C.w)((0,i.compact)(Object.values(H.appliedFilters))),st=Object.keys(v).reduce((_,tt)=>{const it=v[tt];return it!=null&&it.toQueryValue&&(_[tt]=it.toQueryValue()),_},{});if((0,i.isEqual)(bt,Ct))z({appliedFilters:v,backendEntities:H.backendEntities,entities:H.backendEntities.filter(Ot)});else{const _=await N.getEntities({filter:Ct});z({appliedFilters:v,backendEntities:_.items,entities:_.items.filter(Ot)})}if(F()){var $;const _=p().parse(ot.search,{ignoreQueryPrefix:!0}),tt=p().stringify({..._,filters:st},{addQueryPrefix:!0,arrayFormat:"repeat"}),it=`${window.location.pathname}${tt}`;($=window.history)===null||$===void 0||$.replaceState(null,document.title,it)}},[N,X,v,H],{loading:!0});(0,O.Z)(rt,10,[v]);const xt=(0,f.useCallback)(ut=>{k(Ot=>{const Ct=typeof ut=="function"?ut(Ot):ut;return{...Ot,...Ct}})},[]),Et=(0,f.useMemo)(()=>({filters:H.appliedFilters,entities:H.entities,backendEntities:H.backendEntities,updateFilters:xt,queryParameters:X,loading:G,error:q}),[H,xt,X,G,q]);return(0,o.jsx)(E.Provider,{value:Et,children:M.children})};function R(){const M=(0,f.useContext)(E);if(!M)throw new Error("useEntityList must be used within EntityListProvider");return M}},81269:function(Y,T,t){"use strict";t.d(T,{Z:function(){return g}});var o=t(8709),i=t(74314),d=t(44394),S=t(77186),p=t(2784),f=t(64279),l=t(75435);function g(){const O=(0,d.h_)(S.$),{loading:A,value:P}=(0,f.default)(async()=>{const{ownershipEntityRefs:x}=await O.getBackstageIdentity();return x},[]),C=(0,p.useMemo)(()=>{const x=new Set(P!=null?P:[]);return E=>{const I=(0,l.h)(E,o.S4).map(i.eE);for(const R of I)if(x.has(R))return!0;return!1}},[P]);return(0,p.useMemo)(()=>({loading:A,isOwnedEntity:C}),[A,C])}},42870:function(Y,T,t){"use strict";t.d(T,{C:function(){return l}});var o=t(74314),i=t(44394),d=t(2784),S=t(72164),p=t(36802);function f(g){return typeof g=="string"?g:(0,o.eE)(g)}function l(){const g=(0,i.h_)(p.p),O=(0,S.Z)(g.starredEntitie$(),new Set),A=(0,d.useCallback)(C=>O.has(f(C)),[O]),P=(0,d.useCallback)(C=>g.toggleStarred(f(C)).then(),[g]);return{starredEntities:O,toggleStarredEntity:P,isStarredEntity:A}}},36434:function(Y,T,t){"use strict";t.d(T,{w:function(){return d}});var o=t(30283),i=t(96087);const d=(0,i.u)("catalog:entity-route-ref",()=>(0,o.N)({id:"catalog:entity",params:["namespace","kind","name"]}));function S(p){var f,l;return{kind:p.kind.toLocaleLowerCase("en-US"),namespace:(l=(f=p.metadata.namespace)===null||f===void 0?void 0:f.toLocaleLowerCase("en-US"))!==null&&l!==void 0?l:DEFAULT_NAMESPACE,name:p.metadata.name}}},64039:function(Y,T,t){"use strict";t.d(T,{G:function(){return i},w:function(){return o}});function o(d){return d.reduce((S,p)=>({...S,...p.getCatalogFilters?p.getCatalogFilters():{}}),{})}function i(d){return S=>d.every(p=>!p.filterEntity||p.filterEntity(S))}},75435:function(Y,T,t){"use strict";t.d(T,{h:function(){return i}});var o=t(74314);function i(d,S,p){var f;let l=(d==null||(f=d.relations)===null||f===void 0?void 0:f.filter(g=>g.type===S).map(g=>(0,o.of)(g.targetRef)))||[];return p!=null&&p.kind&&(l=l.filter(g=>g.kind.toLocaleLowerCase("en-US")===p.kind.toLocaleLowerCase("en-US"))),l}},65524:function(Y,T,t){"use strict";t.d(T,{yw:function(){return g},ql:function(){return A},_Z:function(){return P},jU:function(){return O}});var o=t(87612),i=t(92918);let d=i.K,S=d;class p{toString(){return`routeRef{type=external,id=${this.id}}`}constructor(x,E,I){(0,o._)(this,"id",void 0),(0,o._)(this,"params",void 0),(0,o._)(this,"optional",void 0),(0,o._)(this,S,void 0),this.id=x,this.params=E,this.optional=I,this[d]="external"}}function f(C){var x;return new p(C.id,(x=C.params)!==null&&x!==void 0?x:[],Boolean(C.optional))}var l=t(30283);const g=f({id:"create-component",optional:!0}),O=f({id:"view-techdoc",optional:!0,params:["namespace","kind","name"]}),A=f({id:"create-from-template",optional:!0,params:["namespace","templateName"]}),P=(0,l.N)({id:"catalog"})},76079:function(Y,T,t){"use strict";t.d(T,{F:function(){return p}});var o=t(52322),i=t(2784),d=t(79692);const S=(0,d.Z)(()=>({highlight:{}}),{name:"BackstageHighlightedSearchResultText"}),p=f=>{const{text:l,preTag:g,postTag:O}=f,A=S(),P=(0,i.useMemo)(()=>l.split(new RegExp(`(${g}.+?${O})`)),[O,g,l]);return(0,o.jsx)(o.Fragment,{children:P.map((C,x)=>C.includes(g)?(0,o.jsx)("mark",{className:A.highlight,children:C.replace(new RegExp(`${g}|${O}`,"g"),"")},x):C)})}},53945:function(Y,T,t){"use strict";t.d(T,{E5:function(){return O}});var o=t(52322),i=t(2784),d=t(62369),S=t(82963),p=t(38402);const f="search.results.list.items.extensions.v1",l=(C,x)=>{for(const E of C){if(!isValidElement(E))continue;const I=getComponentData(E,f);if(I!=null&&I(x))return cloneElement(E,{rank:x.rank,highlight:x.highlight,result:x.document,...E.props})}return null},g=C=>{const{rank:x,result:E,noTrack:I,children:R,alignItems:M="flex-start",...F}=C,N=(0,d.z)(),v=(0,i.useCallback)(()=>{I||E&&N.captureEvent("discover",E.title,{attributes:{to:E.location},value:x})},[x,E,I,N]);return(0,o.jsx)(p.Z,{divider:!0,alignItems:M,onClickCapture:v,...F,children:R})},O=C=>{const{name:x,component:E,predicate:I=()=>!0}=C;return(0,S.YO)({name:x,component:{lazy:()=>E().then(R=>M=>(0,o.jsx)(g,{rank:M.rank,result:M.result,noTrack:M.noTrack,children:(0,i.createElement)(R,M)}))},data:{[f]:I}})},A=C=>{const x=useElementFilter(C,E=>E.selectByComponentData({key:f}).getElements(),[C]);return useCallback((E,I)=>{const R=l(x,E);return _jsx(Fragment,{children:R!=null?R:_jsx(g,{rank:E.rank,result:E.document,children:_jsx(DefaultResultListItem,{rank:E.rank,highlight:E.highlight,result:E.document})})},I)},[x])},P=C=>{const{results:x,children:E,...I}=C,R=A(E);return _jsx(List,{...I,children:x.map(R)})}},2296:function(Y,T,t){"use strict";t.d(T,{$L:function(){return I},DR:function(){return O},KY:function(){return P},Zz:function(){return g},jM:function(){return l}});var o=t(52322),i=t(2784),d=t(73557),S=t(62584),p=t(82963),f=t(2532);const l="techdocs.addons.addon.v1",g="techdocs.addons.wrapper.v1",O=()=>null;(0,S.R)(O,g,!0);const A=R=>`${l}.${R.toLocaleLowerCase("en-US")}`;function P(R){const{name:M,component:F}=R;return(0,p.YO)({name:M,component:{sync:N=>(0,o.jsx)(F,{...N})},data:{[l]:R,[A(M)]:!0}})}const C=(R,M)=>R.selectByComponentData({key:M}).getElements()[0],x=R=>R.selectByComponentData({key:g}).selectByComponentData({key:l}),E=R=>R.selectByComponentData({key:g}).findComponentData({key:l}),I=()=>{const R=(0,d.pC)(),M=(0,f.v)(R,x),F=(0,f.v)(R,E),N=(0,i.useCallback)(ot=>{if(!M||!ot)return null;const X=A(ot.name);var H;return(H=C(M,X))!==null&&H!==void 0?H:null},[M]),v=(0,i.useCallback)(ot=>{const X=F.find(H=>H.name===ot);return X?N(X):null},[F,N]),k=(0,i.useCallback)(ot=>{const X=F.filter(H=>H.location===ot);return X.length?X.map(N):null},[F,N]);return{renderComponentByName:v,renderComponentsByLocation:k}}},58496:function(Y,T,t){"use strict";t.d(T,{D:function(){return d},g:function(){return i}});var o=t(95965);const i=(0,o.T)({id:"plugin.techdocs.service"}),d=(0,o.T)({id:"plugin.techdocs.storageservice"})},68979:function(Y,T,t){"use strict";t.d(T,{Z:function(){return R},x:function(){return M}});var o=t(52322),i=t(2784),d=t(64279),S=t(77446),p=t(74314),f=t(29651),l=t(68993),g=t(44394),O=t(6542),A=t(72388),P=t(58496);function C(F,N){return N.getOptionalBoolean("techdocs.legacyUseCaseSensitiveTripletPaths")||(F.kind=F.kind.toLocaleLowerCase(),F.name=F.name.toLocaleLowerCase(),F.namespace=F.namespace.toLocaleLowerCase()),F}const x=(F,N)=>(0,p.eE)(F)===(0,p.eE)(N),E={title:"",subtitle:"",setTitle:()=>{},setSubtitle:()=>{},setShadowRoot:()=>{},metadata:{loading:!0},entityMetadata:{loading:!0},entityRef:{kind:"",name:"",namespace:""}},I=(0,f.CT)("techdocs-reader-page-context"),R=(0,i.memo)(F=>{const{entityRef:N,children:v}=F,k=(0,g.h_)(P.g),ot=(0,g.h_)(O.D),X=(0,d.default)(async()=>k.getEntityMetadata(N),[N]),H=(0,S.Z)(async()=>k.getTechDocsMetadata(N),[N]),[z,G]=(0,i.useState)(E.title),[q,rt]=(0,i.useState)(E.subtitle),[xt,Et]=(0,i.useState)(E.shadowRoot);(0,i.useEffect)(()=>{xt&&!H.value&&!H.loading&&H.retry()},[H.value,H.loading,xt,H.retry,H]);const ut={metadata:H,entityRef:C(N,ot),entityMetadata:X,shadowRoot:xt,setShadowRoot:Et,title:z,setTitle:G,subtitle:q,setSubtitle:rt},Ot=(0,l.E)({1:ut});return(0,o.jsx)(A.fC,{attributes:{entityRef:(0,p.eE)(N)},children:(0,o.jsx)(I.Provider,{value:Ot,children:v instanceof Function?v(ut):v})})},(F,N)=>x(F.entityRef,N.entityRef)),M=()=>{const F=(0,i.useContext)(I);if(F===void 0)return E;const N=F.atVersion(1);if(N===void 0)throw new Error("No context found for version 1.");return N}},57058:function(Y,T,t){"use strict";t.d(T,{o:function(){return o}});const o=Object.freeze({Header:"Header",Subheader:"Subheader",Settings:"Settings",PrimarySidebar:"PrimarySidebar",SecondarySidebar:"SecondarySidebar",Content:"Content"})},51953:function(Y,T,t){"use strict";t.d(T,{D:function(){return o}});function o(i,d){return d.getOptionalBoolean("techdocs.legacyUseCaseSensitiveTripletPaths")?i:i.toLocaleLowerCase("en-US")}},29895:function(Y,T,t){"use strict";t.d(T,{u:function(){return H}});var o=t(52322),i=t(2784),d=t(42398),S=t(30706),p=t(13788),f=t(25942),l=t(30389),g=t(23433),O=t(63833),A=t(97894),P=t(42081),C=t(88797);class x{getCatalogFilters(){return{"metadata.annotations.backstage.io/techdocs-ref":C.n}}}const E=()=>{const{updateFilters:z}=(0,f.wp)();return(0,i.useEffect)(()=>{z({techdocs:new x})},[z]),null};var I=t(95074),R=t(76635),M=t(538),F=t(9791),N=t(42870),v=t(16787),k=t(45342),ot=t(49079);const X=z=>{var G;const{columns:q,actions:rt,options:xt}=z,{loading:Et,error:ut,entities:Ot,filters:Ct}=(0,f.wp)(),{isStarredEntity:bt,toggleStarredEntity:st}=(0,N.C)(),[,$]=(0,I.Z)();var _;const tt=(0,R.capitalize)((_=(G=Ct.user)===null||G===void 0?void 0:G.value)!==null&&_!==void 0?_:"all"),it=[k.n.createCopyDocsUrlAction($),k.n.createStarEntityAction(bt,st)];return ut?(0,o.jsx)(M.G,{severity:"error",title:"Could not load available documentation.",children:(0,o.jsx)(F.O,{language:"text",text:ut.toString()})}):(0,o.jsx)(v.H,{title:tt,entities:Ot,loading:Et,actions:rt||it,columns:q,options:xt})};X.columns=ot.N,X.actions=k.n;const H=z=>{const{initialFilter:G="owned",columns:q,actions:rt}=z;return(0,o.jsx)(P.j,{children:(0,o.jsxs)(d.V,{children:[(0,o.jsx)(S.y,{title:"",children:(0,o.jsx)(p.q,{children:"Discover documentation in your ecosystem."})}),(0,o.jsx)(f.UO,{children:(0,o.jsxs)(l._i,{children:[(0,o.jsxs)(l._i.Filters,{children:[(0,o.jsx)(E,{}),(0,o.jsx)(g.E,{initialFilter:G}),(0,o.jsx)(O.d,{}),(0,o.jsx)(A.x,{})]}),(0,o.jsx)(l._i.Content,{children:(0,o.jsx)(X,{actions:rt,columns:q})})]})})]})})}},16787:function(Y,T,t){"use strict";t.d(T,{H:function(){return M}});var o=t(52322),i=t(2784),d=t(95074),S=t(37321),p=t(44394),f=t(6542),l=t(8709),g=t(75435),O=t(86540),A=t(95573),P=t(84462),C=t(70249),x=t(15929),E=t(45342),I=t(49079),R=t(51953);const M=F=>{const{entities:N,title:v,loading:k,columns:ot,actions:X,options:H}=F,[,z]=(0,d.Z)(),G=(0,S.t)(A.Fw),q=(0,p.h_)(f.D);if(!N)return null;const rt=N.map(ut=>{const Ot=(0,g.h)(ut,l.S4);var Ct;return{entity:ut,resolved:{docsUrl:G({namespace:(0,R.D)((Ct=ut.metadata.namespace)!==null&&Ct!==void 0?Ct:"default",q),kind:(0,R.D)(ut.kind,q),name:(0,R.D)(ut.metadata.name,q)}),ownedByRelations:Ot,ownedByRelationsTitle:Ot.map(bt=>(0,O.$)(bt,{defaultKind:"group"})).join(", ")}}}),xt=[I.N.createNameColumn(),I.N.createOwnerColumn(),I.N.createKindColumn(),I.N.createTypeColumn()],Et=[E.n.createCopyDocsUrlAction(z)];return(0,o.jsx)(o.Fragment,{children:k||rt&&rt.length>0?(0,o.jsx)(P.i,{isLoading:k,options:{paging:!0,pageSize:20,search:!0,actionsColumnIndex:-1,...H},data:rt,columns:ot||xt,actions:X||Et,title:v?`${v} (${rt.length})`:`All (${rt.length})`}):(0,o.jsx)(C.u,{missing:"data",title:"No documents to show",description:"Create your own document. Check out our Getting Started Information",action:(0,o.jsx)(x.Q,{color:"primary",to:"https://backstage.io/docs/features/techdocs/getting-started",variant:"contained",children:"DOCS"})})})};M.columns=I.N,M.actions=E.n},45342:function(Y,T,t){"use strict";t.d(T,{n:function(){return g}});var o=t(52322),i=t(2784),d=t(39981),S=t(2337),p=t(11640),f=t(28347);const l=(0,S.Z)({root:{color:"#f3ba37"}})(p.Z),g={createCopyDocsUrlAction(O){return A=>({icon:()=>(0,o.jsx)(d.Z,{fontSize:"small"}),tooltip:"Click to copy documentation link to clipboard",onClick:()=>O(`${window.location.origin}${A.resolved.docsUrl}`)})},createStarEntityAction(O,A){return P=>{const C=P.entity,x=O(C);return{cellStyle:{paddingLeft:"1em"},icon:()=>x?(0,o.jsx)(l,{}):(0,o.jsx)(f.Z,{}),tooltip:x?"Remove from favorites":"Add to favorites",onClick:()=>A(C)}}}}},49079:function(Y,T,t){"use strict";t.d(T,{N:function(){return A}});var o=t(52322),i=t(2784),d=t(62774),S=t(79692);const p=(0,S.Z)(P=>({value:{marginBottom:P.spacing(.75)},subvalue:{color:P.palette.textSubtle,fontWeight:"normal"}}),{name:"BackstageSubvalueCell"});function f(P){const{value:C,subvalue:x}=P,E=p();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(d.Z,{className:E.value,children:C}),(0,o.jsx)(d.Z,{className:E.subvalue,children:x})]})}var l=t(98864),g=t(68138);function O(P){return P.metadata.title||P.metadata.name}const A={createNameColumn(){return{title:"Document",field:"entity.metadata.name",highlight:!0,render:P=>(0,o.jsx)(f,{value:(0,o.jsx)(l.rU,{to:P.resolved.docsUrl,children:O(P.entity)}),subvalue:P.entity.metadata.description})}},createOwnerColumn(){return{title:"Owner",field:"resolved.ownedByRelationsTitle",render:({resolved:P})=>(0,o.jsx)(g.r,{entityRefs:P.ownedByRelations,defaultKind:"group"})}},createKindColumn(){return{title:"Kind",field:"entity.kind"}},createTypeColumn(){return{title:"Type",field:"entity.spec.type"}}}},42081:function(Y,T,t){"use strict";t.d(T,{j:function(){return f}});var o=t(52322),i=t(2784),d=t(32166),S=t(44394),p=t(6542);const f=l=>{const{children:g}=l,O=(0,S.h_)(p.D);var A;const P=`Documentation available in ${(A=O.getOptionalString("organization.name"))!==null&&A!==void 0?A:"Backstage"}`;return(0,o.jsx)(d.g,{title:"Documentation",subtitle:P,themeId:"documentation",children:g})}},4577:function(Y,T,t){"use strict";t.d(T,{Jl:function(){return Ot},I6:function(){return Ct},s4:function(){return rt}});var o=t(58496),i=t(87612),d=t(41385),S=t(48998),p=t(30474);class f extends Error{constructor($,_){var tt,it;let dt=$;if(_!==void 0){const W=(0,S.n)(_);dt?dt+=`; caused by ${W}`:dt=`caused by ${W}`}super(dt),(0,i._)(this,"cause",void 0),(tt=(it=Error).captureStackTrace)===null||tt===void 0||tt.call(it,this,this.constructor),(!this.name||this.name==="Error")&&this.constructor.name!=="Error"&&(this.name=this.constructor.name),this.cause=(0,p.V)(_)?_:void 0}}class l extends null{constructor(...$){super(...$),_define_property(this,"name","InputError")}}class g extends null{constructor(...$){super(...$),_define_property(this,"name","AuthenticationError")}}class O extends null{constructor(...$){super(...$),_define_property(this,"name","NotAllowedError")}}class A extends f{constructor(...$){super(...$),(0,i._)(this,"name","NotFoundError")}}class P extends null{constructor(...$){super(...$),_define_property(this,"name","ConflictError")}}class C extends null{constructor(...$){super(...$),_define_property(this,"name","NotModifiedError")}}class x extends null{constructor(...$){super(...$),_define_property(this,"name","NotImplementedError")}}class E extends null{}class I extends null{constructor($,_){super($,_),this.name=isError(_)?_.name:"Error"}}var R=t(54847);class M{async getApiOrigin(){return await this.discoveryApi.getBaseUrl("techdocs")}async getTechDocsMetadata($){const{kind:_,namespace:tt,name:it}=$,W=`${await this.getApiOrigin()}/metadata/techdocs/${tt}/${_}/${it}`,K=await this.fetchApi.fetch(`${W}`);if(!K.ok)throw await d.V.fromResponse(K);return await K.json()}async getEntityMetadata($){const{kind:_,namespace:tt,name:it}=$,W=`${await this.getApiOrigin()}/metadata/entity/${tt}/${_}/${it}`,K=await this.fetchApi.fetch(`${W}`);if(!K.ok)throw await d.V.fromResponse(K);return await K.json()}constructor($){(0,i._)(this,"configApi",void 0),(0,i._)(this,"discoveryApi",void 0),(0,i._)(this,"fetchApi",void 0),this.configApi=$.configApi,this.discoveryApi=$.discoveryApi,this.fetchApi=$.fetchApi}}class F{async getApiOrigin(){return await this.discoveryApi.getBaseUrl("techdocs")}async getStorageUrl(){var $;return($=this.configApi.getOptionalString("techdocs.storageUrl"))!==null&&$!==void 0?$:`${await this.discoveryApi.getBaseUrl("techdocs")}/static/docs`}async getBuilder(){return this.configApi.getString("techdocs.builder")}async getEntityDocs($,_){const{kind:tt,namespace:it,name:dt}=$,K=`${await this.getStorageUrl()}/${it}/${tt}/${dt}/${_}`,pt=await this.fetchApi.fetch(`${K.endsWith("/")?K:`${K}/`}index.html`);let yt="";switch(pt.status){case 404:throw yt="Page not found. ",_||(yt+="This could be because there is no index.md file in the root of the docs directory of this repository."),new A(yt);case 500:throw yt="Could not generate documentation or an error in the TechDocs backend. ",new Error(yt);default:break}return pt.text()}async syncEntityDocs($,_=()=>{}){const{kind:tt,namespace:it,name:dt}=$,K=`${await this.getApiOrigin()}/sync/${it}/${tt}/${dt}`,{token:pt}=await this.identityApi.getCredentials();return new Promise((yt,ft)=>{const gt=new R.EventSourcePolyfill(K,{withCredentials:!0,headers:pt?{Authorization:`Bearer ${pt}`}:{}});gt.addEventListener("log",ct=>{ct.data&&_(JSON.parse(ct.data))}),gt.addEventListener("finish",ct=>{let Rt=!1;ct.data&&({updated:Rt}=JSON.parse(ct.data)),yt(Rt?"updated":"cached")}),gt.onerror=ct=>{switch(gt.close(),ct.status){case 404:ft(new A(ct.message));return;default:ft(new Error(ct.data));return}}})}async getBaseUrl($,_,tt){const{kind:it,namespace:dt,name:W}=_,pt=`${await this.getApiOrigin()}/static/docs/${dt}/${it}/${W}/${tt}`;return new URL($,pt.endsWith("/")?pt:`${pt}/`).toString()}constructor($){(0,i._)(this,"configApi",void 0),(0,i._)(this,"discoveryApi",void 0),(0,i._)(this,"identityApi",void 0),(0,i._)(this,"fetchApi",void 0),this.configApi=$.configApi,this.discoveryApi=$.discoveryApi,this.identityApi=$.identityApi,this.fetchApi=$.fetchApi}}var N=t(95573),v=t(15006),k=t(42380),ot=t(6542),X=t(96727),H=t(77186),z=t(85094),G=t(82963),q=t(53945);const rt=(0,v.r)({id:"techdocs",apis:[(0,k.n)({api:o.D,deps:{configApi:ot.D,discoveryApi:X.N,identityApi:H.$,fetchApi:z.g},factory:({configApi:st,discoveryApi:$,identityApi:_,fetchApi:tt})=>new F({configApi:st,discoveryApi:$,identityApi:_,fetchApi:tt})}),(0,k.n)({api:o.g,deps:{configApi:ot.D,discoveryApi:X.N,fetchApi:z.g},factory:({configApi:st,discoveryApi:$,fetchApi:_})=>new M({configApi:st,discoveryApi:$,fetchApi:_})})],routes:{root:N._Z,docRoot:N.Fw,entityContent:N.pd}}),xt=rt.provide((0,G.P4)({name:"TechdocsPage",component:()=>t.e(967).then(t.bind(t,80967)).then(st=>st.Router),mountPoint:N._Z})),Et=rt.provide((0,G.P4)({name:"EntityTechdocsContent",component:()=>t.e(967).then(t.bind(t,80967)).then(st=>st.EmbeddedDocsRouter),mountPoint:N.pd})),ut=rt.provide((0,G.P4)({name:"TechDocsCustomHome",component:()=>t.e(2924).then(t.bind(t,12924)).then(st=>st.TechDocsCustomHome),mountPoint:N._Z})),Ot=rt.provide((0,G.P4)({name:"TechDocsIndexPage",component:()=>t.e(8662).then(t.bind(t,18662)).then(st=>st.TechDocsIndexPage),mountPoint:N._Z})),Ct=rt.provide((0,G.P4)({name:"TechDocsReaderPage",component:()=>t.e(5914).then(t.bind(t,35914)).then(st=>st.TechDocsReaderPage),mountPoint:N.Fw})),bt=rt.provide((0,q.E5)({name:"TechDocsSearchResultListItem",component:()=>Promise.resolve().then(t.bind(t,55511)).then(st=>st.TechDocsSearchResultListItem),predicate:st=>st.type==="techdocs"}))},45902:function(Y,T,t){"use strict";t.d(T,{F:function(){return Un}});var o=t(52322),i=t(2784),d=t(79692),S=t(60905),p=t(68979),f=t(70882),l=t(50236),g=t(19219),O=t(55015);const A="TECH_DOCS_SHADOW_DOM_STYLE_LOAD",P=h=>{(0,i.useEffect)(()=>{if(!h)return()=>{};const b=h.querySelectorAll('head > link[rel="stylesheet"]');var j;let Z=(j=b==null?void 0:b.length)!==null&&j!==void 0?j:0;const V=new CustomEvent(A);if(!Z)return h.dispatchEvent(V),()=>{};const Q=()=>{--Z===0&&h.dispatchEvent(V)};return b==null||b.forEach(J=>{J.addEventListener("load",Q)}),()=>{b==null||b.forEach(J=>{J.removeEventListener("load",Q)})}},[h])},C=h=>{const[b,j]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{if(!h)return()=>{};j(!0);const Z=h.style;Z.setProperty("opacity","0");const V=()=>{j(!1),Z.setProperty("opacity","1")};return h.addEventListener(A,V),()=>{h.removeEventListener(A,V)}},[h]),b},x=h=>{const{element:b,onAppend:j,children:Z}=h,[V,Q]=(0,i.useState)((0,f.Ue)({...(0,l.Z)(),insertionPoint:void 0}));P(b);const J=C(b),At=(0,i.useCallback)(wt=>{if(!b||!wt)return;Q((0,f.Ue)({...(0,l.Z)(),insertionPoint:b.querySelector("head")||void 0}));let jt=wt.shadowRoot;jt||(jt=wt.attachShadow({mode:"open"})),jt.replaceChildren(b),typeof j=="function"&&j(jt)},[b,j]);return(0,o.jsxs)(o.Fragment,{children:[J&&(0,o.jsx)(O.E,{}),(0,o.jsxs)(g.ZP,{jss:V,sheetsManager:new Map,children:[(0,o.jsx)("div",{ref:At,"data-testid":"techdocs-native-shadowroot"}),Z]})]})};var E=t(87435),I=t(42398),R=t(76635),M=t(64279),F=t(1849),N=t(29651),v=t(68993),k=t(44394),ot=t(72388),X=t(6542),H=t(95965);const z=(0,H.T)({id:"plugin.search.queryservice"});class G{query(){return Promise.resolve(this.mockedResults||{results:[]})}constructor(b){_define_property(this,"mockedResults",void 0),this.mockedResults=b}}const q=(0,N.CT)("search-context"),rt=()=>{const h=(0,i.useContext)(q);if(!h)throw new Error("useSearch must be used within a SearchContextProvider");const b=h.atVersion(1);if(!b)throw new Error("No SearchContext v1 found");return b},xt=()=>(0,i.useContext)(q)!==void 0,Et={term:"",types:[],filters:{},pageLimit:void 0,pageCursor:void 0},ut=(h=Et)=>{var b,j,Z,V;const Q=(0,k.h_)(z),[J,At]=(0,i.useState)(h.term),[wt,jt]=(0,i.useState)(h.types),[Ut,Vt]=(0,i.useState)(h.filters),[Pt,pe]=(0,i.useState)(h.pageLimit),[ae,Qt]=(0,i.useState)(h.pageCursor),_t=(0,F.Z)(J),ee=(0,F.Z)(Ut),qt=(0,M.default)(()=>Q.query({term:J,types:wt,filters:Ut,pageLimit:Pt,pageCursor:ae}),[J,wt,Ut,Pt,ae]),Wt=!qt.loading&&!qt.error&&((b=qt.value)===null||b===void 0?void 0:b.nextPageCursor),$t=!qt.loading&&!qt.error&&((j=qt.value)===null||j===void 0?void 0:j.previousPageCursor),Jt=(0,i.useCallback)(()=>{var se;Qt((se=qt.value)===null||se===void 0?void 0:se.nextPageCursor)},[(Z=qt.value)===null||Z===void 0?void 0:Z.nextPageCursor]),ce=(0,i.useCallback)(()=>{var se;Qt((se=qt.value)===null||se===void 0?void 0:se.previousPageCursor)},[(V=qt.value)===null||V===void 0?void 0:V.previousPageCursor]);return(0,i.useEffect)(()=>{_t!==void 0&&J!==_t&&Qt(void 0)},[J,_t,Qt]),(0,i.useEffect)(()=>{ee!==void 0&&!(0,R.isEqual)(Ut,ee)&&Qt(void 0)},[Ut,ee,Qt]),{result:qt,term:J,setTerm:At,types:wt,setTypes:jt,filters:Ut,setFilters:Vt,pageLimit:Pt,setPageLimit:pe,pageCursor:ae,setPageCursor:Qt,fetchNextPage:Wt?Jt:void 0,fetchPreviousPage:$t?ce:void 0}},Ot=h=>{const{initialState:b,children:j}=h,Z=ut(b);return(0,o.jsx)(ot.fC,{attributes:{searchTypes:Z.types.sort().join(",")},children:(0,o.jsx)(q.Provider,{value:(0,v.E)({1:Z}),children:j})})},Ct=h=>{const{initialState:b,inheritParentContextIfAvailable:j,children:Z}=h,V=xt(),Q=(0,k.h_)(X.D),J=b!=null?b:{},At=Q.has("search.query.pageLimit")?{pageLimit:Q.getNumber("search.query.pageLimit")}:{},wt={...Et,...J,...At};return V&&j?(0,o.jsx)(o.Fragment,{children:Z}):(0,o.jsx)(Ot,{initialState:wt,children:Z})};var bt=t(4614),st=t(88013),$=t(50581),_=t(61837),tt=t(86619),it=t(77277),dt=t(21853),W=t(48760),K=t(62369);const pt=({children:h})=>{var b;const j=Ut=>(0,F.Z)(Ut)!==Ut,Z=(0,K.z)(),{term:V,result:Q}=rt();var J;const At=(J=(b=Q.value)===null||b===void 0?void 0:b.numberOfResults)!==null&&J!==void 0?J:void 0,jt=j(Q.loading)&&!Q.loading;return(0,i.useEffect)(()=>{V&&jt&&Z.captureEvent("search",V,{value:At})},[Z,V,At,jt]),(0,o.jsx)(o.Fragment,{children:h})};function yt(h){return(0,i.forwardRef)((b,j)=>(0,o.jsx)(Ct,{inheritParentContextIfAvailable:!0,children:(0,o.jsx)(h,{...b,ref:j})}))}const ft=yt((0,i.forwardRef)((h,b)=>{const{onChange:j,onKeyDown:Z=()=>{},onClear:V=()=>{},onSubmit:Q=()=>{},debounceTime:J=200,clearButton:At=!0,fullWidth:wt=!0,value:jt,label:Ut,placeholder:Vt,inputProps:Pt={},InputProps:pe={},endAdornment:ae,...Qt}=h,_t=(0,k.h_)(X.D),[ee,qt]=(0,i.useState)("");(0,i.useEffect)(()=>{qt(de=>de!==jt?String(jt):de)},[jt]),(0,W.Z)(()=>j(ee),J,[ee]);const Wt=(0,i.useCallback)(de=>{qt(de.target.value)},[qt]),$t=(0,i.useCallback)(de=>{Z&&Z(de),Q&&de.key==="Enter"&&Q()},[Z,Q]),Jt=(0,i.useCallback)(()=>{j(""),V&&V()},[j,V]),ce=Ut?void 0:"Search",Pe=Vt!=null?Vt:`Search in ${_t.getOptionalString("app.title")||"Backstage"}`,se=(0,o.jsx)($.Z,{position:"start",children:(0,o.jsx)(_.Z,{"aria-label":"Query",size:"small",disabled:!0,children:(0,o.jsx)(dt.Z,{})})}),$e=(0,o.jsx)($.Z,{position:"end",children:(0,o.jsx)(it.Z,{"aria-label":"Clear",size:"small",onClick:Jt,onKeyDown:de=>{de.key==="Enter"&&de.stopPropagation()},children:"Clear"})});return(0,o.jsx)(pt,{children:(0,o.jsx)(tt.Z,{id:"search-bar-text-field","data-testid":"search-bar-next",variant:"outlined",margin:"normal",inputRef:b,value:ee,label:Ut,placeholder:Pe,InputProps:{startAdornment:se,endAdornment:At?$e:ae,...pe},inputProps:{"aria-label":ce,...Pt},fullWidth:wt,onChange:Wt,onKeyDown:$t,...Qt})})})),gt=yt((0,i.forwardRef)((h,b)=>{const{value:j="",onChange:Z,...V}=h,{term:Q,setTerm:J}=rt();(0,i.useEffect)(()=>{j&&J(String(j))},[j,J]);const At=(0,i.useCallback)(wt=>{Z?Z(wt):J(wt)},[Z,J]);return(0,o.jsx)(ot.fC,{attributes:{pluginId:"search",extension:"SearchBar"},children:(0,o.jsx)(ft,{...V,ref:b,value:Q,onChange:At})})})),ct=(0,d.Z)(h=>({loading:{right:h.spacing(1),position:"absolute"}})),Rt=h=>b=>(0,o.jsx)(Ct,{inheritParentContextIfAvailable:!0,children:(0,o.jsx)(h,{...b})}),Tt=()=>{const h=ct();return(0,o.jsx)(bt.Z,{className:h.loading,"data-testid":"search-autocomplete-progressbar",color:"inherit",size:20})},It=Rt(function(b){const{loading:j,value:Z,onChange:V=()=>{},options:Q=[],getOptionLabel:J=Wt=>String(Wt),inputPlaceholder:At,inputDebounceTime:wt,freeSolo:jt=!0,fullWidth:Ut=!0,clearOnBlur:Vt=!1,"data-testid":Pt="search-autocomplete",...pe}=b,{setTerm:ae}=rt(),Qt=(0,i.useCallback)(Wt=>Wt?typeof Wt=="string"?Wt:J(Wt):"",[J]),_t=(0,i.useMemo)(()=>Qt(Z),[Z,Qt]),ee=(0,i.useCallback)((Wt,$t,Jt,ce)=>{ae(Qt($t)),V(Wt,$t,Jt,ce)},[Qt,ae,V]),qt=(0,i.useCallback)(({InputProps:{ref:Wt,className:$t,endAdornment:Jt},InputLabelProps:ce,...Pe})=>(0,o.jsx)(gt,{...Pe,ref:Wt,clearButton:!1,value:_t,placeholder:At,debounceTime:wt,endAdornment:j?(0,o.jsx)(Tt,{}):Jt,InputProps:{className:$t}}),[j,_t,At,wt]);return(0,o.jsx)(st.ZP,{...pe,"data-testid":Pt,value:Z,onChange:ee,options:Q,getOptionLabel:J,renderInput:qt,freeSolo:jt,fullWidth:Ut,clearOnBlur:Vt})});var Zt=t(73557),Yt=t(55511);const he=h=>h==null?void 0:h.document,Kt=h=>{const{entityId:b,entityTitle:j,debounceTime:Z=150}=h,[V,Q]=(0,i.useState)(!1),J=(0,Zt.s0)(),{setFilters:At,result:{loading:wt,value:jt}}=rt(),[Ut,Vt]=(0,i.useState)([]);(0,i.useEffect)(()=>{let _t=!0;if(_t&&jt){const ee=jt.results.slice(0,10);Vt(ee)}return()=>{_t=!1}},[wt,jt]);const{kind:Pt,name:pe,namespace:ae}=b;(0,i.useEffect)(()=>{At(_t=>({..._t,kind:Pt,namespace:ae,name:pe}))},[Pt,ae,pe,At]);const Qt=(_t,ee)=>{if(he(ee)){const{location:qt}=ee.document;J(qt)}};return(0,o.jsx)(It,{"data-testid":"techdocs-search-bar",size:"small",open:V,getOptionLabel:()=>"",filterOptions:_t=>_t,onClose:()=>{Q(!1)},onFocus:()=>{Q(!0)},onChange:Qt,blurOnSelect:!0,noOptionsText:"No results found",value:null,options:Ut,renderOption:({document:_t,highlight:ee})=>(0,o.jsx)(Yt.TechDocsSearchResultListItem,{result:_t,lineClamp:3,asListItem:!1,asLink:!1,title:_t.title,highlight:ee}),loading:wt,inputDebounceTime:Z,inputPlaceholder:`Search ${j||b.name} docs`,freeSolo:!1})},Ft=h=>{const b={term:"",types:["techdocs"],pageCursor:"",filters:h.entityId};return(0,o.jsx)(Ct,{initialState:b,children:(0,o.jsx)(Kt,{...h})})};var Ht=t(99688),ne=t(80851);const Ce=(0,i.lazy)(()=>Promise.all([t.e(8629),t.e(6051)]).then(t.bind(t,76051)).then(h=>({default:h.RealLogViewer})));function Ae(h){const{Progress:b}=(0,ne.q)().getComponents();return(0,o.jsx)(i.Suspense,{fallback:(0,o.jsx)(b,{}),children:(0,o.jsx)(Ce,{...h})})}var Me=t(42494),Ve=t(90436),_e=t(4190),ke=t(87685);const fe=(0,d.Z)(h=>(0,Me.Z)({paper:{width:"100%",[h.breakpoints.up("sm")]:{width:"75%"},[h.breakpoints.up("md")]:{width:"50%"},padding:h.spacing(2.5)},root:{height:"100%",overflow:"hidden"},logs:{background:h.palette.background.default}})),Ye=({buildLog:h,onClose:b})=>{const j=fe(),Z=h.length===0?"Waiting for logs...":h.join(`
2
+ `);return(0,o.jsxs)(S.Z,{container:!0,direction:"column",className:j.root,spacing:0,wrap:"nowrap",children:[(0,o.jsxs)(S.Z,{item:!0,container:!0,justifyContent:"space-between",alignItems:"center",spacing:0,wrap:"nowrap",children:[(0,o.jsx)(Ve.Z,{variant:"h5",children:"Build Details"}),(0,o.jsx)(_.Z,{title:"Close the drawer",onClick:b,color:"inherit",children:(0,o.jsx)(ke.Z,{})},"dismiss")]}),(0,o.jsx)(S.Z,{item:!0,xs:!0,children:(0,o.jsx)(Ae,{text:Z,classes:{root:j.logs}})})]})},we=({buildLog:h})=>{const b=fe(),[j,Z]=(0,i.useState)(!1);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(it.Z,{color:"inherit",onClick:()=>Z(!0),children:"Show Build Logs"}),(0,o.jsx)(_e.ZP,{classes:{paper:b.paper},anchor:"right",open:j,onClose:()=>Z(!1),children:(0,o.jsx)(Ye,{buildLog:h,onClose:()=>Z(!1)})})]})},ze=({errorMessage:h})=>{const b=(0,k.h_)(X.D).getOptionalString("techdocs.builder");let j="";return b!=="local"&&(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,o.jsx)(E.m,{status:"404",statusMessage:h||"Documentation not found",additionalInfo:j})};var te=t(77446),Qe=t(58496);function Se({contentLoading:h,content:b,activeSyncState:j}){return h||j==="BUILD_READY_RELOAD"||!b&&j==="CHECKING"?"CHECKING":!b&&j==="BUILDING"?"INITIAL_BUILD":b?j==="BUILDING"?"CONTENT_STALE_REFRESHING":j==="BUILD_READY"?"CONTENT_STALE_READY":j==="ERROR"?"CONTENT_STALE_ERROR":"CONTENT_FRESH":"CONTENT_NOT_FOUND"}function Le(h,b){const j={...h};switch(b.type){case"sync":b.state==="CHECKING"&&(j.buildLog=[]),j.activeSyncState=b.state,j.syncError=b.syncError;break;case"contentLoading":j.contentLoading=!0,j.contentError=void 0;break;case"content":typeof b.path=="string"&&(j.path=b.path),j.contentLoading=!1,j.content=b.content,j.contentError=b.contentError;break;case"buildLog":j.buildLog=j.buildLog.concat(b.log);break;default:throw new Error}return["BUILD_READY","BUILD_READY_RELOAD"].includes(j.activeSyncState)&&["contentLoading","content"].includes(b.type)&&(j.activeSyncState="UP_TO_DATE",j.buildLog=[]),j}function Ie(h,b,j,Z){var V,Q;const[J,At]=(0,i.useReducer)(Le,{activeSyncState:"CHECKING",path:Z,contentLoading:!0,buildLog:[]}),wt=(0,k.h_)(Qe.D),{retry:jt}=(0,te.Z)(async()=>{At({type:"contentLoading"});try{const Pt=await wt.getEntityDocs({kind:h,namespace:b,name:j},Z);return At({type:"content",content:Pt,path:Z}),Pt}catch(Pt){At({type:"content",contentError:Pt,path:Z})}},[wt,h,b,j,Z]),Ut=(0,i.useRef)({content:void 0,reload:()=>{}});return Ut.current={content:J.content,reload:jt},(0,M.default)(async()=>{At({type:"sync",state:"CHECKING"});const Pt=setTimeout(()=>{At({type:"sync",state:"BUILDING"})},1e3);try{switch(await wt.syncEntityDocs({kind:h,namespace:b,name:j},ae=>{At({type:"buildLog",log:ae})})){case"updated":Ut.current.content?At({type:"sync",state:"BUILD_READY"}):(Ut.current.reload(),At({type:"sync",state:"BUILD_READY_RELOAD"}));break;case"cached":At({type:"sync",state:"UP_TO_DATE"});break;default:At({type:"sync",state:"ERROR",syncError:new Error("Unexpected return state")});break}}catch(pe){At({type:"sync",state:"ERROR",syncError:pe})}finally{clearTimeout(Pt)}},[h,j,b,wt,At,Ut]),{state:(0,i.useMemo)(()=>Se({activeSyncState:J.activeSyncState,contentLoading:J.contentLoading,content:J.content}),[J.activeSyncState,J.content,J.contentLoading]),contentReload:jt,path:J.path,content:J.content,contentErrorMessage:(V=J.contentError)===null||V===void 0?void 0:V.toString(),syncErrorMessage:(Q=J.syncError)===null||Q===void 0?void 0:Q.toString(),buildLog:J.buildLog}}const ie=(0,i.createContext)({}),je=()=>(0,i.useContext)(ie),Be=h=>{const{children:b}=h,{"*":j=""}=(0,Zt.UO)(),{entityRef:Z}=(0,p.x)(),{kind:V,namespace:Q,name:J}=Z,At=Ie(V,Q,J,j);return(0,o.jsx)(ie.Provider,{value:At,children:b instanceof Function?b(At):b})},L=h=>b=>(0,o.jsx)(Be,{children:(0,o.jsx)(h,{...b})}),u=(0,d.Z)(h=>({root:{marginBottom:h.spacing(2)},message:{wordBreak:"break-word",overflowWrap:"anywhere"}})),D=()=>{let h=null;const b=u(),{state:j,contentReload:Z,contentErrorMessage:V,syncErrorMessage:Q,buildLog:J}=je();return j==="INITIAL_BUILD"&&(h=(0,o.jsx)(Ht.Z,{classes:{root:b.root},variant:"outlined",severity:"info",icon:(0,o.jsx)(bt.Z,{size:"24px"}),action:(0,o.jsx)(we,{buildLog:J}),children:"Documentation is accessed for the first time and is being prepared. The subsequent loads are much faster."})),j==="CONTENT_STALE_REFRESHING"&&(h=(0,o.jsx)(Ht.Z,{variant:"outlined",severity:"info",icon:(0,o.jsx)(bt.Z,{size:"24px"}),action:(0,o.jsx)(we,{buildLog:J}),classes:{root:b.root},children:"A newer version of this documentation is being prepared and will be available shortly."})),j==="CONTENT_STALE_READY"&&(h=(0,o.jsx)(Ht.Z,{variant:"outlined",severity:"success",action:(0,o.jsx)(it.Z,{color:"inherit",onClick:()=>Z(),children:"Refresh"}),classes:{root:b.root},children:"A newer version of this documentation is now available, please refresh to view."})),j==="CONTENT_STALE_ERROR"&&(h=(0,o.jsxs)(Ht.Z,{variant:"outlined",severity:"error",action:(0,o.jsx)(we,{buildLog:J}),classes:{root:b.root,message:b.message},children:["Building a newer version of this documentation failed."," ",Q]})),j==="CONTENT_NOT_FOUND"&&(h=(0,o.jsxs)(o.Fragment,{children:[Q&&(0,o.jsxs)(Ht.Z,{variant:"outlined",severity:"error",action:(0,o.jsx)(we,{buildLog:J}),classes:{root:b.root,message:b.message},children:["Building a newer version of this documentation failed."," ",Q]}),(0,o.jsx)(ze,{errorMessage:V})]})),h};var B=t(60364),et=t(41156),ht=t(91657),mt=t(35368),kt=t.n(mt);const zt=/main\.[A-Fa-f0-9]{8}\.min\.css$/,Bt=/^https:\/\/fonts\.googleapis\.com/,Mt=/^https:\/\/fonts\.gstatic\.com/,oe=h=>h.nodeName==="LINK",Oe=h=>{const b=(h==null?void 0:h.getAttribute("href"))||"",j=b.match(zt),Z=b.match(Bt),V=b.match(Mt);return j||Z||V},Te=h=>(oe(h)&&!Oe(h)&&h.remove(),h),Ue=h=>h.nodeName==="IFRAME",no=(h,b)=>{const j=h.getAttribute("src")||"";try{const{host:Z}=new URL(j);return b.includes(Z)}catch{return!1}},Xt=h=>b=>(Ue(b)&&!no(b,h)&&b.remove(),b),le=()=>{const h=(0,k.h_)(X.D);return(0,i.useMemo)(()=>h.getOptionalConfig("techdocs.sanitizer"),[h])},re=()=>{const h=le();return(0,i.useCallback)(async b=>{const j=h==null?void 0:h.getOptionalStringArray("allowedIframeHosts");kt().addHook("beforeSanitizeElements",Te);const Z=["link"];return j&&(Z.push("iframe"),kt().addHook("beforeSanitizeElements",Xt(j))),kt().sanitize(b.outerHTML,{ADD_TAGS:Z,FORBID_TAGS:["style"],WHOLE_DOCUMENT:!0,RETURN_DOM:!0})},[h])};var Rn=t(93539),me=t(41128),Tn=({theme:h})=>`
3
+ /*================== Variables ==================*/
4
+ /*
5
+ 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.
6
+ 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.
7
+ */
8
+
9
+ :host {
10
+ /* FONT */
11
+ --md-default-fg-color: ${h.palette.text.primary};
12
+ --md-default-fg-color--light: ${h.palette.text.secondary};
13
+ --md-default-fg-color--lighter: ${(0,me.$n)(h.palette.text.secondary,.7)};
14
+ --md-default-fg-color--lightest: ${(0,me.$n)(h.palette.text.secondary,.3)};
15
+
16
+ /* BACKGROUND */
17
+ --md-default-bg-color:${h.palette.background.default};
18
+ --md-default-bg-color--light: ${h.palette.background.paper};
19
+ --md-default-bg-color--lighter: ${(0,me.$n)(h.palette.background.paper,.7)};
20
+ --md-default-bg-color--lightest: ${(0,me.$n)(h.palette.background.paper,.3)};
21
+
22
+ /* PRIMARY */
23
+ --md-primary-fg-color: ${h.palette.primary.main};
24
+ --md-primary-fg-color--light: ${h.palette.primary.light};
25
+ --md-primary-fg-color--dark: ${h.palette.primary.dark};
26
+ --md-primary-bg-color: ${h.palette.primary.contrastText};
27
+ --md-primary-bg-color--light: ${(0,me.$n)(h.palette.primary.contrastText,.7)};
28
+
29
+ /* ACCENT */
30
+ --md-accent-fg-color: var(--md-primary-fg-color);
31
+
32
+ /* SHADOW */
33
+ --md-shadow-z1: ${h.shadows[1]};
34
+ --md-shadow-z2: ${h.shadows[2]};
35
+ --md-shadow-z3: ${h.shadows[3]};
36
+
37
+ /* EXTENSIONS */
38
+ --md-admonition-fg-color: var(--md-default-fg-color);
39
+ --md-admonition-bg-color: var(--md-default-bg-color);
40
+ /* Admonitions and others are using SVG masks to define icons. These masks are defined as CSS variables. */
41
+ --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>');
42
+ --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>');
43
+ --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>');
44
+ --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>');
45
+ --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>');
46
+ --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>');
47
+ --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>');
48
+ --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>');
49
+ --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>');
50
+ --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>');
51
+ --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>');
52
+ --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>');
53
+ --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>');
54
+ --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>');
55
+ --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>');
56
+ --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>');
57
+ --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>');
58
+ --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>');
59
+ --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>');
60
+ --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>');
61
+ --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>');
62
+ --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>');
63
+ --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>');
64
+ --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>');
65
+ --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>');
66
+ --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>');
67
+ }
68
+
69
+ :host > * {
70
+ /* CODE */
71
+ --md-code-fg-color: ${h.palette.text.primary};
72
+ --md-code-bg-color: ${h.palette.background.paper};
73
+ --md-code-hl-color: ${(0,me.Fq)(h.palette.warning.main,.5)};
74
+ --md-code-hl-keyword-color: ${h.palette.type==="dark"?h.palette.primary.light:h.palette.primary.dark};
75
+ --md-code-hl-function-color: ${h.palette.type==="dark"?h.palette.secondary.light:h.palette.secondary.dark};
76
+ --md-code-hl-string-color: ${h.palette.type==="dark"?h.palette.success.light:h.palette.success.dark};
77
+ --md-code-hl-number-color: ${h.palette.type==="dark"?h.palette.error.light:h.palette.error.dark};
78
+ --md-code-hl-constant-color: var(--md-code-hl-function-color);
79
+ --md-code-hl-special-color: var(--md-code-hl-function-color);
80
+ --md-code-hl-name-color: var(--md-code-fg-color);
81
+ --md-code-hl-comment-color: var(--md-default-fg-color--light);
82
+ --md-code-hl-generic-color: var(--md-default-fg-color--light);
83
+ --md-code-hl-variable-color: var(--md-default-fg-color--light);
84
+ --md-code-hl-operator-color: var(--md-default-fg-color--light);
85
+ --md-code-hl-punctuation-color: var(--md-default-fg-color--light);
86
+
87
+ /* TYPESET */
88
+ --md-typeset-font-size: 1rem;
89
+ --md-typeset-color: var(--md-default-fg-color);
90
+ --md-typeset-a-color: ${h.palette.link};
91
+ --md-typeset-table-color: ${h.palette.text.primary};
92
+ --md-typeset-del-color: ${h.palette.type==="dark"?(0,me.Fq)(h.palette.error.dark,.5):(0,me.Fq)(h.palette.error.light,.5)};
93
+ --md-typeset-ins-color: ${h.palette.type==="dark"?(0,me.Fq)(h.palette.success.dark,.5):(0,me.Fq)(h.palette.success.light,.5)};
94
+ --md-typeset-mark-color: ${h.palette.type==="dark"?(0,me.Fq)(h.palette.warning.dark,.5):(0,me.Fq)(h.palette.warning.light,.5)};
95
+ }
96
+
97
+ @media screen and (max-width: 76.1875em) {
98
+ :host > * {
99
+ /* TYPESET */
100
+ --md-typeset-font-size: .9rem;
101
+ }
102
+ }
103
+
104
+ @media screen and (max-width: 600px) {
105
+ :host > * {
106
+ /* TYPESET */
107
+ --md-typeset-font-size: .7rem;
108
+ }
109
+ }
110
+ `,wn=({theme:h})=>`
111
+ /*================== Reset ==================*/
112
+
113
+ body {
114
+ --md-text-color: var(--md-default-fg-color);
115
+ --md-text-link-color: var(--md-accent-fg-color);
116
+ --md-text-font-family: ${h.typography.fontFamily};
117
+ font-family: var(--md-text-font-family);
118
+ background-color: unset;
119
+ }
120
+ `;const In="224px";var Je=({theme:h,sidebar:b})=>`
121
+ /*================== Layout ==================*/
122
+
123
+ /* mkdocs material v9 compat */
124
+ .md-nav__title {
125
+ color: var(--md-default-fg-color);
126
+ }
127
+
128
+ .md-grid {
129
+ max-width: 100%;
130
+ margin: 0;
131
+ }
132
+
133
+ .md-nav {
134
+ font-size: calc(var(--md-typeset-font-size) * 0.9);
135
+ }
136
+ .md-nav__link {
137
+ display: flex;
138
+ align-items: center;
139
+ justify-content: space-between;
140
+ }
141
+ .md-nav__icon {
142
+ height: 20px !important;
143
+ width: 20px !important;
144
+ margin-left:${h.spacing(1)}px;
145
+ }
146
+ .md-nav__icon svg {
147
+ margin: 0;
148
+ width: 20px !important;
149
+ height: 20px !important;
150
+ }
151
+ .md-nav__icon:after {
152
+ width: 20px !important;
153
+ height: 20px !important;
154
+ }
155
+
156
+ .md-nav__item--active > .md-nav__link, a.md-nav__link--active {
157
+ text-decoration: underline;
158
+ color: var(--md-typeset-a-color);
159
+ }
160
+
161
+ .md-main__inner {
162
+ margin-top: 0;
163
+ }
164
+
165
+ .md-sidebar {
166
+ bottom: 75px;
167
+ position: fixed;
168
+ width: 16rem;
169
+ overflow-y: auto;
170
+ overflow-x: hidden;
171
+ scrollbar-color: rgb(193, 193, 193) #eee;
172
+ scrollbar-width: thin;
173
+ }
174
+ .md-sidebar .md-sidebar__scrollwrap {
175
+ width: calc(12.1rem);
176
+ }
177
+ .md-sidebar--secondary {
178
+ right: ${h.spacing(3)}px;
179
+ }
180
+ .md-sidebar::-webkit-scrollbar {
181
+ width: 5px;
182
+ }
183
+ .md-sidebar::-webkit-scrollbar-button {
184
+ width: 5px;
185
+ height: 5px;
186
+ }
187
+ .md-sidebar::-webkit-scrollbar-track {
188
+ background: #eee;
189
+ border: 1 px solid rgb(250, 250, 250);
190
+ box-shadow: 0px 0px 3px #dfdfdf inset;
191
+ border-radius: 3px;
192
+ }
193
+ .md-sidebar::-webkit-scrollbar-thumb {
194
+ width: 5px;
195
+ background: rgb(193, 193, 193);
196
+ border: transparent;
197
+ border-radius: 3px;
198
+ }
199
+ .md-sidebar::-webkit-scrollbar-thumb:hover {
200
+ background: rgb(125, 125, 125);
201
+ }
202
+
203
+ .md-content {
204
+ max-width: calc(100% - 16rem * 2);
205
+ margin-left: 16rem;
206
+ margin-bottom: 50px;
207
+ }
208
+
209
+ .md-footer {
210
+ position: fixed;
211
+ bottom: 0px;
212
+ pointer-events: none;
213
+ }
214
+
215
+ .md-footer-nav__link, .md-footer__link {
216
+ pointer-events: all;
217
+ }
218
+
219
+ .md-footer__title {
220
+ background-color: unset;
221
+ }
222
+ .md-footer-nav__link, .md-footer__link {
223
+ width: 16rem;
224
+ }
225
+
226
+ .md-dialog {
227
+ background-color: unset;
228
+ }
229
+
230
+ @media screen and (min-width: 76.25em) {
231
+ .md-sidebar {
232
+ height: auto;
233
+ }
234
+ }
235
+
236
+ @media screen and (max-width: 76.1875em) {
237
+ .md-nav {
238
+ transition: none !important;
239
+ background-color: var(--md-default-bg-color)
240
+ }
241
+ .md-nav--primary .md-nav__title {
242
+ cursor: auto;
243
+ color: var(--md-default-fg-color);
244
+ font-weight: 700;
245
+ white-space: normal;
246
+ line-height: 1rem;
247
+ height: auto;
248
+ display: flex;
249
+ flex-flow: column;
250
+ row-gap: 1.6rem;
251
+ padding: 1.2rem .8rem .8rem;
252
+ background-color: var(--md-default-bg-color);
253
+ }
254
+ .md-nav--primary .md-nav__title~.md-nav__list {
255
+ box-shadow: none;
256
+ }
257
+ .md-nav--primary .md-nav__title ~ .md-nav__list > :first-child {
258
+ border-top: none;
259
+ }
260
+ .md-nav--primary .md-nav__title .md-nav__button {
261
+ display: none;
262
+ }
263
+ .md-nav--primary .md-nav__title .md-nav__icon {
264
+ color: var(--md-default-fg-color);
265
+ position: static;
266
+ height: auto;
267
+ margin: 0 0 0 -0.2rem;
268
+ }
269
+ .md-nav--primary > .md-nav__title [for="none"] {
270
+ padding-top: 0;
271
+ }
272
+ .md-nav--primary .md-nav__item {
273
+ border-top: none;
274
+ }
275
+ .md-nav--primary :is(.md-nav__title,.md-nav__item) {
276
+ font-size : var(--md-typeset-font-size);
277
+ }
278
+ .md-nav .md-source {
279
+ display: none;
280
+ }
281
+
282
+ .md-sidebar {
283
+ height: 100%;
284
+ }
285
+ .md-sidebar--primary {
286
+ width: 12.1rem !important;
287
+ z-index: 200;
288
+ left: ${b.isPinned?`calc(-12.1rem + ${In})`:"calc(-12.1rem + 72px)"} !important;
289
+ }
290
+ .md-sidebar--secondary:not([hidden]) {
291
+ display: none;
292
+ }
293
+
294
+ .md-content {
295
+ max-width: 100%;
296
+ margin-left: 0;
297
+ }
298
+
299
+ .md-header__button {
300
+ margin: 0.4rem 0;
301
+ margin-left: 0.4rem;
302
+ padding: 0;
303
+ }
304
+
305
+ .md-overlay {
306
+ left: 0;
307
+ }
308
+
309
+ .md-footer {
310
+ position: static;
311
+ padding-left: 0;
312
+ }
313
+ .md-footer-nav__link {
314
+ /* footer links begin to overlap at small sizes without setting width */
315
+ width: 50%;
316
+ }
317
+ }
318
+
319
+ @media screen and (max-width: 600px) {
320
+ .md-sidebar--primary {
321
+ left: -12.1rem !important;
322
+ width: 12.1rem;
323
+ }
324
+ }
325
+
326
+
327
+ @media print {
328
+ .md-sidebar,
329
+ #toggle-sidebar {
330
+ display: none;
331
+ }
332
+
333
+ .md-content {
334
+ margin: 0;
335
+ width: 100%;
336
+ max-width: 100%;
337
+ }
338
+ }
339
+ `;const be=["h1","h2","h3","h4","h5","h6"];var oo=({theme:h})=>`
340
+ /*================== Typeset ==================*/
341
+
342
+ .md-typeset {
343
+ font-size: var(--md-typeset-font-size);
344
+ }
345
+
346
+ ${be.reduce((b,j)=>{var Z;const V=(Z=h.typography.htmlFontSize)!==null&&Z!==void 0?Z:16,Q=h.typography[j],{lineHeight:J,fontFamily:At,fontWeight:wt,fontSize:jt}=Q,Ut=Vt=>{let Pt=1;return typeof Vt=="number"&&(Pt=Vt/V*.6),typeof Vt=="string"&&(Pt=Vt.replace("rem","")),`calc(${Pt} * var(--md-typeset-font-size))`};return b.concat(`
347
+ .md-typeset ${j} {
348
+ color: var(--md-default-fg-color);
349
+ line-height: ${J};
350
+ font-family: ${At};
351
+ font-weight: ${wt};
352
+ font-size: ${Ut(jt)};
353
+ }
354
+ `)},"")}
355
+
356
+ .md-typeset .md-content__button {
357
+ color: var(--md-default-fg-color);
358
+ }
359
+
360
+ .md-typeset hr {
361
+ border-bottom: 0.05rem dotted ${h.palette.divider};
362
+ }
363
+
364
+ .md-typeset details {
365
+ font-size: var(--md-typeset-font-size) !important;
366
+ }
367
+ .md-typeset details summary {
368
+ padding-left: 2.5rem !important;
369
+ }
370
+ .md-typeset details summary:before,
371
+ .md-typeset details summary:after {
372
+ top: 50% !important;
373
+ width: 20px !important;
374
+ height: 20px !important;
375
+ transform: rotate(0deg) translateY(-50%) !important;
376
+ }
377
+ .md-typeset details[open] > summary:after {
378
+ transform: rotate(90deg) translateX(-50%) !important;
379
+ }
380
+
381
+ .md-typeset blockquote {
382
+ color: var(--md-default-fg-color--light);
383
+ border-left: 0.2rem solid var(--md-default-fg-color--light);
384
+ }
385
+
386
+ .md-typeset table:not([class]) {
387
+ font-size: var(--md-typeset-font-size);
388
+ border: 1px solid var(--md-default-fg-color);
389
+ border-bottom: none;
390
+ border-collapse: collapse;
391
+ }
392
+ .md-typeset table:not([class]) th {
393
+ font-weight: bold;
394
+ }
395
+ .md-typeset table:not([class]) td, .md-typeset table:not([class]) th {
396
+ border-bottom: 1px solid var(--md-default-fg-color);
397
+ }
398
+
399
+ .md-typeset pre > code::-webkit-scrollbar-thumb {
400
+ background-color: hsla(0, 0%, 0%, 0.32);
401
+ }
402
+ .md-typeset pre > code::-webkit-scrollbar-thumb:hover {
403
+ background-color: hsla(0, 0%, 0%, 0.87);
404
+ }
405
+ `,He=()=>`
406
+ /*================== Animations ==================*/
407
+ /*
408
+ Disable CSS animations on link colors as they lead to issues in dark mode.
409
+ The dark mode color theme is applied later and theirfore there is always an animation from light to dark mode when navigation between pages.
410
+ */
411
+ .md-dialog, .md-nav__link, .md-footer__link, .md-typeset a, .md-typeset a::before, .md-typeset .headerlink {
412
+ transition: none;
413
+ }
414
+ `,ro=({theme:h})=>`
415
+ /*================== Extensions ==================*/
416
+
417
+ /* HIGHLIGHT */
418
+ .highlight .md-clipboard:after {
419
+ content: unset;
420
+ }
421
+
422
+ .highlight .nx {
423
+ color: ${h.palette.type==="dark"?"#ff53a3":"#ec407a"};
424
+ }
425
+
426
+ /* CODE HILITE */
427
+ .codehilite .gd {
428
+ background-color: ${h.palette.type==="dark"?"rgba(248,81,73,0.65)":"#fdd"};
429
+ }
430
+
431
+ .codehilite .gi {
432
+ background-color: ${h.palette.type==="dark"?"rgba(46,160,67,0.65)":"#dfd"};
433
+ }
434
+
435
+ /* TABBED */
436
+ .tabbed-set>input:nth-child(1):checked~.tabbed-labels>:nth-child(1),
437
+ .tabbed-set>input:nth-child(2):checked~.tabbed-labels>:nth-child(2),
438
+ .tabbed-set>input:nth-child(3):checked~.tabbed-labels>:nth-child(3),
439
+ .tabbed-set>input:nth-child(4):checked~.tabbed-labels>:nth-child(4),
440
+ .tabbed-set>input:nth-child(5):checked~.tabbed-labels>:nth-child(5),
441
+ .tabbed-set>input:nth-child(6):checked~.tabbed-labels>:nth-child(6),
442
+ .tabbed-set>input:nth-child(7):checked~.tabbed-labels>:nth-child(7),
443
+ .tabbed-set>input:nth-child(8):checked~.tabbed-labels>:nth-child(8),
444
+ .tabbed-set>input:nth-child(9):checked~.tabbed-labels>:nth-child(9),
445
+ .tabbed-set>input:nth-child(10):checked~.tabbed-labels>:nth-child(10),
446
+ .tabbed-set>input:nth-child(11):checked~.tabbed-labels>:nth-child(11),
447
+ .tabbed-set>input:nth-child(12):checked~.tabbed-labels>:nth-child(12),
448
+ .tabbed-set>input:nth-child(13):checked~.tabbed-labels>:nth-child(13),
449
+ .tabbed-set>input:nth-child(14):checked~.tabbed-labels>:nth-child(14),
450
+ .tabbed-set>input:nth-child(15):checked~.tabbed-labels>:nth-child(15),
451
+ .tabbed-set>input:nth-child(16):checked~.tabbed-labels>:nth-child(16),
452
+ .tabbed-set>input:nth-child(17):checked~.tabbed-labels>:nth-child(17),
453
+ .tabbed-set>input:nth-child(18):checked~.tabbed-labels>:nth-child(18),
454
+ .tabbed-set>input:nth-child(19):checked~.tabbed-labels>:nth-child(19),
455
+ .tabbed-set>input:nth-child(20):checked~.tabbed-labels>:nth-child(20) {
456
+ color: var(--md-accent-fg-color);
457
+ border-color: var(--md-accent-fg-color);
458
+ }
459
+
460
+ /* TASK-LIST */
461
+ .task-list-control .task-list-indicator::before {
462
+ background-color: ${h.palette.action.disabledBackground};
463
+ }
464
+ .task-list-control [type="checkbox"]:checked + .task-list-indicator:before {
465
+ background-color: ${h.palette.success.main};
466
+ }
467
+
468
+ /* ADMONITION */
469
+ .admonition {
470
+ font-size: var(--md-typeset-font-size) !important;
471
+ }
472
+ .admonition .admonition-title {
473
+ padding-left: 2.5rem !important;
474
+ }
475
+
476
+ .admonition .admonition-title:before {
477
+ top: 50% !important;
478
+ width: 20px !important;
479
+ height: 20px !important;
480
+ transform: translateY(-50%) !important;
481
+ }
482
+ `;const Dn=[Tn,wn,Je,oo,He,ro],so=()=>(0,Rn.Pf)(),Gt=()=>{const h=so(),b=(0,B.Z)();return(0,i.useMemo)(()=>{const j={theme:b,sidebar:h};return Dn.reduce((Z,V)=>Z+V(j),"")},[b,h])},De=()=>{const h=Gt();return(0,i.useCallback)(b=>(b.getElementsByTagName("head")[0].insertAdjacentHTML("beforeend",`<style>${h}</style>`),b),[h])},Xe=async(h,b)=>{let j;if(typeof h=="string")j=new DOMParser().parseFromString(h,"text/html").documentElement;else if(h instanceof Element)j=h;else throw new Error("dom is not a recognized type");for(const Z of b)j=await Z(j);return j},io=(h,b,j)=>{const Z=h==="src"&&b.endsWith(".svg"),V=!b.match(/^([a-z]*:)?\/\//i),Q=b.startsWith(j);return Z&&(V||Q)},ao=({techdocsStorageApi:h,entityId:b,path:j})=>async Z=>{const V=await h.getApiOrigin(),Q=async(J,At)=>{for(const wt of J)if(wt.hasAttribute(At)){const jt=wt.getAttribute(At);if(!jt)return;const Ut=await h.getBaseUrl(jt,b,j);if(io(At,jt,V))try{const Pt=await(await fetch(Ut,{credentials:"include"})).text();wt.setAttribute(At,`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(Pt)))}`)}catch{wt.setAttribute("alt",`Error: ${jt}`)}else wt.setAttribute(At,Ut)}};return await Promise.all([Q(Z.querySelectorAll("img"),"src"),Q(Z.querySelectorAll("script"),"src"),Q(Z.querySelectorAll("source"),"src"),Q(Z.querySelectorAll("link"),"href"),Q(Z.querySelectorAll("a[download]"),"href")]),Z},lo=()=>h=>(((j,Z)=>{Array.from(j).filter(V=>V.hasAttribute(Z)).forEach(V=>{const Q=V.getAttribute(Z);if(Q){Q.match(/^https?:\/\//i)&&V.setAttribute("target","_blank");try{const J=co(window.location.href);V.setAttribute(Z,new URL(Q,J).toString())}catch{V.replaceWith(V.textContent||Q)}}})})(Array.from(h.getElementsByTagName("a")),"href"),h);function co(h){const b=new URL(h);return!b.pathname.endsWith("/")&&!b.pathname.endsWith(".html")&&(b.pathname+="/"),b.toString()}var dn=t(44882),un=t(28316);const uo=()=>h=>{const b=h.querySelector('.md-header label[for="__drawer"]'),j=h.querySelector("article");if(!b||!j)return h;const Z=b.cloneNode();return un.render(i.createElement(dn.Z),Z),Z.id="toggle-sidebar",Z.title="Toggle Sidebar",Z.classList.add("md-content__button"),Z.style.setProperty("padding","0 0 0 5px"),Z.style.setProperty("margin","0.4rem 0 0.4rem 0.4rem"),j==null||j.prepend(Z),h},ho=()=>h=>{var b;return(b=h.querySelector(".md-header"))===null||b===void 0||b.remove(),h},fo=()=>h=>{var b,j;return(b=h.querySelector(".md-footer .md-copyright"))===null||b===void 0||b.remove(),(j=h.querySelector(".md-footer-copyright"))===null||j===void 0||j.remove(),h};var go=t(61800),po=t(67097),vo=t(82717),mo=t.n(vo);const yo=h=>b=>{var j;const Z=b.querySelector('[title="Edit this page"]');if(!Z||!Z.href)return b;const V=new URL(Z.href),Q=h.byUrl(V);if((Q==null?void 0:Q.type)!=="github"&&(Q==null?void 0:Q.type)!=="gitlab")return b;const J=((j=b.querySelector("article>h1"))===null||j===void 0?void 0:j.childNodes[0].textContent)||"",At=encodeURIComponent(`Documentation Feedback: ${J}`),wt=encodeURIComponent(`Page source:
483
+ ${Z.href}
484
+
485
+ Feedback:`),jt=(Q==null?void 0:Q.type)==="github"?(0,go.B)(V.href,"blob"):V.href,Ut=mo()(jt),Vt=`/${Ut.organization}/${Ut.name}`,Pt=Z.cloneNode();switch(Q==null?void 0:Q.type){case"gitlab":Pt.href=`${V.origin}${Vt}/issues/new?issue[title]=${At}&issue[description]=${wt}`;break;case"github":Pt.href=`${V.origin}${Vt}/issues/new?title=${At}&body=${wt}`;break;default:return b}return un.render(i.createElement(po.Z),Pt),Pt.style.paddingLeft="5px",Pt.title="Leave feedback for this page",Pt.id="git-feedback-link",Z==null||Z.insertAdjacentElement("beforebegin",Pt),b},Eo=()=>h=>(h.addEventListener(A,function b(){if(window.location.hash){var j;const Z=window.location.hash.slice(1);h==null||(j=h.querySelector(`[id="${Z}"]`))===null||j===void 0||j.scrollIntoView()}h.removeEventListener(A,b)}),h),xo=()=>h=>(setTimeout(()=>{const b=h==null?void 0:h.querySelectorAll("li.md-nav__item--active");b.length!==0&&(b.forEach(Z=>{const V=Z==null?void 0:Z.querySelector("input");V!=null&&V.checked||V==null||V.click()}),b[b.length-1].scrollIntoView())},200),h);var Co=t(15459),Ao=t(80030),So=t(72379),Oo=t(41547),bo=t(95074);const Po=(0,Co.Z)(h=>({tooltip:{fontSize:"inherit",color:h.palette.text.primary,margin:0,padding:h.spacing(.5),backgroundColor:"transparent",boxShadow:"none"}}))(Ao.ZP),Mn=()=>(0,o.jsx)(So.Z,{children:(0,o.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"})}),Ln=({text:h})=>{const[b,j]=(0,i.useState)(!1),[,Z]=(0,bo.Z)(),V=(0,i.useCallback)(()=>{Z(h),j(!0)},[h,Z]),Q=(0,i.useCallback)(()=>{j(!1)},[j]);return(0,o.jsx)(Po,{title:"Copied to clipboard",placement:"left",open:b,onClose:Q,leaveDelay:1e3,children:(0,o.jsx)(_.Z,{style:{color:"inherit"},className:"md-clipboard md-icon",onClick:V,children:(0,o.jsx)(Mn,{})})})},Ro=h=>b=>{const j=b.querySelectorAll("pre > code");for(const V of j){var Z;const Q=V.textContent||"",J=document.createElement("div");V==null||(Z=V.parentElement)===null||Z===void 0||Z.prepend(J),un.render((0,o.jsx)(Oo.Z,{theme:h,children:(0,o.jsx)(Ln,{text:Q})}),J)}return b},To=({baseUrl:h,onClick:b})=>j=>(Array.from(j.getElementsByTagName("a")).forEach(Z=>{Z.addEventListener("click",V=>{const J=Z.getAttribute("href");J&&J.startsWith(h)&&!Z.hasAttribute("download")&&(V.preventDefault(),b(V,J))})}),j),jn=({onLoading:h,onLoaded:b})=>j=>(h(),j.addEventListener(A,function Z(){b(),j.removeEventListener(A,Z)}),j);function wo(h,b){const j=new URL(b),Z=`${j.origin}${j.pathname.replace(/\/$/,"")}`,V=h.replace(Z,"").replace(/^\/+/,""),Q=new URL(`http://localhost/${V}`);return`${Q.pathname}${Q.search}${Q.hash}`}function Io(){const h=(0,Zt.s0)(),j=(0,k.h_)(X.D).getOptionalString("app.baseUrl");return(0,i.useCallback)(V=>{let Q=V;if(j)try{Q=wo(V,j)}catch{}h(Q)},[h,j])}const Do="screen and (max-width: 76.1875em)",Mo=h=>{const b=Io(),j=(0,B.Z)(),Z=(0,et.Z)(Do),V=re(),Q=De(),J=(0,K.z)(),At=(0,k.h_)(Qe.D),wt=(0,k.h_)(ht.q),{state:jt,path:Ut,content:Vt}=je(),[Pt,pe]=(0,i.useState)(null),ae=C(Pt),Qt=(0,i.useCallback)(()=>{if(!Pt)return;Pt.querySelectorAll(".md-sidebar").forEach($t=>{if(Z)$t.style.top="0px";else{var Jt;const $e=(Jt=document)===null||Jt===void 0?void 0:Jt.querySelector(".techdocs-reader-page");var ce;const de=(ce=$e==null?void 0:$e.getBoundingClientRect().top)!==null&&ce!==void 0?ce:0;var Pe;let Fe=(Pe=Pt.getBoundingClientRect().top)!==null&&Pe!==void 0?Pe:0;const gn=Pt.querySelector(".md-container > .md-tabs");var se;const Bo=(se=gn==null?void 0:gn.getBoundingClientRect().height)!==null&&se!==void 0?se:0;Fe<de&&(Fe=de),$t.style.top=`${Math.max(Fe,0)+Bo}px`}$t.style.setProperty("opacity","1")})},[Pt,Z]);(0,i.useEffect)(()=>(window.addEventListener("resize",Qt),window.addEventListener("scroll",Qt,!0),()=>{window.removeEventListener("resize",Qt),window.removeEventListener("scroll",Qt,!0)}),[Pt,Qt]);const _t=(0,i.useCallback)(()=>{if(!Pt)return;const Wt=Pt.querySelector(".md-footer");Wt&&(Wt.style.width=`${Pt.getBoundingClientRect().width}px`)},[Pt]);(0,i.useEffect)(()=>(window.addEventListener("resize",_t),()=>{window.removeEventListener("resize",_t)}),[Pt,_t]),(0,i.useEffect)(()=>{ae||(_t(),Qt())},[jt,ae,_t,Qt]);const ee=(0,i.useCallback)((Wt,$t)=>Xe(Wt,[V,ao({techdocsStorageApi:At,entityId:h,path:$t}),lo(),uo(),ho(),fo(),yo(wt),Q]),[h,wt,At,V,Q]),qt=(0,i.useCallback)(async Wt=>Xe(Wt,[Eo(),xo(),Ro(j),To({baseUrl:window.location.origin,onClick:($t,Jt)=>{var ce;const Pe=$t.ctrlKey||$t.metaKey,se=new URL(Jt),$e=((ce=$t.target)===null||ce===void 0?void 0:ce.innerText)||Jt,de=Jt.replace(window.location.origin,"");if(J.captureEvent("click",$e,{attributes:{to:de}}),se.hash)if(Pe)window.open(Jt,"_blank");else{var Fe;b(Jt),Wt==null||(Fe=Wt.querySelector(`[id="${se.hash.slice(1)}"]`))===null||Fe===void 0||Fe.scrollIntoView()}else Pe?window.open(Jt,"_blank"):b(Jt)}}),jn({onLoading:()=>{},onLoaded:()=>{var $t;($t=Wt.querySelector(".md-nav__title"))===null||$t===void 0||$t.removeAttribute("for")}}),jn({onLoading:()=>{Array.from(Wt.querySelectorAll(".md-sidebar")).forEach(Jt=>{Jt.style.setProperty("opacity","0")})},onLoaded:()=>{}})]),[j,b,J]);return(0,i.useEffect)(()=>{if(!Vt)return()=>{};let Wt=!0;return ee(Vt,Ut).then(async $t=>{if(!($t!=null&&$t.innerHTML)||!Wt)return;window.scroll({top:0});const Jt=await qt($t);pe(Jt)}),()=>{Wt=!1}},[Vt,Ut,ee,qt]),Pt};var hn=t(8560),Lo=t(2296),fn=t(57058);const jo=()=>{const h=(0,Lo.$L)(),{shadowRoot:b}=(0,p.x)(),j=b==null?void 0:b.querySelector('[data-md-component="content"]'),Z=b==null?void 0:b.querySelector('div[data-md-component="sidebar"][data-md-type="navigation"], div[data-md-component="navigation"]');let V=Z==null?void 0:Z.querySelector('[data-techdocs-addons-location="primary sidebar"]');V||(V=document.createElement("div"),V.setAttribute("data-techdocs-addons-location","primary sidebar"),Z==null||Z.prepend(V));const Q=b==null?void 0:b.querySelector('div[data-md-component="sidebar"][data-md-type="toc"], div[data-md-component="toc"]');let J=Q==null?void 0:Q.querySelector('[data-techdocs-addons-location="secondary sidebar"]');return J||(J=document.createElement("div"),J.setAttribute("data-techdocs-addons-location","secondary sidebar"),Q==null||Q.prepend(J)),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(hn.Z,{container:V,children:h.renderComponentsByLocation(fn.o.PrimarySidebar)}),(0,o.jsx)(hn.Z,{container:j,children:h.renderComponentsByLocation(fn.o.Content)}),(0,o.jsx)(hn.Z,{container:J,children:h.renderComponentsByLocation(fn.o.SecondarySidebar)})]})},Bn=(0,d.Z)({search:{width:"100%","@media (min-width: 76.1875em)":{width:"calc(100% - 34.4rem)",margin:"0 auto"},"@media print":{display:"none"}}}),Un=L(h=>{var b;const{withSearch:j=!0,onReady:Z}=h,V=Bn(),{entityMetadata:{value:Q,loading:J},entityRef:At,setShadowRoot:wt}=(0,p.x)(),jt=Mo(At),Ut=(0,i.useCallback)(Vt=>{wt(Vt),Z instanceof Function&&Z()},[wt,Z]);return J===!1&&!Q?(0,o.jsx)(E.m,{status:"404",statusMessage:"PAGE NOT FOUND"}):jt?(0,o.jsx)(I.V,{children:(0,o.jsxs)(S.Z,{container:!0,children:[(0,o.jsx)(S.Z,{xs:12,item:!0,children:(0,o.jsx)(D,{})}),j&&(0,o.jsx)(S.Z,{className:V.search,xs:"auto",item:!0,children:(0,o.jsx)(Ft,{entityId:At,entityTitle:Q==null||(b=Q.metadata)===null||b===void 0?void 0:b.title})}),(0,o.jsx)(S.Z,{xs:12,item:!0,children:(0,o.jsx)(x,{element:jt,onAppend:Ut,children:(0,o.jsx)(jo,{})})})]})}):(0,o.jsx)(I.V,{children:(0,o.jsx)(S.Z,{container:!0,children:(0,o.jsx)(S.Z,{xs:12,item:!0,children:(0,o.jsx)(D,{})})})})}),Lt=null},65386:function(Y,T,t){"use strict";t.d(T,{S:function(){return xt}});var o=t(52322),i=t(2784),d=t(18671),S=t(60905),p=t(98069),f=t(60364),l=t(73250),g=t(2296),O=t(68979),A=t(57058),P=t(75435),C=t(41748),x=t(68138),E=t(8709),I=t(79692),R=t(41128),M=t(90436),F=t(98864);const N=(0,I.Z)(Et=>({root:{textAlign:"left"},label:{color:Et.page.fontColor,fontWeight:Et.typography.fontWeightBold,letterSpacing:0,fontSize:Et.typography.fontSize,marginBottom:Et.spacing(1)/2,lineHeight:1},value:{color:(0,R.Fq)(Et.page.fontColor,.8),fontSize:Et.typography.fontSize,lineHeight:1}}),{name:"BackstageHeaderLabel"}),v=({value:Et,className:ut})=>(0,o.jsx)(M.Z,{component:typeof Et=="string"?"p":"span",className:ut,children:Et});function k(Et){const{label:ut,value:Ot,url:Ct}=Et,bt=N(),st=(0,o.jsx)(v,{className:bt.value,value:Ot||"<Unknown>"});return(0,o.jsx)(S.Z,{item:!0,children:(0,o.jsxs)(M.Z,{component:"span",className:bt.root,children:[(0,o.jsx)(M.Z,{className:bt.label,children:ut}),Ct?(0,o.jsx)(F.rU,{to:Ct,children:st}):st]})})}var ot=t(48037),X=t(44394),H=t(6542),z=t(37321),G=t(76635),q=t(95573);const rt=(0,o.jsx)(p.Z,{animation:"wave",variant:"text",height:40}),xt=Et=>{const{palette:{common:{white:ut}}}=(0,f.Z)(),{children:Ot}=Et,Ct=(0,g.$L)(),bt=(0,X.h_)(H.D),{title:st,setTitle:$,subtitle:_,setSubtitle:tt,entityRef:it,metadata:{value:dt,loading:W},entityMetadata:{value:K,loading:pt}}=(0,O.x)();(0,i.useEffect)(()=>{dt&&($(dt.site_name),tt(()=>{let{site_description:Kt}=dt;return(!Kt||Kt==="None")&&(Kt=""),Kt}))},[dt,$,tt]);const yt=bt.getOptional("app.title")||"Backstage",ft=[st,_,yt].filter(Boolean).join(" | "),{locationMetadata:gt,spec:ct}=K||{},Rt=ct==null?void 0:ct.lifecycle,Tt=K?(0,P.h)(K,E.S4):[],It=(0,z.t)(q._Z)(),Zt=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(k,{label:(0,G.capitalize)((K==null?void 0:K.kind)||"entity"),value:(0,o.jsx)(C.d,{color:"inherit",entityRef:it,title:K==null?void 0:K.metadata.title,defaultKind:"Component"})}),Tt.length>0&&(0,o.jsx)(k,{label:"Owner",value:(0,o.jsx)(x.r,{color:"inherit",entityRefs:Tt,defaultKind:"group"})}),Rt?(0,o.jsx)(k,{label:"Lifecycle",value:Rt}):null,gt&&gt.type!=="dir"&&gt.type!=="file"?(0,o.jsx)(k,{label:"",value:(0,o.jsxs)(S.Z,{container:!0,direction:"column",alignItems:"center",style:{color:ut},children:[(0,o.jsx)(S.Z,{style:{padding:0},item:!0,children:(0,o.jsx)(l.Z,{style:{marginTop:"-25px"}})}),(0,o.jsx)(S.Z,{style:{padding:0},item:!0,children:"Source"})]}),url:gt.target}):null]});return!pt&&K===void 0||!W&&dt===void 0?null:(0,o.jsxs)(ot.h,{type:"Documentation",typeLink:It,title:st||rt,subtitle:_===""?void 0:_||rt,children:[(0,o.jsx)(d.Z,{titleTemplate:"%s",children:(0,o.jsx)("title",{children:ft})}),Zt,Ot,Ct.renderComponentsByLocation(A.o.Header)]})}},95573:function(Y,T,t){"use strict";t.d(T,{Fw:function(){return d},_Z:function(){return i},pd:function(){return S}});var o=t(30283);const i=(0,o.N)({id:"techdocs:index-page"}),d=(0,o.N)({id:"techdocs:reader-page",params:["namespace","kind","name"]}),S=(0,o.N)({id:"techdocs:catalog-reader-view"})},55511:function(Y,T,t){"use strict";t.r(T),t.d(T,{TechDocsSearchResultListItem:function(){return A}});var o=t(52322),i=t(2784),d=t(79692),S=t(49378),p=t(86136),f=t(90436),l=t(98864),g=t(76079);const O=(0,d.Z)({flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",marginBottom:"1rem"}}),A=P=>{const{result:C,highlight:x,lineClamp:E=5,asListItem:I=!0,asLink:R=!0,title:M,icon:F}=P,N=O(),v=({children:X})=>R?(0,o.jsx)(l.rU,{noTrack:!0,to:C.location,children:X}):(0,o.jsx)(o.Fragment,{children:X}),k=()=>{const X=x!=null&&x.fields.title?(0,o.jsx)(g.F,{text:x.fields.title,preTag:x.preTag,postTag:x.postTag}):C.title,H=x!=null&&x.fields.entityTitle?(0,o.jsx)(g.F,{text:x.fields.entityTitle,preTag:x.preTag,postTag:x.postTag}):C.entityTitle,z=x!=null&&x.fields.name?(0,o.jsx)(g.F,{text:x.fields.name,preTag:x.preTag,postTag:x.postTag}):C.name;return C?(0,o.jsx)(S.Z,{className:N.itemText,primaryTypographyProps:{variant:"h6"},primary:(0,o.jsx)(v,{children:M||(0,o.jsxs)(o.Fragment,{children:[X," | ",H!=null?H:z," docs"]})}),secondary:(0,o.jsx)(f.Z,{component:"span",style:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:E,overflow:"hidden"},color:"textSecondary",variant:"body2",children:x!=null&&x.fields.text?(0,o.jsx)(g.F,{text:x.fields.text,preTag:x.preTag,postTag:x.postTag}):C.text})}):null},ot=({children:X})=>I?(0,o.jsxs)(o.Fragment,{children:[F&&(0,o.jsx)(p.Z,{children:typeof F=="function"?F(C):F}),(0,o.jsx)("div",{className:N.flexContainer,children:X})]}):(0,o.jsx)(o.Fragment,{children:X});return(0,o.jsx)(ot,{children:(0,o.jsx)(k,{})})}},53260:function(){}},function(Y){var T=function(o){return Y(Y.s=o)};Y.O(0,[2370,6202,9284,7012,427,242,5109,6816,1213,5218,4736],function(){return T(81025)});var t=Y.O()}]);})();
486
+
487
+ //# sourceMappingURL=main.42be8165.js.map