@techdocs/cli 1.9.2 → 1.9.3-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 (37) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/embedded-app/.config-schema.json +1924 -2652
  3. package/dist/embedded-app/index.html +1 -1
  4. package/dist/embedded-app/index.html.tmpl +1 -1
  5. package/dist/embedded-app/static/2177.d7152699.chunk.js +4 -0
  6. package/dist/embedded-app/static/2177.d7152699.chunk.js.map +1 -0
  7. package/dist/embedded-app/static/3308.61cd83f7.chunk.js +7 -0
  8. package/dist/embedded-app/static/3308.61cd83f7.chunk.js.map +1 -0
  9. package/dist/embedded-app/static/{4036.255f68ab.chunk.js → 4036.4a93e66b.chunk.js} +1 -1
  10. package/dist/embedded-app/static/4036.4a93e66b.chunk.js.map +1 -0
  11. package/dist/embedded-app/static/{5470.f80a9c12.chunk.js → 5470.1de8dd3a.chunk.js} +1 -1
  12. package/dist/embedded-app/static/5470.1de8dd3a.chunk.js.map +1 -0
  13. package/dist/embedded-app/static/{5724.6bdfca76.chunk.js → 5724.80feefdb.chunk.js} +3 -3
  14. package/dist/embedded-app/static/5724.80feefdb.chunk.js.map +1 -0
  15. package/dist/embedded-app/static/{8803.34dd38ce.chunk.js → 8803.fa94a950.chunk.js} +1 -1
  16. package/dist/embedded-app/static/{8803.34dd38ce.chunk.js.map → 8803.fa94a950.chunk.js.map} +1 -1
  17. package/dist/embedded-app/static/9234.a1d6ef55.chunk.js +4 -0
  18. package/dist/embedded-app/static/9234.a1d6ef55.chunk.js.map +1 -0
  19. package/dist/embedded-app/static/main.14805d05.js +553 -0
  20. package/dist/embedded-app/static/main.14805d05.js.map +1 -0
  21. package/dist/embedded-app/static/{runtime.9fff8ae5.js → runtime.14805d05.js} +2 -2
  22. package/dist/embedded-app/static/{runtime.9fff8ae5.js.map → runtime.14805d05.js.map} +1 -1
  23. package/dist/embedded-app/static/{vendor.9fff8ae5.js → vendor.14805d05.js} +1 -1
  24. package/dist/embedded-app/static/{vendor.9fff8ae5.js.map → vendor.14805d05.js.map} +1 -1
  25. package/dist/package.json.cjs.js +1 -1
  26. package/package.json +7 -7
  27. package/dist/embedded-app/static/2177.84bbb70f.chunk.js +0 -4
  28. package/dist/embedded-app/static/2177.84bbb70f.chunk.js.map +0 -1
  29. package/dist/embedded-app/static/3308.13263a7d.chunk.js +0 -7
  30. package/dist/embedded-app/static/3308.13263a7d.chunk.js.map +0 -1
  31. package/dist/embedded-app/static/4036.255f68ab.chunk.js.map +0 -1
  32. package/dist/embedded-app/static/5470.f80a9c12.chunk.js.map +0 -1
  33. package/dist/embedded-app/static/5724.6bdfca76.chunk.js.map +0 -1
  34. package/dist/embedded-app/static/9234.812d5df8.chunk.js +0 -4
  35. package/dist/embedded-app/static/9234.812d5df8.chunk.js.map +0 -1
  36. package/dist/embedded-app/static/main.9fff8ae5.js +0 -553
  37. package/dist/embedded-app/static/main.9fff8ae5.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var version = "1.9.2";
3
+ var version = "1.9.3-next.1";
4
4
 
5
5
  exports.version = version;
6
6
  //# sourceMappingURL=package.json.cjs.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@techdocs/cli",
3
- "version": "1.9.2",
3
+ "version": "1.9.3-next.1",
4
4
  "description": "Utility CLI for managing TechDocs sites in Backstage.",
5
5
  "backstage": {
6
6
  "role": "cli"
@@ -44,11 +44,11 @@
44
44
  "watch": "./src"
45
45
  },
46
46
  "dependencies": {
47
- "@backstage/backend-defaults": "^0.9.0",
48
- "@backstage/catalog-model": "^1.7.3",
49
- "@backstage/cli-common": "^0.1.15",
50
- "@backstage/config": "^1.3.2",
51
- "@backstage/plugin-techdocs-node": "^1.13.2",
47
+ "@backstage/backend-defaults": "0.10.0-next.1",
48
+ "@backstage/catalog-model": "1.7.3",
49
+ "@backstage/cli-common": "0.1.15",
50
+ "@backstage/config": "1.3.2",
51
+ "@backstage/plugin-techdocs-node": "1.13.3-next.1",
52
52
  "commander": "^12.0.0",
53
53
  "fs-extra": "^11.0.0",
54
54
  "global-agent": "^3.0.0",
@@ -58,7 +58,7 @@
58
58
  "winston": "^3.2.1"
59
59
  },
60
60
  "devDependencies": {
61
- "@backstage/cli": "^0.32.0",
61
+ "@backstage/cli": "0.32.1-next.1",
62
62
  "@types/commander": "^2.12.2",
63
63
  "@types/fs-extra": "^11.0.0",
64
64
  "@types/http-proxy": "^1.17.4",
@@ -1,4 +0,0 @@
1
- "use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[2177],{48514:(W,T,t)=>{t.d(T,{M:()=>O});var e=t(31085),y=t(58837),L=t(71677),x=t(72501);const K=(0,y.A)({container:{overflow:"visible !important"},typo:{fontSize:"inherit",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box","-webkit-line-clamp":({line:C})=>C||1,"-webkit-box-orient":"vertical"}},{name:"BackstageOverflowTooltip"});function O(C){const I=K(C);return(0,e.jsx)(L.Ay,{title:C.title??(C.text||""),placement:C.placement,children:(0,e.jsx)(x.A,{className:I.typo,variant:"inherit",children:C.text})})}},35773:(W,T,t)=>{t.d(T,{C4:()=>x,tS:()=>O});var e=t(14117);const y="catalog-entity",L=(0,e.i)({name:"catalog.entity.read",attributes:{action:"read"},resourceType:y}),x=(0,e.i)({name:"catalog.entity.create",attributes:{action:"create"}}),K=(0,e.i)({name:"catalog.entity.delete",attributes:{action:"delete"},resourceType:y}),O=(0,e.i)({name:"catalog.entity.refresh",attributes:{action:"update"},resourceType:y}),C=(0,e.i)({name:"catalog.entity.validate",attributes:{}}),I=(0,e.i)({name:"catalog.location.read",attributes:{action:"read"}}),H=(0,e.i)({name:"catalog.location.create",attributes:{action:"create"}}),z=(0,e.i)({name:"catalog.location.analyze",attributes:{}}),V=(0,e.i)({name:"catalog.location.delete",attributes:{action:"delete"}}),k=[L,x,K,O,C,I,H,V,z]},90759:(W,T,t)=>{t.d(T,{W:()=>y});var e=t(93184);const y=(0,e.h)({id:"catalog",messages:{indexPage:{title:"{{orgName}} Catalog",createButtonTitle:"Create",supportButtonContent:"All your software catalog entities"},aboutCard:{title:"About",refreshButtonTitle:"Schedule entity refresh",editButtonTitle:"Edit Metadata",createSimilarButtonTitle:"Create something similar",refreshScheduledMessage:"Refresh scheduled",launchTemplate:"Launch Template",viewTechdocs:"View TechDocs",viewSource:"View Source",descriptionField:{label:"Description",value:"No description"},ownerField:{label:"Owner",value:"No Owner"},domainField:{label:"Domain",value:"No Domain"},systemField:{label:"System",value:"No System"},parentComponentField:{label:"Parent Component",value:"No Parent Component"},typeField:{label:"Type"},lifecycleField:{label:"Lifecycle"},tagsField:{label:"Tags",value:"No Tags"},targetsField:{label:"Targets"}},searchResultItem:{lifecycle:"Lifecycle",Owner:"Owner"},catalogTable:{warningPanelTitle:"Could not fetch catalog entities.",viewActionTitle:"View",editActionTitle:"Edit",starActionTitle:"Add to favorites",unStarActionTitle:"Remove from favorites"},dependencyOfComponentsCard:{title:"Dependency of components",emptyMessage:"No component depends on this component"},dependsOnComponentsCard:{title:"Depends on components",emptyMessage:"No component is a dependency of this component"},dependsOnResourcesCard:{title:"Depends on resources",emptyMessage:"No resource is a dependency of this component"},entityContextMenu:{copiedMessage:"Copied!",moreButtonTitle:"More",inspectMenuTitle:"Inspect entity",copyURLMenuTitle:"Copy entity URL",unregisterMenuTitle:"Unregister entity"},entityLabelsCard:{title:"Labels",emptyDescription:"No labels defined for this entity. You can add labels to your entity YAML as shown in the highlighted example below:",readMoreButtonTitle:"Read more"},entityLabels:{warningPanelTitle:"Entity not found",ownerLabel:"Owner",lifecycleLabel:"Lifecycle"},entityLinksCard:{title:"Links",emptyDescription:"No links defined for this entity. You can add links to your entity YAML as shown in the highlighted example below:",readMoreButtonTitle:"Read more"},entityNotFound:{title:"Entity was not found",description:"Want to help us build this? Check out our Getting Started documentation.",docButtonTitle:"DOCS"},deleteEntity:{dialogTitle:"Are you sure you want to delete this entity?",deleteButtonTitle:"Delete",cancelButtonTitle:"Cancel",description:"This entity is not referenced by any location and is therefore not receiving updates. Click here to delete."},entityProcessingErrorsDescription:"The error below originates from",entityRelationWarningDescription:`This entity has relations to other entities, which can't be found in the catalog.
2
- Entities not found are: `,hasComponentsCard:{title:"Has components",emptyMessage:"No component is part of this system"},hasResourcesCard:{title:"Has resources",emptyMessage:"No resource is part of this system"},hasSubcomponentsCard:{title:"Has subcomponents",emptyMessage:"No subcomponent is part of this component"},hasSubdomainsCard:{title:"Has subdomains",emptyMessage:"No subdomain is part of this domain"},hasSystemsCard:{title:"Has systems",emptyMessage:"No system is part of this domain"},relatedEntitiesCard:{emptyHelpLinkTitle:"Learn how to change this"},systemDiagramCard:{title:"System Diagram",description:"Use pinch & zoom to move around the diagram.",edgeLabels:{partOf:"part of",provides:"provides",dependsOn:"depends on"}}}})},62177:(W,T,t)=>{t.r(T),t.d(T,{BaseCatalogPage:()=>Te,CatalogPage:()=>xt,DefaultCatalogPage:()=>Se});var e=t(31085),y=t(18690),L=t(27155),x=t(26280),K=t(59428),O=t(64947),C=t(29365),I=t(5893),H=t(73657),z=t(25534);function V(n){const{title:a,to:s}=n,o=(0,I.A)(i=>i.breakpoints.down("xs"));return s?o?(0,e.jsx)(C.A,{component:H.N_,color:"primary",title:a,size:"small",to:s,children:(0,e.jsx)(z.A,{})}):(0,e.jsx)(O.A,{component:H.N_,variant:"contained",color:"primary",to:s,children:a}):null}var k=t(27586),m=t(72427),S=t(65461),b=t(9222),v=t(21405),F=t(54203),Q=t(66917),se=t(36017),Z=t(10394),p=t(14041),N=t(92822),ie=t(73466),oe=t(7341);function Ae(){const n=(0,m.gf)(oe.v),{error:a,loading:s,value:o}=(0,ie.A)(async()=>{const{facets:i}=await n.getEntityFacets({facets:["kind"]}),l=(i.kind??[]).map(r=>r.value);return new Map(l.map(r=>[r.toLocaleLowerCase("en-US"),r]))},[n]);return{loading:s,error:a,allKinds:o??new Map}}function je(n,a,s){let o=Array.from(n.keys());a&&(o=a.map(l=>l.toLocaleLowerCase("en-US")).filter(l=>n.has(l)));const i=new Map(o.map(l=>[l,n.get(l)||l]));return s&&!i.has(s)&&i.set(s.toLocaleLowerCase("en-US"),s),i}var U=t(64630),R=t(87849);function Ee(n){const{filters:a,queryParameters:{kind:s},updateFilters:o}=(0,v.nK)(),i=(0,p.useMemo)(()=>[s].flat()[0],[s]),[l,r]=(0,p.useState)(i??a.kind?.value??n.initialFilter);(0,p.useEffect)(()=>{i&&r(i)},[i]),(0,p.useEffect)(()=>{a.kind?.value&&r(a.kind?.value)},[a.kind]);const{allKinds:c,loading:d,error:f}=Ae(),u=c.get(l)||l;return(0,p.useEffect)(()=>{o({kind:l?new N.gM(l,u):void 0})},[l,u,o]),{loading:d,error:f,allKinds:c,selectedKind:l,setSelectedKind:r}}const Le=n=>{const{allowedKinds:a,hidden:s,initialFilter:o="component"}=n,{t:i}=(0,R.i)(U.j),l=(0,m.gf)(se.k),{error:r,allKinds:c,selectedKind:d,setSelectedKind:f}=Ee({initialFilter:o});if((0,p.useEffect)(()=>{r&&l.post({message:i("entityKindPicker.errorMessage"),severity:"error"})},[r,l,i]),r)return null;const P=[...je(c,a,d).entries()].map(([h,A])=>({label:A,value:h}));return s?null:(0,e.jsx)(Z.A,{pb:1,pt:1,children:(0,e.jsx)(Q.w,{label:i("entityKindPicker.title"),items:P,selected:d.toLocaleLowerCase("en-US"),onChange:h=>f(String(h))})})};var Y=t(58837),le=t(47144);const be=(0,Y.A)({input:{}},{name:"CatalogReactEntityLifecyclePicker"}),Re=n=>{const{initialFilter:a=[]}=n,s=be(),{t:o}=(0,R.i)(U.j);return(0,e.jsx)(le.y,{label:o("entityLifecyclePicker.title"),name:"lifecycles",path:"spec.lifecycle",Filter:N.I5,InputProps:{className:s.input},initialSelectedOptions:a})},Me=(0,Y.A)({input:{}},{name:"CatalogReactEntityNamespacePicker"}),Oe=n=>{const{initiallySelectedNamespaces:a}=n,s=Me(),{t:o}=(0,R.i)(U.j);return(0,e.jsx)(le.y,{label:o("entityNamespacePicker.title"),name:"namespace",path:"metadata.namespace",Filter:N.z,InputProps:{className:s.input},initialSelectedOptions:a})};var Fe=t(72987),Ne=t(69076),Be=t(86901),De=t(44148),Ke=t(41260),Ie=t(22995);const ze=(0,Y.A)({root:{},input:{},label:{}},{name:"CatalogReactEntityProcessingStatusPickerPicker"}),Ue=(0,e.jsx)(Ke.A,{fontSize:"small"}),we=(0,e.jsx)(De.A,{fontSize:"small"}),We=()=>{const n=ze(),{updateFilters:a}=(0,v.nK)(),{t:s}=(0,R.i)(U.j),[o,i]=(0,p.useState)([]);function l(d){a({orphan:d?new N.Kf(d):void 0})}function r(d){a({error:d?new N.mT(d):void 0})}const c=["Is Orphan","Has Error"];return(0,e.jsx)(Z.A,{className:n.root,pb:1,pt:1,children:(0,e.jsx)(Ie.Q,{label:s("entityProcessingStatusPicker.title"),multiple:!0,disableCloseOnSelect:!0,options:c,value:o,onChange:(d,f)=>{i(f),l(f.includes("Is Orphan")),r(f.includes("Has Error"))},renderOption:(d,{selected:f})=>(0,e.jsx)(Be.A,{control:(0,e.jsx)(Ne.A,{icon:Ue,checkedIcon:we,checked:f}),onClick:u=>u.preventDefault(),label:d}),name:"processing-status-picker",LabelProps:{className:n.label},TextFieldProps:{className:n.input}})})};var He=t(91035),Ve=t(46343),Ye=t.n(Ve),Ge=t(40074),Xe=t.n(Ge);function ke(){const n=(0,m.gf)(oe.v),{filters:{kind:a,type:s},queryParameters:{type:o},updateFilters:i}=(0,v.nK)(),l=(0,p.useMemo)(()=>[o].flat().filter(Boolean),[o]),[r,c]=(0,p.useState)(l.length?l:s?.getTypes()??[]);(0,p.useEffect)(()=>{l.length&&c(l)},[l]);const[d,f]=(0,p.useState)([]),u=(0,p.useMemo)(()=>a?.value,[a]),{error:P,loading:h,value:A}=(0,ie.A)(async()=>u?await n.getEntityFacets({filter:{kind:u},facets:["spec.type"]}).then(j=>j.facets["spec.type"]||[]):[],[u,n]),X=(0,p.useRef)(A);return(0,p.useEffect)(()=>{const w=X.current;if(X.current=A,h||!u||w===A||!A)return;const j=[...new Set(Xe()(A,B=>-B.count).map(B=>B.value.toLocaleLowerCase("en-US")))];f(j);const $=r.filter(B=>j.includes(B));Ye()(r,$)||c($)},[h,u,r,c,A]),(0,p.useEffect)(()=>{i({type:r.length?new N.qA(r):void 0})},[r,i]),{loading:h,error:P,availableTypes:d,selectedTypes:r,setSelectedTypes:c}}const Qe=n=>{const{hidden:a,initialFilter:s}=n,o=(0,m.gf)(se.k),{error:i,availableTypes:l,selectedTypes:r,setSelectedTypes:c}=ke(),{t:d}=(0,R.i)(U.j);if((0,p.useEffect)(()=>{i&&o.post({message:d("entityTypePicker.errorMessage"),severity:"error"}),s&&c([s])},[i,o,s,c,d]),l.length===0||i)return null;l.sort((u,P)=>u.toLocaleLowerCase("en-US").localeCompare(P.toLocaleLowerCase("en-US")));const f=[{value:"all",label:d("entityTypePicker.optionAllTitle")},...l.map(u=>({value:u,label:u}))];return a?null:(0,e.jsx)(Z.A,{pb:1,pt:1,children:(0,e.jsx)(Q.w,{label:d("entityTypePicker.title"),items:f,selected:(f.length>1?r[0]:void 0)??"all",onChange:u=>c(u==="all"?[]:[String(u)])})})};var Je=t(67626);const $e=n=>{const{initialKind:a,initiallySelectedFilter:s,ownerPickerMode:o,initiallySelectedNamespaces:i}=n;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Le,{initialFilter:a}),(0,e.jsx)(Qe,{}),(0,e.jsx)(Je.y,{initialFilter:s}),(0,e.jsx)(Fe.t,{mode:o}),(0,e.jsx)(Re,{}),(0,e.jsx)(He.m,{}),(0,e.jsx)(We,{}),(0,e.jsx)(Oe,{initiallySelectedNamespaces:i})]})};var Ze=t(95203),re=t(72348),ce=t(51372),qe=t(6820),_e=t(88640),et=t(77310),q=t(14209),G=t(90184),tt=t(56889),de=t(67871),_=t(72501),ue=t(88654),nt=t(75625),at=t(39330),st=t(45250),it=t(65398),ot=t.n(it),lt=t(8859),me=t(34428),pe=t(67720),fe=t(48514);const g=Object.freeze({createNameColumn(n){function a(s){return s.metadata?.title||(0,G.S)(s,{defaultKind:n?.defaultKind})}return{title:"Name",field:"resolved.entityRef",highlight:!0,customSort({entity:s},{entity:o}){return a(s).localeCompare(a(o))},render:({entity:s})=>(0,e.jsx)(lt.z,{entityRef:s,defaultKind:n?.defaultKind||"Component"})}},createSystemColumn(){return{title:"System",field:"resolved.partOfSystemRelationTitle",customFilterAndSearch:(n,a)=>a.resolved.partOfSystemRelations?a.resolved.partOfSystemRelations.map(i=>i.name).join(", ").toLocaleUpperCase("en-US").includes(n.toLocaleUpperCase("en-US")):!1,render:({resolved:n})=>(0,e.jsx)(me.i,{entityRefs:n.partOfSystemRelations,defaultKind:"system"})}},createOwnerColumn(){return{title:"Owner",field:"resolved.ownedByRelationsTitle",render:({resolved:n})=>(0,e.jsx)(me.i,{entityRefs:n.ownedByRelations,defaultKind:"group"})}},createSpecTargetsColumn(){return{title:"Targets",field:"entity.spec.targets",customFilterAndSearch:(n,a)=>{let s=[];return a.entity?.spec?.targets&&Array.isArray(a.entity?.spec?.targets)?s=a.entity?.spec?.targets:a.entity?.spec?.target&&(s=[a.entity?.spec?.target]),s.join(", ").toLocaleUpperCase("en-US").includes(n.toLocaleUpperCase("en-US"))},render:({entity:n})=>(0,e.jsx)(e.Fragment,{children:(n?.spec?.targets||n?.spec?.target)&&(0,e.jsx)(fe.M,{text:(n.spec.targets||[n.spec.target]).join(", "),placement:"bottom-start"})})}},createSpecTypeColumn(n={hidden:!1}){return{title:"Type",field:"entity.spec.type",hidden:n.hidden,width:"auto"}},createSpecLifecycleColumn(){return{title:"Lifecycle",field:"entity.spec.lifecycle"}},createMetadataDescriptionColumn(){return{title:"Description",field:"entity.metadata.description",render:({entity:n})=>(0,e.jsx)(fe.M,{text:n.metadata.description,placement:"bottom-start"}),width:"auto"}},createTagsColumn(){return{title:"Tags",field:"entity.metadata.tags",cellStyle:{padding:"0px 16px 0px 20px"},render:({entity:n})=>(0,e.jsx)(e.Fragment,{children:n.metadata.tags&&n.metadata.tags.map(a=>(0,e.jsx)(pe.A,{label:a,size:"small",variant:"outlined",style:{marginBottom:"0px"}},a))}),width:"auto"}},createTitleColumn(n){return{title:"Title",field:"entity.metadata.title",hidden:n?.hidden,searchable:!0}},createLabelColumn(n,a){function s(o,i){const l=i.metadata?.labels;return l&&l[o]||""}return{title:a?.title||"Label",field:"entity.metadata.labels",cellStyle:{padding:"0px 16px 0px 20px"},customSort({entity:o},{entity:i}){return s(n,o).localeCompare(s(n,i))},render:({entity:o})=>{const i=o.metadata?.labels,l=i&&i[n]||a?.defaultValue;return(0,e.jsx)(e.Fragment,{children:l&&(0,e.jsx)(pe.A,{label:l,size:"small",variant:"outlined"},l)})},width:"auto"}},createNamespaceColumn(){return{title:"Namespace",field:"entity.metadata.namespace",width:"auto"}}});var rt=t(95061),ct=t(63301),ye=t(34839),ge=t(75173),dt=t(64704),ut=t(45917),mt=t(16983);const pt=(0,Y.A)(n=>({searchToolbar:{paddingLeft:0,paddingRight:0},input:{}}),{name:"CatalogReactEntitySearchBar"}),ft=()=>{const n=pt(),{t:a}=(0,R.i)(U.j),{updateFilters:s,queryParameters:{text:o}}=(0,v.nK)(),i=(0,p.useMemo)(()=>[o].flat()[0],[o]),[l,r]=(0,p.useState)(i??"");return(0,mt.A)(()=>{s({text:l.length?new N.V3(l):void 0})},250,[l,s]),(0,p.useEffect)(()=>{i&&r(i)},[i]),(0,e.jsx)(ge.A,{className:n.searchToolbar,children:(0,e.jsx)(rt.A,{children:(0,e.jsx)(ct.A,{"aria-label":"search",id:"input-with-icon-adornment",className:n.input,placeholder:a("entitySearchBar.placeholder"),autoComplete:"off",onChange:c=>r(c.target.value),value:l,startAdornment:(0,e.jsx)(ye.A,{position:"start",children:(0,e.jsx)(ut.A,{})}),endAdornment:(0,e.jsx)(ye.A,{position:"end",children:(0,e.jsx)(C.A,{"aria-label":"clear search",onClick:()=>r(""),edge:"end",disabled:l.length===0,children:(0,e.jsx)(dt.A,{})})})})})})},yt=(0,Y.A)(n=>({root:{paddingTop:n.spacing(1.25),paddingLeft:n.spacing(2.5),paddingBottom:n.spacing(.75),display:"flex",justifyContent:"space-between"},text:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}}),{name:"PluginCatalogTableToolbar"});function he(n){const a=yt();return(0,e.jsxs)(ge.A,{className:a.root,children:[(0,e.jsx)(_.A,{variant:"h5",className:a.text,children:n.title}),(0,e.jsx)(ft,{})]})}function gt(n){const{columns:a,data:s,options:o,...i}=n,{setLimit:l,setOffset:r,limit:c,totalItems:d,offset:f}=(0,v.nK)(),[u,P]=(0,p.useState)(f&&c?Math.floor(f/c):0);return(0,p.useEffect)(()=>{d&&u*c>=d?r(Math.max(0,d-c)):r(Math.max(0,u*c))},[r,u,c,d]),(0,e.jsx)(q.X,{columns:a,data:s,options:{paginationPosition:"both",pageSizeOptions:[5,10,20,50,100],pageSize:c,emptyRowsWhenPaging:!1,...o},components:{Toolbar:he},page:u,onPageChange:h=>{P(h)},onRowsPerPageChange:h=>{l(h)},totalCount:d,localization:{pagination:{labelDisplayedRows:""}},...i})}function ht(n){const{columns:a,data:s,next:o,prev:i,options:l,...r}=n;return(0,e.jsx)(q.X,{columns:a,data:s,options:{paginationPosition:"both",...l,pageSizeOptions:[],showFirstLastPageButtons:!1,pageSize:Number.MAX_SAFE_INTEGER,emptyRowsWhenPaging:!1},onPageChange:c=>{c>0?o?.():i?.()},components:{Toolbar:he},page:i?1:0,totalCount:o?Number.MAX_VALUE:Number.MAX_SAFE_INTEGER,localization:{pagination:{labelDisplayedRows:""}},...r})}const Ce=({filters:n,entities:a})=>{const s=n.type===void 0;return[g.createTitleColumn({hidden:!0}),g.createNameColumn({defaultKind:n.kind?.value}),...o()];function o(){const i=[g.createMetadataDescriptionColumn(),g.createTagsColumn()],l=[g.createSystemColumn(),g.createOwnerColumn(),g.createSpecTypeColumn({hidden:!s}),g.createSpecLifecycleColumn()];switch(n.kind?.value){case"user":return[...i];case"domain":case"system":return[g.createOwnerColumn(),...i];case"group":case"template":return[g.createSpecTypeColumn({hidden:!s}),...i];case"location":return[g.createSpecTypeColumn({hidden:!s}),g.createSpecTargetsColumn()];default:return a.every(r=>r.metadata.namespace==="default")?[...l,...i]:[...l,g.createNamespaceColumn(),...i]}}};var ve=t(90759),Ct=t(18956);const vt=(n,a)=>{const s=o=>o.metadata.title||(0,G.S)(o,{defaultKind:"Component"});return s(n).localeCompare(s(a))},J=n=>{const{columns:a=Ce,tableOptions:s,subtitle:o,emptyContent:i}=n,{isStarredEntity:l,toggleStarredEntity:r}=(0,tt.I)(),c=(0,v.nK)(),{loading:d,error:f,entities:u,filters:P,pageInfo:h,totalItems:A,paginationMode:X}=c,w=(0,p.useMemo)(()=>typeof a=="function"?a(c):a,[a,c]),{t:j}=(0,R.i)(ve.W);if(f)return(0,e.jsx)("div",{children:(0,e.jsx)(_e.B,{severity:"error",title:j("catalogTable.warningPanelTitle"),children:(0,e.jsx)(et.z,{language:"text",text:f.toString()})})});const $=[({entity:M})=>{const E=M.metadata.annotations?.[re._P],D=j("catalogTable.viewActionTitle");return{icon:()=>(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(_.A,{style:ue.A,children:D}),(0,e.jsx)(at.A,{fontSize:"small"})]}),tooltip:D,disabled:!E,onClick:()=>{E&&window.open(E,"_blank")}}},({entity:M})=>{const E=M.metadata.annotations?.[re.P],D=j("catalogTable.editActionTitle");return{icon:()=>(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(_.A,{style:ue.A,children:D}),(0,e.jsx)(nt.A,{fontSize:"small"})]}),tooltip:D,disabled:!E,onClick:()=>{E&&window.open(E,"_blank")}}},({entity:M})=>{const E=l(M),D=j(E?"catalogTable.unStarActionTitle":"catalogTable.starActionTitle");return{cellStyle:{paddingLeft:"1em"},icon:()=>(0,e.jsx)(Ct.m,{isFavorite:E}),tooltip:D,onClick:()=>r(M)}}],B=P.kind?.label||"",Pt=P.type?.value||"",At=typeof A=="number"?`(${A})`:"",jt=(0,st.capitalize)(P.user?.value??"all"),te=n.title||[jt,Pt,ot()(B),At].filter(M=>M).join(" "),ne=n.actions||$,ae={actionsColumnIndex:-1,loadingType:"linear",showEmptyDataSourceMessage:!d,padding:"dense",...s};if(X==="cursor")return(0,e.jsx)(ht,{columns:w,emptyContent:i,isLoading:d,title:te,actions:ne,subtitle:o,options:ae,data:u.map(ee),next:h?.next,prev:h?.prev});if(X==="offset")return(0,e.jsx)(gt,{columns:w,emptyContent:i,isLoading:d,title:te,actions:ne,subtitle:o,options:ae,data:u.map(ee)});const xe=u.sort(vt).map(ee),Pe=20,Et=xe.length>Pe;return(0,e.jsx)(q.X,{isLoading:d,columns:w,options:{paging:Et,pageSize:Pe,pageSizeOptions:[20,50,100],...ae},title:te,data:xe,actions:ne,subtitle:o,emptyContent:i})};J.columns=g,J.defaultColumnsFunc=Ce;function ee(n){const a=(0,de.t)(n,ce.jn,{kind:"system"}),s=(0,de.t)(n,ce.vv);return{entity:n,resolved:{name:(0,G.S)(n,{defaultKind:"Component"}),entityRef:(0,qe.U2)(n),ownedByRelationsTitle:s.map(o=>(0,G.S)(o,{defaultKind:"group"})).join(", "),ownedByRelations:s,partOfSystemRelationTitle:a.map(o=>(0,G.S)(o,{defaultKind:"system"})).join(", "),partOfSystemRelations:a}}}var Tt=t(35773),St=t(36989);function Te(n){const{filters:a,content:s=(0,e.jsx)(J,{}),pagination:o}=n,i=(0,m.gf)(S.U).getOptionalString("organization.name")??"Backstage",l=(0,b.S)(Ze.qP),{t:r}=(0,R.i)(ve.W),{allowed:c}=(0,St.J)({permission:Tt.C4});return(0,e.jsx)(L.d,{title:r("indexPage.title",{orgName:i}),themeId:"home",children:(0,e.jsxs)(x.U,{children:[(0,e.jsxs)(K.d,{title:"",children:[c&&(0,e.jsx)(V,{title:r("indexPage.createButtonTitle"),to:l&&l()}),(0,e.jsx)(k.Y,{children:r("indexPage.supportButtonContent")})]}),(0,e.jsx)(v.B9,{pagination:o,children:(0,e.jsxs)(F.GI,{children:[(0,e.jsx)(F.GI.Filters,{children:a}),(0,e.jsx)(F.GI.Content,{children:s})]})})]})})}function Se(n){const{columns:a,actions:s,initiallySelectedFilter:o="owned",initialKind:i="component",tableOptions:l={},emptyContent:r,pagination:c,ownerPickerMode:d,filters:f,initiallySelectedNamespaces:u}=n;return(0,e.jsx)(Te,{filters:f??(0,e.jsx)($e,{initialKind:i,initiallySelectedFilter:o,ownerPickerMode:d,initiallySelectedNamespaces:u}),content:(0,e.jsx)(J,{columns:a,actions:s,tableOptions:l,emptyContent:r}),pagination:c})}function xt(n){return(0,y.P1)()||(0,e.jsx)(Se,{...n})}},14117:(W,T,t)=>{t.d(T,{i:()=>e});function e({name:y,attributes:L,resourceType:x}){return x?{type:"resource",name:y,attributes:L,resourceType:x}:{type:"basic",name:y,attributes:L}}},36989:(W,T,t)=>{t.d(T,{J:()=>k});var e=t(72427),y=t(96824);function L(m,S){return m.name===S.name}function x(m,S){return"resourceType"in m?!S||m.resourceType===S:!1}function K(m){return m.attributes.action==="create"}function O(m){return m.attributes.action==="read"}function C(m){return m.attributes.action==="update"}function I(m){return m.attributes.action==="delete"}function H(m){return{authorize:async(S,b)=>await m.authorize(S,b),authorizeConditional(S,b){const v=S;return m.authorize(v,b)}}}var z=t(54241),V=t(68721);function k(m){const S=(0,e.gf)(y.x),{data:b,error:v}=(0,V.Ay)(m,async F=>{if(x(F.permission)&&!F.resourceRef)return z.b.DENY;const{result:Q}=await S.authorize(F);return Q});return v?{error:v,loading:!1,allowed:!1}:b===void 0?{loading:!0,allowed:!1}:{loading:!1,allowed:b===z.b.ALLOW}}}}]);})();
3
-
4
- //# sourceMappingURL=2177.84bbb70f.chunk.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"static/2177.84bbb70f.chunk.js","mappings":"8MA6BA,MAAMA,KAAYC,EAAAA,GAChB,CACEC,UAAW,CAC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OAAOA,EAAW3b,WAAWC,SAAW,QAC1C,CAOO,SAAS6c,EACdC,EAA0C,CAE1C,MAAO,CACLC,UAAW,MACTC,EACA/Q,IAEiB,MAAM6Q,EAAqBC,UAAUC,EAAU/Q,CAAO,EAIzEgR,qBACED,EACA/Q,EAAiC,CAEjC,MAAMiR,EACJF,EACF,OAAOF,EAAqBC,UAAUG,EAAgBjR,CAAO,CAC/D,CACF,CACF,C,0BChEO,SAASwP,EACdpR,EAQK,CAEL,MAAM8S,KAAgB/W,EAAAA,IAAOgX,EAAAA,CAAgBA,EACvC,CAAErI,KAAAA,EAAMzO,MAAAA,CAAM,KAAI+W,EAAAA,IAAOhT,EAAO,MAAOiT,GAAAA,CAM3C,GAAId,EAAqBc,EAAK5B,UAAU,GAAK,CAAC4B,EAAKC,YACjD,OAAOC,EAAAA,EAAgBC,KAGzB,KAAM,CAAEC,OAAAA,CAAO,EAAI,MAAMP,EAAcJ,UAAUO,CAAI,EACrD,OAAOI,CACT,CAAC,EAED,OAAIpX,EACK,CAAEA,MAAAA,EAAOC,QAAS,GAAOiV,QAAS,EAAM,EAE7CzG,IAAS/L,OACJ,CAAEzC,QAAS,GAAMiV,QAAS,EAAM,EAElC,CAAEjV,QAAS,GAAOiV,QAASzG,IAASyI,EAAAA,EAAgBG,KAAM,CACnE,C","sources":["webpack://techdocs-cli-embedded-app/../core-components/src/components/OverflowTooltip/OverflowTooltip.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog-common/src/permissions.ts","webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/alpha/translation.ts","webpack://techdocs-cli-embedded-app/../core-components/src/components/CreateButton/CreateButton.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog-react/src/components/EntityKindPicker/kindFilterUtils.ts","webpack://techdocs-cli-embedded-app/../../plugins/catalog-react/src/components/EntityKindPicker/EntityKindPicker.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog-react/src/components/EntityLifecyclePicker/EntityLifecyclePicker.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog-react/src/components/EntityNamespacePicker/EntityNamespacePicker.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog-react/src/components/EntityProcessingStatusPicker/EntityProcessingStatusPicker.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog-react/src/hooks/useEntityTypeFilter.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog-react/src/components/EntityTypePicker/EntityTypePicker.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog-react/src/components/DefaultFilters/DefaultFilters.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/components/CatalogTable/columns.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog-react/src/components/EntitySearchBar/EntitySearchBar.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/components/CatalogTable/CatalogTableToolbar.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/components/CatalogTable/OffsetPaginatedCatalogTable.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/components/CatalogTable/CursorPaginatedCatalogTable.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/components/CatalogTable/defaultCatalogTableColumnsFunc.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/components/CatalogTable/CatalogTable.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/components/CatalogPage/DefaultCatalogPage.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/components/CatalogPage/CatalogPage.tsx","webpack://techdocs-cli-embedded-app/../../plugins/permission-common/src/permissions/createPermission.ts","webpack://techdocs-cli-embedded-app/../../plugins/permission-common/src/permissions/util.ts","webpack://techdocs-cli-embedded-app/../../plugins/permission-react/src/hooks/usePermission.ts"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { makeStyles } from '@material-ui/core/styles';\nimport Tooltip, { TooltipProps } from '@material-ui/core/Tooltip';\nimport Typography from '@material-ui/core/Typography';\n\ntype Props = {\n text?: string | undefined;\n title?: TooltipProps['title'];\n line?: number | undefined;\n placement?: TooltipProps['placement'];\n};\n\nexport type OverflowTooltipClassKey = 'container';\n\nconst useStyles = makeStyles(\n {\n container: {\n overflow: 'visible !important',\n },\n typo: {\n fontSize: 'inherit',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n display: '-webkit-box',\n '-webkit-line-clamp': ({ line }: Props) => line || 1,\n '-webkit-box-orient': 'vertical',\n },\n },\n { name: 'BackstageOverflowTooltip' },\n);\n\nexport function OverflowTooltip(props: Props) {\n const classes = useStyles(props);\n\n return (\n <Tooltip\n title={props.title ?? (props.text || '')}\n placement={props.placement}\n >\n <Typography className={classes.typo} variant=\"inherit\">\n {props.text}\n </Typography>\n </Tooltip>\n );\n}\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n createPermission,\n ResourcePermission,\n} from '@backstage/plugin-permission-common';\n\n/**\n * Permission resource type which corresponds to catalog entities.\n *\n * {@link https://backstage.io/docs/features/software-catalog/}\n * @alpha\n */\nexport const RESOURCE_TYPE_CATALOG_ENTITY = 'catalog-entity';\n\n/**\n * Convenience type for catalog entity\n * {@link @backstage/plugin-permission-common#ResourcePermission}s.\n * @alpha\n */\nexport type CatalogEntityPermission = ResourcePermission<\n typeof RESOURCE_TYPE_CATALOG_ENTITY\n>;\n\n/**\n * This permission is used to authorize actions that involve reading one or more\n * entities from the catalog.\n *\n * If this permission is not authorized, it will appear that the entity does not\n * exist in the catalog — both in the frontend and in API responses.\n * @alpha\n */\nexport const catalogEntityReadPermission = createPermission({\n name: 'catalog.entity.read',\n attributes: {\n action: 'read',\n },\n resourceType: RESOURCE_TYPE_CATALOG_ENTITY,\n});\n\n/**\n * This permission is used to authorize actions that involve creating a new\n * catalog entity. This includes registering an existing component into the\n * catalog.\n * @alpha\n */\nexport const catalogEntityCreatePermission = createPermission({\n name: 'catalog.entity.create',\n attributes: {\n action: 'create',\n },\n});\n\n/**\n * This permission is used to designate actions that involve removing one or\n * more entities from the catalog.\n * @alpha\n */\nexport const catalogEntityDeletePermission = createPermission({\n name: 'catalog.entity.delete',\n attributes: {\n action: 'delete',\n },\n resourceType: RESOURCE_TYPE_CATALOG_ENTITY,\n});\n\n/**\n * This permission is used to designate refreshing one or more entities from the\n * catalog.\n * @alpha\n */\nexport const catalogEntityRefreshPermission = createPermission({\n name: 'catalog.entity.refresh',\n attributes: {\n action: 'update',\n },\n resourceType: RESOURCE_TYPE_CATALOG_ENTITY,\n});\n\n/**\n * This permission is used to authorize validating catalog entities.\n * @alpha\n */\nexport const catalogEntityValidatePermission = createPermission({\n name: 'catalog.entity.validate',\n attributes: {},\n});\n\n/**\n * This permission is used to designate actions that involve reading one or more\n * locations from the catalog.\n *\n * If this permission is not authorized, it will appear that the location does\n * not exist in the catalog — both in the frontend and in API responses.\n * @alpha\n */\nexport const catalogLocationReadPermission = createPermission({\n name: 'catalog.location.read',\n attributes: {\n action: 'read',\n },\n});\n\n/**\n * This permission is used to designate actions that involve creating catalog\n * locations.\n * @alpha\n */\nexport const catalogLocationCreatePermission = createPermission({\n name: 'catalog.location.create',\n attributes: {\n action: 'create',\n },\n});\n\n/**\n * This permission is used to authorize analyzing catalog locations.\n * @alpha\n */\nexport const catalogLocationAnalyzePermission = createPermission({\n name: 'catalog.location.analyze',\n attributes: {},\n});\n\n/**\n * This permission is used to designate actions that involve deleting locations\n * from the catalog.\n * @alpha\n */\nexport const catalogLocationDeletePermission = createPermission({\n name: 'catalog.location.delete',\n attributes: {\n action: 'delete',\n },\n});\n\n/**\n * List of all catalog permissions.\n * @alpha\n */\nexport const catalogPermissions = [\n catalogEntityReadPermission,\n catalogEntityCreatePermission,\n catalogEntityDeletePermission,\n catalogEntityRefreshPermission,\n catalogEntityValidatePermission,\n catalogLocationReadPermission,\n catalogLocationCreatePermission,\n catalogLocationDeletePermission,\n catalogLocationAnalyzePermission,\n];\n","/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createTranslationRef } from '@backstage/core-plugin-api/alpha';\n\n/** @alpha */\nexport const catalogTranslationRef = createTranslationRef({\n id: 'catalog',\n messages: {\n indexPage: {\n title: `{{orgName}} Catalog`,\n createButtonTitle: 'Create',\n supportButtonContent: 'All your software catalog entities',\n },\n aboutCard: {\n title: 'About',\n refreshButtonTitle: 'Schedule entity refresh',\n editButtonTitle: 'Edit Metadata',\n createSimilarButtonTitle: 'Create something similar',\n refreshScheduledMessage: 'Refresh scheduled',\n launchTemplate: 'Launch Template',\n viewTechdocs: 'View TechDocs',\n viewSource: 'View Source',\n descriptionField: {\n label: 'Description',\n value: 'No description',\n },\n ownerField: {\n label: 'Owner',\n value: 'No Owner',\n },\n domainField: {\n label: 'Domain',\n value: 'No Domain',\n },\n systemField: {\n label: 'System',\n value: 'No System',\n },\n parentComponentField: {\n label: 'Parent Component',\n value: 'No Parent Component',\n },\n typeField: {\n label: 'Type',\n },\n lifecycleField: {\n label: 'Lifecycle',\n },\n tagsField: {\n label: 'Tags',\n value: 'No Tags',\n },\n targetsField: {\n label: 'Targets',\n },\n },\n searchResultItem: {\n lifecycle: 'Lifecycle',\n Owner: 'Owner',\n },\n catalogTable: {\n warningPanelTitle: 'Could not fetch catalog entities.',\n viewActionTitle: 'View',\n editActionTitle: 'Edit',\n starActionTitle: 'Add to favorites',\n unStarActionTitle: 'Remove from favorites',\n },\n dependencyOfComponentsCard: {\n title: 'Dependency of components',\n emptyMessage: 'No component depends on this component',\n },\n dependsOnComponentsCard: {\n title: 'Depends on components',\n emptyMessage: 'No component is a dependency of this component',\n },\n dependsOnResourcesCard: {\n title: 'Depends on resources',\n emptyMessage: 'No resource is a dependency of this component',\n },\n entityContextMenu: {\n copiedMessage: 'Copied!',\n moreButtonTitle: 'More',\n inspectMenuTitle: 'Inspect entity',\n copyURLMenuTitle: 'Copy entity URL',\n unregisterMenuTitle: 'Unregister entity',\n },\n entityLabelsCard: {\n title: 'Labels',\n emptyDescription:\n 'No labels defined for this entity. You can add labels to your entity YAML as shown in the highlighted example below:',\n readMoreButtonTitle: 'Read more',\n },\n entityLabels: {\n warningPanelTitle: 'Entity not found',\n ownerLabel: 'Owner',\n lifecycleLabel: 'Lifecycle',\n },\n entityLinksCard: {\n title: 'Links',\n emptyDescription:\n 'No links defined for this entity. You can add links to your entity YAML as shown in the highlighted example below:',\n readMoreButtonTitle: 'Read more',\n },\n entityNotFound: {\n title: 'Entity was not found',\n description:\n 'Want to help us build this? Check out our Getting Started documentation.',\n docButtonTitle: 'DOCS',\n },\n deleteEntity: {\n dialogTitle: 'Are you sure you want to delete this entity?',\n deleteButtonTitle: 'Delete',\n cancelButtonTitle: 'Cancel',\n description:\n 'This entity is not referenced by any location and is therefore not receiving updates. Click here to delete.',\n },\n entityProcessingErrorsDescription: 'The error below originates from',\n entityRelationWarningDescription:\n \"This entity has relations to other entities, which can't be found in the catalog.\\n Entities not found are: \",\n hasComponentsCard: {\n title: 'Has components',\n emptyMessage: 'No component is part of this system',\n },\n hasResourcesCard: {\n title: 'Has resources',\n emptyMessage: 'No resource is part of this system',\n },\n hasSubcomponentsCard: {\n title: 'Has subcomponents',\n emptyMessage: 'No subcomponent is part of this component',\n },\n hasSubdomainsCard: {\n title: 'Has subdomains',\n emptyMessage: 'No subdomain is part of this domain',\n },\n hasSystemsCard: {\n title: 'Has systems',\n emptyMessage: 'No system is part of this domain',\n },\n relatedEntitiesCard: {\n emptyHelpLinkTitle: 'Learn how to change this',\n },\n systemDiagramCard: {\n title: 'System Diagram',\n description: 'Use pinch & zoom to move around the diagram.',\n edgeLabels: {\n partOf: 'part of',\n provides: 'provides',\n dependsOn: 'depends on',\n },\n },\n },\n});\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport Button from '@material-ui/core/Button';\nimport IconButton from '@material-ui/core/IconButton';\nimport useMediaQuery from '@material-ui/core/useMediaQuery';\nimport { Link as RouterLink, LinkProps } from 'react-router-dom';\nimport AddCircleOutline from '@material-ui/icons/AddCircleOutline';\nimport { Theme } from '@material-ui/core/styles';\n\n/**\n * Properties for {@link CreateButton}\n *\n * @public\n */\nexport type CreateButtonProps = {\n title: string;\n} & Partial<Pick<LinkProps, 'to'>>;\n\n/**\n * Responsive Button giving consistent UX for creation of different things\n *\n * @public\n */\nexport function CreateButton(props: CreateButtonProps) {\n const { title, to } = props;\n const isXSScreen = useMediaQuery<Theme>(theme =>\n theme.breakpoints.down('xs'),\n );\n\n if (!to) {\n return null;\n }\n\n return isXSScreen ? (\n <IconButton\n component={RouterLink}\n color=\"primary\"\n title={title}\n size=\"small\"\n to={to}\n >\n <AddCircleOutline />\n </IconButton>\n ) : (\n <Button component={RouterLink} variant=\"contained\" color=\"primary\" to={to}>\n {title}\n </Button>\n );\n}\n","/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { useApi } from '@backstage/core-plugin-api';\nimport useAsync from 'react-use/esm/useAsync';\nimport { catalogApiRef } from '../../api';\n\n/**\n * Fetch and return all available kinds.\n */\nexport function useAllKinds(): {\n loading: boolean;\n error?: Error;\n allKinds: Map<string, string>;\n} {\n const catalogApi = useApi(catalogApiRef);\n\n const {\n error,\n loading,\n value: allKinds,\n } = useAsync(async () => {\n const { facets } = await catalogApi.getEntityFacets({ facets: ['kind'] });\n const kindFacets = (facets.kind ?? []).map(f => f.value);\n return new Map(\n kindFacets.map(kind => [kind.toLocaleLowerCase('en-US'), kind]),\n );\n }, [catalogApi]);\n\n return { loading, error, allKinds: allKinds ?? new Map() };\n}\n\n/**\n * Filter and capitalize accessible kinds.\n */\nexport function filterKinds(\n allKinds: Map<string, string>,\n allowedKinds?: string[],\n forcedKinds?: string,\n): Map<string, string> {\n // Before allKinds is loaded, or when a kind is entered manually in the URL, selectedKind may not\n // be present in allKinds. It should still be shown in the dropdown, but may not have the nice\n // enforced casing from the catalog-backend. This makes a key/value record for the Select options,\n // including selectedKind if it's unknown - but allows the selectedKind to get clobbered by the\n // more proper catalog kind if it exists.\n let availableKinds = Array.from(allKinds.keys());\n if (allowedKinds) {\n availableKinds = allowedKinds\n .map(k => k.toLocaleLowerCase('en-US'))\n .filter(k => allKinds.has(k));\n }\n\n const kindsMap = new Map(\n availableKinds.map(kind => [kind, allKinds.get(kind) || kind]),\n );\n\n if (forcedKinds && !kindsMap.has(forcedKinds)) {\n // this is the only time we set a label for a kind which is not properly capitalized\n kindsMap.set(forcedKinds.toLocaleLowerCase('en-US'), forcedKinds);\n }\n\n return kindsMap;\n}\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Select } from '@backstage/core-components';\nimport { alertApiRef, useApi } from '@backstage/core-plugin-api';\nimport Box from '@material-ui/core/Box';\nimport { useEffect, useMemo, useState } from 'react';\nimport { EntityKindFilter } from '../../filters';\nimport { useEntityList } from '../../hooks';\nimport { filterKinds, useAllKinds } from './kindFilterUtils';\nimport { catalogReactTranslationRef } from '../../translation';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\n\nfunction useEntityKindFilter(opts: { initialFilter: string }): {\n loading: boolean;\n error?: Error;\n allKinds: Map<string, string>;\n selectedKind: string;\n setSelectedKind: (kind: string) => void;\n} {\n const {\n filters,\n queryParameters: { kind: kindParameter },\n updateFilters,\n } = useEntityList();\n\n const queryParamKind = useMemo(\n () => [kindParameter].flat()[0],\n [kindParameter],\n );\n\n const [selectedKind, setSelectedKind] = useState(\n queryParamKind ?? filters.kind?.value ?? opts.initialFilter,\n );\n\n // Set selected kinds on query parameter updates; this happens at initial page load and from\n // external updates to the page location.\n useEffect(() => {\n if (queryParamKind) {\n setSelectedKind(queryParamKind);\n }\n }, [queryParamKind]);\n\n // Set selected kind from filters; this happens when the kind filter is\n // updated from another component\n useEffect(() => {\n if (filters.kind?.value) {\n setSelectedKind(filters.kind?.value);\n }\n }, [filters.kind]);\n\n const { allKinds, loading, error } = useAllKinds();\n const selectedKindLabel = allKinds.get(selectedKind) || selectedKind;\n\n useEffect(() => {\n updateFilters({\n kind: selectedKind\n ? new EntityKindFilter(selectedKind, selectedKindLabel)\n : undefined,\n });\n }, [selectedKind, selectedKindLabel, updateFilters]);\n\n return {\n loading,\n error,\n allKinds,\n selectedKind,\n setSelectedKind,\n };\n}\n\n/**\n * Props for {@link EntityKindPicker}.\n *\n * @public\n */\nexport interface EntityKindPickerProps {\n /**\n * Entity kinds to show in the dropdown; by default all kinds are fetched from the catalog and\n * displayed.\n */\n allowedKinds?: string[];\n initialFilter?: string;\n hidden?: boolean;\n}\n\n/** @public */\nexport const EntityKindPicker = (props: EntityKindPickerProps) => {\n const { allowedKinds, hidden, initialFilter = 'component' } = props;\n const { t } = useTranslationRef(catalogReactTranslationRef);\n\n const alertApi = useApi(alertApiRef);\n\n const { error, allKinds, selectedKind, setSelectedKind } =\n useEntityKindFilter({\n initialFilter: initialFilter,\n });\n\n useEffect(() => {\n if (error) {\n alertApi.post({\n message: t('entityKindPicker.errorMessage'),\n severity: 'error',\n });\n }\n }, [error, alertApi, t]);\n\n if (error) return null;\n\n const options = filterKinds(allKinds, allowedKinds, selectedKind);\n\n const items = [...options.entries()].map(([key, value]) => ({\n label: value,\n value: key,\n }));\n\n return hidden ? null : (\n <Box pb={1} pt={1}>\n <Select\n label={t('entityKindPicker.title')}\n items={items}\n selected={selectedKind.toLocaleLowerCase('en-US')}\n onChange={value => setSelectedKind(String(value))}\n />\n </Box>\n );\n};\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { makeStyles } from '@material-ui/core/styles';\nimport { EntityLifecycleFilter } from '../../filters';\nimport { EntityAutocompletePicker } from '../EntityAutocompletePicker';\nimport { catalogReactTranslationRef } from '../../translation';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\n\n/** @public */\nexport type CatalogReactEntityLifecyclePickerClassKey = 'input';\n\nconst useStyles = makeStyles(\n {\n input: {},\n },\n { name: 'CatalogReactEntityLifecyclePicker' },\n);\n\n/** @public */\nexport const EntityLifecyclePicker = (props: { initialFilter?: string[] }) => {\n const { initialFilter = [] } = props;\n const classes = useStyles();\n const { t } = useTranslationRef(catalogReactTranslationRef);\n\n return (\n <EntityAutocompletePicker\n label={t('entityLifecyclePicker.title')}\n name=\"lifecycles\"\n path=\"spec.lifecycle\"\n Filter={EntityLifecycleFilter}\n InputProps={{ className: classes.input }}\n initialSelectedOptions={initialFilter}\n />\n );\n};\n","/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { makeStyles } from '@material-ui/core/styles';\n\nimport { EntityNamespaceFilter } from '../../filters';\nimport { EntityAutocompletePicker } from '../EntityAutocompletePicker';\nimport { catalogReactTranslationRef } from '../../translation';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\n\n/** @public */\nexport type CatalogReactEntityNamespacePickerClassKey = 'input';\n\nconst useStyles = makeStyles(\n {\n input: {},\n },\n {\n name: 'CatalogReactEntityNamespacePicker',\n },\n);\n\n/**\n * Props for {@link EntityNamespacePicker}.\n *\n * @public\n */\nexport interface EntityNamespacePickerProps {\n initiallySelectedNamespaces?: string[];\n}\n\n/** @public */\nexport const EntityNamespacePicker = (props: EntityNamespacePickerProps) => {\n const { initiallySelectedNamespaces } = props;\n const classes = useStyles();\n const { t } = useTranslationRef(catalogReactTranslationRef);\n\n return (\n <EntityAutocompletePicker\n label={t('entityNamespacePicker.title')}\n name=\"namespace\"\n path=\"metadata.namespace\"\n Filter={EntityNamespaceFilter}\n InputProps={{ className: classes.input }}\n initialSelectedOptions={initiallySelectedNamespaces}\n />\n );\n};\n","/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { EntityErrorFilter, EntityOrphanFilter } from '../../filters';\nimport Box from '@material-ui/core/Box';\nimport Checkbox from '@material-ui/core/Checkbox';\nimport FormControlLabel from '@material-ui/core/FormControlLabel';\nimport { makeStyles } from '@material-ui/core/styles';\nimport CheckBoxIcon from '@material-ui/icons/CheckBox';\nimport CheckBoxOutlineBlankIcon from '@material-ui/icons/CheckBoxOutlineBlank';\nimport { useState } from 'react';\nimport { useEntityList } from '../../hooks';\nimport { catalogReactTranslationRef } from '../../translation';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\nimport { CatalogAutocomplete } from '../CatalogAutocomplete';\n\n/** @public */\nexport type CatalogReactEntityProcessingStatusPickerClassKey = 'input';\n\nconst useStyles = makeStyles(\n {\n root: {},\n input: {},\n label: {},\n },\n { name: 'CatalogReactEntityProcessingStatusPickerPicker' },\n);\n\nconst icon = <CheckBoxOutlineBlankIcon fontSize=\"small\" />;\nconst checkedIcon = <CheckBoxIcon fontSize=\"small\" />;\n\n/** @public */\nexport const EntityProcessingStatusPicker = () => {\n const classes = useStyles();\n const { updateFilters } = useEntityList();\n const { t } = useTranslationRef(catalogReactTranslationRef);\n\n const [selectedAdvancedItems, setSelectedAdvancedItems] = useState<string[]>(\n [],\n );\n\n function orphanChange(value: boolean) {\n updateFilters({\n orphan: value ? new EntityOrphanFilter(value) : undefined,\n });\n }\n\n function errorChange(value: boolean) {\n updateFilters({\n error: value ? new EntityErrorFilter(value) : undefined,\n });\n }\n\n const availableAdvancedItems = ['Is Orphan', 'Has Error'];\n\n return (\n <Box className={classes.root} pb={1} pt={1}>\n <CatalogAutocomplete<string, true>\n label={t('entityProcessingStatusPicker.title')}\n multiple\n disableCloseOnSelect\n options={availableAdvancedItems}\n value={selectedAdvancedItems}\n onChange={(_: object, value: string[]) => {\n setSelectedAdvancedItems(value);\n orphanChange(value.includes('Is Orphan'));\n errorChange(value.includes('Has Error'));\n }}\n renderOption={(option, { selected }) => (\n <FormControlLabel\n control={\n <Checkbox\n icon={icon}\n checkedIcon={checkedIcon}\n checked={selected}\n />\n }\n onClick={event => event.preventDefault()}\n label={option}\n />\n )}\n name=\"processing-status-picker\"\n LabelProps={{ className: classes.label }}\n TextFieldProps={{ className: classes.input }}\n />\n </Box>\n );\n};\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { useEffect, useMemo, useRef, useState } from 'react';\nimport useAsync from 'react-use/esm/useAsync';\nimport isEqual from 'lodash/isEqual';\nimport sortBy from 'lodash/sortBy';\nimport { useApi } from '@backstage/core-plugin-api';\nimport { catalogApiRef } from '../api';\nimport { useEntityList } from './useEntityListProvider';\nimport { EntityTypeFilter } from '../filters';\n\n/**\n * A hook built on top of `useEntityList` for enabling selection of valid `spec.type` values\n * based on the selected EntityKindFilter.\n * @public\n */\nexport function useEntityTypeFilter(): {\n loading: boolean;\n error?: Error;\n availableTypes: string[];\n selectedTypes: string[];\n setSelectedTypes: (types: string[]) => void;\n} {\n const catalogApi = useApi(catalogApiRef);\n const {\n filters: { kind: kindFilter, type: typeFilter },\n queryParameters: { type: typeParameter },\n updateFilters,\n } = useEntityList();\n\n const flattenedQueryTypes = useMemo(\n () => [typeParameter].flat().filter(Boolean) as string[],\n [typeParameter],\n );\n\n const [selectedTypes, setSelectedTypes] = useState(\n flattenedQueryTypes.length\n ? flattenedQueryTypes\n : typeFilter?.getTypes() ?? [],\n );\n\n // Set selected types on query parameter updates; this happens at initial page load and from\n // external updates to the page location.\n useEffect(() => {\n if (flattenedQueryTypes.length) {\n setSelectedTypes(flattenedQueryTypes);\n }\n }, [flattenedQueryTypes]);\n\n const [availableTypes, setAvailableTypes] = useState<string[]>([]);\n const kind = useMemo(() => kindFilter?.value, [kindFilter]);\n\n // Load all valid spec.type values straight from the catalogApi, paying attention to only the\n // kind filter for a complete list.\n const {\n error,\n loading,\n value: facets,\n } = useAsync(async () => {\n if (kind) {\n const items = await catalogApi\n .getEntityFacets({\n filter: { kind },\n facets: ['spec.type'],\n })\n .then(response => response.facets['spec.type'] || []);\n return items;\n }\n return [];\n }, [kind, catalogApi]);\n\n const facetsRef = useRef(facets);\n useEffect(() => {\n const oldFacets = facetsRef.current;\n facetsRef.current = facets;\n // Delay processing hook until kind and facets load updates have settled to generate list of types;\n // This prevents resetting the type filter due to saved type value from query params not matching the\n // empty set of type values while values are still being loaded; also only run this hook on changes\n // to facets\n if (loading || !kind || oldFacets === facets || !facets) {\n return;\n }\n\n // Sort by facet count descending, so the most common types appear on top\n const newTypes = [\n ...new Set(\n sortBy(facets, f => -f.count).map(f =>\n f.value.toLocaleLowerCase('en-US'),\n ),\n ),\n ];\n setAvailableTypes(newTypes);\n\n // Update type filter to only valid values when the list of available types has changed\n const stillValidTypes = selectedTypes.filter(value =>\n newTypes.includes(value),\n );\n if (!isEqual(selectedTypes, stillValidTypes)) {\n setSelectedTypes(stillValidTypes);\n }\n }, [loading, kind, selectedTypes, setSelectedTypes, facets]);\n\n useEffect(() => {\n updateFilters({\n type: selectedTypes.length\n ? new EntityTypeFilter(selectedTypes)\n : undefined,\n });\n }, [selectedTypes, updateFilters]);\n\n return {\n loading,\n error,\n availableTypes,\n selectedTypes,\n setSelectedTypes,\n };\n}\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { useEffect } from 'react';\nimport Box from '@material-ui/core/Box';\nimport { useEntityTypeFilter } from '../../hooks/useEntityTypeFilter';\n\nimport { alertApiRef, useApi } from '@backstage/core-plugin-api';\nimport { Select } from '@backstage/core-components';\nimport { catalogReactTranslationRef } from '../../translation';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\n\n/**\n * Props for {@link EntityTypePicker}.\n *\n * @public\n */\nexport interface EntityTypePickerProps {\n initialFilter?: string;\n hidden?: boolean;\n}\n\n/** @public */\nexport const EntityTypePicker = (props: EntityTypePickerProps) => {\n const { hidden, initialFilter } = props;\n const alertApi = useApi(alertApiRef);\n const { error, availableTypes, selectedTypes, setSelectedTypes } =\n useEntityTypeFilter();\n const { t } = useTranslationRef(catalogReactTranslationRef);\n\n useEffect(() => {\n if (error) {\n alertApi.post({\n message: t('entityTypePicker.errorMessage'),\n severity: 'error',\n });\n }\n if (initialFilter) {\n setSelectedTypes([initialFilter]);\n }\n }, [error, alertApi, initialFilter, setSelectedTypes, t]);\n\n if (availableTypes.length === 0 || error) return null;\n\n availableTypes.sort((a, b) =>\n a.toLocaleLowerCase('en-US').localeCompare(b.toLocaleLowerCase('en-US')),\n );\n\n const items = [\n { value: 'all', label: t('entityTypePicker.optionAllTitle') },\n ...availableTypes.map((type: string) => ({\n value: type,\n label: type,\n })),\n ];\n\n return hidden ? null : (\n <Box pb={1} pt={1}>\n <Select\n label={t('entityTypePicker.title')}\n items={items}\n selected={(items.length > 1 ? selectedTypes[0] : undefined) ?? 'all'}\n onChange={value =>\n setSelectedTypes(value === 'all' ? [] : [String(value)])\n }\n />\n </Box>\n );\n};\n","/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { UserListFilterKind } from '../../types';\nimport { EntityKindPicker } from '../EntityKindPicker';\nimport { EntityLifecyclePicker } from '../EntityLifecyclePicker';\nimport { EntityNamespacePicker } from '../EntityNamespacePicker';\nimport {\n EntityOwnerPickerProps,\n EntityOwnerPicker,\n} from '../EntityOwnerPicker';\nimport { EntityProcessingStatusPicker } from '../EntityProcessingStatusPicker';\nimport { EntityTagPicker } from '../EntityTagPicker';\nimport { EntityTypePicker } from '../EntityTypePicker';\nimport { UserListPicker } from '../UserListPicker';\n\n/**\n * Props for default filters.\n *\n * @public\n */\nexport type DefaultFiltersProps = {\n initialKind?: string;\n initiallySelectedFilter?: UserListFilterKind;\n ownerPickerMode?: EntityOwnerPickerProps['mode'];\n initiallySelectedNamespaces?: string[];\n};\n\n/** @public */\nexport const DefaultFilters = (props: DefaultFiltersProps) => {\n const {\n initialKind,\n initiallySelectedFilter,\n ownerPickerMode,\n initiallySelectedNamespaces,\n } = props;\n return (\n <>\n <EntityKindPicker initialFilter={initialKind} />\n <EntityTypePicker />\n <UserListPicker initialFilter={initiallySelectedFilter} />\n <EntityOwnerPicker mode={ownerPickerMode} />\n <EntityLifecyclePicker />\n <EntityTagPicker />\n <EntityProcessingStatusPicker />\n <EntityNamespacePicker\n initiallySelectedNamespaces={initiallySelectedNamespaces}\n />\n </>\n );\n};\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport {\n humanizeEntityRef,\n EntityRefLink,\n EntityRefLinks,\n} from '@backstage/plugin-catalog-react';\nimport Chip from '@material-ui/core/Chip';\nimport { CatalogTableRow } from './types';\nimport { OverflowTooltip, TableColumn } from '@backstage/core-components';\nimport { Entity } from '@backstage/catalog-model';\nimport { JsonArray } from '@backstage/types';\n\n// The columnFactories symbol is not directly exported, but through the\n// CatalogTable.columns field.\n/** @public */\nexport const columnFactories = Object.freeze({\n createNameColumn(options?: {\n defaultKind?: string;\n }): TableColumn<CatalogTableRow> {\n function formatContent(entity: Entity): string {\n return (\n entity.metadata?.title ||\n humanizeEntityRef(entity, {\n defaultKind: options?.defaultKind,\n })\n );\n }\n\n return {\n title: 'Name',\n field: 'resolved.entityRef',\n highlight: true,\n customSort({ entity: entity1 }, { entity: entity2 }) {\n // TODO: We could implement this more efficiently by comparing field by field.\n // This has similar issues as above.\n return formatContent(entity1).localeCompare(formatContent(entity2));\n },\n render: ({ entity }) => (\n <EntityRefLink\n entityRef={entity}\n defaultKind={options?.defaultKind || 'Component'}\n />\n ),\n };\n },\n createSystemColumn(): TableColumn<CatalogTableRow> {\n return {\n title: 'System',\n field: 'resolved.partOfSystemRelationTitle',\n customFilterAndSearch: (query, row) => {\n if (!row.resolved.partOfSystemRelations) {\n return false;\n }\n\n const systemNames = row.resolved.partOfSystemRelations.map(\n ref => ref.name,\n ); // Extract system names from entityRefs\n\n const searchText = systemNames.join(', ').toLocaleUpperCase('en-US');\n return searchText.includes(query.toLocaleUpperCase('en-US'));\n },\n render: ({ resolved }) => (\n <EntityRefLinks\n entityRefs={resolved.partOfSystemRelations}\n defaultKind=\"system\"\n />\n ),\n };\n },\n createOwnerColumn(): TableColumn<CatalogTableRow> {\n return {\n title: 'Owner',\n field: 'resolved.ownedByRelationsTitle',\n render: ({ resolved }) => (\n <EntityRefLinks\n entityRefs={resolved.ownedByRelations}\n defaultKind=\"group\"\n />\n ),\n };\n },\n createSpecTargetsColumn(): TableColumn<CatalogTableRow> {\n return {\n title: 'Targets',\n field: 'entity.spec.targets',\n customFilterAndSearch: (query, row) => {\n let targets: JsonArray = [];\n if (\n row.entity?.spec?.targets &&\n Array.isArray(row.entity?.spec?.targets)\n ) {\n targets = row.entity?.spec?.targets;\n } else if (row.entity?.spec?.target) {\n targets = [row.entity?.spec?.target];\n }\n return targets\n .join(', ')\n .toLocaleUpperCase('en-US')\n .includes(query.toLocaleUpperCase('en-US'));\n },\n render: ({ entity }) => (\n <>\n {(entity?.spec?.targets || entity?.spec?.target) && (\n <OverflowTooltip\n text={(\n (entity!.spec!.targets as JsonArray) || [entity.spec.target]\n ).join(', ')}\n placement=\"bottom-start\"\n />\n )}\n </>\n ),\n };\n },\n createSpecTypeColumn(\n options: {\n hidden: boolean;\n } = { hidden: false },\n ): TableColumn<CatalogTableRow> {\n return {\n title: 'Type',\n field: 'entity.spec.type',\n hidden: options.hidden,\n width: 'auto',\n };\n },\n createSpecLifecycleColumn(): TableColumn<CatalogTableRow> {\n return {\n title: 'Lifecycle',\n field: 'entity.spec.lifecycle',\n };\n },\n createMetadataDescriptionColumn(): TableColumn<CatalogTableRow> {\n return {\n title: 'Description',\n field: 'entity.metadata.description',\n render: ({ entity }) => (\n <OverflowTooltip\n text={entity.metadata.description}\n placement=\"bottom-start\"\n />\n ),\n width: 'auto',\n };\n },\n createTagsColumn(): TableColumn<CatalogTableRow> {\n return {\n title: 'Tags',\n field: 'entity.metadata.tags',\n cellStyle: {\n padding: '0px 16px 0px 20px',\n },\n render: ({ entity }) => (\n <>\n {entity.metadata.tags &&\n entity.metadata.tags.map(t => (\n <Chip\n key={t}\n label={t}\n size=\"small\"\n variant=\"outlined\"\n style={{ marginBottom: '0px' }}\n />\n ))}\n </>\n ),\n width: 'auto',\n };\n },\n createTitleColumn(options?: {\n hidden?: boolean;\n }): TableColumn<CatalogTableRow> {\n return {\n title: 'Title',\n field: 'entity.metadata.title',\n hidden: options?.hidden,\n searchable: true,\n };\n },\n createLabelColumn(\n key: string,\n options?: { title?: string; defaultValue?: string },\n ): TableColumn<CatalogTableRow> {\n function formatContent(keyLabel: string, entity: Entity): string {\n const labels: Record<string, string> | undefined =\n entity.metadata?.labels;\n return (labels && labels[keyLabel]) || '';\n }\n\n return {\n title: options?.title || 'Label',\n field: 'entity.metadata.labels',\n cellStyle: {\n padding: '0px 16px 0px 20px',\n },\n customSort({ entity: entity1 }, { entity: entity2 }) {\n return formatContent(key, entity1).localeCompare(\n formatContent(key, entity2),\n );\n },\n render: ({ entity }: { entity: Entity }) => {\n const labels: Record<string, string> | undefined =\n entity.metadata?.labels;\n const specifiedLabelValue =\n (labels && labels[key]) || options?.defaultValue;\n return (\n <>\n {specifiedLabelValue && (\n <Chip\n key={specifiedLabelValue}\n label={specifiedLabelValue}\n size=\"small\"\n variant=\"outlined\"\n />\n )}\n </>\n );\n },\n width: 'auto',\n };\n },\n createNamespaceColumn(): TableColumn<CatalogTableRow> {\n return {\n title: 'Namespace',\n field: 'entity.metadata.namespace',\n width: 'auto',\n };\n },\n});\n","/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport FormControl from '@material-ui/core/FormControl';\nimport IconButton from '@material-ui/core/IconButton';\nimport Input from '@material-ui/core/Input';\nimport InputAdornment from '@material-ui/core/InputAdornment';\nimport Toolbar from '@material-ui/core/Toolbar';\nimport { makeStyles } from '@material-ui/core/styles';\nimport Clear from '@material-ui/icons/Clear';\nimport Search from '@material-ui/icons/Search';\nimport { useEffect, useMemo, useState } from 'react';\nimport useDebounce from 'react-use/lib/useDebounce';\nimport { useEntityList } from '../../hooks/useEntityListProvider';\nimport { EntityTextFilter } from '../../filters';\nimport { catalogReactTranslationRef } from '../../translation';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\n\n/** @public */\nexport type CatalogReactEntitySearchBarClassKey = 'searchToolbar' | 'input';\n\nconst useStyles = makeStyles(\n _theme => ({\n searchToolbar: {\n paddingLeft: 0,\n paddingRight: 0,\n },\n input: {},\n }),\n { name: 'CatalogReactEntitySearchBar' },\n);\n\n/**\n * Renders search bar for filtering the entity list.\n * @public\n */\nexport const EntitySearchBar = () => {\n const classes = useStyles();\n const { t } = useTranslationRef(catalogReactTranslationRef);\n\n const {\n updateFilters,\n queryParameters: { text: textParameter },\n } = useEntityList();\n\n const queryParamTextFilter = useMemo(\n () => [textParameter].flat()[0],\n [textParameter],\n );\n\n const [search, setSearch] = useState(queryParamTextFilter ?? '');\n\n useDebounce(\n () => {\n updateFilters({\n text: search.length ? new EntityTextFilter(search) : undefined,\n });\n },\n 250,\n [search, updateFilters],\n );\n\n useEffect(() => {\n if (queryParamTextFilter) {\n setSearch(queryParamTextFilter);\n }\n }, [queryParamTextFilter]);\n\n return (\n <Toolbar className={classes.searchToolbar}>\n <FormControl>\n <Input\n aria-label=\"search\"\n id=\"input-with-icon-adornment\"\n className={classes.input}\n placeholder={t('entitySearchBar.placeholder')}\n autoComplete=\"off\"\n onChange={event => setSearch(event.target.value)}\n value={search}\n startAdornment={\n <InputAdornment position=\"start\">\n <Search />\n </InputAdornment>\n }\n endAdornment={\n <InputAdornment position=\"end\">\n <IconButton\n aria-label=\"clear search\"\n onClick={() => setSearch('')}\n edge=\"end\"\n disabled={search.length === 0}\n >\n <Clear />\n </IconButton>\n </InputAdornment>\n }\n />\n </FormControl>\n </Toolbar>\n );\n};\n","/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { ReactElement } from 'react';\nimport { EntitySearchBar } from '@backstage/plugin-catalog-react';\nimport Toolbar from '@material-ui/core/Toolbar';\nimport Typography from '@material-ui/core/Typography';\nimport { makeStyles } from '@material-ui/core/styles';\n\n/** @public */\nexport type CatalogTableToolbarClassKey = 'root' | 'text';\n\nconst useToolbarStyles = makeStyles(\n theme => ({\n root: {\n paddingTop: theme.spacing(1.25),\n paddingLeft: theme.spacing(2.5),\n paddingBottom: theme.spacing(0.75),\n display: 'flex',\n justifyContent: 'space-between',\n },\n text: {\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n },\n }),\n { name: 'PluginCatalogTableToolbar' },\n);\n\nexport function CatalogTableToolbar(props: {\n title?: string | ReactElement<any>;\n}) {\n const styles = useToolbarStyles();\n return (\n <Toolbar className={styles.root}>\n <Typography variant=\"h5\" className={styles.text}>\n {props.title}\n </Typography>\n <EntitySearchBar />\n </Toolbar>\n );\n}\n","/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { useState, useEffect } from 'react';\n\nimport { Table, TableProps } from '@backstage/core-components';\nimport { CatalogTableRow } from './types';\nimport { useEntityList } from '@backstage/plugin-catalog-react';\nimport { CatalogTableToolbar } from './CatalogTableToolbar';\n\n/**\n * @internal\n */\nexport function OffsetPaginatedCatalogTable(\n props: TableProps<CatalogTableRow>,\n) {\n const { columns, data, options, ...restProps } = props;\n const { setLimit, setOffset, limit, totalItems, offset } = useEntityList();\n\n const [page, setPage] = useState(\n offset && limit ? Math.floor(offset / limit) : 0,\n );\n\n useEffect(() => {\n if (totalItems && page * limit >= totalItems) {\n setOffset!(Math.max(0, totalItems - limit));\n } else {\n setOffset!(Math.max(0, page * limit));\n }\n }, [setOffset, page, limit, totalItems]);\n\n return (\n <Table\n columns={columns}\n data={data}\n options={{\n paginationPosition: 'both',\n pageSizeOptions: [5, 10, 20, 50, 100],\n pageSize: limit,\n emptyRowsWhenPaging: false,\n ...options,\n }}\n components={{\n Toolbar: CatalogTableToolbar,\n }}\n page={page}\n onPageChange={newPage => {\n setPage(newPage);\n }}\n onRowsPerPageChange={pageSize => {\n setLimit(pageSize);\n }}\n totalCount={totalItems}\n localization={{ pagination: { labelDisplayedRows: '' } }}\n {...restProps}\n />\n );\n}\n","/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Table, TableProps } from '@backstage/core-components';\nimport { CatalogTableRow } from './types';\nimport { CatalogTableToolbar } from './CatalogTableToolbar';\n\ntype PaginatedCatalogTableProps = {\n prev?(): void;\n next?(): void;\n} & TableProps<CatalogTableRow>;\n\n/**\n * @internal\n */\n\nexport function CursorPaginatedCatalogTable(props: PaginatedCatalogTableProps) {\n const { columns, data, next, prev, options, ...restProps } = props;\n\n return (\n <Table\n columns={columns}\n data={data}\n options={{\n paginationPosition: 'both',\n ...options,\n // These settings are configured to force server side pagination\n pageSizeOptions: [],\n showFirstLastPageButtons: false,\n pageSize: Number.MAX_SAFE_INTEGER,\n emptyRowsWhenPaging: false,\n }}\n onPageChange={page => {\n if (page > 0) {\n next?.();\n } else {\n prev?.();\n }\n }}\n components={{\n Toolbar: CatalogTableToolbar,\n }}\n /* this will enable the prev button accordingly */\n page={prev ? 1 : 0}\n /* this will enable the next button accordingly */\n totalCount={next ? Number.MAX_VALUE : Number.MAX_SAFE_INTEGER}\n localization={{ pagination: { labelDisplayedRows: '' } }}\n {...restProps}\n />\n );\n}\n","/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { TableColumn } from '@backstage/core-components';\nimport { columnFactories } from './columns';\nimport { CatalogTableColumnsFunc, CatalogTableRow } from './types';\n\n// The defaultCatalogTableColumnsFunc symbol is not directly exported, but through the\n// CatalogTable.defaultColumnsFunc field.\n/** @public */\nexport const defaultCatalogTableColumnsFunc: CatalogTableColumnsFunc = ({\n filters,\n entities,\n}) => {\n const showTypeColumn = filters.type === undefined;\n\n return [\n columnFactories.createTitleColumn({ hidden: true }),\n columnFactories.createNameColumn({ defaultKind: filters.kind?.value }),\n ...createEntitySpecificColumns(),\n ];\n\n function createEntitySpecificColumns(): TableColumn<CatalogTableRow>[] {\n const descriptionTagColumns = [\n columnFactories.createMetadataDescriptionColumn(),\n columnFactories.createTagsColumn(),\n ];\n const baseColumns = [\n columnFactories.createSystemColumn(),\n columnFactories.createOwnerColumn(),\n columnFactories.createSpecTypeColumn({ hidden: !showTypeColumn }),\n columnFactories.createSpecLifecycleColumn(),\n ];\n switch (filters.kind?.value) {\n case 'user':\n return [...descriptionTagColumns];\n case 'domain':\n case 'system':\n return [columnFactories.createOwnerColumn(), ...descriptionTagColumns];\n case 'group':\n case 'template':\n return [\n columnFactories.createSpecTypeColumn({ hidden: !showTypeColumn }),\n ...descriptionTagColumns,\n ];\n case 'location':\n return [\n columnFactories.createSpecTypeColumn({ hidden: !showTypeColumn }),\n columnFactories.createSpecTargetsColumn(),\n ];\n default:\n return entities.every(entity => entity.metadata.namespace === 'default')\n ? [...baseColumns, ...descriptionTagColumns]\n : [\n ...baseColumns,\n columnFactories.createNamespaceColumn(),\n ...descriptionTagColumns,\n ];\n }\n }\n};\n","/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport {\n ANNOTATION_EDIT_URL,\n ANNOTATION_VIEW_URL,\n Entity,\n RELATION_OWNED_BY,\n RELATION_PART_OF,\n stringifyEntityRef,\n} from '@backstage/catalog-model';\nimport {\n CodeSnippet,\n Table,\n TableColumn,\n TableProps,\n WarningPanel,\n} from '@backstage/core-components';\nimport {\n getEntityRelations,\n humanizeEntityRef,\n useEntityList,\n useStarredEntities,\n} from '@backstage/plugin-catalog-react';\nimport Typography from '@material-ui/core/Typography';\nimport { visuallyHidden } from '@mui/utils';\nimport Edit from '@material-ui/icons/Edit';\nimport OpenInNew from '@material-ui/icons/OpenInNew';\nimport { capitalize } from 'lodash';\nimport pluralize from 'pluralize';\nimport { ReactNode, useMemo } from 'react';\nimport { columnFactories } from './columns';\nimport { CatalogTableColumnsFunc, CatalogTableRow } from './types';\nimport { OffsetPaginatedCatalogTable } from './OffsetPaginatedCatalogTable';\nimport { CursorPaginatedCatalogTable } from './CursorPaginatedCatalogTable';\nimport { defaultCatalogTableColumnsFunc } from './defaultCatalogTableColumnsFunc';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\nimport { catalogTranslationRef } from '../../alpha/translation';\nimport { FavoriteToggleIcon } from '@backstage/core-components';\n\n/**\n * Props for {@link CatalogTable}.\n *\n * @public\n */\nexport interface CatalogTableProps {\n columns?: TableColumn<CatalogTableRow>[] | CatalogTableColumnsFunc;\n actions?: TableProps<CatalogTableRow>['actions'];\n tableOptions?: TableProps<CatalogTableRow>['options'];\n emptyContent?: ReactNode;\n /**\n * A static title to use for the table. If not provided, a title will be\n * generated based on the current Kind and Type filters and total number of items.\n */\n title?: string;\n subtitle?: string;\n}\n\nconst refCompare = (a: Entity, b: Entity) => {\n const toRef = (entity: Entity) =>\n entity.metadata.title ||\n humanizeEntityRef(entity, {\n defaultKind: 'Component',\n });\n\n return toRef(a).localeCompare(toRef(b));\n};\n\n/**\n * CatalogTable is a wrapper around the Table component that is pre-configured\n * to display catalog entities.\n *\n * @remarks\n *\n * See {@link https://backstage.io/docs/features/software-catalog/catalog-customization}\n *\n * @public\n */\nexport const CatalogTable = (props: CatalogTableProps) => {\n const {\n columns = defaultCatalogTableColumnsFunc,\n tableOptions,\n subtitle,\n emptyContent,\n } = props;\n const { isStarredEntity, toggleStarredEntity } = useStarredEntities();\n const entityListContext = useEntityList();\n\n const {\n loading,\n error,\n entities,\n filters,\n pageInfo,\n totalItems,\n paginationMode,\n } = entityListContext;\n\n const tableColumns = useMemo(\n () =>\n typeof columns === 'function' ? columns(entityListContext) : columns,\n [columns, entityListContext],\n );\n const { t } = useTranslationRef(catalogTranslationRef);\n\n if (error) {\n return (\n <div>\n <WarningPanel\n severity=\"error\"\n title={t('catalogTable.warningPanelTitle')}\n >\n <CodeSnippet language=\"text\" text={error.toString()} />\n </WarningPanel>\n </div>\n );\n }\n\n const defaultActions: TableProps<CatalogTableRow>['actions'] = [\n ({ entity }) => {\n const url = entity.metadata.annotations?.[ANNOTATION_VIEW_URL];\n const title = t('catalogTable.viewActionTitle');\n\n return {\n icon: () => (\n <>\n <Typography style={visuallyHidden}>{title}</Typography>\n <OpenInNew fontSize=\"small\" />\n </>\n ),\n tooltip: title,\n disabled: !url,\n onClick: () => {\n if (!url) return;\n window.open(url, '_blank');\n },\n };\n },\n ({ entity }) => {\n const url = entity.metadata.annotations?.[ANNOTATION_EDIT_URL];\n const title = t('catalogTable.editActionTitle');\n\n return {\n icon: () => (\n <>\n <Typography style={visuallyHidden}>{title}</Typography>\n <Edit fontSize=\"small\" />\n </>\n ),\n tooltip: title,\n disabled: !url,\n onClick: () => {\n if (!url) return;\n window.open(url, '_blank');\n },\n };\n },\n ({ entity }) => {\n const isStarred = isStarredEntity(entity);\n const title = isStarred\n ? t('catalogTable.unStarActionTitle')\n : t('catalogTable.starActionTitle');\n\n return {\n cellStyle: { paddingLeft: '1em' },\n icon: () => <FavoriteToggleIcon isFavorite={isStarred} />,\n tooltip: title,\n onClick: () => toggleStarredEntity(entity),\n };\n },\n ];\n\n const currentKind = filters.kind?.label || '';\n const currentType = filters.type?.value || '';\n const currentCount = typeof totalItems === 'number' ? `(${totalItems})` : '';\n // TODO(timbonicus): remove the title from the CatalogTable once using EntitySearchBar\n const titlePreamble = capitalize(filters.user?.value ?? 'all');\n const title =\n props.title ||\n [titlePreamble, currentType, pluralize(currentKind), currentCount]\n .filter(s => s)\n .join(' ');\n\n const actions = props.actions || defaultActions;\n const options = {\n actionsColumnIndex: -1,\n loadingType: 'linear' as const,\n showEmptyDataSourceMessage: !loading,\n padding: 'dense' as const,\n ...tableOptions,\n };\n\n if (paginationMode === 'cursor') {\n return (\n <CursorPaginatedCatalogTable\n columns={tableColumns}\n emptyContent={emptyContent}\n isLoading={loading}\n title={title}\n actions={actions}\n subtitle={subtitle}\n options={options}\n data={entities.map(toEntityRow)}\n next={pageInfo?.next}\n prev={pageInfo?.prev}\n />\n );\n } else if (paginationMode === 'offset') {\n return (\n <OffsetPaginatedCatalogTable\n columns={tableColumns}\n emptyContent={emptyContent}\n isLoading={loading}\n title={title}\n actions={actions}\n subtitle={subtitle}\n options={options}\n data={entities.map(toEntityRow)}\n />\n );\n }\n\n const rows = entities.sort(refCompare).map(toEntityRow);\n const pageSize = 20;\n const showPagination = rows.length > pageSize;\n\n return (\n <Table<CatalogTableRow>\n isLoading={loading}\n columns={tableColumns}\n options={{\n paging: showPagination,\n pageSize: pageSize,\n pageSizeOptions: [20, 50, 100],\n ...options,\n }}\n title={title}\n data={rows}\n actions={actions}\n subtitle={subtitle}\n emptyContent={emptyContent}\n />\n );\n};\n\nCatalogTable.columns = columnFactories;\nCatalogTable.defaultColumnsFunc = defaultCatalogTableColumnsFunc;\n\nfunction toEntityRow(entity: Entity) {\n const partOfSystemRelations = getEntityRelations(entity, RELATION_PART_OF, {\n kind: 'system',\n });\n const ownedByRelations = getEntityRelations(entity, RELATION_OWNED_BY);\n\n return {\n entity,\n resolved: {\n // This name is here for backwards compatibility mostly; the\n // presentation of refs in the table should in general be handled with\n // EntityRefLink / EntityName components\n name: humanizeEntityRef(entity, {\n defaultKind: 'Component',\n }),\n entityRef: stringifyEntityRef(entity),\n ownedByRelationsTitle: ownedByRelations\n .map(r => humanizeEntityRef(r, { defaultKind: 'group' }))\n .join(', '),\n ownedByRelations,\n partOfSystemRelationTitle: partOfSystemRelations\n .map(r =>\n humanizeEntityRef(r, {\n defaultKind: 'system',\n }),\n )\n .join(', '),\n partOfSystemRelations,\n },\n };\n}\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n Content,\n ContentHeader,\n CreateButton,\n PageWithHeader,\n SupportButton,\n TableColumn,\n TableProps,\n} from '@backstage/core-components';\nimport { configApiRef, useApi, useRouteRef } from '@backstage/core-plugin-api';\nimport {\n CatalogFilterLayout,\n DefaultFilters,\n EntityListPagination,\n EntityListProvider,\n EntityOwnerPickerProps,\n UserListFilterKind,\n} from '@backstage/plugin-catalog-react';\nimport { ReactNode } from 'react';\nimport { createComponentRouteRef } from '../../routes';\nimport { CatalogTable, CatalogTableRow } from '../CatalogTable';\nimport { catalogTranslationRef } from '../../alpha/translation';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\nimport { CatalogTableColumnsFunc } from '../CatalogTable/types';\nimport { catalogEntityCreatePermission } from '@backstage/plugin-catalog-common/alpha';\nimport { usePermission } from '@backstage/plugin-permission-react';\n\n/** @internal */\nexport type BaseCatalogPageProps = {\n filters: ReactNode;\n content?: ReactNode;\n pagination?: EntityListPagination;\n};\n\n/** @internal */\nexport function BaseCatalogPage(props: BaseCatalogPageProps) {\n const { filters, content = <CatalogTable />, pagination } = props;\n const orgName =\n useApi(configApiRef).getOptionalString('organization.name') ?? 'Backstage';\n const createComponentLink = useRouteRef(createComponentRouteRef);\n const { t } = useTranslationRef(catalogTranslationRef);\n const { allowed } = usePermission({\n permission: catalogEntityCreatePermission,\n });\n\n return (\n <PageWithHeader title={t('indexPage.title', { orgName })} themeId=\"home\">\n <Content>\n <ContentHeader title=\"\">\n {allowed && (\n <CreateButton\n title={t('indexPage.createButtonTitle')}\n to={createComponentLink && createComponentLink()}\n />\n )}\n <SupportButton>{t('indexPage.supportButtonContent')}</SupportButton>\n </ContentHeader>\n <EntityListProvider pagination={pagination}>\n <CatalogFilterLayout>\n <CatalogFilterLayout.Filters>{filters}</CatalogFilterLayout.Filters>\n <CatalogFilterLayout.Content>{content}</CatalogFilterLayout.Content>\n </CatalogFilterLayout>\n </EntityListProvider>\n </Content>\n </PageWithHeader>\n );\n}\n\n/**\n * Props for root catalog pages.\n *\n * @public\n */\nexport interface DefaultCatalogPageProps {\n initiallySelectedFilter?: UserListFilterKind;\n columns?: TableColumn<CatalogTableRow>[] | CatalogTableColumnsFunc;\n actions?: TableProps<CatalogTableRow>['actions'];\n initialKind?: string;\n tableOptions?: TableProps<CatalogTableRow>['options'];\n emptyContent?: ReactNode;\n ownerPickerMode?: EntityOwnerPickerProps['mode'];\n filters?: ReactNode;\n initiallySelectedNamespaces?: string[];\n pagination?: EntityListPagination;\n}\n\nexport function DefaultCatalogPage(props: DefaultCatalogPageProps) {\n const {\n columns,\n actions,\n initiallySelectedFilter = 'owned',\n initialKind = 'component',\n tableOptions = {},\n emptyContent,\n pagination,\n ownerPickerMode,\n filters,\n initiallySelectedNamespaces,\n } = props;\n\n return (\n <BaseCatalogPage\n filters={\n filters ?? (\n <DefaultFilters\n initialKind={initialKind}\n initiallySelectedFilter={initiallySelectedFilter}\n ownerPickerMode={ownerPickerMode}\n initiallySelectedNamespaces={initiallySelectedNamespaces}\n />\n )\n }\n content={\n <CatalogTable\n columns={columns}\n actions={actions}\n tableOptions={tableOptions}\n emptyContent={emptyContent}\n />\n }\n pagination={pagination}\n />\n );\n}\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { useOutlet } from 'react-router-dom';\nimport {\n DefaultCatalogPage,\n DefaultCatalogPageProps,\n} from './DefaultCatalogPage';\n\nexport function CatalogPage(props: DefaultCatalogPageProps) {\n const outlet = useOutlet();\n\n return outlet || <DefaultCatalogPage {...props} />;\n}\n","/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n BasicPermission,\n Permission,\n PermissionAttributes,\n ResourcePermission,\n} from '../types';\n\n/**\n * Utility function for creating a valid {@link ResourcePermission}, inferring\n * the appropriate type and resource type parameter.\n *\n * @public\n */\nexport function createPermission<TResourceType extends string>(input: {\n name: string;\n attributes: PermissionAttributes;\n resourceType: TResourceType;\n}): ResourcePermission<TResourceType>;\n/**\n * Utility function for creating a valid {@link BasicPermission}.\n *\n * @public\n */\nexport function createPermission(input: {\n name: string;\n attributes: PermissionAttributes;\n}): BasicPermission;\nexport function createPermission({\n name,\n attributes,\n resourceType,\n}: {\n name: string;\n attributes: PermissionAttributes;\n resourceType?: string;\n}): Permission {\n if (resourceType) {\n return {\n type: 'resource',\n name,\n attributes,\n resourceType,\n };\n }\n\n return {\n type: 'basic',\n name,\n attributes,\n };\n}\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n AuthorizePermissionRequest,\n AuthorizePermissionResponse,\n DefinitivePolicyDecision,\n EvaluatorRequestOptions,\n Permission,\n PermissionAuthorizer,\n PermissionEvaluator,\n QueryPermissionRequest,\n QueryPermissionResponse,\n ResourcePermission,\n} from '../types';\n\n/**\n * Check if the two parameters are equivalent permissions.\n * @public\n */\nexport function isPermission<T extends Permission>(\n permission: Permission,\n comparedPermission: T,\n): permission is T {\n return permission.name === comparedPermission.name;\n}\n\n/**\n * Check if a given permission is a {@link ResourcePermission}. When\n * `resourceType` is supplied as the second parameter, also checks if\n * the permission has the specified resource type.\n * @public\n */\nexport function isResourcePermission<T extends string = string>(\n permission: Permission,\n resourceType?: T,\n): permission is ResourcePermission<T> {\n if (!('resourceType' in permission)) {\n return false;\n }\n\n return !resourceType || permission.resourceType === resourceType;\n}\n\n/**\n * Check if a given permission is related to a create action.\n * @public\n */\nexport function isCreatePermission(permission: Permission) {\n return permission.attributes.action === 'create';\n}\n\n/**\n * Check if a given permission is related to a read action.\n * @public\n */\nexport function isReadPermission(permission: Permission) {\n return permission.attributes.action === 'read';\n}\n\n/**\n * Check if a given permission is related to an update action.\n * @public\n */\nexport function isUpdatePermission(permission: Permission) {\n return permission.attributes.action === 'update';\n}\n\n/**\n * Check if a given permission is related to a delete action.\n * @public\n */\nexport function isDeletePermission(permission: Permission) {\n return permission.attributes.action === 'delete';\n}\n\n/**\n * Convert {@link PermissionAuthorizer} to {@link PermissionEvaluator}.\n *\n * @public\n */\nexport function toPermissionEvaluator(\n permissionAuthorizer: PermissionAuthorizer,\n): PermissionEvaluator {\n return {\n authorize: async (\n requests: AuthorizePermissionRequest[],\n options?: EvaluatorRequestOptions,\n ): Promise<AuthorizePermissionResponse[]> => {\n const response = await permissionAuthorizer.authorize(requests, options);\n\n return response as DefinitivePolicyDecision[];\n },\n authorizeConditional(\n requests: QueryPermissionRequest[],\n options?: EvaluatorRequestOptions,\n ): Promise<QueryPermissionResponse[]> {\n const parsedRequests =\n requests as unknown as AuthorizePermissionRequest[];\n return permissionAuthorizer.authorize(parsedRequests, options);\n },\n };\n}\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { useApi } from '@backstage/core-plugin-api';\nimport { permissionApiRef } from '../apis';\nimport {\n AuthorizeResult,\n isResourcePermission,\n Permission,\n ResourcePermission,\n} from '@backstage/plugin-permission-common';\nimport useSWR from 'swr';\n\n/** @public */\nexport type AsyncPermissionResult = {\n loading: boolean;\n allowed: boolean;\n error?: Error;\n};\n\n/**\n * React hook utility for authorization. Given either a non-resource\n * {@link @backstage/plugin-permission-common#Permission} or a\n * {@link @backstage/plugin-permission-common#ResourcePermission} and an\n * optional resourceRef, it will return whether or not access is allowed (for\n * the given resource, if resourceRef is provided). See\n * {@link @backstage/plugin-permission-common/PermissionClient#authorize} for\n * more details.\n *\n * The resourceRef field is optional to allow calling this hook with an\n * entity that might be loading asynchronously, but when resourceRef is not\n * supplied, the value of `allowed` will always be false.\n *\n * Note: This hook uses stale-while-revalidate to help avoid flicker in UI\n * elements that would be conditionally rendered based on the `allowed` result\n * of this hook.\n * @public\n */\nexport function usePermission(\n input:\n | {\n permission: Exclude<Permission, ResourcePermission>;\n resourceRef?: never;\n }\n | {\n permission: ResourcePermission;\n resourceRef: string | undefined;\n },\n): AsyncPermissionResult {\n const permissionApi = useApi(permissionApiRef);\n const { data, error } = useSWR(input, async (args: typeof input) => {\n // We could make the resourceRef parameter required to avoid this check, but\n // it would make using this hook difficult in situations where the entity\n // must be asynchronously loaded, so instead we short-circuit to a deny when\n // no resourceRef is supplied, on the assumption that the resourceRef is\n // still loading outside the hook.\n if (isResourcePermission(args.permission) && !args.resourceRef) {\n return AuthorizeResult.DENY;\n }\n\n const { result } = await permissionApi.authorize(args);\n return result;\n });\n\n if (error) {\n return { error, loading: false, allowed: false };\n }\n if (data === undefined) {\n return { loading: true, allowed: false };\n }\n return { loading: false, allowed: data === AuthorizeResult.ALLOW };\n}\n"],"names":["useStyles","makeStyles","container","overflow","typo","fontSize","textOverflow","display","line","name","OverflowTooltip","props","classes","Tooltip","title","text","placement","Typography","className","variant","RESOURCE_TYPE_CATALOG_ENTITY","catalogEntityReadPermission","createPermission","attributes","action","resourceType","catalogEntityCreatePermission","catalogEntityDeletePermission","catalogEntityRefreshPermission","catalogEntityValidatePermission","catalogLocationReadPermission","catalogLocationCreatePermission","catalogLocationAnalyzePermission","catalogLocationDeletePermission","catalogPermissions","catalogTranslationRef","createTranslationRef","id","messages","indexPage","createButtonTitle","supportButtonContent","aboutCard","refreshButtonTitle","editButtonTitle","createSimilarButtonTitle","refreshScheduledMessage","launchTemplate","viewTechdocs","viewSource","descriptionField","label","value","ownerField","domainField","systemField","parentComponentField","typeField","lifecycleField","tagsField","targetsField","searchResultItem","lifecycle","Owner","catalogTable","warningPanelTitle","viewActionTitle","editActionTitle","starActionTitle","unStarActionTitle","dependencyOfComponentsCard","emptyMessage","dependsOnComponentsCard","dependsOnResourcesCard","entityContextMenu","copiedMessage","moreButtonTitle","inspectMenuTitle","copyURLMenuTitle","unregisterMenuTitle","entityLabelsCard","emptyDescription","readMoreButtonTitle","entityLabels","ownerLabel","lifecycleLabel","entityLinksCard","entityNotFound","description","docButtonTitle","deleteEntity","dialogTitle","deleteButtonTitle","cancelButtonTitle","entityProcessingErrorsDescription","entityRelationWarningDescription","hasComponentsCard","hasResourcesCard","hasSubcomponentsCard","hasSubdomainsCard","hasSystemsCard","relatedEntitiesCard","emptyHelpLinkTitle","systemDiagramCard","edgeLabels","partOf","provides","dependsOn","CreateButton","to","isXSScreen","useMediaQuery","theme","breakpoints","down","IconButton","component","RouterLink","color","size","AddCircleOutline","Button","useAllKinds","catalogApi","useApi","catalogApiRef","error","loading","allKinds","useAsync","facets","getEntityFacets","kindFacets","kind","map","f","Map","toLocaleLowerCase","filterKinds","allowedKinds","forcedKinds","availableKinds","Array","from","keys","k","filter","has","kindsMap","get","set","useEntityKindFilter","opts","filters","queryParameters","kindParameter","updateFilters","useEntityList","queryParamKind","useMemo","flat","selectedKind","setSelectedKind","useState","initialFilter","useEffect","selectedKindLabel","EntityKindFilter","undefined","EntityKindPicker","hidden","t","useTranslationRef","catalogReactTranslationRef","alertApi","alertApiRef","post","message","severity","items","entries","key","Box","pb","pt","Select","selected","onChange","String","input","EntityLifecyclePicker","EntityAutocompletePicker","path","Filter","EntityLifecycleFilter","InputProps","initialSelectedOptions","EntityNamespacePicker","initiallySelectedNamespaces","EntityNamespaceFilter","root","icon","CheckBoxOutlineBlankIcon","checkedIcon","CheckBoxIcon","EntityProcessingStatusPicker","selectedAdvancedItems","setSelectedAdvancedItems","orphanChange","orphan","EntityOrphanFilter","errorChange","EntityErrorFilter","availableAdvancedItems","CatalogAutocomplete","multiple","disableCloseOnSelect","options","_","includes","renderOption","option","FormControlLabel","control","Checkbox","checked","onClick","event","preventDefault","LabelProps","TextFieldProps","useEntityTypeFilter","kindFilter","type","typeFilter","typeParameter","flattenedQueryTypes","Boolean","selectedTypes","setSelectedTypes","length","getTypes","availableTypes","setAvailableTypes","then","response","facetsRef","useRef","oldFacets","current","newTypes","Set","sortBy","count","stillValidTypes","isEqual","EntityTypeFilter","EntityTypePicker","sort","a","b","localeCompare","DefaultFilters","initialKind","initiallySelectedFilter","ownerPickerMode","UserListPicker","EntityOwnerPicker","mode","EntityTagPicker","columnFactories","Object","freeze","createNameColumn","formatContent","entity","metadata","humanizeEntityRef","defaultKind","field","highlight","customSort","entity1","entity2","render","EntityRefLink","entityRef","createSystemColumn","customFilterAndSearch","query","row","resolved","partOfSystemRelations","ref","join","toLocaleUpperCase","EntityRefLinks","entityRefs","createOwnerColumn","ownedByRelations","createSpecTargetsColumn","targets","spec","isArray","target","createSpecTypeColumn","width","createSpecLifecycleColumn","createMetadataDescriptionColumn","createTagsColumn","cellStyle","padding","tags","Chip","style","marginBottom","createTitleColumn","searchable","createLabelColumn","keyLabel","labels","specifiedLabelValue","defaultValue","createNamespaceColumn","_theme","searchToolbar","paddingLeft","paddingRight","EntitySearchBar","textParameter","queryParamTextFilter","search","setSearch","useDebounce","EntityTextFilter","Toolbar","FormControl","Input","aria-label","placeholder","autoComplete","startAdornment","InputAdornment","position","Search","endAdornment","edge","disabled","Clear","useToolbarStyles","paddingTop","spacing","paddingBottom","justifyContent","whiteSpace","CatalogTableToolbar","styles","OffsetPaginatedCatalogTable","columns","data","restProps","setLimit","setOffset","limit","totalItems","offset","page","setPage","Math","floor","max","Table","paginationPosition","pageSizeOptions","pageSize","emptyRowsWhenPaging","components","onPageChange","newPage","onRowsPerPageChange","totalCount","localization","pagination","labelDisplayedRows","CursorPaginatedCatalogTable","next","prev","showFirstLastPageButtons","Number","MAX_SAFE_INTEGER","MAX_VALUE","defaultCatalogTableColumnsFunc","entities","showTypeColumn","createEntitySpecificColumns","descriptionTagColumns","baseColumns","every","namespace","refCompare","toRef","CatalogTable","tableOptions","subtitle","emptyContent","isStarredEntity","toggleStarredEntity","useStarredEntities","entityListContext","pageInfo","paginationMode","tableColumns","div","WarningPanel","CodeSnippet","language","toString","defaultActions","url","annotations","ANNOTATION_VIEW_URL","visuallyHidden","OpenInNew","tooltip","window","open","ANNOTATION_EDIT_URL","Edit","isStarred","FavoriteToggleIcon","isFavorite","currentKind","currentType","currentCount","titlePreamble","capitalize","user","pluralize","s","actions","actionsColumnIndex","loadingType","showEmptyDataSourceMessage","isLoading","toEntityRow","rows","showPagination","paging","defaultColumnsFunc","getEntityRelations","RELATION_PART_OF","RELATION_OWNED_BY","stringifyEntityRef","ownedByRelationsTitle","r","partOfSystemRelationTitle","BaseCatalogPage","content","orgName","configApiRef","getOptionalString","createComponentLink","useRouteRef","createComponentRouteRef","allowed","usePermission","permission","PageWithHeader","themeId","Content","ContentHeader","SupportButton","EntityListProvider","CatalogFilterLayout","Filters","DefaultCatalogPage","CatalogPage","useOutlet","isPermission","comparedPermission","isResourcePermission","isCreatePermission","isReadPermission","isUpdatePermission","isDeletePermission","toPermissionEvaluator","permissionAuthorizer","authorize","requests","authorizeConditional","parsedRequests","permissionApi","permissionApiRef","useSWR","args","resourceRef","AuthorizeResult","DENY","result","ALLOW"],"sourceRoot":""}
@@ -1,7 +0,0 @@
1
- (()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[3308],{37639:(de,ce,b)=>{"use strict";b.d(ce,{A:()=>Pt});var H=b(14041);const W="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5m\xF6gensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",ue="\u03B5\u03BB1\u03C52\u0431\u04331\u0435\u043B3\u0434\u0435\u0442\u04384\u0435\u044E2\u043A\u0430\u0442\u043E\u043B\u0438\u043A6\u043E\u043C3\u043C\u043A\u04342\u043E\u043D1\u0441\u043A\u0432\u04306\u043E\u043D\u043B\u0430\u0439\u043D5\u0440\u04333\u0440\u0443\u04412\u04442\u0441\u0430\u0439\u04423\u0440\u04313\u0443\u043A\u04403\u049B\u0430\u04373\u0570\u0561\u05753\u05D9\u05E9\u05E8\u05D0\u05DC5\u05E7\u05D5\u05DD3\u0627\u0628\u0648\u0638\u0628\u064A5\u0631\u0627\u0645\u0643\u06485\u0644\u0627\u0631\u062F\u06464\u0628\u062D\u0631\u064A\u06465\u062C\u0632\u0627\u0626\u06315\u0633\u0639\u0648\u062F\u064A\u06296\u0639\u0644\u064A\u0627\u06465\u0645\u063A\u0631\u06285\u0645\u0627\u0631\u0627\u062A5\u06CC\u0631\u0627\u06465\u0628\u0627\u0631\u062A2\u0632\u0627\u06314\u064A\u062A\u06433\u06BE\u0627\u0631\u062A5\u062A\u0648\u0646\u06334\u0633\u0648\u062F\u0627\u06463\u0631\u064A\u06295\u0634\u0628\u0643\u06294\u0639\u0631\u0627\u06422\u06282\u0645\u0627\u06464\u0641\u0644\u0633\u0637\u064A\u06466\u0642\u0637\u06313\u0643\u0627\u062B\u0648\u0644\u064A\u06436\u0648\u06453\u0645\u0635\u06312\u0644\u064A\u0633\u064A\u06275\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u06277\u0642\u06394\u0647\u0645\u0631\u0627\u06475\u067E\u0627\u06A9\u0633\u062A\u0627\u06467\u0680\u0627\u0631\u062A4\u0915\u0949\u092E3\u0928\u0947\u091F3\u092D\u093E\u0930\u09240\u092E\u094D3\u094B\u09245\u0938\u0902\u0917\u0920\u09285\u09AC\u09BE\u0982\u09B2\u09BE5\u09AD\u09BE\u09B0\u09A42\u09F0\u09A44\u0A2D\u0A3E\u0A30\u0A244\u0AAD\u0ABE\u0AB0\u0AA44\u0B2D\u0B3E\u0B30\u0B244\u0B87\u0BA8\u0BCD\u0BA4\u0BBF\u0BAF\u0BBE6\u0BB2\u0B99\u0BCD\u0B95\u0BC86\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0BC2\u0BB0\u0BCD11\u0C2D\u0C3E\u0C30\u0C24\u0C4D5\u0CAD\u0CBE\u0CB0\u0CA44\u0D2D\u0D3E\u0D30\u0D24\u0D025\u0DBD\u0D82\u0D9A\u0DCF4\u0E04\u0E2D\u0E213\u0E44\u0E17\u0E223\u0EA5\u0EB2\u0EA73\u10D2\u10D42\u307F\u3093\u306A3\u30A2\u30DE\u30BE\u30F34\u30AF\u30E9\u30A6\u30C94\u30B0\u30FC\u30B0\u30EB4\u30B3\u30E02\u30B9\u30C8\u30A23\u30BB\u30FC\u30EB3\u30D5\u30A1\u30C3\u30B7\u30E7\u30F36\u30DD\u30A4\u30F3\u30C84\u4E16\u754C2\u4E2D\u4FE11\u56FD1\u570B1\u6587\u7F513\u4E9A\u9A6C\u900A3\u4F01\u4E1A2\u4F5B\u5C712\u4FE1\u606F2\u5065\u5EB72\u516B\u53662\u516C\u53F81\u76CA2\u53F0\u6E7E1\u70632\u5546\u57CE1\u5E971\u68072\u5609\u91CC0\u5927\u9152\u5E975\u5728\u7EBF2\u5927\u62FF2\u5929\u4E3B\u65593\u5A31\u4E502\u5BB6\u96FB2\u5E7F\u4E1C2\u5FAE\u535A2\u6148\u55842\u6211\u7231\u4F603\u624B\u673A2\u62DB\u80582\u653F\u52A11\u5E9C2\u65B0\u52A0\u57612\u95FB2\u65F6\u5C1A2\u66F8\u7C4D2\u673A\u67842\u6DE1\u9A6C\u95213\u6E38\u620F2\u6FB3\u95802\u70B9\u770B2\u79FB\u52A82\u7EC4\u7EC7\u673A\u67844\u7F51\u57401\u5E971\u7AD91\u7EDC2\u8054\u901A2\u8C37\u6B4C2\u8D2D\u72692\u901A\u8CA92\u96C6\u56E22\u96FB\u8A0A\u76C8\u79D14\u98DE\u5229\u6D663\u98DF\u54C12\u9910\u53852\u9999\u683C\u91CC\u62C93\u6E2F2\uB2F7\uB1371\uCEF42\uC0BC\uC1312\uD55C\uAD6D2",D=(t,r)=>{for(const n in r)t[n]=r[n];return t},F="numeric",X="ascii",Se="alpha",ge="asciinumeric",ye="alphanumeric",xe="domain",we="emoji",We="scheme",je="slashscheme",Ve="whitespace";function fe(t,r){return t in r||(r[t]=[]),r[t]}function ee(t,r,n){r[F]&&(r[ge]=!0,r[ye]=!0),r[X]&&(r[ge]=!0,r[Se]=!0),r[ge]&&(r[ye]=!0),r[Se]&&(r[ye]=!0),r[ye]&&(r[xe]=!0),r[we]&&(r[xe]=!0);for(const c in r){const f=fe(c,n);f.indexOf(t)<0&&f.push(t)}}function V(t,r){const n={};for(const c in r)r[c].indexOf(t)>=0&&(n[c]=!0);return n}function j(t){t===void 0&&(t=null),this.j={},this.jr=[],this.jd=null,this.t=t}j.groups={},j.prototype={accepts(){return!!this.t},go(t){const r=this,n=r.j[t];if(n)return n;for(let c=0;c<r.jr.length;c++){const f=r.jr[c][0],v=r.jr[c][1];if(v&&f.test(t))return v}return r.jd},has(t,r){return r===void 0&&(r=!1),r?t in this.j:!!this.go(t)},ta(t,r,n,c){for(let f=0;f<t.length;f++)this.tt(t[f],r,n,c)},tr(t,r,n,c){c=c||j.groups;let f;return r&&r.j?f=r:(f=new j(r),n&&c&&ee(r,n,c)),this.jr.push([t,f]),f},ts(t,r,n,c){let f=this;const v=t.length;if(!v)return f;for(let g=0;g<v-1;g++)f=f.tt(t[g]);return f.tt(t[v-1],r,n,c)},tt(t,r,n,c){c=c||j.groups;const f=this;if(r&&r.j)return f.j[t]=r,r;const v=r;let g,R=f.go(t);if(R?(g=new j,D(g.j,R.j),g.jr.push.apply(g.jr,R.jr),g.jd=R.jd,g.t=R.t):g=new j,v){if(c)if(g.t&&typeof g.t=="string"){const U=D(V(g.t,c),n);ee(v,U,c)}else n&&ee(v,n,c);g.t=v}return f.j[t]=g,g}};const y=(t,r,n,c,f)=>t.ta(r,n,c,f),se=(t,r,n,c,f)=>t.tr(r,n,c,f),Re=(t,r,n,c,f)=>t.ts(r,n,c,f),h=(t,r,n,c,f)=>t.tt(r,n,c,f),pe="WORD",ve="UWORD",Ie="LOCALHOST",be="TLD",_="UTLD",te="SCHEME",Z="SLASH_SCHEME",he="NUM",Te="WS",G="NL",Q="OPENBRACE",Ce="CLOSEBRACE",Le="OPENBRACKET",ke="CLOSEBRACKET",Ne="OPENPAREN",Ze="CLOSEPAREN",Ke="OPENANGLEBRACKET",Je="CLOSEANGLEBRACKET",Xe="FULLWIDTHLEFTPAREN",lt="FULLWIDTHRIGHTPAREN",ct="LEFTCORNERBRACKET",rt="RIGHTCORNERBRACKET",Ye="LEFTWHITECORNERBRACKET",it="RIGHTWHITECORNERBRACKET",ot="FULLWIDTHLESSTHAN",st="FULLWIDTHGREATERTHAN",ut="AMPERSAND",u="APOSTROPHE",e="ASTERISK",i="AT",o="BACKSLASH",a="BACKTICK",m="CARET",d="COLON",p="COMMA",S="DOLLAR",E="DOT",w="EQUALS",M="EXCLAMATION",T="HYPHEN",B="PERCENT",J="PIPE",l="PLUS",x="POUND",O="QUERY",L="QUOTE",k="SEMI",N="SLASH",s="TILDE",I="UNDERSCORE",C="EMOJI",A="SYM";var P=Object.freeze({__proto__:null,WORD:pe,UWORD:ve,LOCALHOST:Ie,TLD:be,UTLD:_,SCHEME:te,SLASH_SCHEME:Z,NUM:he,WS:Te,NL:G,OPENBRACE:Q,CLOSEBRACE:Ce,OPENBRACKET:Le,CLOSEBRACKET:ke,OPENPAREN:Ne,CLOSEPAREN:Ze,OPENANGLEBRACKET:Ke,CLOSEANGLEBRACKET:Je,FULLWIDTHLEFTPAREN:Xe,FULLWIDTHRIGHTPAREN:lt,LEFTCORNERBRACKET:ct,RIGHTCORNERBRACKET:rt,LEFTWHITECORNERBRACKET:Ye,RIGHTWHITECORNERBRACKET:it,FULLWIDTHLESSTHAN:ot,FULLWIDTHGREATERTHAN:st,AMPERSAND:ut,APOSTROPHE:u,ASTERISK:e,AT:i,BACKSLASH:o,BACKTICK:a,CARET:m,COLON:d,COMMA:p,DOLLAR:S,DOT:E,EQUALS:w,EXCLAMATION:M,HYPHEN:T,PERCENT:B,PIPE:J,PLUS:l,POUND:x,QUERY:O,QUOTE:L,SEMI:k,SLASH:N,TILDE:s,UNDERSCORE:I,EMOJI:C,SYM:A});const z=/[a-z]/,$=/\p{L}/u,ne=/\p{Emoji}/u,me=/\ufe0f/,re=/\d/,ie=/\s/;var ae=Object.freeze({__proto__:null,ASCII_LETTER:z,LETTER:$,EMOJI:ne,EMOJI_VARIATION:me,DIGIT:re,SPACE:ie});const Ee=`
2
- `,Oe="\uFE0F",He="\u200D";let _e=null,De=null;function Ge(t){t===void 0&&(t=[]);const r={};j.groups=r;const n=new j;_e==null&&(_e=St(W)),De==null&&(De=St(ue)),h(n,"'",u),h(n,"{",Q),h(n,"}",Ce),h(n,"[",Le),h(n,"]",ke),h(n,"(",Ne),h(n,")",Ze),h(n,"<",Ke),h(n,">",Je),h(n,"\uFF08",Xe),h(n,"\uFF09",lt),h(n,"\u300C",ct),h(n,"\u300D",rt),h(n,"\u300E",Ye),h(n,"\u300F",it),h(n,"\uFF1C",ot),h(n,"\uFF1E",st),h(n,"&",ut),h(n,"*",e),h(n,"@",i),h(n,"`",a),h(n,"^",m),h(n,":",d),h(n,",",p),h(n,"$",S),h(n,".",E),h(n,"=",w),h(n,"!",M),h(n,"-",T),h(n,"%",B),h(n,"|",J),h(n,"+",l),h(n,"#",x),h(n,"?",O),h(n,'"',L),h(n,"/",N),h(n,";",k),h(n,"~",s),h(n,"_",I),h(n,"\\",o);const c=se(n,re,he,{[F]:!0});se(c,re,c);const f=se(n,z,pe,{[X]:!0});se(f,z,f);const v=se(n,$,ve,{[Se]:!0});se(v,z),se(v,$,v);const g=se(n,ie,Te,{[Ve]:!0});h(n,Ee,G,{[Ve]:!0}),h(g,Ee),se(g,ie,g);const R=se(n,ne,C,{[we]:!0});se(R,ne,R),h(R,Oe,R);const U=h(R,He);se(U,ne,R);const Y=[[z,f]],le=[[z,null],[$,v]];for(let q=0;q<_e.length;q++)Ae(n,_e[q],be,pe,Y);for(let q=0;q<De.length;q++)Ae(n,De[q],_,ve,le);ee(be,{tld:!0,ascii:!0},r),ee(_,{utld:!0,alpha:!0},r),Ae(n,"file",te,pe,Y),Ae(n,"mailto",te,pe,Y),Ae(n,"http",Z,pe,Y),Ae(n,"https",Z,pe,Y),Ae(n,"ftp",Z,pe,Y),Ae(n,"ftps",Z,pe,Y),ee(te,{scheme:!0,ascii:!0},r),ee(Z,{slashscheme:!0,ascii:!0},r),t=t.sort((q,oe)=>q[0]>oe[0]?1:-1);for(let q=0;q<t.length;q++){const oe=t[q][0],ze=t[q][1]?{[We]:!0}:{[je]:!0};oe.indexOf("-")>=0?ze[xe]=!0:z.test(oe)?re.test(oe)?ze[ge]=!0:ze[X]=!0:ze[F]=!0,Re(n,oe,oe,ze)}return Re(n,"localhost",Ie,{ascii:!0}),n.jd=new j(A),{start:n,tokens:D({groups:r},P)}}function Qe(t,r){const n=Pe(r.replace(/[A-Z]/g,R=>R.toLowerCase())),c=n.length,f=[];let v=0,g=0;for(;g<c;){let R=t,U=null,Y=0,le=null,q=-1,oe=-1;for(;g<c&&(U=R.go(n[g]));)R=U,R.accepts()?(q=0,oe=0,le=R):q>=0&&(q+=n[g].length,oe++),Y+=n[g].length,v+=n[g].length,g++;v-=q,g-=oe,Y-=q,f.push({t:le.t,v:r.slice(v-Y,v),s:v-Y,e:v})}return f}function Pe(t){const r=[],n=t.length;let c=0;for(;c<n;){let f=t.charCodeAt(c),v,g=f<55296||f>56319||c+1===n||(v=t.charCodeAt(c+1))<56320||v>57343?t[c]:t.slice(c,c+2);r.push(g),c+=g.length}return r}function Ae(t,r,n,c,f){let v;const g=r.length;for(let R=0;R<g-1;R++){const U=r[R];t.j[U]?v=t.j[U]:(v=new j(c),v.jr=f.slice(),t.j[U]=v),t=v}return v=new j(n),v.jr=f.slice(),t.j[r[g-1]]=v,v}function St(t){const r=[],n=[];let c=0,f="0123456789";for(;c<t.length;){let v=0;for(;f.indexOf(t[c+v])>=0;)v++;if(v>0){r.push(n.join(""));for(let g=parseInt(t.substring(c,c+v),10);g>0;g--)n.pop();c+=v}else n.push(t[c]),c++}return r}const qe={defaultProtocol:"http",events:null,format:It,formatHref:It,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function et(t,r){r===void 0&&(r=null);let n=D({},qe);t&&(n=D(n,t instanceof et?t.o:t));const c=n.ignoreTags,f=[];for(let v=0;v<c.length;v++)f.push(c[v].toUpperCase());this.o=n,r&&(this.defaultRender=r),this.ignoreTags=f}et.prototype={o:qe,ignoreTags:[],defaultRender(t){return t},check(t){return this.get("validate",t.toString(),t)},get(t,r,n){const c=r!=null;let f=this.o[t];return f&&(typeof f=="object"?(f=n.t in f?f[n.t]:qe[t],typeof f=="function"&&c&&(f=f(r,n))):typeof f=="function"&&c&&(f=f(r,n.t,n)),f)},getObj(t,r,n){let c=this.o[t];return typeof c=="function"&&r!=null&&(c=c(r,n.t,n)),c},render(t){const r=t.render(this);return(this.get("render",null,t)||this.defaultRender)(r,t.t,t)}};function It(t){return t}var dt=Object.freeze({__proto__:null,defaults:qe,Options:et,assign:D});function Be(t,r){this.t="token",this.v=t,this.tk=r}Be.prototype={isLink:!1,toString(){return this.v},toHref(t){return this.toString()},toFormattedString(t){const r=this.toString(),n=t.get("truncate",r,this),c=t.get("format",r,this);return n&&c.length>n?c.substring(0,n)+"\u2026":c},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t){return t===void 0&&(t=qe.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const r=this,n=this.toHref(t.get("defaultProtocol")),c=t.get("formatHref",n,this),f=t.get("tagName",n,r),v=this.toFormattedString(t),g={},R=t.get("className",n,r),U=t.get("target",n,r),Y=t.get("rel",n,r),le=t.getObj("attributes",n,r),q=t.getObj("events",n,r);return g.href=c,R&&(g.class=R),U&&(g.target=U),Y&&(g.rel=Y),le&&D(g,le),{tagName:f,attributes:g,content:v,eventListeners:q}}};function Ue(t,r){class n extends Be{constructor(f,v){super(f,v),this.t=t}}for(const c in r)n.prototype[c]=r[c];return n.t=t,n}const ft=Ue("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),ht=Ue("text"),Ot=Ue("nl"),mt=Ue("url",{isLink:!0,toHref(t){return t===void 0&&(t=qe.defaultProtocol),this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==Ie&&t[1].t===d}});var $t=Object.freeze({__proto__:null,MultiToken:Be,Base:Be,createTokenClass:Ue,Email:ft,Text:ht,Nl:Ot,Url:mt});const Fe=t=>new j(t);function Nt(t){let{groups:r}=t;const n=r.domain.concat([ut,e,i,o,a,m,S,w,T,he,B,J,l,x,N,A,s,I]),c=[u,d,p,E,M,O,L,k,Ke,Je,Q,Ce,ke,Le,Ne,Ze,Xe,lt,ct,rt,Ye,it,ot,st],f=[ut,u,e,o,a,m,S,w,T,Q,Ce,B,J,l,x,O,N,A,s,I],v=Fe(),g=h(v,s);y(g,f,g),y(g,r.domain,g);const R=Fe(),U=Fe(),Y=Fe();y(v,r.domain,R),y(v,r.scheme,U),y(v,r.slashscheme,Y),y(R,f,g),y(R,r.domain,R);const le=h(R,i);h(g,i,le),h(U,i,le),h(Y,i,le);const q=h(g,E);y(q,f,g),y(q,r.domain,g);const oe=Fe();y(le,r.domain,oe),y(oe,r.domain,oe);const tt=h(oe,E);y(tt,r.domain,oe);const ze=Fe(ft);y(tt,r.tld,ze),y(tt,r.utld,ze),h(le,Ie,ze);const At=h(oe,T);y(At,r.domain,oe),y(ze,r.domain,oe),h(ze,E,tt),h(ze,T,At);const Ft=h(ze,d);y(Ft,r.numeric,ft);const Ct=h(R,T),nt=h(R,E);y(Ct,r.domain,R),y(nt,f,g),y(nt,r.domain,R);const $e=Fe(mt);y(nt,r.tld,$e),y(nt,r.utld,$e),y($e,r.domain,R),y($e,f,g),h($e,E,nt),h($e,T,Ct),h($e,i,le);const Ut=h($e,d),zt=Fe(mt);y(Ut,r.numeric,zt);const Me=Fe(mt),pt=Fe();y(Me,n,Me),y(Me,c,pt),y(pt,n,Me),y(pt,c,pt),h($e,N,Me),h(zt,N,Me);const Mt=h(U,d),jt=h(Y,d),Bt=h(jt,N),Rt=h(Bt,N);y(U,r.domain,R),h(U,E,nt),h(U,T,Ct),y(Y,r.domain,R),h(Y,E,nt),h(Y,T,Ct),y(Mt,r.domain,Me),h(Mt,N,Me),y(Rt,r.domain,Me),y(Rt,n,Me),h(Rt,N,Me);const Lt=[[Q,Ce],[Le,ke],[Ne,Ze],[Ke,Je],[Xe,lt],[ct,rt],[Ye,it],[ot,st]];for(let _t=0;_t<Lt.length;_t++){const[kt,yt]=Lt[_t],xt=h(Me,kt);h(pt,kt,xt),h(xt,yt,Me);const at=Fe(mt);y(xt,n,at);const vt=Fe();y(xt,c),y(at,n,at),y(at,c,vt),y(vt,n,at),y(vt,c,vt),h(at,yt,Me),h(vt,yt,Me)}return h(v,Ie,$e),h(v,G,Ot),{start:v,tokens:P}}function Ht(t,r,n){let c=n.length,f=0,v=[],g=[];for(;f<c;){let R=t,U=null,Y=null,le=0,q=null,oe=-1;for(;f<c&&!(U=R.go(n[f].t));)g.push(n[f++]);for(;f<c&&(Y=U||R.go(n[f].t));)U=null,R=Y,R.accepts()?(oe=0,q=R):oe>=0&&oe++,f++,le++;if(oe<0)f-=le,f<c&&(g.push(n[f]),f++);else{g.length>0&&(v.push(Et(ht,r,g)),g=[]),f-=oe,le-=oe;const tt=q.t,ze=n.slice(f-le,f);v.push(Et(tt,r,ze))}}return g.length>0&&v.push(Et(ht,r,g)),v}function Et(t,r,n){const c=n[0].s,f=n[n.length-1].e,v=r.slice(c,f);return new t(v,n)}const gt=typeof console<"u"&&console&&console.warn||(()=>{}),wt="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",K={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function Kt(){j.groups={},K.scanner=null,K.parser=null,K.tokenQueue=[],K.pluginQueue=[],K.customSchemes=[],K.initialized=!1}function Gt(t,r){if(typeof r!="function")throw new Error(`linkifyjs: Invalid token plugin ${r} (expects function)`);for(let n=0;n<K.tokenQueue.length;n++)if(t===K.tokenQueue[n][0]){gt(`linkifyjs: token plugin "${t}" already registered - will be overwritten`),K.tokenQueue[n]=[t,r];return}K.tokenQueue.push([t,r]),K.initialized&&gt(`linkifyjs: already initialized - will not register token plugin "${t}" ${wt}`)}function Qt(t,r){if(typeof r!="function")throw new Error(`linkifyjs: Invalid plugin ${r} (expects function)`);for(let n=0;n<K.pluginQueue.length;n++)if(t===K.pluginQueue[n][0]){gt(`linkifyjs: plugin "${t}" already registered - will be overwritten`),K.pluginQueue[n]=[t,r];return}K.pluginQueue.push([t,r]),K.initialized&&gt(`linkifyjs: already initialized - will not register plugin "${t}" ${wt}`)}function qt(t,r){if(r===void 0&&(r=!1),K.initialized&&gt(`linkifyjs: already initialized - will not register custom scheme "${t}" ${wt}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw new Error(`linkifyjs: incorrect scheme format.
3
- 1. Must only contain digits, lowercase ASCII letters or "-"
4
- 2. Cannot start or end with "-"
5
- 3. "-" cannot repeat`);K.customSchemes.push([t,r])}function Wt(){K.scanner=Ge(K.customSchemes);for(let t=0;t<K.tokenQueue.length;t++)K.tokenQueue[t][1]({scanner:K.scanner});K.parser=Nt(K.scanner.tokens);for(let t=0;t<K.pluginQueue.length;t++)K.pluginQueue[t][1]({scanner:K.scanner,parser:K.parser});K.initialized=!0}function Tt(t){return K.initialized||Wt(),Ht(K.parser.start,t,Qe(K.scanner.start,t))}function Vt(t,r,n){if(r===void 0&&(r=null),n===void 0&&(n=null),r&&typeof r=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${r}; must be a string`);n=r,r=null}const c=new et(n),f=Tt(t),v=[];for(let g=0;g<f.length;g++){const R=f[g];R.isLink&&(!r||R.t===r)&&c.check(R)&&v.push(R.toFormattedObject(c))}return v}function Zt(t,r){r===void 0&&(r=null);const n=Tt(t);return n.length===1&&n[0].isLink&&(!r||n[0].t===r)}function Dt(t,r,n){const c=Tt(t),f=[];for(let v=0;v<c.length;v++){const g=c[v];if(g.t==="nl"&&r.get("nl2br")){const R=`__linkify-el-${n.elementId++}`;f.push(H.createElement("br",{key:R}))}else if(!g.isLink||!r.check(g))f.push(g.toString());else{let R=r.render(g);if(!("key"in R.props)){const U=`__linkify-el-${n.elementId++}`,Y=dt.assign({key:U},R.props);R=H.cloneElement(R,Y)}f.push(R)}}return f}function bt(t,r,n){if(H.Children.count(t.props.children)===0)return t;const c=[];H.Children.forEach(t.props.children,g=>{typeof g=="string"?c.push.apply(c,Dt(g,r,n)):H.isValidElement(g)?typeof g.type=="string"&&r.ignoreTags.indexOf(g.type.toUpperCase())>=0?c.push(g):c.push(bt(g,r,n)):c.push(g)});const f=`__linkify-el-${n.elementId++}`,v=dt.assign({key:f},t.props);return H.cloneElement(t,v,c)}const Pt=t=>{let r=0;const n=U=>{let{tagName:Y,attributes:le,content:q}=U;return le.key=`__linkify-lnk-${r++}`,le.class&&(le.className=le.class,delete le.class),H.createElement(Y,le,q)},c={key:"__linkify-wrapper"};for(const U in t)U!=="options"&&U!=="as"&&U!=="tagName"&&U!=="children"&&(c[U]=t[U]);const f=new et(t.options,n),v=t.as||t.tagName||H.Fragment||"span",g=t.children,R=H.createElement(v,c,g);return bt(R,f,{elementId:0})}},44187:de=>{function ce(b,H,W,ue){var D=-1,F=b==null?0:b.length;for(ue&&F&&(W=b[++D]);++D<F;)W=H(W,b[D],D,b);return W}de.exports=ce},39546:de=>{var ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function b(H){return H.match(ce)||[]}de.exports=b},51035:de=>{function ce(b){return function(H){return b?.[H]}}de.exports=ce},93640:(de,ce,b)=>{var H=b(44187),W=b(45881),ue=b(17469),D="['\u2019]",F=RegExp(D,"g");function X(Se){return function(ge){return H(ue(W(ge).replace(F,"")),Se,"")}}de.exports=X},69968:(de,ce,b)=>{var H=b(51035),W={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},ue=H(W);de.exports=ue},15813:de=>{var ce=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function b(H){return ce.test(H)}de.exports=b},10482:de=>{var ce="\\ud800-\\udfff",b="\\u0300-\\u036f",H="\\ufe20-\\ufe2f",W="\\u20d0-\\u20ff",ue=b+H+W,D="\\u2700-\\u27bf",F="a-z\\xdf-\\xf6\\xf8-\\xff",X="\\xac\\xb1\\xd7\\xf7",Se="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ge="\\u2000-\\u206f",ye=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",xe="A-Z\\xc0-\\xd6\\xd8-\\xde",we="\\ufe0e\\ufe0f",We=X+Se+ge+ye,je="['\u2019]",Ve="["+We+"]",fe="["+ue+"]",ee="\\d+",V="["+D+"]",j="["+F+"]",y="[^"+ce+We+ee+D+F+xe+"]",se="\\ud83c[\\udffb-\\udfff]",Re="(?:"+fe+"|"+se+")",h="[^"+ce+"]",pe="(?:\\ud83c[\\udde6-\\uddff]){2}",ve="[\\ud800-\\udbff][\\udc00-\\udfff]",Ie="["+xe+"]",be="\\u200d",_="(?:"+j+"|"+y+")",te="(?:"+Ie+"|"+y+")",Z="(?:"+je+"(?:d|ll|m|re|s|t|ve))?",he="(?:"+je+"(?:D|LL|M|RE|S|T|VE))?",Te=Re+"?",G="["+we+"]?",Q="(?:"+be+"(?:"+[h,pe,ve].join("|")+")"+G+Te+")*",Ce="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Le="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ke=G+Te+Q,Ne="(?:"+[V,pe,ve].join("|")+")"+ke,Ze=RegExp([Ie+"?"+j+"+"+Z+"(?="+[Ve,Ie,"$"].join("|")+")",te+"+"+he+"(?="+[Ve,Ie+_,"$"].join("|")+")",Ie+"?"+_+"+"+Z,Ie+"+"+he,Le,Ce,ee,Ne].join("|"),"g");function Ke(Je){return Je.match(Ze)||[]}de.exports=Ke},45881:(de,ce,b)=>{var H=b(69968),W=b(95243),ue=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,D="\\u0300-\\u036f",F="\\ufe20-\\ufe2f",X="\\u20d0-\\u20ff",Se=D+F+X,ge="["+Se+"]",ye=RegExp(ge,"g");function xe(we){return we=W(we),we&&we.replace(ue,H).replace(ye,"")}de.exports=xe},95479:(de,ce,b)=>{var H=b(93640),W=b(5485),ue=H(function(D,F,X){return D+(X?" ":"")+W(F)});de.exports=ue},17469:(de,ce,b)=>{var H=b(39546),W=b(15813),ue=b(95243),D=b(10482);function F(X,Se,ge){return X=ue(X),Se=ge?void 0:Se,Se===void 0?W(X)?D(X):H(X):X.match(Se)||[]}de.exports=F},19686:(de,ce,b)=>{"use strict";b.d(ce,{Ay:()=>we});var H=b(14041);let W;typeof window<"u"?W=window:typeof self<"u"?W=self:W=b.g;let ue=null,D=null;const F=20,X=W.clearTimeout,Se=W.setTimeout,ge=W.cancelAnimationFrame||W.mozCancelAnimationFrame||W.webkitCancelAnimationFrame,ye=W.requestAnimationFrame||W.mozRequestAnimationFrame||W.webkitRequestAnimationFrame;ge==null||ye==null?(ue=X,D=function(ee){return Se(ee,F)}):(ue=function([ee,V]){ge(ee),X(V)},D=function(ee){const V=ye(function(){X(j),ee()}),j=Se(function(){ge(V),ee()},F);return[V,j]});function xe(fe){let ee,V,j,y,se,Re,h;const pe=typeof document<"u"&&document.attachEvent;if(!pe){Re=function(G){const Q=G.__resizeTriggers__,Ce=Q.firstElementChild,Le=Q.lastElementChild,ke=Ce.firstElementChild;Le.scrollLeft=Le.scrollWidth,Le.scrollTop=Le.scrollHeight,ke.style.width=Ce.offsetWidth+1+"px",ke.style.height=Ce.offsetHeight+1+"px",Ce.scrollLeft=Ce.scrollWidth,Ce.scrollTop=Ce.scrollHeight},se=function(G){return G.offsetWidth!==G.__resizeLast__.width||G.offsetHeight!==G.__resizeLast__.height},h=function(G){if(G.target.className&&typeof G.target.className.indexOf=="function"&&G.target.className.indexOf("contract-trigger")<0&&G.target.className.indexOf("expand-trigger")<0)return;const Q=this;Re(this),this.__resizeRAF__&&ue(this.__resizeRAF__),this.__resizeRAF__=D(function(){se(Q)&&(Q.__resizeLast__.width=Q.offsetWidth,Q.__resizeLast__.height=Q.offsetHeight,Q.__resizeListeners__.forEach(function(ke){ke.call(Q,G)}))})};let _=!1,te="";j="animationstart";const Z="Webkit Moz O ms".split(" ");let he="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),Te="";{const G=document.createElement("fakeelement");if(G.style.animationName!==void 0&&(_=!0),_===!1){for(let Q=0;Q<Z.length;Q++)if(G.style[Z[Q]+"AnimationName"]!==void 0){Te=Z[Q],te="-"+Te.toLowerCase()+"-",j=he[Q],_=!0;break}}}V="resizeanim",ee="@"+te+"keyframes "+V+" { from { opacity: 0; } to { opacity: 0; } } ",y=te+"animation: 1ms "+V+"; "}const ve=function(_){if(!_.getElementById("detectElementResize")){const te=(ee||"")+".resize-triggers { "+(y||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',Z=_.head||_.getElementsByTagName("head")[0],he=_.createElement("style");he.id="detectElementResize",he.type="text/css",fe!=null&&he.setAttribute("nonce",fe),he.styleSheet?he.styleSheet.cssText=te:he.appendChild(_.createTextNode(te)),Z.appendChild(he)}};return{addResizeListener:function(_,te){if(pe)_.attachEvent("onresize",te);else{if(!_.__resizeTriggers__){const Z=_.ownerDocument,he=W.getComputedStyle(_);he&&he.position==="static"&&(_.style.position="relative"),ve(Z),_.__resizeLast__={},_.__resizeListeners__=[],(_.__resizeTriggers__=Z.createElement("div")).className="resize-triggers";const Te=Z.createElement("div");Te.className="expand-trigger",Te.appendChild(Z.createElement("div"));const G=Z.createElement("div");G.className="contract-trigger",_.__resizeTriggers__.appendChild(Te),_.__resizeTriggers__.appendChild(G),_.appendChild(_.__resizeTriggers__),Re(_),_.addEventListener("scroll",h,!0),j&&(_.__resizeTriggers__.__animationListener__=function(Ce){Ce.animationName===V&&Re(_)},_.__resizeTriggers__.addEventListener(j,_.__resizeTriggers__.__animationListener__))}_.__resizeListeners__.push(te)}},removeResizeListener:function(_,te){if(pe)_.detachEvent("onresize",te);else if(_.__resizeListeners__.splice(_.__resizeListeners__.indexOf(te),1),!_.__resizeListeners__.length){_.removeEventListener("scroll",h,!0),_.__resizeTriggers__.__animationListener__&&(_.__resizeTriggers__.removeEventListener(j,_.__resizeTriggers__.__animationListener__),_.__resizeTriggers__.__animationListener__=null);try{_.__resizeTriggers__=!_.removeChild(_.__resizeTriggers__)}catch{}}}}}class we extends H.Component{constructor(...ee){super(...ee),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:V,disableWidth:j,onResize:y}=this.props;if(this._parentNode){const se=window.getComputedStyle(this._parentNode)||{},Re=parseFloat(se.paddingLeft||"0"),h=parseFloat(se.paddingRight||"0"),pe=parseFloat(se.paddingTop||"0"),ve=parseFloat(se.paddingBottom||"0"),Ie=this._parentNode.getBoundingClientRect(),be=Ie.height-pe-ve,_=Ie.width-Re-h,te=this._parentNode.offsetHeight-pe-ve,Z=this._parentNode.offsetWidth-Re-h;(!V&&(this.state.height!==te||this.state.scaledHeight!==be)||!j&&(this.state.width!==Z||this.state.scaledWidth!==_))&&(this.setState({height:te,width:Z,scaledHeight:be,scaledWidth:_}),typeof y=="function"&&y({height:te,scaledHeight:be,scaledWidth:_,width:Z}))}},this._setRef=V=>{this._autoSizer=V}}componentDidMount(){const{nonce:ee}=this.props,V=this._autoSizer?this._autoSizer.parentNode:null;if(V!=null&&V.ownerDocument&&V.ownerDocument.defaultView&&V instanceof V.ownerDocument.defaultView.HTMLElement){this._parentNode=V;const j=V.ownerDocument.defaultView.ResizeObserver;j!=null?(this._resizeObserver=new j(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(V)):(this._detectElementResize=xe(ee),this._detectElementResize.addResizeListener(V,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:ee,defaultHeight:V,defaultWidth:j,disableHeight:y=!1,disableWidth:se=!1,doNotBailOutOnEmptyChildren:Re=!1,nonce:h,onResize:pe,style:ve={},tagName:Ie="div",...be}=this.props,{height:_,scaledHeight:te,scaledWidth:Z,width:he}=this.state,Te={overflow:"visible"},G={};let Q=!1;return y||(_===0&&(Q=!0),Te.height=0,G.height=_,G.scaledHeight=te),se||(he===0&&(Q=!0),Te.width=0,G.width=he,G.scaledWidth=Z),Re&&(Q=!1),(0,H.createElement)(Ie,{ref:this._setRef,style:{...Te,...ve},...be},!Q&&ee(G))}}function We(fe){return fe&&fe.disableHeight!==!0&&fe.disableWidth!==!0}function je(fe){return fe&&fe.disableHeight!==!0&&fe.disableWidth===!0}function Ve(fe){return fe&&fe.disableHeight===!0&&fe.disableWidth!==!0}},84392:(de,ce,b)=>{"use strict";b.d(ce,{Y1:()=>rt});var H=b(89575),W=b(2474),ue=b(79140),D=b(56840),F=b(14041),X=typeof performance=="object"&&typeof performance.now=="function",Se=X?function(){return performance.now()}:function(){return Date.now()};function ge(u){cancelAnimationFrame(u.id)}function ye(u,e){var i=Se();function o(){Se()-i>=e?u.call(null):a.id=requestAnimationFrame(o)}var a={id:requestAnimationFrame(o)};return a}var xe=-1;function we(u){if(u===void 0&&(u=!1),xe===-1||u){var e=document.createElement("div"),i=e.style;i.width="50px",i.height="50px",i.overflow="scroll",document.body.appendChild(e),xe=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return xe}var We=null;function je(u){if(u===void 0&&(u=!1),We===null||u){var e=document.createElement("div"),i=e.style;i.width="50px",i.height="50px",i.overflow="scroll",i.direction="rtl";var o=document.createElement("div"),a=o.style;return a.width="100px",a.height="100px",e.appendChild(o),document.body.appendChild(e),e.scrollLeft>0?We="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?We="negative":We="positive-ascending"),document.body.removeChild(e),We}return We}var Ve=150,fe=function(e){var i=e.columnIndex,o=e.data,a=e.rowIndex;return a+":"+i},ee=null,V=null,j=null;function y(u){var e,i=u.getColumnOffset,o=u.getColumnStartIndexForOffset,a=u.getColumnStopIndexForStartIndex,m=u.getColumnWidth,d=u.getEstimatedTotalHeight,p=u.getEstimatedTotalWidth,S=u.getOffsetForColumnAndAlignment,E=u.getOffsetForRowAndAlignment,w=u.getRowHeight,M=u.getRowOffset,T=u.getRowStartIndexForOffset,B=u.getRowStopIndexForStartIndex,J=u.initInstanceProps,l=u.shouldResetStyleCacheOnItemSizeChange,x=u.validateProps;return e=function(O){(0,ue.A)(L,O);function L(N){var s;return s=O.call(this,N)||this,s._instanceProps=J(s.props,(0,W.A)(s)),s._resetIsScrollingTimeoutId=null,s._outerRef=void 0,s.state={instance:(0,W.A)(s),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:typeof s.props.initialScrollLeft=="number"?s.props.initialScrollLeft:0,scrollTop:typeof s.props.initialScrollTop=="number"?s.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},s._callOnItemsRendered=void 0,s._callOnItemsRendered=(0,D.A)(function(I,C,A,P,z,$,ne,me){return s.props.onItemsRendered({overscanColumnStartIndex:I,overscanColumnStopIndex:C,overscanRowStartIndex:A,overscanRowStopIndex:P,visibleColumnStartIndex:z,visibleColumnStopIndex:$,visibleRowStartIndex:ne,visibleRowStopIndex:me})}),s._callOnScroll=void 0,s._callOnScroll=(0,D.A)(function(I,C,A,P,z){return s.props.onScroll({horizontalScrollDirection:A,scrollLeft:I,scrollTop:C,verticalScrollDirection:P,scrollUpdateWasRequested:z})}),s._getItemStyle=void 0,s._getItemStyle=function(I,C){var A=s.props,P=A.columnWidth,z=A.direction,$=A.rowHeight,ne=s._getItemStyleCache(l&&P,l&&z,l&&$),me=I+":"+C,re;if(ne.hasOwnProperty(me))re=ne[me];else{var ie=i(s.props,C,s._instanceProps),ae=z==="rtl";ne[me]=re={position:"absolute",left:ae?void 0:ie,right:ae?ie:void 0,top:M(s.props,I,s._instanceProps),height:w(s.props,I,s._instanceProps),width:m(s.props,C,s._instanceProps)}}return re},s._getItemStyleCache=void 0,s._getItemStyleCache=(0,D.A)(function(I,C,A){return{}}),s._onScroll=function(I){var C=I.currentTarget,A=C.clientHeight,P=C.clientWidth,z=C.scrollLeft,$=C.scrollTop,ne=C.scrollHeight,me=C.scrollWidth;s.setState(function(re){if(re.scrollLeft===z&&re.scrollTop===$)return null;var ie=s.props.direction,ae=z;if(ie==="rtl")switch(je()){case"negative":ae=-z;break;case"positive-descending":ae=me-P-z;break}ae=Math.max(0,Math.min(ae,me-P));var Ee=Math.max(0,Math.min($,ne-A));return{isScrolling:!0,horizontalScrollDirection:re.scrollLeft<z?"forward":"backward",scrollLeft:ae,scrollTop:Ee,verticalScrollDirection:re.scrollTop<$?"forward":"backward",scrollUpdateWasRequested:!1}},s._resetIsScrollingDebounced)},s._outerRefSetter=function(I){var C=s.props.outerRef;s._outerRef=I,typeof C=="function"?C(I):C!=null&&typeof C=="object"&&C.hasOwnProperty("current")&&(C.current=I)},s._resetIsScrollingDebounced=function(){s._resetIsScrollingTimeoutId!==null&&ge(s._resetIsScrollingTimeoutId),s._resetIsScrollingTimeoutId=ye(s._resetIsScrolling,Ve)},s._resetIsScrolling=function(){s._resetIsScrollingTimeoutId=null,s.setState({isScrolling:!1},function(){s._getItemStyleCache(-1)})},s}L.getDerivedStateFromProps=function(s,I){return se(s,I),x(s),null};var k=L.prototype;return k.scrollTo=function(s){var I=s.scrollLeft,C=s.scrollTop;I!==void 0&&(I=Math.max(0,I)),C!==void 0&&(C=Math.max(0,C)),this.setState(function(A){return I===void 0&&(I=A.scrollLeft),C===void 0&&(C=A.scrollTop),A.scrollLeft===I&&A.scrollTop===C?null:{horizontalScrollDirection:A.scrollLeft<I?"forward":"backward",scrollLeft:I,scrollTop:C,scrollUpdateWasRequested:!0,verticalScrollDirection:A.scrollTop<C?"forward":"backward"}},this._resetIsScrollingDebounced)},k.scrollToItem=function(s){var I=s.align,C=I===void 0?"auto":I,A=s.columnIndex,P=s.rowIndex,z=this.props,$=z.columnCount,ne=z.height,me=z.rowCount,re=z.width,ie=this.state,ae=ie.scrollLeft,Ee=ie.scrollTop,Oe=we();A!==void 0&&(A=Math.max(0,Math.min(A,$-1))),P!==void 0&&(P=Math.max(0,Math.min(P,me-1)));var He=d(this.props,this._instanceProps),_e=p(this.props,this._instanceProps),De=_e>re?Oe:0,Ge=He>ne?Oe:0;this.scrollTo({scrollLeft:A!==void 0?S(this.props,A,C,ae,this._instanceProps,Ge):ae,scrollTop:P!==void 0?E(this.props,P,C,Ee,this._instanceProps,De):Ee})},k.componentDidMount=function(){var s=this.props,I=s.initialScrollLeft,C=s.initialScrollTop;if(this._outerRef!=null){var A=this._outerRef;typeof I=="number"&&(A.scrollLeft=I),typeof C=="number"&&(A.scrollTop=C)}this._callPropsCallbacks()},k.componentDidUpdate=function(){var s=this.props.direction,I=this.state,C=I.scrollLeft,A=I.scrollTop,P=I.scrollUpdateWasRequested;if(P&&this._outerRef!=null){var z=this._outerRef;if(s==="rtl")switch(je()){case"negative":z.scrollLeft=-C;break;case"positive-ascending":z.scrollLeft=C;break;default:var $=z.clientWidth,ne=z.scrollWidth;z.scrollLeft=ne-$-C;break}else z.scrollLeft=Math.max(0,C);z.scrollTop=Math.max(0,A)}this._callPropsCallbacks()},k.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&ge(this._resetIsScrollingTimeoutId)},k.render=function(){var s=this.props,I=s.children,C=s.className,A=s.columnCount,P=s.direction,z=s.height,$=s.innerRef,ne=s.innerElementType,me=s.innerTagName,re=s.itemData,ie=s.itemKey,ae=ie===void 0?fe:ie,Ee=s.outerElementType,Oe=s.outerTagName,He=s.rowCount,_e=s.style,De=s.useIsScrolling,Ge=s.width,Qe=this.state.isScrolling,Pe=this._getHorizontalRangeToRender(),Ae=Pe[0],St=Pe[1],qe=this._getVerticalRangeToRender(),et=qe[0],It=qe[1],dt=[];if(A>0&&He)for(var Be=et;Be<=It;Be++)for(var Ue=Ae;Ue<=St;Ue++)dt.push((0,F.createElement)(I,{columnIndex:Ue,data:re,isScrolling:De?Qe:void 0,key:ae({columnIndex:Ue,data:re,rowIndex:Be}),rowIndex:Be,style:this._getItemStyle(Be,Ue)}));var ft=d(this.props,this._instanceProps),ht=p(this.props,this._instanceProps);return(0,F.createElement)(Ee||Oe||"div",{className:C,onScroll:this._onScroll,ref:this._outerRefSetter,style:(0,H.A)({position:"relative",height:z,width:Ge,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:P},_e)},(0,F.createElement)(ne||me||"div",{children:dt,ref:$,style:{height:ft,pointerEvents:Qe?"none":void 0,width:ht}}))},k._callPropsCallbacks=function(){var s=this.props,I=s.columnCount,C=s.onItemsRendered,A=s.onScroll,P=s.rowCount;if(typeof C=="function"&&I>0&&P>0){var z=this._getHorizontalRangeToRender(),$=z[0],ne=z[1],me=z[2],re=z[3],ie=this._getVerticalRangeToRender(),ae=ie[0],Ee=ie[1],Oe=ie[2],He=ie[3];this._callOnItemsRendered($,ne,ae,Ee,me,re,Oe,He)}if(typeof A=="function"){var _e=this.state,De=_e.horizontalScrollDirection,Ge=_e.scrollLeft,Qe=_e.scrollTop,Pe=_e.scrollUpdateWasRequested,Ae=_e.verticalScrollDirection;this._callOnScroll(Ge,Qe,De,Ae,Pe)}},k._getHorizontalRangeToRender=function(){var s=this.props,I=s.columnCount,C=s.overscanColumnCount,A=s.overscanColumnsCount,P=s.overscanCount,z=s.rowCount,$=this.state,ne=$.horizontalScrollDirection,me=$.isScrolling,re=$.scrollLeft,ie=C||A||P||1;if(I===0||z===0)return[0,0,0,0];var ae=o(this.props,re,this._instanceProps),Ee=a(this.props,ae,re,this._instanceProps),Oe=!me||ne==="backward"?Math.max(1,ie):1,He=!me||ne==="forward"?Math.max(1,ie):1;return[Math.max(0,ae-Oe),Math.max(0,Math.min(I-1,Ee+He)),ae,Ee]},k._getVerticalRangeToRender=function(){var s=this.props,I=s.columnCount,C=s.overscanCount,A=s.overscanRowCount,P=s.overscanRowsCount,z=s.rowCount,$=this.state,ne=$.isScrolling,me=$.verticalScrollDirection,re=$.scrollTop,ie=A||P||C||1;if(I===0||z===0)return[0,0,0,0];var ae=T(this.props,re,this._instanceProps),Ee=B(this.props,ae,re,this._instanceProps),Oe=!ne||me==="backward"?Math.max(1,ie):1,He=!ne||me==="forward"?Math.max(1,ie):1;return[Math.max(0,ae-Oe),Math.max(0,Math.min(z-1,Ee+He)),ae,Ee]},L}(F.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},e}var se=function(e,i){var o=e.children,a=e.direction,m=e.height,d=e.innerTagName,p=e.outerTagName,S=e.overscanColumnsCount,E=e.overscanCount,w=e.overscanRowsCount,M=e.width,T=i.instance},Re=50,h=function(e,i){var o=e.rowCount,a=i.rowMetadataMap,m=i.estimatedRowHeight,d=i.lastMeasuredRowIndex,p=0;if(d>=o&&(d=o-1),d>=0){var S=a[d];p=S.offset+S.size}var E=o-d-1,w=E*m;return p+w},pe=function(e,i){var o=e.columnCount,a=i.columnMetadataMap,m=i.estimatedColumnWidth,d=i.lastMeasuredColumnIndex,p=0;if(d>=o&&(d=o-1),d>=0){var S=a[d];p=S.offset+S.size}var E=o-d-1,w=E*m;return p+w},ve=function(e,i,o,a){var m,d,p;if(e==="column"?(m=a.columnMetadataMap,d=i.columnWidth,p=a.lastMeasuredColumnIndex):(m=a.rowMetadataMap,d=i.rowHeight,p=a.lastMeasuredRowIndex),o>p){var S=0;if(p>=0){var E=m[p];S=E.offset+E.size}for(var w=p+1;w<=o;w++){var M=d(w);m[w]={offset:S,size:M},S+=M}e==="column"?a.lastMeasuredColumnIndex=o:a.lastMeasuredRowIndex=o}return m[o]},Ie=function(e,i,o,a){var m,d;e==="column"?(m=o.columnMetadataMap,d=o.lastMeasuredColumnIndex):(m=o.rowMetadataMap,d=o.lastMeasuredRowIndex);var p=d>0?m[d].offset:0;return p>=a?be(e,i,o,d,0,a):_(e,i,o,Math.max(0,d),a)},be=function(e,i,o,a,m,d){for(;m<=a;){var p=m+Math.floor((a-m)/2),S=ve(e,i,p,o).offset;if(S===d)return p;S<d?m=p+1:S>d&&(a=p-1)}return m>0?m-1:0},_=function(e,i,o,a,m){for(var d=e==="column"?i.columnCount:i.rowCount,p=1;a<d&&ve(e,i,a,o).offset<m;)a+=p,p*=2;return be(e,i,o,Math.min(a,d-1),Math.floor(a/2),m)},te=function(e,i,o,a,m,d,p){var S=e==="column"?i.width:i.height,E=ve(e,i,o,d),w=e==="column"?pe(i,d):h(i,d),M=Math.max(0,Math.min(w-S,E.offset)),T=Math.max(0,E.offset-S+p+E.size);switch(a==="smart"&&(m>=T-S&&m<=M+S?a="auto":a="center"),a){case"start":return M;case"end":return T;case"center":return Math.round(T+(M-T)/2);case"auto":default:return m>=T&&m<=M?m:T>M||m<T?T:M}},Z=y({getColumnOffset:function(e,i,o){return ve("column",e,i,o).offset},getColumnStartIndexForOffset:function(e,i,o){return Ie("column",e,o,i)},getColumnStopIndexForStartIndex:function(e,i,o,a){for(var m=e.columnCount,d=e.width,p=ve("column",e,i,a),S=o+d,E=p.offset+p.size,w=i;w<m-1&&E<S;)w++,E+=ve("column",e,w,a).size;return w},getColumnWidth:function(e,i,o){return o.columnMetadataMap[i].size},getEstimatedTotalHeight:h,getEstimatedTotalWidth:pe,getOffsetForColumnAndAlignment:function(e,i,o,a,m,d){return te("column",e,i,o,a,m,d)},getOffsetForRowAndAlignment:function(e,i,o,a,m,d){return te("row",e,i,o,a,m,d)},getRowOffset:function(e,i,o){return ve("row",e,i,o).offset},getRowHeight:function(e,i,o){return o.rowMetadataMap[i].size},getRowStartIndexForOffset:function(e,i,o){return Ie("row",e,o,i)},getRowStopIndexForStartIndex:function(e,i,o,a){for(var m=e.rowCount,d=e.height,p=ve("row",e,i,a),S=o+d,E=p.offset+p.size,w=i;w<m-1&&E<S;)w++,E+=ve("row",e,w,a).size;return w},initInstanceProps:function(e,i){var o=e,a=o.estimatedColumnWidth,m=o.estimatedRowHeight,d={columnMetadataMap:{},estimatedColumnWidth:a||Re,estimatedRowHeight:m||Re,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return i.resetAfterColumnIndex=function(p,S){S===void 0&&(S=!0),i.resetAfterIndices({columnIndex:p,shouldForceUpdate:S})},i.resetAfterRowIndex=function(p,S){S===void 0&&(S=!0),i.resetAfterIndices({rowIndex:p,shouldForceUpdate:S})},i.resetAfterIndices=function(p){var S=p.columnIndex,E=p.rowIndex,w=p.shouldForceUpdate,M=w===void 0?!0:w;typeof S=="number"&&(d.lastMeasuredColumnIndex=Math.min(d.lastMeasuredColumnIndex,S-1)),typeof E=="number"&&(d.lastMeasuredRowIndex=Math.min(d.lastMeasuredRowIndex,E-1)),i._getItemStyleCache(-1),M&&i.forceUpdate()},d},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){var i=e.columnWidth,o=e.rowHeight}}),he=150,Te=function(e,i){return e},G=null,Q=null;function Ce(u){var e,i=u.getItemOffset,o=u.getEstimatedTotalSize,a=u.getItemSize,m=u.getOffsetForIndexAndAlignment,d=u.getStartIndexForOffset,p=u.getStopIndexForStartIndex,S=u.initInstanceProps,E=u.shouldResetStyleCacheOnItemSizeChange,w=u.validateProps;return e=function(M){(0,ue.A)(T,M);function T(J){var l;return l=M.call(this,J)||this,l._instanceProps=S(l.props,(0,W.A)(l)),l._outerRef=void 0,l._resetIsScrollingTimeoutId=null,l.state={instance:(0,W.A)(l),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof l.props.initialScrollOffset=="number"?l.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},l._callOnItemsRendered=void 0,l._callOnItemsRendered=(0,D.A)(function(x,O,L,k){return l.props.onItemsRendered({overscanStartIndex:x,overscanStopIndex:O,visibleStartIndex:L,visibleStopIndex:k})}),l._callOnScroll=void 0,l._callOnScroll=(0,D.A)(function(x,O,L){return l.props.onScroll({scrollDirection:x,scrollOffset:O,scrollUpdateWasRequested:L})}),l._getItemStyle=void 0,l._getItemStyle=function(x){var O=l.props,L=O.direction,k=O.itemSize,N=O.layout,s=l._getItemStyleCache(E&&k,E&&N,E&&L),I;if(s.hasOwnProperty(x))I=s[x];else{var C=i(l.props,x,l._instanceProps),A=a(l.props,x,l._instanceProps),P=L==="horizontal"||N==="horizontal",z=L==="rtl",$=P?C:0;s[x]=I={position:"absolute",left:z?void 0:$,right:z?$:void 0,top:P?0:C,height:P?"100%":A,width:P?A:"100%"}}return I},l._getItemStyleCache=void 0,l._getItemStyleCache=(0,D.A)(function(x,O,L){return{}}),l._onScrollHorizontal=function(x){var O=x.currentTarget,L=O.clientWidth,k=O.scrollLeft,N=O.scrollWidth;l.setState(function(s){if(s.scrollOffset===k)return null;var I=l.props.direction,C=k;if(I==="rtl")switch(je()){case"negative":C=-k;break;case"positive-descending":C=N-L-k;break}return C=Math.max(0,Math.min(C,N-L)),{isScrolling:!0,scrollDirection:s.scrollOffset<C?"forward":"backward",scrollOffset:C,scrollUpdateWasRequested:!1}},l._resetIsScrollingDebounced)},l._onScrollVertical=function(x){var O=x.currentTarget,L=O.clientHeight,k=O.scrollHeight,N=O.scrollTop;l.setState(function(s){if(s.scrollOffset===N)return null;var I=Math.max(0,Math.min(N,k-L));return{isScrolling:!0,scrollDirection:s.scrollOffset<I?"forward":"backward",scrollOffset:I,scrollUpdateWasRequested:!1}},l._resetIsScrollingDebounced)},l._outerRefSetter=function(x){var O=l.props.outerRef;l._outerRef=x,typeof O=="function"?O(x):O!=null&&typeof O=="object"&&O.hasOwnProperty("current")&&(O.current=x)},l._resetIsScrollingDebounced=function(){l._resetIsScrollingTimeoutId!==null&&ge(l._resetIsScrollingTimeoutId),l._resetIsScrollingTimeoutId=ye(l._resetIsScrolling,he)},l._resetIsScrolling=function(){l._resetIsScrollingTimeoutId=null,l.setState({isScrolling:!1},function(){l._getItemStyleCache(-1,null)})},l}T.getDerivedStateFromProps=function(l,x){return Le(l,x),w(l),null};var B=T.prototype;return B.scrollTo=function(l){l=Math.max(0,l),this.setState(function(x){return x.scrollOffset===l?null:{scrollDirection:x.scrollOffset<l?"forward":"backward",scrollOffset:l,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},B.scrollToItem=function(l,x){x===void 0&&(x="auto");var O=this.props,L=O.itemCount,k=O.layout,N=this.state.scrollOffset;l=Math.max(0,Math.min(l,L-1));var s=0;if(this._outerRef){var I=this._outerRef;k==="vertical"?s=I.scrollWidth>I.clientWidth?we():0:s=I.scrollHeight>I.clientHeight?we():0}this.scrollTo(m(this.props,l,x,N,this._instanceProps,s))},B.componentDidMount=function(){var l=this.props,x=l.direction,O=l.initialScrollOffset,L=l.layout;if(typeof O=="number"&&this._outerRef!=null){var k=this._outerRef;x==="horizontal"||L==="horizontal"?k.scrollLeft=O:k.scrollTop=O}this._callPropsCallbacks()},B.componentDidUpdate=function(){var l=this.props,x=l.direction,O=l.layout,L=this.state,k=L.scrollOffset,N=L.scrollUpdateWasRequested;if(N&&this._outerRef!=null){var s=this._outerRef;if(x==="horizontal"||O==="horizontal")if(x==="rtl")switch(je()){case"negative":s.scrollLeft=-k;break;case"positive-ascending":s.scrollLeft=k;break;default:var I=s.clientWidth,C=s.scrollWidth;s.scrollLeft=C-I-k;break}else s.scrollLeft=k;else s.scrollTop=k}this._callPropsCallbacks()},B.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&ge(this._resetIsScrollingTimeoutId)},B.render=function(){var l=this.props,x=l.children,O=l.className,L=l.direction,k=l.height,N=l.innerRef,s=l.innerElementType,I=l.innerTagName,C=l.itemCount,A=l.itemData,P=l.itemKey,z=P===void 0?Te:P,$=l.layout,ne=l.outerElementType,me=l.outerTagName,re=l.style,ie=l.useIsScrolling,ae=l.width,Ee=this.state.isScrolling,Oe=L==="horizontal"||$==="horizontal",He=Oe?this._onScrollHorizontal:this._onScrollVertical,_e=this._getRangeToRender(),De=_e[0],Ge=_e[1],Qe=[];if(C>0)for(var Pe=De;Pe<=Ge;Pe++)Qe.push((0,F.createElement)(x,{data:A,key:z(Pe,A),index:Pe,isScrolling:ie?Ee:void 0,style:this._getItemStyle(Pe)}));var Ae=o(this.props,this._instanceProps);return(0,F.createElement)(ne||me||"div",{className:O,onScroll:He,ref:this._outerRefSetter,style:(0,H.A)({position:"relative",height:k,width:ae,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:L},re)},(0,F.createElement)(s||I||"div",{children:Qe,ref:N,style:{height:Oe?"100%":Ae,pointerEvents:Ee?"none":void 0,width:Oe?Ae:"100%"}}))},B._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var l=this.props.itemCount;if(l>0){var x=this._getRangeToRender(),O=x[0],L=x[1],k=x[2],N=x[3];this._callOnItemsRendered(O,L,k,N)}}if(typeof this.props.onScroll=="function"){var s=this.state,I=s.scrollDirection,C=s.scrollOffset,A=s.scrollUpdateWasRequested;this._callOnScroll(I,C,A)}},B._getRangeToRender=function(){var l=this.props,x=l.itemCount,O=l.overscanCount,L=this.state,k=L.isScrolling,N=L.scrollDirection,s=L.scrollOffset;if(x===0)return[0,0,0,0];var I=d(this.props,s,this._instanceProps),C=p(this.props,I,s,this._instanceProps),A=!k||N==="backward"?Math.max(1,O):1,P=!k||N==="forward"?Math.max(1,O):1;return[Math.max(0,I-A),Math.max(0,Math.min(x-1,C+P)),I,C]},T}(F.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var Le=function(e,i){var o=e.children,a=e.direction,m=e.height,d=e.layout,p=e.innerTagName,S=e.outerTagName,E=e.width,w=i.instance;if(0)var M},ke=50,Ne=function(e,i,o){var a=e,m=a.itemSize,d=o.itemMetadataMap,p=o.lastMeasuredIndex;if(i>p){var S=0;if(p>=0){var E=d[p];S=E.offset+E.size}for(var w=p+1;w<=i;w++){var M=m(w);d[w]={offset:S,size:M},S+=M}o.lastMeasuredIndex=i}return d[i]},Ze=function(e,i,o){var a=i.itemMetadataMap,m=i.lastMeasuredIndex,d=m>0?a[m].offset:0;return d>=o?Ke(e,i,m,0,o):Je(e,i,Math.max(0,m),o)},Ke=function(e,i,o,a,m){for(;a<=o;){var d=a+Math.floor((o-a)/2),p=Ne(e,d,i).offset;if(p===m)return d;p<m?a=d+1:p>m&&(o=d-1)}return a>0?a-1:0},Je=function(e,i,o,a){for(var m=e.itemCount,d=1;o<m&&Ne(e,o,i).offset<a;)o+=d,d*=2;return Ke(e,i,Math.min(o,m-1),Math.floor(o/2),a)},Xe=function(e,i){var o=e.itemCount,a=i.itemMetadataMap,m=i.estimatedItemSize,d=i.lastMeasuredIndex,p=0;if(d>=o&&(d=o-1),d>=0){var S=a[d];p=S.offset+S.size}var E=o-d-1,w=E*m;return p+w},lt=Ce({getItemOffset:function(e,i,o){return Ne(e,i,o).offset},getItemSize:function(e,i,o){return o.itemMetadataMap[i].size},getEstimatedTotalSize:Xe,getOffsetForIndexAndAlignment:function(e,i,o,a,m,d){var p=e.direction,S=e.height,E=e.layout,w=e.width,M=p==="horizontal"||E==="horizontal",T=M?w:S,B=Ne(e,i,m),J=Xe(e,m),l=Math.max(0,Math.min(J-T,B.offset)),x=Math.max(0,B.offset-T+B.size+d);switch(o==="smart"&&(a>=x-T&&a<=l+T?o="auto":o="center"),o){case"start":return l;case"end":return x;case"center":return Math.round(x+(l-x)/2);case"auto":default:return a>=x&&a<=l?a:a<x?x:l}},getStartIndexForOffset:function(e,i,o){return Ze(e,o,i)},getStopIndexForStartIndex:function(e,i,o,a){for(var m=e.direction,d=e.height,p=e.itemCount,S=e.layout,E=e.width,w=m==="horizontal"||S==="horizontal",M=w?E:d,T=Ne(e,i,a),B=o+M,J=T.offset+T.size,l=i;l<p-1&&J<B;)l++,J+=Ne(e,l,a).size;return l},initInstanceProps:function(e,i){var o=e,a=o.estimatedItemSize,m={itemMetadataMap:{},estimatedItemSize:a||ke,lastMeasuredIndex:-1};return i.resetAfterIndex=function(d,p){p===void 0&&(p=!0),m.lastMeasuredIndex=Math.min(m.lastMeasuredIndex,d-1),i._getItemStyleCache(-1),p&&i.forceUpdate()},m},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){var i=e.itemSize}}),ct=y({getColumnOffset:function(e,i){var o=e.columnWidth;return i*o},getColumnWidth:function(e,i){var o=e.columnWidth;return o},getRowOffset:function(e,i){var o=e.rowHeight;return i*o},getRowHeight:function(e,i){var o=e.rowHeight;return o},getEstimatedTotalHeight:function(e){var i=e.rowCount,o=e.rowHeight;return o*i},getEstimatedTotalWidth:function(e){var i=e.columnCount,o=e.columnWidth;return o*i},getOffsetForColumnAndAlignment:function(e,i,o,a,m,d){var p=e.columnCount,S=e.columnWidth,E=e.width,w=Math.max(0,p*S-E),M=Math.min(w,i*S),T=Math.max(0,i*S-E+d+S);switch(o==="smart"&&(a>=T-E&&a<=M+E?o="auto":o="center"),o){case"start":return M;case"end":return T;case"center":var B=Math.round(T+(M-T)/2);return B<Math.ceil(E/2)?0:B>w+Math.floor(E/2)?w:B;case"auto":default:return a>=T&&a<=M?a:T>M||a<T?T:M}},getOffsetForRowAndAlignment:function(e,i,o,a,m,d){var p=e.rowHeight,S=e.height,E=e.rowCount,w=Math.max(0,E*p-S),M=Math.min(w,i*p),T=Math.max(0,i*p-S+d+p);switch(o==="smart"&&(a>=T-S&&a<=M+S?o="auto":o="center"),o){case"start":return M;case"end":return T;case"center":var B=Math.round(T+(M-T)/2);return B<Math.ceil(S/2)?0:B>w+Math.floor(S/2)?w:B;case"auto":default:return a>=T&&a<=M?a:T>M||a<T?T:M}},getColumnStartIndexForOffset:function(e,i){var o=e.columnWidth,a=e.columnCount;return Math.max(0,Math.min(a-1,Math.floor(i/o)))},getColumnStopIndexForStartIndex:function(e,i,o){var a=e.columnWidth,m=e.columnCount,d=e.width,p=i*a,S=Math.ceil((d+o-p)/a);return Math.max(0,Math.min(m-1,i+S-1))},getRowStartIndexForOffset:function(e,i){var o=e.rowHeight,a=e.rowCount;return Math.max(0,Math.min(a-1,Math.floor(i/o)))},getRowStopIndexForStartIndex:function(e,i,o){var a=e.rowHeight,m=e.rowCount,d=e.height,p=i*a,S=Math.ceil((d+o-p)/a);return Math.max(0,Math.min(m-1,i+S-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){var i=e.columnWidth,o=e.rowHeight}}),rt=Ce({getItemOffset:function(e,i){var o=e.itemSize;return i*o},getItemSize:function(e,i){var o=e.itemSize;return o},getEstimatedTotalSize:function(e){var i=e.itemCount,o=e.itemSize;return o*i},getOffsetForIndexAndAlignment:function(e,i,o,a,m,d){var p=e.direction,S=e.height,E=e.itemCount,w=e.itemSize,M=e.layout,T=e.width,B=p==="horizontal"||M==="horizontal",J=B?T:S,l=Math.max(0,E*w-J),x=Math.min(l,i*w),O=Math.max(0,i*w-J+w+d);switch(o==="smart"&&(a>=O-J&&a<=x+J?o="auto":o="center"),o){case"start":return x;case"end":return O;case"center":{var L=Math.round(O+(x-O)/2);return L<Math.ceil(J/2)?0:L>l+Math.floor(J/2)?l:L}case"auto":default:return a>=O&&a<=x?a:a<O?O:x}},getStartIndexForOffset:function(e,i){var o=e.itemCount,a=e.itemSize;return Math.max(0,Math.min(o-1,Math.floor(i/a)))},getStopIndexForStartIndex:function(e,i,o){var a=e.direction,m=e.height,d=e.itemCount,p=e.itemSize,S=e.layout,E=e.width,w=a==="horizontal"||S==="horizontal",M=i*p,T=w?E:m,B=Math.ceil((T+o-M)/p);return Math.max(0,Math.min(d-1,i+B-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){var i=e.itemSize}});function Ye(u,e){for(var i in u)if(!(i in e))return!0;for(var o in e)if(u[o]!==e[o])return!0;return!1}var it=null,ot=null;function st(u,e){var i=u.style,o=_objectWithoutPropertiesLoose(u,it),a=e.style,m=_objectWithoutPropertiesLoose(e,ot);return!Ye(i,a)&&!Ye(o,m)}function ut(u,e){return!st(this.props,u)||Ye(this.state,e)}},42:(de,ce,b)=>{"use strict";b.d(ce,{e:()=>D});var H=b(14041),W=b(16261);function ue(F,X){return typeof F=="function"?F(X):F}function D(F=!1,X=!0){const[Se,ge]=(0,H.useState)(F),ye=(0,W.J)(X);return[Se,(0,H.useCallback)(xe=>{ge(we=>xe===void 0||ye.current&&typeof xe=="object"&&(xe.constructor.name==="SyntheticBaseEvent"||typeof xe._reactName=="string")?!we:!!ue(xe,we))},[])]}},84774:(de,ce,b)=>{"use strict";b.d(ce,{A:()=>H});function H({onlyFirst:W=!1}={}){const D=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(D,W?void 0:"g")}}}]);})();
6
-
7
- //# sourceMappingURL=3308.13263a7d.chunk.js.map