@techdocs/cli 1.8.5 → 1.8.6-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/CHANGELOG.md +12 -14
  2. package/dist/embedded-app/.config-schema.json +550 -59
  3. package/dist/embedded-app/index.html +1 -1
  4. package/dist/embedded-app/static/124.b3c877f4.chunk.js +5 -0
  5. package/dist/embedded-app/static/124.b3c877f4.chunk.js.map +1 -0
  6. package/dist/embedded-app/static/2401.dc2fecde.chunk.js +5 -0
  7. package/dist/embedded-app/static/2401.dc2fecde.chunk.js.map +1 -0
  8. package/dist/embedded-app/static/2420.cd4a65c3.chunk.js +5 -0
  9. package/dist/embedded-app/static/2420.cd4a65c3.chunk.js.map +1 -0
  10. package/dist/embedded-app/static/287.4b32d161.chunk.js +5 -0
  11. package/dist/embedded-app/static/287.4b32d161.chunk.js.map +1 -0
  12. package/dist/embedded-app/static/3182.1f1ac12b.chunk.js +6 -0
  13. package/dist/embedded-app/static/{3182.950641c7.chunk.js.map → 3182.1f1ac12b.chunk.js.map} +1 -1
  14. package/dist/embedded-app/static/3308.7a6908ef.chunk.js +7 -0
  15. package/dist/embedded-app/static/3308.7a6908ef.chunk.js.map +1 -0
  16. package/dist/embedded-app/static/3632.92f2c3f7.chunk.js +5 -0
  17. package/dist/embedded-app/static/3632.92f2c3f7.chunk.js.map +1 -0
  18. package/dist/embedded-app/static/4992.a7e47df4.chunk.js +3 -0
  19. package/dist/embedded-app/static/4992.a7e47df4.chunk.js.map +1 -0
  20. package/dist/embedded-app/static/5011.6e192014.chunk.js +3 -0
  21. package/dist/embedded-app/static/5011.6e192014.chunk.js.map +1 -0
  22. package/dist/embedded-app/static/6271.18498a88.chunk.js +5 -0
  23. package/dist/embedded-app/static/6271.18498a88.chunk.js.map +1 -0
  24. package/dist/embedded-app/static/8307.4878037e.chunk.js +8 -0
  25. package/dist/embedded-app/static/{8307.2c2ef2dd.chunk.js.map → 8307.4878037e.chunk.js.map} +1 -1
  26. package/dist/embedded-app/static/8384.69d4b96e.chunk.js +5 -0
  27. package/dist/embedded-app/static/8384.69d4b96e.chunk.js.map +1 -0
  28. package/dist/embedded-app/static/9652.80cea275.chunk.js +5 -0
  29. package/dist/embedded-app/static/9652.80cea275.chunk.js.map +1 -0
  30. package/dist/embedded-app/static/main.e5b87207.js +497 -0
  31. package/dist/embedded-app/static/main.e5b87207.js.map +1 -0
  32. package/dist/embedded-app/static/module-lodash.11460fc1.js +29 -0
  33. package/dist/embedded-app/static/module-lodash.11460fc1.js.map +1 -0
  34. package/dist/embedded-app/static/module-react-router-dom.3fde9fd7.js +22 -0
  35. package/dist/embedded-app/static/module-react-router-dom.3fde9fd7.js.map +1 -0
  36. package/dist/embedded-app/static/module-react-router.296c491a.js +22 -0
  37. package/dist/embedded-app/static/module-react-router.296c491a.js.map +1 -0
  38. package/dist/embedded-app/static/{runtime.1f016c9f.js → runtime.e5b87207.js} +2 -2
  39. package/dist/embedded-app/static/{runtime.1f016c9f.js.map → runtime.e5b87207.js.map} +1 -1
  40. package/dist/embedded-app/static/vendor.e5b87207.js +160 -0
  41. package/dist/embedded-app/static/vendor.e5b87207.js.map +1 -0
  42. package/dist/index.cjs.js +1 -1
  43. package/package.json +6 -6
  44. package/dist/embedded-app/static/124.0135c04a.chunk.js +0 -5
  45. package/dist/embedded-app/static/124.0135c04a.chunk.js.map +0 -1
  46. package/dist/embedded-app/static/2401.ef30400a.chunk.js +0 -5
  47. package/dist/embedded-app/static/2401.ef30400a.chunk.js.map +0 -1
  48. package/dist/embedded-app/static/2420.9681849a.chunk.js +0 -5
  49. package/dist/embedded-app/static/2420.9681849a.chunk.js.map +0 -1
  50. package/dist/embedded-app/static/2490.5e7810f2.chunk.js +0 -3
  51. package/dist/embedded-app/static/2490.5e7810f2.chunk.js.map +0 -1
  52. package/dist/embedded-app/static/287.06d3556f.chunk.js +0 -5
  53. package/dist/embedded-app/static/287.06d3556f.chunk.js.map +0 -1
  54. package/dist/embedded-app/static/3182.950641c7.chunk.js +0 -6
  55. package/dist/embedded-app/static/3308.4f503c75.chunk.js +0 -7
  56. package/dist/embedded-app/static/3308.4f503c75.chunk.js.map +0 -1
  57. package/dist/embedded-app/static/3632.09c5925e.chunk.js +0 -5
  58. package/dist/embedded-app/static/3632.09c5925e.chunk.js.map +0 -1
  59. package/dist/embedded-app/static/5011.04a961a3.chunk.js +0 -3
  60. package/dist/embedded-app/static/5011.04a961a3.chunk.js.map +0 -1
  61. package/dist/embedded-app/static/6271.df98b248.chunk.js +0 -5
  62. package/dist/embedded-app/static/6271.df98b248.chunk.js.map +0 -1
  63. package/dist/embedded-app/static/8307.2c2ef2dd.chunk.js +0 -8
  64. package/dist/embedded-app/static/8384.516f6f61.chunk.js +0 -5
  65. package/dist/embedded-app/static/8384.516f6f61.chunk.js.map +0 -1
  66. package/dist/embedded-app/static/9652.a7eea251.chunk.js +0 -5
  67. package/dist/embedded-app/static/9652.a7eea251.chunk.js.map +0 -1
  68. package/dist/embedded-app/static/main.1f016c9f.js +0 -495
  69. package/dist/embedded-app/static/main.1f016c9f.js.map +0 -1
  70. package/dist/embedded-app/static/module-lodash.a94db66d.js +0 -29
  71. package/dist/embedded-app/static/module-lodash.a94db66d.js.map +0 -1
  72. package/dist/embedded-app/static/module-react-router-dom.b2a616ac.js +0 -22
  73. package/dist/embedded-app/static/module-react-router-dom.b2a616ac.js.map +0 -1
  74. package/dist/embedded-app/static/module-react-router.96a60fdb.js +0 -22
  75. package/dist/embedded-app/static/module-react-router.96a60fdb.js.map +0 -1
  76. package/dist/embedded-app/static/vendor.1f016c9f.js +0 -160
  77. package/dist/embedded-app/static/vendor.1f016c9f.js.map +0 -1
@@ -1,495 +0,0 @@
1
- (()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[8792],{86519:function(Z,T,t){"use strict";t.d(T,{c:function(){return o}});const o=Symbol.for("CATALOG_FILTER_EXISTS_0e15b590c0b343a2bae3e787e84c2111")},72348:function(Z,T,t){"use strict";t.d(T,{P:function(){return u},_P:function(){return i},oQ:function(){return o}});const o="default",i="backstage.io/view-url",u="backstage.io/edit-url",C="kubernetes.io/api-server",m="kubernetes.io/api-server-certificate-authority",f="kubernetes.io/auth-provider"},6820:function(Z,T,t){"use strict";t.d(T,{KU:function(){return C},U2:function(){return m},sM:function(){return u}});var o=t(72348);function i(f){let d=f.indexOf(":");const c=f.indexOf("/");c!==-1&&c<d&&(d=-1);const y=d===-1?void 0:f.slice(0,d),A=c===-1?void 0:f.slice(d+1,c),w=f.slice(Math.max(d+1,c+1));if(y===""||A===""||w==="")throw new TypeError(`Entity reference "${f}" was not on the form [<kind>:][<namespace>/]<name>`);return{kind:y,namespace:A,name:w}}function u(f){return{kind:f.kind,namespace:f.metadata.namespace||o.oQ,name:f.metadata.name}}function C(f,d){if(!f)throw new Error("Entity reference must not be empty");const c=d==null?void 0:d.defaultKind,y=(d==null?void 0:d.defaultNamespace)||o.oQ;let A,w,v;if(typeof f=="string"){const E=i(f);var O;A=(O=E.kind)!==null&&O!==void 0?O:c;var g;w=(g=E.namespace)!==null&&g!==void 0?g:y,v=E.name}else{var I;A=(I=f.kind)!==null&&I!==void 0?I:c;var P;w=(P=f.namespace)!==null&&P!==void 0?P:y,v=f.name}if(A)if(w){if(!v){const E=JSON.stringify(f);throw new Error(`Entity reference ${E} had missing or empty name`)}}else{const E=JSON.stringify(f);throw new Error(`Entity reference ${E} had missing or empty namespace`)}else{const E=JSON.stringify(f);throw new Error(`Entity reference ${E} had missing or empty kind (e.g. did not start with "component:" or similar)`)}return{kind:A,namespace:w,name:v}}function m(f){let d,c,y;if("metadata"in f){d=f.kind;var A;c=(A=f.metadata.namespace)!==null&&A!==void 0?A:o.oQ,y=f.metadata.name}else{d=f.kind;var w;c=(w=f.namespace)!==null&&w!==void 0?w:o.oQ,y=f.name}return`${d.toLocaleLowerCase("en-US")}:${c.toLocaleLowerCase("en-US")}/${y.toLocaleLowerCase("en-US")}`}},51372:function(Z,T,t){"use strict";t.d(T,{fT:function(){return c},jn:function(){return O},nC:function(){return d},sA:function(){return g},vv:function(){return o}});const o="ownedBy",i="ownerOf",u="consumesApi",C="apiConsumedBy",m="providesApi",f="apiProvidedBy",d="dependsOn",c="dependencyOf",y="parentOf",A="childOf",w="memberOf",v="hasMember",O="partOf",g="hasPart"},17736:function(Z,T,t){"use strict";t.d(T,{Eo:function(){return o},I4:function(){return u}});const o="backstage.io/managed-by-location",i="backstage.io/managed-by-origin-location",u="backstage.io/source-location"},78692:function(Z,T,t){"use strict";t.d(T,{Cr:function(){return f},KL:function(){return m},aY:function(){return C}});var o=t(6820),i=t(17736);const u=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i;function C(d){if(typeof d!="string")throw new TypeError(`Unable to parse location ref '${d}', unexpected argument ${typeof d}`);const c=d.indexOf(":");if(c<0)throw new TypeError(`Unable to parse location ref '${d}', expected '<type>:<target>', e.g. 'url:https://host/path'`);const y=d.substring(0,c).trim(),A=d.substring(c+1).trim();if(!y||!A)throw new TypeError(`Unable to parse location ref '${d}', expected '<type>:<target>', e.g. 'url:https://host/path'`);if(y==="http"||y==="https")throw new TypeError(`Invalid location ref '${d}', please prefix it with 'url:', e.g. 'url:${d}'`);if(u.test(A))throw new TypeError(`Invalid location ref '${d}', target is a javascript: URL`);return{type:y,target:A}}function m(d){const{type:c,target:y}=d;if(c){if(!y)throw new TypeError("Unable to stringify location ref, empty target")}else throw new TypeError("Unable to stringify location ref, empty type");if(u.test(y))throw new TypeError(`Invalid location ref '${c}:${y}', target is a javascript: URL`);return`${c}:${y}`}function f(d){var c,y,A,w,v;const O=(v=(y=d.metadata)===null||y===void 0||(c=y.annotations)===null||c===void 0?void 0:c[i.I4])!==null&&v!==void 0?v:(w=d.metadata)===null||w===void 0||(A=w.annotations)===null||A===void 0?void 0:A[i.Eo];if(!O)throw new Error(`Entity '${(0,o.U2)(d)}' is missing location`);return C(O)}},77310:function(Z,T,t){"use strict";t.d(T,{z:function(){return y}});var o=t(31085),i=t(10394),u=t(54917),C=t(14041),m=t(69578),f=t(40697),d=t(25577),c=t(37916);function y(A){const{text:w,language:v,showLineNumbers:O=!1,highlightedNumbers:g,customStyle:I,showCopyCodeButton:P=!1}=A,E=(0,u.A)(),D=E.palette.type==="dark"?f.A:d.A,j=E.palette.type==="dark"?"#256bf3":"#e6ffed";return(0,o.jsxs)(i.A,{position:"relative",children:[(0,o.jsx)(m.A,{customStyle:I,language:v,style:D,showLineNumbers:O,wrapLines:!0,lineNumberStyle:{color:E.palette.textVerySubtle},lineProps:b=>g!=null&&g.includes(b)?{style:{backgroundColor:j}}:{},children:w}),P&&(0,o.jsx)(i.A,{position:"absolute",top:0,right:0,children:(0,o.jsx)(c.l,{text:w})})]})}},37916:function(Z,T,t){"use strict";t.d(T,{l:function(){return y}});var o=t(31085),i=t(72427),u=t(39837),C=t(29365),m=t(71677),f=t(99594),d=t(14041),c=t(51100);function y(A){const{text:w,tooltipDelay:v=1e3,tooltipText:O="Text copied to clipboard","aria-label":g="Copy text"}=A,I=(0,i.gf)(u.m),[P,E]=(0,d.useState)(!1),[{error:D},j]=(0,c.A)();(0,d.useEffect)(()=>{D&&I.post(D)},[D,I]);const b=V=>{V.stopPropagation(),E(!0),j(w)};return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(m.Ay,{id:"copy-test-tooltip",title:O,placement:"top",leaveDelay:v,onClose:()=>E(!1),open:P,children:(0,o.jsx)(C.A,{onClick:b,"aria-label":g,children:(0,o.jsx)(f.A,{})})})})}},44186:function(Z,T,t){"use strict";t.d(T,{p:function(){return O}});var o=t(31085),i=t(42899),u=t(58837),C=t(72501),m=t(14041),f=t.p+"static/missingAnnotation.67f79e98..svg",d=t.p+"static/noInformation.4b426325..svg",c=t.p+"static/createComponent.975d1e1e..svg",y=t.p+"static/noBuild.1715fa71..svg";const A=(0,u.A)({generalImg:{width:"95%",zIndex:2,position:"relative",left:"50%",top:"50%",transform:"translate(-50%, 15%)"}},{name:"BackstageEmptyStateImage"}),w=({missing:g})=>{const I=A();switch(g){case"field":return(0,o.jsx)("img",{src:f,className:I.generalImg,alt:"annotation is missing"});case"info":return(0,o.jsx)("img",{src:d,alt:"no Information",className:I.generalImg});case"content":return(0,o.jsx)("img",{src:c,alt:"create Component",className:I.generalImg});case"data":return(0,o.jsx)("img",{src:y,alt:"no Build",className:I.generalImg});default:return null}},v=(0,u.A)(g=>({root:{backgroundColor:g.palette.background.default,padding:g.spacing(2,0,0,0)},action:{marginTop:g.spacing(2)},imageContainer:{position:"relative"}}),{name:"BackstageEmptyState"});function O(g){const{title:I,description:P,missing:E,action:D}=g,j=v();return(0,o.jsxs)(i.A,{container:!0,direction:"row",justifyContent:"space-around",alignItems:"flex-start",className:j.root,spacing:2,children:[(0,o.jsx)(i.A,{item:!0,xs:12,md:6,children:(0,o.jsxs)(i.A,{container:!0,direction:"column",children:[(0,o.jsx)(i.A,{item:!0,xs:!0,children:(0,o.jsx)(C.A,{variant:"h5",children:I})}),(0,o.jsx)(i.A,{item:!0,xs:!0,children:(0,o.jsx)(C.A,{variant:"body1",children:P})}),(0,o.jsx)(i.A,{item:!0,xs:!0,className:j.action,children:D})]})}),(0,o.jsx)(i.A,{item:!0,xs:12,md:6,className:j.imageContainer,children:typeof E=="string"?(0,o.jsx)(w,{missing:E}):E.customImage})]})}},22020:function(Z,T,t){"use strict";t.d(T,{b:function(){return w}});var o=t(31085),i=t(58837),u=t(58007),C=t(8109),m=t(5951),f=t(14041),d=t(37916),c=t(88640);const y=(0,i.A)(v=>({text:{fontFamily:"monospace",whiteSpace:"pre",overflowX:"auto",marginRight:v.spacing(2)},divider:{margin:v.spacing(2)}}),{name:"BackstageErrorPanel"}),A=({error:v,message:O,stack:g,children:I})=>{const P=y();return(0,o.jsxs)(u.A,{dense:!0,children:[(0,o.jsxs)(C.A,{alignItems:"flex-start",children:[(0,o.jsx)(m.A,{classes:{secondary:P.text},primary:"Error",secondary:v}),(0,o.jsx)(d.l,{text:v})]}),(0,o.jsxs)(C.A,{alignItems:"flex-start",children:[(0,o.jsx)(m.A,{classes:{secondary:P.text},primary:"Message",secondary:O}),(0,o.jsx)(d.l,{text:O})]}),g&&(0,o.jsxs)(C.A,{alignItems:"flex-start",children:[(0,o.jsx)(m.A,{classes:{secondary:P.text},primary:"Stack Trace",secondary:g}),(0,o.jsx)(d.l,{text:g})]}),I]})};function w(v){const{title:O,error:g,defaultExpanded:I,titleFormat:P,children:E}=v;return(0,o.jsx)(c.B,{severity:"error",title:O!=null?O:g.message,defaultExpanded:I,titleFormat:P,children:(0,o.jsx)(A,{error:g.name,message:g.message,stack:g.stack,children:E})})}},72072:function(Z,T,t){"use strict";t.d(T,{N_:function(){return z}});var o=t(31085),i=t(72427),u=t(65461),C=t(93368),m=t(49203),f=t(58837),d=t(72501),c=t(53373),y=t.n(c),A=t(45250),w=t.n(A),v=t(14041),O=t(18690),g=t(73970);function I(){const[W]=(0,O.AV)((0,o.jsx)(O.qh,{index:!0,element:(0,o.jsx)("div",{})}));return!W.index}const P=(0,f.A)({visuallyHidden:{clip:"rect(0 0 0 0)",clipPath:"inset(50%)",overflow:"hidden",position:"absolute",userSelect:"none",whiteSpace:"nowrap",height:1,width:1},externalLink:{position:"relative"}},{name:"Link"}),E=W=>/^([a-z+.-]+):/.test(W),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,j=window.open;if(j&&!j.__backstage){const W=function(...J){const nt=String(J[0]);if(D.test(nt))throw new Error("Rejected window.open() with a javascript: URL as a security precaution");return j.apply(this,J)};W.__backstage=!0,window.open=W}const b=()=>{try{return(0,i.gf)(u.U).getOptionalString("app.baseUrl")}catch{return}},V=()=>{const W="http://sample.dev";var k;const J=(k=b())!==null&&k!==void 0?k:"/",{pathname:nt}=new URL(J,W);return(0,A.trimEnd)(nt,"/")},Y=W=>{let k=String(W);const J=V(),nt=E(k),it=k.startsWith(J);return!nt&&!it&&(k=J.concat(k)),k},tt=W=>{if(W instanceof Array)return W.map(tt).join(" ").trim();if(typeof W=="object"&&W){var k;return tt(W==null||(k=W.props)===null||k===void 0?void 0:k.children)}return["string","number"].includes(typeof W)?String(W):""},z=v.forwardRef(({onClick:W,noTrack:k,...J},nt)=>{const it=P(),mt=(0,C.s)(),ft=I()?Y(J.to):J.to,wt=tt(J.children)||ft,lt=E(ft),At=lt&&!!/^https?:/.exec(ft);if(D.test(ft))throw new Error("Link component rejected javascript: URL as a security precaution");const at=G=>{W==null||W(G),k||mt.captureEvent("click",wt,{attributes:{to:ft}})};return lt?(0,o.jsxs)(m.A,{...At?{target:"_blank",rel:"noopener"}:{},...J,...J["aria-label"]?{"aria-label":`${J["aria-label"]}, Opens in a new window`}:{},ref:nt,href:ft,onClick:at,className:y()(it.externalLink,J.className),children:[J.children,(0,o.jsx)(d.A,{component:"span",className:it.visuallyHidden,children:", Opens in a new window"})]}):(0,o.jsx)(m.A,{...J,ref:nt,component:g.N_,to:ft,onClick:at})})},73896:function(Z,T,t){"use strict";t.d(T,{z:function(){return f}});var o=t(31085),i=t(64947),u=t(14041),C=t(72072);const m=u.forwardRef((c,y)=>(0,o.jsx)(C.N_,{ref:y,...c,color:"initial"})),f=u.forwardRef((c,y)=>(0,o.jsx)(i.A,{ref:y,component:m,...c})),d=null},4650:function(Z,T,t){"use strict";t.d(T,{h:function(){return w}});var o=t(31085),i=t(58837),u=t(82148),C=t(61125),m=t(14041),f=t(77310);const d=(0,i.A)(v=>({markdown:{"& table":{borderCollapse:"collapse",border:`1px solid ${v.palette.border}`},"& th, & td":{border:`1px solid ${v.palette.border}`,padding:v.spacing(1)},"& td":{wordBreak:"break-word",overflow:"hidden",verticalAlign:"middle",lineHeight:"1",margin:0,padding:v.spacing(3,2,3,2.5),borderBottom:0},"& th":{backgroundColor:v.palette.background.paper},"& tr":{backgroundColor:v.palette.background.paper},"& tr:nth-child(odd)":{backgroundColor:v.palette.background.default},"& a":{color:v.palette.link},"& img":{maxWidth:"100%"}}}),{name:"BackstageMarkdownContent"}),c=(v,O)=>O?typeof O=="string"?v+O:m.Children.toArray(O.props.children).reduce(c,v):v,y=({level:v,children:O})=>{const P=m.Children.toArray(O).reduce(c,"").toLocaleLowerCase("en-US").replace(/\W/g,"-");return m.createElement(`h${v}`,{id:P},O)},A={code:({inline:v,className:O,children:g,...I})=>{const P=String(g).replace(/\n+$/,""),E=/language-(\w+)/.exec(O||"");return!v&&E?(0,o.jsx)(f.z,{language:E[1],text:P}):(0,o.jsx)("code",{className:O,...I,children:g})},h1:y,h2:y,h3:y,h4:y,h5:y,h6:y};function w(v){const{content:O,dialect:g="gfm",linkTarget:I,transformLinkUri:P,transformImageUri:E,className:D}=v,j=d();return(0,o.jsx)(u.$,{remarkPlugins:g==="gfm"?[C.A]:[],className:`${j.markdown} ${D}`,children:O,components:A,linkTarget:I,transformLinkUri:P,transformImageUri:E})}},68146:function(Z,T,t){"use strict";t.d(T,{k:function(){return f}});var o=t(31085),i=t(10394),u=t(88951),C=t(54917),m=t(14041);function f(d){const c=(0,C.A)(),[y,A]=(0,m.useState)(!1);return(0,m.useEffect)(()=>{const w=setTimeout(()=>A(!0),c.transitions.duration.short);return()=>clearTimeout(w)},[c.transitions.duration.short]),y?(0,o.jsx)(u.A,{...d,"data-testid":"progress"}):(0,o.jsx)(i.A,{display:"none"})}},66917:function(Z,T,t){"use strict";t.d(T,{w:function(){return z}});var o=t(31085),i=t(10394),u=t(69076),C=t(67720),m=t(95061),f=t(41857),d=t(48543),c=t(26343),y=t(81215),A=t(7031),w=t(12398),v=t(58837),O=t(72501),g=t(14041),I=t(10437);const P=(0,v.A)(W=>(0,w.A)({icon:{position:"absolute",right:W.spacing(.5),pointerEvents:"none"}}),{name:"BackstageClosedDropdown"});var D=()=>{const W=P();return(0,o.jsx)(I.A,{className:W.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 j=(0,v.A)(W=>(0,w.A)({icon:{position:"absolute",right:W.spacing(.5),pointerEvents:"none"}}),{name:"BackstageOpenedDropdown"});var V=()=>{const W=j();return(0,o.jsx)(I.A,{className:W.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 Y=(0,A.A)(W=>(0,w.A)({root:{"label + &":{marginTop:W.spacing(3)},"&.Mui-focused > div[role=button]":{borderColor:W.palette.primary.main}},input:{borderRadius:W.shape.borderRadius,position:"relative",backgroundColor:W.palette.background.paper,border:"1px solid #ced4da",fontSize:W.typography.body1.fontSize,padding:W.spacing(1.25,3.25,1.25,1.5),transition:W.transitions.create(["border-color","box-shadow"]),fontFamily:"Helvetica Neue","&:focus":{background:W.palette.background.paper,borderRadius:W.shape.borderRadius}}}),{name:"BackstageSelectInputBase"})(f.A),tt=(0,v.A)(W=>(0,w.A)({formControl:{margin:W.spacing(1,0),maxWidth:300},label:{transform:"initial",fontWeight:"bold",fontSize:W.typography.body2.fontSize,fontFamily:W.typography.fontFamily,color:W.palette.text.primary,"&.Mui-focused":{color:W.palette.text.primary}},formLabel:{transform:"initial",fontWeight:"bold",fontSize:W.typography.body2.fontSize,fontFamily:W.typography.fontFamily,color:W.palette.text.primary,"&.Mui-focused":{color:W.palette.text.primary}},chips:{display:"flex",flexWrap:"wrap"},chip:{margin:2},checkbox:{},root:{display:"flex",flexDirection:"column"}}),{name:"BackstageSelect"});function z(W){const{multiple:k,items:J,label:nt,placeholder:it,selected:mt,onChange:ft,triggerReset:wt,native:lt=!1,disabled:At=!1,margin:at}=W,G=tt(),[rt,xt]=(0,g.useState)(mt||(k?[]:"")),[St,Ct]=(0,g.useState)(!1);(0,g.useEffect)(()=>{xt(k?[]:"")},[wt,k]),(0,g.useEffect)(()=>{xt(mt||(k?[]:""))},[mt,k]);const ut=K=>{xt(K.target.value),ft(K.target.value)},ct=K=>{if(At){K.preventDefault();return}Ct(q=>k&&!(K.target instanceof HTMLElement)?!0:!q)},pt=()=>{Ct(!1)},H=K=>()=>{const q=rt.filter(st=>st!==K);xt(q),ft(q)};return(0,o.jsx)(i.A,{className:G.root,children:(0,o.jsxs)(m.A,{className:G.formControl,children:[(0,o.jsx)(d.A,{className:G.formLabel,children:nt}),(0,o.jsxs)(y.A,{"aria-label":nt,value:rt,native:lt,disabled:At,"data-testid":"select",displayEmpty:!0,multiple:k,margin:at,onChange:ut,open:St,onOpen:ct,onClose:pt,input:(0,o.jsx)(Y,{}),label:nt,renderValue:K=>{var q;return k&&rt.length!==0?(0,o.jsx)(i.A,{className:G.chips,children:K.map(st=>{const Et=J.find(vt=>vt.value===st);return Et?(0,o.jsx)(C.A,{label:Et==null?void 0:Et.label,clickable:!0,onDelete:H(st),className:G.chip},Et==null?void 0:Et.value):!1})}):(0,o.jsx)(O.A,{children:rt.length===0?it||"":(q=J.find(st=>st.value===K))===null||q===void 0?void 0:q.label})},IconComponent:()=>St?(0,o.jsx)(V,{}):(0,o.jsx)(D,{}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},getContentAnchorEl:null},children:[it&&!k&&(0,o.jsx)(c.A,{value:[],children:it}),lt?J&&J.map(K=>(0,o.jsx)("option",{value:K.value,children:K.label},K.value)):J&&J.map(K=>(0,o.jsxs)(c.A,{value:K.value,children:[k&&(0,o.jsx)(u.A,{color:"primary",checked:rt.includes(K.value)||!1,className:G.checkbox}),K.label]},K.value))]})]})})}},3851:function(Z,T,t){"use strict";t.d(T,{Y:function(){return at}});var o=t(31085),i=t(82266),u=t(10394),C=t(64947),m=t(93453),f=t(29365),d=t(46423),c=t(5951),y=t(26343),A=t(28233),w=t(55197),v=t(58837),O=t(72501),g=t(5893),I=t(14041),P=t(10795),E=t(27799);function D(G,rt){const St=(0,i.n)().getSystemIcon(G);return St?(0,o.jsx)(St,{...rt}):(0,o.jsx)(E.A,{...rt})}function j(G){return D("brokenImage",G)}function b(G){return D("catalog",G)}function V(G){return D("chat",G)}function Y(G){return D("dashboard",G)}function tt(G){return D("docs",G)}function z(G){return D("email",G)}function W(G){return D("github",G)}function k(G){return D("group",G)}function J(G){return D("help",G)}function nt(G){return D("user",G)}function it(G){return D("warning",G)}var mt=t(72072);const ft=(0,v.A)({popoverList:{minWidth:260,maxWidth:400},menuItem:{whiteSpace:"normal"}},{name:"BackstageSupportButton"}),wt=({icon:G})=>{const rt=(0,i.n)();var xt;const St=G&&(xt=rt.getSystemIcon(G))!==null&&xt!==void 0?xt:J;return(0,o.jsx)(St,{})},lt=({link:G})=>{var rt;return(0,o.jsx)(mt.N_,{to:G.url,children:(rt=G.title)!==null&&rt!==void 0?rt:G.url})},At=({item:G})=>{var rt;return(0,o.jsxs)(y.A,{children:[(0,o.jsx)(d.A,{children:(0,o.jsx)(wt,{icon:G.icon})}),(0,o.jsx)(c.A,{primary:G.title,secondary:(rt=G.links)===null||rt===void 0?void 0:rt.reduce((xt,St,Ct)=>[...xt,Ct>0&&(0,o.jsx)("br",{},Ct),(0,o.jsx)(lt,{link:St},St.url)],[])})]})};function at(G){const{title:rt,items:xt,children:St}=G,{items:Ct}=(0,P.l)(),[ut,ct]=(0,I.useState)(!1),[pt,H]=(0,I.useState)(null),K=ft(),q=(0,g.A)(vt=>vt.breakpoints.down("sm")),st=vt=>{H(vt.currentTarget),ct(!0)},Et=()=>{ct(!1)};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(u.A,{display:"flex",ml:1,children:q?(0,o.jsx)(f.A,{color:"primary",size:"small",onClick:st,"data-testid":"support-button","aria-label":"Support",children:(0,o.jsx)(J,{})}):(0,o.jsx)(C.A,{"data-testid":"support-button","aria-label":"Support",color:"primary",onClick:st,startIcon:(0,o.jsx)(J,{}),children:"Support"})}),(0,o.jsxs)(w.Ay,{"data-testid":"support-button-popover",open:ut,anchorEl:pt,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},onClose:Et,children:[(0,o.jsxs)(A.A,{className:K.popoverList,autoFocusItem:!!pt,children:[rt&&(0,o.jsx)(y.A,{alignItems:"flex-start",className:K.menuItem,children:(0,o.jsx)(O.A,{variant:"subtitle1",children:rt})}),I.Children.map(St,(vt,jt)=>(0,o.jsx)(y.A,{alignItems:"flex-start",className:K.menuItem,children:vt},`child-${jt}`)),(xt!=null?xt:Ct).map((vt,jt)=>(0,o.jsx)(At,{item:vt},`item-${jt}`))]}),(0,o.jsx)(m.A,{children:(0,o.jsx)(C.A,{color:"primary",onClick:Et,"aria-label":"Close",children:"Close"})})]})]})}},14209:function(Z,T,t){"use strict";t.d(T,{X:function(){return ut}});var o=t(31085),i=t(25301),u=t(10394),C=t(29365),m=t(7031),f=t(58837),d=t(54917),c=t(72501),y=t(83313),A=t(89019),w=t(62461),v=t(68887),O=t(63798),g=t(64704),I=t(6774),P=t(75625),E=t(65859),D=t(5416),j=t(33494),b=t(80113),V=t(26229),Y=t(46802),tt=t(45250),z=t(14041),W=t(64947),k=t(66917);const J=(0,f.A)(H=>({root:{height:"100%",width:"315px",display:"flex",flexDirection:"column",marginRight:H.spacing(3)},value:{fontWeight:"bold",fontSize:18},header:{display:"flex",alignItems:"center",height:H.spacing(7.5),justifyContent:"space-between",borderBottom:`1px solid ${H.palette.grey[500]}`},filters:{display:"flex",flexDirection:"column","& > *":{marginTop:H.spacing(2)}}}),{name:"BackstageTableFilters"}),nt=H=>{var K;const q=J(),{onChangeFilters:st}=H,[Et,vt]=(0,z.useState)({...H.selectedFilters}),[jt,Kt]=(0,z.useState)(!1),Bt=()=>{vt({}),Kt($t=>!$t)};return(0,z.useEffect)(()=>{st(Et)},[Et,st]),(0,o.jsxs)(u.A,{className:q.root,children:[(0,o.jsxs)(u.A,{className:q.header,children:[(0,o.jsx)(u.A,{className:q.value,children:"Filters"}),(0,o.jsx)(W.A,{color:"primary",onClick:Bt,children:"Clear all"})]}),(0,o.jsx)(u.A,{className:q.filters,children:((K=H.filters)===null||K===void 0?void 0:K.length)&&H.filters.map($t=>(0,o.jsx)(k.w,{triggerReset:jt,...$t.element,selected:Et[$t.element.label],onChange:Dt=>vt({...Et,[$t.element.label]:Dt})},$t.element.label))})]})};var it=t(78467);function mt(H){return(0,o.jsx)("tbody",{"data-testid":"loading-indicator",children:(0,o.jsx)("tr",{children:(0,o.jsx)("td",{colSpan:H.colSpan,children:(0,o.jsx)(u.A,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",minHeight:"15rem"},children:(0,o.jsx)(it.A,{size:"5rem"})})})})})}const ft={Add:(0,z.forwardRef)((H,K)=>(0,o.jsx)(y.A,{...H,ref:K})),Check:(0,z.forwardRef)((H,K)=>(0,o.jsx)(w.A,{...H,ref:K})),Clear:(0,z.forwardRef)((H,K)=>(0,o.jsx)(g.A,{...H,ref:K})),Delete:(0,z.forwardRef)((H,K)=>(0,o.jsx)(I.A,{...H,ref:K})),DetailPanel:(0,z.forwardRef)((H,K)=>(0,o.jsx)(O.A,{...H,ref:K})),Edit:(0,z.forwardRef)((H,K)=>(0,o.jsx)(P.A,{...H,ref:K})),Export:(0,z.forwardRef)((H,K)=>(0,o.jsx)(V.A,{...H,ref:K})),Filter:(0,z.forwardRef)((H,K)=>(0,o.jsx)(E.A,{...H,ref:K})),FirstPage:(0,z.forwardRef)((H,K)=>(0,o.jsx)(D.A,{...H,ref:K})),LastPage:(0,z.forwardRef)((H,K)=>(0,o.jsx)(j.A,{...H,ref:K})),NextPage:(0,z.forwardRef)((H,K)=>(0,o.jsx)(O.A,{...H,ref:K})),PreviousPage:(0,z.forwardRef)((H,K)=>(0,o.jsx)(v.A,{...H,ref:K})),ResetSearch:(0,z.forwardRef)((H,K)=>(0,o.jsx)(g.A,{...H,ref:K})),Search:(0,z.forwardRef)((H,K)=>(0,o.jsx)(E.A,{...H,ref:K})),SortArrow:(0,z.forwardRef)((H,K)=>(0,o.jsx)(A.A,{...H,ref:K})),ThirdStateCheck:(0,z.forwardRef)((H,K)=>(0,o.jsx)(b.A,{...H,ref:K})),ViewColumn:(0,z.forwardRef)((H,K)=>(0,o.jsx)(Y.A,{...H,ref:K}))};function wt(H,K){const q=K.split(".");let st=H[q[0]];for(let Et=1;Et<q.length;++Et){if(st===void 0)return st;const vt=q[Et];st=st[vt]}return st}const lt=(0,m.A)(H=>({header:{padding:H.spacing(1,2,1,2.5),borderTop:`1px solid ${H.palette.grey.A100}`,borderBottom:`1px solid ${H.palette.grey.A100}`,fontWeight:H.typography.fontWeightBold,position:"static",wordBreak:"normal"}}),{name:"BackstageTableHeader"})(i.rV),At=(0,m.A)(H=>({root:{padding:H.spacing(3,0,2.5,2.5)},title:{"& > h6":{fontWeight:H.typography.fontWeightBold}},searchField:{paddingRight:H.spacing(2)}}),{name:"BackstageTableToolbar"})(i.Nb),at=(0,f.A)(H=>({root:{display:"flex",alignItems:"center",justifyContent:"space-between"},title:{fontWeight:H.typography.fontWeightBold,fontSize:18,whiteSpace:"nowrap"}}),{name:"BackstageTableFiltersContainer"}),G=(0,f.A)(()=>({root:{display:"flex",alignItems:"start"}}),{name:"BackstageTable"});function rt(H,K){return H.map(q=>{var st;const Et=(st=q.headerStyle)!==null&&st!==void 0?st:{};let vt=q.cellStyle||{};if(q.highlight)if(Et.color=K.palette.textContrast,typeof vt=="object")vt.fontWeight=K.typography.fontWeightBold;else{const jt=vt;vt=(Kt,Bt,$t)=>({...jt(Kt,Bt,$t),fontWeight:K.typography.fontWeightBold})}return{...q,headerStyle:Et,cellStyle:vt}})}function xt(H,K){return(0,tt.transform)(H,(q,st,Et)=>{(0,tt.isEqual)(st,K[Et])||(q[Et]=st)})}const St={search:"",filtersOpen:!1,filters:{}};function Ct(H){const{toolbarRef:K,setSearch:q,hasFilters:st,selectedFiltersLength:Et,toggleFilters:vt}=H,jt=at(),Kt=(0,z.useCallback)(Bt=>{H.onSearchChanged(Bt),q(Bt)},[H,q]);return st?(0,o.jsxs)(u.A,{className:jt.root,children:[(0,o.jsxs)(u.A,{className:jt.root,children:[(0,o.jsx)(C.A,{onClick:vt,"aria-label":"filter list",children:(0,o.jsx)(E.A,{})}),(0,o.jsxs)(c.A,{className:jt.title,children:["Filters (",Et,")"]})]}),(0,o.jsx)(At,{...H,ref:K,onSearchChanged:Kt})]}):(0,o.jsx)(At,{...H,ref:K,onSearchChanged:Kt})}function ut(H){const{data:K,columns:q,emptyContent:st,options:Et,title:vt,subtitle:jt,localization:Kt,filters:Bt,initialState:$t,onStateChange:Dt,components:Gt,isLoading:De,...fe}=H,se=G(),Xt=(0,d.A)(),Mt={...St,...$t},[Vt,be]=(0,z.useState)(Mt.filtersOpen),Ve=(0,z.useCallback)(()=>be(Oe=>!Oe),[be]),[Ae,on]=(0,z.useState)(Mt.filters),[Xe,_e]=(0,z.useState)(Mt.search);(0,z.useEffect)(()=>{if(Dt){const Oe=xt({search:Xe,filtersOpen:Vt,filters:Ae},St);Dt(Oe)}},[Xe,Vt,Ae,Dt]);const Ge=(0,z.useCallback)(Oe=>{var ke;return(ke=q.find(He=>He.title===Oe))===null||ke===void 0?void 0:ke.field},[q]),le=(0,z.useMemo)(()=>{if(typeof K=="function"||!Ae)return K;const Oe=Object.values(Ae);return K&&Oe.flat().length?K.filter(He=>!!Object.entries(Ae).filter(([,M])=>!!M.length).every(([M,p])=>{const B=wt(He,Ge(M));return Array.isArray(B)&&Array.isArray(p)?B.some(F=>p.includes(F)):Array.isArray(B)?B.includes(p):Array.isArray(p)?p.includes(B):B===p})):K},[K,Ae,Ge]),ze=Object.values(Ae).flat().length,We=!!(Bt!=null&&Bt.length),cn=(0,z.useCallback)(Oe=>(0,o.jsx)(Ct,{setSearch:_e,hasFilters:We,selectedFiltersLength:ze,toggleFilters:Ve,...Oe}),[Ve,We,ze,_e]),Ue=typeof K!="function"&&K.length===0,ce=q.length,Ye=(0,z.useMemo)(()=>ct({hasNoRows:Ue,emptyContent:st,columnCount:ce,loading:De}),[Ue,st,ce,De]);return(0,o.jsxs)(u.A,{className:se.root,children:[Vt&&K&&typeof K!="function"&&(Bt==null?void 0:Bt.length)&&(0,o.jsx)(nt,{filters:pt(Bt,K,q),selectedFilters:Ae,onChangeFilters:on}),(0,o.jsx)(i.Ay,{components:{Header:lt,Body:Ye,Toolbar:cn,...Gt},options:{headerStyle:{textTransform:"uppercase"},...Et},columns:rt(q,Xt),icons:ft,title:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(c.A,{variant:"h5",component:"h2",children:vt}),jt&&(0,o.jsx)(c.A,{color:"textSecondary",variant:"body1",children:jt})]}),data:le,style:{width:"100%"},localization:{toolbar:{searchPlaceholder:"Filter",searchTooltip:"Filter"},...Kt},...fe})]})}ut.icons=Object.freeze(ft);function ct({columnCount:H,emptyContent:K,hasNoRows:q,loading:st}){return Et=>st?(0,o.jsx)(mt,{colSpan:H}):K&&q?(0,o.jsx)("tbody",{children:(0,o.jsx)("tr",{children:(0,o.jsx)("td",{colSpan:H,children:K})})}):(0,o.jsx)(i.C6,{...Et})}function pt(H,K,q){const st=vt=>{const jt=new Set,Kt=Bt=>{Bt!=null&&jt.add(Bt)};return K&&K.forEach(Bt=>{var $t;const Dt=wt(Bt,($t=q.find(Gt=>Gt.title===vt))===null||$t===void 0?void 0:$t.field);Array.isArray(Dt)?Dt.forEach(Kt):Kt(Dt)}),jt},Et=vt=>({placeholder:"All results",label:vt.column,multiple:vt.type==="multiple-select",items:[...st(vt.column)].sort().map(jt=>({label:jt,value:jt}))});return H.map(vt=>({type:vt.type,element:Et(vt)}))}},88640:function(Z,T,t){"use strict";t.d(T,{B:function(){return b}});var o=t(31085),i=t(268),u=t(58837),C=t(8973),m=t(29655),f=t(91567),d=t(42899),c=t(72501),y=t(9181),A=t(6924),w=t(14041),v=t(4650);const O=(V,Y)=>(Y.palette.type==="light"?i.e$:i.a)(Y.palette[V].light,.6),g=(V,Y)=>(Y.palette.type==="light"?i.a:i.e$)(Y.palette[V].light,.9),I=(0,u.A)(V=>({root:{marginRight:V.spacing(1),fill:({severity:Y})=>O(Y,V)}})),P=({severity:V})=>{const Y=I({severity:V});return(0,o.jsx)(y.A,{classes:Y})},E=({severity:V})=>{const Y=I({severity:V});return(0,o.jsx)(A.A,{classes:Y})},D=(0,u.A)(V=>({panel:{backgroundColor:({severity:Y})=>g(Y,V),color:({severity:Y})=>O(Y,V),verticalAlign:"middle"},summary:{display:"flex",flexDirection:"row"},summaryText:{color:({severity:Y})=>O(Y,V),fontWeight:V.typography.fontWeightBold},markdownContent:{"& p":{display:"inline"}},message:{width:"100%",display:"block",color:({severity:Y})=>O(Y,V),backgroundColor:({severity:Y})=>g(Y,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"}),j=V=>V.charAt(0).toLocaleUpperCase("en-US")+V.slice(1);function b(V){const{severity:Y="warning",title:tt,titleFormat:z,message:W,children:k,defaultExpanded:J}=V,nt=D({severity:Y}),it=j(Y)+(tt?`: ${tt}`:"");return(0,o.jsxs)(C.A,{defaultExpanded:J!=null?J:!1,className:nt.panel,role:"alert",children:[(0,o.jsxs)(m.A,{expandIcon:(0,o.jsx)(E,{severity:Y}),className:nt.summary,children:[(0,o.jsx)(P,{severity:Y}),(0,o.jsx)(c.A,{className:nt.summaryText,variant:"subtitle1",children:z==="markdown"?(0,o.jsx)(v.h,{content:it,className:nt.markdownContent}):it})]}),(W||k)&&(0,o.jsx)(f.A,{children:(0,o.jsxs)(d.A,{container:!0,children:[W&&(0,o.jsx)(d.A,{item:!0,xs:12,children:(0,o.jsx)(c.A,{className:nt.message,variant:"body1",children:W})}),k&&(0,o.jsx)(d.A,{item:!0,xs:12,className:nt.details,children:k})]})})]})}},10795:function(Z,T,t){"use strict";t.d(T,{l:function(){return C}});var o=t(72427),i=t(65461);const u={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 C(){const f=(0,o.Q2)().get(i.U),d=f==null?void 0:f.getOptionalConfig("app.support");return d?{url:d.getString("url"),items:d.getConfigArray("items").flatMap(c=>{var y;return{title:c.getString("title"),icon:c.getOptionalString("icon"),links:((y=c.getOptionalConfigArray("links"))!==null&&y!==void 0?y:[]).flatMap(A=>({url:A.getString("url"),title:A.getString("title")}))}})}:u}},26280:function(Z,T,t){"use strict";t.d(T,{U:function(){return d}});var o=t(31085),i=t(58837),u=t(53373),C=t.n(u),m=t(14041);const f=(0,i.A)(c=>({root:{gridArea:"pageContent",minWidth:0,paddingTop:c.spacing(3),paddingBottom:c.spacing(3),paddingLeft:c.spacing(2),paddingRight:c.spacing(2),[c.breakpoints.up("sm")]:{paddingLeft:c.spacing(3),paddingRight:c.spacing(3)}},stretch:{display:"flex",flexDirection:"column",flexGrow:1},noPadding:{padding:0}}),{name:"BackstageContent"});function d(c){const{className:y,stretch:A,noPadding:w,children:v,...O}=c,g=f();return(0,o.jsx)("article",{...O,className:C()(g.root,y,{[g.stretch]:A,[g.noPadding]:w}),children:v})}},59428:function(Z,T,t){"use strict";t.d(T,{d:function(){return y}});var o=t(31085),i=t(10394),u=t(58837),C=t(72501),m=t(14041),f=t(93285);const d=A=>(0,u.A)(w=>({container:{width:"100%",display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"flex-end",alignItems:"center",marginBottom:w.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:w.spacing(1),minWidth:0,overflow:"visible"},description:{},title:{display:"inline-flex",marginBottom:0}}),{name:"BackstageContentHeader"}),c=({title:A="Unknown page",className:w})=>(0,o.jsx)(C.A,{variant:"h4",component:"h2",className:w,"data-testid":"header-title",children:A});function y(A){const{description:w,title:v,titleComponent:O=void 0,children:g,textAlign:I="left"}=A,P=d({textAlign:I})(),E=O||(0,o.jsx)(c,{title:v,className:P.title});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(f.m,{title:v}),(0,o.jsxs)(i.A,{className:P.container,children:[(0,o.jsxs)(i.A,{className:P.leftItemsBox,children:[E,w&&(0,o.jsx)(C.A,{className:P.description,variant:"body2",children:w})]}),(0,o.jsx)(i.A,{className:P.rightItemsBox,children:g})]})]})}},12173:function(Z,T,t){"use strict";t.d(T,{M:function(){return P}});var o=t(31085),i=t(42899),u=t(58837),C=t(72501),m=t(14041),f=t(18690),d=t(72072),c=t(10795),y=t.p+"static/mic-drop.fe3ef4d0..svg";const A=(0,u.A)(E=>({micDrop:{maxWidth:"60%",bottom:E.spacing(2),right:E.spacing(2),[E.breakpoints.down("xs")]:{maxWidth:"96%",bottom:"unset",right:"unset",margin:E.spacing(10,"auto",4)}}}),{name:"BackstageErrorPageMicDrop"}),w=()=>{const E=A();return(0,o.jsx)("img",{src:y,className:E.micDrop,alt:"Girl dropping mic from her hands"})};var v=t(77310);const O=(0,u.A)(E=>({title:{paddingBottom:E.spacing(5),[E.breakpoints.down("xs")]:{paddingBottom:E.spacing(4),fontSize:E.typography.h3.fontSize}}}),{name:"BackstageErrorPageStackDetails"});function g(E){const{stack:D}=E,j=O(),[b,V]=(0,m.useState)(!1);return b?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(C.A,{variant:"h6",className:j.title,children:(0,o.jsx)(d.N_,{to:"#",onClick:()=>V(!1),children:"Show less details"})}),(0,o.jsx)(v.z,{text:D,language:"text",showCopyCodeButton:!0,showLineNumbers:!0})]}):(0,o.jsx)(C.A,{variant:"h6",className:j.title,children:(0,o.jsx)(d.N_,{to:"#",onClick:()=>V(!0),children:"Show more details"})})}const I=(0,u.A)(E=>({container:{padding:E.spacing(8),[E.breakpoints.down("xs")]:{padding:E.spacing(2)}},title:{paddingBottom:E.spacing(5),[E.breakpoints.down("xs")]:{paddingBottom:E.spacing(4),fontSize:E.typography.h3.fontSize}},subtitle:{color:E.palette.textSubtle}}),{name:"BackstageErrorPage"});function P(E){const{status:D,statusMessage:j,additionalInfo:b,supportUrl:V,stack:Y}=E,tt=I(),z=(0,f.Zp)(),W=(0,c.l)();return(0,o.jsxs)(i.A,{container:!0,className:tt.container,children:[(0,o.jsxs)(i.A,{item:!0,xs:12,sm:8,md:4,children:[(0,o.jsxs)(C.A,{"data-testid":"error",variant:"body1",className:tt.subtitle,children:["ERROR ",D,": ",j]}),(0,o.jsx)(C.A,{variant:"body1",className:tt.subtitle,children:b}),(0,o.jsx)(C.A,{variant:"h2",className:tt.title,children:"Looks like someone dropped the mic!"}),(0,o.jsxs)(C.A,{variant:"h6",className:tt.title,children:[(0,o.jsx)(d.N_,{to:"#","data-testid":"go-back-link",onClick:()=>z(-1),children:"Go back"}),"... or please"," ",(0,o.jsx)(d.N_,{to:V||W.url,children:"contact support"})," if you think this is a bug."]}),Y&&(0,o.jsx)(g,{stack:Y})]}),(0,o.jsx)(w,{})]})}},69814:function(Z,T,t){"use strict";t.d(T,{Y:function(){return W}});var o=t(31085),i=t(72427),u=t(65461),C=t(10394),m=t(42899),f=t(58837),d=t(71677),c=t(72501),y=t(14041),A=t(93285),w=t(72072),v=t(45634),O=t(58007),g=t(8109),I=t(55197),P=t(7031);const E=(0,P.A)({root:{textDecoration:"underline",cursor:"pointer"}},{name:"BackstageBreadcrumbsClickableText"})(c.A),D=(0,P.A)({root:{textDecoration:"underline",color:"inherit"}},{name:"BackstageBreadcrumbsStyledBox"})(C.A);function j(k){const{children:J,...nt}=k,[it,mt]=y.useState(null),ft=y.Children.toArray(J),[wt,lt,...At]=ft,at=At.length?At.pop():ft[ft.length-1],G=ft.length>3,rt=Ct=>{mt(Ct.currentTarget)},xt=()=>{mt(null)},St=!!it;return(0,o.jsxs)(y.Fragment,{children:[(0,o.jsxs)(v.A,{"aria-label":"breadcrumb",...nt,children:[ft.length>1&&(0,o.jsx)(D,{clone:!0,children:wt}),ft.length>2&&(0,o.jsx)(D,{clone:!0,children:lt}),G&&(0,o.jsx)(E,{onClick:rt,children:"..."}),(0,o.jsx)(C.A,{style:{fontStyle:"italic"},children:at})]}),(0,o.jsx)(I.Ay,{open:St,anchorEl:it,onClose:xt,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:(0,o.jsx)(O.A,{children:At.map((Ct,ut)=>(0,o.jsx)(g.A,{button:!0,children:(0,o.jsx)(D,{clone:!0,children:Ct})},ut))})})]})}var b=t(73524);const V=(0,f.A)(k=>({header:{gridArea:"pageHeader",padding:k.spacing(3),width:"100%",boxShadow:k.shadows[4],position:"relative",zIndex:100,display:"flex",flexDirection:"row",alignItems:"center",backgroundImage:k.page.backgroundImage,backgroundPosition:"center",backgroundSize:"cover",[k.breakpoints.down("sm")]:{flexWrap:"wrap"}},leftItemsBox:{maxWidth:"100%",flexGrow:1},rightItemsBox:{width:"auto",alignItems:"center"},title:{color:k.page.fontColor,wordBreak:"break-word",fontSize:k.typography.h3.fontSize,marginBottom:0},subtitle:{color:k.page.fontColor,opacity:.8,display:"inline-block",marginTop:k.spacing(1),maxWidth:"75ch"},type:{textTransform:"uppercase",fontSize:11,opacity:.8,marginBottom:k.spacing(1),color:k.page.fontColor},breadcrumb:{color:k.page.fontColor},breadcrumbType:{fontSize:"inherit",opacity:.7,marginRight:-k.spacing(.3),marginBottom:k.spacing(.3)},breadcrumbTitle:{fontSize:"inherit",marginLeft:-k.spacing(.3),marginBottom:k.spacing(.3)}}),{name:"BackstageHeader"}),Y=({type:k,typeLink:J,classes:nt,pageTitle:it})=>k?J?(0,o.jsxs)(j,{className:nt.breadcrumb,children:[(0,o.jsx)(w.N_,{to:J,children:k}),(0,o.jsx)(c.A,{children:it})]}):(0,o.jsx)(c.A,{className:nt.type,children:k}):null,tt=({pageTitle:k,classes:J,tooltip:nt})=>{const{contentRef:it}=(0,b.H)(),mt=(0,o.jsx)(c.A,{ref:it,tabIndex:-1,className:J.title,variant:"h1",children:k});return nt?(0,o.jsx)(d.Ay,{title:nt,placement:"top-start",children:mt}):mt},z=({classes:k,subtitle:J})=>J?typeof J!="string"?(0,o.jsx)(o.Fragment,{children:J}):(0,o.jsx)(c.A,{className:k.subtitle,variant:"subtitle2",component:"span",children:J}):null;function W(k){const{children:J,pageTitleOverride:nt,style:it,subtitle:mt,title:ft,tooltip:wt,type:lt,typeLink:At}=k,at=V(),rt=(0,i.gf)(u.U).getOptionalString("app.title")||"Backstage",xt=nt||ft,St=ft||nt,Ct=`${xt} | %s | ${rt}`,ut=`${xt} | ${rt}`;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(A.m,{titleTemplate:Ct,defaultTitle:ut}),(0,o.jsxs)("header",{style:it,className:at.header,children:[(0,o.jsxs)(C.A,{className:at.leftItemsBox,children:[(0,o.jsx)(Y,{classes:at,type:lt,typeLink:At,pageTitle:St}),(0,o.jsx)(tt,{classes:at,pageTitle:St,tooltip:wt}),(0,o.jsx)(z,{classes:at,subtitle:mt})]}),(0,o.jsx)(m.A,{container:!0,className:at.rightItemsBox,spacing:4,children:J})]})]})}},24504:function(Z,T,t){"use strict";t.d(T,{Y:function(){return f}});var o=t(31085),i=t(14041),u=t(58837),C=t(50868);const m=(0,u.A)(d=>({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",[d.breakpoints.down("xs")]:{height:"100%"},"@media print":{display:"block",height:"auto",overflowY:"inherit"}}}),{name:"BackstagePage"});function f(d){const{themeId:c,children:y}=d,A=m();return(0,o.jsx)(C.A,{theme:w=>({...w,page:w.getPageTheme({themeId:c})}),children:(0,o.jsx)("main",{className:A.root,children:y})})}},27155:function(Z,T,t){"use strict";t.d(T,{d:function(){return m}});var o=t(31085),i=t(14041),u=t(69814),C=t(24504);function m(f){const{themeId:d,children:c,...y}=f;return(0,o.jsxs)(C.Y,{themeId:d,children:[(0,o.jsx)(u.Y,{...y}),c]})}},73524:function(Z,T,t){"use strict";t.d(T,{G:function(){return v},H:function(){return O}});var o=t(31085),i=t(10394),u=t(58837),C=t(5893),m=t(14041),f=t(72664),d;(function(g){g.SIDEBAR_PIN_STATE="sidebarPinState"})(d||(d={}));const c={getSidebarPinState(){let g;try{g=JSON.parse(window.localStorage.getItem("sidebarPinState")||"true")}catch{return!0}return!!g},setSidebarPinState(g){return window.localStorage.setItem("sidebarPinState",JSON.stringify(g))}};var y=t(34435);const A=(0,u.A)(g=>({root:{width:"100%",transition:"padding-left 0.1s ease-out",isolation:"isolate",[g.breakpoints.up("sm")]:{paddingLeft:I=>I.isPinned?I.sidebarConfig.drawerWidthOpen:I.sidebarConfig.drawerWidthClosed},[g.breakpoints.down("xs")]:{paddingBottom:I=>I.sidebarConfig.mobileSidebarHeight},"@media print":{padding:"0px !important"}},content:{zIndex:0,isolation:"isolate","&:focus":{outline:0}}}),{name:"BackstageSidebarPage"}),w=(0,m.createContext)({content:{contentRef:void 0}});function v(g){const[I,P]=(0,m.useState)(()=>c.getSidebarPinState()),{sidebarConfig:E}=(0,m.useContext)(f.yY),D=(0,m.useRef)(null),j=(0,m.useMemo)(()=>({content:{contentRef:D}}),[D]);(0,m.useEffect)(()=>{c.setSidebarPinState(I)},[I]);const b=(0,C.A)(tt=>tt.breakpoints.down("xs"),{noSsr:!0}),V=()=>P(!I),Y=A({isPinned:I,sidebarConfig:E});return(0,o.jsx)(y.qj,{value:{isPinned:I,toggleSidebarPinState:V,isMobile:b},children:(0,o.jsx)(w.Provider,{value:j,children:(0,o.jsx)(i.A,{className:Y.root,children:g.children})})})}function O(){const{content:g}=(0,m.useContext)(w);return{focusContent:(0,m.useCallback)(()=>{var P,E;g==null||(E=g.contentRef)===null||E===void 0||(P=E.current)===null||P===void 0||P.focus()},[g]),contentRef:g==null?void 0:g.contentRef}}},34435:function(Z,T,t){"use strict";t.d(T,{Ut:function(){return y},qj:function(){return c}});var o=t(31085),i=t(43836),u=t(10602),C=t(14041);const m={isPinned:!0,toggleSidebarPinState:()=>{},isMobile:!1},f=(0,C.createContext)(m),d=(0,i.tK)("sidebar-pin-state-context");function c(A){const{children:w,value:v}=A;return(0,o.jsx)(f.Provider,{value:v,children:(0,o.jsx)(d.Provider,{value:(0,u.B)({1:v}),children:w})})}const y=()=>{const A=(0,C.useContext)(d),w=(0,C.useContext)(f);if(A===void 0)return w||m;const v=A.atVersion(1);if(v===void 0)throw new Error("No context found for version 1.");return v}},72664:function(Z,T,t){"use strict";t.d(T,{Rv:function(){return f},U1:function(){return w},hC:function(){return m},i8:function(){return c},yY:function(){return A}});var o=t(14041);const i=72,u=24,C=18,m={drawerWidthClosed:i,drawerWidthOpen:224,defaultOpenDelayMs:100,defaultCloseDelayMs:0,defaultFadeDuration:200,logoHeight:32,iconContainerWidth:i,iconSize:i-u*2,iconPadding:u,selectedIndicatorWidth:3,userBadgePadding:C,userBadgeDiameter:i-C*2,mobileSidebarHeight:56},f=v=>({...m,...v,iconContainerWidth:m.drawerWidthClosed,iconSize:m.drawerWidthClosed-m.iconPadding*2,userBadgeDiameter:m.drawerWidthClosed-m.userBadgePadding*2}),d={drawerWidthClosed:0,drawerWidthOpen:202,defaultOpenDelayMs:m.defaultOpenDelayMs+200},c=v=>({...d,...v}),y="@backstage/core/sidebar-intro-dismissed",A=(0,o.createContext)({sidebarConfig:m,submenuConfig:d}),w=(0,o.createContext)({isHoveredOn:!1,setIsHoveredOn:()=>{}})},25862:function(Z,T,t){"use strict";t.d(T,{Ig:function(){return d},pn:function(){return f}});var o=t(31085),i=t(43836),u=t(10602),C=t(14041);const m=(0,i.tK)("analytics-context"),f=()=>{const y=(0,C.useContext)(m);if(y===void 0)return{routeRef:"unknown",pluginId:"root",extension:"App"};const A=y.atVersion(1);if(A===void 0)throw new Error("No context found for version 1.");return A},d=y=>{const{attributes:A,children:w}=y,O={...f(),...A},g=(0,u.B)({1:O});return(0,o.jsx)(m.Provider,{value:g,children:w})};function c(y,A){const w=v=>_jsx(d,{attributes:A,children:_jsx(y,{...v})});return w.displayName=`WithAnalyticsContext(${y.displayName||y.name||"Component"})`,w}},67237:function(Z,T,t){"use strict";t.d(T,{J:function(){return m},t:function(){return C}});var o=t(18990),i=t(63544);const u=(0,i.Q)("core-plugin-api:analytics-tracker-events",()=>({mostRecentGatheredNavigation:void 0,mostRecentRoutableExtensionRender:void 0,beforeUnloadRegistered:!1})),C="_ROUTABLE-EXTENSION-RENDERED";class m{setContext(d){this.context=d}captureEvent(d,c,{value:y,attributes:A}={}){const{_routeNodeType:w,...v}=this.context;if(d===C){u.mostRecentGatheredNavigation&&(u.mostRecentRoutableExtensionRender={context:{...v,extension:"App"}});return}if(u.mostRecentGatheredNavigation){try{this.analyticsApi.captureEvent({...u.mostRecentGatheredNavigation,...u.mostRecentRoutableExtensionRender})}catch(O){console.warn("Error during analytics event capture. %o",O)}u.mostRecentGatheredNavigation=void 0,u.mostRecentRoutableExtensionRender=void 0}if(d==="navigate"&&w==="gathered"&&v.pluginId==="root"){u.mostRecentGatheredNavigation={action:d,subject:c,value:y,attributes:A,context:v};return}try{this.analyticsApi.captureEvent({action:d,subject:c,value:y,attributes:A,context:v})}catch(O){console.warn("Error during analytics event capture. %o",O)}}constructor(d,c={routeRef:"unknown",pluginId:"root",extension:"App"}){(0,o._)(this,"analyticsApi",void 0),(0,o._)(this,"context",void 0),this.analyticsApi=d,this.context=c,u.beforeUnloadRegistered||(addEventListener("beforeunload",()=>{u.mostRecentGatheredNavigation&&(this.analyticsApi.captureEvent({...u.mostRecentGatheredNavigation,...u.mostRecentRoutableExtensionRender}),u.mostRecentGatheredNavigation=void 0,u.mostRecentRoutableExtensionRender=void 0)},{once:!0,passive:!0}),u.beforeUnloadRegistered=!0)}}},93368:function(Z,T,t){"use strict";t.d(T,{s:function(){return d}});var o=t(25862),i=t(72427),u=t(99303),C=t(14041),m=t(67237);function f(){try{return(0,i.gf)(u.c)}catch{return{captureEvent:()=>{}}}}function d(){const c=(0,C.useRef)(null),y=(0,o.pn)(),A=f();function w(){return c.current===null&&(c.current=new m.J(A)),c.current}const v=w();return v.setContext(y),v}},36017:function(Z,T,t){"use strict";t.d(T,{k:function(){return i}});var o=t(55309);const i=(0,o.y)({id:"core.alert"})},99303:function(Z,T,t){"use strict";t.d(T,{c:function(){return i}});var o=t(55309);const i=(0,o.y)({id:"core.analytics"})},65461:function(Z,T,t){"use strict";t.d(T,{U:function(){return i}});var o=t(55309);const i=(0,o.y)({id:"core.config"})},57405:function(Z,T,t){"use strict";t.d(T,{I:function(){return i}});var o=t(55309);const i=(0,o.y)({id:"core.discovery"})},39837:function(Z,T,t){"use strict";t.d(T,{m:function(){return i}});var o=t(55309);const i=(0,o.y)({id:"core.error"})},63636:function(Z,T,t){"use strict";t.d(T,{B:function(){return u},S:function(){return i}});var o=t(55309),i;(function(C){C[C.None=0]="None",C[C.Active=1]="Active"})(i||(i={}));const u=(0,o.y)({id:"core.featureflags"})},70795:function(Z,T,t){"use strict";t.d(T,{a:function(){return i}});var o=t(55309);const i=(0,o.y)({id:"core.fetch"})},16009:function(Z,T,t){"use strict";t.d(T,{K:function(){return i}});var o=t(55309);const i=(0,o.y)({id:"core.identity"})},56038:function(Z,T,t){"use strict";t.d(T,{J:function(){return i}});var o=t(55309);const i=(0,o.y)({id:"core.translation"})},55309:function(Z,T,t){"use strict";t.d(T,{y:function(){return u}});var o=t(18990);class i{get id(){return this.config.id}get T(){throw new Error(`tried to read ApiRef.T of ${this}`)}toString(){return`apiRef{${this.config.id}}`}constructor(m){if((0,o._)(this,"config",void 0),this.config=m,!m.id.split(".").flatMap(d=>d.split("-")).every(d=>d.match(/^[a-z][a-z0-9]*$/)))throw new Error(`API id must only contain period separated lowercase alphanum tokens with dashes, got '${m.id}'`)}}function u(C){return new i(C)}},12935:function(Z,T,t){"use strict";t.d(T,{b:function(){return o}});function o(i,u){return"id"in i?{api:i,deps:{},factory:()=>u}:i}},72427:function(Z,T,t){"use strict";t.d(T,{Q2:function(){return m},gf:function(){return f}});var o=t(31085),i=t(14041),u=t(43836),C=t(97142);function m(){const c=(0,u.qO)("api-context");if(!c)throw new C.EH("API context is not available");const y=c.atVersion(1);if(!y)throw new C.EH("ApiContext v1 not available");return y}function f(c){const A=m().get(c);if(!A)throw new C.EH(`No implementation available for ${c}`);return A}function d(c){return function(A){const w=O=>{const g=m(),I={};for(const P in c)if(c.hasOwnProperty(P)){const E=c[P],D=g.get(E);if(!D)throw new NotImplementedError(`No implementation available for ${E}`);I[P]=D}return _jsx(A,{...O,...I})},v=A.displayName||A.name||"Component";return w.displayName=`withApis(${v})`,w}}},82266:function(Z,T,t){"use strict";t.d(T,{n:function(){return i}});var o=t(43836);const i=()=>{const u=(0,o.qO)("app-context");if(!u)throw new Error("App context is not available");const C=u.atVersion(1);if(!C)throw new Error("AppContext v1 not available");return C}},19402:function(Z,T,t){"use strict";t.d(T,{E:function(){return m},h:function(){return C}});var o=t(63544);const i=(0,o.Q)("component-data-store",()=>new WeakMap),u="__backstage_data";function C(f,d,c){const y=f;var A;let w=(A=y[u])!==null&&A!==void 0?A:i.get(f);if(w||(w={map:new Map},Object.defineProperty(y,u,{enumerable:!1,configurable:!0,writable:!1,value:w}),i.set(f,w)),w.map.has(d)){const v=f.displayName||f.name;throw new Error(`Attempted to attach duplicate data "${d}" to component "${v}"`)}w.map.set(d,c)}function m(f,d){if(!f)return;const c=f.type;if(!c)return;var y;const A=(y=c[u])!==null&&y!==void 0?y:i.get(c);if(A)return A.map.get(d)}},88758:function(Z,T,t){"use strict";t.d(T,{NC:function(){return v},zZ:function(){return O},QJ:function(){return w}});var o=t(31085),i=t(14041),u=t(93368),C=t(25862),m=t(82266),f=t(9222),d=t(19402),c=t(18990);class y extends i.Component{static getDerivedStateFromError(I){return{error:I}}render(){const{error:I}=this.state,{app:P,plugin:E}=this.props,{ErrorBoundaryFallback:D}=P.getComponents();return I?(0,o.jsx)(D,{error:I,resetError:this.handleErrorReset,plugin:E}):this.props.children}constructor(...I){super(...I),(0,c._)(this,"state",{error:void 0}),(0,c._)(this,"handleErrorReset",()=>{this.setState({error:void 0})})}}var A=t(67237);function w(g){const{component:I,mountPoint:P,name:E}=g;return O({component:{lazy:()=>I().then(D=>{const j=V=>{const Y=(0,u.s)();try{(0,f.S)(P)}catch(tt){if(typeof tt=="object"&&tt!==null){const{message:z}=tt;if(typeof z=="string"&&z.startsWith("No path for "))throw new Error(`Routable extension component with mount point ${P} was not discovered in the app element tree. Routable extension components may not be rendered by other components and must be directly available as an element within the App provider component.`)}throw tt}return(0,i.useEffect)(()=>{Y.captureEvent(A.t,"")},[Y]),(0,o.jsx)(D,{...V})},b=E||D.displayName||D.name||"LazyComponent";return j.displayName=`RoutableExtension(${b})`,j},D=>b=>{const V=(0,m.n)(),{BootErrorPage:Y}=V.getComponents();return(0,o.jsx)(Y,{step:"load-chunk",error:D})})},data:{"core.mountPoint":P},name:E})}function v(g){const{component:I,name:P}=g;return O({component:I,name:P})}function O(g){const{data:I={},name:P}=g;P||console.warn("Declaring extensions without name is DEPRECATED. Make sure that all usages of createReactExtension, createComponentExtension and createRoutableExtension provide a name.");let E;if("lazy"in g.component){const j=g.component.lazy;E=(0,i.lazy)(()=>j().then(b=>({default:b})))}else E=g.component.sync;const D=P||E.displayName||E.name||"Component";return{expose(j){const b=V=>{const Y=(0,m.n)(),{Progress:tt}=Y.getComponents(),z=I==null?void 0:I["core.mountPoint"];return(0,o.jsx)(i.Suspense,{fallback:(0,o.jsx)(tt,{}),children:(0,o.jsx)(y,{app:Y,plugin:j,children:(0,o.jsx)(C.Ig,{attributes:{pluginId:j.getId(),...P&&{extension:P},...z&&{routeRef:z.id}},children:(0,o.jsx)(E,{...V})})})})};(0,d.h)(b,"core.plugin",j),(0,d.h)(b,"core.extensionName",P);for(const[V,Y]of Object.entries(I))(0,d.h)(b,V,Y);return b.displayName=`Extension(${D})`,b}}}},82442:function(Z,T,t){"use strict";t.d(T,{O:function(){return c}});var o=t(18990),i=t(14041),u=t(19402),C=t(72427),m=t(63636);function f(y,A,w,v){return i.Children.toArray(y).flatMap(O=>{if(!(0,i.isValidElement)(O))return[];if(O.type===i.Fragment)return f(O.props.children,A,w,v);if((0,u.E)(O,"core.featureFlagged")){const g=O.props;return("with"in g?A.isActive(g.with):!A.isActive(g.without))?f(O.props.children,A,w,v):[]}if(w===void 0||w(O))return[O];if(v)throw new Error(v);return f(O.props.children,A,w,v)})}class d{selectByComponentData(A){const w=f(this.node,this.featureFlagsApi,v=>(0,u.E)(v,A.key)!==void 0,A.withStrictError);return new d(w,this.featureFlagsApi)}findComponentData(A){return f(this.node,this.featureFlagsApi,v=>(0,u.E)(v,A.key)!==void 0).map(v=>(0,u.E)(v,A.key)).filter(v=>v!==void 0)}getElements(){return f(this.node,this.featureFlagsApi)}constructor(A,w){(0,o._)(this,"node",void 0),(0,o._)(this,"featureFlagsApi",void 0),this.node=A,this.featureFlagsApi=w}}function c(y,A,w=[]){const v=(0,C.gf)(m.B),O=new d(y,v);return(0,i.useMemo)(()=>A(O),[y,...w])}},9803:function(Z,T,t){"use strict";t.d(T,{i:function(){return u}});var o=t(18990);class i{getId(){return this.config.id}getApis(){var m;return(m=this.config.apis)!==null&&m!==void 0?m:[]}getFeatureFlags(){var m,f;return(f=(m=this.config.featureFlags)===null||m===void 0?void 0:m.slice())!==null&&f!==void 0?f:[]}get routes(){var m;return(m=this.config.routes)!==null&&m!==void 0?m:{}}get externalRoutes(){var m;return(m=this.config.externalRoutes)!==null&&m!==void 0?m:{}}provide(m){return m.expose(this)}toString(){return`plugin{${this.config.id}}`}constructor(m){(0,o._)(this,"config",void 0),this.config=m}}function u(C){return new i(C)}},34569:function(Z,T,t){"use strict";t.d(T,{H:function(){return f}});var o=t(18990),i=t(59598);let u=i.b,C=u;class m{get title(){return this.id}toString(){return`routeRef{type=absolute,id=${this.id}}`}constructor(c,y){(0,o._)(this,"id",void 0),(0,o._)(this,"params",void 0),(0,o._)(this,C,void 0),this.id=c,this.params=y,this[u]="absolute"}}function f(d){var c;return new m(d.id,(c=d.params)!==null&&c!==void 0?c:[])}},59598:function(Z,T,t){"use strict";t.d(T,{b:function(){return i}});var o=t(63544);const i=(0,o.Q)("route-ref-type",()=>Symbol("route-ref-type"))},9222:function(Z,T,t){"use strict";t.d(T,{S:function(){return C}});var o=t(14041),i=t(18690),u=t(43836);function C(m){const{pathname:f}=(0,i.zy)(),d=(0,u.qO)("routing-context");if(!d)throw new Error("Routing context is not available");const c=d.atVersion(1),y=(0,o.useMemo)(()=>c&&c.resolve(m,{pathname:f}),[c,m,f]);if(!d)throw new Error("useRouteRef used outside of routing context");if(!c)throw new Error("RoutingContext v1 not available");const A="optional"in m&&m.optional;if(!y&&!A)throw new Error(`No path for ${m}`);return y}},93184:function(Z,T,t){"use strict";t.d(T,{h:function(){return w},v:function(){return v}});var o=t(96324),i=t(87081),u=t(33284),C=t(18990),m=t(99833);function f(O){const g=new Array;function I(P,E){for(const[D,j]of Object.entries(P))typeof j=="string"?g.push([E+D,j]):I(j,`${E}${D}.`)}return I(O,""),Object.fromEntries(g)}var d=new WeakMap,c=new WeakMap,y=new WeakMap;class A{get id(){return(0,o._)(this,d)}get T(){throw new Error("Not implemented")}getDefaultMessages(){return(0,o._)(this,c)}setDefaultResource(g){(0,u._)(this,y,g)}getDefaultResource(){return(0,o._)(this,y)}toString(){return`TranslationRef{id=${this.id}}`}constructor(g){(0,i._)(this,d,{writable:!0,value:void 0}),(0,i._)(this,c,{writable:!0,value:void 0}),(0,i._)(this,y,{writable:!0,value:void 0}),(0,C._)(this,"$$type","@backstage/TranslationRef"),(0,C._)(this,"version","v1"),(0,u._)(this,d,g.id),(0,u._)(this,c,f(g.messages))}}function w(O){const g=new A(O);return O.translations&&g.setDefaultResource((0,m.o)({ref:g,translations:O.translations})),g}function v(O){const g=O;if(g.$$type!=="@backstage/TranslationRef")throw new Error(`Invalid translation ref, bad type '${g.$$type}'`);if(g.version!=="v1")throw new Error(`Invalid translation ref, bad version '${g.version}'`);return g}},99833:function(Z,T,t){"use strict";t.d(T,{Y:function(){return o},o:function(){return i}});function o(u){const C=u;if(C.$$type!=="@backstage/TranslationResource")throw new Error(`Invalid translation resource, bad type '${C.$$type}'`);if(C.version!=="v1")throw new Error(`Invalid translation resource, bad version '${C.version}'`);return C}function i(u){return{$$type:"@backstage/TranslationResource",version:"v1",id:u.ref.id,resources:Object.entries(u.translations).map(([C,m])=>({language:C,loader:()=>m().then(f=>{const d=f.default;return{messages:(d==null?void 0:d.$$type)==="@backstage/TranslationMessages"?d.messages:d}})}))}}},70835:function(Z,T,t){"use strict";t.d(T,{o:function(){return C}});var o=t(18990),i=t(59750);async function u(m){try{const d=await m.text();if(d){var f;if(!((f=m.headers.get("content-type"))===null||f===void 0)&&f.startsWith("application/json"))try{const c=JSON.parse(d);if(c.error&&c.response)return c}catch{}return{error:{name:"Error",message:`Request failed with status ${m.status} ${m.statusText}, ${d}`},response:{statusCode:m.status}}}}catch{}return{error:{name:"Error",message:`Request failed with status ${m.status} ${m.statusText}`},response:{statusCode:m.status}}}class C extends Error{static async fromResponse(f){const d=await u(f),c=d.response.statusCode||f.status,y=d.error.name||f.statusText,A=`Request failed with ${c} ${y}`,w=(0,i.cy)(d.error);return new C({message:A,response:f,data:d,cause:w})}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}}},93007:function(Z,T,t){"use strict";t.d(T,{b:function(){return o}});function o(u){if(typeof u!="object"||u===null||Array.isArray(u))return!1;const C=u;return!(typeof C.name!="string"||C.name===""||typeof C.message!="string")}function i(u){if(typeof u!="object"||u===null||Array.isArray(u))throw new Error(`Encountered invalid error, not an object, got '${u}'`);const C=u;if(typeof C.name!="string"||C.name==="")throw new Error(`Encountered error object without a name, got '${u}'`);if(typeof C.message!="string")throw new Error(`Encountered error object without a message, got '${u}'`)}},97142:function(Z,T,t){"use strict";t.d(T,{m_:function(){return c},EH:function(){return w}});var o=t(18990),i=t(93007),u=t(59750);class C extends Error{constructor(I,P){var E,D;let j=I;if(P!==void 0){const b=(0,u.M5)(P);j?j+=`; caused by ${b}`:j=`caused by ${b}`}super(j),(0,o._)(this,"cause",void 0),(E=(D=Error).captureStackTrace)===null||E===void 0||E.call(D,this,this.constructor),(!this.name||this.name==="Error")&&this.constructor.name!=="Error"&&(this.name=this.constructor.name),this.cause=(0,i.b)(P)?P:void 0}}class m extends C{constructor(...I){super(...I),(0,o._)(this,"name","InputError")}}class f extends C{constructor(...I){super(...I),(0,o._)(this,"name","AuthenticationError")}}class d extends C{constructor(...I){super(...I),(0,o._)(this,"name","NotAllowedError")}}class c extends C{constructor(...I){super(...I),(0,o._)(this,"name","NotFoundError")}}class y extends C{constructor(...I){super(...I),(0,o._)(this,"name","ConflictError")}}class A extends C{constructor(...I){super(...I),(0,o._)(this,"name","NotModifiedError")}}class w extends C{constructor(...I){super(...I),(0,o._)(this,"name","NotImplementedError")}}class v extends null{}class O extends C{constructor(I,P){super(I,P),this.name=(0,i.b)(P)?P.name:"Error"}}},59750:function(Z,T,t){"use strict";t.d(T,{M5:function(){return f},cy:function(){return m}});var o=t(69655),i=t.n(o),u=t(93007);function C(d,c){const A={name:"Unknown",message:"<no reason given>",...serializeErrorInternal(d)};return c!=null&&c.includeStack||delete A.stack,A}function m(d){const c=(0,o.deserializeError)(d);return d.stack||(c.stack=void 0),c}function f(d){if((0,u.b)(d)){const c=String(d);return c!=="[object Object]"?c:`${d.name}: ${d.message}`}return`unknown error '${d}'`}},43320:function(Z,T,t){"use strict";t.d(T,{L:function(){return ke},Y:function(){return He}});var o=t(18990),i=t(59869);const u="amazonaws.com";function C(M){var p;const B=M.getOptionalString("endpoint");var F;const gt=(F=M.getOptionalBoolean("s3ForcePathStyle"))!==null&&F!==void 0?F:!1;let et,Tt;if(B){try{const ve=new URL(B);et=ve.host,Tt=ve.pathname}catch{throw new Error(`invalid awsS3 integration config, endpoint '${B}' is not a valid URL`)}if(Tt!=="/")throw new Error(`invalid awsS3 integration config, endpoints cannot contain path, got '${B}'`)}else et=u;const _t=M.getOptionalString("accessKeyId"),te=(p=M.getOptionalString("secretAccessKey"))===null||p===void 0?void 0:p.trim(),ge=M.getOptionalString("roleArn"),pe=M.getOptionalString("externalId");return{host:et,endpoint:B,s3ForcePathStyle:gt,accessKeyId:_t,secretAccessKey:te,roleArn:ge,externalId:pe}}function m(M){const p=M.map(C);return p.some(B=>B.host===u)||p.push({host:u}),p}class f{get type(){return"awsS3"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(p){return(0,i.ku)(p)}resolveEditUrl(p){return p}constructor(p){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=p}}(0,o._)(f,"factory",({config:M})=>{var p;const B=m((p=M.getOptionalConfigArray("integrations.awsS3"))!==null&&p!==void 0?p:[]);return(0,i.oS)(B.map(F=>new f(F)),F=>F.config.host)});var d=t(96324),c=t(87081),y=t(33284);const A="GB";var w=new WeakMap,v=new WeakMap,O=new WeakMap,g=new WeakMap,I=new WeakMap,P=new WeakMap,E=new WeakMap;class D{static fromRepoUrl(p){const B=new URL(p);let F,gt,et;const Tt=B.pathname.split("/").map(ve=>decodeURIComponent(ve));if(Tt[2]==="_git"?(F=Tt[1],gt=et=Tt[3]):Tt[3]==="_git"?(F=Tt[1],gt=Tt[2],et=Tt[4]):Tt[4]==="_git"&&(F=`${Tt[1]}/${Tt[2]}`,gt=Tt[3],et=Tt[5]),!F||!gt||!et)throw new Error("Azure URL must point to a git repository");var _t;const te=(_t=B.searchParams.get("path"))!==null&&_t!==void 0?_t:void 0;let ge;const pe=B.searchParams.get("version");if(pe){if(pe.slice(0,2)!=="GB")throw new Error("Azure URL version must point to a git branch");ge=pe.slice(2)}return new D(B.origin,F,gt,et,te,ge)}toRepoUrl(){let p;return(0,d._)(this,O)===(0,d._)(this,g)?p=(0,d._)(this,E).call(this,(0,d._)(this,v),"_git",(0,d._)(this,g)):p=(0,d._)(this,E).call(this,(0,d._)(this,v),(0,d._)(this,O),"_git",(0,d._)(this,g)),(0,d._)(this,I)&&p.searchParams.set("path",(0,d._)(this,I)),(0,d._)(this,P)&&p.searchParams.set("version",A+(0,d._)(this,P)),p.toString()}toFileUrl(){if(!(0,d._)(this,I))throw new Error("Azure URL must point to a specific path to be able to download a file");const p=(0,d._)(this,E).call(this,(0,d._)(this,v),(0,d._)(this,O),"_apis","git","repositories",(0,d._)(this,g),"items");return p.searchParams.set("api-version","6.0"),p.searchParams.set("path",(0,d._)(this,I)),(0,d._)(this,P)&&p.searchParams.set("version",(0,d._)(this,P)),p.toString()}toArchiveUrl(){const p=(0,d._)(this,E).call(this,(0,d._)(this,v),(0,d._)(this,O),"_apis","git","repositories",(0,d._)(this,g),"items");return p.searchParams.set("recursionLevel","full"),p.searchParams.set("download","true"),p.searchParams.set("api-version","6.0"),(0,d._)(this,I)&&p.searchParams.set("scopePath",(0,d._)(this,I)),(0,d._)(this,P)&&p.searchParams.set("version",(0,d._)(this,P)),p.toString()}toCommitsUrl(){const p=(0,d._)(this,E).call(this,(0,d._)(this,v),(0,d._)(this,O),"_apis","git","repositories",(0,d._)(this,g),"commits");return p.searchParams.set("api-version","6.0"),(0,d._)(this,P)&&p.searchParams.set("searchCriteria.itemVersion.version",(0,d._)(this,P)),p.toString()}getOwner(){return(0,d._)(this,v)}getProject(){return(0,d._)(this,O)}getRepo(){return(0,d._)(this,g)}getPath(){return(0,d._)(this,I)}getRef(){return(0,d._)(this,P)}constructor(p,B,F,gt,et,Tt){(0,c._)(this,w,{writable:!0,value:void 0}),(0,c._)(this,v,{writable:!0,value:void 0}),(0,c._)(this,O,{writable:!0,value:void 0}),(0,c._)(this,g,{writable:!0,value:void 0}),(0,c._)(this,I,{writable:!0,value:void 0}),(0,c._)(this,P,{writable:!0,value:void 0}),(0,c._)(this,E,{writable:!0,value:(..._t)=>{const te=new URL((0,d._)(this,w));return te.pathname=_t.map(ge=>encodeURIComponent(ge)).join("/"),te}}),(0,y._)(this,w,p),(0,y._)(this,v,B),(0,y._)(this,O,F),(0,y._)(this,g,gt),(0,y._)(this,I,et),(0,y._)(this,P,Tt)}}const j="dev.azure.com",b=["clientId","clientSecret","tenantId","personalAccessToken"],V=new Map([["ClientSecret",["clientId","clientSecret","tenantId"]],["ManagedIdentity",["clientId"]],["PersonalAccessToken",["personalAccessToken"]]]);function Y(M){for(const p of V.entries()){const[B,F]=p,gt=b.filter(et=>!F.includes(et));if(F.every(et=>M[et]!==void 0)&&gt.every(et=>M[et]===void 0))return{kind:B,organizations:M.organizations,...F.reduce((et,Tt)=>(et[Tt]=M[Tt],et),{})}}throw new Error("is not a valid credential")}function tt(M){var p,B,F;const gt=(F=M.getOptionalString("host"))!==null&&F!==void 0?F:j;let et=(p=M.getOptionalConfigArray("credentials"))===null||p===void 0?void 0:p.map(de=>{var Yt,we;return{organizations:de.getOptionalStringArray("organizations"),personalAccessToken:(Yt=de.getOptionalString("personalAccessToken"))===null||Yt===void 0?void 0:Yt.trim(),tenantId:de.getOptionalString("tenantId"),clientId:de.getOptionalString("clientId"),clientSecret:(we=de.getOptionalString("clientSecret"))===null||we===void 0?void 0:we.trim()}});const Tt=(B=M.getOptionalString("token"))===null||B===void 0?void 0:B.trim();if(M.getOptional("credential")!==void 0&&M.getOptional("credentials")!==void 0)throw new Error("Invalid Azure integration config, 'credential' and 'credentials' cannot be used together. Use 'credentials' instead.");if(M.getOptional("token")!==void 0&&M.getOptional("credentials")!==void 0)throw new Error("Invalid Azure integration config, 'token' and 'credentials' cannot be used together. Use 'credentials' instead.");if(Tt!==void 0){const de=[{personalAccessToken:Tt}];var _t;et=(_t=et==null?void 0:et.concat(de))!==null&&_t!==void 0?_t:de}if(M.getOptional("credential")!==void 0){var te,ge;const de=[{organizations:M.getOptionalStringArray("credential.organizations"),token:(te=M.getOptionalString("credential.token"))===null||te===void 0?void 0:te.trim(),tenantId:M.getOptionalString("credential.tenantId"),clientId:M.getOptionalString("credential.clientId"),clientSecret:(ge=M.getOptionalString("credential.clientSecret"))===null||ge===void 0?void 0:ge.trim()}];var pe;et=(pe=et==null?void 0:et.concat(de))!==null&&pe!==void 0?pe:de}if(!(0,i.HO)(gt))throw new Error(`Invalid Azure integration config, '${gt}' is not a valid host`);let ve;if(et!==void 0){const de=et==null?void 0:et.reduce((Yt,we,je)=>{let kt;try{Y(we)}catch(ne){kt=ne.message}return kt!==void 0&&Yt.push(`credential at position ${je+1} ${kt}`),Yt},Array.of()).concat(Object.entries(et.filter(Yt=>Yt.organizations!==void 0&&Yt.organizations.length>0).reduce((Yt,we,je)=>{var kt;return(kt=we.organizations)===null||kt===void 0||kt.forEach(ne=>{Yt[ne]||(Yt[ne]=[]),Yt[ne].push(je+1)}),Yt},{})).filter(([Yt,we])=>we.length>1).reduce((Yt,[we,je])=>(Yt.push(`organization ${we} is specified multiple times in credentials at positions ${je.slice(0,je.length-1).join(", ")} and ${je[je.length-1]}`),Yt),Array.of()));if((de==null?void 0:de.length)>0)throw new Error(`Invalid Azure integration config for ${gt}: ${de.join("; ")}`);if(ve=et.map(Yt=>Y(Yt)),ve.some(Yt=>Yt.kind!=="PersonalAccessToken")&&gt!==j)throw new Error(`Invalid Azure integration config for ${gt}, only personal access tokens can be used with hosts other than ${j}`);if(ve.filter(Yt=>Yt.organizations===void 0||Yt.organizations.length===0).length>1)throw new Error(`Invalid Azure integration config for ${gt}, you cannot specify multiple credentials without organizations`)}return{host:gt,credentials:ve}}function z(M){const p=M.map(tt);return p.some(B=>B.host===j)||p.push({host:j}),p}class W{get type(){return"azure"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(p){const{url:B,base:F}=p;if((0,i.AY)(B))return B;try{const et=D.fromRepoUrl(F),Tt=new URL(F);var gt;const _t=new URL(`https://a.com${(gt=et.getPath())!==null&&gt!==void 0?gt:""}`),te=new URL(B,_t).pathname;return Tt.searchParams.set("path",te),p.lineNumber&&(Tt.searchParams.set("line",String(p.lineNumber)),Tt.searchParams.set("lineEnd",String(p.lineNumber+1)),Tt.searchParams.set("lineStartColumn","1"),Tt.searchParams.set("lineEndColumn","1")),Tt.toString()}catch{return new URL(B,F).toString()}}resolveEditUrl(p){return p}constructor(p){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=p}}(0,o._)(W,"factory",({config:M})=>{var p;const B=z((p=M.getOptionalConfigArray("integrations.azure"))!==null&&p!==void 0?p:[]);return(0,i.oS)(B.map(F=>new W(F)),F=>F.config.host)});var k=t(52536),J=t.n(k);const nt="bitbucket.org",it="https://api.bitbucket.org/2.0";function mt(M){var p;const B=nt,F=it,gt=M.getString("username"),et=(p=M.getString("appPassword"))===null||p===void 0?void 0:p.trim();return{host:B,apiBaseUrl:F,username:gt,appPassword:et}}function ft(M){const p=M.map(mt);return p.length===0&&p.push({host:nt,apiBaseUrl:it}),p}class wt{get type(){return"bitbucketCloud"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(p){const B=(0,i.ku)(p);if(p.lineNumber){const F=new URL(B);return F.hash=`lines-${p.lineNumber}`,F.toString()}return B}resolveEditUrl(p){const B=J()(p),F=new URL(p);return F.searchParams.set("mode","edit"),F.searchParams.set("at",B.ref),F.toString()}constructor(p){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=p}}(0,o._)(wt,"factory",({config:M})=>{var p;const B=ft((p=M.getOptionalConfigArray("integrations.bitbucketCloud"))!==null&&p!==void 0?p:[]);return(0,i.oS)(B.map(F=>new wt(F)),F=>F.config.host)});var lt=t(45250);const At="bitbucket.org",at="https://api.bitbucket.org/2.0";function G(M){var p,B,F;const gt=(F=M.getOptionalString("host"))!==null&&F!==void 0?F:At;let et=M.getOptionalString("apiBaseUrl");const Tt=(p=M.getOptionalString("token"))===null||p===void 0?void 0:p.trim(),_t=M.getOptionalString("username"),te=(B=M.getOptionalString("appPassword"))===null||B===void 0?void 0:B.trim();if(!(0,i.HO)(gt))throw new Error(`Invalid Bitbucket integration config, '${gt}' is not a valid host`);return et?et=(0,lt.trimEnd)(et,"/"):gt===At?et=at:et=`https://${gt}/rest/api/1.0`,{host:gt,apiBaseUrl:et,token:Tt,username:_t,appPassword:te}}function rt(M){const p=M.map(G);return p.some(B=>B.host===At)||p.push({host:At,apiBaseUrl:at}),p}class xt{get type(){return"bitbucket"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(p){const B=(0,i.ku)(p);if(!p.lineNumber)return B;const F=new URL(B);return this.integrationConfig.host==="bitbucket.org"?F.hash=`lines-${p.lineNumber}`:F.hash=`${p.lineNumber}`,F.toString()}resolveEditUrl(p){const B=J()(p),F=new URL(p);return F.searchParams.set("mode","edit"),F.searchParams.set("spa","0"),F.searchParams.set("at",B.ref),F.toString()}constructor(p){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=p}}(0,o._)(xt,"factory",({config:M})=>{var p,B,F;const gt=rt((F=M.getOptionalConfigArray("integrations.bitbucket"))!==null&&F!==void 0?F:[...(p=M.getOptionalConfigArray("integrations.bitbucketCloud"))!==null&&p!==void 0?p:[],...(B=M.getOptionalConfigArray("integrations.bitbucketServer"))!==null&&B!==void 0?B:[]]);return(0,i.oS)(gt.map(et=>new xt(et)),et=>et.config.host)});function St(M){var p;const B=M.getString("host");let F=M.getOptionalString("apiBaseUrl");const gt=(p=M.getOptionalString("token"))===null||p===void 0?void 0:p.trim(),et=M.getOptionalString("username"),Tt=M.getOptionalString("password");if(!(0,i.HO)(B))throw new Error(`Invalid Bitbucket Server integration config, '${B}' is not a valid host`);return F?F=(0,lt.trimEnd)(F,"/"):F=`https://${B}/rest/api/1.0`,{host:B,apiBaseUrl:F,token:gt,username:et,password:Tt}}function Ct(M){return M.map(St)}class ut{get type(){return"bitbucketServer"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(p){const B=(0,i.ku)(p);if(p.lineNumber){const F=new URL(B);return F.hash=p.lineNumber.toString(),F.toString()}return B}resolveEditUrl(p){return p.includes("?")?p.substring(0,p.indexOf("?")):p}constructor(p){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=p}}(0,o._)(ut,"factory",({config:M})=>{var p;const B=Ct((p=M.getOptionalConfigArray("integrations.bitbucketServer"))!==null&&p!==void 0?p:[]);return(0,i.oS)(B.map(F=>new ut(F)),F=>F.config.host)});function ct(M){var p;const B=M.getString("host");let F=M.getOptionalString("baseUrl"),gt=M.getOptionalString("cloneUrl"),et=M.getOptionalString("gitilesBaseUrl");const Tt=M.getOptionalString("username"),_t=(p=M.getOptionalString("password"))===null||p===void 0?void 0:p.trim();if((0,i.HO)(B)){if(F&&!(0,i.AY)(F))throw new Error(`Invalid Gerrit integration config, '${F}' is not a valid baseUrl`);if(gt&&!(0,i.AY)(gt))throw new Error(`Invalid Gerrit integration config, '${gt}' is not a valid cloneUrl`);if(et&&!(0,i.AY)(et))throw new Error(`Invalid Gerrit integration config, '${et}' is not a valid gitilesBaseUrl`)}else throw new Error(`Invalid Gerrit integration config, '${B}' is not a valid host`);return F?F=(0,lt.trimEnd)(F,"/"):F=`https://${B}`,et?et=(0,lt.trimEnd)(et,"/"):et=`https://${B}`,gt?gt=(0,lt.trimEnd)(gt,"/"):gt=F,{host:B,baseUrl:F,cloneUrl:gt,gitilesBaseUrl:et,username:Tt,password:_t}}function pt(M){return M.map(ct)}var H=t(1048).hp;const K=")]}'";function q(M,p){const B=new URL(M.gitilesBaseUrl),F=new URL(p),et=F.pathname.substring(F.pathname.startsWith("/a/")?2:0).replace(B.pathname,"").split("/").filter(ve=>!!ve),Tt=et.indexOf("+");if(Tt<=0)throw new Error(`Unable to parse project from url: ${p}`);const _t=(0,lt.trimStart)(et.slice(0,Tt).join("/"),"/"),te=et.indexOf("heads");if(te<=0)throw new Error(`Unable to parse branch from url: ${p}`);const ge=et[te+1],pe=et.slice(te+2).join("/");return{branch:ge,filePath:pe===""?"/":pe,project:_t}}function st(M,p,B,F){return`${M.gitilesBaseUrl}/${p}/+/refs/heads/${B}/${(0,lt.trimStart)(F,"/")}`}function Et(M,p,B,F){const gt=F==="/"||F===""?".tar.gz":`/${F}.tar.gz`;return`${jt(M)}/${p}/+archive/refs/heads/${B}${gt}`}function vt(M){return M.password?"/a/":"/"}function jt(M){if(!M.baseUrl||!M.gitilesBaseUrl)throw new Error("Unexpected Gerrit config values. baseUrl or gitilesBaseUrl not set.");if(M.gitilesBaseUrl.startsWith(M.baseUrl))return M.gitilesBaseUrl.replace(M.baseUrl.concat("/"),M.baseUrl.concat(vt(M)));if(M.password)throw new Error("Since the baseUrl (Gerrit) is not part of the gitilesBaseUrl, an authentication URL could not be constructed.");return M.gitilesBaseUrl}function Kt(M,p){const{branch:B,project:F}=q(M,p);return`${M.baseUrl}${vt(M)}projects/${encodeURIComponent(F)}/branches/${B}`}function Bt(M,p){const{project:B}=q(M,p);return`${M.cloneUrl}${vt(M)}${B}`}function $t(M,p){const{branch:B,filePath:F,project:gt}=q(M,p);return`${M.baseUrl}${vt(M)}projects/${encodeURIComponent(gt)}/branches/${B}/files/${encodeURIComponent(F)}/content`}function Dt(M){return`${M.baseUrl}${vt(M)}projects/`}function Gt(M){const p={};if(!M.password)return p;const B=H.from(`${M.username}:${M.password}`,"utf8");return p.Authorization=`Basic ${B.toString("base64")}`,{headers:p}}async function De(M){const p=await M.text();if(p.startsWith(K))try{return JSON.parse(p.slice(K.length))}catch(B){throw new Error(`Invalid response from Gerrit: ${p.slice(0,10)} - ${B}`)}throw new Error(`Gerrit JSON body prefix missing. Found: ${p.slice(0,10)}`)}class fe{get type(){return"gerrit"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(p){const{url:B,base:F,lineNumber:gt}=p;let et;if(B.startsWith("/")){const{branch:Tt,project:_t}=q(this.config,F);return st(this.config,_t,Tt,B)}return B?et=new URL(B,F):et=new URL(F),gt&&(et.hash=gt.toString()),et.toString()}resolveEditUrl(p){return p}constructor(p){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=p}}(0,o._)(fe,"factory",({config:M})=>{var p;const B=pt((p=M.getOptionalConfigArray("integrations.gerrit"))!==null&&p!==void 0?p:[]);return(0,i.oS)(B.map(F=>new fe(F)),F=>F.config.host)});var se=t(36021);const Xt="gitlab.com",Mt="https://gitlab.com/api/v4";function Vt(M){var p;const B=M.getString("host");let F=M.getOptionalString("apiBaseUrl");const gt=(p=M.getOptionalString("token"))===null||p===void 0?void 0:p.trim();let et=M.getOptionalString("baseUrl");if(F?F=(0,lt.trimEnd)(F,"/"):B===Xt&&(F=Mt),et?et=(0,lt.trimEnd)(et,"/"):et=`https://${B}`,(0,i.HO)(B)){if(!F||!(0,i.AY)(F))throw new Error(`Invalid GitLab integration config, '${F}' is not a valid apiBaseUrl`);if(!(0,i.AY)(et))throw new Error(`Invalid GitLab integration config, '${et}' is not a valid baseUrl`)}else throw new Error(`Invalid GitLab integration config, '${B}' is not a valid host`);return{host:B,token:gt,apiBaseUrl:F,baseUrl:et}}function be(M){const p=M.map(Vt);return p.some(B=>B.host===Xt)||p.push({host:Xt,apiBaseUrl:Mt,baseUrl:`https://${Xt}`}),p}function Ve(M){let p="";return M.host!==Xt&&(p=new URL(M.baseUrl).pathname),trimEnd(p,"/")}class Ae{get type(){return"gitlab"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(p){return(0,i.ku)(p)}resolveEditUrl(p){return on(p,"edit")}constructor(p){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=p}}(0,o._)(Ae,"factory",({config:M})=>{var p;const B=be((p=M.getOptionalConfigArray("integrations.gitlab"))!==null&&p!==void 0?p:[]);return(0,i.oS)(B.map(F=>new Ae(F)),F=>F.config.host)});function on(M,p){return M.replace(/\/\-\/(blob|tree|edit)\//,`/-/${p}/`)}function Xe(M){var p;const B=M.getString("host");let F=M.getOptionalString("baseUrl");const gt=M.getOptionalString("username"),et=(p=M.getOptionalString("password"))===null||p===void 0?void 0:p.trim();if((0,i.HO)(B)){if(F&&!(0,i.AY)(F))throw new Error(`Invalid Gitea integration config, '${F}' is not a valid baseUrl`)}else throw new Error(`Invalid Gitea integration config, '${B}' is not a valid host`);return F?F=(0,lt.trimEnd)(F,"/"):F=`https://${B}`,{host:B,baseUrl:F,username:gt,password:et}}var _e=t(1048).hp;function Ge(M,p){const B=Ue(M,p);return`${B.url}/${B.owner}/${B.name}/_edit/${B.ref}/${B.path}`}function le(M,p){const B=Ue(M,p);return`${B.url}/api/v1/repos/${B.owner}/${B.name}/contents/${B.path}?ref=${B.ref}`}function ze(M,p){const B=Ue(M,p);return`${B.url}/api/v1/repos/${B.owner}/${B.name}/archive/${B.ref}.tar.gz`}function We(M,p){const B=Ue(M,p);return`${B.url}/api/v1/repos/${B.owner}/${B.name}/git/commits/${B.ref}`}function cn(M){const p={},{username:B,password:F}=M;return F?(B?p.Authorization=`basic ${_e.from(`${B}:${F}`).toString("base64")}`:p.Authorization=`token ${F}`,{headers:p}):p}function Ue(M,p){var B;const F=(B=M.baseUrl)!==null&&B!==void 0?B:`https://${M.host}`;try{const[gt,et,Tt,_t,te,ge,...pe]=p.replace(F,"").split("/"),ve=pe.join("/").replace(/^\//,"");return{url:F,owner:et,name:Tt,ref:ge,path:ve}}catch(gt){throw new Error(`Incorrect URL: ${p}, ${gt}`)}}class ce{get type(){return"gitea"}get title(){return this.config.host}resolveUrl(p){return(0,i.ku)(p)}resolveEditUrl(p){return Ge(this.config,p)}constructor(p){(0,o._)(this,"config",void 0),this.config=p}}(0,o._)(ce,"factory",({config:M})=>{var p;const F=((p=M.getOptionalConfigArray("integrations.gitea"))!==null&&p!==void 0?p:[]).map(gt=>Xe(gt));return(0,i.oS)(F.map(gt=>new ce(gt)),gt=>gt.config.host)});class Ye{static fromConfig(p){return new Ye({awsS3:f.factory({config:p}),azure:W.factory({config:p}),bitbucket:xt.factory({config:p}),bitbucketCloud:wt.factory({config:p}),bitbucketServer:ut.factory({config:p}),gerrit:fe.factory({config:p}),github:se.U.factory({config:p}),gitlab:Ae.factory({config:p}),gitea:ce.factory({config:p})})}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(p=>p.list())}byUrl(p){let B=Object.values(this.byType).map(F=>F.byUrl(p)).filter(Boolean);if(B.length>1){const F=B.filter(gt=>!(gt instanceof xt));F.length!==0&&(B=F)}return B[0]}byHost(p){return Object.values(this.byType).map(B=>B.byHost(p)).find(Boolean)}resolveUrl(p){const B=this.byUrl(p.base);return B?B.resolveUrl(p):(0,i.ku)(p)}resolveEditUrl(p){const B=this.byUrl(p);return B?B.resolveEditUrl(p):p}constructor(p){(0,o._)(this,"byType",void 0),this.byType=p}}var Oe=t(55309);class ke{static fromConfig(p){return Ye.fromConfig(p)}}const He=(0,Oe.y)({id:"integration.scmintegrations"})},36021:function(Z,T,t){"use strict";t.d(T,{U:function(){return y},F:function(){return A}});var o=t(18990),i=t(59869),u=t(45250);const C="github.com",m="https://api.github.com",f="https://raw.githubusercontent.com";function d(w){var v,O,g;const I=(g=w.getOptionalString("host"))!==null&&g!==void 0?g:C;let P=w.getOptionalString("apiBaseUrl"),E=w.getOptionalString("rawBaseUrl");const D=(v=w.getOptionalString("token"))===null||v===void 0?void 0:v.trim(),j=(O=w.getOptionalConfigArray("apps"))===null||O===void 0?void 0:O.map(b=>({appId:b.getNumber("appId"),clientId:b.getString("clientId"),clientSecret:b.getString("clientSecret"),webhookSecret:b.getString("webhookSecret"),privateKey:b.getString("privateKey"),allowedInstallationOwners:b.getOptionalStringArray("allowedInstallationOwners")}));if(!(0,i.HO)(I))throw new Error(`Invalid GitHub integration config, '${I}' is not a valid host`);return P?P=(0,u.trimEnd)(P,"/"):I===C&&(P=m),E?E=(0,u.trimEnd)(E,"/"):I===C&&(E=f),{host:I,apiBaseUrl:P,rawBaseUrl:E,token:D,apps:j}}function c(w){const v=w.map(d);return v.some(O=>O.host===C)||v.push({host:C,apiBaseUrl:m,rawBaseUrl:f}),v}class y{get type(){return"github"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(v){return A((0,i.ku)(v),"tree")}resolveEditUrl(v){return A(v,"edit")}parseRateLimitInfo(v){return{isRateLimited:v.status===429||v.status===403&&v.headers.get("x-ratelimit-remaining")==="0"}}constructor(v){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=v}}(0,o._)(y,"factory",({config:w})=>{var v;const O=c((v=w.getOptionalConfigArray("integrations.github"))!==null&&v!==void 0?v:[]);return(0,i.oS)(O.map(g=>new y(g)),g=>g.config.host)});function A(w,v){return w.replace(/\/\/([^/]+)\/([^/]+)\/([^/]+)\/(blob|tree|edit)\//,(O,g,I,P)=>`//${g}/${I}/${P}/${v}/`)}},59869:function(Z,T,t){"use strict";t.d(T,{AY:function(){return f},HO:function(){return m},ku:function(){return c},oS:function(){return d}});var o=t(52536),i=t.n(o),u=t(45250),C=t.n(u);function m(A){const w=new URL("http://example.com");return w.host=A,w.host===A}function f(A){try{return new URL(A),!0}catch{return!1}}function d(A,w){return{list(){return A},byUrl(v){try{const O=typeof v=="string"?new URL(v):v;return A.find(g=>w(g)===O.host)}catch{return}},byHost(v){return A.find(O=>w(O)===v)}}}function c(A){const{url:w,base:v,lineNumber:O}=A;try{return new URL(w),w}catch{}let g;if(w.startsWith("/")){const{filepath:I}=i()(v);g=new URL(v);const P=(0,u.trimEnd)(g.pathname.substring(0,g.pathname.length-I.length),"/");g.pathname=`${P}${w}`}else g=new URL(w,v);return g.search=new URL(v).search,O&&(g.hash=`L${O}`),g.toString()}function y(A){beforeAll(()=>A.listen({onUnhandledRequest:"error"})),afterAll(()=>A.close()),afterEach(()=>A.resetHandlers())}},56041:function(Z,T,t){"use strict";var o={};t.r(o),t.d(o,{TechDocsPlugin:function(){return f.Ju}});var i=t(31085),u=t(14041),C=t(25873),m=t(18690),f=t(39278),d=t(85920),c=t(72020),y=t(99730),A=t(64947),w=t(12173),v=t(22020),O=t(68146),g=t(73970);function I({children:r}){return(0,m.Ri)()?(0,i.jsx)(i.Fragment,{children:r}):(0,i.jsx)(m.fS,{children:r})}const P=()=>(0,i.jsx)(w.M,{status:"404",statusMessage:"PAGE NOT FOUND"}),E=({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)(w.M,{statusMessage:n,stack:e.stack})})},D=({error:r,resetError:e,plugin:n})=>(0,i.jsx)(v.b,{title:`Error in ${n==null?void 0:n.getId()}`,defaultExpanded:!0,error:r,children:(0,i.jsx)(A.A,{variant:"outlined",onClick:e,children:"Retry"})}),j={Progress:O.k,Router:g.Kd,NotFoundErrorPage:P,BootErrorPage:E,ErrorBoundaryFallback:D};var b=t(18990);const V="Invalid discovery URL pattern,";class Y{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(`${V} URL '${s}' is invalid`)}if(a.hash)throw new Error(`${V} URL must not have a hash`);if(a.search)throw new Error(`${V} URL must not have a query`);if(s.endsWith("/"))throw new Error(`${V} URL must not end with a slash`);return new Y(n)}async getBaseUrl(e){return this.parts.join(encodeURIComponent(e))}constructor(e){(0,b._)(this,"parts",void 0),this.parts=e}}var tt=t(96403),z=t.n(tt);let W=Symbol.observable;class k{[W](){return this}get closed(){return this.isClosed}next(e){if(this.isClosed)throw new Error("PublishSubject is closed");this.subscribers.forEach(n=>n.next(e))}error(e){if(this.isClosed)throw new Error("PublishSubject is closed");this.isClosed=!0,this.terminatingError=e,this.subscribers.forEach(n=>n.error(e))}complete(){if(this.isClosed)throw new Error("PublishSubject is closed");this.isClosed=!0,this.subscribers.forEach(e=>e.complete())}subscribe(e,n,s){const a=typeof e=="function"?{next:e,error:n,complete:s}:e;return this.observable.subscribe(a)}constructor(){(0,b._)(this,"isClosed",!1),(0,b._)(this,"terminatingError",void 0),(0,b._)(this,"observable",new(z())(e=>this.isClosed?(this.terminatingError?e.error(this.terminatingError):e.complete(),()=>{}):(this.subscribers.add(e),()=>{this.subscribers.delete(e)}))),(0,b._)(this,"subscribers",new Set)}}let J=Symbol.observable;class nt{[J](){return this}get closed(){return this.isClosed}next(e){if(this.isClosed)throw new Error("BehaviorSubject is closed");this.currentValue=e,this.subscribers.forEach(n=>n.next(e))}error(e){if(this.isClosed)throw new Error("BehaviorSubject is closed");this.isClosed=!0,this.terminatingError=e,this.subscribers.forEach(n=>n.error(e))}complete(){if(this.isClosed)throw new Error("BehaviorSubject is closed");this.isClosed=!0,this.subscribers.forEach(e=>e.complete())}subscribe(e,n,s){const a=typeof e=="function"?{next:e,error:n,complete:s}:e;return this.observable.subscribe(a)}constructor(e){(0,b._)(this,"isClosed",void 0),(0,b._)(this,"currentValue",void 0),(0,b._)(this,"terminatingError",void 0),(0,b._)(this,"observable",void 0),(0,b._)(this,"subscribers",new Set),this.isClosed=!1,this.currentValue=e,this.terminatingError=void 0,this.observable=new(z())(n=>this.isClosed?(this.terminatingError?n.error(this.terminatingError):n.complete(),()=>{}):(n.next(this.currentValue),this.subscribers.add(n),()=>{this.subscribers.delete(n)}))}}class it{post(e){this.subject.next(e)}alert$(){return this.subject}constructor(){(0,b._)(this,"subject",new k)}}class mt{captureEvent(e){}}class ft{post(e,n){return n!=null&&n.hidden||this.alertApi.post({message:e.message,severity:"error"}),this.errorApi.post(e,n)}error$(){return this.errorApi.error$()}constructor(e,n){(0,b._)(this,"alertApi",void 0),(0,b._)(this,"errorApi",void 0),this.alertApi=e,this.errorApi=n}}class wt{post(e,n){this.subject.next({error:e,context:n})}error$(){return this.subject}constructor(){(0,b._)(this,"subject",new k)}}class lt{static forward(e,n){window.addEventListener("unhandledrejection",s=>{e.post(s.reason,n)})}}const At=new Map;class at{static create(e){var n;return new at((n=e.namespace)!==null&&n!==void 0?n:"",e.errorApi)}static addStorageEventListener(){window.addEventListener("storage",e=>{for(const[s,a]of At.entries()){var n;!((n=e.key)===null||n===void 0)&&n.startsWith(s)&&a.handleStorageChange(e.key)}})}get(e){return this.snapshot(e).value}snapshot(e){let n,s="absent";try{const a=localStorage.getItem(this.getKeyName(e));a&&(n=JSON.parse(a,(l,S)=>(typeof S=="object"&&S!==null&&Object.freeze(S),S)),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 At.has(n)||At.set(n,new at(n,this.errorApi)),At.get(n)}async set(e,n){localStorage.setItem(this.getKeyName(e),JSON.stringify(n)),this.notifyChanges(e)}async remove(e){localStorage.removeItem(this.getKeyName(e)),this.notifyChanges(e)}observe$(e){return at.hasSubscribed||(at.addStorageEventListener(),at.hasSubscribed=!0),this.observable.filter(({key:n})=>n===e)}handleStorageChange(e){if(!(e!=null&&e.startsWith(this.namespace)))return;const n=e==null?void 0:e.slice(`${this.namespace}/`.length);n.includes("/")||this.notifyChanges(decodeURIComponent(n))}getKeyName(e){return`${this.namespace}/${encodeURIComponent(e)}`}notifyChanges(e){const n=this.snapshot(e);for(const s of this.subscribers)s.next(n)}constructor(e,n){(0,b._)(this,"namespace",void 0),(0,b._)(this,"errorApi",void 0),(0,b._)(this,"subscribers",void 0),(0,b._)(this,"observable",void 0),this.namespace=e,this.errorApi=n,this.subscribers=new Set,this.observable=new(z())(s=>(this.subscribers.add(s),()=>{this.subscribers.delete(s)}))}}(0,b._)(at,"hasSubscribed",!1);function G(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 rt{static create(e){var n,s;const a=xt(e),l=((n=e.header)===null||n===void 0?void 0:n.name)||"authorization",S=((s=e.header)===null||s===void 0?void 0:s.value)||(x=>`Bearer ${x}`);return new rt(e.identityApi,a,l,S)}apply(e){return async(n,s)=>{const a=new Request(n,s),{token:l}=await this.identityApi.getCredentials();return a.headers.get(this.headerName)||typeof l!="string"||!l||!this.allowUrl(a.url)?e(n,s):(a.headers.set(this.headerName,this.headerValue(l)),e(a))}}constructor(e,n,s,a){(0,b._)(this,"identityApi",void 0),(0,b._)(this,"allowUrl",void 0),(0,b._)(this,"headerName",void 0),(0,b._)(this,"headerValue",void 0),this.identityApi=e,this.allowUrl=n,this.headerName=s,this.headerValue=a}}function xt(r){return r.allowUrl?r.allowUrl:r.urlPrefixAllowlist?St(r.urlPrefixAllowlist):r.config?St([r.config.getString("backend.baseUrl")]):()=>!1}function St(r){const e=r.map(n=>n.replace(/\/$/,""));return n=>e.some(s=>n===s||n.startsWith(`${s}/`))}function Ct(r,e){return!e||e==="/"?r:`${r.replace(/\/$/,"")}/${e.replace(/^\//,"")}`}class ut{apply(e){return async(n,s)=>{const a=new Request(n,s),l="plugin://";if(!a.url.startsWith(l))return e(n,s);const{hostname:S,pathname:x,search:L,hash:N,username:X,password:ot}=new URL(`http://${a.url.substring(l.length)}`);let ht=await this.discoveryApi.getBaseUrl(S);if(X||ot){const Ot=new URL(ht),Wt=`${X}${ot?`:${ot}`:""}@`;ht=`${Ot.protocol}//${Wt}${Ot.host}${Ot.pathname}`}const yt=`${Ct(ht,x)}${L}${N}`;return e(yt,typeof n=="string"||ct(n)?s:n)}}constructor(e){(0,b._)(this,"discoveryApi",void 0),this.discoveryApi=e}}function ct(r){return typeof r=="object"&&(r==null?void 0:r.constructor)===URL}class pt{static resolvePluginProtocol(e){return new ut(e.discoveryApi)}static injectIdentityAuth(e){return rt.create(e)}constructor(){}}function H(r,e){for(const n of e)if(!r.has(n))return!1;return!0}function K(r,...e){const n=new Set(r);for(const s of e)for(const a of s)n.add(a);return n}class q{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=>H(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)=>K(n,s.scopes),this.requests[0].scopes);return{scopes:e,resolve:n=>{e&&this.resolve(e,n)},reject:n=>{e&&this.reject(n)}}}constructor(){(0,b._)(this,"requests",[]),(0,b._)(this,"subject",new nt(this.getCurrentPending()))}}class st{createAuthRequester(e){const n=new q,s=this.handlerCount;return this.handlerCount++,n.pending().subscribe({next:a=>{const l=this.currentRequests.slice(),S=this.makeAuthRequest(a,e);S?l[s]=S:delete l[s],this.currentRequests=l,this.subject.next(l.filter(Boolean))}}),a=>n.request(a)}makeAuthRequest(e,n){const{scopes:s}=e;if(s)return{provider:n.provider,trigger:async()=>{const a=await n.onAuthRequest(s);e.resolve(a)},reject:()=>{const a=new Error("Login failed, rejected by user");a.name="RejectedError",e.reject(a)}}}authRequest$(){return this.subject}constructor(){(0,b._)(this,"subject",new nt([])),(0,b._)(this,"currentRequests",[]),(0,b._)(this,"handlerCount",0)}}function Et(r){return new Promise((e,n)=>{const s=r.width||500,a=r.height||700,l=window.screen.width/2-s/2,S=window.screen.height/2-a/2,x=window.open(r.url,r.name,`menubar=no,location=no,resizable=no,scrollbars=no,status=no,width=${s},height=${a},top=${S},left=${l}`);let L="";if(!x||typeof x.closed=="undefined"||x.closed){const ht=new Error("Failed to open auth popup.");ht.name="PopupRejectedError",n(ht);return}const N=ht=>{if(ht.source!==x||ht.origin!==r.origin)return;const{data:yt}=ht;if(yt.type==="config_info"){L=yt.targetOrigin;return}if(yt.type!=="authorization_response")return;const Ot=yt;if("error"in Ot){const Wt=new Error(Ot.error.message);Wt.name=Ot.error.name,n(Wt)}else e(Ot.response);ot()},X=setInterval(()=>{if(x.closed){const ht=`Login failed, ${L&&L!==window.location.origin?`Incorrect app origin, expected ${L}`:"popup was closed"}`,yt=new Error(ht);yt.name="PopupClosedError",n(yt),ot()}},100);function ot(){window.removeEventListener("message",N),clearInterval(X)}window.addEventListener("message",N)})}let vt=!1;function jt(r){return[...r].join(" ")}class Kt{async createSession(e){return e.instantPopup?this.enableExperimentalRedirectFlow?this.executeRedirect(e.scopes):this.showPopup(e.scopes):this.authRequester(e.scopes)}async refreshSession(e){const n=await fetch(await this.buildUrl("/refresh",{optional:!0,...e&&{scope:this.joinScopesFunc(e)}}),{headers:{"x-requested-with":"XMLHttpRequest"},credentials:"include"}).catch(a=>{throw new Error(`Auth refresh request failed, ${a}`)});if(!n.ok){const a=new Error(`Auth refresh request failed, ${n.statusText}`);throw a.status=n.status,a}const s=await n.json();if(s.error){const a=new Error(s.error.message);throw s.error.name&&(a.name=s.error.name),a}return await this.sessionTransform(s)}async removeSession(){const e=await fetch(await this.buildUrl("/logout"),{method:"POST",headers:{"x-requested-with":"XMLHttpRequest"},credentials:"include"}).catch(n=>{throw new Error(`Logout request failed, ${n}`)});if(!e.ok){const n=new Error(`Logout request failed, ${e.statusText}`);throw n.status=e.status,n}}async showPopup(e){var n,s,a,l,S,x,L,N;const X=this.joinScopesFunc(e),ot=await this.buildUrl("/start",{scope:X,origin:window.location.origin,flow:"popup"}),ht=!((s=this.popupOptions)===null||s===void 0||(n=s.size)===null||n===void 0)&&n.fullscreen?window.screen.width:((l=this.popupOptions)===null||l===void 0||(a=l.size)===null||a===void 0?void 0:a.width)||450,yt=!((x=this.popupOptions)===null||x===void 0||(S=x.size)===null||S===void 0)&&S.fullscreen?window.screen.height:((N=this.popupOptions)===null||N===void 0||(L=N.size)===null||L===void 0?void 0:L.height)||730,Ot=await Et({url:ot,name:`${this.provider.title} Login`,origin:new URL(ot).origin,width:ht,height:yt});return await this.sessionTransform(Ot)}async executeRedirect(e){const n=this.joinScopesFunc(e);return window.location.href=await this.buildUrl("/start",{scope:n,origin:window.location.origin,redirectUrl:window.location.href,flow:"redirect"}),new Promise(()=>{})}async buildUrl(e,n){const s=await this.discoveryApi.getBaseUrl("auth"),a=this.buildQueryString({...n,env:this.environment});return`${s}/${this.provider.id}${e}${a}`}buildQueryString(e){if(!e)return"";const n=Object.entries(e).map(([s,a])=>{if(typeof a=="string")return`${encodeURIComponent(s)}=${encodeURIComponent(a)}`;if(a)return encodeURIComponent(s)}).filter(Boolean).join("&");return n?`?${n}`:""}constructor(e){(0,b._)(this,"discoveryApi",void 0),(0,b._)(this,"environment",void 0),(0,b._)(this,"provider",void 0),(0,b._)(this,"joinScopesFunc",void 0),(0,b._)(this,"authRequester",void 0),(0,b._)(this,"sessionTransform",void 0),(0,b._)(this,"enableExperimentalRedirectFlow",void 0),(0,b._)(this,"popupOptions",void 0);const{configApi:n,discoveryApi:s,environment:a,provider:l,joinScopes:S=jt,oauthRequestApi:x,sessionTransform:L=ot=>ot,popupOptions:N}=e;!vt&&!n&&(console.warn("DEPRECATION WARNING: Authentication providers require a configApi instance to configure the authentication flow. Please provide one to the authentication provider constructor."),vt=!0);var X;this.enableExperimentalRedirectFlow=n&&(X=n.getOptionalBoolean("enableExperimentalRedirectFlow"))!==null&&X!==void 0?X:!1,this.authRequester=x.createAuthRequester({provider:l,onAuthRequest:async ot=>this.enableExperimentalRedirectFlow?this.executeRedirect(ot):this.showPopup(ot)}),this.discoveryApi=s,this.environment=a,this.provider=l,this.joinScopesFunc=S,this.sessionTransform=L,this.popupOptions=N}}function Bt(r,e){for(const n of e)if(!r.has(n))return!1;return!0}class $t{sessionExistsAndHasScope(e,n){if(!e)return!1;if(!n||this.options.sessionScopes===void 0)return!0;const s=this.options.sessionScopes(e);return Bt(s,n)}getExtendedScope(e,n){const s=new Set(this.options.defaultScopes);if(e&&this.options.sessionScopes!==void 0){const a=this.options.sessionScopes(e);for(const l of a)s.add(l)}if(n)for(const a of n)s.add(a);return s}constructor(e){(0,b._)(this,"options",void 0),this.options=e}}var Dt=t(55309),Gt;(function(r){r.SignedIn="SignedIn",r.SignedOut="SignedOut"})(Gt||(Gt={}));const De=(0,Dt.y)({id:"core.auth.google"}),fe=(0,Dt.y)({id:"core.auth.github"}),se=(0,Dt.y)({id:"core.auth.okta"}),Xt=(0,Dt.y)({id:"core.auth.gitlab"}),Mt=(0,Dt.y)({id:"core.auth.microsoft"}),Vt=(0,Dt.y)({id:"core.auth.onelogin"}),be=(0,Dt.y)({id:"core.auth.bitbucket"}),Ve=(0,Dt.y)({id:"core.auth.bitbucket-server"}),Ae=(0,Dt.y)({id:"core.auth.atlassian"}),on=(0,Dt.y)({id:"core.auth.vmware-cloud"});class Xe{setIsSignedIn(e){this.signedIn!==e&&(this.signedIn=e,this.subject.next(this.signedIn?Gt.SignedIn:Gt.SignedOut))}sessionState$(){return this.subject}constructor(){(0,b._)(this,"subject",new nt(Gt.SignedOut)),(0,b._)(this,"signedIn",!1)}}class _e{async getSession(e){if(this.helper.sessionExistsAndHasScope(this.currentSession,e.scopes)){if(!this.sessionShouldRefreshFunc(this.currentSession))return this.currentSession;try{const s=await this.collapsedSessionRefresh(e.scopes),a=this.sessionScopesFunc(this.currentSession),l=this.sessionScopesFunc(s);return Bt(l,a)&&(this.currentSession=s),s}catch(s){if(e.optional)return;throw s}}if(!this.currentSession&&!e.instantPopup)try{const n=await this.collapsedSessionRefresh(e.scopes);return this.currentSession=n,this.getSession(e)}catch{}if(!e.optional)return this.currentSession=await this.connector.createSession({...e,scopes:this.helper.getExtendedScope(this.currentSession,e.scopes)}),this.stateTracker.setIsSignedIn(!0),this.currentSession}async removeSession(){this.currentSession=void 0,await this.connector.removeSession(),this.stateTracker.setIsSignedIn(!1)}sessionState$(){return this.stateTracker.sessionState$()}async collapsedSessionRefresh(e){if(this.refreshPromise)return this.refreshPromise;this.refreshPromise=this.connector.refreshSession(this.helper.getExtendedScope(this.currentSession,e));try{const n=await this.refreshPromise;return this.stateTracker.setIsSignedIn(!0),n}finally{delete this.refreshPromise}}constructor(e){(0,b._)(this,"connector",void 0),(0,b._)(this,"helper",void 0),(0,b._)(this,"sessionScopesFunc",void 0),(0,b._)(this,"sessionShouldRefreshFunc",void 0),(0,b._)(this,"stateTracker",new Xe),(0,b._)(this,"refreshPromise",void 0),(0,b._)(this,"currentSession",void 0);const{connector:n,defaultScopes:s=new Set,sessionScopes:a,sessionShouldRefresh:l}=e;this.connector=n,this.sessionScopesFunc=a,this.sessionShouldRefreshFunc=l,this.helper=new $t({sessionScopes:a,defaultScopes:s})}}const Ge={id:"oauth2",title:"Your Identity Provider",icon:()=>null};class le{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:l=Ge,oauthRequestApi:S,defaultScopes:x=[],scopeTransform:L=ht=>ht,popupOptions:N}=e,X=new Kt({configApi:n,discoveryApi:s,environment:a,provider:l,oauthRequestApi:S,sessionTransform({backstageIdentity:ht,...yt}){const Ot={...yt,providerInfo:{idToken:yt.providerInfo.idToken,accessToken:yt.providerInfo.accessToken,scopes:le.normalizeScopes(L,yt.providerInfo.scope),expiresAt:yt.providerInfo.expiresInSeconds?new Date(Date.now()+yt.providerInfo.expiresInSeconds*1e3):void 0}};if(ht){var Wt;const Ht=(Wt=ht.expiresInSeconds)!==null&&Wt!==void 0?Wt:yt.providerInfo.expiresInSeconds;Ot.backstageIdentity={token:ht.token,identity:ht.identity,expiresAt:Ht?new Date(Date.now()+Ht*1e3):void 0}}return Ot},popupOptions:N}),ot=new _e({connector:X,defaultScopes:new Set(x),sessionScopes:ht=>ht.providerInfo.scopes,sessionShouldRefresh:ht=>{var yt,Ot;let Wt=1/0;return!((yt=ht.providerInfo)===null||yt===void 0)&&yt.expiresAt&&(Wt=Math.min(Wt,(ht.providerInfo.expiresAt.getTime()-Date.now())/1e3)),!((Ot=ht.backstageIdentity)===null||Ot===void 0)&&Ot.expiresAt&&(Wt=Math.min(Wt,(ht.backstageIdentity.expiresAt.getTime()-Date.now())/1e3)),Wt<60*5}});return new le({sessionManager:ot,scopeTransform:L})}async signIn(){await this.getAccessToken()}async signOut(){await this.sessionManager.removeSession()}sessionState$(){return this.sessionManager.sessionState$()}async getAccessToken(e,n){const s=le.normalizeScopes(this.scopeTransform,e),a=await this.sessionManager.getSession({...n,scopes:s});var l;return(l=a==null?void 0:a.providerInfo.accessToken)!==null&&l!==void 0?l:""}async getIdToken(e={}){const n=await this.sessionManager.getSession({...e,scopes:new Set(["openid"])});var s;return(s=n==null?void 0:n.providerInfo.idToken)!==null&&s!==void 0?s:""}async getBackstageIdentity(e={}){const n=await this.sessionManager.getSession(e);return n==null?void 0:n.backstageIdentity}async getProfile(e={}){const n=await this.sessionManager.getSession(e);return n==null?void 0:n.profile}static normalizeScopes(e,n){if(!n)return new Set;const s=Array.isArray(n)?n:n.split(/[\s|,]/).filter(Boolean);return new Set(e(s))}constructor(e){(0,b._)(this,"sessionManager",void 0),(0,b._)(this,"scopeTransform",void 0),this.sessionManager=e.sessionManager,this.scopeTransform=e.scopeTransform}}const ze={id:"google",title:"Google",icon:()=>null},We="https://www.googleapis.com/auth/";class cn{static create(e){const{configApi:n,discoveryApi:s,oauthRequestApi:a,environment:l="development",provider:S=ze,defaultScopes:x=["openid",`${We}userinfo.email`,`${We}userinfo.profile`]}=e;return le.create({configApi:n,discoveryApi:s,oauthRequestApi:a,provider:S,environment:l,defaultScopes:x,scopeTransform(L){return L.map(N=>N==="openid"?N:N==="profile"||N==="email"?`${We}userinfo.${N}`:N.startsWith(We)?N:`${We}${N}`)}})}}const Ue={id:"microsoft",title:"Microsoft",icon:()=>null};class ce{static create(e){return new ce(e)}microsoftGraph(){return this.oauth2[ce.MicrosoftGraphID]}static resourceForScopes(e){const n=[...new Set(e.split(" ").map(ce.resourceForScope).filter(l=>l!=="openid"))];if(n.length>1)return Promise.reject(new Error(`Requested access token with scopes from multiple Azure resources: ${n.join(", ")}. Access tokens can only have a single audience.`));var s;const a=(s=n[0])!==null&&s!==void 0?s:ce.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 ce.MicrosoftGraphID}}async getAccessToken(e,n){const s=e===void 0?ce.MicrosoftGraphID:await ce.resourceForScopes(Array.isArray(e)?e.join(" "):e);return s in this.oauth2||(this.oauth2[s]=le.create({configApi:this.configApi,discoveryApi:this.discoveryApi,oauthRequestApi:this.oauthRequestApi,provider:this.provider,environment:this.environment,scopeTransform:this.scopeTransform})),this.oauth2[s].getAccessToken(e,n)}getIdToken(e){return this.microsoftGraph().getIdToken(e)}getProfile(e){return this.microsoftGraph().getProfile(e)}getBackstageIdentity(e){return this.microsoftGraph().getBackstageIdentity(e)}signIn(){return this.microsoftGraph().signIn()}signOut(){return this.microsoftGraph().signOut()}sessionState$(){return this.microsoftGraph().sessionState$()}constructor(e){(0,b._)(this,"oauth2",void 0),(0,b._)(this,"configApi",void 0),(0,b._)(this,"environment",void 0),(0,b._)(this,"provider",void 0),(0,b._)(this,"oauthRequestApi",void 0),(0,b._)(this,"discoveryApi",void 0),(0,b._)(this,"scopeTransform",void 0);const{configApi:n,environment:s="development",provider:a=Ue,oauthRequestApi:l,discoveryApi:S,defaultScopes:x=["openid","offline_access","profile","email","User.Read"],scopeTransform:L=N=>N.concat("offline_access")}=e;this.configApi=n,this.environment=s,this.provider=a,this.oauthRequestApi=l,this.discoveryApi=S,this.scopeTransform=L,this.oauth2={[ce.MicrosoftGraphID]:le.create({configApi:this.configApi,discoveryApi:this.discoveryApi,oauthRequestApi:this.oauthRequestApi,provider:this.provider,environment:this.environment,scopeTransform:this.scopeTransform,defaultScopes:x})}}}(0,b._)(ce,"MicrosoftGraphID","00000003-0000-0000-c000-000000000000");const Ye={id:"github",title:"GitHub",icon:()=>null};class Oe{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:l=Ye,oauthRequestApi:S,defaultScopes:x=["read:user"]}=e;return le.create({configApi:n,discoveryApi:s,oauthRequestApi:S,provider:l,environment:a,defaultScopes:x})}}const ke={id:"okta",title:"Okta",icon:()=>null},He=new Set(["openid","profile","email","phone","address","groups","offline_access"]),M="okta.";class p{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:l=ke,oauthRequestApi:S,defaultScopes:x=["openid","email","profile","offline_access"]}=e;return le.create({configApi:n,discoveryApi:s,oauthRequestApi:S,provider:l,environment:a,defaultScopes:x,scopeTransform(L){return L.map(N=>He.has(N)||N.startsWith(M)?N:`${M}${N}`)}})}}const B={id:"gitlab",title:"GitLab",icon:()=>null};class F{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:l=B,oauthRequestApi:S,defaultScopes:x=["read_user"]}=e;return le.create({configApi:n,discoveryApi:s,oauthRequestApi:S,provider:l,environment:a,defaultScopes:x})}}const gt={id:"onelogin",title:"onelogin",icon:()=>null},et=new Set(["openid","profile","email","phone","address","groups","offline_access"]),Tt="onelogin.";class _t{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:l=gt,oauthRequestApi:S}=e;return le.create({configApi:n,discoveryApi:s,oauthRequestApi:S,provider:l,environment:a,defaultScopes:["openid","email","profile","offline_access"],scopeTransform(x){return x.map(L=>et.has(L)||L.startsWith(Tt)?L:`${Tt}${L}`)}})}}const te={id:"bitbucket",title:"Bitbucket",icon:()=>null};class ge{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:l=te,oauthRequestApi:S,defaultScopes:x=["account"]}=e;return le.create({configApi:n,discoveryApi:s,oauthRequestApi:S,provider:l,environment:a,defaultScopes:x})}}const pe={id:"bitbucketServer",title:"Bitbucket Server",icon:()=>null};class ve{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:l=pe,oauthRequestApi:S,defaultScopes:x=["PROJECT_ADMIN"]}=e;return le.create({configApi:n,discoveryApi:s,oauthRequestApi:S,provider:l,environment:a,defaultScopes:x})}}const de={id:"atlassian",title:"Atlassian",icon:()=>null};class Yt{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:l=de,oauthRequestApi:S}=e;return le.create({configApi:n,discoveryApi:s,oauthRequestApi:S,provider:l,environment:a})}}const we={id:"vmwareCloudServices",title:"VMware Cloud",icon:()=>null};class je{static create(e){const{configApi:n,discoveryApi:s,oauthRequestApi:a,environment:l="development",provider:S=we,defaultScopes:x=["openid"]}=e;return le.create({configApi:n,discoveryApi:s,oauthRequestApi:a,provider:S,environment:l,defaultScopes:x})}}var kt=t(12935),ne=t(57405),ie=t(65461),Nn=t(36017),Co=t(99303),Pe=t(39837);const Wn=(0,Dt.y)({id:"core.storage"});var kn=t(70795),rn=t(16009);const Me=(0,Dt.y)({id:"core.oauthrequest"});var So=t(96824),qe=t(70835),bo=t(10288),Kn=t.n(bo),Oo=t(12106),Qt=t(46195),tn=t(54241);const dn=Qt.z.lazy(()=>Qt.z.object({rule:Qt.z.string(),resourceType:Qt.z.string(),params:Qt.z.record(Qt.z.any()).optional()}).or(Qt.z.object({anyOf:Qt.z.array(dn).nonempty()})).or(Qt.z.object({allOf:Qt.z.array(dn).nonempty()})).or(Qt.z.object({not:dn}))),zn=Qt.z.object({result:Qt.z.literal(tn.b.ALLOW).or(Qt.z.literal(tn.b.DENY))}),wo=Qt.z.union([Qt.z.object({result:Qt.z.literal(tn.b.ALLOW).or(Qt.z.literal(tn.b.DENY))}),Qt.z.object({result:Qt.z.literal(tn.b.CONDITIONAL),pluginId:Qt.z.string(),resourceType:Qt.z.string(),conditions:dn})]),Po=(r,e)=>Qt.z.object({items:Qt.z.array(Qt.z.intersection(Qt.z.object({id:Qt.z.string()}),r)).refine(n=>n.length===e.size&&n.every(({id:s})=>e.has(s)),{message:"Items in response do not match request"})});class To{async authorize(e,n){return this.makeRequest(e,zn,n)}async authorizeConditional(e,n){return this.makeRequest(e,wo,n)}async makeRequest(e,n,s){if(!this.enabled)return e.map(X=>({result:tn.b.ALLOW}));const a={items:e.map(X=>({id:Oo.A(),...X}))},l=await this.discovery.getBaseUrl("permission"),S=await Kn()(`${l}/authorize`,{method:"POST",body:JSON.stringify(a),headers:{...this.getAuthorizationHeader(s==null?void 0:s.token),"content-type":"application/json"}});if(!S.ok)throw await qe.o.fromResponse(S);const x=await S.json(),N=Po(n,new Set(a.items.map(({id:X})=>X))).parse(x).items.reduce((X,ot)=>(X[ot.id]=ot,X),{});return a.items.map(X=>N[X.id])}getAuthorizationHeader(e){return e?{Authorization:`Bearer ${e}`}:{}}constructor(e){(0,b._)(this,"enabled",void 0),(0,b._)(this,"discovery",void 0),this.discovery=e.discovery;var n;this.enabled=(n=e.config.getOptionalBoolean("permission.enabled"))!==null&&n!==void 0?n:!1}}class An{static create(e){const{config:n,discovery:s,identity:a}=e,l=new To({discovery:s,config:n});return new An(l,a)}async authorize(e){return(await this.permissionClient.authorize([e],await this.identityApi.getCredentials()))[0]}constructor(e,n){(0,b._)(this,"permissionClient",void 0),(0,b._)(this,"identityApi",void 0),this.permissionClient=e,this.identityApi=n}}const Ro=[(0,kt.b)({api:ne.I,deps:{configApi:ie.U},factory:({configApi:r})=>Y.compile(`${r.getString("backend.baseUrl")}/api/{{ pluginId }}`)}),(0,kt.b)({api:Nn.k,deps:{},factory:()=>new it}),(0,kt.b)({api:Co.c,deps:{},factory:()=>new mt}),(0,kt.b)({api:Pe.m,deps:{alertApi:Nn.k},factory:({alertApi:r})=>{const e=new ft(r,new wt);return lt.forward(e,{hidden:!1}),e}}),(0,kt.b)({api:Wn,deps:{errorApi:Pe.m},factory:({errorApi:r})=>at.create({errorApi:r})}),(0,kt.b)({api:kn.a,deps:{configApi:ie.U,identityApi:rn.K,discoveryApi:ne.I},factory:({configApi:r,identityApi:e,discoveryApi:n})=>G({middleware:[pt.resolvePluginProtocol({discoveryApi:n}),pt.injectIdentityAuth({identityApi:e,config:r})]})}),(0,kt.b)({api:Me,deps:{},factory:()=>new st}),(0,kt.b)({api:De,deps:{discoveryApi:ne.I,oauthRequestApi:Me,configApi:ie.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>cn.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,kt.b)({api:Mt,deps:{discoveryApi:ne.I,oauthRequestApi:Me,configApi:ie.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>ce.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,kt.b)({api:fe,deps:{discoveryApi:ne.I,oauthRequestApi:Me,configApi:ie.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>Oe.create({configApi:n,discoveryApi:r,oauthRequestApi:e,defaultScopes:["read:user"],environment:n.getOptionalString("auth.environment")})}),(0,kt.b)({api:se,deps:{discoveryApi:ne.I,oauthRequestApi:Me,configApi:ie.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>p.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,kt.b)({api:Xt,deps:{discoveryApi:ne.I,oauthRequestApi:Me,configApi:ie.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>F.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,kt.b)({api:Vt,deps:{discoveryApi:ne.I,oauthRequestApi:Me,configApi:ie.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>_t.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,kt.b)({api:be,deps:{discoveryApi:ne.I,oauthRequestApi:Me,configApi:ie.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>ge.create({configApi:n,discoveryApi:r,oauthRequestApi:e,defaultScopes:["account"],environment:n.getOptionalString("auth.environment")})}),(0,kt.b)({api:Ve,deps:{discoveryApi:ne.I,oauthRequestApi:Me,configApi:ie.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>ve.create({configApi:n,discoveryApi:r,oauthRequestApi:e,defaultScopes:["REPO_READ"]})}),(0,kt.b)({api:Ae,deps:{discoveryApi:ne.I,oauthRequestApi:Me,configApi:ie.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>Yt.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,kt.b)({api:on,deps:{discoveryApi:ne.I,oauthRequestApi:Me,configApi:ie.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>je.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,kt.b)({api:So.x,deps:{discovery:ne.I,identity:rn.K,config:ie.U},factory:({config:r,discovery:e,identity:n})=>An.create({config:r,discovery:e,identity:n})})];var xn=t(14451),Cn=t(27799),Hn=t(94389),Io=t(20947),Do=t(20473),Lo=t(45917),jo=t(39347),Mo=t(63309),Bo=t(82451),Uo=t(85121),Vn=t(17400),Fo=t(42226),$o=t(69550),Gn=t(52755),Yn=t(89350),No=t(8911),Sn=t(33602),bn=t(48108),Wo=t(77225),Qn=t(55700),Zn=t(71865);const Jn={brokenImage:Cn.A,catalog:No.A,scaffolder:Io.A,techdocs:Do.A,search:Lo.A,chat:jo.A,dashboard:Mo.A,docs:Bo.A,email:Uo.A,github:Fo.A,group:Sn.A,help:$o.A,"kind:api":Vn.A,"kind:component":Yn.A,"kind:domain":xn.A,"kind:group":Sn.A,"kind:location":Gn.A,"kind:system":Hn.A,"kind:user":bn.A,"kind:resource":Qn.A,"kind:template":Zn.A,user:bn.A,warning:Wo.A};var ko=t(58733),Ko=t(55288),zo=t(91360),Ho=t(50868),On=t(12285),Vo=t(65730);const wn=(0,Ko.A)({productionPrefix:"jss4-"});function Xn(r){const{children:e,theme:n,noCssBaseline:s=!1}=r,a=n.getTheme("v4"),l=n.getTheme("v5");let S;s||(S=(0,i.jsx)(ko.Ay,{}));let x=(0,i.jsxs)(i.Fragment,{children:[S,e]});return a&&(x=(0,i.jsx)(zo.Ay,{generateClassName:wn,children:(0,i.jsx)(Ho.A,{theme:a,children:x})})),l&&(x=(0,i.jsx)(On.A,{injectFirst:!0,children:(0,i.jsx)(Vo.A,{theme:l,children:x})})),x}const _n={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 Rt=t(96324),ue=t(87081),h=t(33284),R=t(98392),U=t(75679);const $={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 _(r){const{colors:e,shape:n,options:s}=r,l=`linear-gradient(90deg, ${(e.length===1?[e[0],e[0]]:e).join(", ")})`,S=`${n}, ${l}`;var x;const L=(x=s==null?void 0:s.fontColor)!==null&&x!==void 0?x:"#FFFFFF";return{colors:e,shape:n,backgroundImage:S,fontColor:L}}const dt={home:_({colors:Q.teal,shape:$.wave}),documentation:_({colors:Q.pinkSea,shape:$.wave2}),tool:_({colors:Q.purpleSky,shape:$.round}),service:_({colors:Q.marineBlue,shape:$.wave}),website:_({colors:Q.veryBlue,shape:$.wave}),library:_({colors:Q.rubyRed,shape:$.wave}),other:_({colors:Q.darkGrey,shape:$.wave}),app:_({colors:Q.toastyOrange,shape:$.wave}),apis:_({colors:Q.teal,shape:$.wave2}),card:_({colors:Q.greens,shape:$.wave})},bt=16,Lt='"Helvetica Neue", Helvetica, Roboto, Arial, sans-serif',Ut="home";function Zt(r){const{palette:e,htmlFontSize:n=bt,fontFamily:s=Lt,defaultPageTheme:a=Ut,pageTheme:l=dt,typography:S}=r;if(!l[a])throw new Error(`${a} is not defined in pageTheme.`);const x={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:S!=null?S:x,page:l[a],getPageTheme:({themeId:L})=>{var N;return(N=l[L])!==null&&N!==void 0?N:l[a]}}}var Ft=t(67936);const It={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,Ft.e$)(r.palette.link,.3),background:(0,Ft.a)(r.palette.link,.95)},[r.breakpoints.up("md")]:{minWidth:120,fontSize:r.typography.pxToRem(14),fontWeight:500}}),textColorPrimary:({theme:r})=>({color:r.palette.link})}},MuiTableSortLabel:{styleOverrides:{root:{color:"inherit","&:hover":{color:"inherit"},"&:focus":{color:"inherit"},"&.Mui-active":{fontWeight:"bold",color:"inherit"}}}},MuiListItemText:{styleOverrides:{dense:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}}},MuiButton:{styleOverrides:{text:{padding:void 0}}},MuiChip:{styleOverrides:{root:({theme:r})=>({marginRight:r.spacing(1),marginBottom:r.spacing(1)}),label:({theme:r})=>({lineHeight:r.spacing(2.5),fontWeight:r.typography.fontWeightMedium,fontSize:r.spacing(1.75)}),labelSmall:({theme:r})=>({fontSize:r.spacing(1.5)}),deleteIcon:({theme:r})=>({width:r.spacing(3),height:r.spacing(3),margin:r.spacing(0,.75,0,-.75)}),deleteIconSmall:({theme:r})=>({width:r.spacing(2),height:r.spacing(2),margin:r.spacing(0,.5,0,-.5)})}},MuiCard:{styleOverrides:{root:{display:"flex",flexDirection:"column"}}},MuiCardHeader:{styleOverrides:{root:{paddingBottom:0}}},MuiCardContent:{styleOverrides:{root:{flexGrow:1,"&:last-child":{paddingBottom:void 0}}}},MuiCardActions:{styleOverrides:{root:{justifyContent:"flex-end"}}},MuiLink:{defaultProps:{underline:"hover"}},MuiPaper:{styleOverrides:{root:{backgroundImage:"unset"}}}},ae=r=>(...e)=>{const n=e.length===0?[1]:e,s=(a,l)=>typeof a=="string"?a:l*a;return n.map(a=>{const l=s(a,r);return typeof l=="number"?`${l}px`:l}).join(" ")};function me(r,e){if(!e||typeof e=="string")return;const n=typeof e=="function"?e(r):e;if(n)return{"@global":n}}function Jt(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,l])=>typeof l=="function"?[a,l({theme:n})]:[a,l]))}return e}}const Nt=/^&.Mui-([\w-]+)$/;function re(r){let e=r;if(!r||typeof r!="object")return e;for(const n of Object.keys(r)){const s=r[n];if(!(!s||typeof s!="object"))for(const a of Object.keys(s)){const l=a,S=l.match(Nt);if(S){const[,x]=S,{[l]:L,...N}=s;L&&(e={...e,[n]:N,[x]:L})}}}return e}function ye(r,e={}){const n={},s={};for(const a of Object.keys(e)){const l=e[a];l&&("styleOverrides"in l&&(a==="MuiCssBaseline"?n[a]=me(r,l.styleOverrides):n[a]=re(Jt(r,l.styleOverrides))),"defaultProps"in l&&(s[a]=l.defaultProps))}return{overrides:n,props:s}}var Pt=new WeakMap;class zt{getTheme(e){return(0,Rt._)(this,Pt).get(e)}constructor(e,n){(0,ue._)(this,Pt,{writable:!0,value:new Map}),(0,h._)(this,Pt,new Map),e&&(0,Rt._)(this,Pt).set("v4",e),n&&(0,Rt._)(this,Pt).set("v5",n)}}function qt(r){const e=Zt(r),n={...It,...r.components},s=(0,U.A)({...e,components:n}),a=ye(s,n),l={...(0,R.A)(e),...a};return new zt(l,s)}function Te(r){const e=adaptV4Theme(r),n=createTheme(r);return new zt(n,createV5Theme(e))}const Re={light:qt({palette:_n.light}),dark:qt({palette:_n.dark})};var Ke=t(75962),he=t(87145);const Fe=[{id:"light",title:"Light Theme",variant:"light",icon:(0,i.jsx)(he.A,{}),Provider:({children:r})=>(0,i.jsx)(Xn,{theme:Re.light,children:r})},{id:"dark",title:"Dark Theme",variant:"dark",icon:(0,i.jsx)(Ke.A,{}),Provider:({children:r})=>(0,i.jsx)(Xn,{theme:Re.dark,children:r})}];var oe=t(91638),Pn=t(39067),Tn=t.n(Pn);class hs{get(e){for(const n of this.holders){const s=n.get(e);if(s)return s}}constructor(...e){(0,b._)(this,"holders",void 0),this.holders=e}}var qn=t(43836),to=t(10602);const hr=(0,qn.tK)("api-context"),Go=r=>{var e;const{apis:n,children:s}=r,a=(e=(0,u.useContext)(hr))===null||e===void 0?void 0:e.atVersion(1),l=a?new hs(n,a):n;return(0,i.jsx)(hr.Provider,{value:(0,to.B)({1:l}),children:s})};Go.propTypes={apis:Tn().shape({get:Tn().func.isRequired}).isRequired,children:Tn().node};var fs=t(46108),gs=t.n(fs),ps=t(48875),vs=t.n(ps);const ms=/^[a-z][a-z0-9]*(?:[-_][a-z][a-z0-9]*)*$/i;function Rn(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)}function Yo(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 $e={type(r,e,n,s){return`Invalid type in config for key '${r}' in '${e}', got ${n}, wanted ${s}`},missing(r){return`Missing required config value at '${r}'`},convert(r,e,n){return`Unable to convert config value for key '${r}' in '${e}' to a ${n}`}};class un{static fromConfigs(e){return e.length===0?new un(void 0):e.reduce((n,{data:s,context:a,filteredKeys:l,deprecatedKeys:S})=>{const x=new un(s,a,n);if(x.filteredKeys=l,S)for(const{key:L,description:N}of S)console.warn(`The configuration key '${L}' of ${a} is deprecated and may be removed soon. ${N||""}`);return x},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($e.missing(this.fullKey(e!=null?e:"")));return n}getOptional(e){var n;const s=gs()(this.readValue(e)),a=(n=this.fallback)===null||n===void 0?void 0:n.getOptional(e);if(s===void 0){if(0)var l;return a}else if(a===void 0)return s;return vs()({},{value:a},{value:s},(S,x)=>!Rn(x)||!Rn(S)?x:void 0).value}getConfig(e){const n=this.getOptionalConfig(e);if(n===void 0)throw new Error($e.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(Rn(s))return this.copy(s,e,a);if(s!==void 0)throw new TypeError($e.type(this.fullKey(e),this.context,Yo(s),"object"));return a}getConfigArray(e){const n=this.getOptionalConfigArray(e);if(n===void 0)throw new Error($e.missing(this.fullKey(e)));return n}getOptionalConfigArray(e){const n=this.readConfigValue(e,a=>{if(!Array.isArray(a))return{expected:"object-array"};for(const[l,S]of a.entries())if(!Rn(S))return{expected:"object-array",value:S,key:`${e}[${l}]`};return!0});if(!n){if(0)var s;return}return n.map((a,l)=>this.copy(a,`${e}[${l}]`))}getNumber(e){const n=this.getOptionalNumber(e);if(n===void 0)throw new Error($e.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($e.convert(this.fullKey(e),this.context,"number"));return s}getBoolean(e){const n=this.getOptionalBoolean(e);if(n===void 0)throw new Error($e.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($e.convert(this.fullKey(e),this.context,"boolean"))}getString(e){const n=this.getOptionalString(e);if(n===void 0)throw new Error($e.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($e.missing(this.fullKey(e)));return n}getOptionalStringArray(e){return this.readConfigValue(e,n=>{if(!Array.isArray(n))return{expected:"string-array"};for(const[s,a]of n.entries())if(typeof a!="string"||a==="")return{expected:"string-array",value:a,key:`${e}[${s}]`};return!0})}fullKey(e){return`${this.prefix}${this.prefix?".":""}${e}`}copy(e,n,s){const a=new un(e,this.context,s,this.fullKey(n));return a.filteredKeys=this.filteredKeys,a}readConfigValue(e,n){const s=this.readValue(e);if(s===void 0){var a;if(0)var l;return(a=this.fallback)===null||a===void 0?void 0:a.readConfigValue(e,n)}const S=n(s);if(S!==!0){const{key:x=e,value:L=s,expected:N}=S;throw new TypeError($e.type(this.fullKey(x),this.context,Yo(L),N))}return s}readValue(e){const n=e?e.split("."):[];for(const a of n)if(!ms.test(a))throw new TypeError(`Invalid config key '${e}'`);if(this.data===void 0)return;let s=this.data;for(const[a,l]of n.entries())if(Rn(s))s=s[l];else if(s!==void 0){const S=this.fullKey(n.slice(0,a).join("."));throw new TypeError($e.type(S,this.context,Yo(s),"object"))}return s}constructor(e,n="mock-config",s,a=""){(0,b._)(this,"data",void 0),(0,b._)(this,"context",void 0),(0,b._)(this,"fallback",void 0),(0,b._)(this,"prefix",void 0),(0,b._)(this,"filteredKeys",void 0),(0,b._)(this,"notifiedFilteredKeys",void 0),this.data=e,this.context=n,this.fallback=s,this.prefix=a,this.notifiedFilteredKeys=new Set}}const In="theme";class eo{static createWithStorage(e){const n=new eo(e);if(!window.localStorage)return n;var s;const a=(s=window.localStorage.getItem(In))!==null&&s!==void 0?s:void 0;return n.setActiveThemeId(a),n.activeThemeId$().subscribe(l=>{l?window.localStorage.setItem(In,l):window.localStorage.removeItem(In)}),window.addEventListener("storage",l=>{if(l.key===In){var S;const x=(S=localStorage.getItem(In))!==null&&S!==void 0?S:void 0;n.setActiveThemeId(x)}}),n}getInstalledThemes(){return this.themes.slice()}activeThemeId$(){return this.subject}getActiveThemeId(){return this.activeThemeId}setActiveThemeId(e){this.activeThemeId=e,this.subject.next(e)}constructor(e){(0,b._)(this,"themes",void 0),(0,b._)(this,"activeThemeId",void 0),(0,b._)(this,"subject",void 0),this.themes=e,this.subject=new nt(void 0)}}var hn=t(63636);function fr(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 ys{registerFlag(e){fr(e.name),this.registeredFeatureFlags.push(e)}getRegisteredFlags(){return this.registeredFeatureFlags.slice()}isActive(e){return this.flags||(this.flags=this.load()),this.flags.get(e)===hn.S.Active}save(e){this.flags||(this.flags=this.load()),e.merge||this.flags.clear();for(const[s,a]of Object.entries(e.states))this.flags.set(s,a);const n=Array.from(this.flags.entries()).filter(([,s])=>s===hn.S.Active);window.localStorage.setItem("featureFlags",JSON.stringify(Object.fromEntries(n)))}load(){try{const e=window.localStorage.getItem("featureFlags");if(!e)return new Map;const n=JSON.parse(e);if(typeof n!="object"||n===null||Array.isArray(n))return new Map;const s=Object.entries(n).filter(([a,l])=>(fr(a),l===hn.S.Active));return new Map(s)}catch{return new Map}}constructor(){(0,b._)(this,"registeredFeatureFlags",[]),(0,b._)(this,"flags",void 0)}}const no=(0,Dt.y)({id:"core.apptheme"}),gr=(0,Dt.y)({id:"core.applanguage"});var Es=t(56038);class Qo{static validateFactories(e,n){for(const s of n){const a=[s],l=new Set;for(;a.length;){const S=a.shift(),x=e.get(S);if(x)for(const L of Object.values(x.deps)){if(L.id===s.id)throw new Error(`Circular dependency of api factory for ${s}`);l.has(L)||(l.add(L),a.push(L))}}}}get(e){return this.load(e)}load(e,n=[]){const s=this.apis.get(e.id);if(s)return s;const a=this.factories.get(e);if(!a)return;if(n.includes(a.api))throw new Error(`Circular dependency of api factory for ${a.api}`);const l=this.loadDeps(e,a.deps,[...n,a.api]),S=a.factory(l);return this.apis.set(e.id,S),S}loadDeps(e,n,s){const a={};for(const l in n)if(n.hasOwnProperty(l)){const S=n[l],x=this.load(S,s);if(!x)throw new Error(`No API factory available for dependency ${S} of dependent ${e}`);a[l]=x}return a}constructor(e){(0,b._)(this,"factories",void 0),(0,b._)(this,"apis",void 0),this.factories=e,this.apis=new Map}}var Zo;(function(r){r[r.default=10]="default",r[r.app=50]="app",r[r.static=100]="static"})(Zo||(Zo={}));class As{register(e,n){const s=Zo[e],a=this.factories.get(n.api.id);return a&&a.priority>=s?!1:(this.factories.set(n.api.id,{priority:s,factory:n}),!0)}get(e){const n=this.factories.get(e.id);if(n)return n.factory}getAllApis(){const e=new Set;for(const{factory:n}of this.factories.values())e.add(n.api);return e}constructor(){(0,b._)(this,"factories",new Map)}}function xs(r){const e={};for(const s in r.collectors)r.collectors.hasOwnProperty(s)&&(e[s]=r.collectors[s]());const n=[{node:u.Children.toArray(r.root),parent:void 0,contexts:{}}];for(;n.length!==0;){const{node:s,parent:a,contexts:l}=n.shift();u.Children.forEach(s,S=>{if(!(0,u.isValidElement)(S))return;const x={};for(const L in e)if(e.hasOwnProperty(L)){const N=e[L];x[L]=N.visit(N.accumulator,S,a,l[L])}for(const L of r.discoverers){const N=L(S);N&&n.push({node:N,parent:S,contexts:x})}})}return Object.fromEntries(Object.entries(e).map(([s,a])=>[s,a.accumulator]))}function oo(r,e){return()=>({accumulator:r(),visit:e})}function Cs(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 Ie=t(19402);const bs=oo(()=>new Set,(r,e)=>{const n=(0,Ie.E)(e,"core.plugin");n&&r.add(n)});var Dn=t(72427);const pr=r=>{const{children:e}=r,n=(0,Dn.gf)(hn.B),s="with"in r?n.isActive(r.with):!n.isActive(r.without);return(0,i.jsx)(i.Fragment,{children:s?e:null})};(0,Ie.h)(pr,"core.featureFlagged",!0);const ro={caseSensitive:!1,path:"*",element:"match-all",routeRefs:new Set,plugins:new Set};function so(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 vr=r=>{const e=new Set;return r&&e.add(r),e};function mr(r,e=new Array){return u.Children.forEach(r,n=>{if(!(0,u.isValidElement)(n))return;const s=(0,Ie.E)(n,"core.mountPoint");if(s){const a=(0,Ie.E)(n,"core.plugin");e.push({routeRef:s,plugin:a})}mr(n.props.children,e)}),e}const Os=oo(()=>({paths:new Map,parents:new Map,objects:new Array}),(r,e,n,s)=>{var a,l;if(s!=null&&s.isElementAncestor)return s;if((n==null?void 0:n.props.element)===e)return{...s,isElementAncestor:!0};const S=(a=e.props)===null||a===void 0?void 0:a.path,x=(0,Ie.E)(e,"core.mountPoint");if(x&&S)throw new Error(`Path property may not be set directly on a routable extension "${so(e)}"`);var L;const N=(L=s==null||(l=s.obj)===null||l===void 0?void 0:l.children)!==null&&L!==void 0?L:r.objects;if(S!==void 0){if(typeof S!="string")throw new Error(`Element path must be a string at "${so(e)}"`);const Ot=S.startsWith("/")?S.slice(1):S,Wt=e.props.element;if((0,Ie.E)(e,"core.gatherMountPoints")){var X;if(Wt)throw new Error(`Mount point gatherers may not have an element prop "${so(e)}"`);const Ht={path:Ot,element:"gathered",routeRefs:new Set,caseSensitive:!!(!((X=e.props)===null||X===void 0)&&X.caseSensitive),children:[ro],plugins:new Set};return N.push(Ht),{obj:Ht,gatherPath:Ot,routeRef:s==null?void 0:s.routeRef,gatherRouteRef:s==null?void 0:s.routeRef}}if(Wt){var ot;const[Ht,...ee]=mr(Wt);if(ee.length>0)throw new Error(`Route element with path "${S}" may not contain multiple routable extensions`);if(!Ht)return s;const{routeRef:Ee,plugin:Je}=Ht,$n={path:Ot,element:"mounted",routeRefs:new Set([Ee]),caseSensitive:!!(!((ot=e.props)===null||ot===void 0)&&ot.caseSensitive),children:[ro],plugins:vr(Je)};return N.push($n),r.paths.set(Ee,Ot),r.parents.set(Ee,s==null?void 0:s.routeRef),{obj:$n,routeRef:Ee!=null?Ee:s==null?void 0:s.routeRef,gatherPath:Ot,gatherRouteRef:s==null?void 0:s.gatherRouteRef}}}if(x){var ht;if((s==null?void 0:s.gatherPath)===void 0)throw new Error(`Routable extension "${so(e)}" with mount point "${x}" must be assigned a path`);s==null||(ht=s.obj)===null||ht===void 0||ht.routeRefs.add(x);const Ot=(0,Ie.E)(e,"core.plugin");if(Ot){var yt;s==null||(yt=s.obj)===null||yt===void 0||yt.plugins.add(Ot)}return r.paths.set(x,s.gatherPath),r.parents.set(x,s==null?void 0:s.gatherRouteRef),{...s,routeRef:x}}return s}),ws=oo(()=>({paths:new Map,parents:new Map,objects:new Array}),(r,e,n,s)=>{var a,l,S;if((n==null?void 0:n.props.element)===e)return s;let x=s==null?void 0:s.obj,L=s==null?void 0:s.routeRef,N=s==null?void 0:s.sticky;const X=(a=e.props)===null||a===void 0?void 0:a.path;var ot;const ht=(ot=x==null?void 0:x.children)!==null&&ot!==void 0?ot:r.objects,yt=!!(!((l=e.props)===null||l===void 0)&&l.caseSensitive);let Ot=s==null?void 0:s.path;if((0,Ie.E)(e,"core.gatherMountPoints")){if(!X)throw new Error("Mount point gatherer must have a path");Ot=X}const Wt=(S=e.props)===null||S===void 0?void 0:S.element;let Ht=(0,Ie.E)(e,"core.mountPoint");if(!Ht&&(0,u.isValidElement)(Wt)&&(Ht=(0,Ie.E)(Wt,"core.mountPoint")),Ht){let Je=X;if(Ot&&(Je?Ot=void 0:Je=Ot),!Je)throw new Error("Mounted routable extension must have a path");r.paths.set(Ht,Je),L&&N?(r.parents.set(Ht,L),X&&(L=Ht,N=!1)):(r.parents.set(Ht,L),L=Ht),X?(x={caseSensitive:yt,path:X,element:"mounted",routeRefs:new Set([Ht]),children:[ro],plugins:vr((0,Ie.E)(e.props.element,"core.plugin"))},ht.push(x)):x==null||x.routeRefs.add(Ht)}if((0,Ie.E)(e,"core.gatherMountPoints")&&(N=!0),(0,Ie.E)(e,"core.gatherMountPoints")){if(!X)throw new Error("Mount point gatherer must have a path");if(!Ht){var Ee;x={caseSensitive:yt,path:X,element:"gathered",routeRefs:new Set,children:[ro],plugins:(s==null||(Ee=s.obj)===null||Ee===void 0?void 0:Ee.plugins)||new Set},ht.push(x)}}return{obj:x,path:Ot,routeRef:L,sticky:N}}),Ps=oo(()=>new Set,(r,e)=>{if(e.type===pr){const n=e.props;r.add("with"in n?n.with:n.without)}});var Ln=t(74808),Ts=t(63544);const jn=(0,Ts.Q)("route-ref-type",()=>Symbol("route-ref-type"));function yr(r){return r[jn]==="absolute"}function Er(r){return r[jn]==="sub"}function Rs(r){return r[jn]==="external"}function io(...r){const e=r.join("/").replace(/\/\/+/g,"/");return e!=="/"&&e.endsWith("/")?e.slice(0,-1):e}var Is=t(46155),Ds=t.n(Is);function Ls(r,e,n){let s,a="";if(yr(r))s=r;else if(Er(r))s=r.parent,a=r.path;else if(Rs(r)){const x=n.get(r);if(!x)return[void 0,""];if(yr(x))s=x;else if(Er(x))s=x.parent,a=x.path;else throw new Error(`ExternalRouteRef was bound to invalid target, ${x}`)}else throw r[jn]?new Error(`Unknown or invalid route ref type, ${r[jn]}`):new Error(`Unknown object passed to useRouteRef, got ${r}`);if(!s)return[void 0,""];const l=e.get(s);if(l===void 0)return[void 0,""];const S=io(l,a);return[s,S]}function js(r,e,n,s,a){var l;const S=(l=(0,Ln.ue)(a,e))!==null&&l!==void 0?l:[],x=Array();let L=-1;for(let ot=r;ot&&(L=S.findIndex(ht=>ht.route.routeRefs.has(ot)),L===-1);ot=s.get(ot))x.unshift(ot);x.length===0&&(L-=1);const N=L===-1?"":S[L].pathname,X=x.slice(0,-1).map(ot=>{const ht=n.get(ot);if(ht===void 0)throw new Error(`No path for ${ot}`);if(ht.includes(":"))throw new Error(`Cannot route to ${r} with parent ${ot} as it has parameters`);return ht});return`${io(N,...X)}/`}class Ms{resolve(e,n){const[s,a]=Ls(e,this.routePaths,this.routeBindings);if(!s)return;let l;typeof n=="string"?l=this.trimPath(n):n.pathname?l={...n,pathname:this.trimPath(n.pathname)}:l=n;const S=this.appBasePath+js(s,l,this.routePaths,this.routeParents,this.routeObjects);return(...[L])=>{const N=L&&Ds()(L,X=>typeof X=="string"?X.replaceAll(/[&?#;\/]/g,ot=>encodeURIComponent(ot)):X);return io(S,(0,Ln.tW)(a,N))}}trimPath(e){return e&&(e.startsWith(this.appBasePath)?e.slice(this.appBasePath.length):e)}constructor(e,n,s,a,l){(0,b._)(this,"routePaths",void 0),(0,b._)(this,"routeParents",void 0),(0,b._)(this,"routeObjects",void 0),(0,b._)(this,"routeBindings",void 0),(0,b._)(this,"appBasePath",void 0),this.routePaths=e,this.routeParents=n,this.routeObjects=s,this.routeBindings=a,this.appBasePath=l}}const Bs=(0,qn.tK)("routing-context"),Us=({routePaths:r,routeParents:e,routeObjects:n,routeBindings:s,basePath:a="",children:l})=>{const S=new Ms(r,e,n,s,a),x=(0,to.B)({1:S});return(0,i.jsx)(Bs.Provider,{value:x,children:l})};function Fs(r,e){const n=new Set(e.values());n.delete(void 0);for(const s of e.keys()){if(n.has(s))continue;let a=s,l="";for(;a;){const x=r.get(a);if(x===void 0)throw new Error(`No path for ${a}`);l=io(x,l),a=e.get(a)}const S=l.match(/:(\w+)/g);if(S){for(let x=0;x<S.length;x++)for(let L=x+1;L<S.length;L++)if(S[L]===S[x])throw new Error(`Parameter ${S[L]} is duplicated in path ${l}`)}}}function $s(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 Ns=(0,qn.tK)("app-context"),Ws=({appContext:r,children:e})=>{const n=(0,to.B)({1:r});return(0,i.jsx)(Ns.Provider,{value:n,children:e})};function Ar(r){return new Error(`Tried to access IdentityApi ${r} before app was loaded`)}function Jo(r){console.warn(`WARNING: Call to ${r} is deprecated and will break in the future`)}class ks{setTarget(e,n){this.target=e,this.signOutTargetUrl=n.signOutTargetUrl,this.resolveTarget(e)}getUserId(){if(!this.target)throw Ar("getUserId");if(!this.target.getUserId)throw new Error("IdentityApi does not implement getUserId");return Jo("getUserId"),this.target.getUserId()}getProfile(){if(!this.target)throw Ar("getProfile");if(!this.target.getProfile)throw new Error("IdentityApi does not implement getProfile");return Jo("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 Jo("getIdToken"),e.getIdToken()})}async signOut(){await this.waitForTarget.then(e=>e.signOut()),window.location.href=this.signOutTargetUrl}constructor(){(0,b._)(this,"target",void 0),(0,b._)(this,"waitForTarget",void 0),(0,b._)(this,"resolveTarget",()=>{}),(0,b._)(this,"signOutTargetUrl","/"),this.waitForTarget=new Promise(e=>{this.resolveTarget=e})}}var Ks=t(45145);function zs(r,e,n){if(r!==void 0){const a=n.find(l=>l.id===r);if(a)return a}if(e){const a=n.find(l=>l.variant==="dark");if(a)return a}const s=n.find(a=>a.variant==="light");return s||n[0]}const Hs=()=>{const r=(0,u.useMemo)(()=>window.matchMedia("(prefers-color-scheme: dark)"),[]),[e,n]=(0,u.useState)(r.matches);return(0,u.useEffect)(()=>{const s=a=>{n(a.matches)};return r.addListener(s),()=>{r.removeListener(s)}},[r]),e};function xr({children:r}){const e=(0,Dn.gf)(no),n=(0,Ks.A)(e.activeThemeId$(),e.getActiveThemeId()),s=window.matchMedia?Hs():!1,a=zs(n,s,e.getInstalledThemes());if(!a)throw new Error("App has no themes");return(0,i.jsx)(a.Provider,{children:r})}const Cr=async()=>Vs();function Vs(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 Gs{add(e,n){return this.apis.push([e.id,n]),n}build(){return new fn(new Map(this.apis))}constructor(){(0,b._)(this,"apis",[])}}class fn{static builder(){return new Gs}static from(e){return new fn(new Map(e.map(([n,s])=>[n.id,s])))}static with(e,n){return new fn(new Map([[e.id,n]]))}with(e,n){return new fn(new Map([...this.apis,[e.id,n]]))}get(e){return this.apis.get(e.id)}constructor(e){(0,b._)(this,"apis",void 0),this.apis=e}}function Ys(r){const e=new Map;return r&&r({bind:(s,a)=>{for(const[l,S]of Object.entries(a)){const x=s[l];if(!x)throw new Error(`Key ${l} is not an existing external route`);if(!S&&!x.optional)throw new Error(`External route ${l} is required but was undefined`);S&&e.set(x,S)}}}),e}function Mn(){const[r]=(0,m.AV)((0,i.jsx)(m.qh,{index:!0,element:(0,i.jsx)("div",{})}));return!r.index}const Sr=(0,u.createContext)(void 0);var br=t(82266),Or=t(93368),Qs=t(25862);const Zs=(r,e)=>{try{const n=(0,Ln.ue)(e,{pathname:r}),s=n==null?void 0:n.filter(L=>{var N;return(L==null||(N=L.route.routeRefs)===null||N===void 0?void 0:N.size)>0}).pop(),a=s==null?void 0:s.route;if(!a||a.path===""&&r!=="/")return;let l;a.routeRefs.size===1&&(l=a.routeRefs.values().next().value);let S;a.plugins.size===1&&(S=a.plugins.values().next().value);const x=Object.entries((s==null?void 0:s.params)||{}).reduce((L,[N,X])=>(X!==void 0&&N!=="*"&&(L[N]=X),L),{});return{extension:"App",pluginId:(S==null?void 0:S.getId())||"root",...l?{routeRef:l.id}:{},_routeNodeType:a.element,params:x}}catch{return}},Js=({pathname:r,search:e,hash:n,attributes:s})=>{const a=(0,Or.s)();return(0,u.useEffect)(()=>{a.captureEvent("navigate",`${r}${e}${n}`,{attributes:s})},[a,r,e,n,s]),null},ao=({routeObjects:r})=>{const{pathname:e,search:n,hash:s}=(0,m.zy)(),{params:a,...l}=Zs(e,r)||{params:{}};return(0,i.jsx)(Qs.Ig,{attributes:l,children:(0,i.jsx)(Js,{pathname:e,search:n,hash:s,attributes:a})})};function Xs(r){return Mn()?Xo(r):""}function Xo(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 wr({component:r,appIdentityProxy:e,children:n}){const[s,a]=(0,u.useState)(),l=(0,Dn.gf)(ie.U),S=Xo(l);return s?(e.setTarget(s,{signOutTargetUrl:S||"/"}),(0,i.jsx)(i.Fragment,{children:n})):(0,i.jsx)(r,{onSignInSuccess:a})}function Pr(r){const{Router:e,SignInPage:n}=(0,br.n)().getComponents(),s=(0,Dn.gf)(ie.U),a=Xo(s),l=`${a}/*`,S=(0,u.useContext)(Sr);if(!S)throw new Error("AppRouter must be rendered within the AppProvider");const{routeObjects:x,appIdentityProxy:L}=S;return n?Mn()?(0,i.jsxs)(e,{children:[(0,i.jsx)(ao,{routeObjects:x}),(0,i.jsx)(wr,{component:n,appIdentityProxy:L,children:(0,i.jsx)(m.BV,{children:(0,i.jsx)(m.qh,{path:l,element:(0,i.jsx)(i.Fragment,{children:r.children})})})})]}):(0,i.jsxs)(e,{basename:a,children:[(0,i.jsx)(ao,{routeObjects:x}),(0,i.jsx)(wr,{component:n,appIdentityProxy:L,children:r.children})]}):(L.setTarget({getUserId:()=>"guest",getIdToken:async()=>{},getProfile:()=>({email:"guest@example.com",displayName:"Guest"}),getProfileInfo:async()=>({email:"guest@example.com",displayName:"Guest"}),getBackstageIdentity:async()=>({type:"user",userEntityRef:"user:default/guest",ownershipEntityRefs:["user:default/guest"]}),getCredentials:async()=>({}),signOut:async()=>{}},{signOutTargetUrl:a||"/"}),Mn()?(0,i.jsxs)(e,{children:[(0,i.jsx)(ao,{routeObjects:x}),(0,i.jsx)(m.BV,{children:(0,i.jsx)(m.qh,{path:l,element:(0,i.jsx)(i.Fragment,{children:r.children})})})]}):(0,i.jsxs)(e,{basename:a,children:[(0,i.jsx)(ao,{routeObjects:x}),r.children]}))}(0,Ie.h)(Pr,"core.type","AppRouter");const Bn="language",Qe="en";var Un=new WeakMap,gn=new WeakMap,lo=new WeakMap;class co{static create(e){var n;const s=(n=e==null?void 0:e.availableLanguages)!==null&&n!==void 0?n:[Qe];if(s.length!==new Set(s).size)throw new Error(`Supported languages may not contain duplicates, got '${s.join("', '")}'`);if(!s.includes(Qe))throw new Error(`Supported languages must include '${Qe}'`);var a;const l=(a=e==null?void 0:e.defaultLanguage)!==null&&a!==void 0?a:Qe;if(!s.includes(l))throw new Error(`Initial language must be one of the supported languages, got '${l}'`);return new co(s,l)}static createWithStorage(e){const n=co.create(e);if(!window.localStorage)return n;const s=window.localStorage.getItem(Bn),{languages:a}=n.getAvailableLanguages();return s&&a.includes(s)&&n.setLanguage(s),n.language$().subscribe(({language:l})=>{l!==window.localStorage.getItem(Bn)&&window.localStorage.setItem(Bn,l)}),window.addEventListener("storage",l=>{if(l.key===Bn){var S;const x=(S=localStorage.getItem(Bn))!==null&&S!==void 0?S:void 0;x&&n.setLanguage(x)}}),n}getAvailableLanguages(){return{languages:(0,Rt._)(this,Un).slice()}}setLanguage(e){const n=e!=null?e:Qe;if(n!==(0,Rt._)(this,gn)){if(n&&!(0,Rt._)(this,Un).includes(n))throw new Error(`Failed to change language to '${n}', available languages are '${(0,Rt._)(this,Un).join("', '")}'`);(0,h._)(this,gn,n),(0,Rt._)(this,lo).next({language:n})}}getLanguage(){return{language:(0,Rt._)(this,gn)}}language$(){return(0,Rt._)(this,lo)}constructor(e,n){(0,ue._)(this,Un,{writable:!0,value:void 0}),(0,ue._)(this,gn,{writable:!0,value:void 0}),(0,ue._)(this,lo,{writable:!0,value:void 0}),(0,h._)(this,Un,e),(0,h._)(this,gn,n),(0,h._)(this,lo,new nt({language:(0,Rt._)(this,gn)}))}}var Ne=t(75944),sn=t(91196),_s=t(47304),qs=t(99833),Tr=t(93184);function Rr(r){return Object.fromEntries(Object.entries(r).filter(e=>e[1]!==null))}var pn=new WeakMap,uo=new WeakMap,vn=new WeakMap,ho=new WeakSet;class ti{addTranslationResource(e){const n=(0,qs.Y)(e);for(const s of n.resources){const a=(0,Ne._)(this,ho,_o).call(this,s.language,n.id);(0,Rt._)(this,vn).has(a)||(0,Rt._)(this,vn).set(a,s.loader)}}needsLoading(e,n){const s=(0,Ne._)(this,ho,_o).call(this,e,n);return(0,Rt._)(this,vn).get(s)?!(0,Rt._)(this,pn).has(s):!1}async load(e,n){const s=(0,Ne._)(this,ho,_o).call(this,e,n),a=(0,Rt._)(this,vn).get(s);if(!a||(0,Rt._)(this,pn).has(s))return;const l=(0,Rt._)(this,uo).get(s);if(l){await l;return}const S=a().then(x=>{this.onLoad({language:e,namespace:n,messages:x.messages}),(0,Rt._)(this,pn).add(s)},x=>{throw(0,Rt._)(this,pn).add(s),x});(0,Rt._)(this,uo).set(s,S),await S}constructor(e){(0,sn._)(this,ho),(0,b._)(this,"onLoad",void 0),(0,ue._)(this,pn,{writable:!0,value:void 0}),(0,ue._)(this,uo,{writable:!0,value:void 0}),(0,ue._)(this,vn,{writable:!0,value:void 0}),this.onLoad=e,(0,h._)(this,pn,new Set),(0,h._)(this,uo,new Map),(0,h._)(this,vn,new Map)}}function _o(r,e){return`${r}/${e}`}var Fn=new WeakMap,mn=new WeakMap,an=new WeakMap,qo=new WeakMap,fo=new WeakMap,Ir=new WeakSet,go=new WeakSet,tr=new WeakSet;class er{static create(e){const{languages:n}=e.languageApi.getAvailableLanguages(),s=(0,_s.Q_)({fallbackLng:Qe,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!==Qe&&s.changeLanguage(a);const l=new ti(L=>{s.addResourceBundle(L.language,L.namespace,Rr(L.messages),!1,!0)}),S=(e==null?void 0:e.resources)||[];for(let L=S.length-1;L>=0;L--){const N=S[L];N.$$type==="@backstage/TranslationResource"?l.addTranslationResource(N):N.$$type==="@backstage/TranslationMessages"&&s.addResourceBundle(Qe,N.id,Rr(N.messages),!0,!1)}const x=new er(s,l,e.languageApi.getLanguage().language);return e.languageApi.language$().subscribe(({language:L})=>{(0,Ne._)(x,Ir,ei).call(x,L)}),x}getTranslation(e){const n=(0,Tr.v)(e);return(0,Ne._)(this,tr,Dr).call(this,n),(0,Ne._)(this,go,nr).call(this,n)}translation$(e){const n=(0,Tr.v)(e);return(0,Ne._)(this,tr,Dr).call(this,n),new(z())(s=>{let a={};const l=()=>{a={};const x=a;(0,Rt._)(this,mn).load((0,Rt._)(this,an),n.id).then(()=>{if(x===a){const L=(0,Ne._)(this,go,nr).call(this,n);L.ready&&s.next(L)}},L=>{x===a&&s.error(Array.isArray(L)?L[0]:L)})},S=()=>{const x=(0,Ne._)(this,go,nr).call(this,n);x.ready?s.next(x):l()};return(0,Rt._)(this,mn).needsLoading((0,Rt._)(this,an),n.id)&&l(),(0,Rt._)(this,fo).add(S),()=>{(0,Rt._)(this,fo).delete(S)}})}constructor(e,n,s){(0,sn._)(this,Ir),(0,sn._)(this,go),(0,sn._)(this,tr),(0,ue._)(this,Fn,{writable:!0,value:void 0}),(0,ue._)(this,mn,{writable:!0,value:void 0}),(0,ue._)(this,an,{writable:!0,value:void 0}),(0,ue._)(this,qo,{writable:!0,value:new Set}),(0,ue._)(this,fo,{writable:!0,value:new Set}),(0,h._)(this,Fn,e),(0,h._)(this,mn,n),(0,h._)(this,an,s)}}function ei(r){(0,Rt._)(this,an)!==r&&((0,h._)(this,an,r),(0,Rt._)(this,Fn).changeLanguage(r),(0,Rt._)(this,fo).forEach(e=>e()))}function nr(r){return(0,Rt._)(this,mn).needsLoading((0,Rt._)(this,an),r.id)?{ready:!1}:{ready:!0,t:(0,Rt._)(this,Fn).getFixedT(null,r.id)}}function Dr(r){if((0,Rt._)(this,qo).has(r.id))return;(0,Rt._)(this,qo).add(r.id);const e=r.getDefaultMessages();(0,Rt._)(this,Fn).addResourceBundle(Qe,r.id,e,!0,!1);const n=r.getDefaultResource();n&&(0,Rt._)(this,mn).addTranslationResource(n)}function Lr(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 ni(r){const e=un.fromConfigs(r),n=e.getOptionalString("app.baseUrl"),s=e.getOptionalString("backend.baseUrl");let a=r,l,S;if(n&&s){const x=new URL(n).origin,L=new URL(s).origin;if(x===L){const N=Lr(s);s!==N&&(l=N)}}if(n){const x=Lr(n);n!==x&&(S=x)}return(S||l)&&(a=a.concat({data:{app:S&&{baseUrl:S},backend:l&&{baseUrl:l}},context:"relative-resolver"})),a}function oi(r,e,n){var s;const a=!!r,l=(0,oe.default)(r||(()=>Promise.resolve([])));let S;if(a&&l.loading){const{Progress:N}=e;S=(0,i.jsx)(N,{})}else if(l.error){const{BootErrorPage:N}=e;S=(0,i.jsx)(N,{step:"load-config",error:l.error})}const{ThemeProvider:x=xr}=e;return S?{node:(0,i.jsx)(Go,{apis:fn.with(no,n),children:(0,i.jsx)(x,{children:S})})}:{api:un.fromConfigs(!((s=l.value)===null||s===void 0)&&s.length?ni(l.value):[])}}class ri{getPlugins(){return this.app.getPlugins()}getSystemIcon(e){return this.app.getSystemIcon(e)}getSystemIcons(){return this.app.getSystemIcons()}getComponents(){return this.app.getComponents()}constructor(e){(0,b._)(this,"app",void 0),this.app=e}}var or=new WeakMap;class si{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,Rt._)(this,or))throw new Error("app.getProvider() or app.createRoot() has already been called, and can only be called once");(0,h._)(this,or,!0);const e=new ri(this);let n=!1;return({children:a})=>{const l=(0,u.useRef)(!0),S=(0,u.useMemo)(()=>eo.createWithStorage(this.themes),[]),{routing:x,featureFlags:L,routeBindings:N}=(0,u.useMemo)(()=>{const Ot=Mn();Ot&&console.warn(`
2
- DEPRECATION WARNING: React Router Beta is deprecated and support for it will be removed in a future release.
3
- Please migrate to use React Router v6 stable.
4
- See https://backstage.io/docs/tutorials/react-router-stable-migration
5
- `);const Wt=xs({root:a,discoverers:[Cs,Ss],collectors:{routing:Ot?ws:Os,collectedPlugins:bs,featureFlags:Ps}});return Wt.collectedPlugins.forEach(Ht=>this.plugins.add(Ht)),this.verifyPlugins(this.plugins),this.getApiHolder(),{...Wt,routeBindings:Ys(this.bindRoutes)}},[a]);n||(n=!0,Fs(x.paths,x.parents),$s(N,this.plugins));const X=oi(this.configLoader,this.components,S),ot="api"in X;if(ot){const{api:Ot}=X;this.configApi=Ot}if("node"in X)return X.node;if(ot&&l.current){l.current=!1;const Ot=this.getApiHolder().get(hn.B);if(Ot){for(const ee of this.featureFlags)Ot.registerFlag({...ee,pluginId:""});for(const ee of this.plugins.values())if("getFeatureFlags"in ee)for(const Ee of ee.getFeatureFlags())Ot.registerFlag({name:Ee.name,pluginId:ee.getId()});else for(const Ee of ee.output())Ee.type==="feature-flag"&&Ot.registerFlag({name:Ee.name,pluginId:ee.getId()});const Wt=Ot.getRegisteredFlags(),Ht=new Set(Wt.map(ee=>ee.name));for(const ee of L)Ht.has(ee)||Ot.registerFlag({name:ee,pluginId:""})}}const{ThemeProvider:ht=xr,Progress:yt}=this.components;return(0,i.jsx)(Go,{apis:this.getApiHolder(),children:(0,i.jsx)(Ws,{appContext:e,children:(0,i.jsx)(ht,{children:(0,i.jsx)(Us,{routePaths:x.paths,routeParents:x.parents,routeObjects:x.objects,routeBindings:N,basePath:Xs(X.api),children:(0,i.jsx)(Sr.Provider,{value:{routeObjects:x.objects,appIdentityProxy:this.appIdentityProxy},children:(0,i.jsx)(u.Suspense,{fallback:(0,i.jsx)(yt,{}),children:a})})})})})})}}getRouter(){return Pr}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 Qo.validateFactories(this.apiFactoryRegistry,this.apiFactoryRegistry.getAllApis()),this.apiHolder}this.apiFactoryRegistry.register("static",{api:no,deps:{},factory:()=>eo.createWithStorage(this.themes)}),this.apiFactoryRegistry.register("static",{api:ie.U,deps:{},factory:()=>{if(!this.configApi)throw new Error("Tried to access config API before config was loaded");return this.configApi}}),this.apiFactoryRegistry.register("static",{api:rn.K,deps:{},factory:()=>this.appIdentityProxy}),this.apiFactoryRegistry.register("static",{api:gr,deps:{},factory:()=>this.appLanguageApi}),this.apiFactoryRegistry.register("default",{api:Es.J,deps:{languageApi:gr},factory:({languageApi:e})=>er.create({languageApi:e,resources:this.translationResources})}),this.apiFactoryRegistry.register("default",{api:hn.B,deps:{},factory:()=>new ys});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 Qo.validateFactories(this.apiFactoryRegistry,this.apiFactoryRegistry.getAllApis()),this.apiHolder=new Qo(this.apiFactoryRegistry),this.apiHolder}verifyPlugins(e){const n=new Set;for(const s of e){const a=s.getId();if(n.has(a))throw new Error(`Duplicate plugin found '${a}'`);n.add(a)}}constructor(e){var n,s,a;(0,b._)(this,"apiHolder",void 0),(0,b._)(this,"configApi",void 0),(0,b._)(this,"apis",void 0),(0,b._)(this,"icons",void 0),(0,b._)(this,"plugins",void 0),(0,b._)(this,"featureFlags",void 0),(0,b._)(this,"components",void 0),(0,b._)(this,"themes",void 0),(0,b._)(this,"configLoader",void 0),(0,b._)(this,"defaultApis",void 0),(0,b._)(this,"bindRoutes",void 0),(0,b._)(this,"appLanguageApi",void 0),(0,b._)(this,"translationResources",void 0),(0,b._)(this,"appIdentityProxy",new ks),(0,b._)(this,"apiFactoryRegistry",void 0),(0,ue._)(this,or,{writable:!0,value:!1});var l;this.apis=(l=e.apis)!==null&&l!==void 0?l:[],this.icons=e.icons;var S;this.plugins=new Set((S=e.plugins)!==null&&S!==void 0?S:[]);var x;this.featureFlags=(x=e.featureFlags)!==null&&x!==void 0?x:[],this.components=e.components,this.themes=e.themes;var L;this.configLoader=(L=e.configLoader)!==null&&L!==void 0?L:Cr;var N;this.defaultApis=(N=e.defaultApis)!==null&&N!==void 0?N:[],this.bindRoutes=e.bindRoutes,this.apiFactoryRegistry=new As,this.appLanguageApi=co.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 X;this.translationResources=(X=(a=e.__experimentalTranslations)===null||a===void 0?void 0:a.resources)!==null&&X!==void 0?X:[]}}function ii(r){return new si(r)}function ai(r){var e,n,s,a;return ii({...r,apis:(e=r==null?void 0:r.apis)!==null&&e!==void 0?e:[],bindRoutes:r==null?void 0:r.bindRoutes,components:{...j,...r==null?void 0:r.components},configLoader:r==null?void 0:r.configLoader,defaultApis:Ro,icons:{...Jn,...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 po=t(82442);let jr=!1;const Mr=r=>{const e=(0,br.n)(),{NotFoundErrorPage:n}=e.getComponents(),s=(0,u.useMemo)(()=>Mn(),[]),l=[...(0,po.O)(r.children,S=>S.getElements().flatMap(x=>{let L=x.props.path;if(L==="")return[];var N;L=(N=L==null?void 0:L.replace(/\/\*$/,""))!==null&&N!==void 0?N:"/";let X=s?x:x.props.element;return!s&&!X&&(X=x,jr||(console.warn("DEPRECATION WARNING: All elements within <FlatRoutes> must be of type <Route> with an element prop. Existing usages of <Navigate key=[path] to=[to] /> should be replaced with <Route path=[path] element={<Navigate to=[to] />} />."),jr=!0)),[{path:L,element:X,children:x.props.children?[{path:L==="/"?"/":"*",element:x.props.children}]:void 0}]}).sort((x,L)=>L.path.localeCompare(x.path)).map(x=>({...x,path:x.path==="/"?"/":`${x.path}/*`}))),{path:"*",element:(0,i.jsx)(n,{})}];return(0,m.Ye)(l)};(0,Ie.h)(Mr,"core.type","FlatRoutes");var en=t(6820),li=t(78692),ci=t(86519);function Br(r){return!r.cursor}function Fa(r){return!Br(r)}const xe="catalog";var Ce=t(94214);class di{async analyzeLocation(e,n){const s=await this.discoveryApi.getBaseUrl(xe),l=Ce.parse("/analyze-location").expand({});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"POST",body:JSON.stringify(e.body)})}async createLocation(e,n){const s=await this.discoveryApi.getBaseUrl(xe),l=Ce.parse("/locations{?dryRun}").expand({...e.query});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"POST",body:JSON.stringify(e.body)})}async deleteEntityByUid(e,n){const s=await this.discoveryApi.getBaseUrl(xe),l=Ce.parse("/entities/by-uid/{uid}").expand({uid:e.path.uid});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"DELETE"})}async deleteLocation(e,n){const s=await this.discoveryApi.getBaseUrl(xe),l=Ce.parse("/locations/{id}").expand({id:e.path.id});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"DELETE"})}async getEntities(e,n){const s=await this.discoveryApi.getBaseUrl(xe),l=Ce.parse("/entities{?fields,limit,filter*,offset,after,order*}").expand({...e.query});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"GET"})}async getEntitiesByQuery(e,n){const s=await this.discoveryApi.getBaseUrl(xe),l=Ce.parse("/entities/by-query{?fields,limit,orderField*,cursor,filter*,fullTextFilterTerm,fullTextFilterFields}").expand({...e.query});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"GET"})}async getEntitiesByRefs(e,n){const s=await this.discoveryApi.getBaseUrl(xe),l=Ce.parse("/entities/by-refs").expand({});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"POST",body:JSON.stringify(e.body)})}async getEntityAncestryByName(e,n){const s=await this.discoveryApi.getBaseUrl(xe),l=Ce.parse("/entities/by-name/{kind}/{namespace}/{name}/ancestry").expand({kind:e.path.kind,namespace:e.path.namespace,name:e.path.name});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"GET"})}async getEntityByName(e,n){const s=await this.discoveryApi.getBaseUrl(xe),l=Ce.parse("/entities/by-name/{kind}/{namespace}/{name}").expand({kind:e.path.kind,namespace:e.path.namespace,name:e.path.name});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"GET"})}async getEntityByUid(e,n){const s=await this.discoveryApi.getBaseUrl(xe),l=Ce.parse("/entities/by-uid/{uid}").expand({uid:e.path.uid});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"GET"})}async getEntityFacets(e,n){const s=await this.discoveryApi.getBaseUrl(xe),l=Ce.parse("/entity-facets{?facet*,filter*}").expand({...e.query});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"GET"})}async getLocation(e,n){const s=await this.discoveryApi.getBaseUrl(xe),l=Ce.parse("/locations/{id}").expand({id:e.path.id});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"GET"})}async getLocationByEntity(e,n){const s=await this.discoveryApi.getBaseUrl(xe),l=Ce.parse("/locations/by-entity/{kind}/{namespace}/{name}").expand({kind:e.path.kind,namespace:e.path.namespace,name:e.path.name});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"GET"})}async getLocations(e,n){const s=await this.discoveryApi.getBaseUrl(xe),l=Ce.parse("/locations").expand({});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"GET"})}async refreshEntity(e,n){const s=await this.discoveryApi.getBaseUrl(xe),l=Ce.parse("/refresh").expand({});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"POST",body:JSON.stringify(e.body)})}async validateEntity(e,n){const s=await this.discoveryApi.getBaseUrl(xe),l=Ce.parse("/validate-entity").expand({});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"POST",body:JSON.stringify(e.body)})}constructor(e){(0,b._)(this,"discoveryApi",void 0),(0,b._)(this,"fetchApi",void 0),this.discoveryApi=e.discoveryApi,this.fetchApi=e.fetchApi||{fetch:Kn()}}}class ui{async getEntityAncestors(e,n){return await this.requestRequired(await this.apiClient.getEntityAncestryByName({path:(0,en.KU)(e.entityRef)},n))}async getLocationById(e,n){return await this.requestOptional(await this.apiClient.getLocation({path:{id:e}},n))}async getLocationByEntity(e,n){return await this.requestOptional(await this.apiClient.getLocationByEntity({path:(0,en.KU)(e)},n))}async getEntities(e,n){const{filter:s=[],fields:a=[],order:l,offset:S,limit:x,after:L}=e!=null?e:{},N=[];if(l)for(const ht of[l].flat())ht&&N.push(`${ht.order}:${ht.field}`);const X=await this.requestRequired(await this.apiClient.getEntities({query:{fields:a,limit:x,filter:this.getFilterValue(s),offset:S,after:L,order:l?N:void 0}},n)),ot=(ht,yt)=>{var Ot,Wt;if(((Ot=ht.metadata)===null||Ot===void 0?void 0:Ot.name)===void 0||ht.kind===void 0||((Wt=yt.metadata)===null||Wt===void 0?void 0:Wt.name)===void 0||yt.kind===void 0)return 0;const Ht=(0,en.U2)(ht),ee=(0,en.U2)(yt);return Ht<ee?-1:Ht>ee?1:0};return{items:X.sort(ot)}}async getEntitiesByRefs(e,n){const s=await this.apiClient.getEntitiesByRefs({body:e},n);if(!s.ok)throw await qe.o.fromResponse(s);const{items:a}=await s.json();return{items:a.map(l=>l!=null?l:void 0)}}async queryEntities(e={},n){const s={};if(Br(e)){var a,l;const{fields:S=[],filter:x,limit:L,orderFields:N,fullTextFilter:X}=e;s.filter=this.getFilterValue(x),L!==void 0&&(s.limit=L),N!==void 0&&(s.orderField=(Array.isArray(N)?N:[N]).map(({field:ht,order:yt})=>`${ht},${yt}`)),S.length&&(s.fields=S);const ot=X==null||(a=X.term)===null||a===void 0?void 0:a.trim();ot&&(s.fullTextFilterTerm=ot),!(X==null||(l=X.fields)===null||l===void 0)&&l.length&&(s.fullTextFilterFields=X.fields)}else{const{fields:S=[],limit:x,cursor:L}=e;s.cursor=L,x!==void 0&&(s.limit=x),S.length&&(s.fields=S)}return this.apiClient.getEntitiesByQuery({query:s},n).then(S=>S.json())}async getEntityByRef(e,n){return this.requestOptional(await this.apiClient.getEntityByName({path:(0,en.KU)(e)},n))}async getEntityByName(e,n){const{kind:s,namespace:a="default",name:l}=e;return this.requestOptional(await this.apiClient.getEntityByName({path:{kind:s,namespace:a,name:l}},n))}async refreshEntity(e,n){const s=await this.apiClient.refreshEntity({body:{entityRef:e}},n);if(s.status!==200)throw new Error(await s.text())}async getEntityFacets(e,n){const{filter:s=[],facets:a}=e;return await this.requestOptional(await this.apiClient.getEntityFacets({query:{facet:a,filter:this.getFilterValue(s)}},n))}async addLocation(e,n){const{type:s="url",target:a,dryRun:l}=e,S=await this.apiClient.createLocation({body:{type:s,target:a},query:{dryRun:l?"true":void 0}},n);if(S.status!==201)throw new Error(await S.text());const{location:x,entities:L,exists:N}=await S.json();if(!x)throw new Error(`Location wasn't added: ${a}`);return{location:x,entities:L,exists:N}}async getLocationByRef(e,n){return(await this.requestRequired(await this.apiClient.getLocations({},n))).map(a=>a.data).find(a=>e===(0,li.KL)(a))}async removeLocationById(e,n){await this.requestIgnored(await this.apiClient.deleteLocation({path:{id:e}},n))}async removeEntityByUid(e,n){await this.requestIgnored(await this.apiClient.deleteEntityByUid({path:{uid:e}},n))}async validateEntity(e,n,s){const a=await this.apiClient.validateEntity({body:{entity:e,location:n}},s);if(a.ok)return{valid:!0};if(a.status!==400)throw await qe.o.fromResponse(a);const{errors:l=[]}=await a.json();return{valid:!1,errors:l}}async requestIgnored(e){if(!e.ok)throw await qe.o.fromResponse(e)}async requestRequired(e){if(!e.ok)throw await qe.o.fromResponse(e);return e.json()}async requestOptional(e){if(!e.ok){if(e.status===404)return;throw await qe.o.fromResponse(e)}return await e.json()}getFilterValue(e=[]){const n=[];for(const s of[e].flat()){const a=[];for(const[l,S]of Object.entries(s))for(const x of[S].flat())x===ci.c?a.push(l):typeof x=="string"&&a.push(`${l}=${x}`);a.length&&n.push(a.join(","))}return n}constructor(e){(0,b._)(this,"apiClient",void 0),this.apiClient=new di(e)}}var Ur=t(7341),hi=t(18),fi=t(82292),Fr=t(29207),yn=t(95203),gi=t(9803),Be=t(88758),pi=t(54560),En=t(45250);async function vi({storageApi:r}){const e=r.forBucket("settings"),n=r.forBucket("starredEntities"),s=e.snapshot("starredEntities").value;if(!(0,En.isArray)(s))return;var a;const l=new Set((a=n.snapshot("entityRefs").value)!==null&&a!==void 0?a:[]);s.filter(En.isString).map(S=>S.split(":")).filter(S=>S.length===4&&S[0]==="entity").map(([S,x,L,N])=>(0,en.U2)({kind:x,namespace:L,name:N})).forEach(S=>l.add(S)),await n.set("entityRefs",Array.from(l)),await e.remove("starredEntities")}class mi{async toggleStarred(e){this.starredEntities.has(e)?this.starredEntities.delete(e):this.starredEntities.add(e),await this.settingsStore.set("entityRefs",Array.from(this.starredEntities))}starredEntitie$(){return this.observable}notifyChanges(){for(const e of this.subscribers)e.next(new Set(this.starredEntities))}constructor(e){(0,b._)(this,"settingsStore",void 0),(0,b._)(this,"starredEntities",void 0),(0,b._)(this,"subscribers",new Set),(0,b._)(this,"observable",new(z())(s=>(s.next(new Set(this.starredEntities)),this.subscribers.add(s),()=>{this.subscribers.delete(s)}))),vi(e).then(),this.settingsStore=e.storageApi.forBucket("starredEntities");var n;this.starredEntities=new Set((n=this.settingsStore.snapshot("entityRefs").value)!==null&&n!==void 0?n:[]),this.settingsStore.observe$("entityRefs").subscribe({next:s=>{var a;this.starredEntities=new Set((a=s.value)!==null&&a!==void 0?a:[]),this.notifyChanges()}})}}function rr(r){const{years:e=0,months:n=0,weeks:s=0,days:a=0,hours:l=0,minutes:S=0,seconds:x=0,milliseconds:L=0}=r;return((((e*365+n*30+s*7+a)*24+l)*60+S)*60+x)*1e3+L}var yi=t(25033),Ei=t.n(yi),Ai=t(25295),xi=t.n(Ai),Ci=t(88083);const Si={seconds:10},bi={milliseconds:50},Oi={api:Vn.A,component:Yn.A,system:Hn.A,resource:Qn.A,domain:xn.A,location:Gn.A,user:bn.A,group:Sn.A,template:Zn.A};function $r(r){return{async:r.async,render:({entityRef:e,entity:n,context:s})=>({snapshot:(0,Ci.T)(n||e,s),loadEntity:r.async})}}var vo=new WeakMap,sr=new WeakMap,mo=new WeakMap,ir=new WeakMap,yo=new WeakMap,Nr=new WeakSet,Wr=new WeakSet,kr=new WeakSet;class Eo{static createLocal(){return new Eo({renderer:$r({async:!1})})}static create(e){return new Eo(e)}forEntity(e,n){const{entityRef:s,kind:a,entity:l,needsLoad:S}=(0,Ne._)(this,Nr,wi).call(this,e),x=X=>{const{snapshot:ot}=(0,Rt._)(this,yo).render({entityRef:s,loading:X.loading,entity:X.entity,context:n||{}});return{...ot,entityRef:s,Icon:(0,Ne._)(this,kr,Ti).call(this,ot.Icon,a)}};let L;try{L=x({loading:S,entity:l})}catch{L={primaryTitle:s,entityRef:s}}const N=S?new(z())(X=>{let ot=!1;return Promise.resolve().then(()=>{var ht;return(ht=(0,Rt._)(this,mo))===null||ht===void 0?void 0:ht.load(s)}).then(ht=>{if(!ot&&ht&&ht.metadata.etag!==(l==null?void 0:l.metadata.etag)){const yt=x({loading:!1,entity:ht});X.next(yt)}}).catch(()=>{}).finally(()=>{ot||X.complete()}),()=>{ot=!0}}):void 0;return{snapshot:L,update$:N}}constructor(e){(0,sn._)(this,Nr),(0,sn._)(this,Wr),(0,sn._)(this,kr),(0,ue._)(this,vo,{writable:!0,value:void 0}),(0,ue._)(this,sr,{writable:!0,value:void 0}),(0,ue._)(this,mo,{writable:!0,value:void 0}),(0,ue._)(this,ir,{writable:!0,value:void 0}),(0,ue._)(this,yo,{writable:!0,value:void 0});var n;const s=(n=e.cacheTtl)!==null&&n!==void 0?n:Si;var a;const l=(a=e.batchDelay)!==null&&a!==void 0?a:bi;var S;const x=(S=e.renderer)!==null&&S!==void 0?S:$r({async:!0}),L={};Object.entries(Oi).forEach(([X,ot])=>{L[X.toLocaleLowerCase("en-US")]=ot});var N;if(Object.entries((N=e.kindIcons)!==null&&N!==void 0?N:{}).forEach(([X,ot])=>{L[X.toLocaleLowerCase("en-US")]=ot}),x.async){if(!e.catalogApi)throw new TypeError("Asynchronous rendering requires a catalog API");(0,h._)(this,mo,(0,Ne._)(this,Wr,Pi).call(this,{cacheTtl:s,batchDelay:l,renderer:x,catalogApi:e.catalogApi}))}(0,h._)(this,sr,rr(s)),(0,h._)(this,vo,new Map),(0,h._)(this,ir,L),(0,h._)(this,yo,x)}}function wi(r){if(typeof r!="string")return{entity:r,kind:r.kind,entityRef:(0,en.U2)(r),needsLoad:!1};const e=(0,Rt._)(this,vo).get(r),n=e==null?void 0:e.entity,a=(!e||Date.now()-e.updatedAt>(0,Rt._)(this,sr))&&(0,Rt._)(this,yo).async!==!1&&(0,Rt._)(this,mo)!==void 0;return{entity:n,kind:(0,en.KU)(r).kind,entityRef:r,needsLoad:a}}function Pi(r){const e=rr(r.cacheTtl),n=rr(r.batchDelay);return new(Ei())(async s=>{const{items:a}=await r.catalogApi.getEntitiesByRefs({entityRefs:s}),l=Date.now();return s.forEach((S,x)=>{(0,Rt._)(this,vo).set(S,{updatedAt:l,entity:a[x]})}),a},{name:"DefaultEntityPresentationApi",cacheMap:new(xi())(e),maxBatchSize:100,batchScheduleFn:n?s=>setTimeout(s,n):void 0})}function Ti(r,e){return r||(r===!1?!1:(0,Rt._)(this,ir)[e.toLocaleLowerCase("en-US")])}const Le=(0,gi.i)({id:"catalog",apis:[(0,kt.b)({api:Ur.v,deps:{discoveryApi:ne.I,fetchApi:kn.a},factory:({discoveryApi:r,fetchApi:e})=>new ui({discoveryApi:r,fetchApi:e})}),(0,kt.b)({api:hi.a,deps:{storageApi:Wn},factory:({storageApi:r})=>new mi({storageApi:r})}),(0,kt.b)({api:fi.n,deps:{catalogApi:Ur.v},factory:({catalogApi:r})=>Eo.create({catalogApi:r})})],routes:{catalogIndex:yn.rQ,catalogEntity:Fr.s},externalRoutes:{createComponent:yn.qP,viewTechDoc:yn.UJ,createFromTemplate:yn.Zg,unregisterRedirect:yn.pS}}),$a=Le.provide((0,Be.QJ)({name:"CatalogIndexPage",component:()=>Promise.all([t.e(3720),t.e(5011),t.e(2490)]).then(t.bind(t,22490)).then(r=>r.CatalogPage),mountPoint:yn.rQ})),Ri=Le.provide((0,Be.QJ)({name:"CatalogEntityPage",component:()=>t.e(4516).then(t.bind(t,54516)).then(r=>r.CatalogEntityPage),mountPoint:Fr.s})),Na=Le.provide((0,Be.NC)({name:"EntityAboutCard",component:{lazy:()=>Promise.all([t.e(3720),t.e(5977),t.e(1833)]).then(t.bind(t,61833)).then(r=>r.AboutCard)}})),Wa=Le.provide((0,Be.NC)({name:"EntityLinksCard",component:{lazy:()=>t.e(8307).then(t.bind(t,18307)).then(r=>r.EntityLinksCard)}})),ka=Le.provide((0,Be.NC)({name:"EntityLabelsCard",component:{lazy:()=>t.e(3182).then(t.bind(t,63182)).then(r=>r.EntityLabelsCard)}})),Ka=Le.provide((0,Be.NC)({name:"EntityHasSystemsCard",component:{lazy:()=>t.e(9652).then(t.bind(t,9652)).then(r=>r.HasSystemsCard)}})),za=Le.provide((0,Be.NC)({name:"EntityHasComponentsCard",component:{lazy:()=>t.e(2420).then(t.bind(t,52420)).then(r=>r.HasComponentsCard)}})),Ha=Le.provide((0,Be.NC)({name:"EntityHasSubcomponentsCard",component:{lazy:()=>t.e(8384).then(t.bind(t,78384)).then(r=>r.HasSubcomponentsCard)}})),Va=Le.provide((0,Be.NC)({name:"EntityHasResourcesCard",component:{lazy:()=>t.e(6271).then(t.bind(t,56271)).then(r=>r.HasResourcesCard)}})),Ga=Le.provide((0,Be.NC)({name:"EntityDependsOnComponentsCard",component:{lazy:()=>t.e(3632).then(t.bind(t,3632)).then(r=>r.DependsOnComponentsCard)}})),Ya=Le.provide((0,Be.NC)({name:"EntityDependencyOfComponentsCard",component:{lazy:()=>t.e(124).then(t.bind(t,124)).then(r=>r.DependencyOfComponentsCard)}})),Qa=Le.provide((0,Be.NC)({name:"EntityDependsOnResourcesCard",component:{lazy:()=>t.e(287).then(t.bind(t,20287)).then(r=>r.DependsOnResourcesCard)}})),Za=Le.provide((0,Be.NC)({name:"RelatedEntitiesCard",component:{lazy:()=>t.e(2401).then(t.bind(t,52401)).then(r=>r.RelatedEntitiesCard)}})),Ja=Le.provide((0,pi.ec)({name:"CatalogSearchResultListItem",component:()=>t.e(1297).then(t.bind(t,61297)).then(r=>r.CatalogSearchResultListItem),predicate:r=>r.type==="software-catalog"}));var Kr=t(43320),zr=t(26679);class Ii{async getApiOrigin(){return await this.discoveryApi.getBaseUrl("techdocs")}async getStorageUrl(){return`${await this.discoveryApi.getBaseUrl("techdocs")}/static/docs`}async getBuilder(){return this.configApi.getString("techdocs.builder")}async getEntityDocs(e,n){const a=`${await this.getApiOrigin()}/${n}`,l=await fetch(`${a.endsWith("/")?a:`${a}/`}index.html`);if(l.status===404)throw new Error("Page not found");return l.text()}async syncEntityDocs(e){return"cached"}async getBaseUrl(e,n,s){const a=await this.getApiOrigin();return new URL(e,`${a}/${s}`).toString()}constructor({configApi:e,discoveryApi:n,identityApi:s}){(0,b._)(this,"configApi",void 0),(0,b._)(this,"discoveryApi",void 0),(0,b._)(this,"identityApi",void 0),this.configApi=e,this.discoveryApi=n,this.identityApi=s}}class Di{async getApiOrigin(){return await this.discoveryApi.getBaseUrl("techdocs")}async getEntityMetadata(e){return{apiVersion:"backstage.io/v1alpha1",kind:"Component",metadata:{name:"local"},spec:{owner:"test",lifecycle:"experimental"}}}async getTechDocsMetadata(e){return{site_name:"Live preview environment",site_description:""}}constructor({configApi:e,discoveryApi:n,identityApi:s}){(0,b._)(this,"configApi",void 0),(0,b._)(this,"discoveryApi",void 0),(0,b._)(this,"identityApi",void 0),this.configApi=e,this.discoveryApi=n,this.identityApi=s}}const Li=[(0,kt.b)({api:zr.s,deps:{configApi:ie.U,discoveryApi:ne.I,identityApi:rn.K},factory:({configApi:r,discoveryApi:e,identityApi:n})=>new Ii({configApi:r,discoveryApi:e,identityApi:n})}),(0,kt.b)({api:zr.l,deps:{configApi:ie.U,discoveryApi:ne.I,identityApi:rn.K},factory:({configApi:r,discoveryApi:e,identityApi:n})=>new Di({configApi:r,discoveryApi:e,identityApi:n})}),(0,kt.b)({api:Kr.Y,deps:{configApi:ie.U},factory:({configApi:r})=>Kr.L.fromConfig(r)})],ji={backend:{baseUrl:"http://localhost:3000"},techdocs:{builder:"external"}},Mi={backend:{baseUrl:"http://localhost:7007"},techdocs:{builder:"external"}};async function Bi(){const r=await fetch("/.detect");return r.ok?(await r.text()).trim()==="techdocs-cli-server":!1}async function Ui(){const r=await Cr(),e=await Bi();return[...r,{context:"detected",data:e?ji:Mi}]}var Ze=t(58837),Fi=t(3210);const $i=(0,Ze.A)({svg:{width:"auto",height:30},path:{fill:"#7df3e1"}});var Ni=()=>{const r=$i();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 Wi=(0,Ze.A)({svg:{width:"auto",height:28},path:{fill:"#7df3e1"}});var ki=()=>{const r=Wi();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"})})},Se=t(72664);const Hr={isOpen:!1,setOpen:()=>{}},Vr=(0,u.createContext)(Hr),Gr=(0,qn.tK)("sidebar-open-state-context");function Yr(r){const{children:e,value:n}=r;return(0,i.jsx)(Vr.Provider,{value:n,children:(0,i.jsx)(Gr.Provider,{value:(0,to.B)({1:n}),children:e})})}const ar=()=>{const r=(0,u.useContext)(Gr),e=(0,u.useContext)(Vr);if(r===void 0)return e||Hr;const n=r.atVersion(1);if(n===void 0)throw new Error("No context found for version 1.");return n};var Qr=t(72072),Zr=t(73524),nn=t(10394),Jr=t(5893),Ki=t(53373),ln=t.n(Ki),zi=t(1125),Xr=t(29365),Hi=t(73845),lr=t(72501),Vi=t(32881),Gi=t(27326),Yi=t(13085);const _r=(0,u.createContext)({selectedMenuItemIndex:-1,setSelectedMenuItemIndex:()=>{}});var cr=t(34435);const Qi=(0,Ze.A)(r=>({root:{flexGrow:0,margin:r.spacing(0,2),color:r.palette.navigation.color},selected:e=>({color:`${r.palette.navigation.selectedColor}!important`,borderTop:`solid ${e.sidebarConfig.selectedIndicatorWidth}px ${r.palette.navigation.indicator}`,marginTop:"-1px"}),label:{display:"none"}})),Zi=r=>{const{to:e,label:n,icon:s,value:a}=r,{sidebarConfig:l}=(0,u.useContext)(Se.yY),S=Qi({sidebarConfig:l}),x=(0,m.zy)(),{selectedMenuItemIndex:L,setSelectedMenuItemIndex:N}=(0,u.useContext)(_r),X=(ht,yt)=>{N(yt===L?-1:yt)},ot=a===L&&L>=0||a!==L&&!(L>=0)&&e===x.pathname;return(0,i.jsx)(Yi.A,{"aria-label":n,label:n,icon:s,component:Qr.N_,to:e||x.pathname,onChange:X,value:a,selected:ot,classes:S})},qr=r=>{const{children:e,to:n,label:s,icon:a,value:l}=r,{isMobile:S}=(0,cr.Ut)();return S?(0,i.jsx)(Zi,{to:n,label:s,icon:a,value:l}):(0,i.jsx)(i.Fragment,{children:e})},ts=(0,Ze.A)(r=>({root:{position:"fixed",backgroundColor:r.palette.navigation.background,color:r.palette.navigation.color,bottom:0,left:0,right:0,zIndex:r.zIndex.snackbar,borderTop:"1px solid #383838","@media print":{display:"none"}},overlay:e=>({background:r.palette.navigation.background,width:"100%",bottom:`${e.sidebarConfig.mobileSidebarHeight}px`,height:`calc(100% - ${e.sidebarConfig.mobileSidebarHeight}px)`,flex:"0 1 auto",overflow:"auto"}),overlayHeader:{display:"flex",color:r.palette.navigation.color,alignItems:"center",justifyContent:"space-between",padding:r.spacing(2,3)},overlayHeaderClose:{color:r.palette.navigation.color},marginMobileSidebar:e=>({marginBottom:`${e.sidebarConfig.mobileSidebarHeight}px`})})),Ji=r=>(0,En.orderBy)(r,({props:{priority:e}})=>Number.isInteger(e)?e:-1,"desc"),Xi=u.createElement(qr).type,_i=({children:r,label:e="Menu",open:n,onClose:s})=>{const{sidebarConfig:a}=(0,u.useContext)(Se.yY),l=ts({sidebarConfig:a});return(0,i.jsxs)(Hi.Ay,{anchor:"bottom",open:n,onClose:s,ModalProps:{BackdropProps:{classes:{root:l.marginMobileSidebar}}},classes:{root:l.marginMobileSidebar,paperAnchorBottom:l.overlay},children:[(0,i.jsxs)(nn.A,{className:l.overlayHeader,children:[(0,i.jsx)(lr.A,{variant:"h3",children:e}),(0,i.jsx)(Xr.A,{onClick:s,classes:{root:l.overlayHeaderClose},children:(0,i.jsx)(Vi.A,{})})]}),(0,i.jsx)(nn.A,{component:"nav",children:r})]})},qi=r=>{const{sidebarConfig:e}=(0,u.useContext)(Se.yY),{children:n}=r,s=ts({sidebarConfig:e}),a=(0,m.zy)(),[l,S]=(0,u.useState)(-1);(0,u.useEffect)(()=>{S(-1)},[a.pathname]);let x=(0,po.O)(n,N=>N.getElements().filter(X=>X.type===Xi));if(n)x.length?x=Ji(x):x.push((0,i.jsx)(qr,{icon:(0,i.jsx)(Gi.A,{}),children:n},"default_menu"));else return null;const L=l>=0&&!x[l].props.to;return(0,i.jsx)(Yr,{value:{isOpen:!0,setOpen:()=>{}},children:(0,i.jsxs)(_r.Provider,{value:{selectedMenuItemIndex:l,setSelectedMenuItemIndex:S},children:[(0,i.jsx)(_i,{label:x[l]&&x[l].props.label,open:L,onClose:()=>S(-1),children:x[l]&&x[l].props.children}),(0,i.jsx)(zi.A,{className:s.root,"data-testid":"mobile-sidebar-root",component:"nav",children:x})]})})},es=(0,Ze.A)(r=>({drawer:{display:"flex",flexFlow:"column nowrap",alignItems:"flex-start",position:"fixed",left:0,top:0,bottom:0,zIndex:r.zIndex.appBar,background:r.palette.navigation.background,overflowX:"hidden",msOverflowStyle:"none",scrollbarWidth:"none",transition:r.transitions.create("width",{easing:r.transitions.easing.sharp,duration:r.transitions.duration.shortest}),"& > *":{flexShrink:0},"&::-webkit-scrollbar":{display:"none"},"@media print":{display:"none"}},drawerWidth:e=>({width:e.sidebarConfig.drawerWidthClosed}),drawerOpen:e=>({width:e.sidebarConfig.drawerWidthOpen,transition:r.transitions.create("width",{easing:r.transitions.easing.sharp,duration:r.transitions.duration.shorter})}),visuallyHidden:{top:0,position:"absolute",zIndex:1e3,transform:"translateY(-200%)","&:focus":{transform:"translateY(5px)"}}}),{name:"BackstageSidebar"});var ns;(function(r){r[r.Closed=0]="Closed",r[r.Idle=1]="Idle",r[r.Open=2]="Open"})(ns||(ns={}));const ta=r=>{const{sidebarConfig:e}=(0,u.useContext)(Se.yY),{openDelayMs:n=e.defaultOpenDelayMs,closeDelayMs:s=e.defaultCloseDelayMs,disableExpandOnHover:a,children:l}=r,S=es({sidebarConfig:e}),x=(0,Jr.A)(ee=>ee.breakpoints.down("md"),{noSsr:!0}),[L,N]=(0,u.useState)(0),X=(0,u.useRef)(),{isPinned:ot,toggleSidebarPinState:ht}=(0,cr.Ut)(),yt=()=>{ot||a||(X.current&&(clearTimeout(X.current),X.current=void 0),L!==2&&!x&&(X.current=window.setTimeout(()=>{X.current=void 0,N(2)},n),N(1)))},Ot=()=>{ot||a||(X.current&&(clearTimeout(X.current),X.current=void 0),L===1?N(0):L===2&&(X.current=window.setTimeout(()=>{X.current=void 0,N(0)},s)))},Wt=L===2&&!x||ot,Ht=ee=>{ee?(N(2),ht()):(N(0),ht())};return(0,i.jsxs)("nav",{style:{},"aria-label":"sidebar nav",children:[(0,i.jsx)(na,{}),(0,i.jsx)(Yr,{value:{isOpen:Wt,setOpen:Ht},children:(0,i.jsx)(nn.A,{className:S.root,"data-testid":"sidebar-root",onMouseEnter:a?()=>{}:yt,onFocus:a?()=>{}:yt,onMouseLeave:a?()=>{}:Ot,onBlur:a?()=>{}:Ot,children:(0,i.jsx)(nn.A,{className:ln()(S.drawer,S.drawerWidth,{[S.drawerOpen]:Wt}),children:l})})})]})},ea=r=>{var e;const n=(0,Se.Rv)((e=r.sidebarOptions)!==null&&e!==void 0?e:{});var s;const a=(0,Se.i8)((s=r.submenuOptions)!==null&&s!==void 0?s:{}),{children:l,disableExpandOnHover:S,openDelayMs:x,closeDelayMs:L}=r,{isMobile:N}=(0,cr.Ut)();return N?(0,i.jsx)(qi,{children:l}):(0,i.jsx)(Se.yY.Provider,{value:{sidebarConfig:n,submenuConfig:a},children:(0,i.jsx)(ta,{openDelayMs:x,closeDelayMs:L,disableExpandOnHover:S,children:l})})};function na(){const{sidebarConfig:r}=(0,u.useContext)(Se.yY),{focusContent:e,contentRef:n}=(0,Zr.H)(),s=es({sidebarConfig:r});return n!=null&&n.current?(0,i.jsx)(A.A,{onClick:e,variant:"contained",className:ln()(s.visuallyHidden),children:"Skip to content"}):null}var oa=t(94509),Ao=t(44209),ra=t(79065),sa=t(55704),os=t(62248);const ia=(0,Ze.A)(r=>({root:{zIndex:1e3,position:"relative",overflow:"visible",width:r.spacing(7)+1},drawer:e=>{var n,s;return{display:"flex",flexFlow:"column nowrap",alignItems:"flex-start",position:"fixed",[r.breakpoints.up("sm")]:{marginLeft:e.left,transition:r.transitions.create("margin-left",{easing:r.transitions.easing.sharp,duration:r.transitions.duration.shortest})},top:0,bottom:0,padding:0,background:(s=(n=r.palette.navigation.submenu)===null||n===void 0?void 0:n.background)!==null&&s!==void 0?s:"#404040",overflowX:"hidden",msOverflowStyle:"none",scrollbarWidth:"none",cursor:"default",width:e.submenuConfig.drawerWidthClosed,transitionDelay:`${e.submenuConfig.defaultOpenDelayMs}ms`,"& > *":{flexShrink:0},"&::-webkit-scrollbar":{display:"none"}}},drawerOpen:e=>({width:e.submenuConfig.drawerWidthOpen,[r.breakpoints.down("xs")]:{width:"100%",position:"relative",paddingLeft:r.spacing(3),left:0,top:0}}),title:{fontSize:r.typography.h5.fontSize,fontWeight:r.typography.fontWeightMedium,color:r.palette.common.white,padding:r.spacing(2.5),[r.breakpoints.down("xs")]:{display:"none"}}}),{name:"BackstageSidebarSubmenu"}),aa=r=>{const{isOpen:e}=ar(),{sidebarConfig:n,submenuConfig:s}=(0,u.useContext)(Se.yY),a=e?n.drawerWidthOpen:n.drawerWidthClosed,l=ia({left:a,submenuConfig:s}),{isHoveredOn:S}=(0,u.useContext)(Se.U1),[x,L]=(0,u.useState)(!1);return(0,u.useEffect)(()=>{L(S)},[S]),(0,i.jsxs)(nn.A,{className:ln()(l.drawer,{[l.drawerOpen]:x}),children:[(0,i.jsx)(lr.A,{variant:"h5",component:"span",className:l.title,children:r.title}),r.children]})};var la=t(45810),rs=t.n(la);function ss(r,e,n=!1){const s=new URLSearchParams(e.search).toString(),a=rs().parse(s),l=new URLSearchParams(r.search).toString(),S=rs().parse(l),x=n?En.isEqual:En.isMatch;return(0,En.isEqual)(e.pathname,r.pathname)&&x(S,a)}const ca=r=>(0,Ze.A)(e=>{var n,s,a,l;return{root:{color:e.palette.navigation.color,display:"flex",flexFlow:"row nowrap",alignItems:"center",height:48,cursor:"pointer"},buttonItem:{background:"none",border:"none",width:"100%",margin:0,padding:0,textAlign:"inherit",font:"inherit",textTransform:"none"},closed:{width:r.drawerWidthClosed,justifyContent:"center"},open:{[e.breakpoints.up("sm")]:{width:r.drawerWidthOpen}},highlightable:{"&:hover":{background:(a=(n=e.palette.navigation.navItem)===null||n===void 0?void 0:n.hoverBackground)!==null&&a!==void 0?a:"#404040"}},highlighted:{background:(l=(s=e.palette.navigation.navItem)===null||s===void 0?void 0:s.hoverBackground)!==null&&l!==void 0?l:"#404040"},label:{fontWeight:"bold",whiteSpace:"nowrap",lineHeight:"auto",flex:"3 1 auto",width:"110px",overflow:"hidden","text-overflow":"ellipsis"},iconContainer:{boxSizing:"border-box",height:"100%",width:r.iconContainerWidth,marginRight:-e.spacing(2),display:"flex",alignItems:"center",justifyContent:"center",lineHeight:"0"},searchRoot:{marginBottom:12},searchField:{color:"#b5b5b5",fontWeight:e.typography.fontWeightBold,fontSize:e.typography.fontSize},searchFieldHTMLInput:{padding:e.spacing(2,0,2)},searchContainer:{width:r.drawerWidthOpen-r.iconContainerWidth},secondaryAction:{width:e.spacing(6),textAlign:"center",marginRight:e.spacing(1)},closedItemIcon:{width:"100%",justifyContent:"center"},submenuArrow:{display:"flex"},expandButton:{background:"none",border:"none",color:e.palette.navigation.color,width:"100%",cursor:"pointer",position:"relative",height:48},arrows:{position:"absolute",right:10},selected:{"&$root":{borderLeft:`solid ${r.selectedIndicatorWidth}px ${e.palette.navigation.indicator}`,color:e.palette.navigation.selectedColor},"&$closed":{width:r.drawerWidthClosed},"& $closedItemIcon":{paddingRight:r.selectedIndicatorWidth},"& $iconContainer":{marginLeft:-r.selectedIndicatorWidth}}}},{name:"BackstageSidebarItem"});function xo(r){return(0,u.useMemo)(()=>ca(r),[r])()}const da=(r,e)=>(0,po.O)(r.props.children,n=>{let s=!1;return n.getElements().forEach(({props:{to:a,dropdownItems:l}})=>{if(!s){if(l!=null&&l.length){l.forEach(({to:S})=>s=s||ss(e,(0,Ln.o1)(S)));return}a&&(s=ss(e,(0,Ln.o1)(a)))}}),s},[e.pathname]);function dr(r){return r.to===void 0}const ua=u.createElement(aa).type,ha=u.forwardRef(function({to:e,end:n,style:s,className:a,activeStyle:l,caseSensitive:S,activeClassName:x="active","aria-current":L="page",...N},X){let{pathname:ot}=(0,m.zy)(),{pathname:ht}=(0,m.x$)(e);S||(ot=ot.toLocaleLowerCase("en-US"),ht=ht.toLocaleLowerCase("en-US"));let yt=ot===ht;!yt&&!n&&(yt=ot.startsWith(`${ht}/`));const Ot=yt?L:void 0;return(0,i.jsx)(g.N_,{...N,to:e,ref:X,"aria-current":Ot,style:{...s,...yt?l:void 0},className:ln()([typeof a!="function"?a:void 0,yt?x:void 0])})}),is=(0,u.forwardRef)((r,e)=>{const{icon:n,text:s,hasNotifications:a=!1,hasSubmenu:l=!1,disableHighlight:S=!1,onClick:x,noTrack:L,children:N,className:X,...ot}=r,{sidebarConfig:ht}=(0,u.useContext)(Se.yY),yt=xo(ht),{isOpen:Ot}=ar(),Wt=!Ot&&l?{display:"flex",marginLeft:"20px"}:{lineHeight:"0"},Ht=(0,i.jsxs)(nn.A,{style:Wt,children:[(0,i.jsx)(n,{fontSize:"small"}),!Ot&&l?(0,i.jsx)(os.A,{fontSize:"small"}):(0,i.jsx)(i.Fragment,{})]}),ee=(0,i.jsx)(oa.A,{color:"secondary",variant:"dot",overlap:"circular",invisible:!a,className:ln()({[yt.closedItemIcon]:!Ot}),children:Ht}),Ee=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(nn.A,{"data-testid":"login-button",className:yt.iconContainer,children:ee}),s&&(0,i.jsx)(lr.A,{variant:"subtitle2",component:"span",className:yt.label,children:s}),(0,i.jsx)("div",{className:yt.secondaryAction,children:N})]}),Je=Ot?Ee:ee,$n={onClick:x,className:ln()(X,yt.root,Ot?yt.open:yt.closed,dr(r)&&yt.buttonItem,{[yt.highlightable]:!S})},ds=(0,Or.s)(),{pathname:ur}=(0,m.x$)(!dr(r)&&r.to?r.to:""),us=(0,u.useCallback)(ja=>{if(!L){const Ma="click",Ba=s!=null?s:"Sidebar Item",Ua=ur?{attributes:{to:ur}}:void 0;ds.captureEvent(Ma,Ba,Ua)}x==null||x(ja)},[ds,s,ur,L,x]);return dr(r)?(0,i.jsx)(A.A,{role:"button","aria-label":s,...$n,ref:e,onClick:us,children:Je}):(0,i.jsx)(ha,{...$n,activeClassName:yt.selected,to:r.to?r.to:"",ref:e,"aria-label":s||r.to,...ot,onClick:us,children:Je})}),fa=({children:r,...e})=>{const{sidebarConfig:n}=(0,u.useContext)(Se.yY),s=xo(n),[a,l]=(0,u.useState)(!1),S=(0,m.zy)(),x=da(r,S),L=(0,Jr.A)(ht=>ht.breakpoints.down("sm")),N=()=>{l(!0)},X=()=>{l(!1)},ot=()=>L?a?(0,i.jsx)(sa.A,{fontSize:"small",className:s.submenuArrow}):(0,i.jsx)(ra.A,{fontSize:"small",className:s.submenuArrow}):!a&&(0,i.jsx)(os.A,{fontSize:"small",className:s.submenuArrow});return(0,i.jsx)(Se.U1.Provider,{value:{isHoveredOn:a,setIsHoveredOn:l},children:(0,i.jsxs)("div",{"data-testid":"item-with-submenu",onMouseLeave:X,onTouchStart:a?X:N,onMouseEnter:N,className:ln()(a&&s.highlighted),children:[(0,i.jsx)(is,{hasSubmenu:!0,className:x?s.selected:"",...e,children:ot()}),a&&r]})})},as=(0,u.forwardRef)((r,e)=>{const[n]=(0,po.O)(r.children,s=>s.getElements().filter(a=>a.type===ua));return n?(0,i.jsx)(fa,{...r,children:n}):(0,i.jsx)(is,{...r,ref:e})});function qa(r){const{sidebarConfig:e}=useContext(SidebarConfigContext),[n,s]=useState(""),a=xo(e),l=r.icon?r.icon:SearchIcon,S=()=>{r.onSearch(n),s("")},x=ot=>{ot.key==="Enter"&&(ot.preventDefault(),S())},L=ot=>{s(ot.target.value)},N=ot=>{ot.preventDefault(),ot.stopPropagation()},X=ot=>{S(),ot.preventDefault()};return _jsx(Box,{className:a.searchRoot,children:_jsx(as,{icon:l,to:r.to,onClick:X,disableHighlight:!0,children:_jsx(TextField,{placeholder:"Search",value:n,onClick:N,onChange:L,onKeyDown:x,className:a.searchContainer,InputProps:{disableUnderline:!0,className:a.searchField},inputProps:{className:a.searchFieldHTMLInput}})})})}const tl=(0,Ao.A)("div")({flex:1},{name:"BackstageSidebarSpace"}),el=(0,Ao.A)("div")({height:8},{name:"BackstageSidebarSpacer"}),ga=(0,Ao.A)("hr")(({theme:r})=>({height:1,width:"100%",background:"#383838",border:"none",margin:r.spacing(1.2,0)}),{name:"BackstageSidebarDivider"}),pa=r=>({overflowY:"auto","&::-webkit-scrollbar":{backgroundColor:r.palette.background.default,width:"5px",borderRadius:"5px"},"&::-webkit-scrollbar-thumb":{backgroundColor:r.palette.text.secondary,borderRadius:"5px"}}),nl=(0,Ao.A)("div")(({theme:r})=>{const e=pa(r);return{flex:"0 1 auto",overflowX:"hidden",width:"calc(100% - 5px)",minHeight:"48px",overflowY:"hidden","@media (hover: none)":e,"&:hover":e}}),ol=()=>{const{sidebarConfig:r}=useContext(SidebarConfigContext),e=xo(r),{isOpen:n,setOpen:s}=useSidebarOpenState();if(useMediaQuery(S=>S.breakpoints.down("md"),{noSsr:!0}))return null;const l=()=>{s(!n)};return _jsx(Button,{role:"button",onClick:l,className:e.expandButton,"aria-label":"Expand Sidebar","data-testid":"sidebar-expand-button",children:_jsx(Box,{className:e.arrows,children:n?_jsx(DoubleArrowLeft,{}):_jsx(DoubleArrowRight,{})})})},va=(0,Ze.A)({root:{width:Se.hC.drawerWidthClosed,height:3*Se.hC.logoHeight,display:"flex",flexFlow:"row nowrap",alignItems:"center",marginBottom:-14},link:{width:Se.hC.drawerWidthClosed,marginLeft:24}}),ma=()=>{const r=va(),{isOpen:e}=ar();return(0,i.jsx)("div",{className:r.root,children:(0,i.jsx)(Qr.N_,{to:"/docs/default/component/local/",underline:"none",className:r.link,children:e?(0,i.jsx)(Ni,{}):(0,i.jsx)(ki,{})})})},ya=({children:r})=>(0,i.jsxs)(Zr.G,{children:[(0,i.jsxs)(ea,{children:[(0,i.jsx)(ma,{}),(0,i.jsx)(ga,{}),(0,i.jsx)(as,{icon:Fi.A,to:"/docs/default/component/local",text:"Docs Preview"})]}),r]});var Ea=t(71677),Aa=t(62437),xa=t(55484),Ca=t(45061),Sa=t(16203);const ba=(0,Ze.A)(r=>({headerIcon:{color:r.palette.common.white,width:"32px",height:"32px"},content:{backgroundColor:r.palette.background.default},contentToolbar:{display:"flex",justifyContent:"flex-end",padding:0}}));var ls;(function(r){r.LIGHT="light",r.DARK="dark"})(ls||(ls={}));const Oa=()=>{const r=(0,Dn.gf)(no),e=ba(),[n,s]=(0,u.useState)(r.getActiveThemeId()==="dark"?"dark":"light"),a={light:{icon:xa.A,title:"Dark theme"},dark:{icon:Aa.A,title:"Light theme"}},{title:l,icon:S}=a[n],x=()=>{s(L=>{const N=L==="light"?"dark":"light";return r.setActiveThemeId(N),N})};return(0,i.jsx)(nn.A,{display:"flex",alignItems:"center",mr:2,children:(0,i.jsx)(Ea.Ay,{title:l,arrow:!0,children:(0,i.jsx)(Xr.A,{size:"small",onClick:x,children:(0,i.jsx)(S,{className:e.headerIcon})})})})},wa=()=>(0,i.jsxs)(f.Wj,{children:[(0,i.jsx)(Ca.T,{}),(0,i.jsx)(Sa.p,{withSearch:!1})]}),Pa=(0,i.jsx)(wa,{}),cs=ai({apis:Li,configLoader:Ui,plugins:Object.values(o)}),Ta=cs.getProvider(),Ra=cs.getRouter(),Ia=f.Ju.provide((0,c.Hr)({name:"ThemeToggleAddon",component:Oa,location:y.e.Header})),Da=(0,i.jsxs)(Mr,{children:[(0,i.jsx)(m.C5,{to:"/docs/default/component/local/"},"/"),(0,i.jsx)(m.qh,{path:"/catalog/:namespace/:kind/:name",element:(0,i.jsx)(Ri,{})}),(0,i.jsx)(m.qh,{path:"/docs",element:(0,i.jsx)(f.$j,{}),children:(0,i.jsx)(d.K,{})}),(0,i.jsxs)(m.qh,{path:"/docs/:namespace/:kind/:name/*",element:(0,i.jsx)(f.Wj,{}),children:[Pa,(0,i.jsx)(c.po,{children:(0,i.jsx)(Ia,{})})]})]});var La=()=>(0,i.jsx)(Ta,{children:(0,i.jsx)(Ra,{children:(0,i.jsx)(ya,{children:Da})})});C.createRoot(document.getElementById("root")).render((0,i.jsx)(La,{}))},43836:function(Z,T,t){"use strict";t.d(T,{qO:function(){return C},tK:function(){return u}});var o=t(14041),i=t(63544);function u(f){return(0,i.Q)(f,()=>(0,o.createContext)(void 0))}function C(f){return(0,o.useContext)(u(f))}function m(f){return{set(d){globalThis[`__@backstage/${f}__`]=createContext(createVersionedValueMap(d))},reset(){delete globalThis[`__@backstage/${f}__`]}}}},10602:function(Z,T,t){"use strict";t.d(T,{B:function(){return o}});function o(i){Object.freeze(i);const u={atVersion(C){return i[C]}};return Object.defineProperty(u,"$map",{configurable:!0,enumerable:!0,get(){return i}}),u}},63544:function(Z,T,t){"use strict";t.d(T,{Q:function(){return C}});function o(){return typeof window!="undefined"&&window.Math===Math?window:typeof self!="undefined"&&self.Math===Math?self:Function("return this")()}const i=o(),u=m=>`__@backstage/${m}__`;function C(m,f){const d=u(m);let c=i[d];return c||(c=f(),i[d]=c,c)}},7341:function(Z,T,t){"use strict";t.d(T,{v:function(){return i}});var o=t(55309);const i=(0,o.y)({id:"plugin.catalog.service"})},82292:function(Z,T,t){"use strict";t.d(T,{n:function(){return i}});var o=t(55309);const i=(0,o.y)({id:"plugin.catalog.entity-presentation"})},88083:function(Z,T,t){"use strict";t.d(T,{T:function(){return m}});var o=t(6820),i=t(72348),u=t(46123),C=t.n(u);function m(c,y){const{kind:A,namespace:w,name:v,title:O,description:g,displayName:I,type:P}=f(c),E=(0,o.U2)({kind:A||"unknown",namespace:w||i.oQ,name:v||"unknown"}),D=d({kind:A,namespace:w,name:v,context:y}),j=[I,O,D].find(V=>V&&typeof V=="string"),b=[j!==E?E:void 0,P,g].filter(V=>V&&typeof V=="string").join(" | ");return{entityRef:E,primaryTitle:j,secondaryTitle:b||void 0,Icon:void 0}}function f(c){if(typeof c=="string"){let y=c.indexOf(":");const A=c.indexOf("/");A!==-1&&A<y&&(y=-1);const w=y===-1?void 0:c.slice(0,y),v=A===-1?void 0:c.slice(y+1,A),O=c.slice(Math.max(y+1,A+1));return{kind:w,namespace:v,name:O}}if(typeof c=="object"&&c!==null){const y=[C()(c,"kind")].find(P=>P&&typeof P=="string"),A=[C()(c,"metadata.namespace"),C()(c,"namespace")].find(P=>P&&typeof P=="string"),w=[C()(c,"metadata.name"),C()(c,"name")].find(P=>P&&typeof P=="string"),v=[C()(c,"metadata.title")].find(P=>P&&typeof P=="string"),O=[C()(c,"metadata.description")].find(P=>P&&typeof P=="string"),g=[C()(c,"spec.profile.displayName")].find(P=>P&&typeof P=="string"),I=[C()(c,"spec.type")].find(P=>P&&typeof P=="string");return{kind:y,namespace:A,name:w,title:v,description:O,displayName:g,type:I}}return{}}function d(c){var y,A,w,v,O;const g=((y=c.kind)===null||y===void 0?void 0:y.toLocaleLowerCase("en-US"))||"unknown",I=c.namespace||i.oQ,P=c.name||"unknown",E=(w=c.context)===null||w===void 0||(A=w.defaultKind)===null||A===void 0?void 0:A.toLocaleLowerCase("en-US"),D=(O=c.context)===null||O===void 0||(v=O.defaultNamespace)===null||v===void 0?void 0:v.toLocaleLowerCase("en-US");let j=P;return(D&&I.toLocaleLowerCase("en-US")!==D||I!==i.oQ)&&(j=`${I}/${j}`),E&&g.toLocaleLowerCase("en-US")!==E&&(j=`${g}:${j}`),j}},3169:function(Z,T,t){"use strict";t.d(T,{f:function(){return d}});var o=t(6820),i=t(72427),u=t(14041),C=t(82292),m=t(88083);function f(c,y,A){const[w,v]=(0,u.useState)(c);return(0,u.useEffect)(()=>{v(c);const O=y==null?void 0:y.subscribe({next:g=>{v(g)},complete:()=>{O==null||O.unsubscribe()}});return()=>{O==null||O.unsubscribe()}},A),w}function d(c,y){const w=(0,i.Q2)().get(C.n),v=[w,JSON.stringify(c),JSON.stringify(y||null)],O=(0,u.useMemo)(()=>w?w.forEntity(typeof c=="string"||"metadata"in c?c:(0,o.U2)(c),y):{snapshot:(0,m.T)(c,y)},v);return f(O.snapshot,O.update$,[O])}},18:function(Z,T,t){"use strict";t.d(T,{a:function(){return i}});var o=t(55309);const i=(0,o.y)({id:"catalog-react.starred-entities"})},54203:function(Z,T,t){"use strict";t.d(T,{GI:function(){return O}});var o=t(31085),i=t(14041),u=t(5893),C=t(54917),m=t(64947),f=t(73845),d=t(10394),c=t(72501),y=t(42899),A=t(65859);const w=g=>{var I;const P=(0,u.A)(V=>{var Y,tt;return V.breakpoints.down((tt=(Y=g.options)===null||Y===void 0?void 0:Y.drawerBreakpoint)!==null&&tt!==void 0?tt:"md")}),E=(0,C.A)(),[D,j]=(0,i.useState)(!1);var b;return P?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(m.A,{style:{marginTop:E.spacing(1),marginLeft:E.spacing(1)},onClick:()=>j(!0),startIcon:(0,o.jsx)(A.A,{}),children:"Filters"}),(0,o.jsx)(f.Ay,{open:D,onClose:()=>j(!1),anchor:(b=(I=g.options)===null||I===void 0?void 0:I.drawerAnchor)!==null&&b!==void 0?b:"left",disableAutoFocus:!0,keepMounted:!0,variant:"temporary",children:(0,o.jsxs)(d.A,{m:2,children:[(0,o.jsx)(c.A,{variant:"h6",component:"h2",style:{marginBottom:E.spacing(1)},children:"Filters"}),g.children]})})]}):(0,o.jsx)(y.A,{item:!0,lg:2,children:g.children})},v=g=>(0,o.jsx)(y.A,{item:!0,xs:12,lg:10,children:g.children}),O=g=>(0,o.jsx)(y.A,{container:!0,style:{position:"relative"},children:g.children});O.Filters=w,O.Content=v},50207:function(Z,T,t){"use strict";t.d(T,{y:function(){return W}});var o=t(31085),i=t(10394),u=t(72501),C=t(6924),m=t(20577),f=t(14041),d=t(72427),c=t(91638),y=t(7341),A=t(69076),w=t(86901),v=t(44148),O=t(41260);const g=(0,o.jsx)(O.A,{fontSize:"small"}),I=(0,o.jsx)(v.A,{fontSize:"small"});function P({selected:k}){return(0,o.jsx)(A.A,{icon:g,checkedIcon:I,checked:k})}const E=(0,f.memo)(k=>{const{selected:J,value:nt,availableOptions:it,showCounts:mt}=k,ft=mt?`${nt} (${it==null?void 0:it[nt]})`:nt;return(0,o.jsx)(w.A,{control:(0,o.jsx)(P,{selected:J}),label:ft,onClick:wt=>wt.preventDefault()})});var D=t(58837),j=t(16249),b=t(53373),V=t.n(b);const Y=(0,D.A)({input:{}},{name:"CatalogReactEntityAutocompletePickerInput"});function tt(k){const J=Y();return(0,o.jsx)(j.A,{variant:"outlined",...k,className:V()(J.input,k.className)})}var z=t(21405);function W(k){var J;const{label:nt,name:it,path:mt,showCounts:ft,Filter:wt,InputProps:lt,initialSelectedOptions:At=[]}=k,{updateFilters:at,filters:G,queryParameters:{[it]:rt}}=(0,z.nK)(),xt=(0,d.gf)(y.v),{value:St}=(0,c.default)(async()=>{var st;const Et=mt,{facets:vt}=await xt.getEntityFacets({facets:[Et],filter:(st=G.kind)===null||st===void 0?void 0:st.getCatalogFilters()});return Object.fromEntries(vt[Et].map(({value:jt,count:Kt})=>[jt,Kt]))},[G.kind]),Ct=(0,f.useMemo)(()=>[rt].flat().filter(Boolean),[rt]);var ut;const[ct,pt]=(0,f.useState)(Ct.length?Ct:(ut=(J=G[it])===null||J===void 0?void 0:J.values)!==null&&ut!==void 0?ut:At);(0,f.useEffect)(()=>{Ct.length&&pt(Ct)},[Ct]);const H=Object.keys(St!=null?St:{}),K=ct.length&&H.length;(0,f.useEffect)(()=>{at({[it]:K?new wt(ct):void 0})},[it,K,ct,wt,at]);const q=G[it];return q&&typeof q=="object"&&!("values"in q)||!H.length||H.length<=1?null:(0,o.jsx)(i.A,{pb:1,pt:1,children:(0,o.jsxs)(u.A,{variant:"button",component:"label",children:[nt,(0,o.jsx)(m.Ay,{multiple:!0,disableCloseOnSelect:!0,options:H,value:ct,onChange:(st,Et)=>pt(Et),renderOption:(st,{selected:Et})=>(0,o.jsx)(E,{selected:Et,value:st,availableOptions:St,showCounts:!!ft}),size:"small",popupIcon:(0,o.jsx)(C.A,{"data-testid":`${String(it)}-picker-expand`}),renderInput:st=>(0,o.jsx)(tt,{...st,...lt})})]})})}},72987:function(Z,T,t){"use strict";t.d(T,{t:function(){return Ct}});var o=t(31085),i=t(6820),u=t(58837),C=t(86901),m=t(10394),f=t(69076),d=t(71677),c=t(72501),y=t(16249),A=t(44148),w=t(41260),v=t(6924),O=t(20577),g=t(14041),I=t(21405),P=t(92822),E=t(92367),D=t(48108),j=t(47966),b=t(90184),V=t(72427),Y=t(5030),tt=t(7341);function z({enabled:ut}){const ct=(0,V.gf)(tt.v),[pt]=(0,g.useState)(async()=>{if(!ut)return[];const H="relations.ownedBy";return ct.getEntityFacets({facets:[H]}).then(K=>K.facets[H].map(q=>q.value).map(q=>{const{kind:st,name:Et,namespace:vt}=(0,i.KU)(q);return{apiVersion:"backstage.io/v1beta1",kind:st,metadata:{name:Et,namespace:vt}}}).sort((q,st)=>(q.metadata.namespace||"").localeCompare(st.metadata.namespace||"","en-US")||q.metadata.name.localeCompare(st.metadata.name,"en-US")||q.kind.localeCompare(st.kind,"en-US"))).catch(()=>[])});return(0,Y.default)(async(H,K)=>{const q=await pt;if(!q)return{items:[]};var st;const Et=(st=K==null?void 0:K.limit)!==null&&st!==void 0?st:20,{text:vt,start:jt}=W(H),Kt=q.filter($t=>nt(vt,$t)),Bt=jt+Et;return{items:Kt.slice(0,Bt),...J({entities:Kt,limit:Bt,payload:{text:vt,start:Bt}})}},[pt],{loading:!0,value:{items:[]}})}function W(ut){return k(ut)&&ut.cursor?JSON.parse(atob(ut.cursor)):{text:ut.text||"",start:0}}function k(ut){return!!ut.cursor}function J({entities:ut,limit:ct,payload:pt}){return ut.length>ct?{cursor:btoa(JSON.stringify(pt))}:{}}function nt(ut,ct){var pt;const H=ut.trim();return ct.kind.includes(H)||((pt=ct.metadata.namespace)===null||pt===void 0?void 0:pt.includes(H))||ct.metadata.name.includes(H)}function it(){const ut=(0,V.gf)(tt.v);return(0,Y.default)(async(ct,pt)=>{const H=ct,K=ct;var q;const st=(q=pt==null?void 0:pt.limit)!==null&&q!==void 0?q:20;if(K.cursor){const vt=await ut.queryEntities({cursor:K.cursor,limit:st});return{cursor:vt.pageInfo.nextCursor,items:[...K.items,...vt.items]}}const Et=await ut.queryEntities({fullTextFilter:{term:H.text||"",fields:["metadata.name","kind","spec.profile.displayname","metadata.title"]},filter:{kind:["User","Group"]},orderFields:[{field:"metadata.name",order:"asc"}],limit:st});return{cursor:Et.pageInfo.nextCursor,items:Et.items}},[],{loading:!0})}var mt=t(76842);function ft({mode:ut,initialSelectedOwnersRefs:ct}){const pt=ut==="owners-only",H=it(),K=z({enabled:pt}),[q,st]=pt?K:H;return[q,st,wt({enabled:!pt,initialSelectedOwnersRefs:ct})]}function wt({enabled:ut,initialSelectedOwnersRefs:ct}){const pt=(0,g.useRef)({}),H=(0,V.gf)(tt.v),[,K]=(0,Y.default)(async()=>{(await H.getEntitiesByRefs({entityRefs:ct})).items.forEach(st=>{st&&(pt.current[(0,i.U2)(st)]=st)})},[]);return(0,mt.u)(()=>{ut&&ct.length>0&&K()}),{getEntity:q=>pt.current[q],setEntity:q=>{pt.current[(0,i.U2)(q)]=q}}}var lt=t(7031),At=t(3169);const at=(0,u.A)({input:{},fullWidth:{width:"100%"},boxLabel:{width:"100%",textOverflow:"ellipsis",overflow:"hidden"}},{name:"CatalogReactEntityOwnerPicker"}),G=(0,lt.A)(ut=>({label:{width:"100%"},root:{width:"90%"}}),{name:"FixedWidthFormControlLabel"})(C.A),rt=(0,o.jsx)(w.A,{fontSize:"small"}),xt=(0,o.jsx)(A.A,{fontSize:"small"});function St(ut){const ct=at(),pt=ut.entity.kind.toLocaleLowerCase("en-US")==="group",{primaryTitle:H}=(0,At.f)(ut.entity);return(0,o.jsx)(m.A,{className:ct.fullWidth,children:(0,o.jsx)(G,{className:ct.fullWidth,control:(0,o.jsx)(f.A,{icon:rt,checkedIcon:xt,checked:ut.isSelected}),onClick:K=>K.preventDefault(),label:(0,o.jsx)(d.Ay,{title:H,children:(0,o.jsxs)(m.A,{display:"flex",alignItems:"center",children:[pt?(0,o.jsx)(j.A,{fontSize:"small"}):(0,o.jsx)(D.A,{fontSize:"small"}),"\xA0",(0,o.jsx)(m.A,{className:ct.boxLabel,children:(0,o.jsx)(c.A,{noWrap:!0,children:H})})]})})})})}const Ct=ut=>{var ct,pt;const H=at(),{mode:K="owners-only"}=ut||{},{updateFilters:q,filters:st,queryParameters:{owners:Et}}=(0,I.nK)(),[vt,jt]=(0,g.useState)(""),Kt=(0,g.useMemo)(()=>[Et].flat().filter(Boolean),[Et]);var Bt;const[$t,Dt]=(0,g.useState)(Kt.length?Kt:(Bt=(ct=st.owners)===null||ct===void 0?void 0:ct.values)!==null&&Bt!==void 0?Bt:[]),[{value:Gt,loading:De},fe,se]=ft({mode:K,initialSelectedOwnersRefs:$t});(0,E.s)(()=>fe({text:vt}),[vt,fe],250);const Xt=(Gt==null?void 0:Gt.items)||[];return(0,g.useEffect)(()=>{if(Kt.length){const Mt=new P.N9(Kt);Dt(Mt.values)}},[Kt]),(0,g.useEffect)(()=>{q({owners:$t.length?new P.N9($t):void 0})},[$t,q]),["user","group"].includes(((pt=st.kind)===null||pt===void 0?void 0:pt.value.toLocaleLowerCase("en-US"))||"")?null:(0,o.jsx)(m.A,{pb:1,pt:1,children:(0,o.jsxs)(c.A,{variant:"button",component:"label",children:["Owner",(0,o.jsx)(O.Ay,{multiple:!0,disableCloseOnSelect:!0,loading:De,options:Xt,value:$t,getOptionSelected:(Mt,Vt)=>typeof Vt=="string"?(0,i.U2)(Mt)===Vt:Mt===Vt,getOptionLabel:Mt=>{const Vt=typeof Mt=="string"?se.getEntity(Mt)||(0,i.KU)(Mt,{defaultKind:"group",defaultNamespace:"default"}):Mt;return(0,b.Z)(Vt,(0,b.S)(Vt))},onChange:(Mt,Vt)=>{jt(""),Dt(Vt.map(be=>{const Ve=typeof be=="string"?be:(0,i.U2)(be);return typeof be!="string"&&se.setEntity(be),Ve}))},filterOptions:Mt=>Mt,renderOption:(Mt,{selected:Vt})=>(0,o.jsx)(St,{entity:Mt,isSelected:Vt}),size:"small",popupIcon:(0,o.jsx)(v.A,{"data-testid":"owner-picker-expand"}),renderInput:Mt=>(0,o.jsx)(y.A,{...Mt,className:H.input,onChange:Vt=>{jt(Vt.currentTarget.value)},variant:"outlined"}),ListboxProps:{onScroll:Mt=>{const Vt=Mt.currentTarget;Math.abs(Vt.scrollHeight-Vt.clientHeight-Vt.scrollTop)<1&&(Gt!=null&&Gt.cursor)&&fe({items:Gt.items,cursor:Gt.cursor})},"data-testid":"owner-picker-listbox"}})]})})}},8859:function(Z,T,t){"use strict";t.d(T,{z:function(){return g}});var o=t(31085),i=t(6820),u=t(72348),C=t(72072),m=t(9222),f=t(14041),d=t(29207),c=t(58837),y=t(10394),A=t(71677),w=t(3169);const v=(0,c.A)(P=>({root:{display:"inline-flex",alignItems:"center"},icon:{marginRight:P.spacing(.5),color:P.palette.text.secondary,lineHeight:0}}),{name:"CatalogReactEntityDisplayName"}),O=P=>{const{entityRef:E,hideIcon:D,disableTooltip:j,defaultKind:b,defaultNamespace:V}=P,Y=v(),{primaryTitle:tt,secondaryTitle:z,Icon:W}=(0,w.f)(E,{defaultKind:b,defaultNamespace:V});let k=(0,o.jsx)(o.Fragment,{children:tt});return k=(0,o.jsxs)(y.A,{component:"span",className:Y.root,children:[W&&!D?(0,o.jsx)(y.A,{component:"span",className:Y.icon,children:(0,o.jsx)(W,{fontSize:"inherit"})}):null,k]}),z&&!j&&(k=(0,o.jsx)(A.Ay,{enterDelay:1500,title:z,children:k})),k},g=(0,f.forwardRef)((P,E)=>{const{entityRef:D,defaultKind:j,defaultNamespace:b,title:V,children:Y,hideIcon:tt,...z}=P,W=I(P.entityRef);var k;const J=(k=Y!=null?Y:V)!==null&&k!==void 0?k:(0,o.jsx)(O,{entityRef:D,defaultKind:j,defaultNamespace:b,hideIcon:tt});return(0,o.jsx)(C.N_,{...z,ref:E,to:W,children:J})});function I(P){const E=(0,m.S)(d.s);let D,j,b;if(typeof P=="string"){const tt=(0,i.KU)(P);D=tt.kind,j=tt.namespace,b=tt.name}else"metadata"in P?(D=P.kind,j=P.metadata.namespace,b=P.metadata.name):(D=P.kind,j=P.namespace,b=P.name);D=D.toLocaleLowerCase("en-US");var V;j=(V=j==null?void 0:j.toLocaleLowerCase("en-US"))!==null&&V!==void 0?V:u.oQ;const Y={kind:encodeURIComponent(D),namespace:encodeURIComponent(j),name:encodeURIComponent(b)};return E(Y)}},34428:function(Z,T,t){"use strict";t.d(T,{i:function(){return m}});var o=t(31085),i=t(6820),u=t(14041),C=t(8859);function m(f){const{entityRefs:d,hideIcons:c,...y}=f;return(0,o.jsx)(o.Fragment,{children:d.map((A,w)=>{const v=typeof A=="string"?A:(0,i.U2)(A);return(0,o.jsxs)(u.Fragment,{children:[w>0&&", ",(0,o.jsx)(C.z,{...y,entityRef:A,hideIcon:c})]},`${w}.${v}`)})})}},90184:function(Z,T,t){"use strict";t.d(T,{S:function(){return C},Z:function(){return m}});var o=t(72348),i=t(46123),u=t.n(i);function C(f,d){const c=d==null?void 0:d.defaultKind;let y,A,w;return"metadata"in f?(y=f.kind,A=f.metadata.namespace,w=f.metadata.name):(y=f.kind,A=f.namespace,w=f.name),(A===void 0||A==="")&&(A=o.oQ),(d==null?void 0:d.defaultNamespace)!==void 0?(d==null?void 0:d.defaultNamespace)===A&&(A=void 0):A===o.oQ&&(A=void 0),y=y.toLocaleLowerCase("en-US"),y=c&&c.toLocaleLowerCase("en-US")===y?void 0:y,`${y?`${y}:`:""}${A?`${A}/`:""}${w}`}function m(f,d){for(const c of["spec.profile.displayName","metadata.title"]){const y=u()(f,c);if(y&&typeof y=="string")return y}return d}},91035:function(Z,T,t){"use strict";t.d(T,{m:function(){return d}});var o=t(31085),i=t(58837),u=t(14041),C=t(92822),m=t(50207);const f=(0,i.A)({input:{}},{name:"CatalogReactEntityTagPicker"}),d=c=>{const y=f();return(0,o.jsx)(m.y,{label:"Tags",name:"tags",path:"metadata.tags",Filter:C.q_,showCounts:c.showCounts,InputProps:{className:y.input}})}},67626:function(Z,T,t){"use strict";t.d(T,{y:function(){return wt}});var o=t(31085),i=t(72427),u=t(65461),C=t(58837),m=t(40703),f=t(72501),d=t(58007),c=t(26343),y=t(46423),A=t(5951),w=t(65569),v=t(9684),O=t(80109),g=t(14041),I=t(92822),P=t(21405),E=t(16009),D=t(45250),j=t(91638),b=t(7341),V=t(26796),Y=t(5030),tt=t(71910);function z(){const lt=(0,i.gf)(E.K),At=(0,i.gf)(b.v),{filters:at}=(0,P.nK)(),{value:G,loading:rt}=(0,j.default)(async()=>(await lt.getBackstageIdentity()).ownershipEntityRefs,[]),{user:xt,owners:St,...Ct}=at,ut=(0,V.$3)((0,D.compact)(Object.values(Ct))),[{value:ct,loading:pt},H]=(0,Y.default)(async q=>{const st=W(q.owners,q.ownershipEntityRefs);if(st===void 0)return 0;const{["metadata.name"]:Et,...vt}=q.filter.filter,{totalItems:jt}=await At.queryEntities({...q.filter,filter:{...vt,"relations.ownedBy":st},limit:0});return jt},[],{loading:!0});return(0,tt.A)(()=>{Object.keys(ut.filter).length!==0&&G!==void 0&&H({ownershipEntityRefs:G,owners:St,filter:ut})},[G,St,ut]),{count:ct,loading:rt||pt,filter:(0,g.useMemo)(()=>I.tN.owned(G!=null?G:[]),[G]),ownershipEntityRefs:G}}function W(lt,At){if(At===void 0)return;var at;const G=(at=lt==null?void 0:lt.values)!==null&&at!==void 0?at:[];if(G.length){const rt=(0,D.intersection)(G,At);return rt.length===0?void 0:rt}return At}function k(){const lt=(0,i.gf)(b.v),{filters:At}=(0,P.nK)(),at=(0,g.useRef)(),G=(0,g.useMemo)(()=>{const{user:St,...Ct}=At,ut=(0,D.compact)(Object.values(Ct)),ct=(0,V.$3)(ut),pt={...ct,limit:0};return Object.keys(ct.filter).length===0?(at.current=void 0,at.current):(0,D.isEqual)(pt,at.current)?at.current:(at.current=pt,pt)},[At]),{value:rt,loading:xt}=(0,j.default)(async()=>{if(G===void 0)return 0;const{totalItems:St}=await lt.queryEntities(G);return St},[G]);return{count:rt,loading:xt}}var J=t(6820),nt=t(56889);function it(){const lt=(0,i.gf)(b.v),{filters:At}=(0,P.nK)(),{starredEntities:at}=(0,nt.I)(),G=(0,g.useRef)(),rt=(0,g.useMemo)(()=>{const{user:ut,...ct}=At,pt=(0,D.compact)(Object.values(ct)),H=(0,V.$3)(pt),q={...H,filter:{...H.filter,["metadata.name"]:Array.from(at).map(st=>(0,J.KU)(st).name)},limit:1e3};return(0,D.isEqual)(q,G.current)?G.current:(G.current=q,q)},[At,at]),{value:xt,loading:St}=(0,j.default)(async()=>at.size?(await lt.queryEntities(rt)).items.map(ct=>(0,J.U2)({kind:ct.kind,namespace:ct.metadata.namespace,name:ct.metadata.name})).filter(ct=>at.has(ct)).length:0,[rt,at]),Ct=(0,g.useMemo)(()=>I.tN.starred(Array.from(at)),[at]);return{count:xt,loading:St,filter:Ct}}const mt=(0,C.A)(lt=>({root:{backgroundColor:"rgba(0, 0, 0, .11)",boxShadow:"none",margin:lt.spacing(1,0,1,0)},title:{margin:lt.spacing(1,0,0,1),textTransform:"uppercase",fontSize:12,fontWeight:"bold"},listIcon:{minWidth:30,color:lt.palette.text.primary},menuItem:{minHeight:lt.spacing(6)},groupWrapper:{margin:lt.spacing(1,1,2,1)}}),{name:"CatalogReactUserListPicker"});function ft(lt){return[{name:"Personal",items:[{id:"owned",label:"Owned",icon:v.A},{id:"starred",label:"Starred",icon:O.A}]},{name:lt!=null?lt:"Company",items:[{id:"all",label:"All"}]}]}const wt=lt=>{const{initialFilter:At,availableFilters:at}=lt,G=mt(),rt=(0,i.gf)(u.U);var xt;const St=(xt=rt.getOptionalString("organization.name"))!==null&&xt!==void 0?xt:"Company",{filters:Ct,updateFilters:ut,queryParameters:{kind:ct,user:pt}}=(0,P.nK)(),H=["starred","all"],K=ft(St).map(se=>({...se,items:se.items.filter(({id:Xt})=>["group","user"].some(Mt=>Mt===ct)?H.includes(Xt):!at||at.includes(Xt))})).filter(({items:se})=>!!se.length),{count:q,loading:st,filter:Et}=z(),{count:vt}=k(),{count:jt,filter:Kt,loading:Bt}=it(),$t=(0,g.useMemo)(()=>[pt].flat()[0],[pt]),[Dt,Gt]=(0,g.useState)($t!=null?$t:At),De=(0,g.useMemo)(()=>({all:vt,starred:jt,owned:q}),[jt,q,vt]);(0,g.useEffect)(()=>{$t&&Gt($t)},[$t]);const fe=st||Bt;return(0,g.useEffect)(()=>{!fe&&Dt&&Dt!=="all"&&De[Dt]===0&&Gt("all")},[fe,De,Dt,Gt]),(0,g.useEffect)(()=>{if(!Dt||fe)return;ut({user:Dt==="owned"?Et:Dt==="starred"?Kt:I.tN.all()})},[Dt,Kt,Et,ut,fe]),(0,o.jsx)(m.A,{className:G.root,children:K.map(se=>(0,o.jsxs)(g.Fragment,{children:[(0,o.jsx)(f.A,{variant:"subtitle2",component:"span",className:G.title,children:se.name}),(0,o.jsx)(m.A,{className:G.groupWrapper,children:(0,o.jsx)(d.A,{disablePadding:!0,dense:!0,role:"menu","aria-label":se.name,children:se.items.map(Xt=>{var Mt,Vt;return(0,o.jsxs)(c.A,{role:"none presentation",divider:!0,onClick:()=>Gt(Xt.id),selected:Xt.id===((Mt=Ct.user)===null||Mt===void 0?void 0:Mt.value),className:G.menuItem,disabled:De[Xt.id]===0,"data-testid":`user-picker-${Xt.id}`,tabIndex:0,ContainerProps:{role:"menuitem"},children:[Xt.icon&&(0,o.jsx)(y.A,{className:G.listIcon,children:(0,o.jsx)(Xt.icon,{fontSize:"small"})}),(0,o.jsx)(A.A,{children:(0,o.jsxs)(f.A,{variant:"body1",children:[Xt.label," "]})}),(0,o.jsx)(w.A,{children:(Vt=De[Xt.id])!==null&&Vt!==void 0?Vt:"-"})]},Xt.id)})})})]},se.name))})}},92822:function(Z,T,t){"use strict";t.d(T,{I5:function(){return A},Kf:function(){return g},N9:function(){return y},V3:function(){return c},gM:function(){return m},gZ:function(){return O},mT:function(){return I},qA:function(){return f},q_:function(){return d},tN:function(){return v},z:function(){return w}});var o=t(18990),i=t(51372),u=t(6820),C=t(67871);class m{getCatalogFilters(){return{kind:this.value}}toQueryValue(){return this.value}constructor(E){(0,o._)(this,"value",void 0),this.value=E}}class f{getTypes(){return Array.isArray(this.value)?this.value:[this.value]}getCatalogFilters(){return{"spec.type":this.getTypes()}}toQueryValue(){return this.getTypes()}constructor(E){(0,o._)(this,"value",void 0),this.value=E}}class d{filterEntity(E){return this.values.every(D=>{var j;return((j=E.metadata.tags)!==null&&j!==void 0?j:[]).includes(D)})}getCatalogFilters(){return{"metadata.tags":this.values}}toQueryValue(){return this.values}constructor(E){(0,o._)(this,"values",void 0),this.values=E}}class c{filterEntity(E){const D=this.toUpperArray(this.value.split(/\s/)),j=this.toUpperArray([E.metadata.tags]),b=this.toUpperArray([E.metadata.name,E.metadata.title]);for(const V of D)if(j.every(Y=>Y!==V)&&b.every(Y=>!Y.includes(V)))return!1;return!0}getFullTextFilters(){return{term:this.value,fields:["metadata.name","metadata.title","spec.profile.displayName"]}}toUpperArray(E){return E.flat().filter(D=>!!D).map(D=>D.toLocaleUpperCase("en-US"))}constructor(E){(0,o._)(this,"value",void 0),this.value=E}}class y{getCatalogFilters(){return{"relations.ownedBy":this.values}}filterEntity(E){return this.values.some(D=>(0,C.t)(E,i.vv).some(j=>(0,u.U2)(j)===D))}toQueryValue(){return this.values}constructor(E){(0,o._)(this,"values",void 0),this.values=E.reduce((D,j)=>{try{return D.push((0,u.U2)((0,u.KU)(j,{defaultKind:"Group"}))),D}catch{return D}},[])}}class A{getCatalogFilters(){return{"spec.lifecycle":this.values}}filterEntity(E){return this.values.some(D=>{var j;return((j=E.spec)===null||j===void 0?void 0:j.lifecycle)===D})}toQueryValue(){return this.values}constructor(E){(0,o._)(this,"values",void 0),this.values=E}}class w{getCatalogFilters(){return{"metadata.namespace":this.values}}filterEntity(E){return this.values.some(D=>E.metadata.namespace===D)}toQueryValue(){return this.values}constructor(E){(0,o._)(this,"values",void 0),this.values=E}}class v{static owned(E){return new v("owned",E)}static all(){return new v("all")}static starred(E){return new v("starred",E)}getCatalogFilters(){if(this.value==="owned"){var E;return{"relations.ownedBy":(E=this.refs)!==null&&E!==void 0?E:[]}}if(this.value==="starred"){var D,j;return{"metadata.name":(j=(D=this.refs)===null||D===void 0?void 0:D.map(b=>(0,u.KU)(b).name))!==null&&j!==void 0?j:[]}}return{}}filterEntity(E){if(this.value==="starred"){var D,j;return(j=(D=this.refs)===null||D===void 0?void 0:D.includes((0,u.U2)(E)))!==null&&j!==void 0?j:!0}if(this.value==="owned"){var b;const Y=(0,C.t)(E,i.vv);var V;return(V=(b=this.refs)===null||b===void 0?void 0:b.some(tt=>Y.some(z=>(0,u.U2)(z)===tt)))!==null&&V!==void 0?V:!1}return!0}toQueryValue(){return this.value}constructor(E,D){(0,o._)(this,"value",void 0),(0,o._)(this,"refs",void 0),this.value=E,this.refs=D}}class O{filterEntity(E){switch(this.value){case"owned":return this.isOwnedEntity(E);case"starred":return this.isStarredEntity(E);default:return!0}}toQueryValue(){return this.value}constructor(E,D,j){(0,o._)(this,"value",void 0),(0,o._)(this,"isOwnedEntity",void 0),(0,o._)(this,"isStarredEntity",void 0),this.value=E,this.isOwnedEntity=D,this.isStarredEntity=j}}class g{getCatalogFilters(){return this.value?{"metadata.annotations.backstage.io/orphan":String(this.value)}:{}}filterEntity(E){var D;const j=(D=E.metadata.annotations)===null||D===void 0?void 0:D["backstage.io/orphan"];return j!==void 0&&this.value.toString()===j}constructor(E){(0,o._)(this,"value",void 0),this.value=E}}class I{filterEntity(E){var D,j;const b=(E==null||(j=E.status)===null||j===void 0||(D=j.items)===null||D===void 0?void 0:D.length)>0;return b!==void 0&&this.value===b}constructor(E){(0,o._)(this,"value",void 0),this.value=E}}},21405:function(Z,T,t){"use strict";t.d(T,{B9:function(){return I},nK:function(){return P}});var o=t(31085),i=t(45250),u=t.n(i),C=t(45810),m=t.n(C),f=t(14041),d=t(18690),c=t(5030),y=t(16983),A=t(10009),w=t(7341),v=t(26796),O=t(72427);const g=(0,f.createContext)(void 0),I=E=>{const D=(0,A.default)(),j=(0,O.gf)(w.v),[b,V]=(0,f.useState)({}),Y=(0,d.zy)(),tt=E.pagination===!0||typeof E.pagination=="object",z=E.pagination&&typeof E.pagination=="object"&&typeof E.pagination.limit=="number"?E.pagination.limit:20,{queryParameters:W,cursor:k}=(0,f.useMemo)(()=>{const rt=m().parse(Y.search,{ignoreQueryPrefix:!0});var xt;return{queryParameters:(xt=rt.filters)!==null&&xt!==void 0?xt:{},cursor:typeof rt.cursor=="string"?rt.cursor:void 0}},[Y]),[J,nt]=(0,f.useState)(k),[it,mt]=(0,f.useState)(()=>({appliedFilters:{},entities:[],backendEntities:[],pageInfo:tt?{}:void 0})),[{loading:ft,error:wt},lt]=(0,c.default)(async()=>{const rt=(0,i.compact)(Object.values(b)),xt=Object.keys(b).reduce((Ct,ut)=>{const ct=b[ut];return ct!=null&&ct.toQueryValue&&(Ct[ut]=ct.toQueryValue()),Ct},{});if(tt)if(J){if(J!==it.appliedCursor){const Ct=(0,v.be)(rt),ut=await j.queryEntities({cursor:J,limit:z});mt({appliedFilters:b,appliedCursor:J,backendEntities:ut.items,entities:ut.items.filter(Ct),pageInfo:ut.pageInfo})}}else{const Ct=(0,v.be)(rt),ut=(0,v.$3)(rt),ct=(0,v.$3)((0,i.compact)(Object.values(it.appliedFilters)));if(!(0,i.isEqual)(ct,ut)){const pt=await j.queryEntities({...ut,limit:z,orderFields:[{field:"metadata.name",order:"asc"}]});mt({appliedFilters:b,backendEntities:pt.items,entities:pt.items.filter(Ct),pageInfo:pt.pageInfo})}}else{const Ct=(0,v.be)(rt),ut=(0,v.Rr)(rt),ct=(0,v.Rr)((0,i.compact)(Object.values(it.appliedFilters)));if((0,i.isEqual)(ct,ut))mt({appliedFilters:b,backendEntities:it.backendEntities,entities:it.backendEntities.filter(Ct)});else{const pt=await j.getEntities({filter:ut});mt({appliedFilters:b,backendEntities:pt.items,entities:pt.items.filter(Ct)})}}if(D()){var St;const Ct=m().parse(Y.search,{ignoreQueryPrefix:!0}),ut=m().stringify({...Ct,filters:xt,cursor:J},{addQueryPrefix:!0,arrayFormat:"repeat"}),ct=`${window.location.pathname}${ut}`;(St=window.history)===null||St===void 0||St.replaceState(null,document.title,ct)}},[j,W,b,it,J,tt],{loading:!0});(0,y.A)(lt,10,[b,J]);const At=(0,f.useCallback)(rt=>{nt(void 0),V(xt=>{const St=typeof rt=="function"?rt(xt):rt;return{...xt,...St}})},[]),at=(0,f.useMemo)(()=>{var rt,xt;if(!tt)return;const St=(rt=it.pageInfo)===null||rt===void 0?void 0:rt.prevCursor,Ct=(xt=it.pageInfo)===null||xt===void 0?void 0:xt.nextCursor;return{prev:St?()=>nt(St):void 0,next:Ct?()=>nt(Ct):void 0}},[tt,it.pageInfo]),G=(0,f.useMemo)(()=>({filters:it.appliedFilters,entities:it.entities,backendEntities:it.backendEntities,updateFilters:At,queryParameters:W,loading:ft,error:wt,pageInfo:at}),[it,At,W,ft,wt,at]);return(0,o.jsx)(g.Provider,{value:G,children:E.children})};function P(){const E=(0,f.useContext)(g);if(!E)throw new Error("useEntityList must be used within EntityListProvider");return E}},56889:function(Z,T,t){"use strict";t.d(T,{I:function(){return d}});var o=t(6820),i=t(72427),u=t(14041),C=t(45145),m=t(18);function f(c){return typeof c=="string"?c:(0,o.U2)(c)}function d(){const c=(0,i.gf)(m.a),y=(0,C.A)((0,u.useMemo)(()=>c.starredEntitie$(),[c]),new Set),A=(0,u.useCallback)(v=>y.has(f(v)),[y]),w=(0,u.useCallback)(v=>c.toggleStarred(f(v)).then(),[c]);return{starredEntities:y,toggleStarredEntity:w,isStarredEntity:A}}},29207:function(Z,T,t){"use strict";t.d(T,{s:function(){return u}});var o=t(34569),i=t(63544);const u=(0,i.Q)("catalog:entity-route-ref",()=>(0,o.H)({id:"catalog:entity",params:["namespace","kind","name"]}));function C(m){var f,d;return{kind:m.kind.toLocaleLowerCase("en-US"),namespace:(d=(f=m.metadata.namespace)===null||f===void 0?void 0:f.toLocaleLowerCase("en-US"))!==null&&d!==void 0?d:DEFAULT_NAMESPACE,name:m.metadata.name}}},26796:function(Z,T,t){"use strict";t.d(T,{$3:function(){return u},Rr:function(){return C},be:function(){return m}});var o=t(92822);function i(f){return!!f.getFullTextFilters}function u(f){var d;const c=f.reduce((A,w)=>({...A,...w.getCatalogFilters?w.getCatalogFilters():{}}),{}),y=(d=f.find(i))===null||d===void 0?void 0:d.getFullTextFilters();return{filter:c,fullTextFilter:y}}function C(f){const d={};return f.forEach(c=>{var y;c instanceof o.q_||c instanceof o.N9||c instanceof o.I5||c instanceof o.z||c instanceof o.tN||c instanceof o.Kf||c instanceof o.V3||c instanceof o.gZ||Object.assign(d,((y=c.getCatalogFilters)===null||y===void 0?void 0:y.call(c))||{})}),d}function m(f){return d=>f.every(c=>!c.filterEntity||c.filterEntity(d))}},67871:function(Z,T,t){"use strict";t.d(T,{t:function(){return i}});var o=t(6820);function i(u,C,m){var f;let d=(u==null||(f=u.relations)===null||f===void 0?void 0:f.filter(c=>c.type===C).map(c=>(0,o.KU)(c.targetRef)))||[];return m!=null&&m.kind&&(d=d.filter(c=>c.kind.toLocaleLowerCase("en-US")===m.kind.toLocaleLowerCase("en-US"))),d}},95203:function(Z,T,t){"use strict";t.d(T,{qP:function(){return c},Zg:function(){return A},rQ:function(){return v},pS:function(){return w},UJ:function(){return y}});var o=t(18990),i=t(59598);let u=i.b,C=u;class m{toString(){return`routeRef{type=external,id=${this.id}}`}constructor(g,I,P){(0,o._)(this,"id",void 0),(0,o._)(this,"params",void 0),(0,o._)(this,"optional",void 0),(0,o._)(this,C,void 0),this.id=g,this.params=I,this.optional=P,this[u]="external"}}function f(O){var g;return new m(O.id,(g=O.params)!==null&&g!==void 0?g:[],!!O.optional)}var d=t(34569);const c=f({id:"create-component",optional:!0}),y=f({id:"view-techdoc",optional:!0,params:["namespace","kind","name"]}),A=f({id:"create-from-template",optional:!0,params:["namespace","templateName"]}),w=f({id:"catalog:unregister-redirect",optional:!0}),v=(0,d.H)({id:"catalog"})},54241:function(Z,T,t){"use strict";t.d(T,{b:function(){return o}});var o;(function(i){i.DENY="DENY",i.ALLOW="ALLOW",i.CONDITIONAL="CONDITIONAL"})(o||(o={}))},96824:function(Z,T,t){"use strict";t.d(T,{x:function(){return i}});var o=t(55309);const i=(0,o.y)({id:"plugin.permission.api"})},70734:function(Z,T,t){"use strict";t.d(T,{e:function(){return m}});var o=t(31085),i=t(14041),u=t(58837);const C=(0,u.A)(()=>({highlight:{}}),{name:"BackstageHighlightedSearchResultText"}),m=f=>{const{text:d,preTag:c,postTag:y}=f,A=C(),w=(0,i.useMemo)(()=>d.split(new RegExp(`(${c}.+?${y})`)),[y,c,d]);return(0,o.jsx)(o.Fragment,{children:w.map((v,O)=>v.includes(c)?(0,o.jsx)("mark",{className:A.highlight,children:v.replace(new RegExp(`${c}|${y}`,"g"),"")},O):v)})}},54560:function(Z,T,t){"use strict";t.d(T,{ec:function(){return y}});var o=t(31085),i=t(14041),u=t(93368),C=t(88758),m=t(8109);const f="search.results.list.items.extensions.v1",d=(v,O)=>{for(const g of v){if(!isValidElement(g))continue;const I=getComponentData(g,f);if(I!=null&&I(O))return cloneElement(g,{rank:O.rank,highlight:O.highlight,result:O.document,...g.props})}return null},c=v=>{const{rank:O,result:g,noTrack:I,children:P,alignItems:E="flex-start",...D}=v,j=(0,u.s)(),b=(0,i.useCallback)(()=>{I||g&&j.captureEvent("discover",g.title,{attributes:{to:g.location},value:O})},[O,g,I,j]);return(0,o.jsx)(m.A,{divider:!0,alignItems:E,onClickCapture:b,...D,children:P})},y=v=>{const{name:O,component:g,predicate:I=()=>!0}=v;return(0,C.zZ)({name:O,component:{lazy:()=>g().then(P=>E=>(0,o.jsx)(c,{rank:E.rank,result:E.result,noTrack:E.noTrack,children:(0,i.createElement)(P,E)}))},data:{[f]:I}})},A=v=>{const O=useElementFilter(v,g=>g.selectByComponentData({key:f}).getElements(),[v]);return useCallback((g,I)=>{const P=d(O,g);return _jsx(Fragment,{children:P!=null?P:_jsx(c,{rank:g.rank,result:g.document,children:_jsx(DefaultResultListItem,{rank:g.rank,highlight:g.highlight,result:g.document})})},I)},[O])},w=v=>{const{results:O,children:g,...I}=v,P=A(g);return _jsx(List,{...I,children:O.map(P)})}},72020:function(Z,T,t){"use strict";t.d(T,{AF:function(){return c},Hr:function(){return w},Wm:function(){return d},YR:function(){return I},po:function(){return y}});var o=t(31085),i=t(14041),u=t(18690),C=t(19402),m=t(88758),f=t(82442);const d="techdocs.addons.addon.v1",c="techdocs.addons.wrapper.v1",y=()=>null;(0,C.h)(y,c,!0);const A=P=>`${d}.${P.toLocaleLowerCase("en-US")}`;function w(P){const{name:E,component:D}=P;return(0,m.zZ)({name:E,component:{sync:j=>(0,o.jsx)(D,{...j})},data:{[d]:P,[A(E)]:!0}})}const v=(P,E)=>P.selectByComponentData({key:E}).getElements()[0],O=P=>P.selectByComponentData({key:c}).selectByComponentData({key:d}),g=P=>P.selectByComponentData({key:c}).findComponentData({key:d}),I=()=>{const P=(0,u.P1)(),E=(0,f.O)(P,O),D=(0,f.O)(P,g),j=(0,i.useCallback)(Y=>{if(!E||!Y)return null;const tt=A(Y.name);var z;return(z=v(E,tt))!==null&&z!==void 0?z:null},[E]),b=(0,i.useCallback)(Y=>{const tt=D.find(z=>z.name===Y);return tt?j(tt):null},[D,j]),V=(0,i.useCallback)(Y=>{const tt=D.filter(z=>z.location===Y);return tt.length?tt.map(j):null},[D,j]);return{renderComponentByName:b,renderComponentsByLocation:V}}},26679:function(Z,T,t){"use strict";t.d(T,{l:function(){return i},s:function(){return u}});var o=t(55309);const i=(0,o.y)({id:"plugin.techdocs.service"}),u=(0,o.y)({id:"plugin.techdocs.storageservice"})},86892:function(Z,T,t){"use strict";t.d(T,{R:function(){return P},V:function(){return E}});var o=t(31085),i=t(14041),u=t(91638),C=t(38282),m=t(6820),f=t(43836),d=t(10602),c=t(72427),y=t(65461),A=t(25862),w=t(26679);function v(D,j){return j.getOptionalBoolean("techdocs.legacyUseCaseSensitiveTripletPaths")||(D.kind=D.kind.toLocaleLowerCase(),D.name=D.name.toLocaleLowerCase(),D.namespace=D.namespace.toLocaleLowerCase()),D}const O=(D,j)=>(0,m.U2)(D)===(0,m.U2)(j),g={title:"",subtitle:"",setTitle:()=>{},setSubtitle:()=>{},setShadowRoot:()=>{},metadata:{loading:!0},entityMetadata:{loading:!0},entityRef:{kind:"",name:"",namespace:""}},I=(0,f.tK)("techdocs-reader-page-context"),P=(0,i.memo)(D=>{const{entityRef:j,children:b}=D,V=(0,c.gf)(w.l),Y=(0,c.gf)(y.U),tt=(0,u.default)(async()=>V.getEntityMetadata(j),[j]),z=(0,C.A)(async()=>V.getTechDocsMetadata(j),[j]),[W,k]=(0,i.useState)(g.title),[J,nt]=(0,i.useState)(g.subtitle),[it,mt]=(0,i.useState)(g.shadowRoot);(0,i.useEffect)(()=>{it&&!z.value&&!z.loading&&z.retry()},[z.value,z.loading,it,z.retry,z]);const ft={metadata:z,entityRef:v(j,Y),entityMetadata:tt,shadowRoot:it,setShadowRoot:mt,title:W,setTitle:k,subtitle:J,setSubtitle:nt},wt=(0,d.B)({1:ft});return(0,o.jsx)(A.Ig,{attributes:{entityRef:(0,m.U2)(j)},children:(0,o.jsx)(I.Provider,{value:wt,children:b instanceof Function?b(ft):b})})},(D,j)=>O(D.entityRef,j.entityRef)),E=()=>{const D=(0,i.useContext)(I);if(D===void 0)return g;const j=D.atVersion(1);if(j===void 0)throw new Error("No context found for version 1.");return j}},99730:function(Z,T,t){"use strict";t.d(T,{e:function(){return o}});const o=Object.freeze({Header:"Header",Subheader:"Subheader",Settings:"Settings",PrimarySidebar:"PrimarySidebar",SecondarySidebar:"SecondarySidebar",Content:"Content"})},95768:function(Z,T,t){"use strict";t.d(T,{V:function(){return o}});function o(i,u){return u.getOptionalBoolean("techdocs.legacyUseCaseSensitiveTripletPaths")?i:i.toLocaleLowerCase("en-US")}},85920:function(Z,T,t){"use strict";t.d(T,{K:function(){return z}});var o=t(31085),i=t(14041),u=t(26280),C=t(59428),m=t(3851),f=t(21405),d=t(54203),c=t(67626),y=t(72987),A=t(91035),w=t(81859),v=t(86519);class O{getCatalogFilters(){return{"metadata.annotations.backstage.io/techdocs-ref":v.c}}}const g=()=>{const{updateFilters:W}=(0,f.nK)();return(0,i.useEffect)(()=>{W({techdocs:new O})},[W]),null};var I=t(51100),P=t(45250),E=t(88640),D=t(77310),j=t(56889),b=t(27125),V=t(84295),Y=t(42717);const tt=W=>{var k;const{columns:J,actions:nt,options:it}=W,{loading:mt,error:ft,entities:wt,filters:lt}=(0,f.nK)(),{isStarredEntity:At,toggleStarredEntity:at}=(0,j.I)(),[,G]=(0,I.A)();var rt;const xt=(0,P.capitalize)((rt=(k=lt.user)===null||k===void 0?void 0:k.value)!==null&&rt!==void 0?rt:"all"),St=[V.f.createCopyDocsUrlAction(G),V.f.createStarEntityAction(At,at)];return ft?(0,o.jsx)(E.B,{severity:"error",title:"Could not load available documentation.",children:(0,o.jsx)(D.z,{language:"text",text:ft.toString()})}):(0,o.jsx)(b.o,{title:xt,entities:wt,loading:mt,actions:nt||St,columns:J,options:it})};tt.columns=Y.B,tt.actions=V.f;const z=W=>{const{initialFilter:k="owned",columns:J,actions:nt}=W;return(0,o.jsx)(w.S,{children:(0,o.jsxs)(u.U,{children:[(0,o.jsx)(C.d,{title:"",children:(0,o.jsx)(m.Y,{children:"Discover documentation in your ecosystem."})}),(0,o.jsx)(f.B9,{children:(0,o.jsxs)(d.GI,{children:[(0,o.jsxs)(d.GI.Filters,{children:[(0,o.jsx)(g,{}),(0,o.jsx)(c.y,{initialFilter:k}),(0,o.jsx)(y.t,{}),(0,o.jsx)(A.m,{})]}),(0,o.jsx)(d.GI.Content,{children:(0,o.jsx)(tt,{actions:nt,columns:J})})]})})]})})}},27125:function(Z,T,t){"use strict";t.d(T,{o:function(){return E}});var o=t(31085),i=t(14041),u=t(51100),C=t(9222),m=t(72427),f=t(65461),d=t(51372),c=t(67871),y=t(90184),A=t(82779),w=t(14209),v=t(44186),O=t(73896),g=t(84295),I=t(42717),P=t(95768);const E=D=>{const{entities:j,title:b,loading:V,columns:Y,actions:tt,options:z}=D,[,W]=(0,u.A)(),k=(0,C.S)(A.Oc),J=(0,m.gf)(f.U);if(!j)return null;const nt=j.map(lt=>{const At=(0,c.t)(lt,d.vv);var at;return{entity:lt,resolved:{docsUrl:k({namespace:(0,P.V)((at=lt.metadata.namespace)!==null&&at!==void 0?at:"default",J),kind:(0,P.V)(lt.kind,J),name:(0,P.V)(lt.metadata.name,J)}),ownedByRelations:At,ownedByRelationsTitle:At.map(G=>(0,y.S)(G,{defaultKind:"group"})).join(", ")}}}),it=[I.B.createNameColumn(),I.B.createOwnerColumn(),I.B.createKindColumn(),I.B.createTypeColumn()],mt=[g.f.createCopyDocsUrlAction(W)],ft=20,wt=nt&&nt.length>ft;return(0,o.jsx)(o.Fragment,{children:V||nt&&nt.length>0?(0,o.jsx)(w.X,{isLoading:V,options:{paging:wt,pageSize:ft,search:!0,actionsColumnIndex:-1,...z},data:nt,columns:Y||it,actions:tt||mt,title:b?`${b} (${nt.length})`:`All (${nt.length})`}):(0,o.jsx)(v.p,{missing:"data",title:"No documents to show",description:"Create your own document. Check out our Getting Started Information",action:(0,o.jsx)(O.z,{color:"primary",to:"https://backstage.io/docs/features/techdocs/getting-started",variant:"contained",children:"DOCS"})})})};E.columns=I.B,E.actions=g.f},84295:function(Z,T,t){"use strict";t.d(T,{f:function(){return c}});var o=t(31085),i=t(14041),u=t(55290),C=t(80430),m=t(80109),f=t(15303);const d=(0,C.A)({root:{color:"#f3ba37"}})(m.A),c={createCopyDocsUrlAction(y){return A=>({icon:()=>(0,o.jsx)(u.A,{fontSize:"small"}),tooltip:"Click to copy documentation link to clipboard",onClick:()=>y(`${window.location.origin}${A.resolved.docsUrl}`)})},createStarEntityAction(y,A){return w=>{const v=w.entity,O=y(v);return{cellStyle:{paddingLeft:"1em"},icon:()=>O?(0,o.jsx)(d,{}):(0,o.jsx)(f.A,{}),tooltip:O?"Remove from favorites":"Add to favorites",onClick:()=>A(v)}}}}},42717:function(Z,T,t){"use strict";t.d(T,{B:function(){return A}});var o=t(31085),i=t(14041),u=t(10394),C=t(58837);const m=(0,C.A)(w=>({value:{marginBottom:w.spacing(.75)},subvalue:{color:w.palette.textSubtle,fontWeight:"normal"}}),{name:"BackstageSubvalueCell"});function f(w){const{value:v,subvalue:O}=w,g=m();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(u.A,{className:g.value,children:v}),(0,o.jsx)(u.A,{className:g.subvalue,children:O})]})}var d=t(72072),c=t(34428);function y(w){return w.metadata.title||w.metadata.name}const A={createNameColumn(){return{title:"Document",field:"entity.metadata.name",highlight:!0,render:w=>(0,o.jsx)(f,{value:(0,o.jsx)(d.N_,{to:w.resolved.docsUrl,children:y(w.entity)}),subvalue:w.entity.metadata.description})}},createOwnerColumn(){return{title:"Owner",field:"resolved.ownedByRelationsTitle",render:({resolved:w})=>(0,o.jsx)(c.i,{entityRefs:w.ownedByRelations,defaultKind:"group"})}},createKindColumn(){return{title:"Kind",field:"entity.kind"}},createTypeColumn(){return{title:"Type",field:"entity.spec.type"}}}},81859:function(Z,T,t){"use strict";t.d(T,{S:function(){return f}});var o=t(31085),i=t(14041),u=t(27155),C=t(72427),m=t(65461);const f=d=>{const{children:c}=d,y=(0,C.gf)(m.U);var A;const w=`Documentation available in ${(A=y.getOptionalString("organization.name"))!==null&&A!==void 0?A:"Backstage"}`;return(0,o.jsx)(u.d,{title:"Documentation",subtitle:w,themeId:"documentation",children:c})}},39278:function(Z,T,t){"use strict";t.d(T,{$j:function(){return V},Wj:function(){return Y},Ju:function(){return E}});var o=t(26679),i=t(18990),u=t(70835),C=t(97142),m=t(50165);class f{async getApiOrigin(){return await this.discoveryApi.getBaseUrl("techdocs")}async getTechDocsMetadata(W){const{kind:k,namespace:J,name:nt}=W,mt=`${await this.getApiOrigin()}/metadata/techdocs/${J}/${k}/${nt}`,ft=await this.fetchApi.fetch(`${mt}`);if(!ft.ok)throw await u.o.fromResponse(ft);return await ft.json()}async getEntityMetadata(W){const{kind:k,namespace:J,name:nt}=W,mt=`${await this.getApiOrigin()}/metadata/entity/${J}/${k}/${nt}`,ft=await this.fetchApi.fetch(`${mt}`);if(!ft.ok)throw await u.o.fromResponse(ft);return await ft.json()}constructor(W){(0,i._)(this,"configApi",void 0),(0,i._)(this,"discoveryApi",void 0),(0,i._)(this,"fetchApi",void 0),this.configApi=W.configApi,this.discoveryApi=W.discoveryApi,this.fetchApi=W.fetchApi}}class d{async getApiOrigin(){return await this.discoveryApi.getBaseUrl("techdocs")}async getStorageUrl(){var W;return(W=this.configApi.getOptionalString("techdocs.storageUrl"))!==null&&W!==void 0?W:`${await this.discoveryApi.getBaseUrl("techdocs")}/static/docs`}async getBuilder(){return this.configApi.getString("techdocs.builder")}async getEntityDocs(W,k){const{kind:J,namespace:nt,name:it}=W,ft=`${await this.getStorageUrl()}/${nt}/${J}/${it}/${k}`,wt=await this.fetchApi.fetch(`${ft.endsWith("/")?ft:`${ft}/`}index.html`);let lt="";switch(wt.status){case 404:throw lt="Page not found. ",k||(lt+="This could be because there is no index.md file in the root of the docs directory of this repository."),new C.m_(lt);case 500:throw lt="Could not generate documentation or an error in the TechDocs backend. ",new Error(lt);default:break}return wt.text()}async syncEntityDocs(W,k=()=>{}){const{kind:J,namespace:nt,name:it}=W,ft=`${await this.getApiOrigin()}/sync/${nt}/${J}/${it}`,{token:wt}=await this.identityApi.getCredentials();return new Promise((lt,At)=>{const at=new m.EventSourcePolyfill(ft,{withCredentials:!0,headers:wt?{Authorization:`Bearer ${wt}`}:{}});at.addEventListener("log",G=>{G.data&&k(JSON.parse(G.data))}),at.addEventListener("finish",G=>{let rt=!1;G.data&&({updated:rt}=JSON.parse(G.data)),lt(rt?"updated":"cached")}),at.onerror=G=>{switch(at.close(),G.status){case 404:At(new C.m_(G.message));return;default:At(new Error(G.data));return}}})}async getBaseUrl(W,k,J){const{kind:nt,namespace:it,name:mt}=k,wt=`${await this.getApiOrigin()}/static/docs/${it}/${nt}/${mt}/${J}`;return new URL(W,wt.endsWith("/")?wt:`${wt}/`).toString()}constructor(W){(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=W.configApi,this.discoveryApi=W.discoveryApi,this.identityApi=W.identityApi,this.fetchApi=W.fetchApi}}var c=t(82779),y=t(9803),A=t(12935),w=t(65461),v=t(57405),O=t(16009),g=t(70795),I=t(88758),P=t(54560);const E=(0,y.i)({id:"techdocs",apis:[(0,A.b)({api:o.s,deps:{configApi:w.U,discoveryApi:v.I,identityApi:O.K,fetchApi:g.a},factory:({configApi:z,discoveryApi:W,identityApi:k,fetchApi:J})=>new d({configApi:z,discoveryApi:W,identityApi:k,fetchApi:J})}),(0,A.b)({api:o.l,deps:{configApi:w.U,discoveryApi:v.I,fetchApi:g.a},factory:({configApi:z,discoveryApi:W,fetchApi:k})=>new f({configApi:z,discoveryApi:W,fetchApi:k})})],routes:{root:c.rQ,docRoot:c.Oc,entityContent:c.Ri}}),D=E.provide((0,I.QJ)({name:"TechdocsPage",component:()=>t.e(9605).then(t.bind(t,29605)).then(z=>z.Router),mountPoint:c.rQ})),j=E.provide((0,I.QJ)({name:"EntityTechdocsContent",component:()=>t.e(9605).then(t.bind(t,29605)).then(z=>z.EmbeddedDocsRouter),mountPoint:c.Ri})),b=E.provide((0,I.QJ)({name:"TechDocsCustomHome",component:()=>t.e(4487).then(t.bind(t,94487)).then(z=>z.TechDocsCustomHome),mountPoint:c.rQ})),V=E.provide((0,I.QJ)({name:"TechDocsIndexPage",component:()=>t.e(5788).then(t.bind(t,85788)).then(z=>z.TechDocsIndexPage),mountPoint:c.rQ})),Y=E.provide((0,I.QJ)({name:"TechDocsReaderPage",component:()=>t.e(4036).then(t.bind(t,84036)).then(z=>z.TechDocsReaderPage),mountPoint:c.Oc})),tt=E.provide((0,P.ec)({name:"TechDocsSearchResultListItem",component:()=>Promise.resolve().then(t.bind(t,27698)).then(z=>z.TechDocsSearchResultListItem),predicate:z=>z.type==="techdocs"}))},16203:function(Z,T,t){"use strict";t.d(T,{p:function(){return Rt}});var o=t(31085),i=t(14041),u=t(58837),C=t(42899),m=t(86892),f=t(9394),d=t(22856),c=t(91360),y=t(68146);const A="TECH_DOCS_SHADOW_DOM_STYLE_LOAD",w=h=>{(0,i.useEffect)(()=>{if(!h)return()=>{};const R=h.querySelectorAll('head > link[rel="stylesheet"]');var U;let $=(U=R==null?void 0:R.length)!==null&&U!==void 0?U:0;const Q=new CustomEvent(A);if(!$)return h.dispatchEvent(Q),()=>{};const _=()=>{--$===0&&h.dispatchEvent(Q)};return R==null||R.forEach(dt=>{dt.addEventListener("load",_)}),()=>{R==null||R.forEach(dt=>{dt.removeEventListener("load",_)})}},[h])},v=h=>{const[R,U]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{if(!h)return()=>{};U(!0);const $=h.style;$.setProperty("opacity","0");const Q=()=>{U(!1),$.setProperty("opacity","1")};return h.addEventListener(A,Q),()=>{h.removeEventListener(A,Q)}},[h]),R},O=h=>{const{element:R,onAppend:U,children:$}=h,[Q,_]=(0,i.useState)((0,f.vt)({...(0,d.A)(),insertionPoint:void 0}));w(R);const dt=v(R),bt=(0,i.useCallback)(Lt=>{if(!R||!Lt)return;_((0,f.vt)({...(0,d.A)(),insertionPoint:R.querySelector("head")||void 0}));let Ut=Lt.shadowRoot;Ut||(Ut=Lt.attachShadow({mode:"open"})),Ut.replaceChildren(R),typeof U=="function"&&U(Ut)},[R,U]);return(0,o.jsxs)(o.Fragment,{children:[dt&&(0,o.jsx)(y.k,{}),(0,o.jsxs)(c.Ay,{jss:Q,sheetsManager:new Map,children:[(0,o.jsx)("div",{ref:bt,"data-testid":"techdocs-native-shadowroot"}),$]})]})};var g=t(12784);const I=()=>{const{shadowRoot:h}=(0,m.V)();return h},P=h=>{const R=I();return R?h.map(U=>R==null?void 0:R.querySelectorAll(U)).filter(U=>U.length).map(U=>Array.from(U)).flat():[]},E=h=>h.toString()&&h.rangeCount&&h.getRangeAt(0).getBoundingClientRect().top,D=(h=0)=>{const R=I(),[U,$]=useState(null),Q=useMemo(()=>debounce(()=>{const _=R,dt=_.getSelection?_.getSelection():document.getSelection();dt&&E(dt)?$(dt):$(null)},h),[R,$,h]);return useEffect(()=>(window.document.addEventListener("selectionchange",Q),()=>{Q.cancel(),window.document.removeEventListener("selectionchange",Q)}),[Q]),U};var j=t(12173),b=t(26280),V=t(45250),Y=t(91638),tt=t(50193),z=t(43836),W=t(10602),k=t(72427),J=t(93368),nt=t(25862),it=t(65461),mt=t(55309);const ft=(0,mt.y)({id:"plugin.search.queryservice"});class wt{query(){return Promise.resolve(this.mockedResults||{results:[]})}constructor(R){_define_property(this,"mockedResults",void 0),this.mockedResults=R}}const lt=(0,z.tK)("search-context"),At=()=>{const h=(0,i.useContext)(lt);if(!h)throw new Error("useSearch must be used within a SearchContextProvider");const R=h.atVersion(1);if(!R)throw new Error("No SearchContext v1 found");return R},at=()=>(0,i.useContext)(lt)!==void 0,G={term:"",types:[],filters:{},pageLimit:void 0,pageCursor:void 0},rt=(h=G)=>{var R,U,$,Q;const _=(0,k.gf)(ft),dt=(0,J.s)(),[bt,Lt]=(0,i.useState)(h.term),[Ut,Zt]=(0,i.useState)(h.types),[Ft,It]=(0,i.useState)(h.filters),[ae,me]=(0,i.useState)(h.pageLimit),[Jt,Nt]=(0,i.useState)(h.pageCursor),re=(0,tt.A)(bt),ye=(0,tt.A)(Ft),Pt=(0,Y.default)(async()=>{const he=await _.query({term:bt,types:Ut,filters:Ft,pageLimit:ae,pageCursor:Jt});if(bt){var Fe,oe;dt.captureEvent("search",bt,{value:(oe=(Fe=Pt.value)===null||Fe===void 0?void 0:Fe.numberOfResults)!==null&&oe!==void 0?oe:void 0})}return he},[bt,Ut,Ft,ae,Jt]),zt=!Pt.loading&&!Pt.error&&((R=Pt.value)===null||R===void 0?void 0:R.nextPageCursor),qt=!Pt.loading&&!Pt.error&&((U=Pt.value)===null||U===void 0?void 0:U.previousPageCursor),Te=(0,i.useCallback)(()=>{var he;Nt((he=Pt.value)===null||he===void 0?void 0:he.nextPageCursor)},[($=Pt.value)===null||$===void 0?void 0:$.nextPageCursor]),Re=(0,i.useCallback)(()=>{var he;Nt((he=Pt.value)===null||he===void 0?void 0:he.previousPageCursor)},[(Q=Pt.value)===null||Q===void 0?void 0:Q.previousPageCursor]);return(0,i.useEffect)(()=>{re!==void 0&&bt!==re&&Nt(void 0)},[bt,re,Nt]),(0,i.useEffect)(()=>{ye!==void 0&&!(0,V.isEqual)(Ft,ye)&&Nt(void 0)},[Ft,ye,Nt]),{result:Pt,term:bt,setTerm:Lt,types:Ut,setTypes:Zt,filters:Ft,setFilters:It,pageLimit:ae,setPageLimit:me,pageCursor:Jt,setPageCursor:Nt,fetchNextPage:zt?Te:void 0,fetchPreviousPage:qt?Re:void 0}},xt=h=>{const{initialState:R,children:U}=h,$=rt(R);return(0,o.jsx)(nt.Ig,{attributes:{searchTypes:$.types.sort().join(",")},children:(0,o.jsx)(lt.Provider,{value:(0,W.B)({1:$}),children:U})})},St=h=>{const{initialState:R,inheritParentContextIfAvailable:U,children:$}=h,Q=at(),_=(0,k.gf)(it.U),dt=R!=null?R:{},bt=_.has("search.query.pageLimit")?{pageLimit:_.getNumber("search.query.pageLimit")}:{},Lt={...G,...dt,...bt};return Q&&U?(0,o.jsx)(o.Fragment,{children:$}):(0,o.jsx)(xt,{initialState:Lt,children:$})};var Ct=t(78467),ut=t(20577),ct=t(34839),pt=t(29365),H=t(16249),K=t(64947),q=t(45917),st=t(16983);function Et(h){return(0,i.forwardRef)((R,U)=>(0,o.jsx)(St,{inheritParentContextIfAvailable:!0,children:(0,o.jsx)(h,{...R,ref:U})}))}const vt=Et((0,i.forwardRef)((h,R)=>{const{onChange:U,onKeyDown:$=()=>{},onClear:Q=()=>{},onSubmit:_=()=>{},debounceTime:dt=200,clearButton:bt=!0,fullWidth:Lt=!0,value:Ut,label:Zt,placeholder:Ft,inputProps:It={},InputProps:ae={},endAdornment:me,...Jt}=h,Nt=(0,k.gf)(it.U),[re,ye]=(0,i.useState)(""),Pt=(0,i.useRef)("");(0,i.useEffect)(()=>{ye(oe=>oe===Pt.current?String(Ut):oe)},[Ut,Pt]),(0,st.A)(()=>{Pt.current=re,U(re)},dt,[re]);const zt=(0,i.useCallback)(oe=>{ye(oe.target.value)},[ye]),qt=(0,i.useCallback)(oe=>{$&&$(oe),_&&oe.key==="Enter"&&_()},[$,_]),Te=(0,i.useCallback)(()=>{Pt.current="",U(""),ye(""),Q&&Q()},[U,Q]),Re=Zt?void 0:"Search",Ke=Ft!=null?Ft:`Search in ${Nt.getOptionalString("app.title")||"Backstage"}`,he=(0,o.jsx)(ct.A,{position:"start",children:(0,o.jsx)(pt.A,{"aria-label":"Query",size:"small",disabled:!0,children:(0,o.jsx)(q.A,{})})}),Fe=(0,o.jsx)(ct.A,{position:"end",children:(0,o.jsx)(K.A,{"aria-label":"Clear",size:"small",onClick:Te,onKeyDown:oe=>{oe.key==="Enter"&&oe.stopPropagation()},children:"Clear"})});return(0,o.jsx)(H.A,{id:"search-bar-text-field","data-testid":"search-bar-next",variant:"outlined",margin:"normal",inputRef:R,value:re,label:Zt,placeholder:Ke,InputProps:{startAdornment:he,endAdornment:bt?Fe:me,...ae},inputProps:{"aria-label":Re,...It},fullWidth:Lt,onChange:zt,onKeyDown:qt,...Jt})})),jt=Et((0,i.forwardRef)((h,R)=>{const{value:U="",onChange:$,...Q}=h,{term:_,setTerm:dt}=At();(0,i.useEffect)(()=>{U&&dt(String(U))},[U,dt]);const bt=(0,i.useCallback)(Lt=>{$?$(Lt):dt(Lt)},[$,dt]);return(0,o.jsx)(nt.Ig,{attributes:{pluginId:"search",extension:"SearchBar"},children:(0,o.jsx)(vt,{...Q,ref:R,value:_,onChange:bt})})})),Kt=(0,u.A)(h=>({loading:{right:h.spacing(1),position:"absolute"}})),Bt=h=>R=>(0,o.jsx)(St,{inheritParentContextIfAvailable:!0,children:(0,o.jsx)(h,{...R})}),$t=()=>{const h=Kt();return(0,o.jsx)(Ct.A,{className:h.loading,"data-testid":"search-autocomplete-progressbar",color:"inherit",size:20})},Dt=Bt(function(R){const{loading:U,value:$,onChange:Q=()=>{},options:_=[],getOptionLabel:dt=Pt=>String(Pt),inputPlaceholder:bt,inputDebounceTime:Lt,freeSolo:Ut=!0,fullWidth:Zt=!0,clearOnBlur:Ft=!1,"data-testid":It="search-autocomplete",...ae}=R,{setTerm:me}=At(),Jt=(0,i.useCallback)(Pt=>Pt?typeof Pt=="string"?Pt:dt(Pt):"",[dt]),Nt=(0,i.useMemo)(()=>Jt($),[$,Jt]),re=(0,i.useCallback)((Pt,zt,qt,Te)=>{me(Jt(zt)),Q(Pt,zt,qt,Te)},[Jt,me,Q]),ye=(0,i.useCallback)(({InputProps:{ref:Pt,className:zt,endAdornment:qt},InputLabelProps:Te,...Re})=>(0,o.jsx)(jt,{...Re,ref:Pt,clearButton:!1,value:Nt,placeholder:bt,debounceTime:Lt,endAdornment:U?(0,o.jsx)($t,{}):qt,InputProps:{className:zt}}),[U,Nt,bt,Lt]);return(0,o.jsx)(ut.Ay,{...ae,"data-testid":It,value:$,onChange:re,options:_,getOptionLabel:dt,renderInput:ye,freeSolo:Ut,fullWidth:Zt,clearOnBlur:Ft})});var Gt=t(18690),De=t(27698);const fe=h=>h==null?void 0:h.document,se=h=>{const{entityId:R,entityTitle:U,debounceTime:$=150}=h,[Q,_]=(0,i.useState)(!1),dt=(0,Gt.Zp)(),{setFilters:bt,result:{loading:Lt,value:Ut}}=At(),[Zt,Ft]=(0,i.useState)([]);(0,i.useEffect)(()=>{let Nt=!0;if(Nt&&Ut){const re=Ut.results.slice(0,10);Ft(re)}return()=>{Nt=!1}},[Lt,Ut]);const{kind:It,name:ae,namespace:me}=R;(0,i.useEffect)(()=>{bt(Nt=>({...Nt,kind:It,namespace:me,name:ae}))},[It,me,ae,bt]);const Jt=(Nt,re)=>{if(fe(re)){const{location:ye}=re.document;dt(ye)}};return(0,o.jsx)(Dt,{"data-testid":"techdocs-search-bar",size:"small",open:Q,getOptionLabel:()=>"",filterOptions:Nt=>Nt,onClose:()=>{_(!1)},onFocus:()=>{_(!0)},onChange:Jt,blurOnSelect:!0,noOptionsText:"No results found",value:null,options:Zt,renderOption:({document:Nt,highlight:re})=>(0,o.jsx)(De.TechDocsSearchResultListItem,{result:Nt,lineClamp:3,asListItem:!1,asLink:!1,title:Nt.title,highlight:re}),loading:Lt,inputDebounceTime:$,inputPlaceholder:`Search ${U||R.name} docs`,freeSolo:!1})},Xt=h=>{const R={term:"",types:["techdocs"],pageCursor:"",filters:h.entityId};return(0,o.jsx)(St,{initialState:R,children:(0,o.jsx)(se,{...h})})};var Mt=t(74219),Vt=t(82266);const be=(0,i.lazy)(()=>Promise.all([t.e(3308),t.e(9234)]).then(t.bind(t,99234)).then(h=>({default:h.RealLogViewer})));function Ve(h){const{Progress:R}=(0,Vt.n)().getComponents();return(0,o.jsx)(i.Suspense,{fallback:(0,o.jsx)(R,{}),children:(0,o.jsx)(be,{...h})})}var Ae=t(12398),on=t(72501),Xe=t(73845),_e=t(32881);const Ge=(0,u.A)(h=>(0,Ae.A)({paper:{width:"100%",[h.breakpoints.up("sm")]:{width:"75%"},[h.breakpoints.up("md")]:{width:"50%"},padding:h.spacing(2.5)},root:{height:"100%",overflow:"hidden"},logs:{background:h.palette.background.default}})),le=({buildLog:h,onClose:R})=>{const U=Ge(),$=h.length===0?"Waiting for logs...":h.join(`
6
- `);return(0,o.jsxs)(C.A,{container:!0,direction:"column",className:U.root,spacing:0,wrap:"nowrap",children:[(0,o.jsxs)(C.A,{item:!0,container:!0,justifyContent:"space-between",alignItems:"center",spacing:0,wrap:"nowrap",children:[(0,o.jsx)(on.A,{variant:"h5",children:"Build Details"}),(0,o.jsx)(pt.A,{title:"Close the drawer",onClick:R,color:"inherit",children:(0,o.jsx)(_e.A,{})},"dismiss")]}),(0,o.jsx)(C.A,{item:!0,xs:!0,children:(0,o.jsx)(Ve,{text:$,classes:{root:U.logs}})})]})},ze=({buildLog:h})=>{const R=Ge(),[U,$]=(0,i.useState)(!1);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(K.A,{color:"inherit",onClick:()=>$(!0),children:"Show Build Logs"}),(0,o.jsx)(Xe.Ay,{classes:{paper:R.paper},anchor:"right",open:U,onClose:()=>$(!1),children:(0,o.jsx)(le,{buildLog:h,onClose:()=>$(!1)})})]})},We=({errorMessage:h})=>{const R=(0,k.gf)(it.U).getOptionalString("techdocs.builder"),U=(0,J.s)(),{entityRef:$}=(0,m.V)(),Q=(0,Gt.zy)();(0,i.useEffect)(()=>{const{pathname:dt,search:bt,hash:Lt}=Q;U.captureEvent("not-found",`${dt}${bt}${Lt}`,{attributes:$})},[U,$,Q]);let _="";return R!=="local"&&(_="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)(j.M,{status:"404",statusMessage:h||"Documentation not found",additionalInfo:_})};var cn=t(38282),Ue=t(26679);function ce({contentLoading:h,content:R,activeSyncState:U}){return h||U==="BUILD_READY_RELOAD"||!R&&U==="CHECKING"?"CHECKING":!R&&U==="BUILDING"?"INITIAL_BUILD":R?U==="BUILDING"?"CONTENT_STALE_REFRESHING":U==="BUILD_READY"?"CONTENT_STALE_READY":U==="ERROR"?"CONTENT_STALE_ERROR":"CONTENT_FRESH":"CONTENT_NOT_FOUND"}function Ye(h,R){const U={...h};switch(R.type){case"sync":R.state==="CHECKING"&&(U.buildLog=[]),U.activeSyncState=R.state,U.syncError=R.syncError;break;case"contentLoading":U.contentLoading=!0,U.contentError=void 0;break;case"content":typeof R.path=="string"&&(U.path=R.path),U.contentLoading=!1,U.content=R.content,U.contentError=R.contentError;break;case"buildLog":U.buildLog=U.buildLog.concat(R.log);break;default:throw new Error}return["BUILD_READY","BUILD_READY_RELOAD"].includes(U.activeSyncState)&&["contentLoading","content"].includes(R.type)&&(U.activeSyncState="UP_TO_DATE",U.buildLog=[]),U}function Oe(h,R,U,$){var Q,_;const[dt,bt]=(0,i.useReducer)(Ye,{activeSyncState:"CHECKING",path:$,contentLoading:!0,buildLog:[]}),Lt=(0,k.gf)(Ue.s),{retry:Ut}=(0,cn.A)(async()=>{bt({type:"contentLoading"});try{const It=await Lt.getEntityDocs({kind:h,namespace:R,name:U},$);return bt({type:"content",content:It,path:$}),It}catch(It){bt({type:"content",contentError:It,path:$})}},[Lt,h,R,U,$]),Zt=(0,i.useRef)({content:void 0,reload:()=>{}});return Zt.current={content:dt.content,reload:Ut},(0,Y.default)(async()=>{bt({type:"sync",state:"CHECKING"});const It=setTimeout(()=>{bt({type:"sync",state:"BUILDING"})},1e3);try{switch(await Lt.syncEntityDocs({kind:h,namespace:R,name:U},me=>{bt({type:"buildLog",log:me})})){case"updated":Zt.current.content?bt({type:"sync",state:"BUILD_READY"}):(Zt.current.reload(),bt({type:"sync",state:"BUILD_READY_RELOAD"}));break;case"cached":bt({type:"sync",state:"UP_TO_DATE"});break;default:bt({type:"sync",state:"ERROR",syncError:new Error("Unexpected return state")});break}}catch(ae){bt({type:"sync",state:"ERROR",syncError:ae})}finally{clearTimeout(It)}},[h,U,R,Lt,bt,Zt]),{state:(0,i.useMemo)(()=>ce({activeSyncState:dt.activeSyncState,contentLoading:dt.contentLoading,content:dt.content}),[dt.activeSyncState,dt.content,dt.contentLoading]),contentReload:Ut,path:dt.path,content:dt.content,contentErrorMessage:(Q=dt.contentError)===null||Q===void 0?void 0:Q.toString(),syncErrorMessage:(_=dt.syncError)===null||_===void 0?void 0:_.toString(),buildLog:dt.buildLog}}const ke=(0,i.createContext)({}),He=()=>(0,i.useContext)(ke),M=h=>{const{children:R}=h,{"*":U=""}=(0,Gt.g)(),{entityRef:$}=(0,m.V)(),{kind:Q,namespace:_,name:dt}=$,bt=Oe(Q,_,dt,U);return(0,o.jsx)(ke.Provider,{value:bt,children:R instanceof Function?R(bt):R})},p=h=>R=>(0,o.jsx)(M,{children:(0,o.jsx)(h,{...R})}),B=(0,u.A)(h=>({root:{marginBottom:h.spacing(2)},message:{wordBreak:"break-word",overflowWrap:"anywhere"}})),F=()=>{let h=null;const R=B(),{state:U,contentReload:$,contentErrorMessage:Q,syncErrorMessage:_,buildLog:dt}=He();return U==="INITIAL_BUILD"&&(h=(0,o.jsx)(Mt.A,{classes:{root:R.root},variant:"outlined",severity:"info",icon:(0,o.jsx)(Ct.A,{size:"24px"}),action:(0,o.jsx)(ze,{buildLog:dt}),children:"Documentation is accessed for the first time and is being prepared. The subsequent loads are much faster."})),U==="CONTENT_STALE_REFRESHING"&&(h=(0,o.jsx)(Mt.A,{variant:"outlined",severity:"info",icon:(0,o.jsx)(Ct.A,{size:"24px"}),action:(0,o.jsx)(ze,{buildLog:dt}),classes:{root:R.root},children:"A newer version of this documentation is being prepared and will be available shortly."})),U==="CONTENT_STALE_READY"&&(h=(0,o.jsx)(Mt.A,{variant:"outlined",severity:"success",action:(0,o.jsx)(K.A,{color:"inherit",onClick:()=>$(),children:"Refresh"}),classes:{root:R.root},children:"A newer version of this documentation is now available, please refresh to view."})),U==="CONTENT_STALE_ERROR"&&(h=(0,o.jsxs)(Mt.A,{variant:"outlined",severity:"error",action:(0,o.jsx)(ze,{buildLog:dt}),classes:{root:R.root,message:R.message},children:["Building a newer version of this documentation failed."," ",_]})),U==="CONTENT_NOT_FOUND"&&(h=(0,o.jsxs)(o.Fragment,{children:[_&&(0,o.jsxs)(Mt.A,{variant:"outlined",severity:"error",action:(0,o.jsx)(ze,{buildLog:dt}),classes:{root:R.root,message:R.message},children:["Building a newer version of this documentation failed."," ",_]}),(0,o.jsx)(We,{errorMessage:Q})]})),h};var gt=t(54917),et=t(5893),Tt=t(43320),_t=t(71651),te=t.n(_t);const ge=/main\.[A-Fa-f0-9]{8}\.min\.css$/,pe=/^https:\/\/fonts\.googleapis\.com/,ve=/^https:\/\/fonts\.gstatic\.com/,de=h=>h.nodeName==="LINK",Yt=h=>{const R=(h==null?void 0:h.getAttribute("href"))||"",U=R.match(ge),$=R.match(pe),Q=R.match(ve);return U||$||Q},we=h=>(de(h)&&!Yt(h)&&h.remove(),h),je=h=>h.nodeName==="IFRAME",kt=(h,R)=>{const U=h.getAttribute("src")||"";try{const{host:$}=new URL(U);return R.includes($)}catch{return!1}},ne=h=>R=>(je(R)&&!kt(R,h)&&R.remove(),R),ie=()=>{const h=(0,k.gf)(it.U);return(0,i.useMemo)(()=>h.getOptionalConfig("techdocs.sanitizer"),[h])},Nn=()=>{const h=ie();return(0,i.useCallback)(async R=>{const U=h==null?void 0:h.getOptionalStringArray("allowedIframeHosts");te().addHook("beforeSanitizeElements",we);const $=["link"];return U&&($.push("iframe"),te().addHook("beforeSanitizeElements",ne(U))),te().sanitize(R.outerHTML,{ADD_TAGS:$,FORBID_TAGS:["style"],WHOLE_DOCUMENT:!0,RETURN_DOM:!0})},[h])};var Co=t(34435),Pe=t(268),Wn=({theme:h})=>`
7
- /*================== Variables ==================*/
8
- /*
9
- 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.
10
- 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.
11
- */
12
-
13
- :host {
14
- /* FONT */
15
- --md-default-fg-color: ${h.palette.text.primary};
16
- --md-default-fg-color--light: ${h.palette.text.secondary};
17
- --md-default-fg-color--lighter: ${(0,Pe.a)(h.palette.text.secondary,.7)};
18
- --md-default-fg-color--lightest: ${(0,Pe.a)(h.palette.text.secondary,.3)};
19
-
20
- /* BACKGROUND */
21
- --md-default-bg-color:${h.palette.background.default};
22
- --md-default-bg-color--light: ${h.palette.background.paper};
23
- --md-default-bg-color--lighter: ${(0,Pe.a)(h.palette.background.paper,.7)};
24
- --md-default-bg-color--lightest: ${(0,Pe.a)(h.palette.background.paper,.3)};
25
-
26
- /* PRIMARY */
27
- --md-primary-fg-color: ${h.palette.primary.main};
28
- --md-primary-fg-color--light: ${h.palette.primary.light};
29
- --md-primary-fg-color--dark: ${h.palette.primary.dark};
30
- --md-primary-bg-color: ${h.palette.primary.contrastText};
31
- --md-primary-bg-color--light: ${(0,Pe.a)(h.palette.primary.contrastText,.7)};
32
-
33
- /* ACCENT */
34
- --md-accent-fg-color: var(--md-primary-fg-color);
35
-
36
- /* SHADOW */
37
- --md-shadow-z1: ${h.shadows[1]};
38
- --md-shadow-z2: ${h.shadows[2]};
39
- --md-shadow-z3: ${h.shadows[3]};
40
-
41
- /* EXTENSIONS */
42
- --md-admonition-fg-color: var(--md-default-fg-color);
43
- --md-admonition-bg-color: var(--md-default-bg-color);
44
- /* Admonitions and others are using SVG masks to define icons. These masks are defined as CSS variables. */
45
- --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>');
46
- --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>');
47
- --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>');
48
- --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>');
49
- --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>');
50
- --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>');
51
- --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>');
52
- --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>');
53
- --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>');
54
- --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>');
55
- --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>');
56
- --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>');
57
- --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>');
58
- --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>');
59
- --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>');
60
- --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>');
61
- --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>');
62
- --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>');
63
- --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>');
64
- --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>');
65
- --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>');
66
- --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>');
67
- --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>');
68
- --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>');
69
- --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>');
70
- --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>');
71
- }
72
-
73
- :host > * {
74
- /* CODE */
75
- --md-code-fg-color: ${h.palette.text.primary};
76
- --md-code-bg-color: ${h.palette.background.paper};
77
- --md-code-hl-color: ${(0,Pe.X4)(h.palette.warning.main,.5)};
78
- --md-code-hl-keyword-color: ${h.palette.type==="dark"?h.palette.primary.light:h.palette.primary.dark};
79
- --md-code-hl-function-color: ${h.palette.type==="dark"?h.palette.secondary.light:h.palette.secondary.dark};
80
- --md-code-hl-string-color: ${h.palette.type==="dark"?h.palette.success.light:h.palette.success.dark};
81
- --md-code-hl-number-color: ${h.palette.type==="dark"?h.palette.error.light:h.palette.error.dark};
82
- --md-code-hl-constant-color: var(--md-code-hl-function-color);
83
- --md-code-hl-special-color: var(--md-code-hl-function-color);
84
- --md-code-hl-name-color: var(--md-code-fg-color);
85
- --md-code-hl-comment-color: var(--md-default-fg-color--light);
86
- --md-code-hl-generic-color: var(--md-default-fg-color--light);
87
- --md-code-hl-variable-color: var(--md-default-fg-color--light);
88
- --md-code-hl-operator-color: var(--md-default-fg-color--light);
89
- --md-code-hl-punctuation-color: var(--md-default-fg-color--light);
90
-
91
- /* TYPESET */
92
- --md-typeset-font-size: 1rem;
93
- --md-typeset-color: var(--md-default-fg-color);
94
- --md-typeset-a-color: ${h.palette.link};
95
- --md-typeset-table-color: ${h.palette.text.primary};
96
- --md-typeset-del-color: ${h.palette.type==="dark"?(0,Pe.X4)(h.palette.error.dark,.5):(0,Pe.X4)(h.palette.error.light,.5)};
97
- --md-typeset-ins-color: ${h.palette.type==="dark"?(0,Pe.X4)(h.palette.success.dark,.5):(0,Pe.X4)(h.palette.success.light,.5)};
98
- --md-typeset-mark-color: ${h.palette.type==="dark"?(0,Pe.X4)(h.palette.warning.dark,.5):(0,Pe.X4)(h.palette.warning.light,.5)};
99
- }
100
-
101
- @media screen and (max-width: 76.1875em) {
102
- :host > * {
103
- /* TYPESET */
104
- --md-typeset-font-size: .9rem;
105
- }
106
- }
107
-
108
- @media screen and (max-width: 600px) {
109
- :host > * {
110
- /* TYPESET */
111
- --md-typeset-font-size: .7rem;
112
- }
113
- }
114
- `,kn=({theme:h})=>`
115
- /*================== Reset ==================*/
116
-
117
- body {
118
- --md-text-color: var(--md-default-fg-color);
119
- --md-text-link-color: var(--md-accent-fg-color);
120
- --md-text-font-family: ${h.typography.fontFamily};
121
- font-family: var(--md-text-font-family);
122
- background-color: unset;
123
- }
124
- `;const rn="224px";var Me=({theme:h,sidebar:R})=>`
125
- /*================== Layout ==================*/
126
-
127
- /* mkdocs material v9 compat */
128
- .md-nav__title {
129
- color: var(--md-default-fg-color);
130
- }
131
-
132
- .md-grid {
133
- max-width: 100%;
134
- margin: 0;
135
- }
136
-
137
- .md-nav {
138
- font-size: calc(var(--md-typeset-font-size) * 0.9);
139
- }
140
- .md-nav__link {
141
- display: flex;
142
- align-items: center;
143
- justify-content: space-between;
144
- }
145
- .md-nav__icon {
146
- height: 20px !important;
147
- width: 20px !important;
148
- margin-left:${h.spacing(1)}px;
149
- }
150
- .md-nav__icon svg {
151
- margin: 0;
152
- width: 20px !important;
153
- height: 20px !important;
154
- }
155
- .md-nav__icon:after {
156
- width: 20px !important;
157
- height: 20px !important;
158
- }
159
-
160
- .md-nav__item--active > .md-nav__link, a.md-nav__link--active {
161
- text-decoration: underline;
162
- color: var(--md-typeset-a-color);
163
- }
164
-
165
- .md-main__inner {
166
- margin-top: 0;
167
- }
168
-
169
- .md-sidebar {
170
- bottom: 75px;
171
- position: fixed;
172
- width: 16rem;
173
- overflow-y: auto;
174
- overflow-x: hidden;
175
- scrollbar-color: rgb(193, 193, 193) #eee;
176
- scrollbar-width: thin;
177
- }
178
- .md-sidebar .md-sidebar__scrollwrap {
179
- width: calc(12.1rem);
180
- }
181
- .md-sidebar--secondary {
182
- right: ${h.spacing(3)}px;
183
- }
184
- .md-sidebar::-webkit-scrollbar {
185
- width: 5px;
186
- }
187
- .md-sidebar::-webkit-scrollbar-button {
188
- width: 5px;
189
- height: 5px;
190
- }
191
- .md-sidebar::-webkit-scrollbar-track {
192
- background: #eee;
193
- border: 1 px solid rgb(250, 250, 250);
194
- box-shadow: 0px 0px 3px #dfdfdf inset;
195
- border-radius: 3px;
196
- }
197
- .md-sidebar::-webkit-scrollbar-thumb {
198
- width: 5px;
199
- background: rgb(193, 193, 193);
200
- border: transparent;
201
- border-radius: 3px;
202
- }
203
- .md-sidebar::-webkit-scrollbar-thumb:hover {
204
- background: rgb(125, 125, 125);
205
- }
206
-
207
- .md-content {
208
- max-width: calc(100% - 16rem * 2);
209
- margin-left: 16rem;
210
- margin-bottom: 50px;
211
- }
212
-
213
- .md-footer {
214
- position: fixed;
215
- bottom: 0px;
216
- pointer-events: none;
217
- }
218
-
219
- .md-footer-nav__link, .md-footer__link {
220
- pointer-events: all;
221
- }
222
-
223
- .md-footer__title {
224
- background-color: unset;
225
- }
226
- .md-footer-nav__link, .md-footer__link {
227
- width: 16rem;
228
- }
229
-
230
- .md-dialog {
231
- background-color: unset;
232
- }
233
-
234
- @media screen and (min-width: 76.25em) {
235
- .md-sidebar {
236
- height: auto;
237
- }
238
- }
239
-
240
- @media screen and (max-width: 76.1875em) {
241
- .md-nav {
242
- transition: none !important;
243
- background-color: var(--md-default-bg-color)
244
- }
245
- .md-nav--primary .md-nav__title {
246
- cursor: auto;
247
- color: var(--md-default-fg-color);
248
- font-weight: 700;
249
- white-space: normal;
250
- line-height: 1rem;
251
- height: auto;
252
- display: flex;
253
- flex-flow: column;
254
- row-gap: 1.6rem;
255
- padding: 1.2rem .8rem .8rem;
256
- background-color: var(--md-default-bg-color);
257
- }
258
- .md-nav--primary .md-nav__title~.md-nav__list {
259
- box-shadow: none;
260
- }
261
- .md-nav--primary .md-nav__title ~ .md-nav__list > :first-child {
262
- border-top: none;
263
- }
264
- .md-nav--primary .md-nav__title .md-nav__button {
265
- display: none;
266
- }
267
- .md-nav--primary .md-nav__title .md-nav__icon {
268
- color: var(--md-default-fg-color);
269
- position: static;
270
- height: auto;
271
- margin: 0 0 0 -0.2rem;
272
- }
273
- .md-nav--primary > .md-nav__title [for="none"] {
274
- padding-top: 0;
275
- }
276
- .md-nav--primary .md-nav__item {
277
- border-top: none;
278
- }
279
- .md-nav--primary :is(.md-nav__title,.md-nav__item) {
280
- font-size : var(--md-typeset-font-size);
281
- }
282
- .md-nav .md-source {
283
- display: none;
284
- }
285
-
286
- .md-sidebar {
287
- height: 100%;
288
- }
289
- .md-sidebar--primary {
290
- width: 12.1rem !important;
291
- z-index: 200;
292
- left: ${R.isPinned?`calc(-12.1rem + ${rn})`:"calc(-12.1rem + 72px)"} !important;
293
- }
294
- .md-sidebar--secondary:not([hidden]) {
295
- display: none;
296
- }
297
-
298
- .md-content {
299
- max-width: 100%;
300
- margin-left: 0;
301
- }
302
-
303
- .md-header__button {
304
- margin: 0.4rem 0;
305
- margin-left: 0.4rem;
306
- padding: 0;
307
- }
308
-
309
- .md-overlay {
310
- left: 0;
311
- }
312
-
313
- .md-footer {
314
- position: static;
315
- padding-left: 0;
316
- }
317
- .md-footer-nav__link {
318
- /* footer links begin to overlap at small sizes without setting width */
319
- width: 50%;
320
- }
321
- }
322
-
323
- @media screen and (max-width: 600px) {
324
- .md-sidebar--primary {
325
- left: -12.1rem !important;
326
- width: 12.1rem;
327
- }
328
- }
329
-
330
-
331
- @media print {
332
- .md-sidebar,
333
- #toggle-sidebar {
334
- display: none;
335
- }
336
-
337
- .md-content {
338
- margin: 0;
339
- width: 100%;
340
- max-width: 100%;
341
- }
342
- }
343
- `;const So=["h1","h2","h3","h4","h5","h6"];var qe=({theme:h})=>`
344
- /*================== Typeset ==================*/
345
-
346
- .md-typeset {
347
- font-size: var(--md-typeset-font-size);
348
- }
349
-
350
- ${So.reduce((R,U)=>{var $;const Q=($=h.typography.htmlFontSize)!==null&&$!==void 0?$:16,_=h.typography[U],{lineHeight:dt,fontFamily:bt,fontWeight:Lt,fontSize:Ut}=_,Zt=Ft=>{let It=1;return typeof Ft=="number"&&(It=Ft/Q*.6),typeof Ft=="string"&&(It=Ft.replace("rem","")),`calc(${It} * var(--md-typeset-font-size))`};return R.concat(`
351
- .md-typeset ${U} {
352
- color: var(--md-default-fg-color);
353
- line-height: ${dt};
354
- font-family: ${bt};
355
- font-weight: ${Lt};
356
- font-size: ${Zt(Ut)};
357
- }
358
- `)},"")}
359
-
360
- .md-typeset .md-content__button {
361
- color: var(--md-default-fg-color);
362
- }
363
-
364
- .md-typeset hr {
365
- border-bottom: 0.05rem dotted ${h.palette.divider};
366
- }
367
-
368
- .md-typeset details {
369
- font-size: var(--md-typeset-font-size) !important;
370
- }
371
- .md-typeset details summary {
372
- padding-left: 2.5rem !important;
373
- }
374
- .md-typeset details summary:before,
375
- .md-typeset details summary:after {
376
- top: 50% !important;
377
- width: 20px !important;
378
- height: 20px !important;
379
- transform: rotate(0deg) translateY(-50%) !important;
380
- }
381
- .md-typeset details[open] > summary:after {
382
- transform: rotate(90deg) translateX(-50%) !important;
383
- }
384
-
385
- .md-typeset blockquote {
386
- color: var(--md-default-fg-color--light);
387
- border-left: 0.2rem solid var(--md-default-fg-color--light);
388
- }
389
-
390
- .md-typeset table:not([class]) {
391
- font-size: var(--md-typeset-font-size);
392
- border: 1px solid var(--md-default-fg-color);
393
- border-bottom: none;
394
- border-collapse: collapse;
395
- }
396
- .md-typeset table:not([class]) th {
397
- font-weight: bold;
398
- }
399
- .md-typeset table:not([class]) td, .md-typeset table:not([class]) th {
400
- border-bottom: 1px solid var(--md-default-fg-color);
401
- }
402
-
403
- .md-typeset pre > code::-webkit-scrollbar-thumb {
404
- background-color: hsla(0, 0%, 0%, 0.32);
405
- }
406
- .md-typeset pre > code::-webkit-scrollbar-thumb:hover {
407
- background-color: hsla(0, 0%, 0%, 0.87);
408
- }
409
-
410
- .md-typeset code {
411
- word-break: keep-all;
412
- }
413
- `,bo=()=>`
414
- /*================== Animations ==================*/
415
- /*
416
- Disable CSS animations on link colors as they lead to issues in dark mode.
417
- The dark mode color theme is applied later and theirfore there is always an animation from light to dark mode when navigation between pages.
418
- */
419
- .md-dialog, .md-nav__link, .md-footer__link, .md-typeset a, .md-typeset a::before, .md-typeset .headerlink {
420
- transition: none;
421
- }
422
- `,Kn=({theme:h})=>`
423
- /*================== Extensions ==================*/
424
-
425
- /* HIGHLIGHT */
426
- .highlight .md-clipboard:after {
427
- content: unset;
428
- }
429
-
430
- .highlight .nx {
431
- color: ${h.palette.type==="dark"?"#ff53a3":"#ec407a"};
432
- }
433
-
434
- /* CODE HILITE */
435
- .codehilite .gd {
436
- background-color: ${h.palette.type==="dark"?"rgba(248,81,73,0.65)":"#fdd"};
437
- }
438
-
439
- .codehilite .gi {
440
- background-color: ${h.palette.type==="dark"?"rgba(46,160,67,0.65)":"#dfd"};
441
- }
442
-
443
- /* TABBED */
444
- .tabbed-set>input:nth-child(1):checked~.tabbed-labels>:nth-child(1),
445
- .tabbed-set>input:nth-child(2):checked~.tabbed-labels>:nth-child(2),
446
- .tabbed-set>input:nth-child(3):checked~.tabbed-labels>:nth-child(3),
447
- .tabbed-set>input:nth-child(4):checked~.tabbed-labels>:nth-child(4),
448
- .tabbed-set>input:nth-child(5):checked~.tabbed-labels>:nth-child(5),
449
- .tabbed-set>input:nth-child(6):checked~.tabbed-labels>:nth-child(6),
450
- .tabbed-set>input:nth-child(7):checked~.tabbed-labels>:nth-child(7),
451
- .tabbed-set>input:nth-child(8):checked~.tabbed-labels>:nth-child(8),
452
- .tabbed-set>input:nth-child(9):checked~.tabbed-labels>:nth-child(9),
453
- .tabbed-set>input:nth-child(10):checked~.tabbed-labels>:nth-child(10),
454
- .tabbed-set>input:nth-child(11):checked~.tabbed-labels>:nth-child(11),
455
- .tabbed-set>input:nth-child(12):checked~.tabbed-labels>:nth-child(12),
456
- .tabbed-set>input:nth-child(13):checked~.tabbed-labels>:nth-child(13),
457
- .tabbed-set>input:nth-child(14):checked~.tabbed-labels>:nth-child(14),
458
- .tabbed-set>input:nth-child(15):checked~.tabbed-labels>:nth-child(15),
459
- .tabbed-set>input:nth-child(16):checked~.tabbed-labels>:nth-child(16),
460
- .tabbed-set>input:nth-child(17):checked~.tabbed-labels>:nth-child(17),
461
- .tabbed-set>input:nth-child(18):checked~.tabbed-labels>:nth-child(18),
462
- .tabbed-set>input:nth-child(19):checked~.tabbed-labels>:nth-child(19),
463
- .tabbed-set>input:nth-child(20):checked~.tabbed-labels>:nth-child(20) {
464
- color: var(--md-accent-fg-color);
465
- border-color: var(--md-accent-fg-color);
466
- }
467
-
468
- /* TASK-LIST */
469
- .task-list-control .task-list-indicator::before {
470
- background-color: ${h.palette.action.disabledBackground};
471
- }
472
- .task-list-control [type="checkbox"]:checked + .task-list-indicator:before {
473
- background-color: ${h.palette.success.main};
474
- }
475
-
476
- /* ADMONITION */
477
- .admonition {
478
- font-size: var(--md-typeset-font-size) !important;
479
- }
480
- .admonition .admonition-title {
481
- padding-left: 2.5rem !important;
482
- }
483
-
484
- .admonition .admonition-title:before {
485
- top: 50% !important;
486
- width: 20px !important;
487
- height: 20px !important;
488
- transform: translateY(-50%) !important;
489
- }
490
- `;const Oo=[Wn,kn,Me,qe,bo,Kn],Qt=()=>(0,Co.Ut)(),tn=()=>{const h=Qt(),R=(0,gt.A)();return(0,i.useMemo)(()=>{const U={theme:R,sidebar:h};return Oo.reduce(($,Q)=>$+Q(U),"")},[R,h])},dn=()=>{const h=tn();return(0,i.useCallback)(R=>(R.getElementsByTagName("head")[0].insertAdjacentHTML("beforeend",`<style>${h}</style>`),R),[h])},zn=async(h,R)=>{let U;if(typeof h=="string")U=new DOMParser().parseFromString(h,"text/html").documentElement;else if(h instanceof Element)U=h;else throw new Error("dom is not a recognized type");for(const $ of R)U=await $(U);return U},wo=(h,R,U)=>{const $=h==="src"&&R.endsWith(".svg"),Q=!R.match(/^([a-z]*:)?\/\//i),_=R.startsWith(U);return $&&(Q||_)},Po=({techdocsStorageApi:h,entityId:R,path:U})=>async $=>{const Q=await h.getApiOrigin(),_=async(dt,bt)=>{for(const Lt of dt)if(Lt.hasAttribute(bt)){const Ut=Lt.getAttribute(bt);if(!Ut)return;const Zt=await h.getBaseUrl(Ut,R,U);if(wo(bt,Ut,Q))try{const It=await(await fetch(Zt,{credentials:"include"})).text();Lt.setAttribute(bt,`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(It)))}`)}catch{Lt.setAttribute("alt",`Error: ${Ut}`)}else Lt.setAttribute(bt,Zt)}};return await Promise.all([_($.querySelectorAll("img"),"src"),_($.querySelectorAll("script"),"src"),_($.querySelectorAll("source"),"src"),_($.querySelectorAll("link"),"href"),_($.querySelectorAll("a[download]"),"href")]),$},To=()=>h=>(((U,$)=>{Array.from(U).filter(Q=>Q.hasAttribute($)).forEach(Q=>{const _=Q.getAttribute($);if(_){_.match(/^https?:\/\//i)&&Q.setAttribute("target","_blank");try{const dt=An(window.location.href);Q.setAttribute($,new URL(_,dt).toString())}catch{Q.replaceWith(Q.textContent||_)}}})})(Array.from(h.getElementsByTagName("a")),"href"),h);function An(h){const R=new URL(h);return!R.pathname.endsWith("/")&&!R.pathname.endsWith(".html")&&(R.pathname+="/"),R.toString()}var Ro=t(27326);let xn;xn=Promise.resolve().then(t.t.bind(t,25873,19));function Cn(h,R){xn.then(U=>{"createRoot"in U?U.createRoot(R).render(h):U.render(h,R)})}const Hn=()=>h=>{const R=h.querySelector('.md-header label[for="__drawer"]'),U=h.querySelector("article");if(!R||!U)return h;const $=R.cloneNode();return Cn(i.createElement(Ro.A),$),$.id="toggle-sidebar",$.title="Toggle Sidebar",$.classList.add("md-content__button"),$.style.setProperty("padding","0 0 0 5px"),$.style.setProperty("margin","0.4rem 0 0.4rem 0.4rem"),U==null||U.prepend($),h},Io=()=>h=>{var R;return(R=h.querySelector(".md-header"))===null||R===void 0||R.remove(),h},Do=()=>h=>{var R,U;return(R=h.querySelector(".md-footer .md-copyright"))===null||R===void 0||R.remove(),(U=h.querySelector(".md-footer-copyright"))===null||U===void 0||U.remove(),h};var Lo=t(36021),jo=t(90292),Mo=t(52536),Bo=t.n(Mo);const Uo=h=>R=>{var U;const $=R.querySelector('[title="Edit this page"]');if(!$||!$.href)return R;const Q=new URL($.href),_=h.byUrl(Q);if((_==null?void 0:_.type)!=="github"&&(_==null?void 0:_.type)!=="gitlab")return R;const dt=((U=R.querySelector("article>h1"))===null||U===void 0?void 0:U.childNodes[0].textContent)||"",bt=encodeURIComponent(`Documentation Feedback: ${dt}`),Lt=encodeURIComponent(`Page source:
491
- ${$.href}
492
-
493
- Feedback:`),Ut=(_==null?void 0:_.type)==="github"?(0,Lo.F)(Q.href,"blob"):Q.href,Zt=Bo()(Ut),Ft=`/${Zt.organization}/${Zt.name}`,It=$.cloneNode();switch(_==null?void 0:_.type){case"gitlab":It.href=`${Q.origin}${Ft}/issues/new?issue[title]=${bt}&issue[description]=${Lt}`;break;case"github":It.href=`${Q.origin}${Ft}/issues/new?title=${bt}&body=${Lt}`;break;default:return R}return Cn(i.createElement(jo.A),It),It.style.paddingLeft="5px",It.title="Leave feedback for this page",It.id="git-feedback-link",$==null||$.insertAdjacentElement("beforebegin",It),R},Vn=()=>h=>(setTimeout(()=>{const R=h==null?void 0:h.querySelectorAll("li.md-nav__item--active");R.length!==0&&(R.forEach($=>{const Q=$==null?void 0:$.querySelector("input");Q!=null&&Q.checked||Q==null||Q.click()}),R[R.length-1].scrollIntoView())},200),h);var Fo=t(7031),$o=t(71677),Gn=t(10437),Yn=t(50868),No=t(51100);const Sn=(0,Fo.A)(h=>({tooltip:{fontSize:"inherit",color:h.palette.text.primary,margin:0,padding:h.spacing(.5),backgroundColor:"transparent",boxShadow:"none"}}))($o.Ay),bn=()=>(0,o.jsx)(Gn.A,{children:(0,o.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"})}),Wo=({text:h})=>{const[R,U]=(0,i.useState)(!1),[,$]=(0,No.A)(),Q=(0,i.useCallback)(()=>{$(h),U(!0)},[h,$]),_=(0,i.useCallback)(()=>{U(!1)},[U]);return(0,o.jsx)(Sn,{title:"Copied to clipboard",placement:"left",open:R,onClose:_,leaveDelay:1e3,children:(0,o.jsx)(pt.A,{style:{color:"inherit"},className:"md-clipboard md-icon",onClick:Q,children:(0,o.jsx)(bn,{})})})},Qn=h=>R=>{const U=R.querySelectorAll("pre > code");for(const Q of U){var $;const _=Q.textContent||"",dt=document.createElement("div");Q==null||($=Q.parentElement)===null||$===void 0||$.prepend(dt),Cn((0,o.jsx)(Yn.A,{theme:h,children:(0,o.jsx)(Wo,{text:_})}),dt)}return R},Zn=({baseUrl:h,onClick:R})=>U=>(Array.from(U.getElementsByTagName("a")).forEach($=>{$.addEventListener("click",Q=>{const dt=$.getAttribute("href");dt&&dt.startsWith(h)&&!$.hasAttribute("download")&&(Q.preventDefault(),R(Q,dt))})}),U),Jn=({onLoading:h,onLoaded:R})=>U=>(h(),U.addEventListener(A,function $(){R(),U.removeEventListener(A,$)}),U);function ko(h,R){const U=new URL(R),$=`${U.origin}${U.pathname.replace(/\/$/,"")}`,Q=h.replace($,"").replace(/^\/+/,""),_=new URL(`http://localhost/${Q}`);return`${_.pathname}${_.search}${_.hash}`}function Ko(){const h=(0,Gt.Zp)(),U=(0,k.gf)(it.U).getOptionalString("app.baseUrl");return(0,i.useCallback)(Q=>{let _=Q;if(U)try{_=ko(Q,U)}catch{}h(_)},[h,U])}const zo="screen and (max-width: 76.1875em)",Ho=h=>{const R=Ko(),U=(0,gt.A)(),$=(0,et.A)(zo),Q=Nn(),_=dn(),dt=(0,J.s)(),bt=(0,k.gf)(Ue.s),Lt=(0,k.gf)(Tt.Y),{state:Ut,path:Zt,content:Ft}=He(),[It,ae]=(0,i.useState)(null),me=v(It),Jt=(0,i.useCallback)(()=>{if(!It)return;It.querySelectorAll(".md-sidebar").forEach(zt=>{if($)zt.style.top="0px";else{var qt;const he=(qt=document)===null||qt===void 0?void 0:qt.querySelector(".techdocs-reader-page");var Te;const Fe=(Te=he==null?void 0:he.getBoundingClientRect().top)!==null&&Te!==void 0?Te:0;var Re;let oe=(Re=It.getBoundingClientRect().top)!==null&&Re!==void 0?Re:0;const Pn=It.querySelector(".md-container > .md-tabs");var Ke;const Tn=(Ke=Pn==null?void 0:Pn.getBoundingClientRect().height)!==null&&Ke!==void 0?Ke:0;oe<Fe&&(oe=Fe),zt.style.top=`${Math.max(oe,0)+Tn}px`}zt.style.setProperty("opacity","1")})},[It,$]);(0,i.useEffect)(()=>(window.addEventListener("resize",Jt),window.addEventListener("scroll",Jt,!0),()=>{window.removeEventListener("resize",Jt),window.removeEventListener("scroll",Jt,!0)}),[It,Jt]);const Nt=(0,i.useCallback)(()=>{if(!It)return;const Pt=It.querySelector(".md-footer");Pt&&(Pt.style.width=`${It.getBoundingClientRect().width}px`)},[It]);(0,i.useEffect)(()=>(window.addEventListener("resize",Nt),()=>{window.removeEventListener("resize",Nt)}),[It,Nt]),(0,i.useEffect)(()=>{me||(Nt(),Jt())},[Ut,me,Nt,Jt]);const re=(0,i.useCallback)((Pt,zt)=>zn(Pt,[Q,Po({techdocsStorageApi:bt,entityId:h,path:zt}),To(),Hn(),Io(),Do(),Uo(Lt),_]),[h,Lt,bt,Q,_]),ye=(0,i.useCallback)(async Pt=>zn(Pt,[Vn(),Qn(U),Zn({baseUrl:window.location.origin,onClick:(zt,qt)=>{var Te;const Re=zt.ctrlKey||zt.metaKey,Ke=new URL(qt),he=((Te=zt.target)===null||Te===void 0?void 0:Te.innerText)||qt,Fe=qt.replace(window.location.origin,"");if(dt.captureEvent("click",he,{attributes:{to:Fe}}),Ke.hash)if(Re)window.open(qt,"_blank");else{var oe;R(qt),Pt==null||(oe=Pt.querySelector(`[id="${Ke.hash.slice(1)}"]`))===null||oe===void 0||oe.scrollIntoView()}else Re?window.open(qt,"_blank"):R(qt)}}),Jn({onLoading:()=>{},onLoaded:()=>{var zt;(zt=Pt.querySelector(".md-nav__title"))===null||zt===void 0||zt.removeAttribute("for")}}),Jn({onLoading:()=>{Array.from(Pt.querySelectorAll(".md-sidebar")).forEach(qt=>{qt.style.setProperty("opacity","0")})},onLoaded:()=>{}})]),[U,R,dt]);return(0,i.useEffect)(()=>{if(!Ft)return()=>{};let Pt=!0;return re(Ft,Zt).then(async zt=>{if(!(zt!=null&&zt.innerHTML)||!Pt)return;window.scroll({top:0});const qt=await ye(zt);ae(qt)}),()=>{Pt=!1}},[Ft,Zt,re,ye]),It};var On=t(41883),Vo=t(72020),wn=t(99730);const Xn=()=>{const h=(0,Vo.YR)(),{shadowRoot:R}=(0,m.V)(),U=R==null?void 0:R.querySelector('[data-md-component="content"]'),$=R==null?void 0:R.querySelector('div[data-md-component="sidebar"][data-md-type="navigation"], div[data-md-component="navigation"]');let Q=$==null?void 0:$.querySelector('[data-techdocs-addons-location="primary sidebar"]');Q||(Q=document.createElement("div"),Q.setAttribute("data-techdocs-addons-location","primary sidebar"),$==null||$.prepend(Q));const _=R==null?void 0:R.querySelector('div[data-md-component="sidebar"][data-md-type="toc"], div[data-md-component="toc"]');let dt=_==null?void 0:_.querySelector('[data-techdocs-addons-location="secondary sidebar"]');return dt||(dt=document.createElement("div"),dt.setAttribute("data-techdocs-addons-location","secondary sidebar"),_==null||_.prepend(dt)),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(On.A,{container:Q,children:h.renderComponentsByLocation(wn.e.PrimarySidebar)}),(0,o.jsx)(On.A,{container:U,children:h.renderComponentsByLocation(wn.e.Content)}),(0,o.jsx)(On.A,{container:dt,children:h.renderComponentsByLocation(wn.e.SecondarySidebar)})]})},_n=(0,u.A)({search:{width:"100%","@media (min-width: 76.1875em)":{width:"calc(100% - 34.4rem)",margin:"0 auto"},"@media print":{display:"none"}}}),Rt=p(h=>{var R;const{withSearch:U=!0,onReady:$}=h,Q=_n(),{entityMetadata:{value:_,loading:dt},entityRef:bt,setShadowRoot:Lt}=(0,m.V)(),Ut=Ho(bt),Zt=window.location.pathname,Ft=window.location.hash,It=v(Ut),[ae]=P([`[id="${Ft.slice(1)}"]`]);(0,i.useEffect)(()=>{if(!It)if(Ft)ae&&ae.scrollIntoView();else{var Jt,Nt;(Nt=document)===null||Nt===void 0||(Jt=Nt.querySelector("header"))===null||Jt===void 0||Jt.scrollIntoView()}},[Zt,Ft,ae,It]);const me=(0,i.useCallback)(Jt=>{Lt(Jt),$ instanceof Function&&$()},[Lt,$]);return dt===!1&&!_?(0,o.jsx)(j.M,{status:"404",statusMessage:"PAGE NOT FOUND"}):Ut?(0,o.jsx)(b.U,{children:(0,o.jsxs)(C.A,{container:!0,children:[(0,o.jsx)(C.A,{xs:12,item:!0,children:(0,o.jsx)(F,{})}),U&&(0,o.jsx)(C.A,{className:Q.search,xs:"auto",item:!0,children:(0,o.jsx)(Xt,{entityId:bt,entityTitle:_==null||(R=_.metadata)===null||R===void 0?void 0:R.title})}),(0,o.jsx)(C.A,{xs:12,item:!0,children:(0,o.jsx)(O,{element:Ut,onAppend:me,children:(0,o.jsx)(Xn,{})})})]})}):(0,o.jsx)(b.U,{children:(0,o.jsx)(C.A,{container:!0,children:(0,o.jsx)(C.A,{xs:12,item:!0,children:(0,o.jsx)(F,{})})})})}),ue=null},45061:function(Z,T,t){"use strict";t.d(T,{T:function(){return it}});var o=t(31085),i=t(14041),u=t(93285),C=t(42899),m=t(4387),f=t(54917),d=t(13660),c=t(72020),y=t(86892),A=t(99730),w=t(67871),v=t(8859),O=t(34428),g=t(51372),I=t(58837),P=t(268),E=t(72501),D=t(72072);const j=(0,I.A)(mt=>({root:{textAlign:"left"},label:{color:mt.page.fontColor,fontWeight:mt.typography.fontWeightBold,letterSpacing:0,fontSize:mt.typography.fontSize,marginBottom:mt.spacing(1)/2,lineHeight:1},value:{color:(0,P.X4)(mt.page.fontColor,.8),fontSize:mt.typography.fontSize,lineHeight:1}}),{name:"BackstageHeaderLabel"}),b=({value:mt,className:ft,typographyRootComponent:wt})=>(0,o.jsx)(E.A,{component:wt!=null?wt:typeof mt=="string"?"p":"span",className:ft,children:mt});function V(mt){const{label:ft,value:wt,url:lt,contentTypograpyRootComponent:At}=mt,at=j(),G=(0,o.jsx)(b,{className:at.value,value:wt||"<Unknown>",typographyRootComponent:At});return(0,o.jsx)(C.A,{item:!0,children:(0,o.jsxs)(E.A,{component:"span",className:at.root,children:[(0,o.jsx)(E.A,{className:at.label,children:ft}),lt?(0,o.jsx)(D.N_,{to:lt,children:G}):G]})})}var Y=t(69814),tt=t(72427),z=t(65461),W=t(9222),k=t(45250),J=t(82779);const nt=(0,o.jsx)(m.A,{animation:"wave",variant:"text",height:40}),it=mt=>{const{palette:{common:{white:ft}}}=(0,f.A)(),{children:wt}=mt,lt=(0,c.YR)(),At=(0,tt.gf)(z.U),{title:at,setTitle:G,subtitle:rt,setSubtitle:xt,entityRef:St,metadata:{value:Ct,loading:ut},entityMetadata:{value:ct,loading:pt}}=(0,y.V)();(0,i.useEffect)(()=>{Ct&&(G(Ct.site_name),xt(()=>{let{site_description:Dt}=Ct;return(!Dt||Dt==="None")&&(Dt=""),Dt}))},[Ct,G,xt]);const H=At.getOptional("app.title")||"Backstage",K=[at,rt,H].filter(Boolean).join(" | "),{locationMetadata:q,spec:st}=ct||{},Et=st==null?void 0:st.lifecycle,vt=ct?(0,w.t)(ct,g.vv):[],jt=(0,W.S)(J.rQ)(),Kt=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(V,{label:(0,k.capitalize)((ct==null?void 0:ct.kind)||"entity"),value:(0,o.jsx)(v.z,{color:"inherit",entityRef:St,title:ct==null?void 0:ct.metadata.title,defaultKind:"Component"})}),vt.length>0&&(0,o.jsx)(V,{label:"Owner",value:(0,o.jsx)(O.i,{color:"inherit",entityRefs:vt,defaultKind:"group"})}),Et?(0,o.jsx)(V,{label:"Lifecycle",value:String(Et)}):null,q&&q.type!=="dir"&&q.type!=="file"?(0,o.jsx)(V,{label:"",value:(0,o.jsxs)(C.A,{container:!0,direction:"column",alignItems:"center",style:{color:ft},children:[(0,o.jsx)(C.A,{style:{padding:0},item:!0,children:(0,o.jsx)(d.A,{style:{marginTop:"-25px"}})}),(0,o.jsx)(C.A,{style:{padding:0},item:!0,children:"Source"})]}),url:q.target}):null]});return!pt&&ct===void 0||!ut&&Ct===void 0?null:(0,o.jsxs)(Y.Y,{type:"Documentation",typeLink:jt,title:at||nt,subtitle:rt===""?void 0:rt||nt,children:[(0,o.jsx)(u.A,{titleTemplate:"%s",children:(0,o.jsx)("title",{children:K})}),Kt,wt,lt.renderComponentsByLocation(A.e.Header)]})}},82779:function(Z,T,t){"use strict";t.d(T,{Oc:function(){return u},Ri:function(){return C},rQ:function(){return i}});var o=t(34569);const i=(0,o.H)({id:"techdocs:index-page"}),u=(0,o.H)({id:"techdocs:reader-page",params:["namespace","kind","name"]}),C=(0,o.H)({id:"techdocs:catalog-reader-view"})},27698:function(Z,T,t){"use strict";t.r(T),t.d(T,{TechDocsSearchResultListItem:function(){return A}});var o=t(31085),i=t(14041),u=t(58837),C=t(5951),m=t(46423),f=t(72501),d=t(72072),c=t(70734);const y=(0,u.A)({flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",marginBottom:"1rem"}}),A=w=>{const{result:v,highlight:O,lineClamp:g=5,asListItem:I=!0,asLink:P=!0,title:E,icon:D}=w,j=y(),b=({children:tt})=>P?(0,o.jsx)(d.N_,{noTrack:!0,to:v.location,children:tt}):(0,o.jsx)(o.Fragment,{children:tt}),V=()=>{const tt=O!=null&&O.fields.title?(0,o.jsx)(c.e,{text:O.fields.title,preTag:O.preTag,postTag:O.postTag}):v.title,z=O!=null&&O.fields.entityTitle?(0,o.jsx)(c.e,{text:O.fields.entityTitle,preTag:O.preTag,postTag:O.postTag}):v.entityTitle,W=O!=null&&O.fields.name?(0,o.jsx)(c.e,{text:O.fields.name,preTag:O.preTag,postTag:O.postTag}):v.name;return v?(0,o.jsx)(C.A,{className:j.itemText,primaryTypographyProps:{variant:"h6"},primary:(0,o.jsx)(b,{children:E||(0,o.jsxs)(o.Fragment,{children:[tt," | ",z!=null?z:W," docs"]})}),secondary:(0,o.jsx)(f.A,{component:"span",style:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:g,overflow:"hidden"},color:"textSecondary",variant:"body2",children:O!=null&&O.fields.text?(0,o.jsx)(c.e,{text:O.fields.text,preTag:O.preTag,postTag:O.postTag}):v.text})}):null},Y=({children:tt})=>I?(0,o.jsxs)(o.Fragment,{children:[D&&(0,o.jsx)(m.A,{children:typeof D=="function"?D(v):D}),(0,o.jsx)("div",{className:j.flexContainer,children:tt})]}):(0,o.jsx)(o.Fragment,{children:tt});return(0,o.jsx)(Y,{children:(0,o.jsx)(V,{})})}},86973:function(){}},function(Z){var T=function(o){return Z(Z.s=o)};Z.O(0,[1751,1888,235,6587,2754,9669,1975,5042,7400,4121],function(){return T(56041)});var t=Z.O()}]);})();
494
-
495
- //# sourceMappingURL=main.1f016c9f.js.map