@veecode-platform/plugin-veecode-homepage-dynamic 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-scalprum/plugin-manifest.json +3 -3
- package/dist-scalprum/static/{4327.5c6f5040.chunk.js → 4327.0535c895.chunk.js} +2 -2
- package/dist-scalprum/static/{4327.5c6f5040.chunk.js.map → 4327.0535c895.chunk.js.map} +1 -1
- package/dist-scalprum/static/{5689.ba470bd3.chunk.js → 5689.44adcfd6.chunk.js} +1 -1
- package/dist-scalprum/static/{5689.ba470bd3.chunk.js.map → 5689.44adcfd6.chunk.js.map} +1 -1
- package/dist-scalprum/static/{8505.bd5ab33a.chunk.js → 8505.9dd864c9.chunk.js} +1 -1
- package/dist-scalprum/static/{8505.bd5ab33a.chunk.js.map → 8505.9dd864c9.chunk.js.map} +1 -1
- package/dist-scalprum/static/{9286.0bf88601.chunk.js → 9286.e13da971.chunk.js} +2 -2
- package/dist-scalprum/static/{9286.0bf88601.chunk.js.map → 9286.e13da971.chunk.js.map} +1 -1
- package/dist-scalprum/static/avatar.70448f05..svg +1 -0
- package/dist-scalprum/{veecode-platform.plugin-veecode-homepage.c98eadba97079a4d7d5e.js → veecode-platform.plugin-veecode-homepage.ba7df9d387f79c300ff6.js} +2 -2
- package/dist-scalprum/{veecode-platform.plugin-veecode-homepage.c98eadba97079a4d7d5e.js.map → veecode-platform.plugin-veecode-homepage.ba7df9d387f79c300ff6.js.map} +1 -1
- package/package.json +1 -1
- package/dist-scalprum/static/avatar.82d1e940..svg +0 -1
- /package/dist-scalprum/static/{9286.0bf88601.chunk.js.LICENSE.txt → 9286.e13da971.chunk.js.LICENSE.txt} +0 -0
@@ -1,2 +1,2 @@
|
|
1
1
|
"use strict";(self.webpackChunkveecode_platform_plugin_veecode_homepage=self.webpackChunkveecode_platform_plugin_veecode_homepage||[]).push([[8505],{50884:(e,t,n)=>{n.d(t,{m:()=>r}),n(31085),n(64218);const r=(0,n(89940).y)({id:"core.error"})},58505:(e,t,n)=>{n.r(t),n.d(t,{AnalyticsContext:()=>c,ApiBlueprint:()=>de,AppRootElementBlueprint:()=>fe,AppRootWrapperBlueprint:()=>ge,ExtensionBoundary:()=>_e,IconBundleBlueprint:()=>ye,NavItemBlueprint:()=>be,NavLogoBlueprint:()=>ke,PageBlueprint:()=>Oe,RouterBlueprint:()=>Ie,SessionState:()=>u.SessionState,SignInPageBlueprint:()=>Ne,ThemeBlueprint:()=>ze,TranslationBlueprint:()=>Ce,alertApiRef:()=>u.alertApiRef,analyticsApiRef:()=>p,appThemeApiRef:()=>u.appThemeApiRef,appTreeApiRef:()=>m,atlassianAuthApiRef:()=>u.atlassianAuthApiRef,bitbucketAuthApiRef:()=>u.bitbucketAuthApiRef,bitbucketServerAuthApiRef:()=>u.bitbucketServerAuthApiRef,componentsApiRef:()=>g,configApiRef:()=>u.configApiRef,coreComponentRefs:()=>xe,coreExtensionData:()=>le,createApiFactory:()=>u.createApiFactory,createApiRef:()=>u.createApiRef,createComponentExtension:()=>De,createComponentRef:()=>we,createExtension:()=>ce,createExtensionBlueprint:()=>ue,createExtensionDataRef:()=>te,createExtensionInput:()=>pt,createExternalRouteRef:()=>Xe,createFrontendFeatureLoader:()=>gt,createFrontendModule:()=>mt,createFrontendPlugin:()=>ft,createRouteRef:()=>Ge,createSubRouteRef:()=>He,createTranslationMessages:()=>tt,createTranslationRef:()=>at,createTranslationResource:()=>nt,dialogApiRef:()=>v,discoveryApiRef:()=>u.discoveryApiRef,errorApiRef:()=>u.errorApiRef,featureFlagsApiRef:()=>u.featureFlagsApiRef,fetchApiRef:()=>u.fetchApiRef,githubAuthApiRef:()=>u.githubAuthApiRef,gitlabAuthApiRef:()=>u.gitlabAuthApiRef,googleAuthApiRef:()=>u.googleAuthApiRef,iconsApiRef:()=>y,identityApiRef:()=>u.identityApiRef,microsoftAuthApiRef:()=>u.microsoftAuthApiRef,oauthRequestApiRef:()=>u.oauthRequestApiRef,oktaAuthApiRef:()=>u.oktaAuthApiRef,oneloginAuthApiRef:()=>u.oneloginAuthApiRef,routeResolutionApiRef:()=>b,storageApiRef:()=>u.storageApiRef,useAnalytics:()=>f,useApi:()=>u.useApi,useApiHolder:()=>u.useApiHolder,useAppNode:()=>Se,useComponentRef:()=>h,useRouteRef:()=>Qe,useRouteRefParams:()=>et,useTranslationRef:()=>ut,vmwareCloudAuthApiRef:()=>u.vmwareCloudAuthApiRef,withApis:()=>u.withApis});var r=n(31085),a=n(64218),i=n(95478);const o=(0,a.createVersionedContext)("analytics-context"),s=()=>{const e=(0,i.useContext)(o);if(void 0===e)return{pluginId:"app",extensionId:"app"};const t=e.atVersion(1);if(void 0===t)throw new Error("No context found for version 1.");return t},c=e=>{const{attributes:t,children:n}=e,i={...s(),...t},c=(0,a.createVersionedValueMap)({1:i});return(0,r.jsx)(o.Provider,{value:c,children:n})};var u=n(22097);const p=(0,u.createApiRef)({id:"core.analytics"}),d=(0,a.getOrCreateGlobalSingleton)("core-plugin-api:analytics-tracker-events",(()=>({mostRecentGatheredNavigation:void 0,mostRecentRoutableExtensionRender:void 0,beforeUnloadRegistered:!1})));class l{constructor(e,t={pluginId:"root",extensionId:"App"}){this.analyticsApi=e,this.context=t,d.beforeUnloadRegistered||(addEventListener("beforeunload",(()=>{d.mostRecentGatheredNavigation&&(this.analyticsApi.captureEvent({...d.mostRecentGatheredNavigation,...d.mostRecentRoutableExtensionRender}),d.mostRecentGatheredNavigation=void 0,d.mostRecentRoutableExtensionRender=void 0)}),{once:!0,passive:!0}),d.beforeUnloadRegistered=!0)}setContext(e){this.context=e}captureEvent(e,t,{value:n,attributes:r}={}){const a=this.context;if("_ROUTABLE-EXTENSION-RENDERED"!==e){if(d.mostRecentGatheredNavigation){try{this.analyticsApi.captureEvent({...d.mostRecentGatheredNavigation,...d.mostRecentRoutableExtensionRender})}catch(e){console.warn("Error during analytics event capture. %o",e)}d.mostRecentGatheredNavigation=void 0,d.mostRecentRoutableExtensionRender=void 0}if("navigate"!==e||"root"!==a.pluginId)try{this.analyticsApi.captureEvent({action:e,subject:t,value:n,attributes:r,context:a})}catch(e){console.warn("Error during analytics event capture. %o",e)}else d.mostRecentGatheredNavigation={action:e,subject:t,value:n,attributes:r,context:a}}else d.mostRecentGatheredNavigation&&(d.mostRecentRoutableExtensionRender={context:{...a,extensionId:"App"}})}}function f(){const e=(0,i.useRef)(null),t=s(),n=function(){try{return(0,u.useApi)(p)}catch(e){if("NotImplementedError"===e.name)return{captureEvent:()=>{}};throw e}}(),r=(null===e.current&&(e.current=new l(n)),e.current);return r.setContext(t),r}const m=(0,u.createApiRef)({id:"core.app-tree"}),g=(0,u.createApiRef)({id:"core.components"});function h(e){return(0,u.useApi)(g).getComponent(e)}const y=(0,u.createApiRef)({id:"core.icons"}),v=(0,u.createApiRef)({id:"core.dialog"}),b=(0,u.createApiRef)({id:"core.route-resolution"});var A=n(44867);const k=Symbol("Let zodToJsonSchema decide on which parser to use"),R={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",target:"jsonSchema7",strictUnions:!1,definitions:{},errorMessages:!1,markdownDescription:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"};function w(e,t,n,r){r?.errorMessages&&n&&(e.errorMessage={...e.errorMessage,[t]:n})}function x(e,t,n,r,a){e[t]=n,w(e,t,r,a)}function $(e,t){return J(e.type._def,t)}function E(e,t,n){const r=n??t.dateStrategy;if(Array.isArray(r))return{anyOf:r.map(((n,r)=>E(e,t,n)))};switch(r){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return P(e,t)}}const P=(e,t)=>{const n={type:"integer",format:"unix-time"};if("openApi3"===t.target)return n;for(const r of e.checks)switch(r.kind){case"min":x(n,"minimum",r.value,r.message,t);break;case"max":x(n,"maximum",r.value,r.message,t)}return n};let S;const T=/^[cC][^\s-]{8,}$/,_=/^[0-9a-z]+$/,j=/^[0-9A-HJKMNP-TV-Z]{26}$/,O=/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,Z=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,I=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,M=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,N=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,F=/^[a-zA-Z0-9_-]{21}$/,z=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/;function Y(e,t){const n={type:"string"};if(e.checks)for(const r of e.checks)switch(r.kind){case"min":x(n,"minLength","number"==typeof n.minLength?Math.max(n.minLength,r.value):r.value,r.message,t);break;case"max":x(n,"maxLength","number"==typeof n.maxLength?Math.min(n.maxLength,r.value):r.value,r.message,t);break;case"email":switch(t.emailStrategy){case"format:email":L(n,"email",r.message,t);break;case"format:idn-email":L(n,"idn-email",r.message,t);break;case"pattern:zod":B(n,O,r.message,t)}break;case"url":L(n,"uri",r.message,t);break;case"uuid":L(n,"uuid",r.message,t);break;case"regex":B(n,r.regex,r.message,t);break;case"cuid":B(n,T,r.message,t);break;case"cuid2":B(n,_,r.message,t);break;case"startsWith":B(n,RegExp(`^${C(r.value,t)}`),r.message,t);break;case"endsWith":B(n,RegExp(`${C(r.value,t)}$`),r.message,t);break;case"datetime":L(n,"date-time",r.message,t);break;case"date":L(n,"date",r.message,t);break;case"time":L(n,"time",r.message,t);break;case"duration":L(n,"duration",r.message,t);break;case"length":x(n,"minLength","number"==typeof n.minLength?Math.max(n.minLength,r.value):r.value,r.message,t),x(n,"maxLength","number"==typeof n.maxLength?Math.min(n.maxLength,r.value):r.value,r.message,t);break;case"includes":B(n,RegExp(C(r.value,t)),r.message,t);break;case"ip":"v6"!==r.version&&L(n,"ipv4",r.message,t),"v4"!==r.version&&L(n,"ipv6",r.message,t);break;case"base64url":B(n,N,r.message,t);break;case"jwt":B(n,z,r.message,t);break;case"cidr":"v6"!==r.version&&B(n,Z,r.message,t),"v4"!==r.version&&B(n,I,r.message,t);break;case"emoji":B(n,(void 0===S&&(S=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),S),r.message,t);break;case"ulid":B(n,j,r.message,t);break;case"base64":switch(t.base64Strategy){case"format:binary":L(n,"binary",r.message,t);break;case"contentEncoding:base64":x(n,"contentEncoding","base64",r.message,t);break;case"pattern:zod":B(n,M,r.message,t)}break;case"nanoid":B(n,F,r.message,t)}return n}function C(e,t){return"escape"===t.patternStrategy?function(e){let t="";for(let n=0;n<e.length;n++)D.has(e[n])||(t+="\\"),t+=e[n];return t}(e):e}const D=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function L(e,t,n,r){e.format||e.anyOf?.some((e=>e.format))?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format,...e.errorMessage&&r.errorMessages&&{errorMessage:{format:e.errorMessage.format}}}),delete e.format,e.errorMessage&&(delete e.errorMessage.format,0===Object.keys(e.errorMessage).length&&delete e.errorMessage)),e.anyOf.push({format:t,...n&&r.errorMessages&&{errorMessage:{format:n}}})):x(e,"format",t,n,r)}function B(e,t,n,r){e.pattern||e.allOf?.some((e=>e.pattern))?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern,...e.errorMessage&&r.errorMessages&&{errorMessage:{pattern:e.errorMessage.pattern}}}),delete e.pattern,e.errorMessage&&(delete e.errorMessage.pattern,0===Object.keys(e.errorMessage).length&&delete e.errorMessage)),e.allOf.push({pattern:V(t,r),...n&&r.errorMessages&&{errorMessage:{pattern:n}}})):x(e,"pattern",V(t,r),n,r)}function V(e,t){if(!t.applyRegexFlags||!e.flags)return e.source;const n=e.flags.includes("i"),r=e.flags.includes("m"),a=e.flags.includes("s"),i=n?e.source.toLowerCase():e.source;let o="",s=!1,c=!1,u=!1;for(let e=0;e<i.length;e++)if(s)o+=i[e],s=!1;else{if(n)if(c){if(i[e].match(/[a-z]/)){u?(o+=i[e],o+=`${i[e-2]}-${i[e]}`.toUpperCase(),u=!1):"-"===i[e+1]&&i[e+2]?.match(/[a-z]/)?(o+=i[e],u=!0):o+=`${i[e]}${i[e].toUpperCase()}`;continue}}else if(i[e].match(/[a-z]/)){o+=`[${i[e]}${i[e].toUpperCase()}]`;continue}if(r){if("^"===i[e]){o+="(^|(?<=[\r\n]))";continue}if("$"===i[e]){o+="($|(?=[\r\n]))";continue}}a&&"."===i[e]?o+=c?`${i[e]}\r\n`:`[${i[e]}\r\n]`:(o+=i[e],"\\"===i[e]?s=!0:c&&"]"===i[e]?c=!1:c||"["!==i[e]||(c=!0))}try{new RegExp(o)}catch{return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return o}function U(e,t){if("openAi"===t.target&&console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead."),"openApi3"===t.target&&e.keyType?._def.typeName===A.kY.ZodEnum)return{type:"object",required:e.keyType._def.values,properties:e.keyType._def.values.reduce(((n,r)=>({...n,[r]:J(e.valueType._def,{...t,currentPath:[...t.currentPath,"properties",r]})??{}})),{}),additionalProperties:t.rejectedAdditionalProperties};const n={type:"object",additionalProperties:J(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]})??t.allowedAdditionalProperties};if("openApi3"===t.target)return n;if(e.keyType?._def.typeName===A.kY.ZodString&&e.keyType._def.checks?.length){const{type:r,...a}=Y(e.keyType._def,t);return{...n,propertyNames:a}}if(e.keyType?._def.typeName===A.kY.ZodEnum)return{...n,propertyNames:{enum:e.keyType._def.values}};if(e.keyType?._def.typeName===A.kY.ZodBranded&&e.keyType._def.type._def.typeName===A.kY.ZodString&&e.keyType._def.type._def.checks?.length){const{type:r,...a}=$(e.keyType._def,t);return{...n,propertyNames:a}}return n}const G={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"},q=(e,t)=>{const n=(e.options instanceof Map?Array.from(e.options.values()):e.options).map(((e,n)=>J(e._def,{...t,currentPath:[...t.currentPath,"anyOf",`${n}`]}))).filter((e=>!!e&&(!t.strictUnions||"object"==typeof e&&Object.keys(e).length>0)));return n.length?{anyOf:n}:void 0};function W(e){try{return e.isOptional()}catch{return!0}}const H=(e,t,n)=>{switch(t){case A.kY.ZodString:return Y(e,n);case A.kY.ZodNumber:return function(e,t){const n={type:"number"};if(!e.checks)return n;for(const r of e.checks)switch(r.kind){case"int":n.type="integer",w(n,"type",r.message,t);break;case"min":"jsonSchema7"===t.target?r.inclusive?x(n,"minimum",r.value,r.message,t):x(n,"exclusiveMinimum",r.value,r.message,t):(r.inclusive||(n.exclusiveMinimum=!0),x(n,"minimum",r.value,r.message,t));break;case"max":"jsonSchema7"===t.target?r.inclusive?x(n,"maximum",r.value,r.message,t):x(n,"exclusiveMaximum",r.value,r.message,t):(r.inclusive||(n.exclusiveMaximum=!0),x(n,"maximum",r.value,r.message,t));break;case"multipleOf":x(n,"multipleOf",r.value,r.message,t)}return n}(e,n);case A.kY.ZodObject:return function(e,t){const n="openAi"===t.target,r={type:"object",properties:{}},a=[],i=e.shape();for(const e in i){let o=i[e];if(void 0===o||void 0===o._def)continue;let s=W(o);s&&n&&(o instanceof A.Ii&&(o=o._def.innerType),o.isNullable()||(o=o.nullable()),s=!1);const c=J(o._def,{...t,currentPath:[...t.currentPath,"properties",e],propertyPath:[...t.currentPath,"properties",e]});void 0!==c&&(r.properties[e]=c,s||a.push(e))}a.length&&(r.required=a);const o=function(e,t){if("ZodNever"!==e.catchall._def.typeName)return J(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return"strict"===t.removeAdditionalStrategy?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}(e,t);return void 0!==o&&(r.additionalProperties=o),r}(e,n);case A.kY.ZodBigInt:return function(e,t){const n={type:"integer",format:"int64"};if(!e.checks)return n;for(const r of e.checks)switch(r.kind){case"min":"jsonSchema7"===t.target?r.inclusive?x(n,"minimum",r.value,r.message,t):x(n,"exclusiveMinimum",r.value,r.message,t):(r.inclusive||(n.exclusiveMinimum=!0),x(n,"minimum",r.value,r.message,t));break;case"max":"jsonSchema7"===t.target?r.inclusive?x(n,"maximum",r.value,r.message,t):x(n,"exclusiveMaximum",r.value,r.message,t):(r.inclusive||(n.exclusiveMaximum=!0),x(n,"maximum",r.value,r.message,t));break;case"multipleOf":x(n,"multipleOf",r.value,r.message,t)}return n}(e,n);case A.kY.ZodBoolean:return{type:"boolean"};case A.kY.ZodDate:return E(e,n);case A.kY.ZodUndefined:return{not:{}};case A.kY.ZodNull:return function(e){return"openApi3"===e.target?{enum:["null"],nullable:!0}:{type:"null"}}(n);case A.kY.ZodArray:return function(e,t){const n={type:"array"};return e.type?._def&&e.type?._def?.typeName!==A.kY.ZodAny&&(n.items=J(e.type._def,{...t,currentPath:[...t.currentPath,"items"]})),e.minLength&&x(n,"minItems",e.minLength.value,e.minLength.message,t),e.maxLength&&x(n,"maxItems",e.maxLength.value,e.maxLength.message,t),e.exactLength&&(x(n,"minItems",e.exactLength.value,e.exactLength.message,t),x(n,"maxItems",e.exactLength.value,e.exactLength.message,t)),n}(e,n);case A.kY.ZodUnion:case A.kY.ZodDiscriminatedUnion:return function(e,t){if("openApi3"===t.target)return q(e,t);const n=e.options instanceof Map?Array.from(e.options.values()):e.options;if(n.every((e=>e._def.typeName in G&&(!e._def.checks||!e._def.checks.length)))){const e=n.reduce(((e,t)=>{const n=G[t._def.typeName];return n&&!e.includes(n)?[...e,n]:e}),[]);return{type:e.length>1?e:e[0]}}if(n.every((e=>"ZodLiteral"===e._def.typeName&&!e.description))){const e=n.reduce(((e,t)=>{const n=typeof t._def.value;switch(n){case"string":case"number":case"boolean":return[...e,n];case"bigint":return[...e,"integer"];case"object":if(null===t._def.value)return[...e,"null"];default:return e}}),[]);if(e.length===n.length){const t=e.filter(((e,t,n)=>n.indexOf(e)===t));return{type:t.length>1?t:t[0],enum:n.reduce(((e,t)=>e.includes(t._def.value)?e:[...e,t._def.value]),[])}}}else if(n.every((e=>"ZodEnum"===e._def.typeName)))return{type:"string",enum:n.reduce(((e,t)=>[...e,...t._def.values.filter((t=>!e.includes(t)))]),[])};return q(e,t)}(e,n);case A.kY.ZodIntersection:return function(e,t){const n=[J(e.left._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),J(e.right._def,{...t,currentPath:[...t.currentPath,"allOf","1"]})].filter((e=>!!e));let r="jsonSchema2019-09"===t.target?{unevaluatedProperties:!1}:void 0;const a=[];return n.forEach((e=>{if("type"in(t=e)&&"string"===t.type||!("allOf"in t)){let t=e;if("additionalProperties"in e&&!1===e.additionalProperties){const{additionalProperties:n,...r}=e;t=r}else r=void 0;a.push(t)}else a.push(...e.allOf),void 0===e.unevaluatedProperties&&(r=void 0);var t})),a.length?{allOf:a,...r}:void 0}(e,n);case A.kY.ZodTuple:return function(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map(((e,n)=>J(e._def,{...t,currentPath:[...t.currentPath,"items",`${n}`]}))).reduce(((e,t)=>void 0===t?e:[...e,t]),[]),additionalItems:J(e.rest._def,{...t,currentPath:[...t.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map(((e,n)=>J(e._def,{...t,currentPath:[...t.currentPath,"items",`${n}`]}))).reduce(((e,t)=>void 0===t?e:[...e,t]),[])}}(e,n);case A.kY.ZodRecord:return U(e,n);case A.kY.ZodLiteral:return function(e,t){const n=typeof e.value;return"bigint"!==n&&"number"!==n&&"boolean"!==n&&"string"!==n?{type:Array.isArray(e.value)?"array":"object"}:"openApi3"===t.target?{type:"bigint"===n?"integer":n,enum:[e.value]}:{type:"bigint"===n?"integer":n,const:e.value}}(e,n);case A.kY.ZodEnum:return function(e){return{type:"string",enum:Array.from(e.values)}}(e);case A.kY.ZodNativeEnum:return function(e){const t=e.values,n=Object.keys(e.values).filter((e=>"number"!=typeof t[t[e]])).map((e=>t[e])),r=Array.from(new Set(n.map((e=>typeof e))));return{type:1===r.length?"string"===r[0]?"string":"number":["string","number"],enum:n}}(e);case A.kY.ZodNullable:return function(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return"openApi3"===t.target?{type:G[e.innerType._def.typeName],nullable:!0}:{type:[G[e.innerType._def.typeName],"null"]};if("openApi3"===t.target){const n=J(e.innerType._def,{...t,currentPath:[...t.currentPath]});return n&&"$ref"in n?{allOf:[n],nullable:!0}:n&&{...n,nullable:!0}}const n=J(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","0"]});return n&&{anyOf:[n,{type:"null"}]}}(e,n);case A.kY.ZodOptional:return((e,t)=>{if(t.currentPath.toString()===t.propertyPath?.toString())return J(e.innerType._def,t);const n=J(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return n?{anyOf:[{not:{}},n]}:{}})(e,n);case A.kY.ZodMap:return function(e,t){return"record"===t.mapStrategy?U(e,t):{type:"array",maxItems:125,items:{type:"array",items:[J(e.keyType._def,{...t,currentPath:[...t.currentPath,"items","items","0"]})||{},J(e.valueType._def,{...t,currentPath:[...t.currentPath,"items","items","1"]})||{}],minItems:2,maxItems:2}}}(e,n);case A.kY.ZodSet:return function(e,t){const n={type:"array",uniqueItems:!0,items:J(e.valueType._def,{...t,currentPath:[...t.currentPath,"items"]})};return e.minSize&&x(n,"minItems",e.minSize.value,e.minSize.message,t),e.maxSize&&x(n,"maxItems",e.maxSize.value,e.maxSize.message,t),n}(e,n);case A.kY.ZodLazy:return()=>e.getter()._def;case A.kY.ZodPromise:return function(e,t){return J(e.type._def,t)}(e,n);case A.kY.ZodNaN:case A.kY.ZodNever:return{not:{}};case A.kY.ZodEffects:return function(e,t){return"input"===t.effectStrategy?J(e.schema._def,t):{}}(e,n);case A.kY.ZodAny:case A.kY.ZodUnknown:return{};case A.kY.ZodDefault:return function(e,t){return{...J(e.innerType._def,t),default:e.defaultValue()}}(e,n);case A.kY.ZodBranded:return $(e,n);case A.kY.ZodReadonly:case A.kY.ZodCatch:return((e,t)=>J(e.innerType._def,t))(e,n);case A.kY.ZodPipeline:return((e,t)=>{if("input"===t.pipeStrategy)return J(e.in._def,t);if("output"===t.pipeStrategy)return J(e.out._def,t);const n=J(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]});return{allOf:[n,J(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",n?"1":"0"]})].filter((e=>void 0!==e))}})(e,n);case A.kY.ZodFunction:case A.kY.ZodVoid:case A.kY.ZodSymbol:default:return}};function J(e,t,n=!1){const r=t.seen.get(e);if(t.override){const a=t.override?.(e,t,r,n);if(a!==k)return a}if(r&&!n){const e=X(r,t);if(void 0!==e)return e}const a={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,a);const i=H(e,e.typeName,t),o="function"==typeof i?J(i(),t):i;if(o&&Q(e,t,o),t.postProcess){const n=t.postProcess(o,e,t);return a.jsonSchema=o,n}return a.jsonSchema=o,o}const X=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:K(t.currentPath,e.path)};case"none":case"seen":return e.path.length<t.currentPath.length&&e.path.every(((e,n)=>t.currentPath[n]===e))?(console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),{}):"seen"===t.$refStrategy?{}:void 0}},K=(e,t)=>{let n=0;for(;n<e.length&&n<t.length&&e[n]===t[n];n++);return[(e.length-n).toString(),...t.slice(n)].join("/")},Q=(e,t,n)=>(e.description&&(n.description=e.description,t.markdownDescription&&(n.markdownDescription=e.description)),n),ee=(e,t)=>{const n=(e=>{const t=(e=>"string"==typeof e?{...R,name:e}:{...R,...e})(e),n=void 0!==t.name?[...t.basePath,t.definitionPath,t.name]:t.basePath;return{...t,currentPath:n,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map((([e,n])=>[n._def,{def:n._def,path:[...t.basePath,t.definitionPath,e],jsonSchema:void 0}])))}})(t),r="object"==typeof t&&t.definitions?Object.entries(t.definitions).reduce(((e,[t,r])=>({...e,[t]:J(r._def,{...n,currentPath:[...n.basePath,n.definitionPath,t]},!0)??{}})),{}):void 0,a="string"==typeof t?t:"title"===t?.nameStrategy?void 0:t?.name,i=J(e._def,void 0===a?n:{...n,currentPath:[...n.basePath,n.definitionPath,a]},!1)??{},o="object"==typeof t&&void 0!==t.name&&"title"===t.nameStrategy?t.name:void 0;void 0!==o&&(i.title=o);const s=void 0===a?r?{...i,[n.definitionPath]:r}:i:{$ref:[..."relative"===n.$refStrategy?[]:n.basePath,n.definitionPath,a].join("/"),[n.definitionPath]:{...r,[a]:i}};return"jsonSchema7"===n.target?s.$schema="http://json-schema.org/draft-07/schema#":"jsonSchema2019-09"!==n.target&&"openAi"!==n.target||(s.$schema="https://json-schema.org/draft/2019-09/schema#"),"openAi"===n.target&&("anyOf"in s||"oneOf"in s||"allOf"in s||"type"in s&&Array.isArray(s.type))&&console.warn("Warning: OpenAI may not support schemas with unions as roots! Try wrapping it in an object property."),s};function te(){const e=e=>Object.assign((t=>({$$type:"@backstage/ExtensionDataValue",id:e,value:t})),{id:e,$$type:"@backstage/ExtensionDataRef",config:{},optional(){return{...this,config:{...this.config,optional:!0}}},toString(){const t=Boolean(this.config.optional);return`ExtensionDataRef{id=${e},optional=${t}}`}});return{with:t=>e(t.id)}}function ne(e,t){const n=new Map,r=t&&new Map(t.map((e=>[e.id,e])));for(const t of e){if(r&&!r.delete(t.id))throw new Error(`extension data '${t.id}' was provided but not declared`);n.set(t.id,t)}const a=r&&Array.from(r.values()).filter((e=>!e.config.optional));if(a&&a.length>0)throw new Error(`missing required extension data value(s) '${a.map((e=>e.id)).join(", ")}'`);return{get:e=>n.get(e.id)?.value,[Symbol.iterator]:()=>n.values()}}function re(e,t,n){if(!e||!t||!n)return t;const r={};for(const a in e){if(!Object.hasOwn(e,a))continue;const i=e[a],o=n[a];if(i.config.singleton){const e=t[a];if(o){const t=ne(o,i.extensionData);if(!e)throw new Error(`attempted to override data of input '${a}' but it is not present in the original inputs`);r[a]=Object.assign(t,{node:e.node})}}else{const e=t[a];if(!Array.isArray(o))throw new Error(`override data provided for input '${a}' must be an array`);if(0===o.length)r[a]=[];else{const t=o.filter((e=>"node"in e)).length;if(0===t){if(e.length!==o.length)throw new Error(`override data provided for input '${a}' must match the length of the original inputs`);r[a]=o.map(((t,n)=>{const r=ne(t,i.extensionData);return Object.assign(r,{node:e[n].node})}))}else{if(t!==o.length)throw new Error(`override data for input '${a}' may not mix forwarded inputs with data overrides`);r[a]=o}}}}return r}function ae(e){if("invalid_union"===e.code)return ae(e.unionErrors[0].issues[0]);let t=e.message;return"Required"===t&&(t="Missing required value"),e.path.length&&(t+=` at '${e.path.join(".")}'`),t}class ie{static create(e){return new ie(e.type,new Set(e.versions))}#e;#t;constructor(e,t){this.#e=e,this.#t=t}TPublic=void 0;TInternal=void 0;isType=e=>this.#n(e);toInternal=e=>{if(!this.#n(e))throw new TypeError(`Invalid opaque type, expected '${this.#e}', but got '${this.#r(e)}'`);if(!this.#t.has(e.version)){const t=Array.from(this.#t).map(this.#a);t.length>1&&(t[t.length-1]=`or ${t[t.length-1]}`);const n=t.length>2?t.join(", "):t.join(" ");throw new TypeError(`Invalid opaque type instance, got version ${this.#a(e.version)}, expected ${n}`)}return e};createInstance(e,t){return Object.assign(t,{$$type:this.#e,...e&&{version:e}})}#n(e){return null!==e&&"object"==typeof e&&e.$$type===this.#e}#r(e){return"object"!=typeof e?`<${typeof e}>`:null===e?"<null>":String("$$type"in e?e.$$type:e)}#a=e=>e?`'${e}'`:"undefined"}const oe=ie.create({type:"@backstage/ExtensionDefinition",versions:["v1","v2"]}),se=Symbol("params");function ce(e){const t=e.config?.schema,n=t&&function(){const e=(n=A.z).object(Object.fromEntries(Object.entries(t).map((([e,t])=>[e,t(n)]))));var n;return{parse:t=>{const n=e.safeParse(t);if(n.success)return n.data;throw new Error(n.error.issues.map(ae).join("; "))},schema:ee(e)}}();return oe.createInstance("v2",{T:void 0,kind:e.kind,name:e.name,attachTo:e.attachTo,disabled:e.disabled??!1,inputs:e.inputs??{},output:e.output,configSchema:n,factory:e.factory,toString(){const t=[];return e.kind&&t.push(`kind=${e.kind}`),e.name&&t.push(`name=${e.name}`),t.push(`attachTo=${[e.attachTo].flat().map((e=>`${e.id}@${e.input}`)).join("+")}`),`ExtensionDefinition{${t.join(",")}}`},override(t){if(!Array.isArray(e.output))throw new Error("Cannot override an extension that is not declared using the new format with outputs as an array");if(t.output&&!t.factory)throw new Error("Refused to override output without also overriding factory");if(t.params&&t.factory)throw new Error("Refused to override params and factory at the same time");return ce({kind:e.kind,name:e.name,attachTo:t.attachTo??e.attachTo,disabled:t.disabled??e.disabled,inputs:{...t.inputs,...e.inputs},output:t.output??e.output,config:e.config||t.config?{schema:{...e.config?.schema,...t.config?.schema}}:void 0,factory:({node:n,apis:r,config:a,inputs:i})=>{if(!t.factory)return e.factory({node:n,apis:r,config:a,inputs:i,[se]:t.params});const o=t.factory((t=>ne(e.factory({node:n,apis:r,config:t?.config??a,inputs:re(e.inputs,i,t?.inputs),[se]:t?.params}),e.output)),{node:n,apis:r,config:a,inputs:i}),s=new Map;for(const e of o)s.set(e.id,e);return s.values()}})}})}function ue(e){return{dataRefs:e.dataRefs,make:t=>ce({kind:e.kind,name:t.name??e.name,attachTo:t.attachTo??e.attachTo,disabled:t.disabled??e.disabled,inputs:e.inputs,output:e.output,config:e.config,factory:n=>e.factory({...t.params,...n[se]},n)}),makeWithOverrides:t=>ce({kind:e.kind,name:t.name??e.name,attachTo:t.attachTo??e.attachTo,disabled:t.disabled??e.disabled,inputs:{...t.inputs,...e.inputs},output:t.output??e.output,config:e.config||t.config?{schema:{...e.config?.schema,...t.config?.schema}}:void 0,factory:n=>{const{node:r,config:a,inputs:i,apis:o}=n;return t.factory(((t,s)=>ne(e.factory({...t,...n[se]},{apis:o,node:r,config:s?.config??a,inputs:re(e.inputs,i,s?.inputs)}),e.output)),{apis:o,node:r,config:a,inputs:i})}})}}const pe=te().with({id:"core.api.factory"}),de=ue({kind:"api",attachTo:{id:"root",input:"apis"},output:[pe],dataRefs:{factory:pe},*factory(e){yield pe(e.factory)}}),le={reactElement:te().with({id:"core.reactElement"}),routePath:te().with({id:"core.routing.path"}),routeRef:te().with({id:"core.routing.ref"})},fe=ue({kind:"app-root-element",attachTo:{id:"app/root",input:"elements"},output:[le.reactElement],*factory(e){yield le.reactElement("function"==typeof e.element?e.element():e.element)}}),me=te().with({id:"app.root.wrapper"}),ge=ue({kind:"app-root-wrapper",attachTo:{id:"app/root",input:"wrappers"},output:[me],dataRefs:{component:me},*factory(e){yield me((t=>(0,r.jsx)(e.Component,{children:t.children})))}}),he=te().with({id:"core.icons"}),ye=ue({kind:"icon-bundle",attachTo:{id:"api:app/icons",input:"icons"},output:[he],factory:e=>[he(e.icons)],dataRefs:{icons:he}}),ve=te().with({id:"core.nav-item.target"}),be=ue({kind:"nav-item",attachTo:{id:"app/nav",input:"items"},output:[ve],dataRefs:{target:ve},factory:({icon:e,routeRef:t,title:n},{config:r})=>[ve({title:r.title??n,icon:e,routeRef:t})],config:{schema:{title:e=>e.string().optional()}}}),Ae=te().with({id:"core.nav-logo.logo-elements"}),ke=ue({kind:"nav-logo",attachTo:{id:"app/nav",input:"logos"},output:[Ae],dataRefs:{logoElements:Ae},*factory({logoIcon:e,logoFull:t}){yield Ae({logoIcon:e,logoFull:t})}});class Re extends i.Component{static getDerivedStateFromError(e){return{error:e}}state={error:void 0};handleErrorReset=()=>{this.setState({error:void 0})};render(){const{error:e}=this.state,{plugin:t,children:n,Fallback:a}=this.props;return e?(0,r.jsx)(a,{plugin:t,error:e,resetError:this.handleErrorReset}):n}}function we(e){const{id:t}=e;return{id:t,toString:()=>`ComponentRef{id=${t}}`}}(0,a.getOrCreateGlobalSingleton)("core-plugin-api:analytics-tracker-events",(()=>({mostRecentGatheredNavigation:void 0,mostRecentRoutableExtensionRender:void 0,beforeUnloadRegistered:!1})));const xe={progress:we({id:"core.components.progress"}),notFoundErrorPage:we({id:"core.components.notFoundErrorPage"}),errorBoundaryFallback:we({id:"core.components.errorBoundaryFallback"})},$e="app-node-context",Ee=(0,a.createVersionedContext)($e);function Pe({node:e,children:t}){const n=(0,a.createVersionedValueMap)({1:{node:e}});return(0,r.jsx)(Ee.Provider,{value:n,children:t})}function Se(){const e=(0,a.useVersionedContext)($e);if(!e)return;const t=e.atVersion(1);if(!t)throw new Error("AppNodeContext v1 not available");return t.node}const Te=e=>{const{disableTracking:t,children:n}=e,a=(0,u.useAnalytics)();return(0,i.useEffect)((()=>{t||a.captureEvent("_ROUTABLE-EXTENSION-RENDERED","")}),[a,t]),(0,r.jsx)(r.Fragment,{children:n})};function _e(e){const{node:t,routable:n,children:a}=e,o=Boolean(t.instance?.getData(le.routePath)),s=t.spec.plugin,c=h(xe.progress),p=h(xe.errorBoundaryFallback),d={extensionId:t.spec.id,pluginId:t.spec.plugin?.id??"app"};return(0,r.jsx)(Pe,{node:t,children:(0,r.jsx)(i.Suspense,{fallback:(0,r.jsx)(c,{}),children:(0,r.jsx)(Re,{plugin:s,Fallback:p,children:(0,r.jsx)(u.AnalyticsContext,{attributes:d,children:(0,r.jsx)(Te,{disableTracking:!(n??o),children:a})})})})})}var je;(je=_e||(_e={})).lazy=function(e,t){const n=(0,i.lazy)((()=>t().then((e=>({default:()=>e})))));return(0,r.jsx)(je,{node:e,children:(0,r.jsx)(n,{})})},je.lazyComponent=function(e,t){const n=(0,i.lazy)((()=>t().then((e=>({default:e})))));return t=>(0,r.jsx)(je,{node:e,children:(0,r.jsx)(n,{...t})})};const Oe=ue({kind:"page",attachTo:{id:"app/routes",input:"routes"},output:[le.routePath,le.reactElement,le.routeRef.optional()],config:{schema:{path:e=>e.string().optional()}},*factory({defaultPath:e,loader:t,routeRef:n},{config:r,node:a}){yield le.routePath(r.path??e),yield le.reactElement(_e.lazy(a,t)),n&&(yield le.routeRef(n))}}),Ze=te().with({id:"app.router.wrapper"}),Ie=ue({kind:"app-router-component",attachTo:{id:"app/root",input:"router"},output:[Ze],dataRefs:{component:Ze},*factory({Component:e}){yield Ze(e)}}),Me=te().with({id:"core.sign-in-page.component"}),Ne=ue({kind:"sign-in-page",attachTo:{id:"app/root",input:"signInPage"},output:[Me],dataRefs:{component:Me},*factory({loader:e},{node:t}){const n=(0,i.lazy)((()=>e().then((e=>({default:e})))));yield Me((e=>(0,r.jsx)(_e,{node:t,routable:!0,children:(0,r.jsx)(n,{...e})})))}}),Fe=te().with({id:"core.theme.theme"}),ze=ue({kind:"theme",attachTo:{id:"api:app/app-theme",input:"themes"},output:[Fe],dataRefs:{theme:Fe},factory:({theme:e})=>[Fe(e)]}),Ye=te().with({id:"core.translation.translation"}),Ce=ue({kind:"translation",attachTo:{id:"api:app/translations",input:"translations"},output:[Ye],dataRefs:{translation:Ye},factory:({resource:e})=>[Ye(e)]});function De(e){return ce({kind:"component",name:e.name??e.ref.id,attachTo:{id:"api:app/components",input:"components"},disabled:e.disabled,output:[De.componentDataRef],factory(){if("sync"in e.loader)return[De.componentDataRef({ref:e.ref,impl:e.loader.sync()})];const t=e.loader.lazy,n=(0,i.lazy)((()=>t().then((e=>({default:e})))));return[De.componentDataRef({ref:e.ref,impl:n})]}})}(De||(De={})).componentDataRef=te().with({id:"core.component.component"});const Le="eHgtF5hmbrXyiEvo";function Be(e=Error){const{stack:t}=new e(Le);if(!t)return"<unknown>";const n=t.includes(Le)?t.indexOf("\n")+1:0,r=t.indexOf("\n",t.indexOf("\n",n)+1)+1,a=t.indexOf("\n",r),i=t.substring(r,a).trim();return i?i.includes("(")?i.substring(i.indexOf("(")+1,i.indexOf(")")):i.includes("@")?i.substring(i.indexOf("@")+1):i:"unknown"}function Ve(e){const t=e;if("@backstage/RouteRef"!==t.$$type)throw new Error(`Invalid RouteRef, bad type '${t.$$type}'`);return t}class Ue{constructor(e=[],t){this.params=e,this.#i=e,this.#o=t}$$type="@backstage/RouteRef";version="v1";#s;#i;#o;getParams(){return this.#i}getDescription(){return this.#s?this.#s:`created at '${this.#o}'`}get#c(){return this.$$type.slice(11)}setId(e){if(!e)throw new Error(`${this.#c} id must be a non-empty string`);if(this.#s&&this.#s!==e)throw new Error(`${this.#c} was referenced twice as both '${this.#s}' and '${e}'`);this.#s=e}toString(){return`${this.#c}{${this.getDescription()}}`}}function Ge(e){return new Ue(e?.params,Be())}const qe=/^\w+$/;class We{constructor(e,t,n){this.path=e,this.#i=t,this.#u=n}$$type="@backstage/SubRouteRef";version="v1";#i;#u;getParams(){return this.#i}getParent(){return this.#u}getDescription(){const e=Ve(this.#u);return`at ${this.path} with parent ${e.getDescription()}`}toString(){return`SubRouteRef{${this.getDescription()}}`}}function He(e){const{path:t,parent:n}=e,r=Ve(n).getParams(),a=t.split("/").filter((e=>e.startsWith(":"))).map((e=>e.substring(1))),i=[...r,...a];if(r.some((e=>a.includes(e))))throw new Error("SubRouteRef may not have params that overlap with its parent");if(!t.startsWith("/"))throw new Error(`SubRouteRef path must start with '/', got '${t}'`);if(t.endsWith("/"))throw new Error(`SubRouteRef path must not end with '/', got '${t}'`);for(const e of a)if(!qe.test(e))throw new Error(`SubRouteRef path has invalid param, got '${e}'`);return new We(t,i,n)}class Je extends Ue{constructor(e=[],t,n){super(e,n),this.params=e,this.defaultTarget=t}$$type="@backstage/ExternalRouteRef";getDefaultTarget(){return this.defaultTarget}}function Xe(e){return new Je(e?.params,e?.defaultTarget,Be())}var Ke=n(42469);function Qe(e){const{pathname:t}=(0,Ke.useLocation)(),n=(0,u.useApi)(b);return(0,i.useMemo)((()=>n.resolve(e,{sourcePath:t})),[n,e,t])}function et(e){return(0,Ke.useParams)()}function tt(e){return{$$type:"@backstage/TranslationMessages",id:e.ref.id,full:Boolean(e.full),messages:e.messages}}function nt(e){return{$$type:"@backstage/TranslationResource",version:"v1",id:e.ref.id,resources:Object.entries(e.translations).map((([e,t])=>({language:e,loader:()=>t().then((e=>{const t=e.default;return{messages:"@backstage/TranslationMessages"===t?.$$type?t.messages:t}}))})))}}class rt{#s;#p;#d;constructor(e){this.#s=e.id,this.#p=function(e){const t=new Array;return function e(n,r){for(const[a,i]of Object.entries(n))"string"==typeof i?t.push([r+a,i]):e(i,`${r}${a}.`)}(e,""),Object.fromEntries(t)}(e.messages)}$$type="@backstage/TranslationRef";version="v1";get id(){return this.#s}get T(){throw new Error("Not implemented")}getDefaultMessages(){return this.#p}setDefaultResource(e){this.#d=e}getDefaultResource(){return this.#d}toString(){return`TranslationRef{id=${this.id}}`}}function at(e){const t=new rt(e);return e.translations&&t.setDefaultResource(nt({ref:t,translations:e.translations})),t}var it=n(87092),ot=n(50884),st=n(48347);const ct=new WeakSet,ut=e=>{const t=(0,it.gf)(ot.m),n=(0,it.gf)(st.J),[r,a]=(0,i.useState)((()=>n.getTranslation(e))),o=(0,i.useMemo)((()=>n.translation$(e)),[n,e]),s=(0,i.useCallback)((n=>{if(!ct.has(e)){const r=`Failed to load translation resource '${e.id}'; caused by ${n}`;console.error(r),t.post(new Error(r)),ct.add(e)}}),[t,e]);(0,i.useEffect)((()=>{const e=o.subscribe({next(e){e.ready&&a(e)},error(e){s(e)}});return()=>{e.unsubscribe()}}),[o,s]);const c=(0,i.useRef)(!0);if((0,i.useEffect)((()=>{c.current?c.current=!1:a(n.getTranslation(e))}),[n,e]),!r.ready)throw new Promise((e=>{const t=o.subscribe({next(n){n.ready&&(t.unsubscribe(),e())},error(n){t.unsubscribe(),s(n),e()}})}));return{t:r.t}};function pt(e,t){return{$$type:"@backstage/ExtensionInput",extensionData:e,config:{singleton:Boolean(t?.singleton),optional:Boolean(t?.optional)},replaces:t?.replaces}}function dt(e,t){const n=oe.toInternal(e),{name:r,kind:a,namespace:i,override:o,...s}=n,c=n.namespace??t?.namespace,u=r&&c?`${c}/${r}`:c||r;if(!u)throw new Error(`Extension must declare an explicit namespace or name as it could not be resolved from context, kind=${a} namespace=${c} name=${r}`);const p=a?`${a}:${u}`:u;return{...s,$$type:"@backstage/Extension",version:n.version,id:p,toString:()=>`Extension{id=${p}}`}}const lt=ie.create({type:"@backstage/FrontendPlugin",versions:["v1"]});function ft(e){const t="pluginId"in e?e.pluginId:e.id;if(!t)throw new Error("Either 'id' or 'pluginId' must be provided to createFrontendPlugin");const n=new Array,r=new Map;for(const a of e.extensions??[]){const e=oe.toInternal(a),i=dt(a,{namespace:t});n.push(i),r.set(i.id,{...e,namespace:t})}if(n.length!==r.size){const e=n.map((e=>e.id)),r=Array.from(new Set(e.filter(((t,n)=>e.indexOf(t)!==n))));throw new Error(`Plugin '${t}' provided duplicate extensions: ${r.join(", ")}`)}return lt.createInstance("v1",{id:t,routes:e.routes??{},externalRoutes:e.externalRoutes??{},featureFlags:e.featureFlags??[],extensions:n,infoOptions:e.info,async info(){throw new Error(`Attempted to load plugin info for plugin '${t}', but the plugin instance is not installed in an app`)},getExtension(e){const n=r.get(e);if(!n)throw new Error(`Attempted to get non-existent extension '${e}' from plugin '${t}'`);return n},toString:()=>`Plugin{id=${t}}`,withOverrides(n){const r=new Set(n.extensions.map((e=>dt(e,{namespace:t}).id))),a=(e.extensions??[]).filter((e=>!r.has(dt(e,{namespace:t}).id)));return ft({...e,pluginId:t,extensions:[...a,...n.extensions],info:{...e.info,...n.info}})}})}function mt(e){const{pluginId:t}=e,n=new Array,r=new Map;for(const a of e.extensions??[]){const e=oe.toInternal(a),i=dt(a,{namespace:t});n.push(i),r.set(i.id,{...e,namespace:t})}if(n.length!==r.size){const e=n.map((e=>e.id)),r=Array.from(new Set(e.filter(((t,n)=>e.indexOf(t)!==n))));throw new Error(`Plugin '${t}' provided duplicate extensions: ${r.join(", ")}`)}return{$$type:"@backstage/FrontendModule",version:"v1",pluginId:t,featureFlags:e.featureFlags??[],extensions:n,toString:()=>`Module{pluginId=${t}}`}}function gt(e){const t=`created at '${Be()}'`;return{$$type:"@backstage/FrontendFeatureLoader",version:"v1",description:t,toString:()=>`FeatureLoader{description=${t}}`,async loader(t){const n=await e.loader(t),r=new Array;for await(const e of n)if(null===(a=e)||"object"!=typeof a||!("$$type"in a)||"@backstage/FrontendPlugin"!==a.$$type&&"@backstage/FrontendModule"!==a.$$type&&"@backstage/FrontendFeatureLoader"!==a.$$type){if(!("default"in e))throw new Error(`Invalid item "${e}"`);r.push(e.default)}else r.push(e);var a;return r}}}},87092:(e,t,n)=>{n.d(t,{Q2:()=>o,gf:()=>s,wV:()=>c});var r=n(31085),a=n(64218),i=n(57556);function o(){const e=(0,a.useVersionedContext)("api-context");if(!e)throw new i.EH("API context is not available");const t=e.atVersion(1);if(!t)throw new i.EH("ApiContext v1 not available");return t}function s(e){const t=o().get(e);if(!t)throw new i.EH(`No implementation available for ${e}`);return t}function c(e){return function(t){const n=n=>{const a=o(),s={};for(const t in e)if(e.hasOwnProperty(t)){const n=e[t],r=a.get(n);if(!r)throw new i.EH(`No implementation available for ${n}`);s[t]=r}return(0,r.jsx)(t,{...n,...s})},a=t.displayName||t.name||"Component";return n.displayName=`withApis(${a})`,n}}},89940:(e,t,n)=>{n.d(t,{y:()=>a});class r{constructor(e){if(this.config=e,!e.id.split(".").flatMap((e=>e.split("-"))).every((e=>e.match(/^[a-z][a-z0-9]*$/))))throw new Error(`API id must only contain period separated lowercase alphanum tokens with dashes, got '${e.id}'`)}get id(){return this.config.id}get T(){throw new Error(`tried to read ApiRef.T of ${this}`)}toString(){return`apiRef{${this.config.id}}`}}function a(e){return new r(e)}}}]);
|
2
|
-
//# sourceMappingURL=8505.
|
2
|
+
//# sourceMappingURL=8505.9dd864c9.chunk.js.map
|