@chillicream/nitro-embedded 20.0.0 → 20.0.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 (60) hide show
  1. package/asset-manifest.json +35 -35
  2. package/index.html +1 -1
  3. package/package.json +1 -1
  4. package/service-worker.js +1 -1
  5. package/static/css/{styles.3e5f6824.css → styles.15b5693c.css} +1 -1
  6. package/static/js/110.e9e92b52.js +2 -0
  7. package/static/js/177.dbf43818.chunk.js +2 -0
  8. package/static/js/{762.76d2e08a.chunk.js.LICENSE.txt → 177.dbf43818.chunk.js.LICENSE.txt} +2 -0
  9. package/static/js/195.4cc6e1d0.chunk.js +1 -0
  10. package/static/js/224.1a2dabe7.chunk.js +1 -0
  11. package/static/js/264.e9e92b52.js +1 -0
  12. package/static/js/522.2aaf5f49.chunk.js +1 -0
  13. package/static/js/81.3a5e0fef.chunk.js +1 -0
  14. package/static/js/86.e8257075.chunk.js +1 -0
  15. package/static/js/887.e9e92b52.js +2 -0
  16. package/static/js/{459.bb82ca7b.js.LICENSE.txt → 887.e9e92b52.js.LICENSE.txt} +1 -1
  17. package/static/js/907.e9e92b52.js +1 -0
  18. package/static/js/927.e9e92b52.js +1 -0
  19. package/static/js/936.e9e92b52.js +1 -0
  20. package/static/js/938.a3f01930.chunk.js +1 -0
  21. package/static/js/940.e9e92b52.js +1 -0
  22. package/static/js/996.99877939.chunk.js +1 -0
  23. package/static/js/editor.e9e92b52.js +1 -0
  24. package/static/js/graphql-engine.b8b03270.chunk.js +1 -0
  25. package/static/js/graphql-indexer.9faee0a8.chunk.js +1 -0
  26. package/static/js/graphql.worker.e9e92b52.js +2 -0
  27. package/static/js/json.e9e92b52.js +2 -0
  28. package/static/js/main.e9e92b52.js +2 -0
  29. package/static/js/polyfills.e9e92b52.js +1 -0
  30. package/static/js/session.2396e06c.chunk.js +1 -0
  31. package/static/js/yaml.worker.e9e92b52.js +1 -0
  32. package/static/js/110.bb82ca7b.js +0 -2
  33. package/static/js/195.6d82bb33.chunk.js +0 -1
  34. package/static/js/264.bb82ca7b.js +0 -1
  35. package/static/js/435.bb82ca7b.js +0 -1
  36. package/static/js/459.bb82ca7b.js +0 -102
  37. package/static/js/522.0da62492.chunk.js +0 -1
  38. package/static/js/692.94345d72.chunk.js +0 -1
  39. package/static/js/762.76d2e08a.chunk.js +0 -111
  40. package/static/js/785.6dfcf288.chunk.js +0 -1
  41. package/static/js/81.7ef63da7.chunk.js +0 -2
  42. package/static/js/86.a88d32a1.chunk.js +0 -1
  43. package/static/js/927.bb82ca7b.js +0 -1
  44. package/static/js/936.bb82ca7b.js +0 -1
  45. package/static/js/99.bb82ca7b.js +0 -1
  46. package/static/js/996.ed393652.chunk.js +0 -1
  47. package/static/js/editor.bb82ca7b.js +0 -1
  48. package/static/js/graphql-engine.781c9293.chunk.js +0 -1
  49. package/static/js/graphql-indexer.b0f0f3b9.chunk.js +0 -1
  50. package/static/js/graphql.worker.bb82ca7b.js +0 -2
  51. package/static/js/json.bb82ca7b.js +0 -2
  52. package/static/js/json.bb82ca7b.js.LICENSE.txt +0 -6
  53. package/static/js/main.bb82ca7b.js +0 -2
  54. package/static/js/polyfills.bb82ca7b.js +0 -1
  55. package/static/js/session.1b18a1e8.chunk.js +0 -1
  56. package/static/js/yaml.worker.bb82ca7b.js +0 -22
  57. /package/static/js/{110.bb82ca7b.js.LICENSE.txt → 110.e9e92b52.js.LICENSE.txt} +0 -0
  58. /package/static/js/{graphql.worker.bb82ca7b.js.LICENSE.txt → graphql.worker.e9e92b52.js.LICENSE.txt} +0 -0
  59. /package/static/js/{81.7ef63da7.chunk.js.LICENSE.txt → json.e9e92b52.js.LICENSE.txt} +0 -0
  60. /package/static/js/{main.bb82ca7b.js.LICENSE.txt → main.e9e92b52.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunknitro=self.webpackChunknitro||[]).push([[522],{1069:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a=function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"apiId"}],n=[{kind:"Variable",name:"id",variableName:"apiId"}],l={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null};return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"apiViewToolbarQuery",selections:[{alias:"api",args:n,concreteType:"Api",kind:"LinkedField",name:"apiById",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"editStagesDialogFragment"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"apiViewToolbarQuery",selections:[{alias:"api",args:n,concreteType:"Api",kind:"LinkedField",name:"apiById",plural:!1,selections:[{alias:null,args:null,concreteType:"Stage",kind:"LinkedField",name:"stages",plural:!0,selections:[l,a,{alias:null,args:null,kind:"ScalarField",name:"displayName",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"conditions",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Stage",kind:"LinkedField",name:"afterStage",plural:!1,selections:[a,l],storageKey:null}],type:"AfterStageCondition",abstractKey:null}],storageKey:null}],storageKey:null},l],storageKey:null}]},params:{id:"7cfd270c8d64046382b6c06de3b71fc0",metadata:{},name:"apiViewToolbarQuery",operationKind:"query",text:null}}}();a.hash="cf9af5e8ab87a73706154909877e6fae";const t=a},14205:(e,n,l)=>{l.r(n),l.d(n,{default:()=>r});const a=function(){var e=[{defaultValue:50,kind:"LocalArgument",name:"count"},{defaultValue:null,kind:"LocalArgument",name:"cursor"},{defaultValue:null,kind:"LocalArgument",name:"id"}],n=[{kind:"Variable",name:"id",variableName:"id"}],l={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},t=[{kind:"Variable",name:"after",variableName:"cursor"},{kind:"Variable",name:"first",variableName:"count"}];return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"clientGridPaginationQuery",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{args:[{kind:"Variable",name:"count",variableName:"count"},{kind:"Variable",name:"cursor",variableName:"cursor"}],kind:"FragmentSpread",name:"clientGridFragment"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"clientGridPaginationQuery",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[l,a,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Api",kind:"LinkedField",name:"api",plural:!1,selections:[{alias:null,args:null,concreteType:"Stage",kind:"LinkedField",name:"stages",plural:!0,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null}],storageKey:null},a],storageKey:null},{alias:null,args:t,concreteType:"ClientVersionConnection",kind:"LinkedField",name:"versions",plural:!1,selections:[{alias:null,args:null,concreteType:"ClientVersionEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"ClientVersion",kind:"LinkedField",name:"node",plural:!1,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"tag",storageKey:null},{alias:null,args:null,concreteType:"PublishedClientVersion",kind:"LinkedField",name:"publishedTo",plural:!0,selections:[{alias:null,args:null,concreteType:"Stage",kind:"LinkedField",name:"stage",plural:!1,selections:[a],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"publishedAt",storageKey:null}],storageKey:null},l],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:t,filters:null,handle:"connection",key:"clientGrid_client_versions",kind:"LinkedHandle",name:"versions"}],type:"Client",abstractKey:null}],storageKey:null}]},params:{id:"246d263e86f3d4f0ac06a3df4fea04e1",metadata:{},name:"clientGridPaginationQuery",operationKind:"query",text:null}}}();a.hash="d750d8439aaa5862bcb951e9792e869c";const t=a,i=function(){var e=["versions"],n={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{argumentDefinitions:[{defaultValue:50,kind:"LocalArgument",name:"count"},{defaultValue:null,kind:"LocalArgument",name:"cursor"}],kind:"Fragment",metadata:{connection:[{count:"count",cursor:"cursor",direction:"forward",path:e}],refetch:{connection:{forward:{count:"count",cursor:"cursor"},backward:null,path:e},fragmentPathInResult:["node"],operation:t,identifierInfo:{identifierField:"id",identifierQueryVariableName:"id"}}},name:"clientGridFragment",selections:[{alias:null,args:null,concreteType:"Api",kind:"LinkedField",name:"api",plural:!1,selections:[{alias:null,args:null,concreteType:"Stage",kind:"LinkedField",name:"stages",plural:!0,selections:[n,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null}],storageKey:null}],storageKey:null},{alias:"versions",args:null,concreteType:"ClientVersionConnection",kind:"LinkedField",name:"__clientGrid_client_versions_connection",plural:!1,selections:[{alias:null,args:null,concreteType:"ClientVersionEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"ClientVersion",kind:"LinkedField",name:"node",plural:!1,selections:[n,{alias:null,args:null,kind:"ScalarField",name:"tag",storageKey:null},{alias:null,args:null,concreteType:"PublishedClientVersion",kind:"LinkedField",name:"publishedTo",plural:!0,selections:[{alias:null,args:null,concreteType:"Stage",kind:"LinkedField",name:"stage",plural:!1,selections:[n],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"publishedAt",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:null},n],type:"Client",abstractKey:null}}();i.hash="d750d8439aaa5862bcb951e9792e869c";const r=i},55587:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a=function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"clientId"}],n=[{kind:"Variable",name:"id",variableName:"clientId"}],l={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},t=[{kind:"Literal",name:"first",value:50}];return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"clientGridQuery",selections:[{alias:"client",args:n,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"clientGridFragment"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"clientGridQuery",selections:[{alias:"client",args:n,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[l,a,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Api",kind:"LinkedField",name:"api",plural:!1,selections:[{alias:null,args:null,concreteType:"Stage",kind:"LinkedField",name:"stages",plural:!0,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null}],storageKey:null},a],storageKey:null},{alias:null,args:t,concreteType:"ClientVersionConnection",kind:"LinkedField",name:"versions",plural:!1,selections:[{alias:null,args:null,concreteType:"ClientVersionEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"ClientVersion",kind:"LinkedField",name:"node",plural:!1,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"tag",storageKey:null},{alias:null,args:null,concreteType:"PublishedClientVersion",kind:"LinkedField",name:"publishedTo",plural:!0,selections:[{alias:null,args:null,concreteType:"Stage",kind:"LinkedField",name:"stage",plural:!1,selections:[a],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"publishedAt",storageKey:null}],storageKey:null},l],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:"versions(first:50)"},{alias:null,args:t,filters:null,handle:"connection",key:"clientGrid_client_versions",kind:"LinkedHandle",name:"versions"}],type:"Client",abstractKey:null}],storageKey:null}]},params:{id:"40aac566c8eb935cdfc15979c7171e87",metadata:{},name:"clientGridQuery",operationKind:"query",text:null}}}();a.hash="8b506ef2c3533953c531ea1d23e2881d";const t=a},96905:(e,n,l)=>{l.r(n),l.d(n,{default:()=>r});const a=function(){var e=[{defaultValue:50,kind:"LocalArgument",name:"count"},{defaultValue:null,kind:"LocalArgument",name:"cursor"},{defaultValue:null,kind:"LocalArgument",name:"id"}],n=[{kind:"Variable",name:"id",variableName:"id"}],l={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},t=[{kind:"Variable",name:"after",variableName:"cursor"},{kind:"Variable",name:"first",variableName:"count"}];return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"clientsListContentChangelogPaginationQuery",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{args:[{kind:"Variable",name:"count",variableName:"count"},{kind:"Variable",name:"cursor",variableName:"cursor"}],kind:"FragmentSpread",name:"clientsListContentChangelogFragment"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"clientsListContentChangelogPaginationQuery",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[l,a,{kind:"InlineFragment",selections:[{alias:null,args:t,concreteType:"ClientsConnection",kind:"LinkedField",name:"clients",plural:!1,selections:[{alias:null,args:null,concreteType:"ClientsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"Client",kind:"LinkedField",name:"node",plural:!1,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},l],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:t,filters:null,handle:"connection",key:"clientsListContent_api_clients",kind:"LinkedHandle",name:"clients"}],type:"Api",abstractKey:null}],storageKey:null}]},params:{id:"bc25eaeb8f998b9589b1ff16bcaefe9f",metadata:{},name:"clientsListContentChangelogPaginationQuery",operationKind:"query",text:null}}}();a.hash="56eb3e1826ebd3751953e1fbbb28b4ae";const t=a,i=function(){var e=["clients"],n={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{argumentDefinitions:[{defaultValue:50,kind:"LocalArgument",name:"count"},{defaultValue:null,kind:"LocalArgument",name:"cursor"}],kind:"Fragment",metadata:{connection:[{count:"count",cursor:"cursor",direction:"forward",path:e}],refetch:{connection:{forward:{count:"count",cursor:"cursor"},backward:null,path:e},fragmentPathInResult:["node"],operation:t,identifierInfo:{identifierField:"id",identifierQueryVariableName:"id"}}},name:"clientsListContentChangelogFragment",selections:[{alias:"clients",args:null,concreteType:"ClientsConnection",kind:"LinkedField",name:"__clientsListContent_api_clients_connection",plural:!1,selections:[{alias:null,args:null,concreteType:"ClientsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"Client",kind:"LinkedField",name:"node",plural:!1,selections:[n,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:null},n],type:"Api",abstractKey:null}}();i.hash="56eb3e1826ebd3751953e1fbbb28b4ae";const r=i},77309:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a=function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"apiId"}],n=[{kind:"Variable",name:"id",variableName:"apiId"}],l=[{kind:"Literal",name:"first",value:50}],a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"clientsListContentQuery",selections:[{alias:"api",args:n,concreteType:"Api",kind:"LinkedField",name:"apiById",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"clientsListContentChangelogFragment"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"clientsListContentQuery",selections:[{alias:"api",args:n,concreteType:"Api",kind:"LinkedField",name:"apiById",plural:!1,selections:[{alias:null,args:l,concreteType:"ClientsConnection",kind:"LinkedField",name:"clients",plural:!1,selections:[{alias:null,args:null,concreteType:"ClientsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"Client",kind:"LinkedField",name:"node",plural:!1,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:"clients(first:50)"},{alias:null,args:l,filters:null,handle:"connection",key:"clientsListContent_api_clients",kind:"LinkedHandle",name:"clients"},a],storageKey:null}]},params:{id:"ae754b81f33c47c6b6e0067796ff7e9c",metadata:{},name:"clientsListContentQuery",operationKind:"query",text:null}}}();a.hash="08bfd3b94c3747723d025702f0b5112e";const t=a},9983:(e,n,l)=>{l.r(n),l.d(n,{default:()=>r});const a=function(){var e=[{defaultValue:15,kind:"LocalArgument",name:"count"},{defaultValue:null,kind:"LocalArgument",name:"cursor"},{defaultValue:null,kind:"LocalArgument",name:"id"}],n=[{kind:"Variable",name:"id",variableName:"id"}],l={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},t=[{kind:"Variable",name:"after",variableName:"cursor"},{kind:"Variable",name:"first",variableName:"count"}],i={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null};return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"deploymentContainerPaginationQuery",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{args:[{kind:"Variable",name:"count",variableName:"count"},{kind:"Variable",name:"cursor",variableName:"cursor"}],kind:"FragmentSpread",name:"deploymentContainerFragment"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"deploymentContainerPaginationQuery",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[l,a,{kind:"InlineFragment",selections:[{alias:null,args:t,concreteType:"DeploymentsConnection",kind:"LinkedField",name:"deployments",plural:!1,selections:[{alias:null,args:null,concreteType:"DeploymentsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[l,a,{kind:"TypeDiscriminator",abstractKey:"__isDeployment"},{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"createdAt",storageKey:null},{alias:null,args:null,concreteType:"DeploymentApproval",kind:"LinkedField",name:"approval",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"approvedAt",storageKey:null},{alias:null,args:null,concreteType:"UserInfo",kind:"LinkedField",name:"approvedBy",plural:!1,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null}],storageKey:null}],storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Client",kind:"LinkedField",name:"client",plural:!1,selections:[i,a],storageKey:null}],type:"ClientDeployment",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"subgraph",plural:!1,selections:[l,i,{alias:null,args:null,concreteType:"Api",kind:"LinkedField",name:"api",plural:!1,selections:[a],storageKey:null},a],storageKey:null}],type:"FusionConfigurationDeployment",abstractKey:null},{alias:null,args:null,kind:"ScalarField",name:"tag",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:t,filters:null,handle:"connection",key:"deployment_container_api_deployments",kind:"LinkedHandle",name:"deployments"}],type:"Stage",abstractKey:null}],storageKey:null}]},params:{id:"0e7ea1ece0ef90adaf21f9c4bb11e7c1",metadata:{},name:"deploymentContainerPaginationQuery",operationKind:"query",text:null}}}();a.hash="0e63f4e89e831809228702ce2c767ad0";const t=a,i=function(){var e=["deployments"],n={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{argumentDefinitions:[{defaultValue:15,kind:"LocalArgument",name:"count"},{defaultValue:null,kind:"LocalArgument",name:"cursor"}],kind:"Fragment",metadata:{connection:[{count:"count",cursor:"cursor",direction:"forward",path:e}],refetch:{connection:{forward:{count:"count",cursor:"cursor"},backward:null,path:e},fragmentPathInResult:["node"],operation:t,identifierInfo:{identifierField:"id",identifierQueryVariableName:"id"}}},name:"deploymentContainerFragment",selections:[{alias:"deployments",args:null,concreteType:"DeploymentsConnection",kind:"LinkedField",name:"__deployment_container_api_deployments_connection",plural:!1,selections:[{alias:null,args:null,concreteType:"DeploymentsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[n,{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"deploymentListFragment"},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:null},n],type:"Stage",abstractKey:null}}();i.hash="0e63f4e89e831809228702ce2c767ad0";const r=i},72030:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a=function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"input"}],n=[{kind:"Variable",name:"input",variableName:"input"}],l={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"tag",storageKey:null},i=[{alias:null,args:null,kind:"ScalarField",name:"timestamp",storageKey:null}],r={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},s={alias:null,args:null,concreteType:"SchemaChangeLogStatistic",kind:"LinkedField",name:"statistic",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"breaking",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"dangerous",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"safe",storageKey:null}],storageKey:null};return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"deploymentDetailsApproveDeploymentMutation",selections:[{alias:null,args:n,concreteType:"ApproveDeploymentPayload",kind:"LinkedField",name:"approveDeployment",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"deployment",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"deploymentListItemFragment"},{args:null,kind:"FragmentSpread",name:"deploymentDetailsFragment"}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"deploymentDetailsApproveDeploymentMutation",selections:[{alias:null,args:n,concreteType:"ApproveDeploymentPayload",kind:"LinkedField",name:"approveDeployment",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"deployment",plural:!1,selections:[l,{kind:"TypeDiscriminator",abstractKey:"__isDeployment"},a,{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"createdAt",storageKey:null},{alias:null,args:null,concreteType:"DeploymentApproval",kind:"LinkedField",name:"approval",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"approvedAt",storageKey:null},{alias:null,args:null,concreteType:"UserInfo",kind:"LinkedField",name:"approvedBy",plural:!1,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null}],storageKey:null}],storageKey:null},t,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"logs",plural:!0,selections:[l,{kind:"InlineFragment",selections:i,type:"DeploymentApprovedLog",abstractKey:null},{kind:"InlineFragment",selections:i,type:"DeploymentCancelledLog",abstractKey:null},{kind:"InlineFragment",selections:i,type:"DeploymentCreatedLog",abstractKey:null},{kind:"InlineFragment",selections:i,type:"DeploymentFailedLog",abstractKey:null},{kind:"InlineFragment",selections:i,type:"DeploymentQueuedLog",abstractKey:null},{kind:"InlineFragment",selections:i,type:"DeploymentReadyLog",abstractKey:null},{kind:"InlineFragment",selections:i,type:"DeploymentStartedProcessingLog",abstractKey:null},{kind:"InlineFragment",selections:i,type:"DeploymentSuccessLog",abstractKey:null},{kind:"InlineFragment",selections:i,type:"DeploymentWaitingForApprovalLog",abstractKey:null}],storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Client",kind:"LinkedField",name:"client",plural:!1,selections:[r,a],storageKey:null}],type:"ClientDeployment",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"subgraph",plural:!1,selections:[l,r,{alias:null,args:null,concreteType:"Api",kind:"LinkedField",name:"api",plural:!1,selections:[a],storageKey:null},a],storageKey:null},{alias:null,args:null,concreteType:"FusionConfigurationDeploymentSchemaChanges",kind:"LinkedField",name:"schemaChanges",plural:!1,selections:[s],storageKey:null}],type:"FusionConfigurationDeployment",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"SchemaDeploymentSchemaChanges",kind:"LinkedField",name:"schemaChanges",plural:!1,selections:[s,{alias:null,args:null,concreteType:"SchemaVersion",kind:"LinkedField",name:"schema",plural:!1,selections:[t,a],storageKey:null}],storageKey:null}],type:"SchemaDeployment",abstractKey:null}],storageKey:null}],storageKey:null}]},params:{id:"bcc98ac348866355fa006d3b6d4b69f2",metadata:{},name:"deploymentDetailsApproveDeploymentMutation",operationKind:"mutation",text:null}}}();a.hash="26a5fcf2749ab0ca5faae1cadfc32039";const t=a},31179:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a=function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"input"}],n=[{kind:"Variable",name:"input",variableName:"input"}],l={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"tag",storageKey:null},i=[{alias:null,args:null,kind:"ScalarField",name:"timestamp",storageKey:null}],r={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},s={alias:null,args:null,concreteType:"SchemaChangeLogStatistic",kind:"LinkedField",name:"statistic",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"breaking",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"dangerous",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"safe",storageKey:null}],storageKey:null};return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"deploymentDetailsCancelDeploymentMutation",selections:[{alias:null,args:n,concreteType:"CancelDeploymentPayload",kind:"LinkedField",name:"cancelDeployment",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"deployment",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"deploymentListItemFragment"},{args:null,kind:"FragmentSpread",name:"deploymentDetailsFragment"}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"deploymentDetailsCancelDeploymentMutation",selections:[{alias:null,args:n,concreteType:"CancelDeploymentPayload",kind:"LinkedField",name:"cancelDeployment",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"deployment",plural:!1,selections:[l,{kind:"TypeDiscriminator",abstractKey:"__isDeployment"},a,{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"createdAt",storageKey:null},{alias:null,args:null,concreteType:"DeploymentApproval",kind:"LinkedField",name:"approval",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"approvedAt",storageKey:null},{alias:null,args:null,concreteType:"UserInfo",kind:"LinkedField",name:"approvedBy",plural:!1,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null}],storageKey:null}],storageKey:null},t,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"logs",plural:!0,selections:[l,{kind:"InlineFragment",selections:i,type:"DeploymentApprovedLog",abstractKey:null},{kind:"InlineFragment",selections:i,type:"DeploymentCancelledLog",abstractKey:null},{kind:"InlineFragment",selections:i,type:"DeploymentCreatedLog",abstractKey:null},{kind:"InlineFragment",selections:i,type:"DeploymentFailedLog",abstractKey:null},{kind:"InlineFragment",selections:i,type:"DeploymentQueuedLog",abstractKey:null},{kind:"InlineFragment",selections:i,type:"DeploymentReadyLog",abstractKey:null},{kind:"InlineFragment",selections:i,type:"DeploymentStartedProcessingLog",abstractKey:null},{kind:"InlineFragment",selections:i,type:"DeploymentSuccessLog",abstractKey:null},{kind:"InlineFragment",selections:i,type:"DeploymentWaitingForApprovalLog",abstractKey:null}],storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Client",kind:"LinkedField",name:"client",plural:!1,selections:[r,a],storageKey:null}],type:"ClientDeployment",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"subgraph",plural:!1,selections:[l,r,{alias:null,args:null,concreteType:"Api",kind:"LinkedField",name:"api",plural:!1,selections:[a],storageKey:null},a],storageKey:null},{alias:null,args:null,concreteType:"FusionConfigurationDeploymentSchemaChanges",kind:"LinkedField",name:"schemaChanges",plural:!1,selections:[s],storageKey:null}],type:"FusionConfigurationDeployment",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"SchemaDeploymentSchemaChanges",kind:"LinkedField",name:"schemaChanges",plural:!1,selections:[s,{alias:null,args:null,concreteType:"SchemaVersion",kind:"LinkedField",name:"schema",plural:!1,selections:[t,a],storageKey:null}],storageKey:null}],type:"SchemaDeployment",abstractKey:null}],storageKey:null}],storageKey:null}]},params:{id:"a007ff4f275b66215e4e34598506a5db",metadata:{},name:"deploymentDetailsCancelDeploymentMutation",operationKind:"mutation",text:null}}}();a.hash="55291ce0ba90d7a5088e248a303219c7";const t=a},38533:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a=function(){var e={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"tag",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},a=[l,{alias:null,args:null,kind:"ScalarField",name:"timestamp",storageKey:null}],t={args:null,kind:"FragmentSpread",name:"changelogStatsFragment"};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"deploymentDetailsFragment",selections:[e,{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"createdAt",storageKey:null},{alias:null,args:null,concreteType:"DeploymentApproval",kind:"LinkedField",name:"approval",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"approvedAt",storageKey:null},{alias:null,args:null,concreteType:"UserInfo",kind:"LinkedField",name:"approvedBy",plural:!1,selections:[e,{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null}],storageKey:null}],storageKey:null},n,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"logs",plural:!0,selections:[{kind:"InlineFragment",selections:a,type:"DeploymentApprovedLog",abstractKey:null},{kind:"InlineFragment",selections:a,type:"DeploymentCancelledLog",abstractKey:null},{kind:"InlineFragment",selections:a,type:"DeploymentCreatedLog",abstractKey:null},{kind:"InlineFragment",selections:a,type:"DeploymentFailedLog",abstractKey:null},{kind:"InlineFragment",selections:a,type:"DeploymentQueuedLog",abstractKey:null},{kind:"InlineFragment",selections:a,type:"DeploymentReadyLog",abstractKey:null},{kind:"InlineFragment",selections:a,type:"DeploymentStartedProcessingLog",abstractKey:null},{kind:"InlineFragment",selections:a,type:"DeploymentSuccessLog",abstractKey:null},{kind:"InlineFragment",selections:a,type:"DeploymentWaitingForApprovalLog",abstractKey:null}],storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"SchemaDeploymentSchemaChanges",kind:"LinkedField",name:"schemaChanges",plural:!1,selections:[{alias:null,args:null,concreteType:"SchemaChangeLogStatistic",kind:"LinkedField",name:"statistic",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"breaking",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"dangerous",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"safe",storageKey:null},t],storageKey:null},{alias:null,args:null,concreteType:"SchemaVersion",kind:"LinkedField",name:"schema",plural:!1,selections:[n],storageKey:null}],storageKey:null}],type:"SchemaDeployment",abstractKey:null},{kind:"InlineFragment",selections:[l],type:"ClientDeployment",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"FusionConfigurationDeploymentSchemaChanges",kind:"LinkedField",name:"schemaChanges",plural:!1,selections:[{alias:null,args:null,concreteType:"SchemaChangeLogStatistic",kind:"LinkedField",name:"statistic",plural:!1,selections:[t],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"subgraph",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,concreteType:"Api",kind:"LinkedField",name:"api",plural:!1,selections:[e],storageKey:null}],storageKey:null}],type:"FusionConfigurationDeployment",abstractKey:null}],type:"Deployment",abstractKey:"__isDeployment"}}();a.hash="7a8cee9c5fc333a6489ccdd7981f3969";const t=a},79943:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a=function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"deploymentId"}],n=[{kind:"Variable",name:"id",variableName:"deploymentId"}],l={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"tag",storageKey:null},i=[{alias:null,args:null,kind:"ScalarField",name:"timestamp",storageKey:null}],r={alias:null,args:null,concreteType:"SchemaChangeLogStatistic",kind:"LinkedField",name:"statistic",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"breaking",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"dangerous",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"safe",storageKey:null}],storageKey:null};return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"deploymentDetailsQuery",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"deploymentDetailsFragment"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"deploymentDetailsQuery",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[l,a,{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"createdAt",storageKey:null},{alias:null,args:null,concreteType:"DeploymentApproval",kind:"LinkedField",name:"approval",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"approvedAt",storageKey:null},{alias:null,args:null,concreteType:"UserInfo",kind:"LinkedField",name:"approvedBy",plural:!1,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null}],storageKey:null}],storageKey:null},t,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"logs",plural:!0,selections:[l,{kind:"InlineFragment",selections:i,type:"DeploymentApprovedLog",abstractKey:null},{kind:"InlineFragment",selections:i,type:"DeploymentCancelledLog",abstractKey:null},{kind:"InlineFragment",selections:i,type:"DeploymentCreatedLog",abstractKey:null},{kind:"InlineFragment",selections:i,type:"DeploymentFailedLog",abstractKey:null},{kind:"InlineFragment",selections:i,type:"DeploymentQueuedLog",abstractKey:null},{kind:"InlineFragment",selections:i,type:"DeploymentReadyLog",abstractKey:null},{kind:"InlineFragment",selections:i,type:"DeploymentStartedProcessingLog",abstractKey:null},{kind:"InlineFragment",selections:i,type:"DeploymentSuccessLog",abstractKey:null},{kind:"InlineFragment",selections:i,type:"DeploymentWaitingForApprovalLog",abstractKey:null}],storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"SchemaDeploymentSchemaChanges",kind:"LinkedField",name:"schemaChanges",plural:!1,selections:[r,{alias:null,args:null,concreteType:"SchemaVersion",kind:"LinkedField",name:"schema",plural:!1,selections:[t,a],storageKey:null}],storageKey:null}],type:"SchemaDeployment",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"FusionConfigurationDeploymentSchemaChanges",kind:"LinkedField",name:"schemaChanges",plural:!1,selections:[r],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"subgraph",plural:!1,selections:[l,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,concreteType:"Api",kind:"LinkedField",name:"api",plural:!1,selections:[a],storageKey:null},a],storageKey:null}],type:"FusionConfigurationDeployment",abstractKey:null}],type:"Deployment",abstractKey:"__isDeployment"}],storageKey:null}]},params:{id:"c9014b181cbcef49dbb18aebd12d4708",metadata:{},name:"deploymentDetailsQuery",operationKind:"query",text:null}}}();a.hash="f005359e7cfb68d0522107119e595001";const t=a},71174:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a=function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"input"}],n=[{kind:"Variable",name:"input",variableName:"input"}],l={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"tag",storageKey:null},i=[{alias:null,args:null,kind:"ScalarField",name:"timestamp",storageKey:null}],r={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},s={alias:null,args:null,concreteType:"SchemaChangeLogStatistic",kind:"LinkedField",name:"statistic",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"breaking",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"dangerous",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"safe",storageKey:null}],storageKey:null};return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"deploymentDetailsRejectDeploymentMutation",selections:[{alias:null,args:n,concreteType:"CancelDeploymentPayload",kind:"LinkedField",name:"cancelDeployment",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"deployment",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"deploymentListItemFragment"},{args:null,kind:"FragmentSpread",name:"deploymentDetailsFragment"}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"deploymentDetailsRejectDeploymentMutation",selections:[{alias:null,args:n,concreteType:"CancelDeploymentPayload",kind:"LinkedField",name:"cancelDeployment",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"deployment",plural:!1,selections:[l,{kind:"TypeDiscriminator",abstractKey:"__isDeployment"},a,{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"createdAt",storageKey:null},{alias:null,args:null,concreteType:"DeploymentApproval",kind:"LinkedField",name:"approval",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"approvedAt",storageKey:null},{alias:null,args:null,concreteType:"UserInfo",kind:"LinkedField",name:"approvedBy",plural:!1,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null}],storageKey:null}],storageKey:null},t,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"logs",plural:!0,selections:[l,{kind:"InlineFragment",selections:i,type:"DeploymentApprovedLog",abstractKey:null},{kind:"InlineFragment",selections:i,type:"DeploymentCancelledLog",abstractKey:null},{kind:"InlineFragment",selections:i,type:"DeploymentCreatedLog",abstractKey:null},{kind:"InlineFragment",selections:i,type:"DeploymentFailedLog",abstractKey:null},{kind:"InlineFragment",selections:i,type:"DeploymentQueuedLog",abstractKey:null},{kind:"InlineFragment",selections:i,type:"DeploymentReadyLog",abstractKey:null},{kind:"InlineFragment",selections:i,type:"DeploymentStartedProcessingLog",abstractKey:null},{kind:"InlineFragment",selections:i,type:"DeploymentSuccessLog",abstractKey:null},{kind:"InlineFragment",selections:i,type:"DeploymentWaitingForApprovalLog",abstractKey:null}],storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Client",kind:"LinkedField",name:"client",plural:!1,selections:[r,a],storageKey:null}],type:"ClientDeployment",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"subgraph",plural:!1,selections:[l,r,{alias:null,args:null,concreteType:"Api",kind:"LinkedField",name:"api",plural:!1,selections:[a],storageKey:null},a],storageKey:null},{alias:null,args:null,concreteType:"FusionConfigurationDeploymentSchemaChanges",kind:"LinkedField",name:"schemaChanges",plural:!1,selections:[s],storageKey:null}],type:"FusionConfigurationDeployment",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"SchemaDeploymentSchemaChanges",kind:"LinkedField",name:"schemaChanges",plural:!1,selections:[s,{alias:null,args:null,concreteType:"SchemaVersion",kind:"LinkedField",name:"schema",plural:!1,selections:[t,a],storageKey:null}],storageKey:null}],type:"SchemaDeployment",abstractKey:null}],storageKey:null}],storageKey:null}]},params:{id:"b7a656e2e0008d7a810785b3e995f28e",metadata:{},name:"deploymentDetailsRejectDeploymentMutation",operationKind:"mutation",text:null}}}();a.hash="3778d065ca350ebd26f7d156a79521cb";const t=a},72581:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"deploymentListFragment",selections:[{alias:null,args:null,concreteType:"DeploymentsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{args:null,kind:"FragmentSpread",name:"deploymentListItemFragment"}],storageKey:null}],storageKey:null}],type:"DeploymentsConnection",abstractKey:null,hash:"4d001de3c80b872dd5d4b734bd1c3224"},t=a},61406:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a=function(){var e={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"deploymentListItemFragment",selections:[e,{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"createdAt",storageKey:null},{alias:null,args:null,concreteType:"DeploymentApproval",kind:"LinkedField",name:"approval",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"approvedAt",storageKey:null},{alias:null,args:null,concreteType:"UserInfo",kind:"LinkedField",name:"approvedBy",plural:!1,selections:[e,{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null}],storageKey:null}],storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Client",kind:"LinkedField",name:"client",plural:!1,selections:[n],storageKey:null}],type:"ClientDeployment",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"subgraph",plural:!1,selections:[n,{alias:null,args:null,concreteType:"Api",kind:"LinkedField",name:"api",plural:!1,selections:[e],storageKey:null}],storageKey:null}],type:"FusionConfigurationDeployment",abstractKey:null},{alias:null,args:null,kind:"ScalarField",name:"tag",storageKey:null}],type:"Deployment",abstractKey:"__isDeployment"}}();a.hash="4ac69c200ab2855278089b6d7c3182d4";const t=a},41358:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a=function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"stageId"}],n=[{kind:"Variable",name:"id",variableName:"stageId"}],l=[{kind:"Literal",name:"first",value:15}],a={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null};return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"deploymentsQuery",selections:[{alias:"stage",args:n,concreteType:"Stage",kind:"LinkedField",name:"stageById",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"deploymentContainerFragment"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"deploymentsQuery",selections:[{alias:"stage",args:n,concreteType:"Stage",kind:"LinkedField",name:"stageById",plural:!1,selections:[{alias:null,args:l,concreteType:"DeploymentsConnection",kind:"LinkedField",name:"deployments",plural:!1,selections:[{alias:null,args:null,concreteType:"DeploymentsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[a,t,{kind:"TypeDiscriminator",abstractKey:"__isDeployment"},{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"createdAt",storageKey:null},{alias:null,args:null,concreteType:"DeploymentApproval",kind:"LinkedField",name:"approval",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"approvedAt",storageKey:null},{alias:null,args:null,concreteType:"UserInfo",kind:"LinkedField",name:"approvedBy",plural:!1,selections:[t,{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null}],storageKey:null}],storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Client",kind:"LinkedField",name:"client",plural:!1,selections:[i,t],storageKey:null}],type:"ClientDeployment",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"subgraph",plural:!1,selections:[a,i,{alias:null,args:null,concreteType:"Api",kind:"LinkedField",name:"api",plural:!1,selections:[t],storageKey:null},t],storageKey:null}],type:"FusionConfigurationDeployment",abstractKey:null},{alias:null,args:null,kind:"ScalarField",name:"tag",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:"deployments(first:15)"},{alias:null,args:l,filters:null,handle:"connection",key:"deployment_container_api_deployments",kind:"LinkedHandle",name:"deployments"},t],storageKey:null}]},params:{id:"5de8b5a56b1ab806d812a6616707a054",metadata:{},name:"deploymentsQuery",operationKind:"query",text:null}}}();a.hash="d55fcf3d5d598ac17509d68400d9b58f";const t=a},36969:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a=function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"connections"},{defaultValue:null,kind:"LocalArgument",name:"stageId"}],n=[{kind:"Variable",name:"stageId",variableName:"stageId"}],l=[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"deployment",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"deploymentListItemFragment"},{args:null,kind:"FragmentSpread",name:"deploymentDetailsFragment"}],storageKey:null}],a={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"tag",storageKey:null},r=[{alias:null,args:null,kind:"ScalarField",name:"timestamp",storageKey:null}],s={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},o={alias:null,args:null,concreteType:"SchemaChangeLogStatistic",kind:"LinkedField",name:"statistic",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"breaking",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"dangerous",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"safe",storageKey:null}],storageKey:null},d={alias:null,args:null,concreteType:null,kind:"LinkedField",name:"deployment",plural:!1,selections:[a,{kind:"TypeDiscriminator",abstractKey:"__isDeployment"},t,{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"createdAt",storageKey:null},{alias:null,args:null,concreteType:"DeploymentApproval",kind:"LinkedField",name:"approval",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"approvedAt",storageKey:null},{alias:null,args:null,concreteType:"UserInfo",kind:"LinkedField",name:"approvedBy",plural:!1,selections:[t,{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null}],storageKey:null}],storageKey:null},i,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"logs",plural:!0,selections:[a,{kind:"InlineFragment",selections:r,type:"DeploymentApprovedLog",abstractKey:null},{kind:"InlineFragment",selections:r,type:"DeploymentCancelledLog",abstractKey:null},{kind:"InlineFragment",selections:r,type:"DeploymentCreatedLog",abstractKey:null},{kind:"InlineFragment",selections:r,type:"DeploymentFailedLog",abstractKey:null},{kind:"InlineFragment",selections:r,type:"DeploymentQueuedLog",abstractKey:null},{kind:"InlineFragment",selections:r,type:"DeploymentReadyLog",abstractKey:null},{kind:"InlineFragment",selections:r,type:"DeploymentStartedProcessingLog",abstractKey:null},{kind:"InlineFragment",selections:r,type:"DeploymentSuccessLog",abstractKey:null},{kind:"InlineFragment",selections:r,type:"DeploymentWaitingForApprovalLog",abstractKey:null}],storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Client",kind:"LinkedField",name:"client",plural:!1,selections:[s,t],storageKey:null}],type:"ClientDeployment",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"subgraph",plural:!1,selections:[a,s,{alias:null,args:null,concreteType:"Api",kind:"LinkedField",name:"api",plural:!1,selections:[t],storageKey:null},t],storageKey:null},{alias:null,args:null,concreteType:"FusionConfigurationDeploymentSchemaChanges",kind:"LinkedField",name:"schemaChanges",plural:!1,selections:[o],storageKey:null}],type:"FusionConfigurationDeployment",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"SchemaDeploymentSchemaChanges",kind:"LinkedField",name:"schemaChanges",plural:!1,selections:[o,{alias:null,args:null,concreteType:"SchemaVersion",kind:"LinkedField",name:"schema",plural:!1,selections:[i,t],storageKey:null}],storageKey:null}],type:"SchemaDeployment",abstractKey:null}],storageKey:null};return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"deployments_DeploymentChangedSubscription",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"onStageDeploymentsChanged",plural:!1,selections:[{kind:"InlineFragment",selections:l,type:"DeploymentCreatedEvent",abstractKey:null},{kind:"InlineFragment",selections:l,type:"DeploymentUpdatedEvent",abstractKey:null}],storageKey:null}],type:"Subscription",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"deployments_DeploymentChangedSubscription",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"onStageDeploymentsChanged",plural:!1,selections:[a,{kind:"InlineFragment",selections:[d,{alias:null,args:null,filters:null,handle:"prependNode",key:"",kind:"LinkedHandle",name:"deployment",handleArgs:[{kind:"Variable",name:"connections",variableName:"connections"},{kind:"Literal",name:"edgeTypeName",value:"DeploymentsEdge"}]}],type:"DeploymentCreatedEvent",abstractKey:null},{kind:"InlineFragment",selections:[d],type:"DeploymentUpdatedEvent",abstractKey:null}],storageKey:null}]},params:{id:"e4a382b821ee687252eebd191a898054",metadata:{},name:"deployments_DeploymentChangedSubscription",operationKind:"subscription",text:null}}}();a.hash="5d76b3eeb5df9fb6d3407d2491d363bc";const t=a},40253:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"logDetails",selections:[{args:null,kind:"FragmentSpread",name:"logDetailsAttributes"},{args:null,kind:"FragmentSpread",name:"logDetailsGeneral"}],type:"OpenTelemetryLog",abstractKey:null,hash:"948ba6dfbbcda48fdc0c7b9ef92577fc"},t=a},38868:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"logDetailsAttributes",selections:[{args:null,kind:"FragmentSpread",name:"logDetailsHeader"},{args:null,kind:"FragmentSpread",name:"logDetailsResourceAttributes"},{args:null,kind:"FragmentSpread",name:"logDetailsLogAttributes"}],type:"OpenTelemetryLog",abstractKey:null,hash:"4e227664f32ffc1f784dc4b4f7ec7e40"},t=a},39350:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"logDetailsFlyout",selections:[{args:null,kind:"FragmentSpread",name:"logDetails"}],type:"OpenTelemetryLog",abstractKey:null,hash:"15a6849dd47db3655797a9509f553c71"},t=a},14175:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"logDetailsGeneral",selections:[{alias:null,args:null,kind:"ScalarField",name:"body",storageKey:null},{args:null,kind:"FragmentSpread",name:"logDetailsHeader"}],type:"OpenTelemetryLog",abstractKey:null,hash:"0f1cbe573d88564e8029b9051c4485c4"},t=a},57760:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"logDetailsHeader",selections:[{alias:null,args:null,kind:"ScalarField",name:"severityNumber",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"epoch",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"severityText",storageKey:null}],type:"OpenTelemetryLog",abstractKey:null,hash:"fbdfd4db785828b59c59df32989cfcca"},t=a},84756:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"logDetailsLogAttributes",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"logAttributes",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"key",storageKey:null},{kind:"InlineFragment",selections:[{alias:"boolValue",args:null,kind:"ScalarField",name:"value",storageKey:null}],type:"OpenTelemetryBoolAttribute",abstractKey:null},{kind:"InlineFragment",selections:[{alias:"longValue",args:null,kind:"ScalarField",name:"value",storageKey:null}],type:"OpenTelemetryLongAttribute",abstractKey:null},{kind:"InlineFragment",selections:[{alias:"floatValue",args:null,kind:"ScalarField",name:"value",storageKey:null}],type:"OpenTelemetryFloatAttribute",abstractKey:null},{kind:"InlineFragment",selections:[{alias:"stringValue",args:null,kind:"ScalarField",name:"value",storageKey:null}],type:"OpenTelemetryStringAttribute",abstractKey:null}],storageKey:null}],type:"OpenTelemetryLog",abstractKey:null,hash:"d05ddb84a43f04047058cc3df9490d8c"},t=a},59472:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"logDetailsResourceAttributes",selections:[{alias:null,args:null,concreteType:"Attribute",kind:"LinkedField",name:"resourceAttributes",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"key",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null}],storageKey:null}],type:"OpenTelemetryLog",abstractKey:null,hash:"ac1a5a10d771585dfa9f46d00b9a3423"},t=a},77133:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[],kind:"Fragment",metadata:{plural:!0},name:"logList",selections:[{alias:null,args:null,kind:"ScalarField",name:"epoch",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"body",storageKey:null},{args:null,kind:"FragmentSpread",name:"logListLogEntryItem"}],type:"OpenTelemetryLog",abstractKey:null,hash:"d37794f6935f14ea0e67db38a79ed2fe"},t=a},58676:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"logListLogEntryItem",selections:[{alias:null,args:null,kind:"ScalarField",name:"severityNumber",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"epoch",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"body",storageKey:null}],type:"OpenTelemetryLog",abstractKey:null,hash:"1db5ead4dcc5915eb3eeb8a32e88b3bd"},t=a},60484:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"from"},{defaultValue:null,kind:"LocalArgument",name:"to"}],kind:"Fragment",metadata:null,name:"logsChartPanel",selections:[{alias:null,args:[{kind:"Variable",name:"from",variableName:"from"},{kind:"Variable",name:"to",variableName:"to"}],concreteType:"OpenTelemetryLogsSeverityGraph",kind:"LinkedField",name:"logDistribution",plural:!1,selections:[{alias:null,args:null,concreteType:"OpenTelemetryLogsSeverityGraphData",kind:"LinkedField",name:"dataset",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"epoch",storageKey:null},{alias:null,args:null,concreteType:"OpenTelemetryLogsSeverityGraphCountData",kind:"LinkedField",name:"counts",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"count",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"severity",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Stage",abstractKey:null,hash:"64e60db8e6e245e562da26f0a2608559"},t=a},81593:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"from"},{defaultValue:null,kind:"LocalArgument",name:"to"}],kind:"Fragment",metadata:null,name:"logsContainer",selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:[{kind:"Variable",name:"from",variableName:"from"},{kind:"Literal",name:"last",value:200},{kind:"Variable",name:"to",variableName:"to"}],concreteType:"OpenTelemetryLogsConnection",kind:"LinkedField",name:"logs",plural:!1,selections:[{alias:null,args:null,concreteType:"OpenTelemetryLogsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null},{alias:null,args:null,concreteType:"OpenTelemetryLog",kind:"LinkedField",name:"node",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"logList"},{args:null,kind:"FragmentSpread",name:"logDetailsFlyout"},{alias:null,args:null,kind:"ScalarField",name:"epoch",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"startCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasPreviousPage",storageKey:null}],storageKey:null}],storageKey:null}],type:"Stage",abstractKey:null,hash:"6ae78c56366a47d1545327275218b3a8"},t=a},1015:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a=function(){var e={defaultValue:null,kind:"LocalArgument",name:"after"},n={defaultValue:null,kind:"LocalArgument",name:"before"},l={defaultValue:null,kind:"LocalArgument",name:"first"},a={defaultValue:null,kind:"LocalArgument",name:"last"},t={defaultValue:null,kind:"LocalArgument",name:"stageId"},i=[{kind:"Variable",name:"id",variableName:"stageId"}],r=[{kind:"Variable",name:"after",variableName:"after"},{kind:"Variable",name:"before",variableName:"before"},{kind:"Variable",name:"first",variableName:"first"},{kind:"Variable",name:"last",variableName:"last"}],s={alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"epoch",storageKey:null},d={alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"startCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasPreviousPage",storageKey:null}],storageKey:null},c={alias:null,args:null,kind:"ScalarField",name:"key",storageKey:null};return{fragment:{argumentDefinitions:[e,n,l,a,t],kind:"Fragment",metadata:null,name:"logsContainerPaginationQuery",selections:[{alias:null,args:i,concreteType:"Stage",kind:"LinkedField",name:"stageById",plural:!1,selections:[{alias:null,args:r,concreteType:"OpenTelemetryLogsConnection",kind:"LinkedField",name:"logs",plural:!1,selections:[{alias:null,args:null,concreteType:"OpenTelemetryLogsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[s,{alias:null,args:null,concreteType:"OpenTelemetryLog",kind:"LinkedField",name:"node",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"logList"},{args:null,kind:"FragmentSpread",name:"logDetailsFlyout"},o],storageKey:null}],storageKey:null},d],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[t,e,l,n,a],kind:"Operation",name:"logsContainerPaginationQuery",selections:[{alias:null,args:i,concreteType:"Stage",kind:"LinkedField",name:"stageById",plural:!1,selections:[{alias:null,args:r,concreteType:"OpenTelemetryLogsConnection",kind:"LinkedField",name:"logs",plural:!1,selections:[{alias:null,args:null,concreteType:"OpenTelemetryLogsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[s,{alias:null,args:null,concreteType:"OpenTelemetryLog",kind:"LinkedField",name:"node",plural:!1,selections:[o,{alias:null,args:null,kind:"ScalarField",name:"body",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"severityNumber",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"severityText",storageKey:null},{alias:null,args:null,concreteType:"Attribute",kind:"LinkedField",name:"resourceAttributes",plural:!0,selections:[c,{alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"logAttributes",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},c,{kind:"InlineFragment",selections:[{alias:"boolValue",args:null,kind:"ScalarField",name:"value",storageKey:null}],type:"OpenTelemetryBoolAttribute",abstractKey:null},{kind:"InlineFragment",selections:[{alias:"longValue",args:null,kind:"ScalarField",name:"value",storageKey:null}],type:"OpenTelemetryLongAttribute",abstractKey:null},{kind:"InlineFragment",selections:[{alias:"floatValue",args:null,kind:"ScalarField",name:"value",storageKey:null}],type:"OpenTelemetryFloatAttribute",abstractKey:null},{kind:"InlineFragment",selections:[{alias:"stringValue",args:null,kind:"ScalarField",name:"value",storageKey:null}],type:"OpenTelemetryStringAttribute",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null},d],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:"ad1a35dfcd612e6c1efda72044d3a0f8",metadata:{},name:"logsContainerPaginationQuery",operationKind:"query",text:null}}}();a.hash="94a4ab8608db1fcf07eb46f4a96526d0";const t=a},28428:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"from"},{defaultValue:null,kind:"LocalArgument",name:"to"}],kind:"Fragment",metadata:null,name:"logsPanel",selections:[{args:[{kind:"Variable",name:"from",variableName:"from"},{kind:"Variable",name:"to",variableName:"to"}],kind:"FragmentSpread",name:"logsContainer"}],type:"Stage",abstractKey:null,hash:"1769c571e4d52423b8e744e343cbc306"},t=a},75142:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a=function(){var e={defaultValue:null,kind:"LocalArgument",name:"from"},n={defaultValue:null,kind:"LocalArgument",name:"stageId"},l={defaultValue:null,kind:"LocalArgument",name:"to"},a=[{kind:"Variable",name:"id",variableName:"stageId"}],t={kind:"Variable",name:"from",variableName:"from"},i={kind:"Variable",name:"to",variableName:"to"},r=[t,i],s={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"epoch",storageKey:null},d={alias:null,args:null,kind:"ScalarField",name:"key",storageKey:null};return{fragment:{argumentDefinitions:[e,n,l],kind:"Fragment",metadata:null,name:"logsQuery",selections:[{alias:null,args:a,concreteType:"Stage",kind:"LinkedField",name:"stageById",plural:!1,selections:[{kind:"Defer",selections:[{args:r,kind:"FragmentSpread",name:"logsPanel"}]},{kind:"Defer",selections:[{args:r,kind:"FragmentSpread",name:"logsChartPanel"}]}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[n,e,l],kind:"Operation",name:"logsQuery",selections:[{alias:null,args:a,concreteType:"Stage",kind:"LinkedField",name:"stageById",plural:!1,selections:[{if:null,kind:"Defer",label:"logsQuery$defer$logsPanel_1tCgTg",selections:[s,{alias:null,args:[t,{kind:"Literal",name:"last",value:200},i],concreteType:"OpenTelemetryLogsConnection",kind:"LinkedField",name:"logs",plural:!1,selections:[{alias:null,args:null,concreteType:"OpenTelemetryLogsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null},{alias:null,args:null,concreteType:"OpenTelemetryLog",kind:"LinkedField",name:"node",plural:!1,selections:[o,{alias:null,args:null,kind:"ScalarField",name:"body",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"severityNumber",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"severityText",storageKey:null},{alias:null,args:null,concreteType:"Attribute",kind:"LinkedField",name:"resourceAttributes",plural:!0,selections:[d,{alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"logAttributes",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},d,{kind:"InlineFragment",selections:[{alias:"boolValue",args:null,kind:"ScalarField",name:"value",storageKey:null}],type:"OpenTelemetryBoolAttribute",abstractKey:null},{kind:"InlineFragment",selections:[{alias:"longValue",args:null,kind:"ScalarField",name:"value",storageKey:null}],type:"OpenTelemetryLongAttribute",abstractKey:null},{kind:"InlineFragment",selections:[{alias:"floatValue",args:null,kind:"ScalarField",name:"value",storageKey:null}],type:"OpenTelemetryFloatAttribute",abstractKey:null},{kind:"InlineFragment",selections:[{alias:"stringValue",args:null,kind:"ScalarField",name:"value",storageKey:null}],type:"OpenTelemetryStringAttribute",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"startCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasPreviousPage",storageKey:null}],storageKey:null}],storageKey:null}]},{if:null,kind:"Defer",label:"logsQuery$defer$logsChartPanel_1tCgTg",selections:[{alias:null,args:r,concreteType:"OpenTelemetryLogsSeverityGraph",kind:"LinkedField",name:"logDistribution",plural:!1,selections:[{alias:null,args:null,concreteType:"OpenTelemetryLogsSeverityGraphData",kind:"LinkedField",name:"dataset",plural:!0,selections:[o,{alias:null,args:null,concreteType:"OpenTelemetryLogsSeverityGraphCountData",kind:"LinkedField",name:"counts",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"count",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"severity",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}]},s],storageKey:null}]},params:{id:"ee3d5a9c010d586fcfa2c20d9d3357b1",metadata:{},name:"logsQuery",operationKind:"query",text:null}}}();a.hash="83cace4fd13209c74f27de384d4afbb1";const t=a},89847:(e,n,l)=>{l.r(n),l.d(n,{default:()=>r});const a=function(){var e={defaultValue:25,kind:"LocalArgument",name:"count"},n={defaultValue:null,kind:"LocalArgument",name:"cursor"},l={defaultValue:null,kind:"LocalArgument",name:"from"},a={defaultValue:null,kind:"LocalArgument",name:"id"},t={defaultValue:{impact:"DESC"},kind:"LocalArgument",name:"sort"},i={defaultValue:null,kind:"LocalArgument",name:"to"},r=[{kind:"Variable",name:"id",variableName:"id"}],s={kind:"Variable",name:"from",variableName:"from"},o={kind:"Variable",name:"to",variableName:"to"},d={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},c={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},u=[{kind:"Variable",name:"after",variableName:"cursor"},{kind:"Variable",name:"first",variableName:"count"},s,{kind:"Variable",name:"orderBy",variableName:"sort"},o];return{fragment:{argumentDefinitions:[e,n,l,a,t,i],kind:"Fragment",metadata:null,name:"apiClientsTilePaginationQuery",selections:[{alias:null,args:r,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{args:[{kind:"Variable",name:"count",variableName:"count"},{kind:"Variable",name:"cursor",variableName:"cursor"},s,{kind:"Variable",name:"sort",variableName:"sort"},o],kind:"FragmentSpread",name:"apiClientsTileFragment"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[e,n,l,t,i,a],kind:"Operation",name:"apiClientsTilePaginationQuery",selections:[{alias:null,args:r,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[d,c,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"StageMetrics",kind:"LinkedField",name:"metrics",plural:!1,selections:[{alias:null,args:null,concreteType:"StageClientsMetrics",kind:"LinkedField",name:"clients",plural:!1,selections:[{alias:null,args:u,concreteType:"ClientInsightsConnection",kind:"LinkedField",name:"insights",plural:!1,selections:[{alias:null,args:null,concreteType:"ClientInsightsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"ClientInsight",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"totalCount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"impact",storageKey:null},c,d],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:u,filters:["from","to","orderBy"],handle:"connection",key:"apiClientsTile_clients_insights",kind:"LinkedHandle",name:"insights"}],storageKey:null}],storageKey:null}],type:"Stage",abstractKey:null}],storageKey:null}]},params:{id:"5b8d9d4472a923ed49bf8904e5ab1960",metadata:{},name:"apiClientsTilePaginationQuery",operationKind:"query",text:null}}}();a.hash="d6e0cf72276ab53f6281ab3184203d04";const t=a,i=function(){var e=["metrics","clients","insights"];return{argumentDefinitions:[{defaultValue:25,kind:"LocalArgument",name:"count"},{defaultValue:null,kind:"LocalArgument",name:"cursor"},{defaultValue:null,kind:"LocalArgument",name:"from"},{defaultValue:{impact:"DESC"},kind:"LocalArgument",name:"sort"},{defaultValue:null,kind:"LocalArgument",name:"to"}],kind:"Fragment",metadata:{connection:[{count:"count",cursor:"cursor",direction:"forward",path:e}],refetch:{connection:{forward:{count:"count",cursor:"cursor"},backward:null,path:e},fragmentPathInResult:["node"],operation:t,identifierInfo:{identifierField:"id",identifierQueryVariableName:"id"}}},name:"apiClientsTileFragment",selections:[{alias:null,args:null,concreteType:"StageMetrics",kind:"LinkedField",name:"metrics",plural:!1,selections:[{alias:null,args:null,concreteType:"StageClientsMetrics",kind:"LinkedField",name:"clients",plural:!1,selections:[{alias:"insights",args:[{kind:"Variable",name:"from",variableName:"from"},{kind:"Variable",name:"orderBy",variableName:"sort"},{kind:"Variable",name:"to",variableName:"to"}],concreteType:"ClientInsightsConnection",kind:"LinkedField",name:"__apiClientsTile_clients_insights_connection",plural:!1,selections:[{alias:null,args:null,concreteType:"ClientInsightsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"ClientInsight",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"totalCount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"impact",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],type:"Stage",abstractKey:null}}();i.hash="d6e0cf72276ab53f6281ab3184203d04";const r=i},91790:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[],kind:"Fragment",metadata:{plural:!0},name:"apiErrorsGridFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"lastSeen",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"epm",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"totalCount",storageKey:null}],type:"ErrorInsight",abstractKey:null,hash:"13047304862005a5c39fdd7ae765a3a8"},t=a},5020:(e,n,l)=>{l.r(n),l.d(n,{default:()=>r});const a=function(){var e={defaultValue:null,kind:"LocalArgument",name:"after"},n={defaultValue:10,kind:"LocalArgument",name:"first"},l={defaultValue:null,kind:"LocalArgument",name:"from"},a={defaultValue:null,kind:"LocalArgument",name:"id"},t={defaultValue:null,kind:"LocalArgument",name:"to"},i=[{kind:"Variable",name:"id",variableName:"id"}],r=[{kind:"Variable",name:"after",variableName:"after"},{kind:"Variable",name:"first",variableName:"first"},{kind:"Variable",name:"from",variableName:"from"},{kind:"Variable",name:"to",variableName:"to"}],s={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:[e,n,l,a,t],kind:"Fragment",metadata:null,name:"apiErrorsInsightTilePaginationQuery",selections:[{alias:null,args:i,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{args:r,kind:"FragmentSpread",name:"apiErrorsInsightTile"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[e,n,l,t,a],kind:"Operation",name:"apiErrorsInsightTilePaginationQuery",selections:[{alias:null,args:i,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[s,o,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"StageMetrics",kind:"LinkedField",name:"metrics",plural:!1,selections:[{alias:null,args:null,concreteType:"StageErrorsMetrics",kind:"LinkedField",name:"errors",plural:!1,selections:[{alias:null,args:r,concreteType:"ErrorInsightsConnection",kind:"LinkedField",name:"insights",plural:!1,selections:[{alias:null,args:null,concreteType:"ErrorInsightsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null},{alias:null,args:null,concreteType:"ErrorInsight",kind:"LinkedField",name:"node",plural:!1,selections:[o,{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"lastSeen",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"epm",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"totalCount",storageKey:null},s],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:r,filters:["from","to"],handle:"connection",key:"apiErrorsInsightTile_insights",kind:"LinkedHandle",name:"insights"}],storageKey:null}],storageKey:null}],type:"Stage",abstractKey:null}],storageKey:null}]},params:{id:"51271a451fd0c52888542698d597fa8f",metadata:{},name:"apiErrorsInsightTilePaginationQuery",operationKind:"query",text:null}}}();a.hash="0708a19b467d3d467f09aee3e41f534e";const t=a,i=function(){var e=["metrics","errors","insights"];return{argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"after"},{defaultValue:10,kind:"LocalArgument",name:"first"},{defaultValue:null,kind:"LocalArgument",name:"from"},{defaultValue:null,kind:"LocalArgument",name:"to"}],kind:"Fragment",metadata:{connection:[{count:"first",cursor:"after",direction:"forward",path:e}],refetch:{connection:{forward:{count:"first",cursor:"after"},backward:null,path:e},fragmentPathInResult:["node"],operation:t,identifierInfo:{identifierField:"id",identifierQueryVariableName:"id"}}},name:"apiErrorsInsightTile",selections:[{alias:null,args:null,concreteType:"StageMetrics",kind:"LinkedField",name:"metrics",plural:!1,selections:[{alias:null,args:null,concreteType:"StageErrorsMetrics",kind:"LinkedField",name:"errors",plural:!1,selections:[{alias:"insights",args:[{kind:"Variable",name:"from",variableName:"from"},{kind:"Variable",name:"to",variableName:"to"}],concreteType:"ErrorInsightsConnection",kind:"LinkedField",name:"__apiErrorsInsightTile_insights_connection",plural:!1,selections:[{alias:null,args:null,concreteType:"ErrorInsightsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null},{alias:null,args:null,concreteType:"ErrorInsight",kind:"LinkedField",name:"node",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"apiErrorsGridFragment"},{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],type:"Stage",abstractKey:null}}();i.hash="0708a19b467d3d467f09aee3e41f534e";const r=i},62554:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"from"},{defaultValue:null,kind:"LocalArgument",name:"to"}],kind:"Fragment",metadata:null,name:"apiErrorsTileFragment",selections:[{alias:null,args:[{kind:"Variable",name:"from",variableName:"from"},{kind:"Variable",name:"to",variableName:"to"}],concreteType:"OperationsThroughputGraph",kind:"LinkedField",name:"throughput",plural:!1,selections:[{alias:null,args:null,concreteType:"OperationsThroughputGraphData",kind:"LinkedField",name:"dataset",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"epoch",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"totalCountWithError",storageKey:null}],storageKey:null}],storageKey:null}],type:"StageOperationsMetrics",abstractKey:null,hash:"edc7ec41214665157ba7d12bbb318ecf"},t=a},69092:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a=function(){var e=[{kind:"Variable",name:"from",variableName:"from"},{kind:"Variable",name:"to",variableName:"to"}];return{argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"from"},{defaultValue:null,kind:"LocalArgument",name:"to"}],kind:"Fragment",metadata:null,name:"apiInsightsTileFragment",selections:[{args:e,kind:"FragmentSpread",name:"apiOperationsInsightsGrid"},{args:e,kind:"FragmentSpread",name:"apiResolversInsightsGrid"}],type:"Stage",abstractKey:null}}();a.hash="2c6915bcc2533c1f94f9ab763c8bc1b9";const t=a},49173:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"from"},{defaultValue:null,kind:"LocalArgument",name:"to"}],kind:"Fragment",metadata:null,name:"apiLatencyTileFragment",selections:[{alias:null,args:[{kind:"Variable",name:"from",variableName:"from"},{kind:"Variable",name:"to",variableName:"to"}],concreteType:"OperationsLatencyGraph",kind:"LinkedField",name:"latency",plural:!1,selections:[{alias:null,args:null,concreteType:"OperationsLatencyGraphData",kind:"LinkedField",name:"dataset",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"epoch",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"mean",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"p95",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"p99",storageKey:null}],storageKey:null}],storageKey:null}],type:"StageOperationsMetrics",abstractKey:null,hash:"76769d6e763cc8d1cd5395223456d83a"},t=a},13761:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a=function(){var e={defaultValue:null,kind:"LocalArgument",name:"from"},n={defaultValue:null,kind:"LocalArgument",name:"stageId"},l={defaultValue:null,kind:"LocalArgument",name:"to"},a=[{kind:"Variable",name:"id",variableName:"stageId"}],t={kind:"Variable",name:"from",variableName:"from"},i={kind:"Variable",name:"to",variableName:"to"},r=[t,i],s={alias:null,args:null,kind:"ScalarField",name:"epoch",storageKey:null},o=[s,{alias:null,args:null,kind:"ScalarField",name:"mean",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"p95",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"p99",storageKey:null}],d={alias:null,args:null,kind:"ScalarField",name:"opm",storageKey:null},c={alias:null,args:null,kind:"ScalarField",name:"totalCount",storageKey:null},u={alias:null,args:null,kind:"ScalarField",name:"totalCountWithError",storageKey:null},g=[{kind:"Literal",name:"first",value:10},t,i],m={alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null},p={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},y={alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null},f=[{kind:"Literal",name:"first",value:25},t,{kind:"Literal",name:"orderBy",value:{impact:"DESC"}},i],x={alias:null,args:null,kind:"ScalarField",name:"impact",storageKey:null},k={alias:null,args:null,kind:"ScalarField",name:"averageLatency",storageKey:null},b={alias:null,args:null,kind:"ScalarField",name:"errorRate",storageKey:null},v=[s,d,b],j=["from","to","orderBy","search"];return{fragment:{argumentDefinitions:[e,n,l],kind:"Fragment",metadata:null,name:"apiMonitoringQuery",selections:[{alias:"stage",args:a,concreteType:"Stage",kind:"LinkedField",name:"stageById",plural:!1,selections:[{alias:null,args:null,concreteType:"StageMetrics",kind:"LinkedField",name:"metrics",plural:!1,selections:[{alias:null,args:null,concreteType:"StageOperationsMetrics",kind:"LinkedField",name:"operations",plural:!1,selections:[{kind:"Defer",selections:[{args:r,kind:"FragmentSpread",name:"apiLatencyTileFragment"}]},{kind:"Defer",selections:[{args:r,kind:"FragmentSpread",name:"apiThroughputTileFragment"}]},{kind:"Defer",selections:[{args:r,kind:"FragmentSpread",name:"apiErrorsTileFragment"}]}],storageKey:null}],storageKey:null},{kind:"Defer",selections:[{args:r,kind:"FragmentSpread",name:"apiErrorsInsightTile"}]},{kind:"Defer",selections:[{args:r,kind:"FragmentSpread",name:"apiClientsTileFragment"}]},{kind:"Defer",selections:[{args:r,kind:"FragmentSpread",name:"apiInsightsTileFragment"}]}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[n,e,l],kind:"Operation",name:"apiMonitoringQuery",selections:[{alias:"stage",args:a,concreteType:"Stage",kind:"LinkedField",name:"stageById",plural:!1,selections:[{alias:null,args:null,concreteType:"StageMetrics",kind:"LinkedField",name:"metrics",plural:!1,selections:[{alias:null,args:null,concreteType:"StageOperationsMetrics",kind:"LinkedField",name:"operations",plural:!1,selections:[{if:null,kind:"Defer",label:"apiMonitoringQuery$defer$apiLatencyTileFragment_1tCgTg",selections:[{alias:null,args:r,concreteType:"OperationsLatencyGraph",kind:"LinkedField",name:"latency",plural:!1,selections:[{alias:null,args:null,concreteType:"OperationsLatencyGraphData",kind:"LinkedField",name:"dataset",plural:!0,selections:o,storageKey:null}],storageKey:null}]},{if:null,kind:"Defer",label:"apiMonitoringQuery$defer$apiThroughputTileFragment_1tCgTg",selections:[{alias:null,args:r,concreteType:"OperationsThroughputGraph",kind:"LinkedField",name:"throughput",plural:!1,selections:[{alias:null,args:null,concreteType:"OperationsThroughputGraphData",kind:"LinkedField",name:"dataset",plural:!0,selections:[s,d,c,u],storageKey:null}],storageKey:null}]},{if:null,kind:"Defer",label:"apiMonitoringQuery$defer$apiErrorsTileFragment_1tCgTg",selections:[{alias:null,args:r,concreteType:"OperationsThroughputGraph",kind:"LinkedField",name:"throughput",plural:!1,selections:[{alias:null,args:null,concreteType:"OperationsThroughputGraphData",kind:"LinkedField",name:"dataset",plural:!0,selections:[s,u],storageKey:null}],storageKey:null}]}],storageKey:null}],storageKey:null},{if:null,kind:"Defer",label:"apiMonitoringQuery$defer$apiErrorsInsightTile_1tCgTg",selections:[{alias:null,args:null,concreteType:"StageMetrics",kind:"LinkedField",name:"metrics",plural:!1,selections:[{alias:null,args:null,concreteType:"StageErrorsMetrics",kind:"LinkedField",name:"errors",plural:!1,selections:[{alias:null,args:g,concreteType:"ErrorInsightsConnection",kind:"LinkedField",name:"insights",plural:!1,selections:[{alias:null,args:null,concreteType:"ErrorInsightsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[m,{alias:null,args:null,concreteType:"ErrorInsight",kind:"LinkedField",name:"node",plural:!1,selections:[p,{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"lastSeen",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"epm",storageKey:null},c,h],storageKey:null}],storageKey:null},y],storageKey:null},{alias:null,args:g,filters:["from","to"],handle:"connection",key:"apiErrorsInsightTile_insights",kind:"LinkedHandle",name:"insights"}],storageKey:null}],storageKey:null},p]},{if:null,kind:"Defer",label:"apiMonitoringQuery$defer$apiClientsTileFragment_1tCgTg",selections:[{alias:null,args:null,concreteType:"StageMetrics",kind:"LinkedField",name:"metrics",plural:!1,selections:[{alias:null,args:null,concreteType:"StageClientsMetrics",kind:"LinkedField",name:"clients",plural:!1,selections:[{alias:null,args:f,concreteType:"ClientInsightsConnection",kind:"LinkedField",name:"insights",plural:!1,selections:[{alias:null,args:null,concreteType:"ClientInsightsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"ClientInsight",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},c,x,p,h],storageKey:null},m],storageKey:null},y],storageKey:null},{alias:null,args:f,filters:["from","to","orderBy"],handle:"connection",key:"apiClientsTile_clients_insights",kind:"LinkedHandle",name:"insights"}],storageKey:null}],storageKey:null},p]},{if:null,kind:"Defer",label:"apiMonitoringQuery$defer$apiInsightsTileFragment_1tCgTg",selections:[{alias:null,args:null,concreteType:"StageMetrics",kind:"LinkedField",name:"metrics",plural:!1,selections:[{alias:null,args:null,concreteType:"StageOperationsMetrics",kind:"LinkedField",name:"operations",plural:!1,selections:[{alias:null,args:f,concreteType:"OperationInsightsConnection",kind:"LinkedField",name:"insights",plural:!1,selections:[{alias:null,args:null,concreteType:"OperationInsightsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"OperationInsight",kind:"LinkedField",name:"node",plural:!1,selections:[p,{alias:null,args:null,kind:"ScalarField",name:"kind",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hash",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"operationName",storageKey:null},k,d,b,x,{alias:null,args:null,concreteType:"OperationLatencyGraph",kind:"LinkedField",name:"latency",plural:!1,selections:[{alias:null,args:null,concreteType:"OperationLatencyGraphData",kind:"LinkedField",name:"dataset",plural:!0,selections:o,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"OperationThroughputGraph",kind:"LinkedField",name:"throughput",plural:!1,selections:[{alias:null,args:null,concreteType:"OperationThroughputGraphData",kind:"LinkedField",name:"dataset",plural:!0,selections:v,storageKey:null}],storageKey:null},h],storageKey:null},m],storageKey:null},y],storageKey:null},{alias:null,args:f,filters:j,handle:"connection",key:"apiOperationsInsightsGrid_operations_insights",kind:"LinkedHandle",name:"insights"}],storageKey:null},{alias:null,args:null,concreteType:"StageResolversMetrics",kind:"LinkedField",name:"resolvers",plural:!1,selections:[{alias:null,args:f,concreteType:"ResolverInsightsConnection",kind:"LinkedField",name:"insights",plural:!1,selections:[{alias:null,args:null,concreteType:"ResolverInsightsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"ResolverInsight",kind:"LinkedField",name:"node",plural:!1,selections:[p,{alias:null,args:null,kind:"ScalarField",name:"coordinate",storageKey:null},k,d,b,x,{alias:null,args:null,concreteType:"ResolverLatencyGraph",kind:"LinkedField",name:"latency",plural:!1,selections:[{alias:null,args:null,concreteType:"ResolverLatencyGraphData",kind:"LinkedField",name:"dataset",plural:!0,selections:o,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"ResolverThroughputGraph",kind:"LinkedField",name:"throughput",plural:!1,selections:[{alias:null,args:null,concreteType:"ResolverThroughputGraphData",kind:"LinkedField",name:"dataset",plural:!0,selections:v,storageKey:null}],storageKey:null},h],storageKey:null},m],storageKey:null},y],storageKey:null},{alias:null,args:f,filters:j,handle:"connection",key:"apiResolversInsightsGrid_resolvers_insights",kind:"LinkedHandle",name:"insights"}],storageKey:null}],storageKey:null},p]},p],storageKey:null}]},params:{id:"4823aa15843dec7ed3d3b415a1ecff20",metadata:{},name:"apiMonitoringQuery",operationKind:"query",text:null}}}();a.hash="5701d4fca4ea4704e4d5ea65ef59664f";const t=a},66498:(e,n,l)=>{l.r(n),l.d(n,{default:()=>r});const a=function(){var e={defaultValue:25,kind:"LocalArgument",name:"count"},n={defaultValue:null,kind:"LocalArgument",name:"cursor"},l={defaultValue:null,kind:"LocalArgument",name:"from"},a={defaultValue:null,kind:"LocalArgument",name:"id"},t={defaultValue:null,kind:"LocalArgument",name:"search"},i={defaultValue:{impact:"DESC"},kind:"LocalArgument",name:"sort"},r={defaultValue:null,kind:"LocalArgument",name:"to"},s=[{kind:"Variable",name:"id",variableName:"id"}],o={kind:"Variable",name:"from",variableName:"from"},d={kind:"Variable",name:"search",variableName:"search"},c={kind:"Variable",name:"to",variableName:"to"},u={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},m=[{kind:"Variable",name:"after",variableName:"cursor"},{kind:"Variable",name:"first",variableName:"count"},o,{kind:"Variable",name:"orderBy",variableName:"sort"},d,c],p={alias:null,args:null,kind:"ScalarField",name:"opm",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"errorRate",storageKey:null},y={alias:null,args:null,kind:"ScalarField",name:"epoch",storageKey:null};return{fragment:{argumentDefinitions:[e,n,l,a,t,i,r],kind:"Fragment",metadata:null,name:"apiOperationsInsightsGridPaginationQuery",selections:[{alias:null,args:s,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{args:[{kind:"Variable",name:"count",variableName:"count"},{kind:"Variable",name:"cursor",variableName:"cursor"},o,d,{kind:"Variable",name:"sort",variableName:"sort"},c],kind:"FragmentSpread",name:"apiOperationsInsightsGrid"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[e,n,l,t,i,r,a],kind:"Operation",name:"apiOperationsInsightsGridPaginationQuery",selections:[{alias:null,args:s,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[u,g,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"StageMetrics",kind:"LinkedField",name:"metrics",plural:!1,selections:[{alias:null,args:null,concreteType:"StageOperationsMetrics",kind:"LinkedField",name:"operations",plural:!1,selections:[{alias:null,args:m,concreteType:"OperationInsightsConnection",kind:"LinkedField",name:"insights",plural:!1,selections:[{alias:null,args:null,concreteType:"OperationInsightsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"OperationInsight",kind:"LinkedField",name:"node",plural:!1,selections:[g,{alias:null,args:null,kind:"ScalarField",name:"kind",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hash",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"operationName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"averageLatency",storageKey:null},p,h,{alias:null,args:null,kind:"ScalarField",name:"impact",storageKey:null},{alias:null,args:null,concreteType:"OperationLatencyGraph",kind:"LinkedField",name:"latency",plural:!1,selections:[{alias:null,args:null,concreteType:"OperationLatencyGraphData",kind:"LinkedField",name:"dataset",plural:!0,selections:[y,{alias:null,args:null,kind:"ScalarField",name:"mean",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"p95",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"p99",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"OperationThroughputGraph",kind:"LinkedField",name:"throughput",plural:!1,selections:[{alias:null,args:null,concreteType:"OperationThroughputGraphData",kind:"LinkedField",name:"dataset",plural:!0,selections:[y,p,h],storageKey:null}],storageKey:null},u],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:m,filters:["from","to","orderBy","search"],handle:"connection",key:"apiOperationsInsightsGrid_operations_insights",kind:"LinkedHandle",name:"insights"}],storageKey:null}],storageKey:null}],type:"Stage",abstractKey:null}],storageKey:null}]},params:{id:"3ff4cdcde2d897de386ae58734a446ba",metadata:{},name:"apiOperationsInsightsGridPaginationQuery",operationKind:"query",text:null}}}();a.hash="c245c25e64393e08fa4357ead4859ff7";const t=a,i=function(){var e=["metrics","operations","insights"],n={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"opm",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"errorRate",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"epoch",storageKey:null};return{argumentDefinitions:[{defaultValue:25,kind:"LocalArgument",name:"count"},{defaultValue:null,kind:"LocalArgument",name:"cursor"},{defaultValue:null,kind:"LocalArgument",name:"from"},{defaultValue:null,kind:"LocalArgument",name:"search"},{defaultValue:{impact:"DESC"},kind:"LocalArgument",name:"sort"},{defaultValue:null,kind:"LocalArgument",name:"to"}],kind:"Fragment",metadata:{connection:[{count:"count",cursor:"cursor",direction:"forward",path:e}],refetch:{connection:{forward:{count:"count",cursor:"cursor"},backward:null,path:e},fragmentPathInResult:["node"],operation:t,identifierInfo:{identifierField:"id",identifierQueryVariableName:"id"}}},name:"apiOperationsInsightsGrid",selections:[{alias:null,args:null,concreteType:"StageMetrics",kind:"LinkedField",name:"metrics",plural:!1,selections:[{alias:null,args:null,concreteType:"StageOperationsMetrics",kind:"LinkedField",name:"operations",plural:!1,selections:[{alias:"insights",args:[{kind:"Variable",name:"from",variableName:"from"},{kind:"Variable",name:"orderBy",variableName:"sort"},{kind:"Variable",name:"search",variableName:"search"},{kind:"Variable",name:"to",variableName:"to"}],concreteType:"OperationInsightsConnection",kind:"LinkedField",name:"__apiOperationsInsightsGrid_operations_insights_connection",plural:!1,selections:[{alias:null,args:null,concreteType:"OperationInsightsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"OperationInsight",kind:"LinkedField",name:"node",plural:!1,selections:[n,{alias:null,args:null,kind:"ScalarField",name:"kind",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hash",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"operationName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"averageLatency",storageKey:null},l,a,{alias:null,args:null,kind:"ScalarField",name:"impact",storageKey:null},{alias:null,args:null,concreteType:"OperationLatencyGraph",kind:"LinkedField",name:"latency",plural:!1,selections:[{alias:null,args:null,concreteType:"OperationLatencyGraphData",kind:"LinkedField",name:"dataset",plural:!0,selections:[i,{alias:null,args:null,kind:"ScalarField",name:"mean",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"p95",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"p99",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"OperationThroughputGraph",kind:"LinkedField",name:"throughput",plural:!1,selections:[{alias:null,args:null,concreteType:"OperationThroughputGraphData",kind:"LinkedField",name:"dataset",plural:!0,selections:[i,l,a],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},n],type:"Stage",abstractKey:null}}();i.hash="c245c25e64393e08fa4357ead4859ff7";const r=i},44842:(e,n,l)=>{l.r(n),l.d(n,{default:()=>r});const a=function(){var e={defaultValue:25,kind:"LocalArgument",name:"count"},n={defaultValue:null,kind:"LocalArgument",name:"cursor"},l={defaultValue:null,kind:"LocalArgument",name:"from"},a={defaultValue:null,kind:"LocalArgument",name:"id"},t={defaultValue:null,kind:"LocalArgument",name:"search"},i={defaultValue:{impact:"DESC"},kind:"LocalArgument",name:"sort"},r={defaultValue:null,kind:"LocalArgument",name:"to"},s=[{kind:"Variable",name:"id",variableName:"id"}],o={kind:"Variable",name:"from",variableName:"from"},d={kind:"Variable",name:"search",variableName:"search"},c={kind:"Variable",name:"to",variableName:"to"},u={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},m=[{kind:"Variable",name:"after",variableName:"cursor"},{kind:"Variable",name:"first",variableName:"count"},o,{kind:"Variable",name:"orderBy",variableName:"sort"},d,c],p={alias:null,args:null,kind:"ScalarField",name:"opm",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"errorRate",storageKey:null},y={alias:null,args:null,kind:"ScalarField",name:"epoch",storageKey:null};return{fragment:{argumentDefinitions:[e,n,l,a,t,i,r],kind:"Fragment",metadata:null,name:"apiResolversInsightsGridPaginationQuery",selections:[{alias:null,args:s,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{args:[{kind:"Variable",name:"count",variableName:"count"},{kind:"Variable",name:"cursor",variableName:"cursor"},o,d,{kind:"Variable",name:"sort",variableName:"sort"},c],kind:"FragmentSpread",name:"apiResolversInsightsGrid"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[e,n,l,t,i,r,a],kind:"Operation",name:"apiResolversInsightsGridPaginationQuery",selections:[{alias:null,args:s,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[u,g,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"StageMetrics",kind:"LinkedField",name:"metrics",plural:!1,selections:[{alias:null,args:null,concreteType:"StageResolversMetrics",kind:"LinkedField",name:"resolvers",plural:!1,selections:[{alias:null,args:m,concreteType:"ResolverInsightsConnection",kind:"LinkedField",name:"insights",plural:!1,selections:[{alias:null,args:null,concreteType:"ResolverInsightsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"ResolverInsight",kind:"LinkedField",name:"node",plural:!1,selections:[g,{alias:null,args:null,kind:"ScalarField",name:"coordinate",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"averageLatency",storageKey:null},p,h,{alias:null,args:null,kind:"ScalarField",name:"impact",storageKey:null},{alias:null,args:null,concreteType:"ResolverLatencyGraph",kind:"LinkedField",name:"latency",plural:!1,selections:[{alias:null,args:null,concreteType:"ResolverLatencyGraphData",kind:"LinkedField",name:"dataset",plural:!0,selections:[y,{alias:null,args:null,kind:"ScalarField",name:"mean",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"p95",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"p99",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"ResolverThroughputGraph",kind:"LinkedField",name:"throughput",plural:!1,selections:[{alias:null,args:null,concreteType:"ResolverThroughputGraphData",kind:"LinkedField",name:"dataset",plural:!0,selections:[y,p,h],storageKey:null}],storageKey:null},u],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:m,filters:["from","to","orderBy","search"],handle:"connection",key:"apiResolversInsightsGrid_resolvers_insights",kind:"LinkedHandle",name:"insights"}],storageKey:null}],storageKey:null}],type:"Stage",abstractKey:null}],storageKey:null}]},params:{id:"a15a2ec4c82aee5ec214212084b4437f",metadata:{},name:"apiResolversInsightsGridPaginationQuery",operationKind:"query",text:null}}}();a.hash="5c381ab3aba953ec85798bf5cd561e3d";const t=a,i=function(){var e=["metrics","resolvers","insights"],n={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"opm",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"errorRate",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"epoch",storageKey:null};return{argumentDefinitions:[{defaultValue:25,kind:"LocalArgument",name:"count"},{defaultValue:null,kind:"LocalArgument",name:"cursor"},{defaultValue:null,kind:"LocalArgument",name:"from"},{defaultValue:null,kind:"LocalArgument",name:"search"},{defaultValue:{impact:"DESC"},kind:"LocalArgument",name:"sort"},{defaultValue:null,kind:"LocalArgument",name:"to"}],kind:"Fragment",metadata:{connection:[{count:"count",cursor:"cursor",direction:"forward",path:e}],refetch:{connection:{forward:{count:"count",cursor:"cursor"},backward:null,path:e},fragmentPathInResult:["node"],operation:t,identifierInfo:{identifierField:"id",identifierQueryVariableName:"id"}}},name:"apiResolversInsightsGrid",selections:[{alias:null,args:null,concreteType:"StageMetrics",kind:"LinkedField",name:"metrics",plural:!1,selections:[{alias:null,args:null,concreteType:"StageResolversMetrics",kind:"LinkedField",name:"resolvers",plural:!1,selections:[{alias:"insights",args:[{kind:"Variable",name:"from",variableName:"from"},{kind:"Variable",name:"orderBy",variableName:"sort"},{kind:"Variable",name:"search",variableName:"search"},{kind:"Variable",name:"to",variableName:"to"}],concreteType:"ResolverInsightsConnection",kind:"LinkedField",name:"__apiResolversInsightsGrid_resolvers_insights_connection",plural:!1,selections:[{alias:null,args:null,concreteType:"ResolverInsightsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"ResolverInsight",kind:"LinkedField",name:"node",plural:!1,selections:[n,{alias:null,args:null,kind:"ScalarField",name:"coordinate",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"averageLatency",storageKey:null},l,a,{alias:null,args:null,kind:"ScalarField",name:"impact",storageKey:null},{alias:null,args:null,concreteType:"ResolverLatencyGraph",kind:"LinkedField",name:"latency",plural:!1,selections:[{alias:null,args:null,concreteType:"ResolverLatencyGraphData",kind:"LinkedField",name:"dataset",plural:!0,selections:[i,{alias:null,args:null,kind:"ScalarField",name:"mean",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"p95",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"p99",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"ResolverThroughputGraph",kind:"LinkedField",name:"throughput",plural:!1,selections:[{alias:null,args:null,concreteType:"ResolverThroughputGraphData",kind:"LinkedField",name:"dataset",plural:!0,selections:[i,l,a],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},n],type:"Stage",abstractKey:null}}();i.hash="5c381ab3aba953ec85798bf5cd561e3d";const r=i},97671:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"from"},{defaultValue:null,kind:"LocalArgument",name:"to"}],kind:"Fragment",metadata:null,name:"apiThroughputTileFragment",selections:[{alias:null,args:[{kind:"Variable",name:"from",variableName:"from"},{kind:"Variable",name:"to",variableName:"to"}],concreteType:"OperationsThroughputGraph",kind:"LinkedField",name:"throughput",plural:!1,selections:[{alias:null,args:null,concreteType:"OperationsThroughputGraphData",kind:"LinkedField",name:"dataset",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"epoch",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"opm",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"totalCount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"totalCountWithError",storageKey:null}],storageKey:null}],storageKey:null}],type:"StageOperationsMetrics",abstractKey:null,hash:"cf0314dfd4d2ba7e10f3243cc757ba39"},t=a},67346:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"from"},{defaultValue:null,kind:"LocalArgument",name:"to"}],kind:"Fragment",metadata:null,name:"operationErrorsTileFragment",selections:[{alias:null,args:[{kind:"Variable",name:"from",variableName:"from"},{kind:"Variable",name:"to",variableName:"to"}],concreteType:"OperationThroughputGraph",kind:"LinkedField",name:"throughput",plural:!1,selections:[{alias:null,args:null,concreteType:"OperationThroughputGraphData",kind:"LinkedField",name:"dataset",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"epoch",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"totalCountWithError",storageKey:null}],storageKey:null}],storageKey:null}],type:"StageOperationMetrics",abstractKey:null,hash:"7af820c1a59a23f8021d6b348955361d"},t=a},35485:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"from"},{defaultValue:null,kind:"LocalArgument",name:"to"}],kind:"Fragment",metadata:null,name:"operationLatencyHistogramTileFragment",selections:[{alias:null,args:[{kind:"Variable",name:"from",variableName:"from"},{kind:"Variable",name:"to",variableName:"to"}],concreteType:"OperationLatencyDistributionGraph",kind:"LinkedField",name:"latencyDistribution",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"totalCount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"p95",storageKey:null},{alias:null,args:null,concreteType:"OperationLatencyDistributionGraphData",kind:"LinkedField",name:"dataset",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"bin",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"errorFrequency",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"successFrequency",storageKey:null}],storageKey:null}],storageKey:null}],type:"StageOperationMetrics",abstractKey:null,hash:"31b994e0428b0de513885c856b7c546c"},t=a},94013:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"from"},{defaultValue:null,kind:"LocalArgument",name:"to"}],kind:"Fragment",metadata:null,name:"operationLatencyTileFragment",selections:[{alias:null,args:[{kind:"Variable",name:"from",variableName:"from"},{kind:"Variable",name:"to",variableName:"to"}],concreteType:"OperationLatencyGraph",kind:"LinkedField",name:"latency",plural:!1,selections:[{alias:null,args:null,concreteType:"OperationLatencyGraphData",kind:"LinkedField",name:"dataset",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"epoch",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"mean",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"p95",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"p99",storageKey:null}],storageKey:null}],storageKey:null}],type:"StageOperationMetrics",abstractKey:null,hash:"123384150d983cc1e78ade7166d232ae"},t=a},97113:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a=function(){var e={defaultValue:null,kind:"LocalArgument",name:"from"},n={defaultValue:null,kind:"LocalArgument",name:"hash"},l={defaultValue:null,kind:"LocalArgument",name:"maxLatency"},a={defaultValue:null,kind:"LocalArgument",name:"minLatency"},t={defaultValue:null,kind:"LocalArgument",name:"operationName"},i={defaultValue:null,kind:"LocalArgument",name:"stageId"},r={defaultValue:null,kind:"LocalArgument",name:"to"},s=[{kind:"Variable",name:"id",variableName:"stageId"}],o={kind:"Variable",name:"hash",variableName:"hash"},d={kind:"Variable",name:"operationName",variableName:"operationName"},c=[o,d],u={kind:"Variable",name:"from",variableName:"from"},g={kind:"Variable",name:"to",variableName:"to"},m=[u,g],p={kind:"Variable",name:"maxLatency",variableName:"maxLatency"},h={kind:"Variable",name:"minLatency",variableName:"minLatency"},y={alias:null,args:null,kind:"ScalarField",name:"epoch",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"p95",storageKey:null},x={alias:null,args:null,kind:"ScalarField",name:"totalCount",storageKey:null},k={alias:null,args:null,kind:"ScalarField",name:"totalCountWithError",storageKey:null},b={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:[e,n,l,a,t,i,r],kind:"Fragment",metadata:null,name:"operationMonitoringQuery",selections:[{alias:"stage",args:s,concreteType:"Stage",kind:"LinkedField",name:"stageById",plural:!1,selections:[{alias:null,args:null,concreteType:"StageMetrics",kind:"LinkedField",name:"metrics",plural:!1,selections:[{alias:null,args:c,concreteType:"StageOperationMetrics",kind:"LinkedField",name:"operation",plural:!1,selections:[{kind:"Defer",selections:[{args:m,kind:"FragmentSpread",name:"operationLatencyTileFragment"}]},{kind:"Defer",selections:[{args:m,kind:"FragmentSpread",name:"operationThroughputTileFragment"}]},{kind:"Defer",selections:[{args:m,kind:"FragmentSpread",name:"operationErrorsTileFragment"}]},{kind:"Defer",selections:[{args:m,kind:"FragmentSpread",name:"operationLatencyHistogramTileFragment"}]}],storageKey:null}],storageKey:null},{kind:"Defer",selections:[{args:[u,o,p,h,d,g],kind:"FragmentSpread",name:"operationTraceSampleTileRefetchFragment"}]}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[i,n,t,e,r,a,l],kind:"Operation",name:"operationMonitoringQuery",selections:[{alias:"stage",args:s,concreteType:"Stage",kind:"LinkedField",name:"stageById",plural:!1,selections:[{alias:null,args:null,concreteType:"StageMetrics",kind:"LinkedField",name:"metrics",plural:!1,selections:[{alias:null,args:c,concreteType:"StageOperationMetrics",kind:"LinkedField",name:"operation",plural:!1,selections:[{if:null,kind:"Defer",label:"operationMonitoringQuery$defer$operationLatencyTileFragment_1tCgTg",selections:[{alias:null,args:m,concreteType:"OperationLatencyGraph",kind:"LinkedField",name:"latency",plural:!1,selections:[{alias:null,args:null,concreteType:"OperationLatencyGraphData",kind:"LinkedField",name:"dataset",plural:!0,selections:[y,{alias:null,args:null,kind:"ScalarField",name:"mean",storageKey:null},f,{alias:null,args:null,kind:"ScalarField",name:"p99",storageKey:null}],storageKey:null}],storageKey:null}]},{if:null,kind:"Defer",label:"operationMonitoringQuery$defer$operationThroughputTileFragment_1tCgTg",selections:[{alias:null,args:m,concreteType:"OperationThroughputGraph",kind:"LinkedField",name:"throughput",plural:!1,selections:[{alias:null,args:null,concreteType:"OperationThroughputGraphData",kind:"LinkedField",name:"dataset",plural:!0,selections:[y,{alias:null,args:null,kind:"ScalarField",name:"opm",storageKey:null},x,k],storageKey:null}],storageKey:null}]},{if:null,kind:"Defer",label:"operationMonitoringQuery$defer$operationErrorsTileFragment_1tCgTg",selections:[{alias:null,args:m,concreteType:"OperationThroughputGraph",kind:"LinkedField",name:"throughput",plural:!1,selections:[{alias:null,args:null,concreteType:"OperationThroughputGraphData",kind:"LinkedField",name:"dataset",plural:!0,selections:[y,k],storageKey:null}],storageKey:null}]},{if:null,kind:"Defer",label:"operationMonitoringQuery$defer$operationLatencyHistogramTileFragment_1tCgTg",selections:[{alias:null,args:m,concreteType:"OperationLatencyDistributionGraph",kind:"LinkedField",name:"latencyDistribution",plural:!1,selections:[x,f,{alias:null,args:null,concreteType:"OperationLatencyDistributionGraphData",kind:"LinkedField",name:"dataset",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"bin",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"errorFrequency",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"successFrequency",storageKey:null}],storageKey:null}],storageKey:null}]}],storageKey:null}],storageKey:null},{if:null,kind:"Defer",label:"operationMonitoringQuery$defer$operationTraceSampleTileRefetchFragment_47zR0k",selections:[{alias:null,args:null,concreteType:"StageMetrics",kind:"LinkedField",name:"metrics",plural:!1,selections:[{alias:null,args:c,concreteType:"StageOperationMetrics",kind:"LinkedField",name:"operation",plural:!1,selections:[{alias:null,args:[u,p,h,g],concreteType:"OperationTraceSample",kind:"LinkedField",name:"samples",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"spanId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"traceId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"seeker",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},b]},b],storageKey:null}]},params:{id:"4720494d16f3509d208467e7dceaeb84",metadata:{},name:"operationMonitoringQuery",operationKind:"query",text:null}}}();a.hash="37f572f14cfb4df561415fc55ba70834";const t=a},87404:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"from"},{defaultValue:null,kind:"LocalArgument",name:"to"}],kind:"Fragment",metadata:null,name:"operationThroughputTileFragment",selections:[{alias:null,args:[{kind:"Variable",name:"from",variableName:"from"},{kind:"Variable",name:"to",variableName:"to"}],concreteType:"OperationThroughputGraph",kind:"LinkedField",name:"throughput",plural:!1,selections:[{alias:null,args:null,concreteType:"OperationThroughputGraphData",kind:"LinkedField",name:"dataset",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"epoch",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"opm",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"totalCount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"totalCountWithError",storageKey:null}],storageKey:null}],storageKey:null}],type:"StageOperationMetrics",abstractKey:null,hash:"1e3671342d995e863ce77228f286fab6"},t=a},19112:(e,n,l)=>{l.r(n),l.d(n,{default:()=>r});const a=function(){var e={defaultValue:null,kind:"LocalArgument",name:"after"},n={defaultValue:null,kind:"LocalArgument",name:"before"},l={defaultValue:null,kind:"LocalArgument",name:"first"},a={defaultValue:null,kind:"LocalArgument",name:"id"},t={defaultValue:200,kind:"LocalArgument",name:"last"},i={defaultValue:null,kind:"LocalArgument",name:"seeker"},r={defaultValue:null,kind:"LocalArgument",name:"spanId"},s={defaultValue:null,kind:"LocalArgument",name:"traceId"},o=[{kind:"Variable",name:"id",variableName:"id"}],d={kind:"Variable",name:"after",variableName:"after"},c={kind:"Variable",name:"before",variableName:"before"},u={kind:"Variable",name:"first",variableName:"first"},g={kind:"Variable",name:"last",variableName:"last"},m={kind:"Variable",name:"seeker",variableName:"seeker"},p={kind:"Variable",name:"spanId",variableName:"spanId"},h={kind:"Variable",name:"traceId",variableName:"traceId"},y={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},f=[d,c,u,g],x={alias:null,args:null,kind:"ScalarField",name:"key",storageKey:null};return{fragment:{argumentDefinitions:[e,n,l,a,t,i,r,s],kind:"Fragment",metadata:null,name:"operationTraceLogsPaginationQuery",selections:[{alias:null,args:o,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{args:[d,c,u,g,m,p,h],kind:"FragmentSpread",name:"operationTraceLogs"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[e,n,l,t,i,r,s,a],kind:"Operation",name:"operationTraceLogsPaginationQuery",selections:[{alias:null,args:o,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[y,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{kind:"InlineFragment",selections:[{alias:"trace",args:[m,p,h],concreteType:"OpenTelemetryTrace",kind:"LinkedField",name:"traceById",plural:!1,selections:[{alias:null,args:f,concreteType:"OpenTelemetryLogsConnection",kind:"LinkedField",name:"logs",plural:!1,selections:[{alias:null,args:null,concreteType:"OpenTelemetryLogsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null},{alias:null,args:null,concreteType:"OpenTelemetryLog",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"epoch",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"body",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"severityNumber",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"severityText",storageKey:null},{alias:null,args:null,concreteType:"Attribute",kind:"LinkedField",name:"resourceAttributes",plural:!0,selections:[x,{alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"logAttributes",plural:!0,selections:[y,x,{kind:"InlineFragment",selections:[{alias:"boolValue",args:null,kind:"ScalarField",name:"value",storageKey:null}],type:"OpenTelemetryBoolAttribute",abstractKey:null},{kind:"InlineFragment",selections:[{alias:"longValue",args:null,kind:"ScalarField",name:"value",storageKey:null}],type:"OpenTelemetryLongAttribute",abstractKey:null},{kind:"InlineFragment",selections:[{alias:"floatValue",args:null,kind:"ScalarField",name:"value",storageKey:null}],type:"OpenTelemetryFloatAttribute",abstractKey:null},{kind:"InlineFragment",selections:[{alias:"stringValue",args:null,kind:"ScalarField",name:"value",storageKey:null}],type:"OpenTelemetryStringAttribute",abstractKey:null}],storageKey:null},y],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasPreviousPage",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"startCursor",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:f,filters:null,handle:"connection",key:"trace_logs",kind:"LinkedHandle",name:"logs"}],storageKey:null}],type:"Stage",abstractKey:null}],storageKey:null}]},params:{id:"59e44b9b9682af448caf58abe5350e6e",metadata:{},name:"operationTraceLogsPaginationQuery",operationKind:"query",text:null}}}();a.hash="715d8f323d7fe8207e1cc8163062cd48";const t=a,i=function(){var e=["trace","logs"];return{argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"after"},{defaultValue:null,kind:"LocalArgument",name:"before"},{defaultValue:null,kind:"LocalArgument",name:"first"},{defaultValue:200,kind:"LocalArgument",name:"last"},{defaultValue:null,kind:"LocalArgument",name:"seeker"},{defaultValue:null,kind:"LocalArgument",name:"spanId"},{defaultValue:null,kind:"LocalArgument",name:"traceId"}],kind:"Fragment",metadata:{connection:[{count:null,cursor:null,direction:"bidirectional",path:e}],refetch:{connection:{forward:{count:"first",cursor:"after"},backward:{count:"last",cursor:"before"},path:e},fragmentPathInResult:["node"],operation:t,identifierInfo:{identifierField:"id",identifierQueryVariableName:"id"}}},name:"operationTraceLogs",selections:[{alias:"trace",args:[{kind:"Variable",name:"seeker",variableName:"seeker"},{kind:"Variable",name:"spanId",variableName:"spanId"},{kind:"Variable",name:"traceId",variableName:"traceId"}],concreteType:"OpenTelemetryTrace",kind:"LinkedField",name:"traceById",plural:!1,selections:[{alias:"logs",args:null,concreteType:"OpenTelemetryLogsConnection",kind:"LinkedField",name:"__trace_logs_connection",plural:!1,selections:[{alias:null,args:null,concreteType:"OpenTelemetryLogsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null},{alias:null,args:null,concreteType:"OpenTelemetryLog",kind:"LinkedField",name:"node",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"logList"},{args:null,kind:"FragmentSpread",name:"logDetailsFlyout"},{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasPreviousPage",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"startCursor",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],type:"Stage",abstractKey:null}}();i.hash="715d8f323d7fe8207e1cc8163062cd48";const r=i},4228:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a=function(){var e={defaultValue:null,kind:"LocalArgument",name:"seeker"},n={defaultValue:null,kind:"LocalArgument",name:"spanId"},l={defaultValue:null,kind:"LocalArgument",name:"stageId"},a={defaultValue:null,kind:"LocalArgument",name:"traceId"},t=[{kind:"Variable",name:"id",variableName:"stageId"}],i=[{kind:"Variable",name:"seeker",variableName:"seeker"},{kind:"Variable",name:"spanId",variableName:"spanId"},{kind:"Variable",name:"traceId",variableName:"traceId"}],r={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},s={alias:null,args:null,kind:"ScalarField",name:"epoch",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"statusCode",storageKey:null},d={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},c={alias:null,args:null,kind:"ScalarField",name:"key",storageKey:null},u=[c,{alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null}],g={alias:null,args:null,concreteType:"Attribute",kind:"LinkedField",name:"resourceAttributes",plural:!0,selections:u,storageKey:null},m={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},p={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"body",storageKey:null},y=[{alias:null,args:null,kind:"ScalarField",name:"flavor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"method",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"scheme",storageKey:null},o,m,{alias:null,args:null,kind:"ScalarField",name:"userAgent",storageKey:null}],f={alias:"trace",args:i,concreteType:"OpenTelemetryTrace",kind:"LinkedField",name:"traceById",plural:!1,selections:[{alias:"offset",args:null,kind:"ScalarField",name:"epoch",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"totalDuration",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"spans",plural:!0,selections:[r,{alias:null,args:null,kind:"ScalarField",name:"spanId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"parentSpanId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"traceId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"traceState",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"spanName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"spanKind",storageKey:null},s,{alias:null,args:null,kind:"ScalarField",name:"duration",storageKey:null},o,{alias:null,args:null,kind:"ScalarField",name:"statusMessage",storageKey:null},{alias:null,args:null,concreteType:"OpenTelemetryTraceEvent",kind:"LinkedField",name:"events",plural:!0,selections:[d,s,{alias:null,args:null,concreteType:"Attribute",kind:"LinkedField",name:"attributes",plural:!0,selections:u,storageKey:null}],storageKey:null},g,{alias:null,args:null,concreteType:"Attribute",kind:"LinkedField",name:"spanAttributes",plural:!0,selections:u,storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"OpenTelemetryDbSpanAttributes",kind:"LinkedField",name:"db",plural:!1,selections:[d,{alias:null,args:null,kind:"ScalarField",name:"instance",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"operation",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"statement",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"system",storageKey:null},m,{alias:null,args:null,kind:"ScalarField",name:"user",storageKey:null}],storageKey:null}],type:"OpenTelemetryDbSpan",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"OpenTelemetryGraphQLOperationSpanDocumentAttributes",kind:"LinkedField",name:"document",plural:!1,selections:[p,h],storageKey:null},{alias:null,args:null,concreteType:"OpenTelemetryGraphQLOperationSpanOperationAttributes",kind:"LinkedField",name:"operation",plural:!1,selections:[d,{alias:null,args:null,kind:"ScalarField",name:"kind",storageKey:null}],storageKey:null}],type:"OpenTelemetryGraphQLOperationSpan",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"OpenTelemetryGraphQLResolverSpanSelectionAttributes",kind:"LinkedField",name:"selection",plural:!1,selections:[d,{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"path",storageKey:null},{alias:null,args:null,concreteType:"OpenTelemetryGraphQLResolverSpanFieldAttributes",kind:"LinkedField",name:"field",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"coordinate",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"declaringType",storageKey:null}],storageKey:null}],storageKey:null}],type:"OpenTelemetryGraphQLResolverSpan",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"OpenTelemetryHttpClientSpanAttribute",kind:"LinkedField",name:"http",plural:!1,selections:y,storageKey:null}],type:"OpenTelemetryHttpClientSpan",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"OpenTelemetryHttpServerSpanAttributes",kind:"LinkedField",name:"http",plural:!1,selections:y,storageKey:null}],type:"OpenTelemetryHttpServerSpan",abstractKey:null}],storageKey:null}],storageKey:null},x=[{kind:"Literal",name:"last",value:200}];return{fragment:{argumentDefinitions:[e,n,l,a],kind:"Fragment",metadata:null,name:"operationTraceSampleTileQuery",selections:[{alias:"stage",args:t,concreteType:"Stage",kind:"LinkedField",name:"stageById",plural:!1,selections:[{kind:"Defer",selections:[{args:i,kind:"FragmentSpread",name:"operationTraceLogs"}]},f],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[l,a,n,e],kind:"Operation",name:"operationTraceSampleTileQuery",selections:[{alias:"stage",args:t,concreteType:"Stage",kind:"LinkedField",name:"stageById",plural:!1,selections:[{if:null,kind:"Defer",label:"operationTraceSampleTileQuery$defer$operationTraceLogs_3dfgKw",selections:[{alias:"trace",args:i,concreteType:"OpenTelemetryTrace",kind:"LinkedField",name:"traceById",plural:!1,selections:[{alias:null,args:x,concreteType:"OpenTelemetryLogsConnection",kind:"LinkedField",name:"logs",plural:!1,selections:[{alias:null,args:null,concreteType:"OpenTelemetryLogsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null},{alias:null,args:null,concreteType:"OpenTelemetryLog",kind:"LinkedField",name:"node",plural:!1,selections:[s,h,{alias:null,args:null,kind:"ScalarField",name:"severityNumber",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"severityText",storageKey:null},g,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"logAttributes",plural:!0,selections:[r,c,{kind:"InlineFragment",selections:[{alias:"boolValue",args:null,kind:"ScalarField",name:"value",storageKey:null}],type:"OpenTelemetryBoolAttribute",abstractKey:null},{kind:"InlineFragment",selections:[{alias:"longValue",args:null,kind:"ScalarField",name:"value",storageKey:null}],type:"OpenTelemetryLongAttribute",abstractKey:null},{kind:"InlineFragment",selections:[{alias:"floatValue",args:null,kind:"ScalarField",name:"value",storageKey:null}],type:"OpenTelemetryFloatAttribute",abstractKey:null},{kind:"InlineFragment",selections:[{alias:"stringValue",args:null,kind:"ScalarField",name:"value",storageKey:null}],type:"OpenTelemetryStringAttribute",abstractKey:null}],storageKey:null},r],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasPreviousPage",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"startCursor",storageKey:null}],storageKey:null}],storageKey:"logs(last:200)"},{alias:null,args:x,filters:null,handle:"connection",key:"trace_logs",kind:"LinkedHandle",name:"logs"}],storageKey:null},p]},f,p],storageKey:null}]},params:{id:"4dccc4db6c39032f71652769c32ea7e5",metadata:{},name:"operationTraceSampleTileQuery",operationKind:"query",text:null}}}();a.hash="cf5549b14b207b000b4ead0a10b8adfd";const t=a},56413:(e,n,l)=>{l.r(n),l.d(n,{default:()=>i});const a=function(){var e={defaultValue:null,kind:"LocalArgument",name:"from"},n={defaultValue:null,kind:"LocalArgument",name:"hash"},l={defaultValue:null,kind:"LocalArgument",name:"id"},a={defaultValue:null,kind:"LocalArgument",name:"maxLatency"},t={defaultValue:null,kind:"LocalArgument",name:"minLatency"},i={defaultValue:null,kind:"LocalArgument",name:"operationName"},r={defaultValue:null,kind:"LocalArgument",name:"to"},s=[{kind:"Variable",name:"id",variableName:"id"}],o={kind:"Variable",name:"from",variableName:"from"},d={kind:"Variable",name:"hash",variableName:"hash"},c={kind:"Variable",name:"maxLatency",variableName:"maxLatency"},u={kind:"Variable",name:"minLatency",variableName:"minLatency"},g={kind:"Variable",name:"operationName",variableName:"operationName"},m={kind:"Variable",name:"to",variableName:"to"};return{fragment:{argumentDefinitions:[e,n,l,a,t,i,r],kind:"Fragment",metadata:null,name:"operationTraceSampleTileRefetchQuery",selections:[{alias:null,args:s,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{args:[o,d,c,u,g,m],kind:"FragmentSpread",name:"operationTraceSampleTileRefetchFragment"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[e,n,a,t,i,r,l],kind:"Operation",name:"operationTraceSampleTileRefetchQuery",selections:[{alias:null,args:s,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"StageMetrics",kind:"LinkedField",name:"metrics",plural:!1,selections:[{alias:null,args:[d,g],concreteType:"StageOperationMetrics",kind:"LinkedField",name:"operation",plural:!1,selections:[{alias:null,args:[o,c,u,m],concreteType:"OperationTraceSample",kind:"LinkedField",name:"samples",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"spanId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"traceId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"seeker",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Stage",abstractKey:null}],storageKey:null}]},params:{id:"4b28021eb978d6f3f0bce051a3ce5380",metadata:{},name:"operationTraceSampleTileRefetchQuery",operationKind:"query",text:null}}}();a.hash="fcc8adfea96348fe32b1151d3c1500d8";const t={argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"from"},{defaultValue:null,kind:"LocalArgument",name:"hash"},{defaultValue:null,kind:"LocalArgument",name:"maxLatency"},{defaultValue:null,kind:"LocalArgument",name:"minLatency"},{defaultValue:null,kind:"LocalArgument",name:"operationName"},{defaultValue:null,kind:"LocalArgument",name:"to"}],kind:"Fragment",metadata:{refetch:{connection:null,fragmentPathInResult:["node"],operation:a,identifierInfo:{identifierField:"id",identifierQueryVariableName:"id"}}},name:"operationTraceSampleTileRefetchFragment",selections:[{alias:null,args:null,concreteType:"StageMetrics",kind:"LinkedField",name:"metrics",plural:!1,selections:[{alias:null,args:[{kind:"Variable",name:"hash",variableName:"hash"},{kind:"Variable",name:"operationName",variableName:"operationName"}],concreteType:"StageOperationMetrics",kind:"LinkedField",name:"operation",plural:!1,selections:[{alias:null,args:[{kind:"Variable",name:"from",variableName:"from"},{kind:"Variable",name:"maxLatency",variableName:"maxLatency"},{kind:"Variable",name:"minLatency",variableName:"minLatency"},{kind:"Variable",name:"to",variableName:"to"}],concreteType:"OperationTraceSample",kind:"LinkedField",name:"samples",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"spanId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"traceId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"seeker",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],type:"Stage",abstractKey:null,hash:"fcc8adfea96348fe32b1151d3c1500d8"},i=t},3340:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"from"},{defaultValue:null,kind:"LocalArgument",name:"to"}],kind:"Fragment",metadata:null,name:"resolverErrorsTileFragment",selections:[{alias:null,args:[{kind:"Variable",name:"from",variableName:"from"},{kind:"Variable",name:"to",variableName:"to"}],concreteType:"ResolverThroughputGraph",kind:"LinkedField",name:"throughput",plural:!1,selections:[{alias:null,args:null,concreteType:"ResolverThroughputGraphData",kind:"LinkedField",name:"dataset",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"epoch",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"totalCountWithError",storageKey:null}],storageKey:null}],storageKey:null}],type:"StageResolverMetrics",abstractKey:null,hash:"0cd651617706c40f0d1339b0cd51ad03"},t=a},63727:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"from"},{defaultValue:null,kind:"LocalArgument",name:"to"}],kind:"Fragment",metadata:null,name:"resolverLatencyTileFragment",selections:[{alias:null,args:[{kind:"Variable",name:"from",variableName:"from"},{kind:"Variable",name:"to",variableName:"to"}],concreteType:"ResolverLatencyGraph",kind:"LinkedField",name:"latency",plural:!1,selections:[{alias:null,args:null,concreteType:"ResolverLatencyGraphData",kind:"LinkedField",name:"dataset",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"epoch",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"mean",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"p95",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"p99",storageKey:null}],storageKey:null}],storageKey:null}],type:"StageResolverMetrics",abstractKey:null,hash:"9216e3fc245a2d85a197896a8322ddb8"},t=a},18559:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a=function(){var e={defaultValue:null,kind:"LocalArgument",name:"coordinate"},n={defaultValue:null,kind:"LocalArgument",name:"from"},l={defaultValue:null,kind:"LocalArgument",name:"stageId"},a={defaultValue:null,kind:"LocalArgument",name:"to"},t=[{kind:"Variable",name:"id",variableName:"stageId"}],i=[{kind:"Variable",name:"coordinate",variableName:"coordinate"}],r={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},s=[{kind:"Variable",name:"from",variableName:"from"},{kind:"Variable",name:"to",variableName:"to"}],o={alias:null,args:null,kind:"ScalarField",name:"epoch",storageKey:null},d={alias:null,args:null,kind:"ScalarField",name:"totalCountWithError",storageKey:null};return{fragment:{argumentDefinitions:[e,n,l,a],kind:"Fragment",metadata:null,name:"resolverMonitoringQuery",selections:[{alias:"stage",args:t,concreteType:"Stage",kind:"LinkedField",name:"stageById",plural:!1,selections:[{alias:null,args:null,concreteType:"StageMetrics",kind:"LinkedField",name:"metrics",plural:!1,selections:[{alias:null,args:i,concreteType:"StageResolverMetrics",kind:"LinkedField",name:"resolver",plural:!1,selections:[r,{kind:"Defer",selections:[{args:s,kind:"FragmentSpread",name:"resolverLatencyTileFragment"}]},{kind:"Defer",selections:[{args:s,kind:"FragmentSpread",name:"resolverThroughputTileFragment"}]},{kind:"Defer",selections:[{args:s,kind:"FragmentSpread",name:"resolverErrorsTileFragment"}]}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[l,e,n,a],kind:"Operation",name:"resolverMonitoringQuery",selections:[{alias:"stage",args:t,concreteType:"Stage",kind:"LinkedField",name:"stageById",plural:!1,selections:[{alias:null,args:null,concreteType:"StageMetrics",kind:"LinkedField",name:"metrics",plural:!1,selections:[{alias:null,args:i,concreteType:"StageResolverMetrics",kind:"LinkedField",name:"resolver",plural:!1,selections:[r,{if:null,kind:"Defer",label:"resolverMonitoringQuery$defer$resolverLatencyTileFragment_1tCgTg",selections:[{alias:null,args:s,concreteType:"ResolverLatencyGraph",kind:"LinkedField",name:"latency",plural:!1,selections:[{alias:null,args:null,concreteType:"ResolverLatencyGraphData",kind:"LinkedField",name:"dataset",plural:!0,selections:[o,{alias:null,args:null,kind:"ScalarField",name:"mean",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"p95",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"p99",storageKey:null}],storageKey:null}],storageKey:null}]},{if:null,kind:"Defer",label:"resolverMonitoringQuery$defer$resolverThroughputTileFragment_1tCgTg",selections:[{alias:null,args:s,concreteType:"ResolverThroughputGraph",kind:"LinkedField",name:"throughput",plural:!1,selections:[{alias:null,args:null,concreteType:"ResolverThroughputGraphData",kind:"LinkedField",name:"dataset",plural:!0,selections:[o,{alias:null,args:null,kind:"ScalarField",name:"opm",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"totalCount",storageKey:null},d],storageKey:null}],storageKey:null}]},{if:null,kind:"Defer",label:"resolverMonitoringQuery$defer$resolverErrorsTileFragment_1tCgTg",selections:[{alias:null,args:s,concreteType:"ResolverThroughputGraph",kind:"LinkedField",name:"throughput",plural:!1,selections:[{alias:null,args:null,concreteType:"ResolverThroughputGraphData",kind:"LinkedField",name:"dataset",plural:!0,selections:[o,d],storageKey:null}],storageKey:null}]}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:"a6212464129d8201cd1cafa5d8c405cb",metadata:{},name:"resolverMonitoringQuery",operationKind:"query",text:null}}}();a.hash="3fcd1719255e83fc53793e138fd79b9a";const t=a},35177:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"from"},{defaultValue:null,kind:"LocalArgument",name:"to"}],kind:"Fragment",metadata:null,name:"resolverThroughputTileFragment",selections:[{alias:null,args:[{kind:"Variable",name:"from",variableName:"from"},{kind:"Variable",name:"to",variableName:"to"}],concreteType:"ResolverThroughputGraph",kind:"LinkedField",name:"throughput",plural:!1,selections:[{alias:null,args:null,concreteType:"ResolverThroughputGraphData",kind:"LinkedField",name:"dataset",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"epoch",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"opm",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"totalCount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"totalCountWithError",storageKey:null}],storageKey:null}],storageKey:null}],type:"StageResolverMetrics",abstractKey:null,hash:"1948c682ed67b5a6d094d7a356466104"},t=a},27808:(e,n,l)=>{l.r(n),l.d(n,{default:()=>r});const a=function(){var e=[{defaultValue:50,kind:"LocalArgument",name:"count"},{defaultValue:null,kind:"LocalArgument",name:"cursor"},{defaultValue:null,kind:"LocalArgument",name:"id"}],n=[{kind:"Variable",name:"id",variableName:"id"}],l={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},t=[{kind:"Variable",name:"after",variableName:"cursor"},{kind:"Variable",name:"first",variableName:"count"}];return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"operationsGridPaginationQuery",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{args:[{kind:"Variable",name:"count",variableName:"count"},{kind:"Variable",name:"cursor",variableName:"cursor"}],kind:"FragmentSpread",name:"operationsGridFragment"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"operationsGridPaginationQuery",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[l,a,{kind:"InlineFragment",selections:[{alias:null,args:t,concreteType:"OperationsConnection",kind:"LinkedField",name:"operations",plural:!1,selections:[{alias:null,args:null,concreteType:"OperationsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"Operation",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"kind",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,concreteType:"RequestDocument",kind:"LinkedField",name:"document",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"content",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"documentIds",storageKey:null},a],storageKey:null},l],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:t,filters:null,handle:"connection",key:"operationsGrid_api_operations",kind:"LinkedHandle",name:"operations"}],type:"Api",abstractKey:null}],storageKey:null}]},params:{id:"0aec543d8d739e52e560d4afd495f14b",metadata:{},name:"operationsGridPaginationQuery",operationKind:"query",text:null}}}();a.hash="111d2fe838f87556dfdcfb44e77fe3e0";const t=a,i=function(){var e=["operations"];return{argumentDefinitions:[{defaultValue:50,kind:"LocalArgument",name:"count"},{defaultValue:null,kind:"LocalArgument",name:"cursor"}],kind:"Fragment",metadata:{connection:[{count:"count",cursor:"cursor",direction:"forward",path:e}],refetch:{connection:{forward:{count:"count",cursor:"cursor"},backward:null,path:e},fragmentPathInResult:["node"],operation:t,identifierInfo:{identifierField:"id",identifierQueryVariableName:"id"}}},name:"operationsGridFragment",selections:[{alias:"operations",args:null,concreteType:"OperationsConnection",kind:"LinkedField",name:"__operationsGrid_api_operations_connection",plural:!1,selections:[{alias:null,args:null,concreteType:"OperationsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"Operation",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"kind",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,concreteType:"RequestDocument",kind:"LinkedField",name:"document",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"content",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"documentIds",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],type:"Api",abstractKey:null}}();i.hash="111d2fe838f87556dfdcfb44e77fe3e0";const r=i},59144:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a=function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"apiId"}],n=[{kind:"Variable",name:"id",variableName:"apiId"}],l=[{kind:"Literal",name:"first",value:50}],a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"operationsGridQuery",selections:[{alias:"api",args:n,concreteType:"Api",kind:"LinkedField",name:"apiById",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"operationsGridFragment"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"operationsGridQuery",selections:[{alias:"api",args:n,concreteType:"Api",kind:"LinkedField",name:"apiById",plural:!1,selections:[{alias:null,args:l,concreteType:"OperationsConnection",kind:"LinkedField",name:"operations",plural:!1,selections:[{alias:null,args:null,concreteType:"OperationsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"Operation",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"kind",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,concreteType:"RequestDocument",kind:"LinkedField",name:"document",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"content",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"documentIds",storageKey:null},a],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:"operations(first:50)"},{alias:null,args:l,filters:null,handle:"connection",key:"operationsGrid_api_operations",kind:"LinkedHandle",name:"operations"},a],storageKey:null}]},params:{id:"e8b592145ca52d6b8e51fd1b18256170",metadata:{},name:"operationsGridQuery",operationKind:"query",text:null}}}();a.hash="45944f2bf00bff163480cfd3f45e7a44";const t=a},58690:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a=function(){var e=[{alias:null,args:null,concreteType:"StageLatencySummary",kind:"LinkedField",name:"latency",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"mean",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StageThroughputSummary",kind:"LinkedField",name:"throughput",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"opm",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"errorRate",storageKey:null}],storageKey:null}];return{argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"before"},{defaultValue:null,kind:"LocalArgument",name:"from"},{defaultValue:null,kind:"LocalArgument",name:"to"}],kind:"Fragment",metadata:null,name:"apiDetailsTileFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"displayName",storageKey:null},{kind:"RequiredField",field:{alias:null,args:null,concreteType:"Api",kind:"LinkedField",name:"api",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{kind:"RequiredField",field:{alias:null,args:null,kind:"ScalarField",name:"kind",storageKey:null},action:"NONE",path:"api.kind"}],storageKey:null},action:"NONE",path:"api"},{alias:null,args:null,concreteType:"StageEssentials",kind:"LinkedField",name:"essentials",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"version",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"lastPublishedAt",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"clientCount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"subgraphCount",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StageMetrics",kind:"LinkedField",name:"metrics",plural:!1,selections:[{alias:null,args:null,concreteType:"StageOperationsMetrics",kind:"LinkedField",name:"operations",plural:!1,selections:[{alias:"current",args:[{kind:"Variable",name:"from",variableName:"from"},{kind:"Variable",name:"to",variableName:"to"}],concreteType:"StageOperationMetricsSummary",kind:"LinkedField",name:"summary",plural:!1,selections:e,storageKey:null},{alias:"previous",args:[{kind:"Variable",name:"from",variableName:"before"},{kind:"Variable",name:"to",variableName:"from"}],concreteType:"StageOperationMetricsSummary",kind:"LinkedField",name:"summary",plural:!1,selections:e,storageKey:null}],storageKey:null}],storageKey:null}],type:"Stage",abstractKey:null}}();a.hash="81d8507163b3ab73427fe84d41314cd1";const t=a},25697:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a=function(){var e={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},l={kind:"Variable",name:"from",variableName:"from"},a={kind:"Variable",name:"to",variableName:"to"},t={alias:null,args:null,kind:"ScalarField",name:"opm",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"errorRate",storageKey:null},r=[{kind:"Literal",name:"first",value:25},l,{kind:"Literal",name:"orderBy",value:{impact:"DESC"}},a],s=[e,n,{alias:null,args:null,kind:"ScalarField",name:"averageLatency",storageKey:null},t,i];return{argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"from"},{defaultValue:null,kind:"LocalArgument",name:"to"}],kind:"Fragment",metadata:null,name:"apiTopologyTileFragment",selections:[{kind:"RequiredField",field:{alias:null,args:null,concreteType:"Api",kind:"LinkedField",name:"api",plural:!1,selections:[e,{kind:"RequiredField",field:{alias:null,args:null,kind:"ScalarField",name:"kind",storageKey:null},action:"NONE",path:"api.kind"},n],storageKey:null},action:"NONE",path:"api"},{alias:null,args:null,concreteType:"StageMetrics",kind:"LinkedField",name:"metrics",plural:!1,selections:[{alias:null,args:null,concreteType:"StageOperationsMetrics",kind:"LinkedField",name:"operations",plural:!1,selections:[{alias:null,args:[l,a],concreteType:"StageOperationMetricsSummary",kind:"LinkedField",name:"summary",plural:!1,selections:[{alias:null,args:null,concreteType:"StageLatencySummary",kind:"LinkedField",name:"latency",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"mean",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StageThroughputSummary",kind:"LinkedField",name:"throughput",plural:!1,selections:[t,i],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StageClientsMetrics",kind:"LinkedField",name:"clients",plural:!1,selections:[{alias:null,args:r,concreteType:"ClientInsightsConnection",kind:"LinkedField",name:"insights",plural:!1,selections:[{alias:null,args:null,concreteType:"ClientInsightsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"ClientInsight",kind:"LinkedField",name:"node",plural:!1,selections:s,storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StageSubgraphsMetrics",kind:"LinkedField",name:"subgraphs",plural:!1,selections:[{alias:null,args:r,concreteType:"SubgraphInsightsConnection",kind:"LinkedField",name:"insights",plural:!1,selections:[{alias:null,args:null,concreteType:"SubgraphInsightsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"SubgraphInsight",kind:"LinkedField",name:"node",plural:!1,selections:s,storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Stage",abstractKey:null}}();a.hash="559daac25caeb9378145b178b4f9036e";const t=a},86673:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a=function(){var e={defaultValue:null,kind:"LocalArgument",name:"before"},n={defaultValue:null,kind:"LocalArgument",name:"from"},l={defaultValue:null,kind:"LocalArgument",name:"stageId"},a={defaultValue:null,kind:"LocalArgument",name:"to"},t=[{kind:"Variable",name:"id",variableName:"stageId"}],i={kind:"Variable",name:"from",variableName:"from"},r={kind:"Variable",name:"to",variableName:"to"},s=[i,r],o={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},d={alias:null,args:null,kind:"ScalarField",name:"kind",storageKey:null},c={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},u={alias:null,args:null,kind:"ScalarField",name:"opm",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"errorRate",storageKey:null},m=[{alias:null,args:null,concreteType:"StageLatencySummary",kind:"LinkedField",name:"latency",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"mean",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StageThroughputSummary",kind:"LinkedField",name:"throughput",plural:!1,selections:[u,g],storageKey:null}],p=[{kind:"Literal",name:"first",value:25},i,{kind:"Literal",name:"orderBy",value:{impact:"DESC"}},r],h={alias:null,args:null,kind:"ScalarField",name:"averageLatency",storageKey:null},y=[o,c,h,u,g],f={alias:null,args:null,kind:"ScalarField",name:"displayName",storageKey:null},x={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},k={alias:null,args:null,kind:"ScalarField",name:"epoch",storageKey:null};return{fragment:{argumentDefinitions:[e,n,l,a],kind:"Fragment",metadata:null,name:"gatewayOverviewQuery",selections:[{alias:"stage",args:t,concreteType:"Stage",kind:"LinkedField",name:"stageById",plural:!1,selections:[{kind:"Defer",selections:[{args:s,kind:"FragmentSpread",name:"apiTopologyTileFragment"}]},{kind:"Defer",selections:[{args:[{kind:"Variable",name:"before",variableName:"before"},i,r],kind:"FragmentSpread",name:"apiDetailsTileFragment"}]},{kind:"Defer",selections:[{args:s,kind:"FragmentSpread",name:"gatewaySubgraphsTileFragment"}]}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[l,n,a,e],kind:"Operation",name:"gatewayOverviewQuery",selections:[{alias:"stage",args:t,concreteType:"Stage",kind:"LinkedField",name:"stageById",plural:!1,selections:[{if:null,kind:"Defer",label:"gatewayOverviewQuery$defer$apiTopologyTileFragment_1tCgTg",selections:[{alias:null,args:null,concreteType:"Api",kind:"LinkedField",name:"api",plural:!1,selections:[o,d,c],storageKey:null},{alias:null,args:null,concreteType:"StageMetrics",kind:"LinkedField",name:"metrics",plural:!1,selections:[{alias:null,args:null,concreteType:"StageOperationsMetrics",kind:"LinkedField",name:"operations",plural:!1,selections:[{alias:null,args:s,concreteType:"StageOperationMetricsSummary",kind:"LinkedField",name:"summary",plural:!1,selections:m,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StageClientsMetrics",kind:"LinkedField",name:"clients",plural:!1,selections:[{alias:null,args:p,concreteType:"ClientInsightsConnection",kind:"LinkedField",name:"insights",plural:!1,selections:[{alias:null,args:null,concreteType:"ClientInsightsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"ClientInsight",kind:"LinkedField",name:"node",plural:!1,selections:y,storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StageSubgraphsMetrics",kind:"LinkedField",name:"subgraphs",plural:!1,selections:[{alias:null,args:p,concreteType:"SubgraphInsightsConnection",kind:"LinkedField",name:"insights",plural:!1,selections:[{alias:null,args:null,concreteType:"SubgraphInsightsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"SubgraphInsight",kind:"LinkedField",name:"node",plural:!1,selections:y,storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}]},{if:null,kind:"Defer",label:"gatewayOverviewQuery$defer$apiDetailsTileFragment_2bxChq",selections:[f,{alias:null,args:null,concreteType:"Api",kind:"LinkedField",name:"api",plural:!1,selections:[o,d],storageKey:null},{alias:null,args:null,concreteType:"StageEssentials",kind:"LinkedField",name:"essentials",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"version",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"lastPublishedAt",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"clientCount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"subgraphCount",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StageMetrics",kind:"LinkedField",name:"metrics",plural:!1,selections:[{alias:null,args:null,concreteType:"StageOperationsMetrics",kind:"LinkedField",name:"operations",plural:!1,selections:[{alias:"current",args:s,concreteType:"StageOperationMetricsSummary",kind:"LinkedField",name:"summary",plural:!1,selections:m,storageKey:null},{alias:"previous",args:[{kind:"Variable",name:"from",variableName:"before"},{kind:"Variable",name:"to",variableName:"from"}],concreteType:"StageOperationMetricsSummary",kind:"LinkedField",name:"summary",plural:!1,selections:m,storageKey:null}],storageKey:null}],storageKey:null}]},{if:null,kind:"Defer",label:"gatewayOverviewQuery$defer$gatewaySubgraphsTileFragment_1tCgTg",selections:[{alias:null,args:null,concreteType:"StageMetrics",kind:"LinkedField",name:"metrics",plural:!1,selections:[{alias:null,args:null,concreteType:"StageSubgraphsMetrics",kind:"LinkedField",name:"subgraphs",plural:!1,selections:[{alias:null,args:p,concreteType:"SubgraphInsightsConnection",kind:"LinkedField",name:"insights",plural:!1,selections:[{alias:null,args:null,concreteType:"SubgraphInsightsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"SubgraphInsight",kind:"LinkedField",name:"node",plural:!1,selections:[o,c,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"subgraph",plural:!1,selections:[x,{alias:null,args:null,concreteType:"Api",kind:"LinkedField",name:"api",plural:!1,selections:[o],storageKey:null},o],storageKey:null},{alias:null,args:null,concreteType:"Stage",kind:"LinkedField",name:"stage",plural:!1,selections:[o,c,f],storageKey:null},h,u,g,{alias:null,args:null,kind:"ScalarField",name:"impact",storageKey:null},{alias:null,args:null,concreteType:"SubgraphLatencyGraph",kind:"LinkedField",name:"latency",plural:!1,selections:[{alias:null,args:null,concreteType:"SubgraphLatencyGraphData",kind:"LinkedField",name:"dataset",plural:!0,selections:[k,{alias:null,args:null,kind:"ScalarField",name:"p95",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"SubgraphThroughputGraph",kind:"LinkedField",name:"throughput",plural:!1,selections:[{alias:null,args:null,concreteType:"SubgraphThroughputGraphData",kind:"LinkedField",name:"dataset",plural:!0,selections:[k,u,g],storageKey:null}],storageKey:null},x],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:p,filters:["from","to","orderBy"],handle:"connection",key:"overviewSubgraphsGrid_subgraphs_insights",kind:"LinkedHandle",name:"insights"}],storageKey:null}],storageKey:null},o]},o],storageKey:null}]},params:{id:"a94bde056ffd41a7b99056a29d9cd3a1",metadata:{},name:"gatewayOverviewQuery",operationKind:"query",text:null}}}();a.hash="44370d716d6be4dd3eaacc6990eeacc3";const t=a},46172:(e,n,l)=>{l.r(n),l.d(n,{default:()=>r});const a=function(){var e={defaultValue:25,kind:"LocalArgument",name:"count"},n={defaultValue:null,kind:"LocalArgument",name:"cursor"},l={defaultValue:null,kind:"LocalArgument",name:"from"},a={defaultValue:null,kind:"LocalArgument",name:"id"},t={defaultValue:{impact:"DESC"},kind:"LocalArgument",name:"sort"},i={defaultValue:null,kind:"LocalArgument",name:"to"},r=[{kind:"Variable",name:"id",variableName:"id"}],s={kind:"Variable",name:"from",variableName:"from"},o={kind:"Variable",name:"to",variableName:"to"},d={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},c={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},u=[{kind:"Variable",name:"after",variableName:"cursor"},{kind:"Variable",name:"first",variableName:"count"},s,{kind:"Variable",name:"orderBy",variableName:"sort"},o],g={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},m={alias:null,args:null,kind:"ScalarField",name:"opm",storageKey:null},p={alias:null,args:null,kind:"ScalarField",name:"errorRate",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"epoch",storageKey:null};return{fragment:{argumentDefinitions:[e,n,l,a,t,i],kind:"Fragment",metadata:null,name:"overviewSubgraphsGridPaginationQuery",selections:[{alias:null,args:r,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{args:[{kind:"Variable",name:"count",variableName:"count"},{kind:"Variable",name:"cursor",variableName:"cursor"},s,{kind:"Variable",name:"sort",variableName:"sort"},o],kind:"FragmentSpread",name:"gatewaySubgraphsGrid"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[e,n,l,t,i,a],kind:"Operation",name:"overviewSubgraphsGridPaginationQuery",selections:[{alias:null,args:r,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[d,c,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"StageMetrics",kind:"LinkedField",name:"metrics",plural:!1,selections:[{alias:null,args:null,concreteType:"StageSubgraphsMetrics",kind:"LinkedField",name:"subgraphs",plural:!1,selections:[{alias:null,args:u,concreteType:"SubgraphInsightsConnection",kind:"LinkedField",name:"insights",plural:!1,selections:[{alias:null,args:null,concreteType:"SubgraphInsightsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"SubgraphInsight",kind:"LinkedField",name:"node",plural:!1,selections:[c,g,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"subgraph",plural:!1,selections:[d,{alias:null,args:null,concreteType:"Api",kind:"LinkedField",name:"api",plural:!1,selections:[c],storageKey:null},c],storageKey:null},{alias:null,args:null,concreteType:"Stage",kind:"LinkedField",name:"stage",plural:!1,selections:[c,g,{alias:null,args:null,kind:"ScalarField",name:"displayName",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"averageLatency",storageKey:null},m,p,{alias:null,args:null,kind:"ScalarField",name:"impact",storageKey:null},{alias:null,args:null,concreteType:"SubgraphLatencyGraph",kind:"LinkedField",name:"latency",plural:!1,selections:[{alias:null,args:null,concreteType:"SubgraphLatencyGraphData",kind:"LinkedField",name:"dataset",plural:!0,selections:[h,{alias:null,args:null,kind:"ScalarField",name:"p95",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"SubgraphThroughputGraph",kind:"LinkedField",name:"throughput",plural:!1,selections:[{alias:null,args:null,concreteType:"SubgraphThroughputGraphData",kind:"LinkedField",name:"dataset",plural:!0,selections:[h,m,p],storageKey:null}],storageKey:null},d],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:u,filters:["from","to","orderBy"],handle:"connection",key:"overviewSubgraphsGrid_subgraphs_insights",kind:"LinkedHandle",name:"insights"}],storageKey:null}],storageKey:null}],type:"Stage",abstractKey:null}],storageKey:null}]},params:{id:"e455c9c3f0ef6dee0ef3d9d235c3c74f",metadata:{},name:"overviewSubgraphsGridPaginationQuery",operationKind:"query",text:null}}}();a.hash="9f9e2a9df0ed73b9ed5649682a34c712";const t=a,i=function(){var e=["metrics","subgraphs","insights"],n={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"opm",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"errorRate",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"epoch",storageKey:null};return{argumentDefinitions:[{defaultValue:25,kind:"LocalArgument",name:"count"},{defaultValue:null,kind:"LocalArgument",name:"cursor"},{defaultValue:null,kind:"LocalArgument",name:"from"},{defaultValue:{impact:"DESC"},kind:"LocalArgument",name:"sort"},{defaultValue:null,kind:"LocalArgument",name:"to"}],kind:"Fragment",metadata:{connection:[{count:"count",cursor:"cursor",direction:"forward",path:e}],refetch:{connection:{forward:{count:"count",cursor:"cursor"},backward:null,path:e},fragmentPathInResult:["node"],operation:t,identifierInfo:{identifierField:"id",identifierQueryVariableName:"id"}}},name:"gatewaySubgraphsGrid",selections:[{alias:null,args:null,concreteType:"StageMetrics",kind:"LinkedField",name:"metrics",plural:!1,selections:[{alias:null,args:null,concreteType:"StageSubgraphsMetrics",kind:"LinkedField",name:"subgraphs",plural:!1,selections:[{alias:"insights",args:[{kind:"Variable",name:"from",variableName:"from"},{kind:"Variable",name:"orderBy",variableName:"sort"},{kind:"Variable",name:"to",variableName:"to"}],concreteType:"SubgraphInsightsConnection",kind:"LinkedField",name:"__overviewSubgraphsGrid_subgraphs_insights_connection",plural:!1,selections:[{alias:null,args:null,concreteType:"SubgraphInsightsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"SubgraphInsight",kind:"LinkedField",name:"node",plural:!1,selections:[n,l,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"subgraph",plural:!1,selections:[{alias:null,args:null,concreteType:"Api",kind:"LinkedField",name:"api",plural:!1,selections:[n],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Stage",kind:"LinkedField",name:"stage",plural:!1,selections:[n,l,{alias:null,args:null,kind:"ScalarField",name:"displayName",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"averageLatency",storageKey:null},a,i,{alias:null,args:null,kind:"ScalarField",name:"impact",storageKey:null},{alias:null,args:null,concreteType:"SubgraphLatencyGraph",kind:"LinkedField",name:"latency",plural:!1,selections:[{alias:null,args:null,concreteType:"SubgraphLatencyGraphData",kind:"LinkedField",name:"dataset",plural:!0,selections:[r,{alias:null,args:null,kind:"ScalarField",name:"p95",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"SubgraphThroughputGraph",kind:"LinkedField",name:"throughput",plural:!1,selections:[{alias:null,args:null,concreteType:"SubgraphThroughputGraphData",kind:"LinkedField",name:"dataset",plural:!0,selections:[r,a,i],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},n],type:"Stage",abstractKey:null}}();i.hash="9f9e2a9df0ed73b9ed5649682a34c712";const r=i},30775:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"from"},{defaultValue:null,kind:"LocalArgument",name:"to"}],kind:"Fragment",metadata:null,name:"gatewaySubgraphsTileFragment",selections:[{args:[{kind:"Variable",name:"from",variableName:"from"},{kind:"Variable",name:"to",variableName:"to"}],kind:"FragmentSpread",name:"gatewaySubgraphsGrid"}],type:"Stage",abstractKey:null,hash:"0ef2276050fd8cebf35b7181b177dd82"},t=a},71309:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a=function(){var e={defaultValue:null,kind:"LocalArgument",name:"before"},n={defaultValue:null,kind:"LocalArgument",name:"from"},l={defaultValue:null,kind:"LocalArgument",name:"stageId"},a={defaultValue:null,kind:"LocalArgument",name:"to"},t=[{kind:"Variable",name:"id",variableName:"stageId"}],i={kind:"Variable",name:"from",variableName:"from"},r={kind:"Variable",name:"to",variableName:"to"},s=[i,r],o={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},d={alias:null,args:null,kind:"ScalarField",name:"kind",storageKey:null},c={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},u={alias:null,args:null,kind:"ScalarField",name:"opm",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"errorRate",storageKey:null},m=[{alias:null,args:null,concreteType:"StageLatencySummary",kind:"LinkedField",name:"latency",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"mean",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StageThroughputSummary",kind:"LinkedField",name:"throughput",plural:!1,selections:[u,g],storageKey:null}],p=[{kind:"Literal",name:"first",value:25},i,{kind:"Literal",name:"orderBy",value:{impact:"DESC"}},r],h=[o,c,{alias:null,args:null,kind:"ScalarField",name:"averageLatency",storageKey:null},u,g];return{fragment:{argumentDefinitions:[e,n,l,a],kind:"Fragment",metadata:null,name:"serviceOverviewQuery",selections:[{alias:"stage",args:t,concreteType:"Stage",kind:"LinkedField",name:"stageById",plural:!1,selections:[{kind:"Defer",selections:[{args:s,kind:"FragmentSpread",name:"apiTopologyTileFragment"}]},{kind:"Defer",selections:[{args:[{kind:"Variable",name:"before",variableName:"before"},i,r],kind:"FragmentSpread",name:"apiDetailsTileFragment"}]}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[l,n,a,e],kind:"Operation",name:"serviceOverviewQuery",selections:[{alias:"stage",args:t,concreteType:"Stage",kind:"LinkedField",name:"stageById",plural:!1,selections:[{if:null,kind:"Defer",label:"serviceOverviewQuery$defer$apiTopologyTileFragment_1tCgTg",selections:[{alias:null,args:null,concreteType:"Api",kind:"LinkedField",name:"api",plural:!1,selections:[o,d,c],storageKey:null},{alias:null,args:null,concreteType:"StageMetrics",kind:"LinkedField",name:"metrics",plural:!1,selections:[{alias:null,args:null,concreteType:"StageOperationsMetrics",kind:"LinkedField",name:"operations",plural:!1,selections:[{alias:null,args:s,concreteType:"StageOperationMetricsSummary",kind:"LinkedField",name:"summary",plural:!1,selections:m,storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StageClientsMetrics",kind:"LinkedField",name:"clients",plural:!1,selections:[{alias:null,args:p,concreteType:"ClientInsightsConnection",kind:"LinkedField",name:"insights",plural:!1,selections:[{alias:null,args:null,concreteType:"ClientInsightsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"ClientInsight",kind:"LinkedField",name:"node",plural:!1,selections:h,storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StageSubgraphsMetrics",kind:"LinkedField",name:"subgraphs",plural:!1,selections:[{alias:null,args:p,concreteType:"SubgraphInsightsConnection",kind:"LinkedField",name:"insights",plural:!1,selections:[{alias:null,args:null,concreteType:"SubgraphInsightsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"SubgraphInsight",kind:"LinkedField",name:"node",plural:!1,selections:h,storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}]},{if:null,kind:"Defer",label:"serviceOverviewQuery$defer$apiDetailsTileFragment_2bxChq",selections:[{alias:null,args:null,kind:"ScalarField",name:"displayName",storageKey:null},{alias:null,args:null,concreteType:"Api",kind:"LinkedField",name:"api",plural:!1,selections:[o,d],storageKey:null},{alias:null,args:null,concreteType:"StageEssentials",kind:"LinkedField",name:"essentials",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"version",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"lastPublishedAt",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"clientCount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"subgraphCount",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"StageMetrics",kind:"LinkedField",name:"metrics",plural:!1,selections:[{alias:null,args:null,concreteType:"StageOperationsMetrics",kind:"LinkedField",name:"operations",plural:!1,selections:[{alias:"current",args:s,concreteType:"StageOperationMetricsSummary",kind:"LinkedField",name:"summary",plural:!1,selections:m,storageKey:null},{alias:"previous",args:[{kind:"Variable",name:"from",variableName:"before"},{kind:"Variable",name:"to",variableName:"from"}],concreteType:"StageOperationMetricsSummary",kind:"LinkedField",name:"summary",plural:!1,selections:m,storageKey:null}],storageKey:null}],storageKey:null}]},o],storageKey:null}]},params:{id:"734ad32aea89c2e90036d22ee180b057",metadata:{},name:"serviceOverviewQuery",operationKind:"query",text:null}}}();a.hash="dff18f07d22c892cfb9efdcff57ff123";const t=a},99719:(e,n,l)=>{l.r(n),l.d(n,{default:()=>r});const a=function(){var e=[{defaultValue:50,kind:"LocalArgument",name:"count"},{defaultValue:null,kind:"LocalArgument",name:"cursor"},{defaultValue:null,kind:"LocalArgument",name:"id"}],n=[{kind:"Variable",name:"id",variableName:"id"}],l={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},t=[{kind:"Variable",name:"after",variableName:"cursor"},{kind:"Variable",name:"first",variableName:"count"},{kind:"Literal",name:"kind",value:"SCHEMA"}];return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"changesListContentChangelogPaginationQuery",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{args:[{kind:"Variable",name:"count",variableName:"count"},{kind:"Variable",name:"cursor",variableName:"cursor"}],kind:"FragmentSpread",name:"changesListContentChangelogFragment"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"changesListContentChangelogPaginationQuery",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[l,a,{kind:"InlineFragment",selections:[{alias:null,args:t,concreteType:"StageChangeLogConnection",kind:"LinkedField",name:"changeLog",plural:!1,selections:[{alias:null,args:null,concreteType:"StageChangeLogEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[l,a,{alias:null,args:null,kind:"ScalarField",name:"tag",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"changedAt",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"SchemaChangeLogStatistic",kind:"LinkedField",name:"statistic",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"breaking",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"dangerous",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"safe",storageKey:null}],storageKey:null}],type:"SchemaChangeLog",abstractKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:t,filters:["kind"],handle:"connection",key:"changesListContent_stage_changeLog",kind:"LinkedHandle",name:"changeLog"}],type:"Stage",abstractKey:null}],storageKey:null}]},params:{id:"e15d13e40983b184d6c87ffe790c2e4e",metadata:{},name:"changesListContentChangelogPaginationQuery",operationKind:"query",text:null}}}();a.hash="c0a0da4036d93c4e2d4169d6af466173";const t=a,i=function(){var e=["changeLog"],n={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{argumentDefinitions:[{defaultValue:50,kind:"LocalArgument",name:"count"},{defaultValue:null,kind:"LocalArgument",name:"cursor"}],kind:"Fragment",metadata:{connection:[{count:"count",cursor:"cursor",direction:"forward",path:e}],refetch:{connection:{forward:{count:"count",cursor:"cursor"},backward:null,path:e},fragmentPathInResult:["node"],operation:t,identifierInfo:{identifierField:"id",identifierQueryVariableName:"id"}}},name:"changesListContentChangelogFragment",selections:[{alias:"changeLog",args:[{kind:"Literal",name:"kind",value:"SCHEMA"}],concreteType:"StageChangeLogConnection",kind:"LinkedField",name:"__changesListContent_stage_changeLog_connection",plural:!1,selections:[{alias:null,args:null,concreteType:"StageChangeLogEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[n,{alias:null,args:null,kind:"ScalarField",name:"tag",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"changedAt",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"SchemaChangeLogStatistic",kind:"LinkedField",name:"statistic",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"changelogStatsFragment"}],storageKey:null}],type:"SchemaChangeLog",abstractKey:null},{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:'__changesListContent_stage_changeLog_connection(kind:"SCHEMA")'},n],type:"Stage",abstractKey:null}}();i.hash="c0a0da4036d93c4e2d4169d6af466173";const r=i},26405:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a=function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"stageId"}],n=[{kind:"Variable",name:"id",variableName:"stageId"}],l=[{kind:"Literal",name:"first",value:50},{kind:"Literal",name:"kind",value:"SCHEMA"}],a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"changesListContentQuery",selections:[{alias:"stage",args:n,concreteType:"Stage",kind:"LinkedField",name:"stageById",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"changesListContentChangelogFragment"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"changesListContentQuery",selections:[{alias:"stage",args:n,concreteType:"Stage",kind:"LinkedField",name:"stageById",plural:!1,selections:[{alias:null,args:l,concreteType:"StageChangeLogConnection",kind:"LinkedField",name:"changeLog",plural:!1,selections:[{alias:null,args:null,concreteType:"StageChangeLogEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},a,{alias:null,args:null,kind:"ScalarField",name:"tag",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"changedAt",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"SchemaChangeLogStatistic",kind:"LinkedField",name:"statistic",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"breaking",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"dangerous",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"safe",storageKey:null}],storageKey:null}],type:"SchemaChangeLog",abstractKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:'changeLog(first:50,kind:"SCHEMA")'},{alias:null,args:l,filters:["kind"],handle:"connection",key:"changesListContent_stage_changeLog",kind:"LinkedHandle",name:"changeLog"},a],storageKey:null}]},params:{id:"074037fff3f1a23b940472393e776507",metadata:{},name:"changesListContentQuery",operationKind:"query",text:null}}}();a.hash="3d21f3fa228d60da096f1c4c08912229";const t=a},22963:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a=function(){var e=[{alias:null,args:null,kind:"ScalarField",name:"downloadUrl",storageKey:null}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"changelogDiffFragment",selections:[{alias:null,args:null,concreteType:"SchemaVersion",kind:"LinkedField",name:"schema",plural:!1,selections:e,storageKey:null},{alias:null,args:null,concreteType:"SchemaVersion",kind:"LinkedField",name:"previousSchema",plural:!1,selections:e,storageKey:null}],type:"SchemaChangeLog",abstractKey:null}}();a.hash="d4b11ee79509218ee0582a793518ace8";const t=a},12743:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"changelogEntryArgumentAddedFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"severity",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"coordinate",storageKey:null}],type:"ArgumentAdded",abstractKey:null,hash:"4410db30f4e38fdf8ce7d3fdea22373f"},t=a},65841:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a=function(){var e={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"changelogEntryArgumentChangedFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"severity",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"coordinate",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryDescriptionChangedFragment"}],type:"DescriptionChanged",abstractKey:null},{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryDeprecatedChangeFragment"}],type:"DeprecatedChange",abstractKey:null},{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryTypeChangedFragment"}],type:"TypeChanged",abstractKey:null}],storageKey:null}],type:"ArgumentChanged",abstractKey:null}}();a.hash="338685b336d93a902f63445cc3a67da9";const t=a},46001:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"changelogEntryArgumentRemovedFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"severity",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"coordinate",storageKey:null}],type:"ArgumentRemoved",abstractKey:null,hash:"a7cee98ae92be1aa3f10b1d55c5a4cc0"},t=a},37493:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"changelogEntryDeprecatedChangeFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"deprecationReason",storageKey:null}],type:"DeprecatedChange",abstractKey:null,hash:"9396140ece0146f6250142aeb542bbc5"},t=a},66790:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"changelogEntryDescriptionChangedFragment",selections:[{alias:"oldValue",args:null,kind:"ScalarField",name:"old",storageKey:null},{alias:"newValue",args:null,kind:"ScalarField",name:"new",storageKey:null}],type:"DescriptionChanged",abstractKey:null,hash:"0512821f10d8ae8b92505a3ced4617d1"},t=a},93388:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"changelogEntryDirectiveLocationAddedFragmentFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"location",storageKey:null}],type:"DirectiveLocationAdded",abstractKey:null,hash:"20b2713cfe43b3115e6be610238d5e0a"},t=a},5938:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"changelogEntryDirectiveLocationRemovedFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"location",storageKey:null}],type:"DirectiveLocationRemoved",abstractKey:null,hash:"acac97bbd374356c89c65fe55446df8b"},t=a},54290:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a=function(){var e={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"changelogEntryDirectiveModifiedChangeFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"severity",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"coordinate",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryDirectiveLocationAddedFragmentFragment"}],type:"DirectiveLocationAdded",abstractKey:null},{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryDirectiveLocationRemovedFragment"}],type:"DirectiveLocationRemoved",abstractKey:null},{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryDescriptionChangedFragment"}],type:"DescriptionChanged",abstractKey:null},{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryArgumentRemovedFragment"}],type:"ArgumentRemoved",abstractKey:null},{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryArgumentChangedFragment"}],type:"ArgumentChanged",abstractKey:null},{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryArgumentAddedFragment"}],type:"ArgumentAdded",abstractKey:null}],storageKey:null}],type:"DirectiveModifiedChange",abstractKey:null}}();a.hash="987ba398518e944ece6cc5868ba1e122";const t=a},1358:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a=function(){var e={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"changelogEntryEnumModifiedChangeFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"severity",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"coordinate",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryDescriptionChangedFragment"}],type:"DescriptionChanged",abstractKey:null},{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryEnumValueRemovedFragment"}],type:"EnumValueRemoved",abstractKey:null},{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryEnumValueAddedFragment"}],type:"EnumValueAdded",abstractKey:null},{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryEnumValueChangedFragment"}],type:"EnumValueChanged",abstractKey:null}],storageKey:null}],type:"EnumModifiedChange",abstractKey:null}}();a.hash="46e40dc4efd41e4cc9466d5428c6bd68";const t=a},85868:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"changelogEntryEnumValueAddedFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"severity",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"coordinate",storageKey:null}],type:"EnumValueAdded",abstractKey:null,hash:"0deb35bf79b3d689f64719f53985b965"},t=a},53666:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a=function(){var e={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"changelogEntryEnumValueChangedFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"severity",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"coordinate",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryDeprecatedChangeFragment"}],type:"DeprecatedChange",abstractKey:null},{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryDescriptionChangedFragment"}],type:"DescriptionChanged",abstractKey:null}],storageKey:null}],type:"EnumValueChanged",abstractKey:null}}();a.hash="2b4a6c440f23b3e804569ccf82a5ed3f";const t=a},66002:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"changelogEntryEnumValueRemovedFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"severity",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"coordinate",storageKey:null}],type:"EnumValueRemoved",abstractKey:null,hash:"78fb3c39a3801be3095f9a301a39cc8f"},t=a},59242:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"changelogEntryFieldAddedChangeFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"severity",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"coordinate",storageKey:null}],type:"FieldAddedChange",abstractKey:null,hash:"767e5283e5fba90c9b05998bac94d6ee"},t=a},18616:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"changelogEntryFieldRemovedChangeFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"severity",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"coordinate",storageKey:null}],type:"FieldRemovedChange",abstractKey:null,hash:"10da4fbe1fe10f8296aacd7d9a7f23b3"},t=a},58524:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a=function(){var e={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"changelogEntryFragment",selections:[{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryTypeRemovedFragment"}],type:"TypeSystemMemberRemovedChange",abstractKey:null},{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryTypeAddedFragment"}],type:"TypeSystemMemberAddedChange",abstractKey:null},{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryObjectModifiedChangeFragment"}],type:"ObjectModifiedChange",abstractKey:null},{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryInputObjectModifiedChangeFragment"}],type:"InputObjectModifiedChange",abstractKey:null},{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryDirectiveModifiedChangeFragment"}],type:"DirectiveModifiedChange",abstractKey:null},{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryScalarModifiedChangeFragment"}],type:"ScalarModifiedChange",abstractKey:null},{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryEnumModifiedChangeFragment"}],type:"EnumModifiedChange",abstractKey:null},{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryUnionModifiedChangeFragment"}],type:"UnionModifiedChange",abstractKey:null},{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryInterfaceModifiedChangeFragment"}],type:"InterfaceModifiedChange",abstractKey:null}],type:"SchemaChangeLogEntry",abstractKey:"__isSchemaChangeLogEntry"}}();a.hash="2bfd79a82b4db372e9a54e6821f3ae8b";const t=a},26760:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a=function(){var e={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"changelogEntryInputFieldChangedFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"severity",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"coordinate",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryDescriptionChangedFragment"}],type:"DescriptionChanged",abstractKey:null},{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryTypeChangedFragment"}],type:"TypeChanged",abstractKey:null},{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryDeprecatedChangeFragment"}],type:"DeprecatedChange",abstractKey:null}],storageKey:null}],type:"InputFieldChanged",abstractKey:null}}();a.hash="b7d2483e89bbdfc00fba3835f1be2bd6";const t=a},32792:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a=function(){var e={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"changelogEntryInputObjectModifiedChangeFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"severity",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"coordinate",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryDescriptionChangedFragment"}],type:"DescriptionChanged",abstractKey:null},{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryFieldAddedChangeFragment"}],type:"FieldAddedChange",abstractKey:null},{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryFieldRemovedChangeFragment"}],type:"FieldRemovedChange",abstractKey:null},{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryInputFieldChangedFragment"}],type:"InputFieldChanged",abstractKey:null}],storageKey:null}],type:"InputObjectModifiedChange",abstractKey:null}}();a.hash="89b08707f2cf8d0e0c7d85052b081149";const t=a},89653:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"changelogEntryInterfaceImplementationAddedFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"severity",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"interfaceName",storageKey:null}],type:"InterfaceImplementationAdded",abstractKey:null,hash:"92ce0d083ee173edabfec7eee5ec6427"},t=a},2427:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"changelogEntryInterfaceImplementationRemovedFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"severity",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"interfaceName",storageKey:null}],type:"InterfaceImplementationRemoved",abstractKey:null,hash:"d895d3de6d5e99a4790b71ff5f6bc201"},t=a},52524:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a=function(){var e={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"changelogEntryInterfaceModifiedChangeFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"severity",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"coordinate",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryInterfaceImplementationAddedFragment"}],type:"InterfaceImplementationAdded",abstractKey:null},{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryInterfaceImplementationRemovedFragment"}],type:"InterfaceImplementationRemoved",abstractKey:null},{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryDescriptionChangedFragment"}],type:"DescriptionChanged",abstractKey:null},{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryFieldAddedChangeFragment"}],type:"FieldAddedChange",abstractKey:null},{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryFieldRemovedChangeFragment"}],type:"FieldRemovedChange",abstractKey:null},{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryOutputFieldChangedFragment"}],type:"OutputFieldChanged",abstractKey:null}],storageKey:null}],type:"InterfaceModifiedChange",abstractKey:null}}();a.hash="958ff11dbd7168df72260696729a5aa7";const t=a},77516:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a=function(){var e={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"changelogEntryObjectModifiedChangeFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"severity",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"coordinate",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryInterfaceImplementationAddedFragment"}],type:"InterfaceImplementationAdded",abstractKey:null},{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryInterfaceImplementationRemovedFragment"}],type:"InterfaceImplementationRemoved",abstractKey:null},{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryDescriptionChangedFragment"}],type:"DescriptionChanged",abstractKey:null},{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryFieldAddedChangeFragment"}],type:"FieldAddedChange",abstractKey:null},{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryFieldRemovedChangeFragment"}],type:"FieldRemovedChange",abstractKey:null},{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryOutputFieldChangedFragment"}],type:"OutputFieldChanged",abstractKey:null}],storageKey:null}],type:"ObjectModifiedChange",abstractKey:null}}();a.hash="7cbb894bf1f9114a8884abc8ebe6e36c";const t=a},48689:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a=function(){var e={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"changelogEntryOutputFieldChangedFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"severity",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"coordinate",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryArgumentRemovedFragment"}],type:"ArgumentRemoved",abstractKey:null},{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryArgumentAddedFragment"}],type:"ArgumentAdded",abstractKey:null},{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryArgumentChangedFragment"}],type:"ArgumentChanged",abstractKey:null},{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryDescriptionChangedFragment"}],type:"DescriptionChanged",abstractKey:null},{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryTypeChangedFragment"}],type:"TypeChanged",abstractKey:null},{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryDeprecatedChangeFragment"}],type:"DeprecatedChange",abstractKey:null}],storageKey:null}],type:"OutputFieldChanged",abstractKey:null}}();a.hash="b76f71cfdd56437d77bad93bcc19034f";const t=a},16587:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"changelogEntryScalarModifiedChangeFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"severity",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"coordinate",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{args:null,kind:"FragmentSpread",name:"changelogEntryDescriptionChangedFragment"}],type:"DescriptionChanged",abstractKey:null}],storageKey:null}],type:"ScalarModifiedChange",abstractKey:null,hash:"f6cd0af5075f8cb0486ba56028a5f0a8"},t=a},45478:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"changelogEntryTypeAddedFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"severity",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"coordinate",storageKey:null}],type:"TypeSystemMemberAddedChange",abstractKey:null,hash:"6f00af7a08032e152596a90f32558cee"},t=a},91896:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"changelogEntryTypeChangedFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"oldType",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"newType",storageKey:null}],type:"TypeChanged",abstractKey:null,hash:"d3f49ae32ea1d71c3df87a40eafc9d5b"},t=a},46568:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"changelogEntryTypeRemovedFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"severity",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"coordinate",storageKey:null}],type:"TypeSystemMemberRemovedChange",abstractKey:null,hash:"4784f181182263efa340186bc6d6703f"},t=a},73241:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"changelogEntryUnionMemberAddedFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"severity",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"typeName",storageKey:null}],type:"UnionMemberAdded",abstractKey:null,hash:"aa8c2be7d658d9fc70471a403921b3aa"},t=a},27679:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"changelogEntryUnionMemberRemovedFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"severity",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"typeName",storageKey:null}],type:"UnionMemberRemoved",abstractKey:null,hash:"834a2712027422cb59dafe63c81f5eaa"},t=a},10452:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a=function(){var e={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"changelogEntryUnionModifiedChangeFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"severity",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"coordinate",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryDescriptionChangedFragment"}],type:"DescriptionChanged",abstractKey:null},{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryUnionMemberRemovedFragment"}],type:"UnionMemberRemoved",abstractKey:null},{kind:"InlineFragment",selections:[e,{args:null,kind:"FragmentSpread",name:"changelogEntryUnionMemberAddedFragment"}],type:"UnionMemberAdded",abstractKey:null}],storageKey:null}],type:"UnionModifiedChange",abstractKey:null}}();a.hash="d4697d13463c8b15d7cca29331ef2e85";const t=a},84620:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"changelogInfoFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"tag",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"changedAt",storageKey:null}],type:"SchemaChangeLog",abstractKey:null,hash:"11f365f884477a0c6b68cdcb0626943a"},t=a},37135:(e,n,l)=>{l.r(n),l.d(n,{default:()=>r});const a=function(){var e=[{defaultValue:20,kind:"LocalArgument",name:"count"},{defaultValue:null,kind:"LocalArgument",name:"cursor"},{defaultValue:null,kind:"LocalArgument",name:"id"}],n=[{kind:"Variable",name:"id",variableName:"id"}],l={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},a=[{kind:"Variable",name:"after",variableName:"cursor"},{kind:"Variable",name:"first",variableName:"count"},{kind:"Literal",name:"severity",value:"BREAKING"}],t={alias:null,args:null,kind:"ScalarField",name:"severity",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"coordinate",storageKey:null},r=[t,i],s=[t,{alias:null,args:null,kind:"ScalarField",name:"interfaceName",storageKey:null}],o={kind:"InlineFragment",selections:[{alias:"oldValue",args:null,kind:"ScalarField",name:"old",storageKey:null},{alias:"newValue",args:null,kind:"ScalarField",name:"new",storageKey:null}],type:"DescriptionChanged",abstractKey:null},d={kind:"InlineFragment",selections:r,type:"FieldAddedChange",abstractKey:null},c={kind:"InlineFragment",selections:r,type:"FieldRemovedChange",abstractKey:null},u={kind:"InlineFragment",selections:r,type:"ArgumentRemoved",abstractKey:null},g={kind:"InlineFragment",selections:r,type:"ArgumentAdded",abstractKey:null},m={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"deprecationReason",storageKey:null}],type:"DeprecatedChange",abstractKey:null},p={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"oldType",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"newType",storageKey:null}],type:"TypeChanged",abstractKey:null},h={kind:"InlineFragment",selections:[t,i,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[l,o,m,p],storageKey:null}],type:"ArgumentChanged",abstractKey:null},y=[t,i,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[l,{kind:"InlineFragment",selections:s,type:"InterfaceImplementationAdded",abstractKey:null},{kind:"InlineFragment",selections:s,type:"InterfaceImplementationRemoved",abstractKey:null},o,d,c,{kind:"InlineFragment",selections:[t,i,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[l,u,g,h,o,p,m],storageKey:null}],type:"OutputFieldChanged",abstractKey:null}],storageKey:null}],f=[{alias:null,args:null,kind:"ScalarField",name:"location",storageKey:null}],x=[t,{alias:null,args:null,kind:"ScalarField",name:"typeName",storageKey:null}];return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"changelogLogBreakingChangesPaginationQuery",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{args:[{kind:"Variable",name:"count",variableName:"count"},{kind:"Variable",name:"cursor",variableName:"cursor"}],kind:"FragmentSpread",name:"changelogLogBreakingChangesFragment"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"changelogLogBreakingChangesPaginationQuery",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[l,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{kind:"InlineFragment",selections:[{alias:"breaking",args:a,concreteType:"SchemaChangesConnection",kind:"LinkedField",name:"changes",plural:!1,selections:[{alias:null,args:null,concreteType:"SchemaChangesEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[l,{kind:"TypeDiscriminator",abstractKey:"__isSchemaChangeLogEntry"},{kind:"InlineFragment",selections:r,type:"TypeSystemMemberRemovedChange",abstractKey:null},{kind:"InlineFragment",selections:r,type:"TypeSystemMemberAddedChange",abstractKey:null},{kind:"InlineFragment",selections:y,type:"ObjectModifiedChange",abstractKey:null},{kind:"InlineFragment",selections:[t,i,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[l,o,d,c,{kind:"InlineFragment",selections:[t,i,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[l,o,p,m],storageKey:null}],type:"InputFieldChanged",abstractKey:null}],storageKey:null}],type:"InputObjectModifiedChange",abstractKey:null},{kind:"InlineFragment",selections:[t,i,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[l,{kind:"InlineFragment",selections:f,type:"DirectiveLocationAdded",abstractKey:null},{kind:"InlineFragment",selections:f,type:"DirectiveLocationRemoved",abstractKey:null},o,u,h,g],storageKey:null}],type:"DirectiveModifiedChange",abstractKey:null},{kind:"InlineFragment",selections:[t,i,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[l,o],storageKey:null}],type:"ScalarModifiedChange",abstractKey:null},{kind:"InlineFragment",selections:[t,i,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[l,o,{kind:"InlineFragment",selections:r,type:"EnumValueRemoved",abstractKey:null},{kind:"InlineFragment",selections:r,type:"EnumValueAdded",abstractKey:null},{kind:"InlineFragment",selections:[t,i,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[l,m,o],storageKey:null}],type:"EnumValueChanged",abstractKey:null}],storageKey:null}],type:"EnumModifiedChange",abstractKey:null},{kind:"InlineFragment",selections:[t,i,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[l,o,{kind:"InlineFragment",selections:x,type:"UnionMemberRemoved",abstractKey:null},{kind:"InlineFragment",selections:x,type:"UnionMemberAdded",abstractKey:null}],storageKey:null}],type:"UnionModifiedChange",abstractKey:null},{kind:"InlineFragment",selections:y,type:"InterfaceModifiedChange",abstractKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:null},{alias:"breaking",args:a,filters:["severity"],handle:"connection",key:"changelogLog_schemachangelog_breaking",kind:"LinkedHandle",name:"changes"}],type:"SchemaChangeLog",abstractKey:null}],storageKey:null}]},params:{id:"05b7d543252565819e516aae5d333b5b",metadata:{},name:"changelogLogBreakingChangesPaginationQuery",operationKind:"query",text:null}}}();a.hash="35abccb5329d29fc8ad25d7a75b3b26b";const t=a,i=function(){var e=["breaking"];return{argumentDefinitions:[{defaultValue:20,kind:"LocalArgument",name:"count"},{defaultValue:null,kind:"LocalArgument",name:"cursor"}],kind:"Fragment",metadata:{connection:[{count:"count",cursor:"cursor",direction:"forward",path:e}],refetch:{connection:{forward:{count:"count",cursor:"cursor"},backward:null,path:e},fragmentPathInResult:["node"],operation:t,identifierInfo:{identifierField:"id",identifierQueryVariableName:"id"}}},name:"changelogLogBreakingChangesFragment",selections:[{alias:"breaking",args:[{kind:"Literal",name:"severity",value:"BREAKING"}],concreteType:"SchemaChangesConnection",kind:"LinkedField",name:"__changelogLog_schemachangelog_breaking_connection",plural:!1,selections:[{alias:null,args:null,concreteType:"SchemaChangesEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"changelogEntryFragment"},{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:'__changelogLog_schemachangelog_breaking_connection(severity:"BREAKING")'},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],type:"SchemaChangeLog",abstractKey:null}}();i.hash="35abccb5329d29fc8ad25d7a75b3b26b";const r=i},46925:(e,n,l)=>{l.r(n),l.d(n,{default:()=>r});const a=function(){var e=[{defaultValue:20,kind:"LocalArgument",name:"count"},{defaultValue:null,kind:"LocalArgument",name:"cursor"},{defaultValue:null,kind:"LocalArgument",name:"id"}],n=[{kind:"Variable",name:"id",variableName:"id"}],l={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},a=[{kind:"Variable",name:"after",variableName:"cursor"},{kind:"Variable",name:"first",variableName:"count"},{kind:"Literal",name:"severity",value:"DANGEROUS"}],t={alias:null,args:null,kind:"ScalarField",name:"severity",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"coordinate",storageKey:null},r=[t,i],s=[t,{alias:null,args:null,kind:"ScalarField",name:"interfaceName",storageKey:null}],o={kind:"InlineFragment",selections:[{alias:"oldValue",args:null,kind:"ScalarField",name:"old",storageKey:null},{alias:"newValue",args:null,kind:"ScalarField",name:"new",storageKey:null}],type:"DescriptionChanged",abstractKey:null},d={kind:"InlineFragment",selections:r,type:"FieldAddedChange",abstractKey:null},c={kind:"InlineFragment",selections:r,type:"FieldRemovedChange",abstractKey:null},u={kind:"InlineFragment",selections:r,type:"ArgumentRemoved",abstractKey:null},g={kind:"InlineFragment",selections:r,type:"ArgumentAdded",abstractKey:null},m={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"deprecationReason",storageKey:null}],type:"DeprecatedChange",abstractKey:null},p={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"oldType",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"newType",storageKey:null}],type:"TypeChanged",abstractKey:null},h={kind:"InlineFragment",selections:[t,i,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[l,o,m,p],storageKey:null}],type:"ArgumentChanged",abstractKey:null},y=[t,i,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[l,{kind:"InlineFragment",selections:s,type:"InterfaceImplementationAdded",abstractKey:null},{kind:"InlineFragment",selections:s,type:"InterfaceImplementationRemoved",abstractKey:null},o,d,c,{kind:"InlineFragment",selections:[t,i,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[l,u,g,h,o,p,m],storageKey:null}],type:"OutputFieldChanged",abstractKey:null}],storageKey:null}],f=[{alias:null,args:null,kind:"ScalarField",name:"location",storageKey:null}],x=[t,{alias:null,args:null,kind:"ScalarField",name:"typeName",storageKey:null}];return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"changelogLogDangerousChangesPaginationQuery",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{args:[{kind:"Variable",name:"count",variableName:"count"},{kind:"Variable",name:"cursor",variableName:"cursor"}],kind:"FragmentSpread",name:"changelogLogDangerousChangesFragment"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"changelogLogDangerousChangesPaginationQuery",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[l,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{kind:"InlineFragment",selections:[{alias:"dangerous",args:a,concreteType:"SchemaChangesConnection",kind:"LinkedField",name:"changes",plural:!1,selections:[{alias:null,args:null,concreteType:"SchemaChangesEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[l,{kind:"TypeDiscriminator",abstractKey:"__isSchemaChangeLogEntry"},{kind:"InlineFragment",selections:r,type:"TypeSystemMemberRemovedChange",abstractKey:null},{kind:"InlineFragment",selections:r,type:"TypeSystemMemberAddedChange",abstractKey:null},{kind:"InlineFragment",selections:y,type:"ObjectModifiedChange",abstractKey:null},{kind:"InlineFragment",selections:[t,i,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[l,o,d,c,{kind:"InlineFragment",selections:[t,i,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[l,o,p,m],storageKey:null}],type:"InputFieldChanged",abstractKey:null}],storageKey:null}],type:"InputObjectModifiedChange",abstractKey:null},{kind:"InlineFragment",selections:[t,i,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[l,{kind:"InlineFragment",selections:f,type:"DirectiveLocationAdded",abstractKey:null},{kind:"InlineFragment",selections:f,type:"DirectiveLocationRemoved",abstractKey:null},o,u,h,g],storageKey:null}],type:"DirectiveModifiedChange",abstractKey:null},{kind:"InlineFragment",selections:[t,i,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[l,o],storageKey:null}],type:"ScalarModifiedChange",abstractKey:null},{kind:"InlineFragment",selections:[t,i,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[l,o,{kind:"InlineFragment",selections:r,type:"EnumValueRemoved",abstractKey:null},{kind:"InlineFragment",selections:r,type:"EnumValueAdded",abstractKey:null},{kind:"InlineFragment",selections:[t,i,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[l,m,o],storageKey:null}],type:"EnumValueChanged",abstractKey:null}],storageKey:null}],type:"EnumModifiedChange",abstractKey:null},{kind:"InlineFragment",selections:[t,i,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[l,o,{kind:"InlineFragment",selections:x,type:"UnionMemberRemoved",abstractKey:null},{kind:"InlineFragment",selections:x,type:"UnionMemberAdded",abstractKey:null}],storageKey:null}],type:"UnionModifiedChange",abstractKey:null},{kind:"InlineFragment",selections:y,type:"InterfaceModifiedChange",abstractKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:null},{alias:"dangerous",args:a,filters:["severity"],handle:"connection",key:"changelogLog_schemachangelog_dangerous",kind:"LinkedHandle",name:"changes"}],type:"SchemaChangeLog",abstractKey:null}],storageKey:null}]},params:{id:"fe43f0a03bc835bd37ca043c76a76a3b",metadata:{},name:"changelogLogDangerousChangesPaginationQuery",operationKind:"query",text:null}}}();a.hash="5d8dd7c83bfcf67c8e66d86c568d9ab1";const t=a,i=function(){var e=["dangerous"];return{argumentDefinitions:[{defaultValue:20,kind:"LocalArgument",name:"count"},{defaultValue:null,kind:"LocalArgument",name:"cursor"}],kind:"Fragment",metadata:{connection:[{count:"count",cursor:"cursor",direction:"forward",path:e}],refetch:{connection:{forward:{count:"count",cursor:"cursor"},backward:null,path:e},fragmentPathInResult:["node"],operation:t,identifierInfo:{identifierField:"id",identifierQueryVariableName:"id"}}},name:"changelogLogDangerousChangesFragment",selections:[{alias:"dangerous",args:[{kind:"Literal",name:"severity",value:"DANGEROUS"}],concreteType:"SchemaChangesConnection",kind:"LinkedField",name:"__changelogLog_schemachangelog_dangerous_connection",plural:!1,selections:[{alias:null,args:null,concreteType:"SchemaChangesEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"changelogEntryFragment"},{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:'__changelogLog_schemachangelog_dangerous_connection(severity:"DANGEROUS")'},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],type:"SchemaChangeLog",abstractKey:null}}();i.hash="5d8dd7c83bfcf67c8e66d86c568d9ab1";const r=i},51590:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"changelogLogFragment",selections:[{alias:null,args:null,concreteType:"SchemaChangeLogStatistic",kind:"LinkedField",name:"statistic",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"breaking",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"dangerous",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"safe",storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"changelogLogBreakingChangesFragment"},{args:null,kind:"FragmentSpread",name:"changelogLogDangerousChangesFragment"},{args:null,kind:"FragmentSpread",name:"changelogLogSafeChangesFragment"}],type:"SchemaChangeLog",abstractKey:null,hash:"c85c6330101287fc923f092d895a7fbc"},t=a},42066:(e,n,l)=>{l.r(n),l.d(n,{default:()=>r});const a=function(){var e=[{defaultValue:20,kind:"LocalArgument",name:"count"},{defaultValue:null,kind:"LocalArgument",name:"cursor"},{defaultValue:null,kind:"LocalArgument",name:"id"}],n=[{kind:"Variable",name:"id",variableName:"id"}],l={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},a=[{kind:"Variable",name:"after",variableName:"cursor"},{kind:"Variable",name:"first",variableName:"count"},{kind:"Literal",name:"severity",value:"SAFE"}],t={alias:null,args:null,kind:"ScalarField",name:"severity",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"coordinate",storageKey:null},r=[t,i],s=[t,{alias:null,args:null,kind:"ScalarField",name:"interfaceName",storageKey:null}],o={kind:"InlineFragment",selections:[{alias:"oldValue",args:null,kind:"ScalarField",name:"old",storageKey:null},{alias:"newValue",args:null,kind:"ScalarField",name:"new",storageKey:null}],type:"DescriptionChanged",abstractKey:null},d={kind:"InlineFragment",selections:r,type:"FieldAddedChange",abstractKey:null},c={kind:"InlineFragment",selections:r,type:"FieldRemovedChange",abstractKey:null},u={kind:"InlineFragment",selections:r,type:"ArgumentRemoved",abstractKey:null},g={kind:"InlineFragment",selections:r,type:"ArgumentAdded",abstractKey:null},m={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"deprecationReason",storageKey:null}],type:"DeprecatedChange",abstractKey:null},p={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"oldType",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"newType",storageKey:null}],type:"TypeChanged",abstractKey:null},h={kind:"InlineFragment",selections:[t,i,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[l,o,m,p],storageKey:null}],type:"ArgumentChanged",abstractKey:null},y=[t,i,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[l,{kind:"InlineFragment",selections:s,type:"InterfaceImplementationAdded",abstractKey:null},{kind:"InlineFragment",selections:s,type:"InterfaceImplementationRemoved",abstractKey:null},o,d,c,{kind:"InlineFragment",selections:[t,i,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[l,u,g,h,o,p,m],storageKey:null}],type:"OutputFieldChanged",abstractKey:null}],storageKey:null}],f=[{alias:null,args:null,kind:"ScalarField",name:"location",storageKey:null}],x=[t,{alias:null,args:null,kind:"ScalarField",name:"typeName",storageKey:null}];return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"changelogLogSafeChangesPaginationQuery",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{args:[{kind:"Variable",name:"count",variableName:"count"},{kind:"Variable",name:"cursor",variableName:"cursor"}],kind:"FragmentSpread",name:"changelogLogSafeChangesFragment"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"changelogLogSafeChangesPaginationQuery",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[l,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{kind:"InlineFragment",selections:[{alias:"safe",args:a,concreteType:"SchemaChangesConnection",kind:"LinkedField",name:"changes",plural:!1,selections:[{alias:null,args:null,concreteType:"SchemaChangesEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[l,{kind:"TypeDiscriminator",abstractKey:"__isSchemaChangeLogEntry"},{kind:"InlineFragment",selections:r,type:"TypeSystemMemberRemovedChange",abstractKey:null},{kind:"InlineFragment",selections:r,type:"TypeSystemMemberAddedChange",abstractKey:null},{kind:"InlineFragment",selections:y,type:"ObjectModifiedChange",abstractKey:null},{kind:"InlineFragment",selections:[t,i,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[l,o,d,c,{kind:"InlineFragment",selections:[t,i,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[l,o,p,m],storageKey:null}],type:"InputFieldChanged",abstractKey:null}],storageKey:null}],type:"InputObjectModifiedChange",abstractKey:null},{kind:"InlineFragment",selections:[t,i,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[l,{kind:"InlineFragment",selections:f,type:"DirectiveLocationAdded",abstractKey:null},{kind:"InlineFragment",selections:f,type:"DirectiveLocationRemoved",abstractKey:null},o,u,h,g],storageKey:null}],type:"DirectiveModifiedChange",abstractKey:null},{kind:"InlineFragment",selections:[t,i,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[l,o],storageKey:null}],type:"ScalarModifiedChange",abstractKey:null},{kind:"InlineFragment",selections:[t,i,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[l,o,{kind:"InlineFragment",selections:r,type:"EnumValueRemoved",abstractKey:null},{kind:"InlineFragment",selections:r,type:"EnumValueAdded",abstractKey:null},{kind:"InlineFragment",selections:[t,i,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[l,m,o],storageKey:null}],type:"EnumValueChanged",abstractKey:null}],storageKey:null}],type:"EnumModifiedChange",abstractKey:null},{kind:"InlineFragment",selections:[t,i,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[l,o,{kind:"InlineFragment",selections:x,type:"UnionMemberRemoved",abstractKey:null},{kind:"InlineFragment",selections:x,type:"UnionMemberAdded",abstractKey:null}],storageKey:null}],type:"UnionModifiedChange",abstractKey:null},{kind:"InlineFragment",selections:y,type:"InterfaceModifiedChange",abstractKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:null},{alias:"safe",args:a,filters:["severity"],handle:"connection",key:"changelogLog_schemachangelog_safe",kind:"LinkedHandle",name:"changes"}],type:"SchemaChangeLog",abstractKey:null}],storageKey:null}]},params:{id:"6f8abfd7de0245f24fea2c13cb3fd820",metadata:{},name:"changelogLogSafeChangesPaginationQuery",operationKind:"query",text:null}}}();a.hash="640998e9997f6967e37f66cf4e8a4026";const t=a,i=function(){var e=["safe"];return{argumentDefinitions:[{defaultValue:20,kind:"LocalArgument",name:"count"},{defaultValue:null,kind:"LocalArgument",name:"cursor"}],kind:"Fragment",metadata:{connection:[{count:"count",cursor:"cursor",direction:"forward",path:e}],refetch:{connection:{forward:{count:"count",cursor:"cursor"},backward:null,path:e},fragmentPathInResult:["node"],operation:t,identifierInfo:{identifierField:"id",identifierQueryVariableName:"id"}}},name:"changelogLogSafeChangesFragment",selections:[{alias:"safe",args:[{kind:"Literal",name:"severity",value:"SAFE"}],concreteType:"SchemaChangesConnection",kind:"LinkedField",name:"__changelogLog_schemachangelog_safe_connection",plural:!1,selections:[{alias:null,args:null,concreteType:"SchemaChangesEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"changelogEntryFragment"},{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:'__changelogLog_schemachangelog_safe_connection(severity:"SAFE")'},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],type:"SchemaChangeLog",abstractKey:null}}();i.hash="640998e9997f6967e37f66cf4e8a4026";const r=i},41016:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a=function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"changelogId"}],n=[{kind:"Variable",name:"id",variableName:"changelogId"}],l={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},t={kind:"Literal",name:"first",value:20},i=[t,{kind:"Literal",name:"severity",value:"BREAKING"}],r={alias:null,args:null,kind:"ScalarField",name:"severity",storageKey:null},s={alias:null,args:null,kind:"ScalarField",name:"coordinate",storageKey:null},o=[r,s],d=[r,{alias:null,args:null,kind:"ScalarField",name:"interfaceName",storageKey:null}],c={kind:"InlineFragment",selections:[{alias:"oldValue",args:null,kind:"ScalarField",name:"old",storageKey:null},{alias:"newValue",args:null,kind:"ScalarField",name:"new",storageKey:null}],type:"DescriptionChanged",abstractKey:null},u={kind:"InlineFragment",selections:o,type:"FieldAddedChange",abstractKey:null},g={kind:"InlineFragment",selections:o,type:"FieldRemovedChange",abstractKey:null},m={kind:"InlineFragment",selections:o,type:"ArgumentRemoved",abstractKey:null},p={kind:"InlineFragment",selections:o,type:"ArgumentAdded",abstractKey:null},h={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"deprecationReason",storageKey:null}],type:"DeprecatedChange",abstractKey:null},y={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"oldType",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"newType",storageKey:null}],type:"TypeChanged",abstractKey:null},f={kind:"InlineFragment",selections:[r,s,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[l,c,h,y],storageKey:null}],type:"ArgumentChanged",abstractKey:null},x=[r,s,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[l,{kind:"InlineFragment",selections:d,type:"InterfaceImplementationAdded",abstractKey:null},{kind:"InlineFragment",selections:d,type:"InterfaceImplementationRemoved",abstractKey:null},c,u,g,{kind:"InlineFragment",selections:[r,s,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[l,m,p,f,c,y,h],storageKey:null}],type:"OutputFieldChanged",abstractKey:null}],storageKey:null}],k=[{alias:null,args:null,kind:"ScalarField",name:"location",storageKey:null}],b=[r,{alias:null,args:null,kind:"ScalarField",name:"typeName",storageKey:null}],v=[{alias:null,args:null,concreteType:"SchemaChangesEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[l,{kind:"TypeDiscriminator",abstractKey:"__isSchemaChangeLogEntry"},{kind:"InlineFragment",selections:o,type:"TypeSystemMemberRemovedChange",abstractKey:null},{kind:"InlineFragment",selections:o,type:"TypeSystemMemberAddedChange",abstractKey:null},{kind:"InlineFragment",selections:x,type:"ObjectModifiedChange",abstractKey:null},{kind:"InlineFragment",selections:[r,s,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[l,c,u,g,{kind:"InlineFragment",selections:[r,s,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[l,c,y,h],storageKey:null}],type:"InputFieldChanged",abstractKey:null}],storageKey:null}],type:"InputObjectModifiedChange",abstractKey:null},{kind:"InlineFragment",selections:[r,s,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[l,{kind:"InlineFragment",selections:k,type:"DirectiveLocationAdded",abstractKey:null},{kind:"InlineFragment",selections:k,type:"DirectiveLocationRemoved",abstractKey:null},c,m,f,p],storageKey:null}],type:"DirectiveModifiedChange",abstractKey:null},{kind:"InlineFragment",selections:[r,s,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[l,c],storageKey:null}],type:"ScalarModifiedChange",abstractKey:null},{kind:"InlineFragment",selections:[r,s,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[l,c,{kind:"InlineFragment",selections:o,type:"EnumValueRemoved",abstractKey:null},{kind:"InlineFragment",selections:o,type:"EnumValueAdded",abstractKey:null},{kind:"InlineFragment",selections:[r,s,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[l,h,c],storageKey:null}],type:"EnumValueChanged",abstractKey:null}],storageKey:null}],type:"EnumModifiedChange",abstractKey:null},{kind:"InlineFragment",selections:[r,s,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"changes",plural:!0,selections:[l,c,{kind:"InlineFragment",selections:b,type:"UnionMemberRemoved",abstractKey:null},{kind:"InlineFragment",selections:b,type:"UnionMemberAdded",abstractKey:null}],storageKey:null}],type:"UnionModifiedChange",abstractKey:null},{kind:"InlineFragment",selections:x,type:"InterfaceModifiedChange",abstractKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],j=["severity"],F=[t,{kind:"Literal",name:"severity",value:"DANGEROUS"}],S=[t,{kind:"Literal",name:"severity",value:"SAFE"}],C=[{alias:null,args:null,kind:"ScalarField",name:"downloadUrl",storageKey:null},a];return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"changelogQuery",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"changelogSummaryFragment"},{args:null,kind:"FragmentSpread",name:"changelogViewerFragment"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"changelogQuery",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[l,a,{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"tag",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"changedAt",storageKey:null},{alias:null,args:null,concreteType:"SchemaChangeLogStatistic",kind:"LinkedField",name:"statistic",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"breaking",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"dangerous",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"safe",storageKey:null}],storageKey:null},{alias:"breaking",args:i,concreteType:"SchemaChangesConnection",kind:"LinkedField",name:"changes",plural:!1,selections:v,storageKey:'changes(first:20,severity:"BREAKING")'},{alias:"breaking",args:i,filters:j,handle:"connection",key:"changelogLog_schemachangelog_breaking",kind:"LinkedHandle",name:"changes"},{alias:"dangerous",args:F,concreteType:"SchemaChangesConnection",kind:"LinkedField",name:"changes",plural:!1,selections:v,storageKey:'changes(first:20,severity:"DANGEROUS")'},{alias:"dangerous",args:F,filters:j,handle:"connection",key:"changelogLog_schemachangelog_dangerous",kind:"LinkedHandle",name:"changes"},{alias:"safe",args:S,concreteType:"SchemaChangesConnection",kind:"LinkedField",name:"changes",plural:!1,selections:v,storageKey:'changes(first:20,severity:"SAFE")'},{alias:"safe",args:S,filters:j,handle:"connection",key:"changelogLog_schemachangelog_safe",kind:"LinkedHandle",name:"changes"},{alias:null,args:null,concreteType:"SchemaVersion",kind:"LinkedField",name:"schema",plural:!1,selections:C,storageKey:null},{alias:null,args:null,concreteType:"SchemaVersion",kind:"LinkedField",name:"previousSchema",plural:!1,selections:C,storageKey:null}],type:"SchemaChangeLog",abstractKey:null}],storageKey:null}]},params:{id:"a6d6db3de048c67a5505218f033e67e7",metadata:{},name:"changelogQuery",operationKind:"query",text:null}}}();a.hash="123f504a155e70e5f4a2c646d4b90dd1";const t=a},19467:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"changelogStatsFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"breaking",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"dangerous",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"safe",storageKey:null}],type:"SchemaChangeLogStatistic",abstractKey:null,hash:"f6d724af9070dc13e21c7ec89ae1f8bc"},t=a},15784:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"changelogSummaryFragment",selections:[{args:null,kind:"FragmentSpread",name:"changelogInfoFragment"},{alias:null,args:null,concreteType:"SchemaChangeLogStatistic",kind:"LinkedField",name:"statistic",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"changelogStatsFragment"}],storageKey:null}],type:"SchemaChangeLog",abstractKey:null,hash:"8e96bb0676afebe18fa6e982d75bfb9a"},t=a},66662:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"changelogViewerFragment",selections:[{args:null,kind:"FragmentSpread",name:"changelogLogFragment"},{args:null,kind:"FragmentSpread",name:"changelogDiffFragment"}],type:"SchemaChangeLog",abstractKey:null,hash:"d938141ecfcafc50b5650c43ef741e8a"},t=a},80350:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a=function(){var e={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"editStagesDialogFragment",selections:[{alias:null,args:null,concreteType:"Stage",kind:"LinkedField",name:"stages",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},e,{alias:null,args:null,kind:"ScalarField",name:"displayName",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"conditions",plural:!0,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Stage",kind:"LinkedField",name:"afterStage",plural:!1,selections:[e],storageKey:null}],type:"AfterStageCondition",abstractKey:null}],storageKey:null}],storageKey:null}],type:"Api",abstractKey:null}}();a.hash="dae42b570b1ac778fb3002b9c1c73c80";const t=a},50823:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a=function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"input"}],n=[{kind:"Variable",name:"input",variableName:"input"}],l={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"displayName",storageKey:null},i={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"message",storageKey:null}],type:"Error",abstractKey:"__isError"},r={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null};return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"editStagesDialogUpdateStagesMutation",selections:[{alias:null,args:n,concreteType:"UpdateStagesPayload",kind:"LinkedField",name:"updateStages",plural:!1,selections:[{alias:null,args:null,concreteType:"Api",kind:"LinkedField",name:"api",plural:!1,selections:[{alias:null,args:null,concreteType:"Stage",kind:"LinkedField",name:"stages",plural:!0,selections:[l,a,t,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"conditions",plural:!0,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Stage",kind:"LinkedField",name:"afterStage",plural:!1,selections:[a],storageKey:null}],type:"AfterStageCondition",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"errors",plural:!0,selections:[i],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"editStagesDialogUpdateStagesMutation",selections:[{alias:null,args:n,concreteType:"UpdateStagesPayload",kind:"LinkedField",name:"updateStages",plural:!1,selections:[{alias:null,args:null,concreteType:"Api",kind:"LinkedField",name:"api",plural:!1,selections:[{alias:null,args:null,concreteType:"Stage",kind:"LinkedField",name:"stages",plural:!0,selections:[l,a,t,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"conditions",plural:!0,selections:[r,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Stage",kind:"LinkedField",name:"afterStage",plural:!1,selections:[a,l],storageKey:null}],type:"AfterStageCondition",abstractKey:null}],storageKey:null}],storageKey:null},l],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"errors",plural:!0,selections:[r,i],storageKey:null}],storageKey:null}]},params:{id:"e05205cabd835bca494a0e3ae14f58c3",metadata:{},name:"editStagesDialogUpdateStagesMutation",operationKind:"mutation",text:null}}}();a.hash="da067851ce1a8a7ddea2aac0a4e1ea44";const t=a},7646:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a=function(){var e={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"stagesGraphFragment",selections:[{alias:null,args:null,concreteType:"Stage",kind:"LinkedField",name:"stages",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},e,{alias:null,args:null,kind:"ScalarField",name:"displayName",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"conditions",plural:!0,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Stage",kind:"LinkedField",name:"afterStage",plural:!1,selections:[e],storageKey:null}],type:"AfterStageCondition",abstractKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PublishedSchemaVersion",kind:"LinkedField",name:"publishedSchema",plural:!1,selections:[{alias:null,args:null,concreteType:"SchemaVersion",kind:"LinkedField",name:"version",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"tag",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"downloadUrl",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Api",abstractKey:null}}();a.hash="55e3cca508ff24586787ab14607d61fe";const t=a},6854:(e,n,l)=>{l.r(n),l.d(n,{default:()=>t});const a=function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"apiId"}],n=[{kind:"Variable",name:"id",variableName:"apiId"}],l={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null};return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"stagesQuery",selections:[{alias:"api",args:n,concreteType:"Api",kind:"LinkedField",name:"apiById",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"stagesGraphFragment"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"stagesQuery",selections:[{alias:"api",args:n,concreteType:"Api",kind:"LinkedField",name:"apiById",plural:!1,selections:[{alias:null,args:null,concreteType:"Stage",kind:"LinkedField",name:"stages",plural:!0,selections:[l,a,{alias:null,args:null,kind:"ScalarField",name:"displayName",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"conditions",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Stage",kind:"LinkedField",name:"afterStage",plural:!1,selections:[a,l],storageKey:null}],type:"AfterStageCondition",abstractKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PublishedSchemaVersion",kind:"LinkedField",name:"publishedSchema",plural:!1,selections:[{alias:null,args:null,concreteType:"SchemaVersion",kind:"LinkedField",name:"version",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"tag",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"downloadUrl",storageKey:null},l],storageKey:null}],storageKey:null}],storageKey:null},l],storageKey:null}]},params:{id:"36866b8421edaeb0b31434a21c070de4",metadata:{},name:"stagesQuery",operationKind:"query",text:null}}}();a.hash="1fb1e84ae12aac80e8cfe71c9d81b45b";const t=a},81092:(e,n,l)=>{l.d(n,{HR:()=>o,Lr:()=>c,N5:()=>d,N9:()=>p,R2:()=>r,d8:()=>g,g9:()=>u,np:()=>m});var a=l(19045),t=l(69311),i=l(44414);const r=t.Ay.div`display:flex;align-items:center;justify-content:center;width:42px;height:18px;border-radius:4px;text-transform:uppercase;background-color:${a.lt.states.info};color:${a.lt.states.infoText};`,s=t.Ay.div`display:flex;align-items:center;justify-content:center;width:42px;height:18px;border-radius:4px;text-transform:uppercase;background-color:${a.lt.states.success};color:${a.lt.states.successText};`,o=t.Ay.div`display:flex;align-items:center;justify-content:center;width:42px;height:18px;border-radius:4px;text-transform:uppercase;background-color:${a.lt.states.failure};color:${a.lt.states.failureText};`,d=t.Ay.div`display:flex;align-items:center;justify-content:center;width:42px;height:18px;border-radius:4px;text-transform:uppercase;background-color:${a.lt.states.warning};color:${a.lt.states.warningText};`,c=t.Ay.div`display:flex;justify-content:center;padding-left:6px;`;function u(e){let{status:n,statusCode:l}=e;return"pending"===n?(0,i.jsx)(r,{children:"PEN"}):"cancelled"===n?(0,i.jsx)(d,{children:"CAN"}):l?(0,i.jsx)(g,{statusCode:l}):(0,i.jsx)(o,{children:"ERR"})}function g(e){let{statusCode:n}=e;return n<300?(0,i.jsx)(s,{children:n}):(0,i.jsx)(o,{children:n})}function m(e){let{status:n}=e;switch(n){case"cancelled":return(0,i.jsx)(d,{children:"CAN"});case"failed":return(0,i.jsx)(o,{children:"ERR"});case"pending":return(0,i.jsx)(r,{children:"PEN"});case"succeeded":return(0,i.jsx)(s,{children:"SUC"})}}function p(e){let{status:n}=e;return"pending"===n?(0,i.jsx)(r,{children:"PEN"}):"failed"===n?(0,i.jsx)(o,{children:"ERR"}):(0,i.jsx)(s,{children:"OK"})}},67752:(e,n,l)=>{l.d(n,{U:()=>c});var a=l(19045),t=l(13169),i=l(9950),r=l(69311),s=l(64381),o=l(69649),d=l(44414);const c=(0,i.memo)((0,i.forwardRef)((function(e,n){let{fieldRef:l,placeholder:a="Filter...",searchTerm:r,width:c,onSearchTermChange:h}=e;const y=(0,t.N)(l),f=(0,i.useRef)(null),x=(0,t.YQ)((e=>{h(e.target.value.trim())}),[h]),k=(0,i.useCallback)((e=>{x(e),f.current.style.display=e.currentTarget.value.length>0?"flex":"none"}),[x]),b=(0,i.useCallback)((()=>{h(""),y.current.value="",f.current.style.display="none"}),[y,h]),v=(0,i.useCallback)((()=>{var e;null===(e=y.current)||void 0===e||e.focus()}),[y]);return(0,i.useEffect)((()=>{const e=y.current,n=f.current;r&&r.length>0?(e.value=r,n.style.display="flex"):n.style.display="none"}),[y,r]),(0,d.jsx)(u,{ref:n,style:{width:c?c+"px":void 0},onClick:v,children:(0,d.jsxs)(p,{children:[(0,d.jsx)(g,{children:(0,d.jsx)(o.WI,{})}),(0,d.jsx)(m,{ref:y,placeholder:a,onChange:k}),(0,d.jsx)(s.pG,{innerRef:f,onClick:b,children:(0,d.jsx)(o.US,{})})]})})}))),u=r.Ay.div`z-index:1;display:flex;flex:1 1 auto;flex-direction:row;align-items:center;`,g=r.Ay.div`display:flex;flex:0 0 20px;align-items:center;justify-content:center;transition:fill 0.2s ease;& > .icon{fill:${a.lt.components.fieldText} !important;}`,m=r.Ay.input`flex:1 1 auto;border:0 none;padding:0 6px;color:${a.lt.components.fieldText};background-color:${a.lt.components.field};transition:background-color 0.2s ease,color 0.2s ease;user-select:initial;::placeholder{color:${a.lt.components.fieldPlaceholder};transition:color 0.2s ease;}`,p=r.Ay.div`display:flex;flex:1 1 auto;align-items:center;border-radius:4px;border:1px solid ${a.lt.components.fieldBorder};padding-left:7px;height:28px;background-color:${a.lt.components.field};transition:background-color 0.2s ease,border-color 0.2s ease;cursor:text;&:focus-within,&:hover{border-color:${a.lt.components.fieldHoverBorder};background-color:${a.lt.components.fieldHover};& > ${g} > .icon{fill:${a.lt.components.fieldHoverText};}& > ${m}{background-color:${a.lt.components.fieldHover};color:${a.lt.components.fieldHoverText};::placeholder{color:${a.lt.components.fieldHoverPlaceholder};}}}&:hover{border-color:${a.lt.components.fieldHoverBorder};background-color:${a.lt.components.fieldHover};& > ${g} > .icon{fill:${a.lt.components.fieldHoverText};}& > ${m}{color:${a.lt.components.fieldHoverText};background-color:${a.lt.components.fieldHover};}}`},66993:(e,n,l)=>{l.d(n,{zC:()=>u,iN:()=>g,Dw:()=>m,Dv:()=>h,jE:()=>f});var a=l(19045),t=l(67315),i=l(6730),r=l(23406),s=l(13169),o=l(50514),d=l(9950),c=l(44414);function u(e){const n=function(e,n){const l=(0,d.useRef)(null);return(0,d.useEffect)((()=>{const i=l.current,r=o.editor.createDiffEditor(i,{...a.Ng,readOnly:!0}),s=t.Hk3.register(n,r);return r.setModel(e),()=>{s(),r.dispose()}}),[n,e]),(0,s.fs)(n,l),l}(function(e){let{content:n}=e;const l=(0,r.bu)((()=>({original:o.editor.createModel("","graphql"),modified:o.editor.createModel("","graphql")})));return l.current.original.updateOptions(a.x5),l.current.modified.updateOptions(a.x5),(0,d.useEffect)((()=>{l.current.original.setValue(n.original)}),[l,n.original]),(0,d.useEffect)((()=>{l.current.modified.setValue(n.modified)}),[l,n.modified]),(0,d.useEffect)((()=>()=>{l.current.original.dispose(),l.current.modified.dispose()}),[l]),l.current}(e),e.id);return(0,c.jsx)(i.nG,{ref:n})}function g(e){const n=function(e){let{id:n,content:l}=e;const i=(0,d.useRef)(null),c=(0,r.bu)((()=>o.editor.createModel("","json")));return c.current.updateOptions(a.x5),(0,d.useEffect)((()=>{const e=i.current,r=l?JSON.stringify(l,null,2):"",s=o.editor.create(e,{...a.Ng,readOnly:!0,model:c.current}),d=t.Hk3.register(n,s);return s.onContextMenu((()=>(0,a.iD)(e))),s.setScrollPosition({scrollLeft:0,scrollTop:0}),c.current.setValue(r),()=>{d(),s.dispose()}}),[n,l,c]),(0,d.useEffect)((()=>()=>{c.current.dispose()}),[c]),(0,s.fs)(n,i),i}(e);return(0,c.jsx)(i.nG,{ref:n})}const m=(0,d.memo)((function(e){let{content:n}=e;return(0,c.jsx)(i.nG,{ref:p(n)})}));function p(e){const n=(0,r.bu)((()=>o.editor.createModel(e,"graphql"))),l=(0,d.useRef)(void 0),t=(0,d.useRef)(null);return n.current.setValue(e),n.current.updateOptions(a.x5),(0,d.useEffect)((()=>{const e=t.current;return l.current=o.editor.create(e,{...a.Ng,model:n.current,readOnly:!0}),(0,r.p$)(l.current),l.current.onContextMenu((()=>(0,a.iD)(e))),()=>{var e;null===(e=l.current)||void 0===e||e.dispose()}}),[n]),(0,s.Fl)((()=>l.current),t),(0,d.useEffect)((()=>()=>{n.current.dispose()}),[n]),t}function h(e){const n=function(e,n){let{id:l,enableWordWrap:i,followNewestLine:r,scrollPositionInvalidation:c}=e;const u=(0,d.useRef)(null),g=(0,d.useRef)(void 0);return(0,d.useEffect)((()=>{const e=u.current;g.current=o.editor.create(e,{...a.Ng,readOnly:!0,wordWrap:i?"on":"off",wordWrapOverride1:i?"on":"off",wordWrapOverride2:i?"on":"off",model:n});const r=t.Hk3.register(l,g.current);return g.current.onContextMenu((()=>(0,a.iD)(e))),()=>{var e;r(),null===(e=g.current)||void 0===e||e.dispose()}}),[l,n,i]),(0,d.useEffect)((()=>{var e,l;return null===(e=g.current)||void 0===e||null===(l=e.onDidChangeModelContent((()=>{var e;r&&(null===(e=g.current)||void 0===e||e.revealLine(n.getLineCount()))})))||void 0===l?void 0:l.dispose}),[l,n,r]),(0,d.useEffect)((()=>{var e;null===(e=g.current)||void 0===e||e.setScrollPosition({scrollLeft:0,scrollTop:0})}),[l,c]),(0,s.fs)(l,u),u}(e,function(e){let{content:n}=e;const l=(0,r.bu)((()=>o.editor.createModel("","plaintext")));return l.current.updateOptions(a.x5),(0,d.useEffect)((()=>{const e=null!==n&&void 0!==n?n:"";l.current.setValue(e)}),[l,n]),(0,d.useEffect)((()=>()=>{l.current.dispose()}),[l]),l.current}(e));return(0,c.jsx)(i.nG,{ref:n})}l(36022);var y=l(51084);function f(e){const n=function(e){let{id:n,content:l,schema:i,onChange:c}=e;const u=(0,d.useRef)(null),g=(0,r.bu)((()=>o.editor.createModel("","yaml")));g.current.updateOptions(a.x5);const m=(0,s.YQ)((e=>{null===c||void 0===c||c(e.getValue())}),[c]);return(0,d.useEffect)((()=>{const e=u.current,i=o.editor.create(e,{...a.Ng,glyphMargin:!0,model:g.current,language:"yaml"}),r=t.Hk3.register(n,i);let s;i.onContextMenu((()=>(0,a.iD)(e))),g.current.getValue()!==l&&(i.setScrollPosition({scrollLeft:0,scrollTop:0}),g.current.setValue(l));const d=g.current.onDidChangeContent((()=>{s=m(g.current)})).dispose;return()=>{var e;d(),null===(e=s)||void 0===e||e(),r(),i.dispose()}}),[n,l,g,m]),(0,s.fs)(n,u),(0,d.useEffect)((()=>{(0,y.f)(o,{enableSchemaRequest:!1,hover:!0,completion:!0,validate:!0,format:!0,schemas:[{uri:i.uri,fileMatch:[g.current.uri.toString()],schema:i.schema}]})}),[g,i]),(0,d.useEffect)((()=>{let e=[];return o.editor.onDidChangeMarkers((n=>{n.forEach((n=>{if(n.toString()===g.current.uri.toString()){const l=o.editor.getModelMarkers({resource:n});if(g.current.isDisposed())return;e=g.current.deltaDecorations(e,l.reduce(((e,n)=>(n.severity!==o.MarkerSeverity.Error&&n.severity!==o.MarkerSeverity.Warning||e.push({range:new o.Range(n.startLineNumber,1,n.startLineNumber,1),options:{glyphMarginClassName:n.severity===o.MarkerSeverity.Error?"codicon-error":"codicon-warning"}}),e)),[]))}}))})).dispose}),[g]),(0,d.useEffect)((()=>()=>{g.current.dispose()}),[g]),u}(e);return(0,c.jsx)(i.nG,{ref:n})}},34877:(e,n,l)=>{l.d(n,{G3:()=>u,St:()=>s,c9:()=>d,dg:()=>r,gX:()=>o,hE:()=>c,lh:()=>i});var a=l(19045),t=l(69311);const i=26,r=t.Ay.div`display:flex;flex:0 0 20px;align-items:center;justify-content:center;`,s=t.Ay.div.attrs({role:"button"})`display:flex;box-sizing:border-box;flex:0 0 auto;flex-direction:row;align-items:center;height:${i}px;padding:0 8px;color:${a.lt.base.itemText};cursor:pointer;transition:background-color 0.2s ease,color 0.2s ease;& > ${r} > .icon{fill:${a.lt.base.itemText};}&:hover{color:${a.lt.base.itemHoverText};background-color:${a.lt.base.itemHover};& > ${r} > .icon{fill:${a.lt.base.itemHoverText};}}&.active{color:${a.lt.base.itemActiveText};background-color:${a.lt.base.itemActive};& > ${r} > .icon{fill:${a.lt.base.itemActiveText};}}`,o=t.Ay.div`flex:0 0 100px;padding:0 6px;white-space:nowrap;text-align:right;`,d=t.Ay.div`flex:0 0 175px;padding:0 6px;white-space:nowrap;text-align:right;`,c=t.Ay.div`flex:1 1 auto;padding:0 6px;text-overflow:ellipsis;white-space:nowrap;`,u=t.Ay.div`flex:0 0 45px;padding:0 6px;white-space:nowrap;text-align:right;`},40821:(e,n,l)=>{l.d(n,{yr:()=>j,YV:()=>F});var a=l(9950),t=l(19045),i=l(13169),r=l(17119),s=l(87658),o=l(69311),d=l(44414);const c=(0,a.memo)((0,a.forwardRef)((function(e,n){var l,t,s,o,c;const j=(0,a.useRef)(null),F=(0,a.useRef)(null),S=(0,a.useRef)(null),C=(0,a.useRef)(null),K=(0,a.useRef)(null),L=(0,a.useRef)(null),T=(0,a.useRef)(null),w=(0,a.useRef)(null!==(l=e.asideCollapsed)&&void 0!==l&&l),A=(0,a.useRef)(null!==(t=e.asideSize)&&void 0!==t?t:e.relativeSize?.3:300),I=(0,a.useRef)(null),D=(0,i.bE)(),N=e.asideCollapsible&&e.asideCollapsed?0:null!==(s=e.asideSize)&&void 0!==s?s:e.relativeSize?.3:300;w.current=null!==(o=e.asideCollapsed)&&void 0!==o&&o,A.current=null!==(c=e.asideSize)&&void 0!==c?c:e.relativeSize?.3:300;const R=(0,a.useCallback)((()=>{const n=j.current,l=w.current?I.current:K.current;return"horizontal"===e.orientation?"pane-a"===e.mainPane?x(l,n):v(l,n):"pane-a"===e.mainPane?b(l,n):k(l,n)}),[e.mainPane,e.orientation]),E=(0,a.useCallback)((()=>L.current&&e.asideMenuInBetween?"horizontal"===e.orientation?L.current.offsetHeight:L.current.offsetWidth:0),[e.asideMenuInBetween,e.orientation]),$=(0,a.useCallback)((n=>{const l=j.current,a=F.current;if(!l||!a)return;a.style.top="",a.style.right="",a.style.bottom="",a.style.left="";const t=n+R()-2;"horizontal"===e.orientation?"pane-a"===e.mainPane?a.style.bottom=t+"px":a.style.top=t+"px":"pane-a"===e.mainPane?a.style.right=t+"px":a.style.left=t+"px"}),[e.mainPane,e.orientation,R]),V=(0,a.useCallback)((n=>{const l=C.current;if(!l)return;const a=n;"horizontal"===e.orientation?"pane-a"===e.mainPane?l.style.marginTop=a?"":"-4px":l.style.marginBottom=a?"":"-4px":"pane-a"===e.mainPane?l.style.marginLeft=a?"":"-4px":l.style.marginRight=a?"":"-4px"}),[e.mainPane,e.orientation]),P=(0,a.useCallback)((e=>{const n=K.current;if(!n)return;const l=E(),a=e>0&&e-l>0?e-l:0;n.style.flexBasis=a+"px",n.style.display=0===a?"none":"flex",$(e),V(e)}),[E,$,V]),M=(0,a.useCallback)((()=>{const n=j.current.getBoundingClientRect();return"horizontal"===e.orientation?[n.height,n.top+n.height,"pane-a"===e.mainPane?0:n.top]:[n.width,n.left+n.width,"pane-a"===e.mainPane?0:n.left]}),[e.orientation,e.mainPane]),O=n=>{if(e.relativeSize){const[e]=M();return Math.round(e*n)}return n},_=(0,a.useCallback)((n=>{if("button"in n&&0!==n.button)return;const l=F.current,a=S.current,[t,i,r]=M(),s=R()+r,o=w.current,d=A.current,c=o?E():0;a.style.display="block",l.classList.add("dragging");const u=n=>{const l="horizontal"===e.orientation?"clientY":"clientX";return"touches"in n?n.touches[0][l]:n[l]},g=n=>{A.current=e.relativeSize?n/t:n},m=n=>{const l="pane-a"===e.mainPane?i-u(n)-s+c:u(n)-s+c;if(!(e=>t-e<60)(l))if(e.asideCollapsible)if(l<120){const e=!w.current;var a;if(w.current=!0,P(0),e)null===(a=T.current)||void 0===a||a.freeze(!0)}else if(l<150){const e=w.current;var r;if(w.current=!1,P(150),e)null===(r=T.current)||void 0===r||r.freeze(!1)}else{const e=w.current;var o;if(w.current=!1,g(l),P(l),e)null===(o=T.current)||void 0===o||o.freeze(!1)}else l<60?P(60):(g(l),P(l))},p={passive:!0,capture:!0},h=()=>{if(a.style.display="none",l.classList.remove("dragging"),document.removeEventListener("mousemove",m,p),document.removeEventListener("touchmove",m,p),document.removeEventListener("mouseup",h,p),document.removeEventListener("touchcancel",h,p),document.removeEventListener("touchend",h,p),e.asideCollapsible){var n,t;if(o!==w.current)null===(n=e.onAsideCollapsedChange)||void 0===n||n.call(e,w.current);if(w.current)A.current=d;else null===(t=e.onAsideSizeChange)||void 0===t||t.call(e,A.current)}else{var i;null===(i=e.onAsideSizeChange)||void 0===i||i.call(e,A.current)}};document.addEventListener("mousemove",m,p),document.addEventListener("touchmove",m,p),document.addEventListener("mouseup",h,p),document.addEventListener("touchcancel",h,p),document.addEventListener("touchend",h,p)}),[e,R,E,P,M]);return(0,a.useImperativeHandle)(n,(()=>({collapse:()=>{var n;e.asideCollapsible&&!w.current&&(w.current=!0,P(0),null===(n=T.current)||void 0===n||n.freeze(!0))},expand:()=>{var n;e.asideCollapsible&&w.current&&(w.current=!1,P(A.current),null===(n=T.current)||void 0===n||n.freeze(!1))}})),[e.asideCollapsible,P]),(0,a.useLayoutEffect)((()=>{P(O(N))})),(0,a.useEffect)((()=>{T.current&&T.current.freeze(w.current)})),(0,i.wY)(j,(n=>{let[l]=n;const a=j.current,t=F.current,i="horizontal"===e.orientation?l.contentRect.height:l.contentRect.width,r=!w.current&&K.current?"horizontal"===e.orientation?K.current.offsetHeight:K.current.offsetWidth:0,s="horizontal"===e.orientation?"pane-a"===e.mainPane?x(t,a):v(t,a):"pane-a"===e.mainPane?b(t,a):k(t,a),o=i-r;e.relativeSize&&!w.current&&P(O(A.current)),s>0&&60>o&&P(i-60)})),(0,d.jsxs)(g,{ref:j,$orientation:e.orientation,children:["pane-a"===e.mainPane?(0,d.jsx)(f,{ref:I,children:e.paneAContent}):(0,d.jsxs)(d.Fragment,{children:[e.asideMenu&&!e.asideMenuInBetween&&(0,d.jsx)(y,{ref:L,children:e.asideMenu}),(0,d.jsx)(y,{ref:K,$isCollapsed:N<=0,children:(0,d.jsx)(u,{ref:T,freeze:N<=0,children:e.paneAContent})}),e.asideMenu&&e.asideMenuInBetween&&(0,d.jsx)(y,{ref:L,children:e.asideMenu})]}),(0,d.jsx)(p,{ref:F,$orientation:e.orientation,onMouseDown:_,onTouchStart:_,children:e.asideCollapsible&&e.asideToggler&&(0,d.jsx)(m,{ref:C,$orientation:e.orientation,onPointerDown:e=>{e.preventDefault(),e.stopPropagation()},onClick:n=>{var l,a,t;(n.preventDefault(),n.stopPropagation(),w.current=!w.current,w.current?P(0):P(A.current),null===(l=T.current)||void 0===l||l.freeze(w.current),null===(a=e.onAsideCollapsedChange)||void 0===a||a.call(e,w.current),w.current)||(null===(t=e.onAsideSizeChange)||void 0===t||t.call(e,A.current))}})}),"pane-b"===e.mainPane?(0,d.jsx)(f,{ref:I,children:e.paneBContent}):(0,d.jsxs)(d.Fragment,{children:[e.asideMenu&&e.asideMenuInBetween&&(0,d.jsx)(y,{ref:L,children:e.asideMenu}),(0,d.jsx)(y,{ref:K,$isCollapsed:N<=0,children:(0,d.jsx)(u,{ref:T,freeze:N<=0,children:e.paneBContent})}),e.asideMenu&&!e.asideMenuInBetween&&(0,d.jsx)(y,{ref:L,children:e.asideMenu})]}),(0,r.createPortal)((0,d.jsx)(h,{ref:S,$orientation:e.orientation}),D)]})}))),u=(0,a.forwardRef)((function(e,n){let{children:l,freeze:t}=e;const[i,r]=(0,a.useState)(t);return(0,a.useImperativeHandle)(n,(()=>({freeze:e=>{r(e)}})),[r]),(0,d.jsx)(s.K,{freeze:i,children:l})})),g=o.Ay.div`position:relative;display:flex;flex:1 1 auto;flex-direction:${e=>{let{$orientation:n}=e;return"horizontal"===n?"column":"row"}};`,m=o.Ay.div`position:absolute;cursor:pointer;${e=>{let{$orientation:n}=e;return"horizontal"===n?o.AH`background:repeating-linear-gradient( 90deg,${t.lt.base.dragHandle},${t.lt.base.dragHandle} 2px,${t.lt.base.background} 2px,${t.lt.base.background} 4px );background-size:22px 4px;height:4px;width:22px;left:50%;transform:translateX(-50%);`:o.AH`background:repeating-linear-gradient( 0deg,${t.lt.base.dragHandle},${t.lt.base.dragHandle} 2px,${t.lt.base.background} 2px,${t.lt.base.background} 4px );background-size:4px 22px;height:22px;width:4px;top:50%;transform:translateY(-50%);`}}`,p=o.Ay.div`position:absolute;z-index:10;background-color:transparent;transition:background-color 0.2s ease 0s;overflow:visible;${e=>{let{$orientation:n}=e;return"horizontal"===n?o.AH`right:0;left:0;height:4px;cursor:ns-resize;`:o.AH`top:0;bottom:0;width:4px;cursor:ew-resize;`}} &.dragging,&:hover{background-color:${t.lt.base.dragHandle};transition:background-color 0.2s ease 0.5s;}`,h=o.Ay.div`display:none;position:absolute;z-index:5;top:0;right:0;bottom:0;left:0;cursor:${e=>{let{$orientation:n}=e;return"horizontal"===n?"ns-resize":"ew-resize"}};`,y=o.Ay.div`display:${e=>{let{$isCollapsed:n}=e;return n?"none":"flex"}};flex:none;`,f=o.Ay.div`display:flex;flex:auto;`;function x(e,n){return n.offsetHeight-v(e,n)-e.offsetHeight}function k(e,n){let l=0,a=e;for(;a;)l+=a.offsetLeft,a=a.offsetParent===n?null:a.offsetParent;return l}function b(e,n){return n.offsetWidth-k(e,n)-e.offsetWidth}function v(e,n){let l=0,a=e;for(;a;)l+=a.offsetTop,a=a.offsetParent===n?null:a.offsetParent;return l}const j=(0,a.memo)((0,a.forwardRef)((function(e,n){return(0,d.jsx)(c,{id:e.id,ref:n,asideCollapsible:e.asideCollapsible,asideCollapsed:e.asideCollapsed,asideMenu:e.asideMenu,asideMenuInBetween:e.asideMenuInBetween,asideToggler:e.asideToggler,asideSize:e.asideHeight,mainPane:"top"===e.mainPane?"pane-a":"pane-b",orientation:"horizontal",paneAContent:e.topContent,paneBContent:e.bottomContent,relativeSize:e.relativeHeight,onAsideSizeChange:e.onAsideHeightChange,onAsideCollapsedChange:e.onAsideCollapsedChange})}))),F=(0,a.memo)((0,a.forwardRef)((function(e,n){return(0,d.jsx)(c,{id:e.id,ref:n,asideCollapsible:e.asideCollapsible,asideCollapsed:e.asideCollapsed,asideMenu:e.asideMenu,asideMenuInBetween:e.asideMenuInBetween,asideToggler:e.asideToggler,asideSize:e.asideWidth,mainPane:"left"===e.mainPane?"pane-a":"pane-b",orientation:"vertical",paneAContent:e.leftContent,paneBContent:e.rightContent,relativeSize:e.relativeWidth,onAsideSizeChange:e.onAsideWidthChange,onAsideCollapsedChange:e.onAsideCollapsedChange})})))},25770:(e,n,l)=>{l.d(n,{B:()=>f,c:()=>x});var a,t,i=l(19045),r=l(9950),s=l(69311),o=l(64381),d=l(69649);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var l=arguments[n];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},c.apply(null,arguments)}function u(e,n){let{title:l,titleId:i,...s}=e;return r.createElement("svg",c({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":i},s),l?r.createElement("title",{id:i},l):null,a||(a=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 4l1-1h5.414L14 6.586V14l-1 1H5l-1-1V4zm9 3l-3-3H5v10h8V7z"})),t||(t=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 1L2 2v10l1 1V2h6.414l-1-1H3z"})))}const g=r.forwardRef(u);l.p;var m=l(16629),p=l(44414);const h=(0,r.forwardRef)((function(e,n){return(0,p.jsx)(m.C,{ref:n,icon:g,...e})}));var y=l(89989);const f=(0,r.memo)((function(e){let{items:n,title:l,orientation:a,collapsible:t,initialCollapsed:i,onCollapseChange:s}=e;const c=(0,r.useId)(),[u,g]=(0,r.useState)(null!==i&&void 0!==i&&i),m=(0,r.useCallback)((()=>{g(!0),null===s||void 0===s||s(!0)}),[s,g]),f=(0,r.useCallback)((()=>{g(!1),null===s||void 0===s||s(!1)}),[s,g]),x=(0,r.useCallback)((async e=>{const n=e.currentTarget.dataset.copyId;if(n){var l,a;const e=null!==(l=null===(a=document.getElementById(n))||void 0===a?void 0:a.innerText)&&void 0!==l?l:"";await navigator.clipboard.writeText(e)}}),[]);return n.length?(0,p.jsxs)(k,{$orientation:a,children:[l&&(0,p.jsxs)(b,{children:[l,t?u?(0,p.jsx)(o.pG,{onClick:f,tooltip:"Expand",children:(0,p.jsx)(d.D3,{})}):(0,p.jsx)(o.pG,{onClick:m,tooltip:"Collapse",children:(0,p.jsx)(d.Mt,{})}):null]}),(!t||!u)&&(0,p.jsx)(v,{children:n.map((e=>{if(e.enableCopy){const n=`${c}${e.key}:desc:`;return(0,p.jsxs)(j,{$enableCopy:!0,children:[(0,p.jsx)(F,{children:e.name}),(0,p.jsx)(S,{children:(0,p.jsx)(y.$,{id:n,children:e.description})}),(0,p.jsx)(o.pG,{"data-copy-id":n,onClick:x,children:(0,p.jsx)(h,{})})]},e.key)}return(0,p.jsxs)(j,{children:[(0,p.jsx)(F,{children:e.name}),(0,p.jsx)(S,{children:e.description})]},e.key)}))})]}):null})),x=s.Ay.div`display:flex;flex:0 0 auto;flex-direction:column;margin-bottom:20px;`,k=s.Ay.div`display:flex;flex:0 0 auto;flex-direction:column;margin-bottom:8px;${e=>{let{$orientation:n}=e;return"vertical"===n&&s.AH`${j}{flex-direction:column;}${F}{padding-bottom:8px;}${F},${S}{flex:0 0 auto;max-width:initial;}`}}`,b=s.Ay.h2`display:flex;flex:0 0 auto;flex-direction:row;align-items:center;justify-content:space-between;margin:0 13px;height:42px;font-size:1.167rem;font-weight:normal;line-height:1.5rem;color:${i.lt.base.subtitle};`,v=s.Ay.ul`display:flex;flex:0 0 auto;flex-direction:column;`,j=s.Ay.li`display:flex;flex:0 0 auto;margin:0;border-top:1px solid ${i.lt.base.separator};${e=>{let{$enableCopy:n}=e;return n?s.AH`align-items:center;height:34px;padding:0 13px;`:s.AH`padding:8px 13px;`}}`,F=s.Ay.div`display:flex;flex:1 0 40%;justify-content:flex-start;max-width:300px;font-weight:normal;line-height:1.5rem;color:${i.lt.base.text};`,S=s.Ay.div`display:flex;flex:1 1 60%;align-items:center;font-weight:normal;line-height:1.5rem;color:${i.lt.base.description};`},89989:(e,n,l)=>{l.d(n,{$:()=>a});const a=l(69311).Ay.div`overflow:hidden;text-align:start;text-overflow:ellipsis;white-space:nowrap;`},57522:(e,n,l)=>{l.r(n),l.d(n,{default:()=>ab});var a=l(67315),t=l(81831),i=l(95359),r=(l(9516),l(45331)),s=l(31726),o=l(19045),d=l(64381),c=l(34890),u=l(99074),g=l(69649),m=l(66800),p=l(15209),h=l(23406),y=l(13169),f=l(23845),x=l(66094),k=l(28511),b=l(9950),v=l(54472),j=l(69311),F=l(44414);const S="file-upload";function C(){var e,n;const l=(0,a.l$t)(S),t=(0,a.Cjx)(),i=(0,b.useRef)(void 0),r=(0,b.useRef)([]),s=(0,y.CH)(),o=(0,b.useCallback)((async()=>{var e,n;l&&null!==(e=i.current)&&void 0!==e&&e.length&&(await(0,x.T$s)(l.item.context.workspaceId,l.item.context.parentId,...i.current.map((e=>{let{name:n,content:l}=e;return{name:n,content:l}}))),t(),null===(n=p.vL.get(f.xb))||void 0===n||n.reload(),i.current=void 0,s(),l.hide())}),[l,s,t]),d=(0,b.useCallback)((()=>{i.current=void 0,s(),null===l||void 0===l||l.hide()}),[l,s]),u=(0,b.useCallback)((async(e,n)=>{var a;if(l&&null!==(a=i.current)&&void 0!==a&&a.length){var t;const a=[...i.current],o=await(0,h.AF)(n,null!==(t=l.item.context.parentId)&&void 0!==t?t:l.item.context.workspaceId),d=i.current[e];a.splice(e,1,{...d,name:n,validationResult:o}),i.current=a;const c=L(i.current);d.validationResult===o&&(0,k.aI)(r.current,c)||(r.current=c,s())}}),[l,s]),g=(0,b.useCallback)((e=>{var n;if(null===(n=i.current)||void 0===n||!n.length)return;const l=[...i.current];l.splice(e,1),i.current=l,r.current=L(i.current),s()}),[s]),j=(0,b.useCallback)((async e=>{if(l){var n;const a=await Promise.all(e.map((e=>{var n;return(0,h.AF)(e.name,null!==(n=l.item.context.parentId)&&void 0!==n?n:l.item.context.workspaceId).then((n=>({name:e.name,validationResult:n,content:e})))})));i.current=null!==(n=i.current)&&void 0!==n&&n.length?[...i.current,...a]:a,r.current=L(i.current),s()}}),[l,s]),{getRootProps:C,getInputProps:K,open:w}=(0,v.VB)({onDrop:j,noDragEventsBubbling:!0,noClick:!0});return(0,b.useEffect)((()=>{var e;null!==l&&void 0!==l&&null!==(e=l.item)&&void 0!==e&&e.context.files&&j(l.item.context.files,[])}),[l,j]),(0,F.jsx)(c.lG,{id:S,title:"Add Files",size:"medium",disableScrollbars:!1,showConfirm:!0,confirmText:"Save",disableConfirm:!(null!==(e=i.current)&&void 0!==e&&e.length)||i.current.some((e=>{let{validationResult:n}=e;return"valid"!==n||!!r.current.length})),showAlternative:!0,alternativePosition:"left",alternativeText:"Select files",showCancel:!0,cancelText:"Cancel",onConfirm:o,onAlternative:w,onCancel:d,onClose:d,children:(0,F.jsxs)(I,{...C(),children:[(0,F.jsx)("input",{...K()}),null!==(n=i.current)&&void 0!==n&&n.length&&l?(0,F.jsx)(m.Z,{children:(0,F.jsx)(T,{files:i.current,nameDuplicates:r.current,onChangeFileName:u,onRemoveFile:g,onSelectFiles:w})}):(0,F.jsx)(D,{children:'Drop files here, or click "Select files".'})]})})}function K(){return(0,c.Gk)(S)}function L(e){return e.reduce(((e,n)=>{const l=e.findIndex((e=>{let[l]=e;return l===n.name}));if(-1!==l){const n=[...e],[a,t]=e[l];return n.splice(l,1,[a,t+1]),n}return[...e,[n.name,1]]}),[]).filter((e=>{let[,n]=e;return n>1})).map((e=>{let[n]=e;return n}))}const T=e=>{let{files:n,nameDuplicates:l,onChangeFileName:a,onRemoveFile:t}=e;return(0,F.jsxs)(N,{children:[(0,F.jsx)(E,{}),(0,F.jsx)(E,{children:"Name"}),(0,F.jsx)(E,{}),n.map(((e,n)=>(0,F.jsxs)(b.Fragment,{children:[(0,F.jsx)(R,{children:(0,F.jsx)($,{children:(0,F.jsx)(g.Ex,{inheritColor:!0})})}),(0,F.jsx)(R,{children:(0,F.jsx)(w,{file:e,position:n,duplicate:-1!==l.indexOf(e.name),onChangeFileName:a})}),(0,F.jsx)(R,{children:(0,F.jsx)(d.pG,{onClick:()=>t(n),children:(0,F.jsx)(g.US,{})})})]},`file-${n}`)))]})},w=e=>{let{file:{name:n,validationResult:l},position:a,duplicate:t,onChangeFileName:i}=e;const r=(0,b.useRef)(null),s=(0,y.YQ)(i,[]);return(0,b.useEffect)((()=>{r.current.value=n}),[n]),(0,F.jsx)(A,{duplicate:t,validationResult:l,children:(0,F.jsx)(u.pd,{ref:r,className:"valid"!==l||t?"invalid":"",onChange:e=>s(a,e.currentTarget.value)})})};function A(e){let{children:n,duplicate:l,validationResult:a}=e;if(l)return(0,F.jsxs)(V,{children:[n,(0,F.jsx)(P,{children:(0,F.jsx)("p",{children:"Duplicate name"})})]});switch(a){case"invalid":return(0,F.jsxs)(V,{children:[n,(0,F.jsxs)(P,{children:[(0,F.jsx)("p",{children:"Invalid characters:"}),(0,F.jsxs)("ul",{children:[(0,F.jsx)("li",{children:"Must start with a letter or number."}),(0,F.jsx)("li",{children:"Must be at least 1 character long and not exceed 64 characters."}),(0,F.jsxs)("li",{children:["May contain the following special characters"," ",(0,F.jsx)("em",{children:"_ - & + . : # ! / \\ ( ) [ ] "})," and white spaces."]})]})]})]});case"name-taken":return(0,F.jsxs)(V,{children:[n,(0,F.jsx)(P,{children:(0,F.jsx)("p",{children:"Name already taken"})})]});default:return(0,F.jsx)(V,{children:n})}}const I=j.Ay.div`display:flex;flex-direction:column;box-sizing:border-box;border-radius:4px;border:3px dashed ${o.lt.components.button};height:380px;transition:border-color 0.2s ease;&:hover{border-color:${o.lt.components.buttonHover};}`,D=j.Ay.div`display:flex;align-items:center;justify-content:center;height:100%;font-size:1.167rem;color:${o.lt.components.buttonText};`,N=j.Ay.div`display:grid;grid-template-columns:auto 3fr auto;`,R=j.Ay.div`display:flex;align-items:center;padding:4px 4px;border-top:1px solid ${o.lt.base.separator};color:${o.lt.base.text};`,E=(0,j.Ay)(R)`border-top:0 none;font-weight:500;`,$=j.Ay.div`display:flex;align-items:center;justify-content:center;width:24px;height:24px;& > .icon{fill:${o.lt.base.text};}`,V=j.Ay.div`display:flex;flex:1 1 auto;flex-direction:column;border-radius:4px;background-color:${o.lt.states.failure};`,P=j.Ay.div`flex:1 1 auto;padding:4px 6px;color:${o.lt.states.failureText};`;var M=l(16491),O=l(65429),_=l(48089),G=l(38039),H=l(50704),z=l(82053),B=l(25277),Q=l(48738),U=l.n(Q);function Y(e){let{apiId:n,apiKind:l,onChange:t}=e;const i=(0,a.jk6)(),r={display:"flex",flexDirection:"column"};return(0,F.jsxs)(F.Fragment,{children:[!i&&(0,F.jsx)(M.A,{sx:{marginRight:"5px",marginLeft:"5px"},children:(0,F.jsx)(O.A,{severity:"warning",children:"You're currently in your Personal Account. To create an API Service or Gateway, signing in to an Organizational Account is required!"})}),(0,F.jsxs)(M.A,{sx:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",columnGap:"16px",width:750},children:[(0,F.jsx)(M.A,{sx:r,children:(0,F.jsx)(W,{icon:(0,F.jsx)(g.mb,{}),iconColorSelector:e=>{let{apiIcon:n}=e;return n},title:"API Collection",description:"Configure the Connection Settings once and reuse it across your Documents.",additionsTitle:"Includes:",additions:["Shared Connection Settings"],active:l===x.xi2.Collection,onClick:()=>{t(n,x.xi2.Collection)}})}),(0,F.jsx)(M.A,{sx:r,children:(0,F.jsx)(W,{icon:(0,F.jsx)(g.jc,{}),iconColorSelector:e=>{let{apiIcon:n}=e;return n},title:"API Service",description:"Ease your mind and never put any client out of business anymore.",additionsTitle:"Everything in API Collection, plus:",additions:["Monitoring Cockpit","CI/CD Pipeline Integration","Schema Artifact Management"],tag:"New",active:l===x.xi2.Service,disabled:!i,onClick:()=>{t(n,x.xi2.Service)}})}),(0,F.jsx)(M.A,{sx:r,children:(0,F.jsx)(W,{icon:(0,F.jsx)(g.Sv,{}),iconColorSelector:e=>{let{apiIcon:n}=e;return n},title:"API Gateway",description:"Unify all your subgraphs and get deep insight into your entire API.",additionsTitle:"Everything in API Collection, plus:",additions:["Monitoring Cockpit","CI/CD Pipeline Integration","Schema Artifact Management"],tag:"New",active:l===x.xi2.Gateway,disabled:!i,onClick:()=>{t(n,x.xi2.Gateway)}})})]})]})}function W(e){let{icon:n,iconColorSelector:l,title:a,description:t,additionsTitle:i,additions:r,tag:s,active:o,disabled:d,onClick:c}=e;const u=(0,b.useCallback)((()=>{d||c()}),[d,c]);return(0,F.jsx)(_.A,{variant:"outlined",className:U()({active:o,disabled:d}),sx:{display:"flex",flex:"1 1 auto",flexDirection:"column",padding:0},children:(0,F.jsxs)(G.A,{disableRipple:!0,disableTouchRipple:!0,sx:{display:"flex",flex:"1 1 auto",flexDirection:"column",justifyContent:"flex-start",alignItems:"stretch"},onClick:u,children:[(0,F.jsxs)(H.A,{sx:{height:"170px",maxHeight:"170px"},children:[(0,F.jsx)(X,{$colorSelector:l,children:n}),(0,F.jsxs)(z.A,{gutterBottom:!0,variant:"h4",sx:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",fontSize:16},children:[a,s&&(0,F.jsx)(B.A,{color:"primary",size:"small",label:s})]}),(0,F.jsx)(z.A,{variant:"body2",color:"text.secondary",sx:{fontSize:"1.083rem"},children:t})]}),(0,F.jsxs)(H.A,{className:"secondary",sx:{justifySelf:"stretch"},children:[(0,F.jsx)(z.A,{gutterBottom:!0,variant:"h5",sx:{display:"flex",flexDirection:"row",fontSize:"1rem",fontWeight:600,marginBottom:"12px"},children:i}),(null===r||void 0===r?void 0:r.length)&&(0,F.jsx)(z.A,{variant:"body2",color:"text.secondary",component:"div",children:r.map(((e,n)=>(0,F.jsxs)(M.A,{sx:{display:"flex",flexDirection:"row",alignItems:"center",marginBottom:"8px",fontSize:"1.083rem"},children:[(0,F.jsx)(q,{children:(0,F.jsx)(g.RE,{})}),e]},n)))})]})]})})}const q=j.Ay.div`display:flex;align-items:center;justify-content:center;margin-right:8px;& > .icon{fill:${o.lt.states.success};}`,X=j.Ay.div`display:flex;align-items:center;justify-content:center;margin-top:8px;margin-bottom:24px;& > .icon{width:48px;height:48px;${e=>{let{$colorSelector:n}=e;return n?j.AH`fill:${n({...o.lt.icons,...o.lt.states})};`:j.AH`fill:${o.lt.base.itemText};`}}}`,Z="change-api-type";function J(){const e=(0,a.l$t)(Z),[n,l]=(0,b.useState)(),t=(0,a.xVp)(),i=(0,a.SK_)(),r=(0,b.useCallback)((async()=>{e&&(await(0,x.$G0)(e.item.context.apiId,n),i(e.item.context.apiId,{apiKind:n}),t(),e.hide(!0))}),[e,n,t,i]),s=(0,b.useCallback)((()=>{null===e||void 0===e||e.hide()}),[e]),o=(0,b.useCallback)(((n,a)=>{(null===e||void 0===e?void 0:e.item.context.apiId)===n&&l(a)}),[e]);return(0,b.useEffect)((()=>{l(null===e||void 0===e?void 0:e.item.context.apiKind)}),[e,l]),(0,F.jsx)(c.lG,{id:Z,title:"Change API Type",size:"large",showConfirm:!0,confirmText:"Apply",showCancel:!0,cancelText:"Cancel",onConfirm:r,onCancel:s,onClose:s,children:(null===e||void 0===e?void 0:e.item.context)&&(0,F.jsx)(Y,{apiId:e.item.context.apiId,apiKind:n,onChange:o})})}function ee(){return(0,c.Gk)(Z)}var ne=l(35853);const le=j.Ay.a.attrs({rel:"nofollow noopener noreferrer",target:"_blank"})`display:inline-flex;align-items:center;color:${o.lt.components.linkText};text-decoration:none;transition:color 0.2s ease;& > .icon{margin-left:4px;fill:${o.lt.components.linkText};transition:fill 0.2s ease;}&:hover{color:${o.lt.components.linkHoverText};& > .icon{fill:${o.lt.components.linkHoverText};}}`;j.Ay.div`display:flex;flex:0 0 auto;padding:8px;gap:8px;background-color:${o.lt.states.surprise};color:${o.lt.states.surpriseText};`,j.Ay.div`flex:1 1 auto;line-height:1.5rem;`,j.Ay.div`display:flex;flex:0 0 auto;align-items:center;`,j.Ay.div`display:flex;align-items:center;justify-content:center;width:100%;height:100%;background-color:transparent;cursor:pointer;.icon{fill:${o.lt.states.surpriseText};}&:hover{background-color:transparent;border:0 none;.icon{fill:${o.lt.states.surpriseText};}}`,(0,j.Ay)(le)`display:unset;align-items:unset;color:${o.lt.states.surpriseText};text-decoration:underline;.icon{fill:${o.lt.states.surpriseText};}&:hover{color:${o.lt.states.surpriseText};text-decoration:none;.icon{fill:${o.lt.states.surpriseText};}}`;var ae=l(31841),te=l(6730),ie=l(53065),re=l(29564);const se="create-account";function oe(){const e=(0,a.l$t)(se),n=(0,a.nV8)(),l=(0,a.EMV)(),t=(0,a.qTo)(),i=(0,b.useCallback)((()=>{(0,re.si)(),n(),null===e||void 0===e||e.hide()}),[e,n]),r=(0,b.useCallback)((()=>{e&&t&&((0,re.Ny)(),l(t),e.hide())}),[e,t,l]);return(0,F.jsx)(c.lG,{id:se,title:"Create account",size:"small",showConfirm:!0,confirmText:"Ok",showCancel:!0,cancelText:"Cancel",onConfirm:r,onCancel:i,onClose:i,children:(0,F.jsx)(c.CQ,{children:'You have successfully signed in for the first time, Click "Ok" to create an account.'})})}const de=j.Ay.div`display:flex;flex:0 0 ${e=>{let{$size:n}=e;return n>1?32:16}}px;align-items:center;justify-content:center;margin:0 2px;border-radius:4px;border:1px solid ${o.lt.components.keybindingBorder};width:${e=>{let{$size:n}=e;return n>1?32:16}}px;height:16px;background-color:${o.lt.components.keybinding};color:${o.lt.components.keybindingText};font-size:${e=>{let{$size:n}=e;return n>1?.667:1}}rem;font-weight:${e=>{let{$size:n}=e;return n>1?600:"initial"}};text-transform:${e=>{let{$size:n}=e;return n>1?"uppercase":"initial"}};`,ce="keyboard-shortcuts";function ue(){const e=(0,a.l$t)(ce),n=(0,b.useCallback)((()=>{null===e||void 0===e||e.hide()}),[e]);return(0,F.jsx)(c.lG,{id:ce,title:"Keyboard Shortcuts",size:"medium",showCancel:!0,cancelText:"Close",onCancel:n,onClose:n,children:(0,F.jsx)(me,{children:(0,F.jsx)(pe,{children:Object.values(a.bab).map(((e,n)=>(0,F.jsxs)(he,{children:[(0,F.jsx)(ke,{children:e.description}),(0,F.jsxs)(ye,{children:[(0,F.jsx)(fe,{children:e.scope}),(0,F.jsx)(ge,{shortcut:e})]})]},`shortcut-${n}`)))})})})}function ge(e){let{shortcut:n}=e;return(0,F.jsx)(xe,{children:n.toSymbols().map(((e,n)=>(0,F.jsx)(de,{$size:e.length,children:e},`shortcut-${n}`)))})}const me=j.Ay.div`display:flex;flex:0 0 auto;flex-direction:column;margin-bottom:8px;`,pe=j.Ay.ul`display:flex;flex:0 0 auto;flex-direction:column;align-items:center;justify-content:center;width:100%;`,he=j.Ay.li`display:flex;flex:0 0 auto;flex-direction:row;align-items:center;width:100%;padding:6px 0;color:${o.lt.base.text};`,ye=j.Ay.div`flex:0 0 40%;display:flex;align-items:center;justify-content:space-between;`,fe=j.Ay.div`display:flex;flex:1 0 auto;align-items:center;margin:0 2px;`,xe=j.Ay.div`display:flex;flex:0 0 fit-content;align-items:center;`,ke=j.Ay.div`display:flex;flex:1 1 auto;align-items:center;margin:0 2px;`;var be=l(45098);const ve="manage-organizations";function je(){const e=(0,a.l$t)(ve),n=(0,a.te1)(),l=(0,a.got)(),t=(0,a.Rt1)(),i=(0,b.useCallback)((()=>{null===e||void 0===e||e.hide()}),[e]);return(0,F.jsxs)(c.lG,{id:ve,title:"Manage Organizations",size:"medium",showCancel:!0,cancelText:"Close",onCancel:i,onClose:i,children:[(0,F.jsx)(u.YJ,{children:n.map((e=>(0,F.jsxs)(u.JU,{children:[(0,F.jsxs)(u.PF,{children:[e.organization.displayName," (",e.email,")"]}),(0,F.jsxs)(d.e2,{children:[(0,F.jsx)(be.A,{disabled:null===e.manageTenantUrl,onClick:()=>{var n;(n=e.manageTenantUrl)&&window.open(null!==n&&void 0!==n?n:"","_blank")},children:"Manage"}),(0,F.jsx)(be.A,{onClick:()=>t(e),children:"Sign Out"})]})]},e.id)))}),(0,F.jsx)(u.YJ,{children:(0,F.jsxs)(u.JU,{children:[(0,F.jsx)(u.PF,{children:"Add or create organizations"}),(0,F.jsx)(be.A,{onClick:()=>l(),children:"Add Organization"})]})})]})}var Fe,Se,Ce,Ke,Le=l(7796);function Te(){return Te=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var l=arguments[n];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},Te.apply(null,arguments)}function we(e,n){let{title:l,titleId:a,...t}=e;return b.createElement("svg",Te({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 160 100",ref:n,"aria-labelledby":a},t),l?b.createElement("title",{id:a},l):null,Fe||(Fe=b.createElement("g",{"data-section-name":"sidebar"},b.createElement("rect",{className:"background",width:15,height:97}),b.createElement("circle",{className:"nav-item-active-text",cx:7,cy:10,r:4}),b.createElement("circle",{className:"nav-item-text",cx:7,cy:23,r:4}),b.createElement("circle",{className:"nav-item-text",cx:7,cy:36,r:4}))),Se||(Se=b.createElement("g",{"data-section-name":"aside"},b.createElement("g",{"data-section-name":"aside-header"},b.createElement("rect",{className:"background",x:14,y:0,width:38,height:9}),b.createElement("rect",{className:"heading",x:18,y:2,width:26,height:4,rx:1})),b.createElement("g",{"data-section-name":"aside-control"},b.createElement("rect",{className:"background",x:14,y:8,width:38,height:9}),b.createElement("rect",{className:"form-field",x:18,y:10,width:29,height:4,rx:1})),b.createElement("g",{"data-section-name":"aside-content"},b.createElement("rect",{className:"background",x:14,y:16,width:38,height:81}),b.createElement("rect",{className:"node-folder-icon",x:18,y:20,width:3,height:3,rx:1}),b.createElement("rect",{className:"node-folder-text",x:24,y:20,width:16,height:3,rx:1}),b.createElement("rect",{className:"node-folder-icon",x:18,y:27,width:3,height:3,rx:1}),b.createElement("rect",{className:"node-folder-active-text",x:24,y:27,width:20,height:3,rx:1}),b.createElement("rect",{className:"node-document-icon",x:24,y:34,width:3,height:3,rx:1}),b.createElement("rect",{className:"node-document-text",x:30,y:34,width:10,height:3,rx:1}),b.createElement("rect",{className:"node-document-icon",x:24,y:41,width:3,height:3,rx:1}),b.createElement("rect",{className:"node-document-text",x:30,y:41,width:14,height:3,rx:1}),b.createElement("rect",{className:"node-folder-icon",x:18,y:48,width:3,height:3,rx:1}),b.createElement("rect",{className:"node-folder-text",x:24,y:48,width:14,height:3,rx:1})))),Ce||(Ce=b.createElement("g",{"data-section-name":"main"},b.createElement("g",{"data-section-name":"main-header"},b.createElement("rect",{className:"background",x:51,y:0,width:109,height:9}),b.createElement("rect",{className:"nav-item-active",x:51,y:0,width:22,height:9}),b.createElement("rect",{className:"nav-item",x:73,y:0,width:28,height:9}),b.createElement("rect",{className:"nav-item",x:101,y:0,width:20,height:9})),b.createElement("g",{"data-section-name":"main-control"},b.createElement("rect",{className:"background",x:51,y:8,width:109,height:9}),b.createElement("rect",{className:"nav-item-active-text",x:56,y:10,width:22,height:4,rx:1}),b.createElement("rect",{className:"nav-item-text",x:82,y:10,width:14,height:4,rx:1}),b.createElement("rect",{className:"nav-item-text",x:138,y:10,width:18,height:4,rx:1})),b.createElement("g",{"data-section-name":"main-content"},b.createElement("rect",{className:"background",x:51,y:16,width:109,height:81}),b.createElement("rect",{className:"heading",x:56,y:18,width:20,height:4,rx:1}),b.createElement("rect",{className:"primary-button",x:102,y:18,width:10,height:4,rx:1}),b.createElement("rect",{className:"heading",x:116,y:18,width:20,height:4,rx:1}),b.createElement("g",null,b.createElement("rect",{className:"keyword-token",x:56,y:26,width:14,height:3,rx:1}),b.createElement("rect",{className:"key-token",x:74,y:26,width:16,height:3,rx:1}),b.createElement("rect",{className:"delimiter-token",x:94,y:26,width:3,height:3,rx:1}),b.createElement("rect",{className:"key-token",x:60,y:33,width:12,height:3,rx:1}),b.createElement("rect",{className:"delimiter-token",x:76,y:33,width:3,height:3,rx:1}),b.createElement("rect",{className:"string-token",x:84,y:33,width:10,height:3,rx:1}),b.createElement("rect",{className:"delimiter-token",x:98,y:33,width:3,height:3,rx:1}),b.createElement("rect",{className:"key-token",x:64,y:40,width:16,height:3,rx:1}),b.createElement("rect",{className:"number-token",x:84,y:40,width:8,height:3,rx:1}),b.createElement("rect",{className:"delimiter-token",x:60,y:47,width:4,height:3,rx:1}),b.createElement("rect",{className:"delimiter-token",x:56,y:54,width:3,height:3,rx:1})),b.createElement("g",null,b.createElement("rect",{className:"delimiter-token",x:116,y:26,width:3,height:3,rx:1}),b.createElement("rect",{className:"delimiter-token",x:142,y:33,width:8,height:3,rx:1}),b.createElement("rect",{className:"string-token",x:120,y:33,width:18,height:3,rx:1}),b.createElement("rect",{className:"string-token",x:120,y:40,width:10,height:3,rx:1}),b.createElement("rect",{className:"delimiter-token",x:134,y:40,width:3,height:3,rx:1}),b.createElement("rect",{className:"string-token",x:142,y:40,width:8,height:3,rx:1}),b.createElement("rect",{className:"string-token",x:120,y:47,width:8,height:3,rx:1}),b.createElement("rect",{className:"number-token",x:132,y:47,width:8,height:3,rx:1}),b.createElement("rect",{className:"string-token",x:120,y:54,width:12,height:3,rx:1}),b.createElement("rect",{className:"string-token",x:136,y:54,width:8,height:3,rx:1}),b.createElement("rect",{className:"delimiter-token",x:116,y:61,width:3,height:3,rx:1}))))),Ke||(Ke=b.createElement("g",{"data-section-name":"footer"},b.createElement("rect",{className:"background",x:0,y:96,width:160,height:4}))))}const Ae=b.forwardRef(we),Ie=(l.p,"settings");function De(){const e=(0,a.l$t)(Ie),[n,l]=(0,b.useState)(0),{Tabs:t,Tab:i,MoreTabs:r}=(0,y.NS)(),s=(0,b.useCallback)(((e,n)=>{l(n)}),[l]),o=(0,b.useCallback)((()=>{null===e||void 0===e||e.hide()}),[e]);return(0,b.useEffect)((()=>()=>l(0)),[e,l]),(0,F.jsx)(c.lG,{id:Ie,title:"Settings",size:"medium",tabsContent:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(t,{value:n,"aria-label":"Settings Sections",onChange:s,children:[(0,F.jsx)(i,{label:"Themes",value:0}),(0,F.jsx)(i,{label:"Preferences",value:1})]}),(0,F.jsx)(r,{})]}),showCancel:!0,cancelText:"Close",onCancel:o,onClose:o,children:(0,F.jsx)(Ne,{activeTab:n})})}function Ne(e){let{activeTab:n}=e;switch(n){case 0:return(0,F.jsx)(Re,{});case 1:return(0,F.jsx)(Ee,{});case 2:return(0,F.jsx)($e,{})}}function Re(){const e=(0,a.EN5)(),n=(0,a.KyO)(),l=(0,a.jYy)(),t=(0,b.useCallback)(((e,a)=>{n.usePreferredOsAppearance?l(a?{...n,darkThemeName:e.name}:{...n,lightThemeName:e.name}):l({...n,themeName:e.name})}),[n,l]),i=(0,b.useCallback)((e=>{l({...n,usePreferredOsAppearance:e})}),[l,n]);return(0,F.jsxs)(F.Fragment,{children:[!e&&(0,F.jsx)(O.A,{severity:"warning",children:"Sign in to change settings."}),!1,(0,F.jsxs)(c.Sd,{children:["Choose how ",f.C3," looks to you. Select a single theme, or sync with your system and automatically switch between day and night themes."]}),(0,F.jsx)(u.YJ,{children:(0,F.jsxs)(u.JU,{children:[(0,F.jsxs)(u.PF,{children:["Sync with your system",(0,F.jsx)(u.fo,{children:(0,F.jsx)(ie.A,{disableInteractive:!0,title:`${f.C3} will match day and night themes with your system if enabled or use a single selected theme.`,placement:"top-start",children:(0,F.jsx)(g.mo,{})})})]}),(0,F.jsx)(Le.l,{checked:n.usePreferredOsAppearance,disabled:!e,offText:"No",onText:"Yes",onChange:i})]})}),o.kB.map((l=>{let{name:a,themes:i}=l;return(0,F.jsxs)(_e,{children:[(0,F.jsxs)(Ge,{children:[(0,F.jsxs)(ze,{children:[a," Themes"]}),(0,F.jsx)(He,{})]}),(0,F.jsx)(Be,{children:i.map((l=>(0,F.jsx)(Ve,{disabled:!e,theme:l,themeSettings:n,onActivateTheme:t},l.name)))})]},a)}))]})}function Ee(){var e;const n=(0,a.EN5)(),l=(0,a.gc2)(),t=(0,a.zBx)(),i=(0,b.useCallback)((e=>{t("defaultSchemaReferenceViewId",e.target.value)}),[t]),r=(0,b.useCallback)((e=>{t("disableShowConnectionSettingsForNewDocument",!!e||void 0)}),[t]),s=(0,b.useCallback)((e=>{t("hideOperationCompanion",!!e||void 0)}),[t]);return(0,F.jsxs)(F.Fragment,{children:[!n&&(0,F.jsx)(O.A,{severity:"warning",children:"Sign in to opt-in for Preview Features."}),(0,F.jsx)(c.CQ,{children:"Document Preferences"}),(0,F.jsx)(c.Sd,{children:"Define your Preferences for a Document Tab that is freshly opened."}),(0,F.jsxs)(u.YJ,{children:[(0,F.jsx)(u.JU,{htmlFor:"schema-reference-view",children:"Default Schema Reference View"}),(0,F.jsxs)(u.l6,{id:"schema-reference-view",value:null!==(e=l.defaultSchemaReferenceViewId)&&void 0!==e?e:"default",onChange:i,children:[(0,F.jsx)("option",{value:"default",children:"Type View"}),(0,F.jsx)("option",{value:"column",children:"Column View"})]})]}),(0,F.jsx)(u.YJ,{children:(0,F.jsxs)(u.JU,{children:[(0,F.jsx)(u.PF,{children:"Disable show Connection Settings for new Documents"}),(0,F.jsx)(Le.l,{checked:!!l.disableShowConnectionSettingsForNewDocument,disabled:!n,offText:"No",onText:"Yes",onChange:r})]})}),(0,F.jsx)(u.YJ,{children:(0,F.jsxs)(u.JU,{children:[(0,F.jsx)(u.PF,{children:"Hide the Operation Sidebar by default"}),(0,F.jsx)(Le.l,{checked:!!l.hideOperationCompanion,disabled:!n,offText:"No",onText:"Yes",onChange:s})]})})]})}function $e(){const e=(0,a.EN5)(),n=(0,a.I89)(),l=(0,a.haH)(),t=(0,a.BAQ)(),i=(0,a.ysS)(),r=(0,a.GkE)(),s=(0,b.useCallback)((e=>{e?t(f.x6):("registry-explorer"===n&&r("document-explorer",!1),i(f.x6))}),[n,r,t,i]);return(0,F.jsxs)(F.Fragment,{children:[!e&&(0,F.jsx)(O.A,{severity:"warning",children:"Sign in to opt-in for Preview Features."}),(0,F.jsx)(u.YJ,{children:(0,F.jsxs)(u.JU,{children:[(0,F.jsx)(u.PF,{children:"Enable Schema Registry"}),(0,F.jsx)(Le.l,{checked:l.includes(f.x6),disabled:!e,offText:"No",onText:"Yes",onChange:s})]})})]})}function Ve(e){let{disabled:n,theme:l,themeSettings:a,onActivateTheme:t}=e;const i=[Pe(a,l.name)?"active":void 0,n?"disabled":void 0].filter((e=>!(null===e||void 0===e||!e.length))).join(" "),r=(0,b.useCallback)((()=>{t(l)}),[l,t]),s=(0,b.useCallback)((e=>{e.stopPropagation(),t(l,!0)}),[l,t]),o=(0,b.useCallback)((e=>{e.stopPropagation(),t(l,!1)}),[l,t]);return(0,F.jsx)(Oe,{children:(0,F.jsx)(ie.A,{disableInteractive:!0,title:l.displayName,placement:"bottom",children:(0,F.jsxs)(We,{className:i,$usePreferredOsTheme:a.usePreferredOsAppearance,onClick:n?void 0:r,children:[a.usePreferredOsAppearance&&(0,F.jsxs)(F.Fragment,{children:[l.name===a.lightThemeName&&(0,F.jsx)(Qe,{$activeMode:"light",className:"appearance-badge",children:(0,F.jsx)(g.LP,{})}),l.name===a.darkThemeName&&(0,F.jsx)(Qe,{$activeMode:"dark",className:"appearance-badge",children:(0,F.jsx)(g.vm,{})}),!n&&(0,F.jsxs)(Ue,{className:"appearance-choice",children:[(0,F.jsx)(Ye,{$activeMode:"light",className:Me(a,l.name,"light")?"active":"",onClick:o,children:(0,F.jsx)(g.LP,{})}),(0,F.jsx)(Ye,{$activeMode:"dark",className:Me(a,l.name,"dark")?"active":"",onClick:s,children:(0,F.jsx)(g.vm,{})})]})]}),(0,F.jsx)(Ae,{"data-theme":l.name,className:"theme-thumbnail"})]})})})}function Pe(e,n){let{usePreferredOsAppearance:l,darkThemeName:a,lightThemeName:t,themeName:i}=e;return l?a===n||t===n:i===n}function Me(e,n,l){let{usePreferredOsAppearance:a,darkThemeName:t,lightThemeName:i}=e;return!!a&&("dark"===l?t===n:i===n)}const Oe=j.Ay.div`padding:10px;`,_e=j.Ay.div`margin-bottom:6px;`,Ge=j.Ay.h2`display:flex;align-items:center;margin-bottom:4px;font-weight:500;`,He=j.Ay.div`flex:1 1 auto;height:1px;margin-left:12px;background-color:${o.lt.base.separator};`,ze=j.Ay.div`flex:0 0 auto;`,Be=j.Ay.div`display:grid;grid-template-columns:1fr 1fr 1fr 1fr;justify-items:center;justify-content:center;`,Qe=j.Ay.div`position:absolute;z-index:2;top:0;width:16px;height:16px;padding:4px;background-color:${o.lt.states.surprise};transition:background-color 0.2s ease;${e=>{let{$activeMode:n}=e;return"dark"===n?j.AH`right:0;border-radius:0 4px 0 4px;`:j.AH`left:0;border-radius:4px 0 4px 0;`}} & > .icon{fill:${o.lt.states.surpriseText};}`,Ue=j.Ay.div`position:absolute;z-index:3;display:flex;align-items:center;flex-wrap:nowrap;justify-content:space-evenly;box-sizing:content-box;border-radius:4px;width:96px;height:60px;opacity:0;transition:opacity 0.2s ease;&:hover{opacity:1;}`,Ye=j.Ay.div`display:flex;flex-grow:1;align-items:center;justify-content:center;box-sizing:border-box;height:100%;background-color:${o.lt.states.surpriseText};cursor:pointer;transition:background-color 0.2s ease,opacity 0.2s ease;${e=>{let{$activeMode:n}=e;return"dark"===n?j.AH`border-radius:0 4px 4px 0;`:j.AH`border-radius:4px 0 0 4px;`}} & > .icon{width:24px;height:24px;fill:${o.lt.states.none};}&:hover{& > .icon{fill:${o.lt.states.surprise};}}&.active,&.active:hover{background-color:${o.lt.states.surprise};& > .icon{fill:${o.lt.states.surpriseText};}}`,We=j.Ay.div`position:relative;z-index:1;border-radius:4px;width:96px;height:60px;padding:4px;cursor:pointer;transition:background-color 0.2s ease,transform 0.2s ease;background-color:${o.lt.states.none};&:hover{transform:scale(1.03);}&.active{background-color:${o.lt.states.surprise};}&.disabled{opacity:0.5;}&.active:hover{${e=>{let{$usePreferredOsTheme:n}=e;return n&&j.AH`background-color:${o.lt.states.surprise};.appearance-badge{display:none;}`}}}& > svg{position:absolute;display:block;border-radius:4px;width:96px;height:60px;.background{fill:${o.lt.base.background};}.heading{fill:${o.lt.base.heading};}.primary-button{fill:${o.lt.components.buttonPrimary};}.form-field{fill:${o.lt.components.field};}.nav-item{fill:${o.lt.base.tab};}.nav-item-text{fill:${o.lt.base.tabText};}.nav-item-active{fill:${o.lt.base.tabActive};}.nav-item-active-text{fill:${o.lt.base.tabActiveText};}.node-document-icon{fill:${o.lt.icons.documentIcon};}.node-document-text{fill:${o.lt.base.itemText};}.node-folder-icon{fill:${o.lt.icons.folderIcon};}.node-folder-text{fill:${o.lt.base.itemText};}.node-folder-active-text{fill:${o.lt.base.itemActiveText};}.comment-token{fill:${o.lt.editor.commentToken};}.delimiter-token{fill:${o.lt.editor.delimiterToken};}.key-token{fill:${o.lt.editor.keyToken};}.keyword-token{fill:${o.lt.editor.keywordToken};}.number-token{fill:${o.lt.editor.numberToken};}.string-token{fill:${o.lt.editor.stringToken};}}`,qe="sign-out-warning";function Xe(){const e=(0,a.l$t)(qe),n=(0,a.QoG)(),l=(0,b.useCallback)((()=>{null===e||void 0===e||e.hide()}),[e]),t=(0,b.useCallback)((()=>{e&&(e.hide(),n())}),[e,n]);return(0,F.jsxs)(c.lG,{id:qe,title:"Sign Out",showConfirm:!0,confirmText:"Sign Out",showCancel:!0,cancelText:"Cancel",onConfirm:t,onCancel:l,onClose:l,children:[(0,F.jsx)(c.CQ,{children:"Do you really want to sign out?"}),(0,F.jsx)(c.Sd,{children:"Unsaved changes will be lost if you don't save and synchronize them."})]})}var Ze=l(25770);const Je="version";function en(){const e=(0,a.l$t)(Je),n=(0,s.Z)(),l=(0,b.useCallback)((()=>{null===e||void 0===e||e.hide()}),[e]);return(0,F.jsx)(c.lG,{id:Je,title:f.C3,size:"small",showCancel:!0,cancelText:"Close",onCancel:l,onClose:l,children:(0,F.jsx)(Ze.B,{items:[{key:"version",name:"Version",description:f.hl},{key:"type",name:"Type",description:f.xY},{key:"db-version",name:"DB Version",description:n},{key:"company",name:"Company",description:(0,F.jsxs)(le,{href:f.yr,children:[f.yr," ",(0,F.jsx)(g.pT,{})]})},{key:"copyright",name:"Copyright",description:(0,F.jsxs)(F.Fragment,{children:["\xa9 ",(new Date).getFullYear()," ",f.Sx]})},{key:"license",name:"License",description:(0,F.jsxs)(le,{href:f.kC,children:[f.aq," ",(0,F.jsx)(g.pT,{})]})}]})})}function nn(){return(0,F.jsxs)(te.VK,{children:[(0,F.jsx)(on,{}),(0,F.jsx)(un,{}),(0,F.jsx)(dn,{}),(0,F.jsx)(mn,{}),(0,F.jsx)(sn,{}),(0,F.jsx)(pn,{}),(0,F.jsx)(ln,{}),(0,F.jsx)(cn,{}),(0,F.jsx)(rn,{}),(0,F.jsx)(gn,{})]})}function ln(){const e=(0,a.aI4)();return e?(0,F.jsx)(kn,{icon:e.icon,spinIcon:e.spinIcon,tooltip:e.tooltip,children:e.body}):null}const an="No Environment";function tn(){var e;const n=(0,a.Vpv)(),l=(0,a.anM)(),t=(0,a.sw4)(),{Menu:i,MenuItem:r,closeMenu:s,toggleMenu:o,status$:d}=(0,y.b)(),c=(0,y.CH)(),u=(0,b.useCallback)((e=>{l(e),s()}),[l,s]);if((0,b.useEffect)((()=>d.subscribe(c)),[d,c]),!t.length)return null;const m=null!==(e=null===n||void 0===n?void 0:n.name)&&void 0!==e?e:an;return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(yn,{icon:(0,F.jsx)(g.bw,{inheritColor:!0}),tooltip:`Environment: ${m}`,onClick:o,children:m}),(0,F.jsxs)(i,{transformOrigin:{vertical:"bottom",horizontal:"center"},anchorOrigin:{vertical:"top",horizontal:"center"},children:[(0,F.jsx)(r,{disabled:!n,onClick:()=>u(null),children:an},"none"),t.map((e=>(0,F.jsx)(r,{disabled:(null===n||void 0===n?void 0:n.id)===e.id,onClick:()=>u(e.id),children:e.name},e.id)))]})]})}function rn(){const e=(0,c.Gk)(ce);return(0,a.wkm)(a.bab.openKeyboardShortcuts,e),(0,b.useEffect)((()=>{var n;return null===(n=window.messageChannel)||void 0===n?void 0:n.onShowKeyboardShortcuts(e)}),[e]),(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(yn,{icon:(0,F.jsx)(g.le,{}),tooltip:(0,a.WIA)(a.bab.openKeyboardShortcuts,"Keyboard Shortcuts"),onClick:e}),(0,F.jsx)(ue,{})]})}function sn(){const e=(0,a.EB2)(),n=(0,a.toZ)(),l=(0,a.Wd6)(),t=(0,a.BQW)(),i=(0,b.useCallback)((()=>{l?n():e()}),[l,e,n]);return(0,a.wkm)(a.bab.toggleLog,i),(0,F.jsxs)(yn,{tooltip:(0,a.WIA)(a.bab.toggleLog,"Toggle Log (Collapse/Expand)"),onClick:i,children:[(0,F.jsxs)(fn,{children:[(0,F.jsx)(hn,{$spacingRight:!0,children:(0,F.jsx)(g.ik,{inheritColor:!t.errors})}),t.errors]}),(0,F.jsxs)(fn,{children:[(0,F.jsx)(hn,{$spacingRight:!0,children:(0,F.jsx)(g.mo,{inheritColor:!t.infos})}),t.infos]}),(0,F.jsxs)(fn,{children:[(0,F.jsx)(hn,{$spacingRight:!0,children:(0,F.jsx)(g.id,{inheritColor:!t.warnings})}),t.warnings]})]})}function on(){const e=(0,a.$aT)();return(0,F.jsx)(kn,{icon:e?(0,F.jsx)(g.Fr,{}):(0,F.jsx)(g.vX,{}),tooltip:e?"Connected to Network":"Disconnected from Network",children:e?"Online":"Offline"})}function dn(){var e,n;const{Menu:l,MenuItem:t,closeMenu:i,toggleMenu:r,status$:s}=(0,y.b)(),o=(0,a.te1)(),d=(0,a.qTo)(),c=(0,a.jA5)(),u=(0,a.got)(),m=(0,y.CH)(),p=(0,b.useCallback)((()=>{i(),u()}),[u,i]),h=(0,b.useCallback)((e=>{i(),c(e)}),[c,i]);if((0,b.useEffect)((()=>s.subscribe(m)),[s,m]),!d)return null;const f=null!==(e=null===d||void 0===d||null===(n=d.organization)||void 0===n?void 0:n.displayName)&&void 0!==e?e:"Personal";return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(yn,{icon:(0,F.jsx)(g.bE,{}),tooltip:s.value()?"":`Organization: ${f}`,onClick:r,children:f}),(0,F.jsxs)(l,{transformOrigin:{vertical:"bottom",horizontal:"center"},anchorOrigin:{vertical:"top",horizontal:"center"},children:[o.map((e=>(0,F.jsx)(t,{disabled:d.id===e.id,onClick:()=>h(e),children:e.organization.displayName},e.id))),(0,F.jsx)(t,{onClick:p,children:"Add Organization"})]})]})}function cn(){const e=(0,a.IEc)();return e?(0,F.jsx)(kn,{icon:e.icon,spinIcon:e.spinIcon,tooltip:e.tooltip,children:e.body}):null}function un(){const e=(0,a.wrT)();return e?(0,F.jsx)(kn,{icon:(0,F.jsx)(g.JM,{}),tooltip:`Signed in as: ${e}`,children:e}):null}function gn(){const e=(0,c.Gk)(Je);return(0,b.useEffect)((()=>{var n;return null===(n=window.messageChannel)||void 0===n?void 0:n.onShowVersionInfo(e)}),[e]),(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(yn,{icon:(0,F.jsx)(g.NT,{}),tooltip:"Version Info",onClick:e}),(0,F.jsx)(en,{})]})}function mn(){const e=(0,a.VrO)(),n=(0,a.OFq)(),l=(0,a.CH0)(),t=(0,a.$aT)(),{Menu:i,MenuItem:r,closeMenu:s,toggleMenu:o,status$:d}=(0,y.b)(),c=(0,y.CH)(),u=(0,a.Gje)(),m=(0,a.xVp)(),p=(null===e||void 0===e?void 0:e.tenant)===f.El,h=(0,b.useCallback)((e=>{n(e),s()}),[n,s]);return(0,b.useEffect)((()=>d.subscribe(c)),[d,c]),e?(0,F.jsxs)(F.Fragment,{children:[p?(0,F.jsx)(kn,{icon:(0,F.jsx)(g.nQ,{}),tooltip:`Workspace: ${e.name}`,children:e.name}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(yn,{icon:(0,F.jsx)(g.nQ,{}),tooltip:`Workspace: ${e.name}`,onClick:o,children:e.name}),(0,F.jsx)(i,{transformOrigin:{vertical:"bottom",horizontal:"center"},anchorOrigin:{vertical:"top",horizontal:"center"},children:l.map((n=>(0,F.jsx)(r,{disabled:e.id===n.id,onClick:()=>h(n.id),children:n.name},n.id)))})]}),(0,F.jsx)(tn,{}),u?(0,F.jsx)(kn,{icon:(0,F.jsx)(g.Fj,{}),spinIcon:!0,tooltip:"Synchronizing Workspace...",children:"Synchronize"}):(0,F.jsx)(yn,{disabled:!t,icon:(0,F.jsx)(g.Fj,{}),tooltip:"Synchronize Workspace",onClick:m,children:"Synchronize"})]}):null}const pn=j.Ay.div`flex:auto;`,hn=j.Ay.div`display:flex;flex:0 0 14px;width:14px;height:14px;align-items:center;justify-content:center;margin-right:${e=>{let{$spacingRight:n}=e;return n?"4px":0}};${e=>{let{$spin:n}=e;return n&&j.AH`> .icon{${ae.g$}}`}}`;function yn(e){let{children:n,icon:l,tooltip:a,tooltipPlacement:t,disabled:i,...r}=e;return(0,F.jsx)(ie.A,{title:i?"":a,placement:t,disableInteractive:!0,children:(0,F.jsxs)(xn,{disabled:i,...r,children:[l&&(0,F.jsx)(hn,{$spacingRight:!!n,children:l}),n]})})}const fn=j.Ay.div`display:flex;flex:0 0 auto;flex-direction:row;align-items:center;margin:0 2px;height:23px;padding:0 4px;color:${o.lt.base.text};${hn} > .icon{fill:${o.lt.base.text};}`,xn=j.Ay.button`display:flex;flex:0 0 auto;flex-direction:row;align-items:center;margin:0 2px;height:23px;padding:0 4px;color:${o.lt.components.buttonText};background-color:${o.lt.components.button};transition:background-color 0.2s ease,opacity 0.2s ease;&:disabled{opacity:0.5;&:hover{color:${o.lt.components.buttonText};background-color:${o.lt.components.button};${hn} > .icon{fill:${o.lt.components.buttonText};}}}&:hover{color:${o.lt.components.buttonHoverText};background-color:${o.lt.components.buttonHover};${hn} > .icon{fill:${o.lt.components.buttonHoverText};}}${hn} > .icon{fill:${o.lt.components.buttonText};}${fn}{margin:0;margin-right:6px;padding:0;&:last-of-type{margin-right:0;}}`;function kn(e){let{children:n,icon:l,spinIcon:a,tooltip:t,tooltipPlacement:i}=e;return(0,F.jsx)(ie.A,{disableInteractive:!0,title:t||"",placement:i,children:(0,F.jsxs)(fn,{children:[l&&(0,F.jsx)(hn,{$spacingRight:!!n,$spin:a,children:l}),n]})})}var bn=l(40821);l(36022);function vn(e){let n=e;for(;n;){if(n.metadata.kind===x.mv2)return n.metadata.id;n=n.parent}}function jn(e,n){var l;return e?n?n.expandable?n:null!==(l=n.parent)&&void 0!==l?l:e:e:void 0}function Fn(e){return!!vn(e)}function Sn(e){return e.triggerCreate({name:"",checkable:!1,expandable:!0,renamable:!0,metadata:{id:(0,k.aP)(),kind:x.mv2}})}function Cn(e){return e.triggerCreate({name:"",checkable:!1,expandable:!1,renamable:!0,metadata:{id:(0,k.lm)(),kind:"node"===e.kind&&Fn(e)?x.wAF:x.UjY}})}function Kn(e){return e.triggerCreate({name:"",checkable:!1,expandable:!0,renamable:!0,metadata:{id:(0,k.sf)(),kind:x.GPt}})}var Ln=l(67752),Tn=l(17669),wn=l(28881),An=l(75174),In=l(23328),Dn=l(49165),Nn=l(44582),Rn=l(77740);var En=l(18655);const $n="delete-node";function Vn(){var e,n,l,t;const i=(0,a.l$t)($n),r=(0,a.KUv)(),s=(0,a.$aT)(),[o,d]=(0,b.useState)(!1),[u,g]=(0,b.useState)(!0),m=null===i||void 0===i||null===(e=i.item.context)||void 0===e?void 0:e.node,p=null===m||void 0===m||null===(n=m.metadata)||void 0===n?void 0:n.id,h=null===m||void 0===m||null===(l=m.metadata)||void 0===l?void 0:l.kind,y=null!==(t=null===i||void 0===i?void 0:i.hide)&&void 0!==t?t:k.lQ,f=(0,a.Qas)(),v=function(){const e=(0,a.bkB)();return(0,b.useCallback)((async(n,l)=>{let a;function t(){e(n,void 0,!1),a()}const{dismiss:i}=(0,re.E)((0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Dn.rV,{children:l}),(0,F.jsx)(Dn.FV,{children:(0,F.jsx)(be.A,{color:"primary",onClick:t,children:"Details"})})]}));a=i}),[e])}(),j=(0,b.useCallback)((()=>{o||y()}),[o,y]),S=(0,b.useCallback)((async()=>{if(!o&&u&&m&&p&&h){var e;if(d(!0),h===x.mv2)try{const e=await In.$Y.deleteApi(p);if("api-deletion-failed"===e.kind){const n=e.reasons.at(0);if(n&&"%other"!==n)switch(n){case"ApiDeletionFailedError":(0,re.E)((0,F.jsxs)(F.Fragment,{children:["Something went wrong while performing the deletion of the API ",(0,F.jsx)("em",{children:m.name}),". Please try again. In case this error is persistent contact the Support."]}));break;case"ApiNotFoundError":(0,re.E)((0,F.jsxs)(F.Fragment,{children:["The API ",(0,F.jsx)("em",{children:m.name})," doesn't exist anymore. Please trigger a manual workspace synchronization. In case this API is persistent contact the Support."]}));break;case"UnauthorizedOperation":(0,re.E)((0,F.jsxs)(F.Fragment,{children:["You're not authorized to delete the API"," ",(0,F.jsx)("em",{children:m.name}),". One reason could be that your access token has been expired. In this case please renew your token or sign-out and sign-in again."]}))}else(0,re.E)((0,F.jsxs)(F.Fragment,{children:["An unexpected Error has occurred while deleting the API"," ",(0,F.jsx)("em",{children:m.name}),". Please contact the Support."]}));return void y()}}catch(n){let e=await f(p,En.$b.error,`An unexpected Error has occurred while deleting the API ${m.name}.`,function(e){return e instanceof Rn.zX?{name:e.name,message:e.message,stack:e.stack,cause:e.cause,kind:e.kind,details:e.details}:e instanceof Nn.Yv?{name:e.name,message:e.message,stack:e.stack,cause:e.cause,fromVersion:e.fromVersion,toVersion:e.toVersion,migrationLog:e.migrationLog}:e instanceof Error?{name:e.name,message:e.message,stack:e.stack,cause:e.cause}:e}(n));return v(e,(0,F.jsxs)(F.Fragment,{children:["An unexpected Error has occurred while deleting the API"," ",(0,F.jsx)("em",{children:m.name}),"."]})),void y()}else if(h===x.GPt&&!Fn(m)&&await(0,x.__R)(p))return(0,re.Vb)(m.name),void y();await r(p),(null!==(e=m.parent)&&void 0!==e?e:m.model).remove(m),y()}}),[p,m,h,o,u,f,r,y,d,v]),C=(0,b.useCallback)((e=>{g(e)}),[g]);return(0,b.useEffect)((()=>()=>{d(!1),g(!0)}),[i,d,g]),(0,F.jsx)(c.lG,{id:$n,title:h?Mn(h):"",closeOnEnter:!1,disableConfirm:o||!u,showConfirm:!(h===x.mv2&&!s),confirmText:"Yes",disableCancel:o,showCancel:!0,cancelText:s?"No":"Cancel",onConfirm:S,onCancel:j,onClose:j,children:null!==m&&void 0!==m&&m.name&&h?(0,F.jsx)(On,{name:m.name,kind:h,isOnline:s,onNameChange:C,onDone:S}):void 0})}function Pn(){return(0,c.Gk)($n)}function Mn(e){switch(e){case x.mv2:return"Delete API";case x.wAF:case x.UjY:return"Delete Document";case x.Er3:return"Delete File";case x.GPt:return"Delete Folder"}}const On=(0,b.memo)((function(e){let{name:n,kind:l,isOnline:a,onNameChange:t,onDone:i}=e;switch(l){case x.mv2:return a?(0,F.jsx)(_n,{name:n,onNameChange:t,onDone:i}):(0,F.jsxs)(c.CQ,{children:["Cannot delete the API ",(0,F.jsx)("em",{children:n})," while being offline."]});case x.wAF:case x.UjY:return(0,F.jsxs)(c.CQ,{children:["Do you really want to delete the Document ",(0,F.jsx)("em",{children:n}),"?"]});case x.Er3:return(0,F.jsxs)(c.CQ,{children:["Do you really want to delete the File ",(0,F.jsx)("em",{children:n}),"?"]});case x.GPt:return(0,F.jsxs)(c.CQ,{children:["Do you really want to delete the Folder ",(0,F.jsx)("em",{children:n})," and all it's content?"]})}}));function _n(e){let{name:n,onNameChange:l,onDone:a}=e;const t=(0,b.useRef)(null),i=(0,b.useRef)(!0),r=(0,b.useCallback)((()=>{l(Gn(i,t.current,n))}),[n,l]),s=(0,b.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),Gn(i,t.current,n)&&a()}),[n,a]);return(0,b.useEffect)(r,[r]),(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(c.CQ,{children:["Do you really want to delete the API ",(0,F.jsx)("em",{children:n})," and all it's content?"]}),(0,F.jsxs)(c.Sd,{children:["To confirm the irreversible action enter the API name"," ",(0,F.jsx)("strong",{children:n}),"."]}),(0,F.jsx)(u.lV,{onSubmit:s,children:(0,F.jsxs)(u.YJ,{children:[(0,F.jsx)(u.JU,{htmlFor:"name",children:"API Name"}),(0,F.jsx)(u.pd,{ref:t,id:"name",type:"text",placeholder:"Enter the API Name Here",autoFocus:!0,onChange:r})]})})]})}function Gn(e,n,l){return!!n&&(e.current=n.value.trim()===l,n.className=(0,k.ZX)(n.className,"invalid")+(e.current?"":" invalid"),e.current)}class Hn{constructor(e,n){this.workspaceId=e,this.expandedFolderIds$=n}async getNodes(e,n,l){if(this.workspaceId){return function(e,n,l){return e.map((e=>({name:e.name,expanded:n.includes(e.id)||l,expandable:(0,x.uMH)(e.kind),renamable:!0,metadata:e.kind===x.mv2?{id:e.id,kind:e.kind,apiKind:e.apiKind}:{id:e.id,kind:e.kind}})))}(await(0,x.bYZ)(this.workspaceId,null===n||void 0===n?void 0:n.metadata.id,l?e=>l({name:e}):void 0),this.expandedFolderIds$.value(),!!l)}return[]}comparer(e,n){var l,a;const t=(0,x.uMH)(null===(l=e.metadata)||void 0===l?void 0:l.kind),i=(0,x.uMH)(null===(a=n.metadata)||void 0===a?void 0:a.kind);return t===i?e.name.localeCompare(n.name,"en",{sensitivity:"base"}):t&&!i?-1:1}async validate(e,n){var l;const a=p.wA.getSegments(e);if(0===a.length)return p.nA.fail("An empty path is invalid.");const t=n?n.metadata.id:null!==(l=this.workspaceId)&&void 0!==l?l:"",i=a[a.length-1],r=await(0,h.AF)(i,t);return"invalid"===r?((0,re.Ap)(i),p.nA.fail("Invalid name.")):"name-taken"===r?((0,re.Ad)(i),p.nA.fail(`An item with the name "${i}" already exists.`)):p.nA.success()}}const zn="replace-node";function Bn(){const e=(0,a.l$t)(zn),n=(0,a.oj4)(),l=(0,b.useCallback)((()=>{null===e||void 0===e||e.hide()}),[e]),t=(0,b.useCallback)((async()=>{if(e){const{itemId:l,itemName:a,itemKind:t,fromFolderId:i,toFolderId:r}=e.item.context;await n(l,a,t,i,r),e.hide()}}),[e,n]);return(0,F.jsxs)(c.lG,{id:zn,title:"Replace document or folder",showConfirm:!0,confirmText:"Replace",showCancel:!0,cancelText:"Cancel",onConfirm:t,onCancel:l,onClose:l,children:[(0,F.jsxs)(c.CQ,{children:["A file or folder with the name"," ",(0,F.jsx)("em",{children:null===e||void 0===e?void 0:e.item.context.itemName})," already exists in the destination folder. Do you want to replace it?"]}),(0,F.jsx)(c.Sd,{children:"This action is irreversible!"})]})}const Qn="move-node";function Un(){var e,n;const l=(0,a.WAs)(),t=(0,a.l$t)(Qn),[i,r]=(0,b.useState)(void 0),s=(0,a.oj4)(),o=(0,c.Gk)(zn),d=(0,b.useCallback)((()=>{null===t||void 0===t||t.hide(),r("")}),[t,r]),u=(0,b.useCallback)((async()=>{if(t){const{itemId:e,itemName:n,itemKind:a,fromFolderId:d}=t.item.context;await(0,x.hU2)(null!==i&&void 0!==i?i:l,n)?o({itemId:e,itemName:n,itemKind:a,fromFolderId:d,toFolderId:i}):await s(e,n,a,d,i),t.hide(),r(void 0)}}),[t,i,l,s,o,r]);return(0,F.jsx)(c.lG,{id:Qn,title:t?Wn(t.item.context.itemKind):"",showConfirm:!0,confirmText:"Move",showCancel:!0,cancelText:"Cancel",onConfirm:u,onCancel:d,onClose:d,children:(0,F.jsx)(qn,{id:null!==(e=null===t||void 0===t?void 0:t.item.context.itemId)&&void 0!==e?e:"",name:null!==(n=null===t||void 0===t?void 0:t.item.context.itemName)&&void 0!==n?n:"",workspaceId:l,fromFolderId:null===t||void 0===t?void 0:t.item.context.fromFolderId,toFolderId:i,preselectedFolderId:null===t||void 0===t?void 0:t.item.context.toFolderId,onFolderChange:r,onDone:u})})}function Yn(){return(0,c.Gk)(Qn)}function Wn(e){switch(e){case x.mv2:return"Move API";case x.wAF:case x.UjY:return"Move Document";case x.Er3:return"Move File";case x.GPt:return"Move Folder"}}const qn=(0,b.memo)((function(e){let{id:n,name:l,workspaceId:a,fromFolderId:t,preselectedFolderId:i,toFolderId:r,onFolderChange:s,onDone:o}=e;const[d,g]=(0,b.useState)([]),m=(0,b.useCallback)((e=>{s(e.currentTarget.value||void 0)}),[s]),p=(0,b.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),o()}),[o]);return(0,b.useEffect)((()=>{(0,x.SrO)(a).then((e=>{var l,a,r,o;i?s(null!==(l=null===(a=e.find((e=>e.id===i)))||void 0===a?void 0:a.id)&&void 0!==l?l:null===(r=e[0])||void 0===r?void 0:r.id):s(t||null===(o=e[0])||void 0===o?void 0:o.id);g(e.filter((e=>e.id!==n&&e.id!==t)).map((n=>({id:n.id,name:n.path.map((n=>{var l;return null===(l=e.find((e=>e.id===n)))||void 0===l?void 0:l.name})).join("/")}))))}))}),[t,n,a,s,g,i]),(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(c.CQ,{children:["Choose a new folder for ",(0,F.jsx)("em",{children:l})]}),(0,F.jsx)(u.lV,{onSubmit:p,children:(0,F.jsxs)(u.YJ,{children:[(0,F.jsx)(u.JU,{htmlFor:"folder",children:"Folder"}),(0,F.jsxs)(u.l6,{id:"folder",onChange:m,value:r,children:[t&&(0,F.jsx)("option",{value:"",children:"/"}),d.sort(((e,n)=>e.name.localeCompare(n.name))).map((e=>{let{id:n,name:l}=e;return(0,F.jsx)("option",{value:n,children:l},n)}))]})]})})]})}));function Xn(){return(0,b.useCallback)((e=>{const n=jn(e.model,e);n&&Sn(n)}),[])}function Zn(){return(0,b.useCallback)((e=>{const n=jn(e.model,e);n&&Cn(n)}),[])}function Jn(){return(0,b.useCallback)((e=>{const n=jn(e.model,e);n&&Kn(n)}),[])}function el(){const e=(0,a.ZPF)(),n=(0,a.WAs)(),l=(0,ne.J)();return(0,b.useCallback)((async a=>{var t;const i=a.metadata.kind;if((0,x.qRz)(i)||(0,x.CEw)(i))return;const r=null!==(t=vn(a))&&void 0!==t?t:a.metadata.id,s=await(0,x.OfI)(r);s&&l({workspaceId:n,apiOrDocumentId:r,httpConnection:s.http,subscriptionEndpointDisabled:!1,unauthorized:"signed-in"!==e})}),[e,n,l])}function nl(){const e=(0,a.WAs)(),n=K();return(0,b.useCallback)((l=>{const a=(0,p.Th)(l)?jn(l.model,l):l;var t;e&&n({workspaceId:e,parentId:a&&(0,p.Th)(a)?null===(t=a.metadata)||void 0===t?void 0:t.id:void 0})}),[e,n])}function ll(){return(0,b.useCallback)((e=>{e.triggerRename()}),[])}function al(){const e=Yn();return(0,b.useCallback)((n=>{var l,a,t,i;e({itemId:null===(l=n.metadata)||void 0===l?void 0:l.id,itemName:n.name,itemKind:null===(a=n.metadata)||void 0===a?void 0:a.kind,fromFolderId:null===(t=n.parent)||void 0===t||null===(i=t.metadata)||void 0===i?void 0:i.id})}),[e])}function tl(){const e=Pn();return(0,b.useCallback)((n=>{e({node:n})}),[e])}function il(){const{Menu:e,MenuItem:n,MenuSeparator:l,openMenu:t,closeMenu:i}=(0,y.EF)(),r=(0,b.useRef)(),s=(0,b.useCallback)((function(){const t=e=>()=>{r.current&&(e(r.current),i())},s=t(Zn()),o=t(Jn()),d=t(nl()),c=t(el()),u=t(function(){const e=ee();return(0,b.useCallback)((async n=>{const l=n.metadata.kind;if((0,x.Wbb)(l)){const l=n.metadata.id,a=n.metadata.apiKind;e({apiId:l,apiKind:a})}}),[e])}()),g=t(ll()),m=t(al()),p=t(function(){const e=(0,a.jQ3)();return(0,b.useCallback)((n=>{var l;e(null===(l=n.metadata)||void 0===l?void 0:l.id)}),[e])}()),h=t(tl());return(0,F.jsxs)(e,{children:[(0,F.jsx)(n,{onClick:s,children:"New Document"}),(0,F.jsx)(n,{onClick:o,children:"New Folder"}),(0,F.jsx)(l,{}),(0,F.jsx)(n,{onClick:d,children:"Add Files"}),(0,F.jsx)(l,{}),(0,F.jsx)(n,{onClick:c,children:"Connection Settings"}),(0,F.jsx)(n,{onClick:u,children:"Change API Type"}),(0,F.jsx)(l,{}),(0,F.jsx)(n,{onClick:g,children:"Rename"}),(0,F.jsx)(n,{onClick:m,children:"Move to"}),(0,F.jsx)(n,{onClick:p,children:"Duplicate"}),(0,F.jsx)(l,{}),(0,F.jsx)(n,{onClick:h,children:"Delete"})]})}),[e,n,l,i]),o=(0,b.useCallback)(((e,n)=>{r.current=n,t(e)}),[t]);return[s,o]}function rl(){const{Menu:e,MenuItem:n,MenuSeparator:l,openMenu:t,closeMenu:i,status$:r}=(0,y.EF)(),s=(0,b.useRef)(),o=(0,b.useCallback)((function(){const t=(0,y.CH)(),o=!!s.current&&Fn(s.current),d=e=>()=>{s.current&&(i(),e(s.current))},c=d(Zn()),u=d(Jn()),g=d(Xn()),m=d(nl()),p=d(el()),h=d(ll()),f=d(al()),x=d(function(){const e=(0,a.KKx)();return(0,b.useCallback)((n=>{var l;e(null===(l=n.metadata)||void 0===l?void 0:l.id)}),[e])}()),k=d(tl());return(0,b.useEffect)((()=>r.subscribe((e=>{e&&t()}))),[t]),(0,F.jsxs)(e,{children:[(0,F.jsx)(n,{onClick:c,children:"New Document"}),(0,F.jsx)(n,{onClick:u,children:"New Folder"}),!o&&(0,F.jsx)(n,{onClick:g,children:"New API"}),(0,F.jsx)(l,{}),(0,F.jsx)(n,{onClick:m,children:"Add Files"}),(0,F.jsx)(l,{}),(0,F.jsx)(n,{onClick:p,children:"Connection Settings"}),(0,F.jsx)(n,{onClick:h,children:"Rename"}),(0,F.jsx)(n,{onClick:f,children:"Move to"}),(0,F.jsx)(n,{onClick:x,children:"Duplicate"}),(0,F.jsx)(l,{}),(0,F.jsx)(n,{onClick:k,children:"Delete"})]})}),[e,n,l,i,r]),d=(0,b.useCallback)(((e,n)=>{s.current=n,t(e)}),[t]);return[o,d]}const sl="document";function ol(){const[e,n]=function(){const{Menu:e,MenuItem:n,MenuSeparator:l,openMenu:a,closeMenu:t}=(0,y.EF)(),i=(0,b.useRef)(),r=(0,b.useCallback)((function(){const a=e=>()=>{i.current&&(t(),e(i.current))},r=a(Cn),s=a(Kn),o=a(Sn),d=a(nl());return(0,F.jsxs)(e,{children:[(0,F.jsx)(n,{onClick:r,children:"New Document"}),(0,F.jsx)(n,{onClick:s,children:"New Folder"}),(0,F.jsx)(n,{onClick:o,children:"New API"}),(0,F.jsx)(l,{}),(0,F.jsx)(n,{onClick:d,children:"Add Files"})]})}),[e,n,l,t]),s=(0,b.useCallback)(((e,n)=>{i.current=n,a(e)}),[a]);return[r,s]}(),[l,t]=il(),[i,r]=function(){const{Menu:e,MenuItem:n,MenuSeparator:l,openMenu:a,closeMenu:t,status$:i}=(0,y.EF)(),r=(0,b.useRef)(),s=(0,b.useCallback)((function(){const a=(0,y.CH)(),s=!!r.current&&Fn(r.current),o=e=>()=>{r.current&&(t(),e(r.current))},d=o(Zn()),c=o(Jn()),u=o(Xn()),g=o(nl()),m=o(ll()),p=o(al()),h=o(tl());return(0,b.useEffect)((()=>i.subscribe((e=>{e&&a()}))),[a]),(0,F.jsxs)(e,{children:[(0,F.jsx)(n,{onClick:d,children:"New Document"}),(0,F.jsx)(n,{onClick:c,children:"New Folder"}),!s&&(0,F.jsx)(n,{onClick:u,children:"New API"}),(0,F.jsx)(l,{}),(0,F.jsx)(n,{onClick:g,children:"Add Files"}),(0,F.jsx)(l,{}),(0,F.jsx)(n,{onClick:m,children:"Rename"}),(0,F.jsx)(n,{onClick:p,children:"Move to"}),(0,F.jsx)(l,{}),(0,F.jsx)(n,{onClick:h,children:"Delete"})]})}),[e,n,l,t,i]),o=(0,b.useCallback)(((e,n)=>{r.current=n,a(e)}),[a]);return[s,o]}(),[s,o]=function(){const{Menu:e,MenuItem:n,MenuSeparator:l,openMenu:a,closeMenu:t,status$:i}=(0,y.EF)(),r=(0,b.useRef)(),s=(0,b.useCallback)((function(){const a=(0,y.CH)(),s=!!r.current&&Fn(r.current),o=e=>()=>{r.current&&(t(),e(r.current))},d=o(Zn()),c=o(Jn()),u=o(Xn()),g=o(nl()),m=o(ll()),p=o(al()),h=o(tl());return(0,b.useEffect)((()=>i.subscribe((e=>{e&&a()}))),[a]),(0,F.jsxs)(e,{children:[(0,F.jsx)(n,{onClick:d,children:"New Document"}),(0,F.jsx)(n,{onClick:c,children:"New Folder"}),!s&&(0,F.jsx)(n,{onClick:u,children:"New API"}),(0,F.jsx)(l,{}),(0,F.jsx)(n,{onClick:g,children:"Add Files"}),(0,F.jsx)(l,{}),(0,F.jsx)(n,{onClick:m,children:"Rename"}),(0,F.jsx)(n,{onClick:p,children:"Move to"}),(0,F.jsx)(l,{}),(0,F.jsx)(n,{onClick:h,children:"Delete"})]})}),[e,n,l,t,i]),o=(0,b.useCallback)(((e,n)=>{r.current=n,a(e)}),[a]);return[s,o]}(),[c,u]=rl(),m=(0,a.ZPF)(),h=(0,a.EN5)(),k=(0,a.WAs)(),v=(0,a.U4r)(),j=(0,a.u3C)(),S=(0,a.RnN)(sl),C=(0,b.useRef)([]),L=(0,b.useRef)(null),T=(0,b.useRef)(),w=(0,b.useRef)(S.value().toLowerCase()),A=(0,a.jnq)(),I=(0,a.Sik)(),D=(0,a.JuZ)(),N=(0,a.KRx)(),R=(0,y.Ku)(),E=(0,a.PNK)(),$=(0,a.k6u)(),V=(0,a.Pan)(),P=(0,a.zRk)(),M=(0,a.DlI)(),O=(0,a.bY3)(),_=(0,a.UD1)(),G=(0,a.A7p)(),H=(0,a.vwA)(sl),z=Pn(),B=function(){const e=(0,a.WAs)(),n=Yn(),l=K(),t=(0,b.useCallback)(((a,t)=>{var i,r,s,o,d,c;a instanceof FileList?e&&l({workspaceId:e,parentId:null===t||void 0===t||null===(i=t.metadata)||void 0===i?void 0:i.id,files:Array.from(a)}):n({itemId:null===(r=a.metadata)||void 0===r?void 0:r.id,itemName:a.name,itemKind:null===(s=a.metadata)||void 0===s?void 0:s.kind,fromFolderId:null===(o=a.parent)||void 0===o||null===(d=o.metadata)||void 0===d?void 0:d.id,toFolderId:null===t||void 0===t||null===(c=t.metadata)||void 0===c?void 0:c.id})}),[e,n,l]);return(0,y.XR)(gl,t)}();function Q(){var e;return jn(T.current,null===(e=T.current)||void 0===e?void 0:e.selectedNodes[0])}async function U(e,n){if(n){const l=e.find((e=>{var l;return(null===(l=e.metadata)||void 0===l?void 0:l.id)===n}));l?await async function(e){e.selected||((0,p.dL)(e.model),e.selected=!0),await e.ensureVisible()}(l):(0,p.dL)(e)}else(0,p.dL)(e)}function Y(e){let{name:n}=e;return n.toLowerCase().includes(w.current)}const W=(0,b.useCallback)((e=>z({node:e})),[z]),q=(0,b.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),T.current&&n(e,T.current)}),[n]),X=(0,b.useCallback)((e=>{var n;e.preventDefault(),e.stopPropagation(),null!==(n=T.current)&&void 0!==n&&n.selectedNodes.length&&A(null)}),[A]),Z=(0,b.useCallback)(((e,n)=>{if(e.preventDefault(),e.stopPropagation(),!n.metadata)throw new Error("Metadata should be there.");switch(n.metadata.kind){case x.mv2:t(e,n);break;case x.wAF:case x.UjY:u(e,n);break;case x.Er3:r(e,n);break;case x.GPt:o(e,n)}}),[t,u,r,o]),J=(0,y.YQ)(((e,n,l)=>{switch(n.metadata.kind){case x.mv2:case x.GPt:n.expanded||n.toggleExpanded(),l?V(n.metadata.id):P(n.metadata.id);break;case x.wAF:case x.UjY:l?V(n.metadata.id,{isHistory:!1}).then(R):P(n.metadata.id,{isHistory:!1});case x.Er3:}A(n.metadata.id)}),[A,V,P],f.i4),ee=(0,b.useCallback)(((e,n)=>{e.preventDefault(),e.stopPropagation(),J(e,n,!1)}),[J]),ne=(0,b.useCallback)(((e,n)=>{e.preventDefault(),e.stopPropagation(),J(e,n,!0)}),[J]),le=e=>{let n;const l=function(){let l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v.value();n&&cancelAnimationFrame(n),U(e,l),n=requestAnimationFrame((()=>{if(L.current){var e;const n=function(e,n){const l=jn(e,n);if(l&&(0,p.Th)(l))return l}(T.current,null===(e=T.current)||void 0===e?void 0:e.selectedNodes[0]);L.current.disabled=!h||!!n&&Fn(n)}}))};l();const a=v.subscribe(l),t=e.subscribeFor((async e=>{for(const n of e)if(n.node)switch(n.kind){case"collapsed":ae(n.node);break;case"created":await ie(n.node);break;case"expanded":re(n.node);break;case"renamed":se(n.node);break;case"reloaded":l()}}),"collapsed","created","expanded","renamed","reloaded");function i(n){n.length?(w.current=n.toLowerCase(),e.setFilter(Y)):(w.current="",e.resetFilter())}i(S.value()),C.current.push(S.subscribe(i)),C.current.push(a),C.current.push(t),T.current=e},ae=e=>{D(e.metadata.id)},ie=async e=>{var n;const l=e.metadata,a=null===(n=e.parent)||void 0===n?void 0:n.metadata.id;switch(l.kind){case x.mv2:l.exists?(l.closeTabAfterCreation?O(l.id,e.name,a):_(l.id,e.name,a),delete l.exists,delete l.closeTabAfterCreation):E(l.id,e.name,a);break;case x.wAF:case x.UjY:l.exists?(l.closeTabAfterCreation?O(l.id,e.name,a):_(l.id,e.name,a),delete l.exists,delete l.closeTabAfterCreation):$(l.id,e.name,a,vn(e));break;case x.GPt:await I(l.id,e.name,a)}},re=e=>{N(e.metadata.id)},se=async e=>{switch(e.metadata.kind){case x.mv2:case x.wAF:case x.UjY:await M(e.metadata.id,e.name);break;case x.Er3:await(0,x.u0D)(e.metadata.id,e.name);break;case x.GPt:{const n=await(0,x.u0D)(e.metadata.id,e.name);n&&(D(e.metadata.id),N(n.id),e.metadata={...e.metadata,id:n.id})}}};(0,b.useEffect)((()=>{const e=C.current;return()=>{let n;for(;n=e.pop();)n();T.current=void 0}}),[]),(0,a.JZZ)(),(0,y._6)(T);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(te.tW,{children:[(0,F.jsx)(te.w,{children:"Documents"}),(0,F.jsx)(te.jB,{}),(0,F.jsxs)(d.e2,{children:[(0,F.jsx)(d.pG,{disabled:!h,tooltip:"New Document",onClick:async()=>{const e=Q();e&&await Cn(e)},children:(0,F.jsx)(g.hM,{inheritColor:!0})}),(0,F.jsx)(d.pG,{disabled:!h,tooltip:"New Folder",onClick:async()=>{const e=Q();e&&await Kn(e)},children:(0,F.jsx)(g.WE,{inheritColor:!0})}),(0,F.jsx)(d.pG,{innerRef:L,disabled:!h,tooltip:"New API",onClick:async()=>{const e=Q();!e||(0,wn.Th)(e)&&Fn(e)||await Sn(e)},children:(0,F.jsx)(g.q1,{inheritColor:!0})})]})]}),(0,F.jsx)(te.BJ,{children:(0,F.jsx)(Ln.U,{searchTerm:S.value(),onSearchTermChange:H})}),(()=>{if("sign-in"===m)return(0,F.jsx)(Tn.Mf,{});if(h){const n=An.aN.create(new Hn(k,j));return(0,F.jsxs)(te.X2,{children:[(0,F.jsx)(p.PH,{id:f.xb,itemHeight:p._Y,model:n,emptyContent:(0,F.jsx)(ml,{}),dragAndDropContext:B,onClick:X,onContextMenu:q,onDelete:W,onInitialized:le,children:e=>(0,F.jsx)(p.nF,{id:e.id,depth:e.depth,name:e.name,path:e.path,checkable:!1,checked:!1,expandable:e.expandable,expanded:e.expanded,draggable:!0,dragAndDropContext:B,node:e,onClick:ee,onDoubleClick:ne,onContextMenu:Z,renderIcon:dl})}),(0,F.jsx)(l,{}),(0,F.jsx)(c,{}),(0,F.jsx)(i,{}),(0,F.jsx)(s,{}),(0,F.jsx)(e,{}),(0,F.jsx)(Vn,{}),(0,F.jsx)(Un,{}),(0,F.jsx)(Bn,{})]})}return(0,F.jsx)(Tn.HY,{title:"Sign In for Documents",icon:(0,F.jsx)(g.FX,{}),children:(0,F.jsx)(be.A,{color:"primary",onClick:G,children:"Sign In"})})})()]})}function dl(e){var n,l;const a=e.metadata.kind;switch(a){case x.mv2:return(0,F.jsx)(p.Zh,{children:e.expanded?ul(null===(n=e.metadata)||void 0===n?void 0:n.apiKind):"creation"===e.editMode?(0,F.jsx)(g.q1,{}):cl(null===(l=e.metadata)||void 0===l?void 0:l.apiKind)});case x.wAF:case x.UjY:return(0,F.jsx)(p.Zh,{children:"creation"===e.editMode?(0,F.jsx)(g.hM,{}):(0,F.jsx)(g.py,{})});case x.Er3:return(0,F.jsx)(p.Zh,{children:(0,F.jsx)(g.Ex,{})});case x.GPt:return(0,F.jsx)(p.Zh,{children:e.expanded?(0,F.jsx)(g.bh,{}):"creation"===e.editMode?(0,F.jsx)(g.WE,{}):(0,F.jsx)(g.sj,{})});default:return(0,k.dr)(a)}}function cl(e){switch(e){case x.xi2.Gateway:return(0,F.jsx)(g.qf,{});case x.xi2.Service:return(0,F.jsx)(g.dx,{});default:return(0,F.jsx)(g.Ig,{})}}function ul(e){switch(e){case x.xi2.Gateway:return(0,F.jsx)(g.ZH,{});case x.xi2.Service:return(0,F.jsx)(g.kE,{});default:return(0,F.jsx)(g.h$,{})}}function gl(e,n){return e instanceof Array?function(e,n){var l,a,t;if(!e.some((e=>"Files"===e)))return null;if(void 0===n)return n;if((0,x.uMH)(null===(l=n.metadata)||void 0===l?void 0:l.kind))return n;if((0,x.uMH)(null===(a=n.parent)||void 0===a||null===(t=a.metadata)||void 0===t?void 0:t.kind))return n.parent;return null}(e,n):function(e,n){var l,a,t,i;if(void 0===n)return e.parent?n:null;if(e.id===n.id)return null;if((null===(l=e.parent)||void 0===l?void 0:l.id)===n.id)return null;if((0,x.Wbb)(null===(a=e.metadata)||void 0===a?void 0:a.kind)&&Fn(n))return null;if(null!==(t=n.metadata)&&void 0!==t&&t.kind&&(0,x.uMH)(null===(i=n.metadata)||void 0===i?void 0:i.kind)){let l=null===n||void 0===n?void 0:n.parent;for(;l;){if(l.id===e.id)return null;l=l.parent}return n}if(e.parent!==n)return gl(e,n.parent);return null}(e,n)}function ml(){return(0,a.Gje)()?(0,F.jsx)(Tn.HY,{title:"Synchronizing",icon:(0,F.jsx)(g.Fj,{}),spinIcon:!0}):(0,F.jsx)(Tn.HY,{title:"No Items",icon:(0,F.jsx)(g.FX,{})})}const pl="delete-environment";function hl(){const e=(0,a.l$t)(pl),n=(0,a.YH0)(),l=(0,b.useCallback)((()=>{null===e||void 0===e||e.hide()}),[e]),t=(0,b.useCallback)((async()=>{if(e){var l;const{node:a}=e.item.context,t=a.metadata.id;await n(t),(null!==(l=a.parent)&&void 0!==l?l:a.model).remove(a),e.hide()}}),[e,n]);return(0,F.jsx)(c.lG,{id:pl,title:"Delete Environment",showConfirm:!0,confirmText:"Yes",showCancel:!0,cancelText:"No",onConfirm:t,onCancel:l,onClose:l,children:e&&(0,F.jsxs)(c.CQ,{children:["Do you really want to delete the Environment"," ",(0,F.jsx)("em",{children:e.item.context.node.name}),"?"]})})}function yl(){return(0,c.Gk)(pl)}class fl{constructor(e){this.workspaceId=e}async getNodes(e,n,l){if(this.workspaceId){return function(e){return e.map((e=>{let{id:n,name:l,kind:a}=e;return{name:l,expandable:!1,renamable:!0,metadata:{id:n,kind:a}}}))}(await(0,x.akl)(this.workspaceId,l?e=>l({name:e}):void 0))}return[]}comparer(e,n){return e.name.localeCompare(n.name,"en",{sensitivity:"base"})}async validate(e){var n;const l=p.wA.getSegments(e);if(0===l.length)return p.nA.fail("An empty path is invalid.");const a=l[l.length-1],t=await(0,h.gN)(a,null!==(n=this.workspaceId)&&void 0!==n?n:"");return"invalid"===t?((0,re.Ap)(a),p.nA.fail("Invalid name.")):"name-taken"===t?((0,re.Ad)(a),p.nA.fail(`An item with the name "${l[1]}" already exists.`)):p.nA.success()}}function xl(e){return e.triggerCreate({name:"",checkable:!1,expandable:!1,renamable:!0,metadata:{id:(0,k.ZN)(),kind:x.Bp3}})}const kl="environment";function bl(){const e=(0,a.EN5)(),n=(0,a.ZPF)(),l=(0,a.WAs)(),t=(0,a.RnN)(kl),i=(0,a.U4r)(),r=(0,b.useRef)([]),s=(0,b.useRef)(t.value().toLowerCase()),o=(0,b.useRef)(),c=(0,a.jnq)(),u=(0,a.Pan)(),m=(0,a.zRk)(),h=(0,a.mJ7)(),x=(0,a.bY3)(),k=(0,a.UD1)(),v=(0,a.rmL)(),j=(0,a.A7p)(),S=(0,a.vwA)(kl),C=yl(),[K,L]=function(){const{Menu:e,MenuItem:n,MenuSeparator:l,openMenu:t,closeMenu:i}=(0,y.EF)(),r=(0,b.useRef)(),s=yl(),o=(0,a.sAz)(),d=(0,a.anM)();return[(0,b.useCallback)((function(){const a=e=>()=>{r.current&&(e(r.current),i())},t=a((e=>{xl(e.model)})),c=a((e=>{var n;null!==(n=e.metadata)&&void 0!==n&&n.id&&d(e.metadata.id)})),u=a((e=>{e.triggerRename()})),g=a((async e=>{var n;null!==(n=e.metadata)&&void 0!==n&&n.id&&await o(e.metadata.id)})),m=a((e=>{s({node:e})}));return(0,F.jsxs)(e,{children:[(0,F.jsx)(n,{onClick:t,children:"New Environment"}),(0,F.jsx)(l,{}),(0,F.jsx)(n,{onClick:c,children:"Activate"}),(0,F.jsx)(n,{onClick:u,children:"Rename"}),(0,F.jsx)(n,{onClick:g,children:"Duplicate"}),(0,F.jsx)(l,{}),(0,F.jsx)(n,{onClick:m,children:"Delete"})]})}),[e,n,l,d,i,o,s]),(0,b.useCallback)(((e,n)=>{r.current=n,t(e)}),[t])]}(),[T,w]=function(){const{Menu:e,MenuItem:n,openMenu:l,closeMenu:a}=(0,y.EF)(),t=(0,b.useRef)(),i=(0,b.useCallback)((function(){const l=(i=xl,()=>{t.current&&(a(),i(t.current))});var i;return(0,F.jsx)(e,{children:(0,F.jsx)(n,{onClick:l,children:"New Environment"})})}),[e,n,a]),r=(0,b.useCallback)(((e,n)=>{t.current=n,l(e)}),[l]);return[i,r]}();const A=(0,b.useCallback)((e=>C({node:e})),[C]),I=(0,y.YQ)(((e,n,l)=>{n.metadata&&(l?u(n.metadata.id):m(n.metadata.id)),c(n.metadata.id)}),[c,u,m],f.i4),D=(0,b.useCallback)(((e,n)=>{e.preventDefault(),e.stopPropagation(),I(e,n,!1)}),[I]),N=(0,b.useCallback)(((e,n)=>{e.preventDefault(),e.stopPropagation(),I(e,n,!0)}),[I]),R=(0,b.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),o.current&&w(e,o.current)}),[w]),E=(0,b.useCallback)(((e,n)=>{if(e.preventDefault(),e.stopPropagation(),!n.metadata)throw new Error("Metadata should be there.");L(e,n)}),[L]),$=e=>{const n=function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.value();!async function(e,n){if(n){const l=e.find((e=>{var l;return(null===(l=e.metadata)||void 0===l?void 0:l.id)===n}));l?await async function(e){e.selected||((0,p.dL)(e.model),e.selected=!0),await e.ensureVisible()}(l):(0,p.dL)(e)}else(0,p.dL)(e)}(e,n)};n();const l=i.subscribe(n),a=e.subscribeFor((async e=>{for(const l of e)switch(l.kind){case"created":await V(l.node);break;case"renamed":P(l.node);break;case"reloaded":n()}}),"collapsed","created","expanded","renamed","reloaded");function d(n){n.length?(s.current=n.toLowerCase(),e.setFilter(M)):(s.current="",e.resetFilter())}d(t.value()),r.current.push(t.subscribe(d)),r.current.push(l),r.current.push(a),o.current=e},V=async e=>{const{metadata:n}=e;n&&(n.exists?(n.closeTabAfterCreation?x(n.id,e.name,null):k(n.id,e.name,null),delete n.exists,delete n.closeTabAfterCreation):await h(n.id,e.name))},P=async e=>{await v(e.metadata.id,e.name)};function M(e){let{name:n}=e;return n.toLowerCase().includes(s.current)}(0,y._6)(o);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(te.tW,{children:[(0,F.jsx)(te.w,{children:"Environments"}),(0,F.jsx)(te.jB,{}),(0,F.jsx)(d.e2,{children:(0,F.jsx)(d.pG,{disabled:!e,tooltip:"New Environment",onClick:async()=>{o.current&&await xl(o.current)},children:(0,F.jsx)(g.lT,{inheritColor:!0})})})]}),(0,F.jsx)(te.BJ,{children:(0,F.jsx)(Ln.U,{searchTerm:t.value(),onSearchTermChange:S})}),(()=>{if("sign-in"===n)return(0,F.jsx)(Tn.Mf,{});if(e){const e=An.aN.create(new fl(l));return(0,F.jsxs)(te.X2,{children:[(0,F.jsx)(p.PH,{id:f.FY,itemHeight:p._Y,model:e,emptyContent:(0,F.jsx)(vl,{}),onContextMenu:R,onDelete:A,onInitialized:$,children:e=>(0,F.jsx)(p.nF,{id:e.id,depth:e.depth,name:e.name,path:e.path,checkable:!1,checked:!1,expandable:!1,expanded:!1,draggable:!0,node:e,onClick:D,onDoubleClick:N,onContextMenu:E,renderIcon:jl})}),(0,F.jsx)(hl,{}),(0,F.jsx)(K,{}),(0,F.jsx)(T,{})]})}return(0,F.jsx)(Tn.HY,{title:"Sign In for Environments",icon:(0,F.jsx)(g.bw,{}),children:(0,F.jsx)(be.A,{color:"primary",onClick:j,children:"Sign In"})})})()]})}function vl(){return(0,a.Gje)()?(0,F.jsx)(Tn.HY,{title:"Synchronizing",icon:(0,F.jsx)(g.Fj,{}),spinIcon:!0}):(0,F.jsx)(Tn.HY,{title:"No Environments",icon:(0,F.jsx)(g.bw,{})})}function jl(e){return(0,F.jsx)(p.Zh,{children:"creation"===e.editMode?(0,F.jsx)(g.lT,{}):(0,F.jsx)(g.bw,{})})}const Fl=j.Ay.div`flex-shrink:0;display:flex;align-items:center;justify-content:center;border:1px solid transparent;width:12px;height:12px;font-size:11px;line-height:11px;font-weight:500;text-align:center;border-radius:2px;&::before{position:absolute;}`,Sl=(0,j.Ay)(Fl)`border:1px solid ${o.lt.icons.queryIcon};color:${o.lt.icons.queryIcon};&::before{content:"Q";}`,Cl=(0,j.Ay)(Fl)`border:1px solid ${o.lt.icons.mutationIcon};color:${o.lt.icons.mutationIcon};&::before{content:"M";}`,Kl=(0,j.Ay)(Fl)`border:1px solid ${o.lt.icons.subscriptionIcon};color:${o.lt.icons.subscriptionIcon};&::before{content:"S";}`;var Ll=l(69529);class Tl{constructor(e,n){this.workspaceId=e,this.expandedFolderNames$=n}async getNodes(e,n,l){if(!this.workspaceId)return[];if(p.wA.isRoot(e)){const e=await(0,x.zeI)(this.workspaceId,l?e=>l({name:e}):void 0),n=this.expandedFolderNames$.value();return e.map((e=>{const a=(0,h.XH)(e);return(0,h.mW)(a,e,n.includes(a)||!!l)}))}if(p.wA.getSegments(e).length>1||!n)return Promise.resolve([]);return(await(0,x.M1G)(this.workspaceId,n.metadata.day,l?e=>l({name:e}):void 0)).map((e=>(0,h.kE)(e)))}comparer(e,n){const l="item"===e.metadata.kind?e.metadata.created:e.metadata.day,a="item"===n.metadata.kind?n.metadata.created:n.metadata.day;return l>a?-1:l<a?1:0}validate(e,n){return Promise.resolve(p.nA.fail("This tree is read-only."))}}const wl="history";function Al(){const e=(0,a.WAs)(),n=(0,a.t9g)(),l=(0,a.WXZ)(),t=(0,a.tpN)(),i=(0,a.RnN)(wl),r=(0,a.ZPF)(),s=(0,a.EN5)(),o=(0,a.U4r)(),c=(0,y.Ku)(),u=(0,a.Pan)(),m=(0,a.zRk)(),h=(0,b.useRef)(i.value().toLowerCase()),x=(0,a.A7p)(),k=(0,b.useRef)([]),v=(0,a.nuc)(),j=(0,a.vwA)(wl);async function S(e,n){if(n){const l=e.find((e=>e.metadata&&e.metadata.id&&e.metadata.id===n));l?(l.selected||((0,p.dL)(e),l.selected=!0),await l.ensureVisible()):(0,p.dL)(e)}else(0,p.dL)(e)}function C(e){let{name:n}=e;return n.toLowerCase().includes(h.current)}const K=(0,y.YQ)(((e,n,l)=>{var a;n.selected||((0,p.dL)(n.model),n.selected=!0),"group"!==(null===(a=n.metadata)||void 0===a?void 0:a.kind)||n.expanded?l?u(n.metadata.id,{isHistory:!0,activeOperation:n.metadata.operationIndex}).then(c):m(n.metadata.id,{isHistory:!0,activeOperation:n.metadata.operationIndex}):n.toggleExpanded()}),[c,u,m],f.i4),L=(0,b.useCallback)(((e,n)=>{e.preventDefault(),e.stopPropagation(),K(e,n,!1)}),[K]),T=(0,b.useCallback)(((e,n)=>{e.preventDefault(),e.stopPropagation(),K(e,n,!0)}),[K]),w=e=>{const n=function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.value();S(e,n)};n();const l=o.subscribe(n),a=e.subscribeFor((async n=>{for(const l of n)switch(l.kind){case"collapsed":await A(l.node);break;case"expanded":I(l.node);break;case"reset-filter":case"set-filter":D(e)}}),"collapsed","expanded","reset-filter","set-filter");function t(n){n.length?(h.current=n.toLowerCase(),e.setFilter(C)):(h.current="",e.resetFilter())}t(i.value()),k.current.push(i.subscribe(t)),k.current.push(l),k.current.push(a)},A=e=>{let{name:n}=e;l(n)},I=e=>{let{name:n}=e;t(n)},D=e=>S(e,o.value());return(0,b.useEffect)((()=>{const e=k.current;return()=>{let n;for(;n=e.pop();)n()}}),[]),(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(te.tW,{children:[(0,F.jsx)(te.w,{children:"History"}),(0,F.jsx)(te.jB,{}),(0,F.jsx)(d.e2,{children:(0,F.jsx)(d.pG,{disabled:!s,tooltip:"Clear History",onClick:async()=>{await n()},children:(0,F.jsx)(g.vu,{})})})]}),(0,F.jsx)(te.BJ,{children:(0,F.jsx)(Ln.U,{searchTerm:i.value(),onSearchTermChange:j})}),(()=>{if("sign-in"===r)return(0,F.jsx)(Tn.Mf,{});if(s){const n=An.aN.create(new Tl(e,v));return(0,F.jsx)(te.X2,{children:(0,F.jsx)(p.PH,{id:f.K6,itemHeight:p._Y,model:n,emptyContent:(0,F.jsx)(Tn.HY,{title:"No History",icon:(0,F.jsx)(g.os,{})}),onInitialized:w,children:e=>(0,F.jsx)(p.nF,{id:e.id,depth:e.depth,name:e.name,path:e.path,checkable:!1,checked:!1,expandable:e.expandable,expanded:e.expanded,node:e,onClick:L,onDoubleClick:T,renderIcon:Il,renderName:Dl})})})}return(0,F.jsx)(Tn.HY,{title:"Sign In for History",icon:(0,F.jsx)(g.os,{}),children:(0,F.jsx)(be.A,{color:"primary",onClick:x,children:"Sign In"})})})()]})}function Il(e){return"group"===e.metadata.kind?(0,F.jsx)(p.Zh,{children:(0,F.jsx)(g.CT,{})}):(0,F.jsx)(p.Zh,{children:e.metadata.operationType===Ll.S5.MUTATION?(0,F.jsx)(Cl,{title:"Mutation"}):e.metadata.operationType===Ll.S5.SUBSCRIPTION?(0,F.jsx)(Kl,{title:"Subscription"}):(0,F.jsx)(Sl,{title:"Query"})})}function Dl(e){return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Rl,{title:e.name,children:e.name}),(0,F.jsx)(El,{title:e.metadata.time,children:e.metadata.time}),"group"===e.metadata.kind?(0,F.jsx)(F.Fragment,{}):Nl(e)]})}function Nl(e){switch(e.metadata.operationStatus){case"cancelled":return(0,F.jsx)(p.Zh,{title:"Operation cancelled",children:(0,F.jsx)(g.tT,{})});case"failed":return(0,F.jsx)(p.Zh,{title:"Operation failed",children:(0,F.jsx)(g.ik,{})});default:return(0,F.jsx)(p.Zh,{title:"Operation succeeded",children:(0,F.jsx)(g.BK,{})})}}const Rl=j.Ay.h3`display:flex;flex:1 1 auto;align-items:center;padding-right:4px;font-weight:normal;text-overflow:ellipsis;white-space:nowrap;`,El=j.Ay.div`display:flex;flex:0 0 auto;align-items:center;padding-right:4px;padding-left:4px;text-overflow:ellipsis;white-space:nowrap;`;function $l(){return(0,F.jsx)(te.iv,{children:(0,F.jsx)(Vl,{})})}function Vl(){const e=(0,a.I89)();switch(e){case"document-explorer":case"registry-explorer":return(0,F.jsx)(ol,{});case"environment-explorer":return(0,F.jsx)(bl,{});case"history-explorer":return(0,F.jsx)(Al,{});default:throw Error(`Cannot find sidebar entry: ${e}`)}}var Pl=l(46639);function Ml(){const e=(0,b.useRef)(null);return(0,b.useEffect)((()=>{const n=e.current;if(n){const e=window.setTimeout((()=>{n.style.opacity="1"}),f.$c);return()=>{window.clearTimeout(e)}}}),[]),(0,F.jsx)(Ol,{ref:e,children:(0,F.jsx)(Pl.A,{})})}const Ol=j.Ay.div`display:flex;flex:1 1 auto;flex-direction:column;align-items:center;justify-content:center;height:100%;opacity:0;transition:opacity 0.2 ease;`;var _l=l(78521);const Gl=(0,b.lazy)((()=>l.e(195).then(l.bind(l,96195))));function Hl(e){let{children:n}=e;const l=(0,a.O5t)(),t=(0,a.EB2)(),i=(0,a.toZ)(),r=(0,a.Wd6)(),s=(0,a.NoM)(),o=(0,a.Pv8)(),d=(0,b.useCallback)((e=>{e?t():i()}),[t,i]);return s?(0,F.jsx)(zl,{}):(0,F.jsx)(bn.yr,{id:"console",asideCollapsible:!0,asideCollapsed:r,asideHeight:o,mainPane:"top",topContent:n,bottomContent:(0,F.jsx)(zl,{}),onAsideHeightChange:l,onAsideCollapsedChange:d})}const zl=(0,b.memo)((function(){return(0,F.jsx)(te.hm,{children:(0,F.jsx)(_l.t,{children:(0,F.jsx)(b.Suspense,{fallback:(0,F.jsx)(Ml,{}),children:(0,F.jsx)(Gl,{})})})})}));l(40231),l(95666),l(77845);var Bl=l(3480);const Ql=Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));function Ul(e){if("serviceWorker"in navigator){if(new URL(".",window.location.href).origin!==window.location.origin)return;const n="./service-worker.js";Ql?(!function(e,n){fetch(e,{headers:{"Service-Worker":"script"}}).then((l=>{const a=l.headers.get("content-type");l.ok&&null!==a&&void 0!==a&&a.includes("javascript")?Yl(e,n):navigator.serviceWorker.ready.then((e=>{e.unregister().then((()=>{window.location.reload()}))}))})).catch((()=>{console.log("No internet connection found. App is running in offline mode.")}))}(n,e),navigator.serviceWorker.ready.then((()=>{console.log("This app is being served cache-first by a service worker.")}))):Yl(n,e)}}function Yl(e,n){navigator.serviceWorker.register(e).then((e=>{e.onupdatefound=()=>{const l=e.installing;null!=l&&(l.onstatechange=()=>{var a,t;"installed"===l.state&&(navigator.serviceWorker.controller?(console.log("New content is available and will be used when all instances of the app are closed."),null===n||void 0===n||null===(a=n.onUpdate)||void 0===a||a.call(n,e)):(console.log("Content is cached for offline use."),null===n||void 0===n||null===(t=n.onSuccess)||void 0===t||t.call(n,e)))})}})).catch((e=>{console.error("Error during service worker registration:",e)}))}const Wl="sw-update";function ql(e){let{onUpdate:n}=e;const[l,a]=(0,b.useState)(!1);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Dn.rV,{children:"A new version is available!"}),(0,F.jsx)(Dn.FV,{children:(0,F.jsx)(be.A,{color:"primary",disabled:l,onClick:()=>{a(!0),n()},children:"Update"})})]})}function Xl(){(0,b.useEffect)((()=>{if(!f._w&&navigator.serviceWorker){let e=!1;navigator.serviceWorker.addEventListener("message",(e=>{var n;"CLOSE_UPDATE_DIALOG"===(null===(n=e.data)||void 0===n?void 0:n.type)&&Bl.oR.dismiss(Wl)})),navigator.serviceWorker.addEventListener("controllerchange",(()=>{e||(window.location.reload(),e=!0)})),Ul({onUpdate(e){!function(e){const n=(0,F.jsx)(Dn.FH,{title:"Ready for Update",content:(0,F.jsx)(ql,{onUpdate:e})});Bl.oR.info(n,{toastId:Wl,autoClose:!1,closeButton:!0,onClose(){var e;null===(e=navigator.serviceWorker.controller)||void 0===e||e.postMessage({type:"CLOSE_UPDATE_DIALOG"})}})}((()=>{e.waiting&&e.waiting.postMessage({type:"SKIP_WAITING"})}))}})}}),[])}var Zl,Jl,ea,na,la;function aa(){return aa=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var l=arguments[n];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},aa.apply(null,arguments)}function ta(e,n){let{title:l,titleId:a,...t}=e;return b.createElement("svg",aa({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",ref:n,"aria-labelledby":a},t),l?b.createElement("title",{id:a},l):null,Zl||(Zl=b.createElement("path",{d:"m94.09,472.38c2.35.14,5.28.2,8.65.04,0,0,4.25-.17,8.56-.88,42.29-6.95,79.83-24.9,113.77-50.43,15.13-11.38,29.2-24.2,43.39-36.77,6.41-5.98,5.72-9.68,0-16.41-26.79-28.96-53.31-58.17-80.08-87.14-1.09-1.18-2.38-2.16-3.76-3.07-2.99-1.99-7.07-1.01-8.85,2.11-.87,1.54-1.61,3.1-1.93,4.74-8.06,41.48-24.18,79.25-52.78,110.67-11.35,12.48-25.32,22.53-37.59,34.23-6.16,5.87-11.81,12.51-16.53,19.58-4.8,7.19-2.39,16.25,5.47,19.68,3.41.99,7.31,1.92,11.64,2.61,3.61.57,6.97.89,10.02,1.04Z",strokeWidth:0})),Jl||(Jl=b.createElement("path",{d:"m345.35,253.75c-33.89-36.69-66.6-72.09-99.02-107.18-2.48-2.69-3.2-6.56-1.84-9.96,1.91-4.78,3.67-9.18,5.43-13.58,3.09-7.7,7.46-13.46,13.14-17.3,4.27-2.88,9.78-3.82,20.77-5.73,7.91-1.37,12.23-1.33,15.86-.92,4.19.47,7.78.87,11.37,3.3.92.62,4.87,2.13,8.16,11.69,1.96,5.68,4,11.54,7.22,16.53,7.53,11.63,17.85,14.31,32.6,9.48,13.19-4.32,12.22-3.56,20.73,7.41,17.92,23.08,14.48,44.88-.7,67.41-8.22,12.21-15.71,24.91-23.57,37.85-2.2,3.63-7.28,4.13-10.16,1.01Z",strokeWidth:0})),ea||(ea=b.createElement("path",{d:"m289.69,76.49c-3.23-.93-7.35-2.11-7.53-4.05-.18-2.02,3.98-3.93,10.75-6.71,13.25-5.44,19.87-8.16,23.45-8.8,12.84-2.29,23.14.8,31.77,3.39,16.88,5.07,27.15,14.75,39.76,22.57,17.52,10.86,26.86,27.13,28.92,47.56.28,2.82-.01,5.78-.54,8.58-1.23,6.53-5.13,8.7-10.09,3.9-6.78-6.58-13.47-13.51-18.81-21.25-5.5-7.98-11.72-9.55-20.6-7.35-20.31,5.04-25.48,2.28-30.57-17.98-1.73-6.91-3.7-10.01-7.46-12.88-3.03-2.32-6.92-3.59-8.15-3.96-2.69-.81-4.84-1.02-7.53-1.27-4.08-.38-5.11-.11-9.96-.23-5.37-.13-9.05-.25-13.43-1.51Z",strokeWidth:0})),na||(na=b.createElement("path",{d:"m381.01,62.82c-1.56.72-3.42.17-4.34-1.29-2.4-3.8-4.6-6.85-5.62-10.26-.93-3.11-.78-7.61.87-10.25,11.61-18.57,29.8-25.87,50.63-27.52,7.12-.56,15.49,8.24,15.98,15.34.5,7.25-5.58,14.84-14.03,14.28-17.02-1.13-30.12,4.77-40.65,17.76-.69.86-1.73,1.43-2.84,1.94Z",strokeWidth:0})),la||(la=b.createElement("path",{d:"m421.69,202.6l-40.44,63.99c-3.93,6.23-6.02,13.44-6.02,20.81v29.22c0,3.63-4.48,5.34-6.9,2.64L185.49,120.27c-.21-.23-.41-.46-.6-.7-2.45-3.11-18.17-21.66-47.16-25.29-67.29-5.94-69.27,51.46-69.27,51.46v232.43c0,12.57,16.43,17.35,23.16,6.73l39.16-61.69c4.53-7.14,6.94-15.43,6.94-23.89v-103.65c0-3.63,4.48-5.34,6.9-2.64l182.61,198.71.81.95c2.42,3.08,18.14,21.67,47.17,25.3,67.29,5.94,69.27-51.46,69.27-51.46v-157.34c0-12.39-16.19-17.07-22.81-6.6Z",strokeWidth:0})))}const ia=b.forwardRef(ta);l.p;var ra,sa,oa,da,ca,ua;function ga(){return ga=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var l=arguments[n];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},ga.apply(null,arguments)}function ma(e,n){let{title:l,titleId:a,...t}=e;return b.createElement("svg",ga({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",ref:n,"aria-labelledby":a},t),l?b.createElement("title",{id:a},l):null,ra||(ra=b.createElement("defs",null,b.createElement("filter",{id:"3cnuS-adPxSAxuag",x:"-20%",y:"-20%",width:"140%",height:"140%",filterUnits:"objectBoundingBox",primitiveUnits:"userSpaceOnUse",colorInterpolationFilters:"linearRGB"},b.createElement("feFlood",{floodOpacity:1,result:"flood"}),b.createElement("feComposite",{in:"flood",in2:"SourceAlpha",operator:"out",result:"composite1"}),b.createElement("feOffset",{dx:5,dy:5,in:"composite1",result:"offset"}),b.createElement("feGaussianBlur",{stdDeviation:"5 5",in:"offset",edgeMode:"none",result:"blur"}),b.createElement("feComposite",{in:"blur",in2:"SourceAlpha",operator:"in",result:"composite2"}),b.createElement("feMerge",{result:"merge"},b.createElement("feMergeNode",{in:"SourceGraphic"}),b.createElement("feMergeNode",{in:"composite2"}))))),sa||(sa=b.createElement("path",{d:"m94.09,472.38c2.35.14,5.28.2,8.65.04,0,0,4.25-.17,8.56-.88,42.29-6.95,79.83-24.9,113.77-50.43,15.13-11.38,29.2-24.2,43.39-36.77,6.41-5.98,5.72-9.68,0-16.41-26.79-28.96-53.31-58.17-80.08-87.14-1.09-1.18-2.38-2.16-3.76-3.07-2.99-1.99-7.07-1.01-8.85,2.11-.87,1.54-1.61,3.1-1.93,4.74-8.06,41.48-24.18,79.25-52.78,110.67-11.35,12.48-25.32,22.53-37.59,34.23-6.16,5.87-11.81,12.51-16.53,19.58-4.8,7.19-2.39,16.25,5.47,19.68,3.41.99,7.31,1.92,11.64,2.61,3.61.57,6.97.89,10.02,1.04Z",strokeWidth:0,filter:"url(#3cnuS-adPxSAxuag)"})),oa||(oa=b.createElement("path",{d:"m345.35,253.75c-33.89-36.69-66.6-72.09-99.02-107.18-2.48-2.69-3.2-6.56-1.84-9.96,1.91-4.78,3.67-9.18,5.43-13.58,3.09-7.7,7.46-13.46,13.14-17.3,4.27-2.88,9.78-3.82,20.77-5.73,7.91-1.37,12.23-1.33,15.86-.92,4.19.47,7.78.87,11.37,3.3.92.62,4.87,2.13,8.16,11.69,1.96,5.68,4,11.54,7.22,16.53,7.53,11.63,17.85,14.31,32.6,9.48,13.19-4.32,12.22-3.56,20.73,7.41,17.92,23.08,14.48,44.88-.7,67.41-8.22,12.21-15.71,24.91-23.57,37.85-2.2,3.63-7.28,4.13-10.16,1.01Z",strokeWidth:0,filter:"url(#3cnuS-adPxSAxuag)"})),da||(da=b.createElement("path",{d:"m289.69,76.49c-3.23-.93-7.35-2.11-7.53-4.05-.18-2.02,3.98-3.93,10.75-6.71,13.25-5.44,19.87-8.16,23.45-8.8,12.84-2.29,23.14.8,31.77,3.39,16.88,5.07,27.15,14.75,39.76,22.57,17.52,10.86,26.86,27.13,28.92,47.56.28,2.82-.01,5.78-.54,8.58-1.23,6.53-5.13,8.7-10.09,3.9-6.78-6.58-13.47-13.51-18.81-21.25-5.5-7.98-11.72-9.55-20.6-7.35-20.31,5.04-25.48,2.28-30.57-17.98-1.73-6.91-3.7-10.01-7.46-12.88-3.03-2.32-6.92-3.59-8.15-3.96-2.69-.81-4.84-1.02-7.53-1.27-4.08-.38-5.11-.11-9.96-.23-5.37-.13-9.05-.25-13.43-1.51Z",strokeWidth:0,filter:"url(#3cnuS-adPxSAxuag)"})),ca||(ca=b.createElement("path",{d:"m381.01,62.82c-1.56.72-3.42.17-4.34-1.29-2.4-3.8-4.6-6.85-5.62-10.26-.93-3.11-.78-7.61.87-10.25,11.61-18.57,29.8-25.87,50.63-27.52,7.12-.56,15.49,8.24,15.98,15.34.5,7.25-5.58,14.84-14.03,14.28-17.02-1.13-30.12,4.77-40.65,17.76-.69.86-1.73,1.43-2.84,1.94Z",strokeWidth:0,filter:"url(#3cnuS-adPxSAxuag)"})),ua||(ua=b.createElement("path",{d:"m421.69,202.6l-40.44,63.99c-3.93,6.23-6.02,13.44-6.02,20.81v29.22c0,3.63-4.48,5.34-6.9,2.64L185.49,120.27c-.21-.23-.41-.46-.6-.7-2.45-3.11-18.17-21.66-47.16-25.29-67.29-5.94-69.27,51.46-69.27,51.46v232.43c0,12.57,16.43,17.35,23.16,6.73l39.16-61.69c4.53-7.14,6.94-15.43,6.94-23.89v-103.65c0-3.63,4.48-5.34,6.9-2.64l182.61,198.71.81.95c2.42,3.08,18.14,21.67,47.17,25.3,67.29,5.94,69.27-51.46,69.27-51.46v-157.34c0-12.39-16.19-17.07-22.81-6.6Z",strokeWidth:0,filter:"url(#3cnuS-adPxSAxuag)"})))}const pa=b.forwardRef(ma);l.p;function ha(){const e=(0,a.I89)(),n=(0,a.hMg)(),l=(0,a.GkE)(),t=(0,c.Gk)(Ie),i=(0,b.useCallback)(((e,n)=>()=>{l(e,n)}),[l]),r=l=>n||e!==l?"":"active";return(0,a.wkm)(a.bab.toggleOpenSidebar,i(e,!0),void 0,[e,i]),(0,a.wkm)(a.bab.openDocumentExplorer,i("document-explorer",!1),void 0,[i]),(0,a.wkm)(a.bab.openEnvironmentExplorer,i("environment-explorer",!1),void 0,[i]),(0,a.wkm)(a.bab.openHistoryExplorer,i("history-explorer",!1),void 0,[i]),(0,a.wkm)(a.bab.openSettings,t),(0,F.jsxs)(te.s2,{children:[(0,F.jsx)(fa,{}),(0,F.jsx)(ka,{title:(0,a.WIA)(a.bab.openDocumentExplorer,"Documents"),className:r("document-explorer"),onClick:i("document-explorer",!0),children:(0,F.jsx)(g.FX,{})}),(0,F.jsx)(ka,{title:(0,a.WIA)(a.bab.openEnvironmentExplorer,"Environments"),className:r("environment-explorer"),onClick:i("environment-explorer",!0),children:(0,F.jsx)(g.bw,{inheritColor:!0})}),(0,F.jsx)(ka,{title:(0,a.WIA)(a.bab.openHistoryExplorer,"History"),className:r("history-explorer"),onClick:i("history-explorer",!0),children:(0,F.jsx)(g.os,{})}),(0,F.jsx)(va,{}),(0,F.jsx)(ka,{title:(0,a.WIA)(a.bab.openSettings,"Settings"),onClick:t,children:(0,F.jsx)(g.Ze,{})}),(0,F.jsx)(ya,{}),(0,F.jsx)(oe,{}),(0,F.jsx)(je,{}),(0,F.jsx)(Xe,{}),(0,F.jsx)(De,{})]})}function ya(){const{Menu:e,MenuItem:n,closeMenu:l,toggleMenu:t,status$:i}=(0,y.b)(),r=(0,a.ZPF)(),s=(0,a.EN5)(),o=(0,a.qTo)(),d=(0,a.wrT)(),u=(0,a.$aT)(),m=(0,a.got)(),p=(0,c.Gk)(se),h=(0,c.Gk)(ve),f=(0,c.Gk)(qe),x=(0,a.O70)(),k=(0,y.CH)(),v=(0,b.useCallback)((()=>{l(),null!==o&&void 0!==o&&o.billingUrl&&window.open(o.billingUrl,"_blank")}),[o,l]),j=(0,b.useCallback)((()=>{l(),m()}),[m,l]),S=(0,b.useCallback)((()=>{l(),f()}),[f,l]);(0,b.useEffect)((()=>{x&&p()}),[x,p]),(0,b.useEffect)((()=>i.subscribe(k)),[i,k]);const C=s?`Signed in as: ${d}`:"Signed out",K="signed-in"===r&&!!o;return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(ka,{title:i.value()?"":C,disabled:"init"===r||"sign-in"===r||"sign-out"===r,onClick:t,children:[(0,F.jsx)(g.JM,{}),(0,F.jsx)(xa,{$status:"signed-in"===r?u?"online":"none":"offline"})]}),(0,F.jsx)(e,{transformOrigin:{vertical:"bottom",horizontal:"left"},anchorOrigin:{vertical:"center",horizontal:"right"},children:K?[(0,F.jsx)(n,{onClick:v,children:"Billing"},"billing"),(0,F.jsx)(n,{onClick:h,children:"Manage Organizations"},"organizations"),(0,F.jsx)(n,{onClick:S,children:"Sign Out"},"sign-out")]:(0,F.jsx)(n,{onClick:j,children:"Sign In"})})]})}const fa=(0,j.Ay)(ia)`flex:0 0 32px;margin:8px auto;height:32px;fill:${o.lt.base.logo};feFlood{flood-color:${o.lt.base.logoShadow};}`,xa=j.Ay.div`position:absolute;right:8px;top:8px;border-radius:50%;width:10px;height:10px;justify-content:center;align-items:center;background-color:${e=>{let{$status:n}=e;switch(n){case"online":return o.lt.states.success;case"offline":return o.lt.states.warning;case"signed-out":return o.lt.states.failure;default:return o.lt.states.none}}};box-shadow:0 1px 4px 0 ${o.lt.base.shadow};`;function ka(e){let{title:n,children:l,className:a,disabled:t,onClick:i}=e;return(0,F.jsx)(ie.A,{title:t?"":n,placement:"right",disableInteractive:!0,children:(0,F.jsx)(ba,{className:a,disabled:t,onClick:i,children:(0,F.jsx)("span",{className:"icon-container",children:l})})})}const ba=j.Ay.button`position:relative;display:flex;align-items:center;justify-content:center;border-left:2px solid ${o.lt.base.tabBorder};width:50px;height:50px;padding-right:2px;transition:border-color 0.2s ease,opacity 0.2s ease;& > .icon-container{display:flex;align-items:center;justify-content:center;border-radius:4px;width:36px;height:36px;background-color:${o.lt.base.tab};transition:background-color 0.2s ease;& > .icon{width:24px;height:24px;fill:${o.lt.base.tabText};transition:fill 0.2s ease;}}&:disabled,&:disabled:hover{opacity:0.5;& > .icon-container{background-color:${o.lt.base.tab};& > .icon{fill:${o.lt.base.tabText};}}}&.active{width:50px;border-color:${o.lt.base.tabActiveBorder};& > .icon-container{background-color:${o.lt.base.tabActive};& > .icon{fill:${o.lt.base.tabActiveText};}}&:hover{width:50px;border-color:${o.lt.base.tabActiveHoverBorder};& > .icon-container{background-color:${o.lt.base.tabActiveHover};& > .icon{fill:${o.lt.base.tabActiveHoverText};}}}}&:hover{border-color:${o.lt.base.tabHoverBorder};& > .icon-container{background-color:${o.lt.base.tabHover};& > .icon{fill:${o.lt.base.tabHoverText};}}}`,va=j.Ay.div`margin:auto;`;var ja=l(28095),Fa=l(56420),Sa=l(58535),Ca=l(43754),Ka=l(37885),La=l(73163);function Ta(e){let{heading:n,steps:l,activeStep:a,allStepsActive:t}=e;return(0,F.jsxs)(wa,{children:[n&&(0,F.jsx)(Aa,{children:n}),(0,F.jsx)(Sa.A,{orientation:"vertical",children:l.map(((e,n)=>{let{heading:l,description:i,actions:r}=e;return(0,F.jsxs)(Ca.A,{active:t||a===n,children:[(0,F.jsx)(Ka.A,{children:l}),(0,F.jsxs)(La.A,{children:[(0,F.jsx)(Ia,{children:i}),r&&(0,F.jsx)(Da,{children:r})]})]},n)}))})]})}const wa=j.Ay.div`display:flex;flex:0 0 auto;flex-direction:column;padding:24px 32px;width:800px;`,Aa=j.Ay.h1`display:flex;flex:0 0 auto;flex-direction:row;align-items:center;padding-bottom:16px;font-size:1.5rem;font-weight:500;line-height:1.5rem;color:${o.lt.base.heading};`,Ia=(j.Ay.h2`display:flex;flex:0 0 auto;flex-direction:row;align-items:center;font-size:1.25rem;font-weight:500;line-height:1.5rem;color:${o.lt.base.heading};`,j.Ay.div`font-size:1.167rem;line-height:1.5rem;color:${o.lt.base.text};`),Da=j.Ay.div`display:flex;flex-direction:row;padding-top:16px;`,Na="create-api";function Ra(){const e=(0,a.l$t)(Na),n=(0,a.bY3)(),l=(0,a.UD1)(),[t,i]=(0,b.useState)(""),[r,s]=(0,b.useState)(null),[o,d]=(0,b.useState)(!0),u=(0,b.useCallback)((()=>{null===e||void 0===e||e.hide(!1),i(""),s(null),d(!0)}),[e,i,s,d]),g=(0,b.useCallback)((async()=>{if(e){const a=await(0,h.AF)(t,null!==r&&void 0!==r?r:e.item.context.workspaceId);if("invalid"===a)return(0,re.Ap)(t),void d(!1);if("name-taken"===a)return(0,re.Ad)(t),void d(!1);const{apiId:o,apiKind:c,closeTabAfterCreation:u}=e.item.context,g=p.vL.get(f.xb);if(g){const e=r?g.find((e=>{let{metadata:n}=e;return n.id===r})):g;e&&await e.create({name:t,checkable:!1,expandable:!1,renamable:!0,metadata:{id:o,kind:x.mv2,apiKind:c,exists:!0,closeTabAfterCreation:u}})}else u?n(o,t,r):l(o,t,r);e.hide(!0),i(""),s(null),d(!0)}}),[e,t,r,n,l,i,s,d]);return(0,F.jsx)(c.lG,{id:Na,title:"Create API",closeOnEnter:!1,showConfirm:!0,confirmText:"Save",showCancel:!0,cancelText:"Cancel",onConfirm:g,onCancel:u,onClose:u,children:(0,F.jsx)($a,{workspaceId:null===e||void 0===e?void 0:e.item.context.workspaceId,apiName:null===e||void 0===e?void 0:e.item.context.apiName,isNameValid:o,onApiNameChange:i,onFolderChange:s,onDone:g})})}function Ea(){return(0,c.Gk)(Na)}const $a=(0,b.memo)((function(e){let{workspaceId:n,apiName:l,isNameValid:a,onApiNameChange:t,onFolderChange:i,onDone:r}=e;const s=(0,b.useRef)(null),[o,d]=(0,b.useState)([]),g=(0,b.useCallback)((e=>{t(e.currentTarget.value.trim())}),[t]),m=(0,b.useCallback)((e=>{i(e.currentTarget.value||null)}),[i]),p=(0,b.useCallback)((e=>{var n;e.preventDefault(),e.stopPropagation(),null!==(n=s.current)&&void 0!==n&&n.value.trim().length&&r()}),[r]);return(0,b.useEffect)((()=>{n?(0,x.iNT)(n).then((e=>{d(e.map((n=>({id:n.id,name:n.path.map((n=>{var l;return null===(l=e.find((e=>e.id===n)))||void 0===l?void 0:l.name})).join("/")}))))})):d([])}),[n]),(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(c.CQ,{children:["Choose a name and folder for API ",(0,F.jsx)("em",{children:l}),"."]}),(0,F.jsxs)(u.lV,{onSubmit:p,children:[(0,F.jsxs)(u.YJ,{children:[(0,F.jsx)(u.JU,{htmlFor:"apiName",children:"API Name"}),(0,F.jsx)(u.pd,{ref:s,id:"apiName",type:"text",placeholder:"Enter an API Name Here",className:a?"":"invalid",autoFocus:!0,onChange:g})]}),(0,F.jsxs)(u.YJ,{children:[(0,F.jsx)(u.JU,{htmlFor:"folder",children:"Folder"}),(0,F.jsxs)(u.l6,{id:"folder",onChange:m,children:[(0,F.jsx)("option",{value:"",children:"/"}),o.map((e=>{let{id:n,name:l}=e;return(0,F.jsx)("option",{value:n,children:l},n)}))]})]})]})]})})),Va="create-document";function Pa(){const e=(0,a.l$t)(Va),n=(0,a.bY3)(),l=(0,a.UD1)(),[t,i]=(0,b.useState)(""),[r,s]=(0,b.useState)(null),[o,d]=(0,b.useState)(!0),u=(0,b.useCallback)((()=>{null===e||void 0===e||e.hide(!1),i(""),s(null),d(!0)}),[e,i,s,d]),g=(0,b.useCallback)((async()=>{if(e){const a=await(0,h.AF)(t,null!==r&&void 0!==r?r:e.item.context.workspaceId);if("invalid"===a)return(0,re.Ap)(t),void d(!1);if("name-taken"===a)return(0,re.Ad)(t),void d(!1);const{documentId:o,closeTabAfterCreation:c}=e.item.context,u=p.vL.get(f.xb);if(u){const e=r?u.find((e=>{let{metadata:n}=e;return n.id===r})):u;e&&await e.create({name:t,checkable:!1,expandable:!1,renamable:!0,metadata:{id:o,kind:"node"===e.kind&&Fn(e)?x.wAF:x.UjY,exists:!0,closeTabAfterCreation:c}})}else c?n(o,t,r):l(o,t,r);e.hide(!0),i(""),s(null),d(!0)}}),[e,t,r,n,l,i,s,d]);return(0,F.jsx)(c.lG,{id:Va,title:"Create Document",closeOnEnter:!1,showConfirm:!0,confirmText:"Save",showCancel:!0,cancelText:"Cancel",onConfirm:g,onCancel:u,onClose:u,children:(0,F.jsx)(Oa,{workspaceId:null===e||void 0===e?void 0:e.item.context.workspaceId,documentName:null===e||void 0===e?void 0:e.item.context.documentName,isNameValid:o,onDocumentNameChange:i,onFolderChange:s,onDone:g})})}function Ma(){return(0,c.Gk)(Va)}const Oa=(0,b.memo)((function(e){let{workspaceId:n,documentName:l,isNameValid:a,onDocumentNameChange:t,onFolderChange:i,onDone:r}=e;const s=(0,b.useRef)(null),[o,d]=(0,b.useState)([]),g=(0,b.useCallback)((e=>{t(e.currentTarget.value.trim())}),[t]),m=(0,b.useCallback)((e=>{i(e.currentTarget.value||null)}),[i]),p=(0,b.useCallback)((e=>{var n;e.preventDefault(),e.stopPropagation(),null!==(n=s.current)&&void 0!==n&&n.value.trim().length&&r()}),[r]);return(0,b.useEffect)((()=>{n?(0,x.SrO)(n).then((e=>{d(e.map((n=>({id:n.id,name:n.path.map((n=>{var l;return null===(l=e.find((e=>e.id===n)))||void 0===l?void 0:l.name})).join("/")}))))})):d([])}),[n]),(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(c.CQ,{children:["Choose a name and folder for document ",(0,F.jsx)("em",{children:l}),"."]}),(0,F.jsxs)(u.lV,{onSubmit:p,children:[(0,F.jsxs)(u.YJ,{children:[(0,F.jsx)(u.JU,{htmlFor:"documentName",children:"Document Name"}),(0,F.jsx)(u.pd,{ref:s,id:"documentName",type:"text",placeholder:"Enter a Document Name Here",className:a?"":"invalid",autoFocus:!0,onChange:g})]}),(0,F.jsxs)(u.YJ,{children:[(0,F.jsx)(u.JU,{htmlFor:"folder",children:"Folder"}),(0,F.jsxs)(u.l6,{id:"folder",onChange:m,children:[(0,F.jsx)("option",{value:"",children:"/"}),o.map((e=>{let{id:n,name:l}=e;return(0,F.jsx)("option",{value:n,children:l},n)}))]})]})]})]})})),_a="create-environment";function Ga(){const e=(0,a.l$t)(_a),n=(0,a.bY3)(),l=(0,a.UD1)(),[t,i]=(0,b.useState)(""),[r,s]=(0,b.useState)(!0),o=(0,b.useCallback)((()=>{null===e||void 0===e||e.hide(!1),i(""),s(!0)}),[e,i,s]),d=(0,b.useCallback)((async()=>{if(e){const a=await(0,h.gN)(t,e.item.context.workspaceId);if("invalid"===a)return(0,re.Ap)(t),void s(!1);if("name-taken"===a)return(0,re.Ad)(t),void s(!1);const{environmentId:r,closeTabAfterCreation:o}=e.item.context,d=p.vL.get(f.FY);d?await d.create({name:t,checkable:!1,expandable:!1,renamable:!1,metadata:{id:r,kind:x.Bp3,exists:!0,closeTabAfterCreation:o}}):o?n(r,t,null):l(r,t,null),e.hide(!0),i(""),s(!0)}}),[e,t,n,l,i,s]);return(0,F.jsx)(c.lG,{id:_a,title:"Create Environment",closeOnEnter:!1,showConfirm:!0,confirmText:"Save",showCancel:!0,cancelText:"Cancel",onConfirm:d,onCancel:o,onClose:o,children:(0,F.jsx)(za,{environmentName:null===e||void 0===e?void 0:e.item.context.environmentName,isNameValid:r,onEnvironmentNameChange:i,onDone:d})})}function Ha(){return(0,c.Gk)(_a)}const za=(0,b.memo)((function(e){let{environmentName:n,isNameValid:l,onEnvironmentNameChange:a,onDone:t}=e;const i=(0,b.useRef)(null),r=(0,b.useCallback)((e=>{a(e.currentTarget.value.trim())}),[a]),s=(0,b.useCallback)((e=>{var n;e.preventDefault(),e.stopPropagation(),null!==(n=i.current)&&void 0!==n&&n.value.trim().length&&t()}),[t]);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(c.CQ,{children:["Choose a name for environment ",(0,F.jsx)("em",{children:n}),"."]}),(0,F.jsx)(u.lV,{onSubmit:s,children:(0,F.jsxs)(u.YJ,{children:[(0,F.jsx)(u.JU,{htmlFor:"environmentName",children:"Environment Name"}),(0,F.jsx)(u.pd,{ref:i,id:"environmentName",type:"text",placeholder:"Enter an Environment Name Here",className:l?"":"invalid",autoFocus:!0,onChange:r})]})})]})})),Ba="save-tab";function Qa(){const e=(0,a.l$t)(Ba),n=(0,a.WAs)(),l=(0,a.EN5)(),t=(0,a.ozF)(),i=(0,a.AjF)(),r=(0,a.NKY)(),s=(0,a.wRs)(),o=(0,a.got)(),d=Ma(),u=Ha(),g=(0,b.useCallback)((()=>{if(e)if(l&&n){const{id:l,kind:a,name:t,isNew:i,closeTabAfterCreation:o}=e.item.context;if(i){switch(a){case"document":d({workspaceId:n,documentId:l,documentName:t,closeTabAfterCreation:o},e.item.onDone);break;case"environment":u({workspaceId:n,environmentId:l,environmentName:t,closeTabAfterCreation:o},null===e||void 0===e?void 0:e.item.onDone)}e.hide()}else o?r(l):s(l),e.hide(!0)}else o()}),[n,e,l,d,u,r,s,o]),m=(0,b.useCallback)((()=>{if(e){const{id:n,isNew:l,closeTabAfterCreation:a}=e.item.context;l?a&&t(n):a&&i(n),e.hide(!0)}}),[e,t,i]),p=(0,b.useCallback)((()=>{null===e||void 0===e||e.hide(!1)}),[e]);return(0,F.jsxs)(c.lG,{id:Ba,title:"Save Changes",showConfirm:!0,confirmText:l?"Save":"Sign In",showAlternative:!0,alternativeText:"Don't Save",showCancel:!0,cancelText:"Cancel",onConfirm:g,onAlternative:m,onCancel:p,onClose:p,children:[(0,F.jsxs)(c.CQ,{children:["Do you want to save the changes you made to"," ",(0,F.jsx)("em",{children:null===e||void 0===e?void 0:e.item.context.name}),"?"]}),(0,F.jsx)(c.Sd,{children:"Your changes will be lost if you don't save them."})]})}function Ua(){return(0,c.Gk)(Ba)}function Ya(e){let{apiId:n,apiKind:l,workspaceId:t}=e;const[i,r]=(0,b.useState)(0),s=function(e,n,l,t){const i=(0,a.ohr)(),r=(0,a.LbQ)(e),s=(0,a.m5O)(),[o,c]=(0,b.useState)(!1),u=(0,ne.J)(),g=Ea(),m=(0,a.wRs)(),p=(0,a.iJS)(),h=(e,n)=>{p(e,n),t(1)};return[{heading:"API Type",description:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(z.A,{gutterBottom:!0,variant:"subtitle1",color:"text.secondary",sx:{marginBottom:"18px"},children:"Specify the purpose of this API by selecting one of the three options below."}),(0,F.jsx)(Y,{apiId:e,apiKind:n,onChange:h})]})},{heading:"Connection Settings",description:(0,F.jsx)(z.A,{gutterBottom:!0,variant:"subtitle1",color:"text.secondary",children:"Configure the API Connection Settings now, or choose to skip. If you decide to skip, rest assured you can adjust them later. Any settings you configure will be applied to the documents linked to this API."}),actions:(0,F.jsxs)(d.e2,{children:[(0,F.jsx)(be.A,{color:"primary",size:"medium",onClick:()=>{u({apiOrDocumentId:e,httpConnection:r.httpConnection,subscriptionEndpointDisabled:!1,unauthorized:"signed-in"!==s.value(),workspaceId:l},(()=>{t(2)}))},children:"Configure"}),(0,F.jsx)(be.A,{color:"secondary",size:"medium",onClick:()=>t(2),children:"Skip"}),(0,F.jsx)(be.A,{variant:"text",color:"secondary",size:"medium",onClick:()=>t(0),children:"Back"})]})},{heading:"Finish",description:(0,F.jsx)(z.A,{gutterBottom:!0,variant:"subtitle1",color:"text.secondary",children:"Complete the process by saving the API settings."}),actions:(0,F.jsxs)(d.e2,{children:[(0,F.jsx)(ja.A,{color:"primary",size:"medium",variant:"contained",disableElevation:!0,loading:o,onClick:()=>{i?g({apiId:e,apiName:"",apiKind:n,workspaceId:l,closeTabAfterCreation:!1},(()=>{c(!0)})):(c(!0),m(e))},children:(0,F.jsx)("span",{children:"Save"})}),(0,F.jsx)(be.A,{variant:"text",color:"secondary",size:"medium",onClick:()=>t(1),children:"Back"})]})}]}(n,l,t,r);return s?(0,F.jsx)(te.gN,{children:(0,F.jsx)(m.Z,{children:(0,F.jsx)(Ta,{steps:s,activeStep:i})})}):null}const Wa=(0,h.vr)(null,"ApiRefetch"),qa=(0,b.memo)((function(e){let{children:n}=e;const l=(0,h.oX)({});return(0,F.jsx)(et,{state$:l.current,children:(0,F.jsx)(Wa.Provider,{value:l.current,children:(0,F.jsx)(at,{children:n})})})}));function Xa(e){const n=Object.values(e).filter((e=>!!e));return n.length?()=>{n.forEach((e=>e()))}:void 0}function Za(){return(0,y.d4)(Wa,Xa)}const Ja=(0,h.vr)(k.lQ,"ApiSetRefetch");function et(e){let{children:n,state$:l}=e;const a=(0,b.useCallback)(((e,n)=>{l.next((l=>({...l,[e]:n})))}),[l]);return(0,F.jsx)(Ja.Provider,{value:a,children:n})}function nt(e){const n=(0,b.useId)(),[l,a]=(0,b.useTransition)(),t=(0,b.useContext)(Ja);return(0,b.useEffect)((()=>(t(n,(()=>{a((()=>{e()}))})),()=>{t(n,void 0)})),[n,e,t,a]),l}const lt=(0,h.vr)(null,"MaterializedApiDateTimeRange"),at=(0,b.memo)((function(e){let{children:n}=e;const l=(0,a.$KT)().toJSON();return nt((0,y.CH)()),(0,F.jsx)(lt.Provider,{value:l,children:n})}));function tt(){const e=(0,b.useContext)(lt);if(!e)throw new Error(f.b2);return e}var it,rt,st=l(89989),ot=l(52444),dt=l(44446);function ct(e){let{clientId:n}=e;const[a,t]=(0,y.V7)(),{client:i}=(0,dt.useLazyLoadQuery)(void 0!==it?it:it=l(55587),{clientId:n},{fetchKey:a,fetchPolicy:"store-and-network"});return nt(t),i?(0,F.jsx)(ut,{fragmentRef:i}):(0,F.jsx)(Tn.HY,{title:"No Client Available"})}function ut(e){var n,a;let{fragmentRef:t}=e;const{data:i,hasNext:r,isLoadingNext:s,loadNext:o}=(0,dt.usePaginationFragment)(void 0!==rt?rt:rt=l(14205),t);if(null===i||void 0===i||null===(n=i.versions)||void 0===n||null===(a=n.edges)||void 0===a||!a.length)return(0,F.jsx)(Tn.HY,{title:"No Versions Available"});const d=i.versions.edges.map(((e,n)=>{var l,a;let{node:t}=e;return{id:n,node:t,stages:null!==(l=null===i||void 0===i||null===(a=i.api)||void 0===a?void 0:a.stages)&&void 0!==l?l:[]}}));return(0,F.jsx)(ot.C,{columns:gt,rows:d,loading:s,disableColumnReorder:!0,disableRowSelectionOnClick:!0,rowSelection:!1,scrollEndThreshold:400,onRowsScrollEnd:()=>{r&&!s&&o(25)}})}const gt=[{field:"version",headerName:"Version",width:200,sortable:!1,renderCell(e){let{row:n}=e;return(0,F.jsx)(st.$,{children:n.node.tag})}},{field:"stages",headerName:"Stages",flex:1,sortable:!1,renderCell(e){let{row:n}=e;return(0,F.jsx)(mt,{children:n.stages.map((e=>{let{id:l,name:a}=e;const t=n.node.publishedTo.find((e=>{let{stage:n}=e;return(null===n||void 0===n?void 0:n.id)===l}));return(0,F.jsx)(ie.A,{title:t&&`Published ${(0,k.fw)(t.publishedAt)}`,children:(0,F.jsxs)(pt,{children:[(0,F.jsx)(st.$,{children:a}),t?(0,F.jsx)(g.BK,{}):(0,F.jsx)(g.i3,{})]})},l)}))})}}],mt=j.Ay.ul`display:flex;gap:6px;font-family:${o.Z7};font-weight:500;`,pt=j.Ay.li`min-width:40px;display:flex;align-items:center;justify-content:center;gap:4px;border:1px solid ${o.lt.base.itemHighlighted};padding:2px 4px;border-radius:4px;`;function ht(){const e=(0,a.sV3)();return(0,F.jsx)(te.wn,{children:(0,F.jsx)(te.gN,{children:e?(0,F.jsx)(b.Suspense,{fallback:(0,F.jsx)(Ml,{}),children:(0,F.jsx)(ct,{clientId:e})}):(0,F.jsx)(Ml,{})})})}function yt(e){let{caption:n,detail:l,active:a,onClick:t}=e;return(0,F.jsxs)(ft,{className:a?"active":void 0,onClick:t,children:[(0,F.jsx)(xt,{children:n}),l&&(0,F.jsxs)(kt,{children:[(0,F.jsx)(st.$,{children:l.label}),l.meta]})]})}const ft=j.Ay.button`display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:4px;margin:0 6px;width:calc(100% - 16px);height:50px;padding:6px 12px;border-radius:4px;color:${o.lt.base.itemText};background-color:${o.lt.base.item};transition:background-color 0.2s ease,color 0.2s ease;&.active,&.active:hover{color:${o.lt.base.itemActiveText};background-color:${o.lt.base.itemActive};}&:hover{color:${o.lt.base.itemHoverText};background-color:${o.lt.base.itemHover};}`,xt=j.Ay.span`width:100%;overflow:hidden;min-width:0;text-overflow:ellipsis;white-space:nowrap;font-size:1.167rem;font-weight:500;text-align:start;`,kt=j.Ay.div`width:100%;display:flex;align-items:center;justify-content:space-between;gap:4px;`;var bt,vt,jt=l(5910),Ft=l(9912);function St(e){let{remoteId:n}=e;const t=(0,a.sV3)(),[i,r]=(0,y.V7)(),{api:s}=(0,dt.useLazyLoadQuery)(void 0!==bt?bt:bt=l(77309),{apiId:n},{fetchKey:i,fetchPolicy:"store-and-network"});return nt(r),s?(0,F.jsx)(Ct,{fragmentRef:s,clientId:t}):null}function Ct(e){var n,t;let{fragmentRef:i,clientId:r}=e;const s=(0,a.fN5)(),{data:o,hasNext:c,isLoadingNext:u,loadNext:g}=(0,dt.usePaginationFragment)(void 0!==vt?vt:vt=l(96905),i),m=null!==(n=null===o||void 0===o||null===(t=o.clients)||void 0===t?void 0:t.edges)&&void 0!==n?n:[];if(m.length&&!m.some((e=>e.node.id===r))?s(m[0].node.id):m.length&&r||s(null),0===m.length)return null;const p=(0,b.memo)((function(e){let{data:n,index:l,style:a}=e;if(l===n.length)return c?(0,F.jsx)("div",{style:a,children:(0,F.jsx)(d.Xw,{isLoadingMore:u,onLoadMore:()=>{u||g(50)}})}):null;const{id:t,name:i}=n[l].node;return(0,F.jsx)("div",{style:a,children:(0,F.jsx)(yt,{caption:i,active:t===r,onClick:()=>{s(t)}})})}),Ft.t7);return(0,F.jsx)(te.gN,{$spacing:"top",children:(0,F.jsx)(jt.d,{itemCount:m.length+1,itemData:m,itemKey:(e,n)=>e===n.length?"load-more":`client-${e}`,itemSize:50,tabIndex:-1,children:p})})}function Kt(){return(0,F.jsx)(te.AW,{spacing:"right",children:(0,F.jsx)(te.w,{children:"Filter"})})}function Lt(e){let{remoteId:n}=e;return(0,F.jsx)(te.wn,{$separator:"left",children:(0,F.jsxs)(te.VP,{children:[(0,F.jsx)(Kt,{}),(0,F.jsx)(te.Y2,{}),(0,F.jsx)(b.Suspense,{fallback:(0,F.jsx)(Ml,{}),children:(0,F.jsx)(St,{remoteId:n})})]})})}function Tt(e){let{remoteId:n}=e;const l=(0,a.sV3)(),t=(0,a.fN5)();return nt((0,b.useCallback)((()=>{null===l&&t(void 0)}),[l,t])),null===l?(0,F.jsxs)(Tn.HY,{title:"No Clients",children:[(0,F.jsxs)(Tn.pd,{children:["Use the ",(0,F.jsx)("em",{children:"Barista"})," CLI to publish Clients."]}),(0,F.jsxs)(Tn.pd,{children:["More Info on how to publish a Client with ",(0,F.jsx)("em",{children:"Barista"})," you'll find in the"," ",(0,F.jsxs)(le,{href:"https://chilli.run/schema-registry-tutorial",children:["Quick Start Guide ",(0,F.jsx)(g.pT,{})]})]})]}):(0,F.jsx)(wt,{remoteId:n})}const wt=(0,b.memo)((function(e){let{remoteId:n}=e;const l=(0,a.xIY)(),t=(0,a.gfI)();return(0,F.jsx)(bn.YV,{id:"clients",asideWidth:l,mainPane:"left",leftContent:(0,F.jsx)(ht,{}),rightContent:(0,F.jsx)(Lt,{remoteId:n}),onAsideWidthChange:t})}));var At,It=l(58094),Dt=l(83239),Nt=l(20709),Rt=l(47885),Et=l(82917),$t=l(36080);function Vt(e){let{fragmentRef:n}=e;const{changedAt:a,tag:t}=(0,dt.useFragment)(void 0!==At?At:At=l(84620),n);return(0,F.jsxs)(Pt,{children:[(0,F.jsx)("span",{children:(0,k.YS)(a)}),(0,F.jsx)("span",{children:t})]})}const Pt=j.Ay.div`display:flex;flex:0 0 auto;color:${o.lt.base.heading};> span:not(:first-child)::before{content:"•";color:${o.lt.base.separator};font-weight:bolder;margin:5px;}`;function Mt(e){let{text:n,children:l}=e;return(0,F.jsx)("li",{children:(0,F.jsxs)("details",{open:!0,children:[(0,F.jsx)("summary",{children:n}),l&&(0,F.jsx)("ul",{children:l})]})})}const Ot={BREAKING:o.lt.states.failure,DANGEROUS:o.lt.states.warning,SAFE:o.lt.states.success,CHORE:o.lt.states.none},_t=e=>{let{severity:n}=e;switch(n){case"BREAKING":return(0,F.jsx)(g.ik,{});case"DANGEROUS":return(0,F.jsx)(g.id,{});case"SAFE":return(0,F.jsx)(g.BK,{});case"CHORE":return(0,F.jsx)(g.i3,{})}};var Gt;function Ht(e){let{fragmentRef:n}=e;const{dangerous:a,breaking:t,safe:i}=(0,dt.useFragment)(void 0!==Gt?Gt:Gt=l(19467),n);return(0,F.jsxs)(zt,{children:[!!t&&(0,F.jsxs)(Bt,{$severity:"BREAKING",children:[(0,F.jsx)(_t,{severity:"BREAKING"}),t]}),!!a&&(0,F.jsxs)(Bt,{$severity:"DANGEROUS",children:[(0,F.jsx)(_t,{severity:"DANGEROUS"}),a]}),!!i&&(0,F.jsxs)(Bt,{$severity:"SAFE",children:[(0,F.jsx)(_t,{severity:"SAFE"}),i]})]})}const zt=j.Ay.div`display:flex;flex:0 0 auto;gap:8px;`,Bt=j.Ay.div`display:flex;justify-items:center;align-items:center;gap:2px;color:${e=>{let{$severity:n}=e;return Ot[n]}};`;var Qt;function Ut(e){let{fragmentRef:n}=e;const a=(0,dt.useFragment)(void 0!==Qt?Qt:Qt=l(15784),n);return(0,F.jsxs)(Yt,{children:[(0,F.jsx)(Vt,{fragmentRef:a}),(0,F.jsx)(Ht,{fragmentRef:a.statistic})]})}const Yt=j.Ay.div`display:flex;flex:0 0 16px;min-height:16px;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid ${o.lt.base.separator};padding:6px;color:${o.lt.base.heading};`;var Wt,qt=l(66993),Xt=l(11081);function Zt(e){var n,a;let{fragmentRef:t}=e;const i=(0,dt.useFragment)(void 0!==Wt?Wt:Wt=l(22963),t),r=ei(null===(n=i.previousSchema)||void 0===n?void 0:n.downloadUrl),s=ei(null===(a=i.schema)||void 0===a?void 0:a.downloadUrl);return(0,F.jsx)(qt.zC,{id:"schema-sdl-diff",content:{original:r,modified:s}})}const Jt=new Map;function ei(e){if(Jt.has(e)){const{promise:n,data:l,error:a}=Jt.get(e);if(n)throw n;if(a)throw a;return l}const n=async function(e){if(e){const{uri:n,headers:l}=await(0,Xt.L2)(e);return await(0,h.tr)(n,{headers:l})}return""}(e).then((n=>Jt.set(e,{data:n}))).catch((n=>Jt.set(e,{error:n})));throw Jt.set(e,{promise:n}),n}var ni,li,ai,ti,ii,ri,si,oi,di,ci,ui,gi,mi,pi,hi,yi,fi,xi,ki,bi,vi,ji,Fi,Si,Ci,Ki,Li,Ti,wi;function Ai(e){let{fragmentRef:n}=e;const a=(0,dt.useFragment)(void 0!==ni?ni:ni=l(58524),n);switch(a.__typename){case"TypeSystemMemberAddedChange":return(0,F.jsx)(Di,{fragmentRef:a});case"TypeSystemMemberRemovedChange":return(0,F.jsx)(Ii,{fragmentRef:a});case"ObjectModifiedChange":return(0,F.jsx)(Ni,{fragmentRef:a});case"UnionModifiedChange":return(0,F.jsx)(Ri,{fragmentRef:a});case"InterfaceModifiedChange":return(0,F.jsx)(Ei,{fragmentRef:a});case"InputObjectModifiedChange":return(0,F.jsx)(Qi,{fragmentRef:a});case"DirectiveModifiedChange":return(0,F.jsx)(Oi,{fragmentRef:a});case"ScalarModifiedChange":return(0,F.jsx)(Bi,{fragmentRef:a});case"EnumModifiedChange":return(0,F.jsx)(Gi,{fragmentRef:a});default:return null}}const Ii=e=>{let{fragmentRef:n}=e;const{severity:a,coordinate:t}=(0,dt.useFragment)(void 0!==li?li:li=l(46568),n);return(0,F.jsx)(Mt,{text:(0,F.jsx)(ir,{severity:a,coordinate:t,text:"type removed"})})},Di=e=>{let{fragmentRef:n}=e;const{severity:a,coordinate:t}=(0,dt.useFragment)(void 0!==ai?ai:ai=l(45478),n);return(0,F.jsx)(Mt,{text:(0,F.jsx)(ir,{severity:a,coordinate:t,text:"type added"})})},Ni=e=>{let{fragmentRef:n}=e;const{severity:a,coordinate:t,changes:i}=(0,dt.useFragment)(void 0!==ti?ti:ti=l(77516),n);return(0,F.jsx)(Mt,{text:(0,F.jsx)(ir,{severity:a,coordinate:t,selectable:!0,text:"object type modified"}),children:i.map(((e,n)=>{switch(e.__typename){case"FieldRemovedChange":return(0,F.jsx)(er,{fragmentRef:e},n);case"FieldAddedChange":return(0,F.jsx)(Ji,{fragmentRef:e},n);case"OutputFieldChanged":return(0,F.jsx)(qi,{fragmentRef:e},n);case"DescriptionChanged":return(0,F.jsx)(ar,{fragmentRef:e},n);case"InterfaceImplementationAdded":return(0,F.jsx)(Yi,{fragmentRef:e},n);case"InterfaceImplementationRemoved":return(0,F.jsx)(Ui,{fragmentRef:e},n);default:return null}}))})},Ri=e=>{let{fragmentRef:n}=e;const{severity:a,coordinate:t,changes:i}=(0,dt.useFragment)(void 0!==ii?ii:ii=l(10452),n);return(0,F.jsx)(Mt,{text:(0,F.jsx)(ir,{severity:a,coordinate:t,selectable:!0,text:"union modified"}),children:i.map(((e,n)=>{switch(e.__typename){case"DescriptionChanged":return(0,F.jsx)(ar,{fragmentRef:e},n);case"UnionMemberRemoved":return(0,F.jsx)($i,{fragmentRef:e},n);case"UnionMemberAdded":return(0,F.jsx)(Vi,{fragmentRef:e},n);default:return null}}))})},Ei=e=>{let{fragmentRef:n}=e;const{severity:a,coordinate:t,changes:i}=(0,dt.useFragment)(void 0!==ri?ri:ri=l(52524),n);return(0,F.jsx)(Mt,{text:(0,F.jsx)(ir,{severity:a,coordinate:t,selectable:!0,text:"interface modified"}),children:i.map(((e,n)=>{switch(e.__typename){case"FieldRemovedChange":return(0,F.jsx)(er,{fragmentRef:e},n);case"FieldAddedChange":return(0,F.jsx)(Ji,{fragmentRef:e},n);case"OutputFieldChanged":return(0,F.jsx)(qi,{fragmentRef:e},n);case"DescriptionChanged":return(0,F.jsx)(ar,{fragmentRef:e},n);case"InterfaceImplementationAdded":return(0,F.jsx)(Yi,{fragmentRef:e},n);case"InterfaceImplementationRemoved":return(0,F.jsx)(Ui,{fragmentRef:e},n);default:return null}}))})},$i=e=>{let{fragmentRef:n}=e;const{severity:a,typeName:t}=(0,dt.useFragment)(void 0!==si?si:si=l(27679),n);return(0,F.jsx)(Mt,{text:(0,F.jsx)(ir,{severity:a,coordinate:t,text:"type removed"})})},Vi=e=>{let{fragmentRef:n}=e;const{severity:a,typeName:t}=(0,dt.useFragment)(void 0!==oi?oi:oi=l(73241),n);return(0,F.jsx)(Mt,{text:(0,F.jsx)(ir,{severity:a,coordinate:t,text:"type added"})})},Pi=e=>{let{fragmentRef:n}=e;const{location:a}=(0,dt.useFragment)(void 0!==di?di:di=l(5938),n);return(0,F.jsx)(Mt,{text:(0,F.jsxs)(F.Fragment,{children:["The location",(0,F.jsx)(or,{children:dr(a)}),"was removed"]})})},Mi=e=>{let{fragmentRef:n}=e;const{location:a}=(0,dt.useFragment)(void 0!==ci?ci:ci=l(93388),n);return(0,F.jsx)(Mt,{text:(0,F.jsxs)(F.Fragment,{children:["The location",(0,F.jsx)(or,{children:dr(a)}),"was added"]})})},Oi=e=>{let{fragmentRef:n}=e;const{severity:a,coordinate:t,changes:i}=(0,dt.useFragment)(void 0!==ui?ui:ui=l(54290),n);return(0,F.jsx)(Mt,{text:(0,F.jsx)(ir,{severity:a,coordinate:t,selectable:!0,text:"directive modified"}),children:i.map(((e,n)=>{switch(e.__typename){case"DirectiveLocationAdded":return(0,F.jsx)(Mi,{fragmentRef:e},n);case"DirectiveLocationRemoved":return(0,F.jsx)(Pi,{fragmentRef:e},n);case"ArgumentRemoved":return(0,F.jsx)(lr,{fragmentRef:e},n);case"ArgumentAdded":return(0,F.jsx)(nr,{fragmentRef:e},n);case"ArgumentChanged":return(0,F.jsx)(Xi,{fragmentRef:e},n);case"DescriptionChanged":return(0,F.jsx)(ar,{fragmentRef:e},n);default:return null}}))})},_i=e=>{let{fragmentRef:n}=e;const{severity:a,coordinate:t,changes:i}=(0,dt.useFragment)(void 0!==gi?gi:gi=l(53666),n);return(0,F.jsx)(Mt,{text:(0,F.jsx)(ir,{severity:a,coordinate:t,selectable:!0,text:"enum value modified"}),children:i.map(((e,n)=>{switch(e.__typename){case"DescriptionChanged":return(0,F.jsx)(ar,{fragmentRef:e},n);case"DeprecatedChange":return(0,F.jsx)(Zi,{fragmentRef:e},n);default:return null}}))})},Gi=e=>{let{fragmentRef:n}=e;const{severity:a,coordinate:t,changes:i}=(0,dt.useFragment)(void 0!==mi?mi:mi=l(1358),n);return(0,F.jsx)(Mt,{text:(0,F.jsx)(ir,{severity:a,coordinate:t,selectable:!0,text:"enum modified"}),children:i.map(((e,n)=>{switch(e.__typename){case"EnumValueRemoved":return(0,F.jsx)(Hi,{fragmentRef:e},n);case"EnumValueAdded":return(0,F.jsx)(zi,{fragmentRef:e},n);case"EnumValueChanged":return(0,F.jsx)(_i,{fragmentRef:e},n);case"DescriptionChanged":return(0,F.jsx)(ar,{fragmentRef:e},n);default:return null}}))})},Hi=e=>{let{fragmentRef:n}=e;const{severity:a,coordinate:t}=(0,dt.useFragment)(void 0!==pi?pi:pi=l(66002),n);return(0,F.jsx)(Mt,{text:(0,F.jsx)(ir,{severity:a,coordinate:t,selectable:!0,text:"value removed"})})},zi=e=>{let{fragmentRef:n}=e;const{severity:a,coordinate:t}=(0,dt.useFragment)(void 0!==hi?hi:hi=l(85868),n);return(0,F.jsx)(Mt,{text:(0,F.jsx)(ir,{severity:a,coordinate:t,selectable:!0,text:"value added"})})},Bi=e=>{let{fragmentRef:n}=e;const{severity:a,coordinate:t,changes:i}=(0,dt.useFragment)(void 0!==yi?yi:yi=l(16587),n);return(0,F.jsx)(Mt,{text:(0,F.jsx)(ir,{severity:a,coordinate:t,selectable:!0,text:"scalar modified"}),children:i.map(((e,n)=>"DescriptionChanged"===e.__typename?(0,F.jsx)(ar,{fragmentRef:e},n):null))})},Qi=e=>{let{fragmentRef:n}=e;const{severity:a,coordinate:t,changes:i}=(0,dt.useFragment)(void 0!==fi?fi:fi=l(32792),n);return(0,F.jsx)(Mt,{text:(0,F.jsx)(ir,{severity:a,coordinate:t,selectable:!0,text:"input object modified"}),children:i.map(((e,n)=>{switch(e.__typename){case"DescriptionChanged":return(0,F.jsx)(ar,{fragmentRef:e},n);case"FieldAddedChange":return(0,F.jsx)(Ji,{fragmentRef:e},n);case"FieldRemovedChange":return(0,F.jsx)(er,{fragmentRef:e},n);case"InputFieldChanged":return(0,F.jsx)(Wi,{fragmentRef:e},n);default:return null}}))})},Ui=e=>{let{fragmentRef:n}=e;const{severity:a,interfaceName:t}=(0,dt.useFragment)(void 0!==xi?xi:xi=l(2427),n);return(0,F.jsx)(Mt,{text:(0,F.jsxs)(F.Fragment,{children:["The implementation of the interface",(0,F.jsx)(rr,{severity:a,selectable:!0,coordinate:t}),"was removed"]})})},Yi=e=>{let{fragmentRef:n}=e;const{severity:a,interfaceName:t}=(0,dt.useFragment)(void 0!==ki?ki:ki=l(89653),n);return(0,F.jsx)(Mt,{text:(0,F.jsxs)(F.Fragment,{children:["The implementation of the interface",(0,F.jsx)(rr,{severity:a,selectable:!0,coordinate:t}),"was added"]})})},Wi=e=>{let{fragmentRef:n}=e;const{severity:a,coordinate:t,changes:i}=(0,dt.useFragment)(void 0!==bi?bi:bi=l(26760),n);return(0,F.jsx)(Mt,{text:(0,F.jsx)(ir,{severity:a,coordinate:t,selectable:!0,text:"input field modified"}),children:i.map(((e,n)=>{switch(e.__typename){case"DescriptionChanged":return(0,F.jsx)(ar,{fragmentRef:e},n);case"TypeChanged":return(0,F.jsx)(tr,{fragmentRef:e},n);case"DeprecatedChange":return(0,F.jsx)(Zi,{fragmentRef:e},n);default:return null}}))})},qi=e=>{let{fragmentRef:n}=e;const{severity:a,coordinate:t,changes:i}=(0,dt.useFragment)(void 0!==vi?vi:vi=l(48689),n);return(0,F.jsx)(Mt,{text:(0,F.jsx)(ir,{severity:a,coordinate:t,selectable:!0,text:"output field modified"}),children:i.map(((e,n)=>{switch(e.__typename){case"ArgumentRemoved":return(0,F.jsx)(lr,{fragmentRef:e},n);case"ArgumentAdded":return(0,F.jsx)(nr,{fragmentRef:e},n);case"ArgumentChanged":return(0,F.jsx)(Xi,{fragmentRef:e},n);case"DescriptionChanged":return(0,F.jsx)(ar,{fragmentRef:e},n);case"TypeChanged":return(0,F.jsx)(tr,{fragmentRef:e},n);case"DeprecatedChange":return(0,F.jsx)(Zi,{fragmentRef:e},n);default:return null}}))})},Xi=e=>{let{fragmentRef:n}=e;const{severity:a,coordinate:t,changes:i}=(0,dt.useFragment)(void 0!==ji?ji:ji=l(65841),n);return(0,F.jsx)(Mt,{text:(0,F.jsx)(ir,{severity:a,coordinate:t,selectable:!0,text:"argument modified"}),children:i.map(((e,n)=>{switch(e.__typename){case"DescriptionChanged":return(0,F.jsx)(ar,{fragmentRef:e},n);case"TypeChanged":return(0,F.jsx)(tr,{fragmentRef:e},n);case"DeprecatedChange":return(0,F.jsx)(Zi,{fragmentRef:e},n);default:return null}}))})},Zi=e=>{let{fragmentRef:n}=e;const{deprecationReason:a}=(0,dt.useFragment)(void 0!==Fi?Fi:Fi=l(37493),n);return(0,F.jsx)(Mt,{text:"The member was deprecated"+(a?` with the reason '${a}'`:".")})},Ji=e=>{let{fragmentRef:n}=e;const{severity:a,coordinate:t}=(0,dt.useFragment)(void 0!==Si?Si:Si=l(59242),n);return(0,F.jsx)(Mt,{text:(0,F.jsx)(ir,{severity:a,coordinate:t,text:"field added"})})},er=e=>{let{fragmentRef:n}=e;const{severity:a,coordinate:t}=(0,dt.useFragment)(void 0!==Ci?Ci:Ci=l(18616),n);return(0,F.jsx)(Mt,{text:(0,F.jsx)(ir,{severity:a,coordinate:t,text:"field removed"})})},nr=e=>{let{fragmentRef:n}=e;const{severity:a,coordinate:t}=(0,dt.useFragment)(void 0!==Ki?Ki:Ki=l(12743),n);return(0,F.jsx)(Mt,{text:(0,F.jsx)(ir,{severity:a,coordinate:t,text:"argument added"})})},lr=e=>{let{fragmentRef:n}=e;const{severity:a,coordinate:t}=(0,dt.useFragment)(void 0!==Li?Li:Li=l(46001),n);return(0,F.jsx)(Mt,{text:(0,F.jsx)(ir,{severity:a,coordinate:t,text:"argument removed"})})},ar=e=>{let{fragmentRef:n}=e;const{oldValue:a,newValue:t}=(0,dt.useFragment)(void 0!==Ti?Ti:Ti=l(66790),n);return(0,F.jsx)(Mt,{text:(0,F.jsxs)(F.Fragment,{children:["The description changed from",(0,F.jsx)(sr,{text:null!==a&&void 0!==a?a:"-"}),"to",(0,F.jsx)(sr,{text:null!==t&&void 0!==t?t:"-"})]})})},tr=e=>{let{fragmentRef:n}=e;const{oldType:a,newType:t}=(0,dt.useFragment)(void 0!==wi?wi:wi=l(91896),n);return(0,F.jsx)(Mt,{text:(0,F.jsxs)(F.Fragment,{children:["The type changed from",(0,F.jsx)(or,{children:dr(a)}),"to",(0,F.jsx)(or,{children:dr(t)})]})})},ir=e=>{let{text:n,coordinate:l,severity:a,selectable:t="BREAKING"!==a}=e;return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(rr,{coordinate:l,severity:a,selectable:t}),n]})},rr=e=>{let{coordinate:n,selectable:l}=e;return(0,F.jsx)(or,{$selectable:l,children:dr(n)})},sr=e=>{let{text:n}=e;return n.length>40?(0,F.jsx)(ie.A,{title:n,children:(0,F.jsxs)(or,{children:[n.substring(0,40),"..."]})}):(0,F.jsx)(or,{children:n})},or=j.Ay.span`color:${o.lt.components.linkHighlightText};:hover{color:${e=>{let{$selectable:n}=e;return n&&o.lt.components.linkHighlightHoverText}};cursor:${e=>{let{$selectable:n}=e;return n&&"pointer"}};}`;function dr(e){var n;return null===(n=e.split(".").at(-1))||void 0===n?void 0:n.replace(/^.*\((.*?)\).*$/,"$1")}var cr,ur,gr,mr;function pr(e){let{fragmentRef:n}=e;const a=(0,dt.useFragment)(void 0!==cr?cr:cr=l(51590),n),{statistic:{dangerous:t,breaking:i,safe:r}}=a,s=i+t+r;return(0,F.jsx)(hr,{children:(0,F.jsx)(m.Z,{children:(0,F.jsx)(yr,{children:s?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(fr,{fragmentRef:a}),(0,F.jsx)(xr,{fragmentRef:a}),(0,F.jsx)(kr,{fragmentRef:a})]}):(0,F.jsx)(br,{})})})})}const hr=(0,j.Ay)(te.VP)`flex:1 1 auto;a{display:inline-flex;align-items:center;color:${o.lt.components.linkText};text-decoration:none;transition:color 0.2s ease;&:hover{color:${o.lt.components.linkHoverText};}}`,yr=(0,j.Ay)(te.VP)`display:flex;flex:auto;flex-direction:column;gap:6px;padding:6px;`;function fr(e){let{fragmentRef:n}=e;const{data:a,hasNext:t,isLoadingNext:i,loadNext:r}=(0,dt.usePaginationFragment)(void 0!==ur?ur:ur=l(37135),n);return(0,F.jsx)(vr,{severity:"BREAKING",title:"Breaking Changes",data:a.breaking,hasNext:t,isLoadingNext:i,loadNext:r})}function xr(e){let{fragmentRef:n}=e;const{data:a,hasNext:t,isLoadingNext:i,loadNext:r}=(0,dt.usePaginationFragment)(void 0!==gr?gr:gr=l(46925),n);return(0,F.jsx)(vr,{severity:"DANGEROUS",title:"Dangerous Changes",data:a.dangerous,hasNext:t,isLoadingNext:i,loadNext:r})}function kr(e){let{fragmentRef:n}=e;const{data:a,hasNext:t,isLoadingNext:i,loadNext:r}=(0,dt.usePaginationFragment)(void 0!==mr?mr:mr=l(42066),n);return(0,F.jsx)(vr,{severity:"SAFE",title:"Safe Changes",data:a.safe,hasNext:t,isLoadingNext:i,loadNext:r})}function br(){return(0,F.jsxs)(jr,{children:[(0,F.jsxs)(Fr,{children:[(0,F.jsx)(_t,{severity:"CHORE"}),"Chore Changes"]}),(0,F.jsx)(Sr,{$severity:"CHORE",children:(0,F.jsx)(Mt,{text:"No significant updates or additions were introduced"})})]})}function vr(e){var n;let{severity:l,title:a,data:t,hasNext:i,isLoadingNext:r,loadNext:s}=e;const o=(0,b.useCallback)((()=>{s(20)}),[s]);return null!==t&&void 0!==t&&null!==(n=t.edges)&&void 0!==n&&n.length?(0,F.jsxs)(jr,{children:[(0,F.jsxs)(Fr,{children:[(0,F.jsx)(_t,{severity:l}),a]}),(0,F.jsxs)(Sr,{$severity:l,children:[t.edges.map(((e,n)=>(0,F.jsx)(Ai,{fragmentRef:e.node},n))),i&&(0,F.jsx)(d.sz,{disabled:r,onClick:o})]})]}):null}const jr=j.Ay.section`display:flex;flex-direction:column;border-bottom:1px solid ${o.lt.base.separator};`,Fr=j.Ay.h2`display:flex;align-items:center;justify-content:flex-start;white-space:nowrap;font-size:1.25rem;font-weight:normal;padding:6px;color:${o.lt.base.subtitle};> .icon{flex:0 0 auto;margin-right:6px;}`,Sr=j.Ay.ul`&{color:${o.lt.base.description};fill:currentColor;padding:6px 8px;list-style:none;}& li{position:relative;line-height:1.25rem;}& ul{list-style:none;}& details{margin-left:1.25em;}& summary{display:inline-flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:4px;margin-bottom:4px;cursor:pointer;}& summary:focus{outline:none;}& summary::marker{display:none;}& summary::before{content:"⊙";display:block;position:absolute;top:0;left:0;width:1em;padding-right:1.25em;line-height:1.25rem;text-align:center;color:${e=>{let{$severity:n}=e;return Ot[n]}};}& details > summary:has(+ ul > li)::before{content:"⦵";}& details[open] > summary:has(+ ul > li)::before{content:"⦶";}`;var Cr,Kr,Lr,Tr,wr,Ar,Ir;function Dr(e){let{fragmentRef:n}=e;const t=(0,a.Ruy)(),i=(0,dt.useFragment)(void 0!==Cr?Cr:Cr=l(66662),n);switch(t){case"log":return(0,F.jsx)(pr,{fragmentRef:i});case"diff":return(0,F.jsx)(Zt,{fragmentRef:i});default:return null}}function Nr(e){let{changelogId:n}=e;const{node:a}=(0,dt.useLazyLoadQuery)(void 0!==Kr?Kr:Kr=l(41016),{changelogId:n});return nt((0,y.CH)()),a?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Ut,{fragmentRef:a}),(0,F.jsx)(Dr,{fragmentRef:a})]}):null}function Rr(e){let{deploymentId:n}=e;return(0,F.jsx)(te.wn,{$separator:"left",children:(0,F.jsx)(te.VP,{children:n?(0,F.jsx)(b.Suspense,{fallback:(0,F.jsx)(Hr,{}),children:(0,F.jsx)(Er,{deploymentId:n})}):(0,F.jsx)(Hr,{})})})}function Er(e){let{deploymentId:n}=e;const{node:a}=(0,dt.useLazyLoadQuery)(void 0!==Lr?Lr:Lr=l(79943),{deploymentId:n});return a?(0,F.jsx)($r,{fragmentRef:a}):null}function $r(e){let{fragmentRef:n}=e;const a=(0,dt.useFragment)(void 0!==Tr?Tr:Tr=l(38533),n);if(a){var t,i,r;const e=null!==(t=a.logs)&&void 0!==t&&t.length?a.logs.at(a.logs.length-1):void 0;return(0,F.jsxs)(Br,{children:[(0,F.jsxs)(Ur,{children:[(0,F.jsxs)(Yr,{children:[(0,F.jsx)(z.A,{variant:"h4",className:"ellipsis",children:Gr(a.status)}),!(null===e||void 0===e||!e.__typename)&&"%other"!==e.__typename&&(0,F.jsx)(z.A,{variant:"subtitle2",className:"ellipsis",children:(0,k.YS)(e.timestamp)})]}),["PROCESSING","QUEUED","READY"].includes(a.status)&&(0,F.jsx)(d.e2,{children:(0,F.jsx)(Pr,{deploymentId:a.id})}),"WAITING_FOR_APPROVAL"===a.status&&(0,F.jsxs)(d.e2,{children:[(0,F.jsx)(Vr,{deploymentId:a.id}),(0,F.jsx)(Mr,{deploymentId:a.id})]})]}),a.subgraph&&(0,F.jsxs)(Wr,{children:[(0,F.jsx)(z.A,{variant:"subtitle1",className:"ellipsis",children:"Subgraph"}),(0,F.jsx)(zr,{name:a.subgraph.name,remoteId:null===(i=a.subgraph.api)||void 0===i?void 0:i.id})]}),a.schemaChanges&&(a.schemaChanges.statistic.breaking>0||a.schemaChanges.statistic.dangerous>0||a.schemaChanges.statistic.safe>0)&&(0,F.jsxs)(Wr,{children:[(0,F.jsx)(z.A,{variant:"subtitle1",className:"ellipsis",children:"Changes"}),(0,F.jsx)(Ht,{fragmentRef:a.schemaChanges.statistic})]}),!(null===(r=a.logs)||void 0===r||!r.length)&&(0,F.jsxs)(Wr,{children:[(0,F.jsx)(z.A,{variant:"subtitle1",className:"ellipsis",children:"Sequence"}),(0,F.jsx)(qr,{children:a.logs.map(((e,n,l)=>{let{length:a}=l;const t=a===n+1;return"%other"===e.__typename?null:(0,F.jsxs)(Xr,{children:[(0,F.jsxs)(Zr,{children:[Or(e.__typename,t),!t&&(0,F.jsx)(es,{})]}),(0,F.jsxs)(Jr,{children:[(0,F.jsx)(z.A,{variant:"subtitle2",className:"ellipsis",children:_r(e.__typename)}),(0,F.jsx)(z.A,{variant:"body2",className:"ellipsis",children:(0,k.YS)(e.timestamp)})]})]},e.__typename+n)}))})]})]})}return(0,F.jsx)(Tn.HY,{title:"No Deployment Details Found"})}function Vr(e){let{deploymentId:n}=e;const[a]=(0,dt.useMutation)(void 0!==wr?wr:wr=l(72030)),t=(0,b.useCallback)((()=>{a({variables:{input:{deploymentId:n}}})}),[n,a]);return(0,F.jsx)(be.A,{color:"primary",size:"medium",startIcon:(0,F.jsx)(g.BK,{inheritColor:!0}),sx:{minWidth:120},onClick:t,children:"Approve"})}function Pr(e){let{deploymentId:n}=e;const[a]=(0,dt.useMutation)(void 0!==Ar?Ar:Ar=l(31179)),t=(0,b.useCallback)((()=>{a({variables:{input:{deploymentId:n}}})}),[n,a]);return(0,F.jsx)(be.A,{color:"primary",size:"medium",startIcon:(0,F.jsx)(g.EO,{}),sx:{minWidth:120},onClick:t,children:"Cancel"})}function Mr(e){let{deploymentId:n}=e;const[a]=(0,dt.useMutation)(void 0!==Ir?Ir:Ir=l(71174)),t=(0,b.useCallback)((()=>{a({variables:{input:{deploymentId:n}}})}),[n,a]);return(0,F.jsx)(be.A,{color:"secondary",size:"medium",startIcon:(0,F.jsx)(g.ik,{inheritColor:!0}),sx:{minWidth:120},onClick:t,children:"Reject"})}function Or(e,n){switch(e){case"DeploymentQueuedLog":return n?(0,F.jsx)(Rt.y,{}):(0,F.jsx)(g.xm,{});case"DeploymentStartedProcessingLog":case"DeploymentReadyLog":case"DeploymentWaitingForApprovalLog":return n?(0,F.jsx)(Rt.y,{}):(0,F.jsx)(g.mo,{});case"DeploymentSuccessLog":case"DeploymentCreatedLog":default:return(0,F.jsx)(g.BK,{});case"DeploymentFailedLog":return(0,F.jsx)(g.ik,{});case"DeploymentCancelledLog":return(0,F.jsx)(g.tT,{});case"DeploymentApprovedLog":return n?(0,F.jsx)(Rt.y,{}):(0,F.jsx)(g.M3,{})}}function _r(e){switch(e){case"DeploymentQueuedLog":return"Deployment Queued";case"DeploymentStartedProcessingLog":return"Deployment Started Processing";case"DeploymentSuccessLog":return"Deployment Succeeded";case"DeploymentReadyLog":return"Deployment Ready";case"DeploymentFailedLog":return"Deployment Failed";case"DeploymentCancelledLog":return"Deployment Cancelled";case"DeploymentWaitingForApprovalLog":return"Deployment Waiting for Approval";case"DeploymentApprovedLog":return"Deployment Approved";case"DeploymentCreatedLog":return"Deployment Created";default:return"Unknown"}}function Gr(e){switch(e){case"QUEUED":return"Deployment Queued";case"READY":case"PROCESSING":return"Evaluating...";case"WAITING_FOR_APPROVAL":return"Waiting for Approval";case"APPROVED":return"Deploying...";case"SUCCEEDED":return"Deployment Succeeded";case"FAILED":return"Deployment Failed";case"CANCELLED":return"Deployment Cancelled"}}function Hr(){return(0,F.jsxs)(Qr,{children:[(0,F.jsxs)(Ur,{children:[(0,F.jsxs)(Yr,{children:[(0,F.jsx)(Et.A,{width:"180px",height:"22px"}),(0,F.jsx)(Et.A,{width:"190px",height:"14px"})]}),(0,F.jsxs)(d.e2,{children:[(0,F.jsx)(Et.A,{width:"120px",height:"36px",sx:{transform:"none"}}),(0,F.jsx)(Et.A,{width:"120px",height:"36px",sx:{transform:"none"}})]})]}),(0,F.jsxs)(Wr,{children:[(0,F.jsx)(Et.A,{width:"70px",height:"18px"}),(0,F.jsx)(Et.A,{width:"120px",height:"14px"})]}),(0,F.jsxs)(Wr,{children:[(0,F.jsx)(Et.A,{width:"80px",height:"18px"}),(0,F.jsx)(Et.A,{width:"160px",height:"14px"}),(0,F.jsx)(Et.A,{width:"180px",height:"14px"}),(0,F.jsx)(Et.A,{width:"140px",height:"14px"})]})]})}function zr(e){let{name:n,remoteId:l}=e;const t=(0,a.I7$)(),i=(0,a.$KT)().serialize(),[r,s]=(0,b.useState)(),o=(0,a.Pan)();return(0,b.useEffect)((()=>{l&&(0,x._sj)(l).then((e=>{s(null===e||void 0===e?void 0:e.id)}))}),[l,s]),r?(0,F.jsx)($t.A,{onClick:()=>o(r,{activeStage:t,metricsDateTimeRange:i,activeViewId:"overview"}),children:n}):(0,F.jsx)(F.Fragment,{children:n})}const Br=j.I4.div`display:flex;flex-direction:column;padding:14px 16px 16px;gap:16px;`,Qr=(0,j.I4)(Br)`opacity:0.25;`,Ur=j.I4.div`display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:12px;`,Yr=j.I4.div`display:flex;flex:1 1 auto;flex-direction:column;gap:2px;`,Wr=j.I4.div`display:flex;flex-direction:column;gap:4px;`,qr=j.I4.ol``,Xr=j.I4.li`display:flex;flex-direction:row;justify-content:center;gap:6px;height:48px;padding-right:8px;padding-left:8px;`,Zr=j.I4.div`display:flex;flex:0 0 auto;flex-direction:column;align-items:center;padding-top:1px;`,Jr=j.I4.div`flex:1 1 auto;`,es=j.I4.div`flex:1 1 auto;width:1px;background-color:#cccccc;margin-top:3px;margin-bottom:3px;`;function ns(){return(0,F.jsxs)(Tn.HY,{title:"No Deployments Yet",children:[(0,F.jsxs)(Tn.pd,{children:["Use the ",(0,F.jsx)("em",{children:"Barista"})," CLI to trigger Deployments."]}),(0,F.jsxs)(Tn.pd,{children:["More Info on how to trigger a Deployment with ",(0,F.jsx)("em",{children:"Barista"})," you'll find in the"," ",(0,F.jsxs)(le,{href:"https://chilli.run/deployment-tutorial",children:["Quick Start Guide ",(0,F.jsx)(g.pT,{})]})]})]})}var ls=l(73914);const as=(0,b.memo)((0,b.forwardRef)((function(e,n){let{buildOption:l,style:a,onInit:t}=e;const i=(0,b.useRef)(null),r=(0,b.useRef)(null),s=(0,b.useRef)(!1),d=(0,b.useRef)({}),c=(0,o.JX)(),u=(0,o.Fs)();return(0,b.useImperativeHandle)(n,(()=>({setOption:e=>{r.current&&r.current.setOption(e(d.current,u),!1)}})),[u]),(0,b.useLayoutEffect)((()=>{let e=0;function n(n){cancelAnimationFrame(e),s.current=!1,r.current=(0,ls.Ts)(i.current,n),d.current=l(u),r.current.setOption(d.current,!1),null===t||void 0===t||t(r.current),e=requestAnimationFrame((()=>{e=requestAnimationFrame((()=>{s.current=!0}))}))}n(c.value());const a=c.subscribe((e=>{var l;null===(l=r.current)||void 0===l||l.dispose(),n(e)}));return()=>{var n;cancelAnimationFrame(e),a(),null===(n=r.current)||void 0===n||n.dispose()}}),[c,l,u,t]),(0,y.wY)(i,(()=>{s.current&&r.current&&r.current.resize()})),(0,F.jsx)("div",{ref:i,style:a})}))),ts=(0,b.memo)((0,b.forwardRef)((function(e,n){let{buildOption:l,size:a="big",onInit:t}=e;const i=(0,b.useCallback)((e=>function(e,n,l){return{...e,animation:!1,grid:"mini"===n?{top:3,bottom:0,left:0,right:0,...e.grid}:{top:40,bottom:0,left:10,right:20,containLabel:!0,...e.grid},legend:{...e.legend,textStyle:{fontFamily:o.F2,fontSize:o.Hr,color:l((e=>e.chart.axisLabel))}},tooltip:{...e.tooltip,backgroundColor:l((e=>e.components.tooltip)),borderColor:l((e=>e.components.tooltipBorder)),borderWidth:1,shadowColor:l((e=>e.base.shadow)),shadowBlur:4,shadowOffsetX:0,shadowOffsetY:1,textStyle:{fontFamily:o.F2,fontSize:o.Hr,color:l((e=>e.components.tooltipText))}},visualMap:e.visualMap?{...e.visualMap,textStyle:{fontFamily:o.F2,fontSize:o.Hr,color:l((e=>e.chart.axisLabel))}}:void 0,xAxis:Array.isArray(e.xAxis)?e.xAxis.length?e.xAxis.map((e=>rs(l,e))):rs(l):rs(l,e.xAxis),yAxis:Array.isArray(e.yAxis)?e.yAxis.length?e.yAxis.map((e=>ss(l,e))):ss(l):ss(l,e.yAxis),axisPointer:{lineStyle:{color:l((e=>e.chart.marker))}}}}(l(e),a,e)),[l,a]);return(0,F.jsx)(as,{ref:n,buildOption:i,style:"mini"===a?{height:24,minWidth:60}:"mid"===a?{height:150,width:"100%"}:{height:250,width:"100%"},onInit:t})})));const is=11;function rs(e,n){var l;return{...n,axisLabel:{show:!0,fontFamily:o.F2,fontSize:is,color:e((e=>e.chart.axisLabel)),margin:10,padding:[0,4],backgroundColor:"transparent",hideOverlap:!0,...null!==(l=null===n||void 0===n?void 0:n.axisLabel)&&void 0!==l?l:{}},axisLine:{show:!0,lineStyle:{color:e((e=>e.chart.axisLine))},...null===n||void 0===n?void 0:n.axisLine},axisTick:{show:!0,lineStyle:{color:e((e=>e.chart.axisLine))},...null===n||void 0===n?void 0:n.axisTick},splitLine:{show:!1,lineStyle:{type:"dashed",color:e((e=>e.chart.splitLine))},...null===n||void 0===n?void 0:n.splitLine}}}function ss(e,n){var l;return{...n,axisLabel:{show:!0,fontFamily:o.F2,fontSize:is,color:e((e=>e.chart.axisLabel)),padding:[0,4],backgroundColor:"transparent",hideOverlap:!0,...null!==(l=null===n||void 0===n?void 0:n.axisLabel)&&void 0!==l?l:{}},axisLine:{show:!1,lineStyle:{color:e((e=>e.chart.axisLine))},...null===n||void 0===n?void 0:n.axisLine},axisTick:{show:!1,lineStyle:{color:e((e=>e.chart.axisLine))},...null===n||void 0===n?void 0:n.axisTick},splitLine:{show:!0,lineStyle:{type:"dashed",color:e((e=>e.chart.splitLine))},...null===n||void 0===n?void 0:n.splitLine}}}function os(e){let{dataset:n}=e;const l=(0,b.useCallback)((e=>({grid:{bottom:0,right:8},legend:{show:!1},visualMap:{orient:"horizontal",top:0,left:"center",min:0,max:100,text:["High","Low"],inRange:{color:[e((e=>e.chart.low)),e((e=>e.chart.high))]}},dataset:{source:n.map((e=>{let{name:n,total:l,impact:a}=e;return{name:n,total:l,impact:a}})),dimensions:["name","total","impact"]},xAxis:{type:"value",splitLine:{show:!0},axisLabel:{formatter:e=>(0,k.wk)(e)}},yAxis:{type:"category",splitLine:{show:!1}},series:[{type:"bar",encode:{x:"total",y:"name"},barMaxWidth:24,itemStyle:{borderRadius:[0,2,2,0]}}]})),[n]);return(0,F.jsx)(ts,{buildOption:l})}function ds(e){let{header:n,children:l,disableScrolling:a}=e;return(0,F.jsxs)(te.wn,{children:[n&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(te.AW,{spacing:"right",children:n}),(0,F.jsx)(te.Y2,{})]}),(0,F.jsx)(te.gN,{children:(0,F.jsx)(b.Suspense,{fallback:(0,F.jsx)(Ml,{}),children:a?(0,F.jsx)(It.A,{container:!0,spacing:.5,sx:{flexGrow:1,flexShrink:1,flexBasis:"auto",minWidth:450,padding:1,flexDirection:"column"},children:l}):(0,F.jsx)(m.Z,{children:(0,F.jsx)(It.A,{container:!0,spacing:.5,sx:{minWidth:450,padding:1},children:l})})})})]})}var cs=l(45180);function us(e){let{title:n,subheader:l,action:a,content:t,size:i,minHeight:r,noPadding:s}=e;return(0,F.jsx)(It.A,{sx:{display:"flex",flexDirection:"column",flexGrow:1,flexShrink:0,flexBasis:gs(i)+"%",minWidth:320,overflow:"auto"},children:(0,F.jsxs)(_.A,{style:{minHeight:r},children:[(n||l||a)&&(0,F.jsx)(cs.A,{title:n,subheader:l,action:a}),(0,F.jsx)(H.A,{className:s?"no-padding":void 0,sx:{pt:0},children:t})]})})}function gs(e){return e&&e<12?100/12*e:100}const ms=j.Ay.div`padding-right:${e=>{let{$disableXPadding:n}=e;return n?0:"13px"}};padding-bottom:${e=>{let{$paddingBottom:n}=e;return n?"13px":0}};padding-left:${e=>{let{$disableXPadding:n}=e;return n?0:"13px"}};`;function ps(e){let{disabled:n,options:l,selected:a,children:t,onSelectionChange:i}=e;const{Menu:r,MenuItem:s,closeMenu:o,toggleMenu:d,status$:c}=(0,y.b)(),u=(0,y.CH)(),g=(0,b.useRef)(null),m=(0,b.useRef)(0),p=(0,b.useCallback)((e=>{n||d(e)}),[n,d]);return(0,b.useLayoutEffect)((()=>{if(g.current){const{width:e}=g.current.getBoundingClientRect();m.current!==e&&(m.current=e,u())}}),[a,u]),(0,b.useEffect)((()=>c.subscribe(u)),[c,u]),(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(ys,{ref:g,$disabled:n,onClick:p,children:t?t({content:a.content,title:c.value()?"":a.title}):(0,F.jsxs)(fs,{title:a.title,children:[a.content,(0,F.jsx)(hs,{})]})}),(0,F.jsx)(r,{slotProps:{paper:{style:{boxSizing:"border-box",minWidth:m.current||150}}},children:l.map((e=>(0,F.jsx)(s,{disabled:e.key===a.key,selected:e.key===a.key,onClick:()=>{var n;(n=e).key!==a.key&&(o(),null===i||void 0===i||i(n))},children:e.content},e.key)))})]})}const hs=(0,j.Ay)(g.D3)`fill:${o.lt.components.linkText};transition:fill 0.2s ease;`,ys=j.Ay.div`display:flex;flex:0 0 auto;flex-direction:row;align-items:center;height:30px;color:${o.lt.components.linkText};cursor:${e=>{let{$disabled:n}=e;return n?"default":"pointer"}};transition:color 0.2s ease;&:hover{color:${o.lt.components.linkHoverText};& ${hs}{fill:${o.lt.components.linkHoverText};}}`,fs=j.Ay.div`display:flex;align-items:center;height:auto;& > .icon{margin-left:7px;}`;var xs=l(10533),ks=l(16479),bs=l(4159),vs=l.n(bs);const js=[{label:"Today",getValue:()=>k.bP.from(k.Tp.today).toDayjs(),relativeValue:k.Tp.today},{label:"Last 30 Minutes",getValue:()=>k.bP.from(k.Tp.last30Minutes).toDayjs(),relativeValue:k.Tp.last30Minutes},{label:"Last Hour",getValue:()=>k.bP.from(k.Tp.lastHour).toDayjs(),relativeValue:k.Tp.lastHour},{label:"Last 2 Hours",getValue:()=>k.bP.from(k.Tp.last2Hours).toDayjs(),relativeValue:k.Tp.last2Hours},{label:"Last 6 Hours",getValue:()=>k.bP.from(k.Tp.last6Hours).toDayjs(),relativeValue:k.Tp.last6Hours},{label:"Last 12 Hours",getValue:()=>k.bP.from(k.Tp.last12Hours).toDayjs(),relativeValue:k.Tp.last12Hours},{label:"Last 24 Hours",getValue:()=>k.bP.from(k.Tp.last24Hours).toDayjs(),relativeValue:k.Tp.last24Hours},{label:"Last 2 Days",getValue:()=>k.bP.from(k.Tp.last2Days).toDayjs(),relativeValue:k.Tp.last2Days},{label:"Last 7 Days",getValue:()=>k.bP.from(k.Tp.last7Days).toDayjs(),relativeValue:k.Tp.last7Days}];function Fs(){const e=(0,a.$KT)(),n=(0,a.G9O)(),[l,t]=(0,b.useState)(!1),[i,r]=k.bP.from(k.Tp.last60Days).toDayjs(),s=(0,b.useCallback)(((e,l)=>{let[a,i]=e;if(a&&i&&l.validationError.every((e=>null===e))){var r;const e=null===(r=js.find((e=>{var n;return e.label===(null===(n=l.shortcut)||void 0===n?void 0:n.label)})))||void 0===r?void 0:r.relativeValue;void 0===e?n(k.bP.from([a,i])):(n(k.bP.from(e)),t(!1))}}),[t,n]),o=(0,b.useCallback)((e=>{e&&(void 0===e.range?(n(k.bP.from([vs()().hour(0).minute(0).second(0).millisecond(0),vs()()])),t(!0)):n(k.bP.from(e.range)))}),[t,n]),d=(0,b.useCallback)((()=>{t(!0)}),[t]),c=(0,b.useCallback)((()=>{t(!1)}),[t]);return(0,k.Jw)(e.value)?(0,F.jsx)(Ss,{activeValue:e.value,values:[{name:"Custom"},...js.map((e=>{let{label:n,relativeValue:l}=e;return{name:n,range:l}}))],onSelect:o}):(0,F.jsx)(M.A,{sx:{display:"flex",flexDirection:"row",flexBasis:"304px",flexGrow:0,flexShrink:0,marginLeft:"auto"},children:(0,F.jsx)(xs.U,{value:e.value,minDate:i,maxDate:r,open:l,slotProps:{shortcuts:{items:js},textField:{InputProps:{startAdornment:(0,F.jsx)(g.CT,{inheritColor:!0}),sx:{paddingLeft:"8px"},onClick:d}}},slots:{field:ks.J},sx:{flexBasis:"auto",flexGrow:1,flexShrink:1},onOpen:d,onClose:c,onChange:s})})}const Ss=(0,b.memo)((function(e){var n;let{activeValue:l,values:a,onSelect:t}=e;const i=null!==(n=a.map((e=>{var n;return{content:(0,F.jsx)(Cs,{children:e.name}),title:e.name,key:null!==(n=e.range)&&void 0!==n?n:"custom",value:e}})))&&void 0!==n?n:[],r=i.find((e=>{let{value:n}=e;return n.range===l})),s=(0,b.useCallback)((e=>{t(e.value)}),[t]);return i.length&&r?(0,F.jsx)(ps,{selected:r,options:i,onSelectionChange:s,children:e=>{let{content:n,title:l}=e;return(0,F.jsx)(d.Si,{variant:"contained",startIcon:(0,F.jsx)(g.CT,{inheritColor:!0}),endIcon:(0,F.jsx)(g.D3,{}),sx:{maxWidth:304},tooltip:l,children:n})}}):null})),Cs=j.Ay.div`margin-left:7px;text-overflow:ellipsis;text-align:start;white-space:nowrap;flex:0 0 auto;`;function Ks(e){let{name:n,kind:l,showBackButton:a,onClickBack:t}=e;return(0,F.jsxs)(Dt.A,{children:[a&&(0,F.jsx)(te.mk,{children:(0,F.jsx)(d.pG,{onClick:t,children:(0,F.jsx)(g.A6,{})})}),(0,F.jsxs)(te.w,{children:[n," ",Ls(l)]}),(0,F.jsx)(te.jB,{}),(0,F.jsx)(Fs,{})]})}function Ls(e){var n;switch(e){case"operation":return"Operation";case"resolver":return"Resolver";case"stage":return"Stage";case"subgraph":return"Subgraph";default:return null!==(n=(0,k.dr)(e))&&void 0!==n?n:""}}function Ts(){const e=(0,a.G9O)();return(0,b.useCallback)((n=>{n&&e(k.bP.from(n))}),[e])}function ws(e){let{dataset:n,range:[l,a]}=e;const t=(0,b.useCallback)((e=>({tooltip:{trigger:"axis",padding:6,valueFormatter:e=>"number"===typeof e?(0,k.wk)(e):"-",axisPointer:{label:{formatter:e=>(0,k.ZS)(e.value)}}},dataset:{source:n.map((e=>{let{epoch:n,total:l}=e;return{epoch:n,total:l}})),dimensions:["epoch","total"]},toolbox:{show:!1},brush:{xAxisId:"time",outOfBrush:{},brushStyle:{color:e((e=>e.chart.axisBrush)),borderWidth:0}},xAxis:{id:"time",type:"time",min:l,max:a},yAxis:{type:"value",axisLabel:{formatter:e=>(0,k.wk)(e)}},series:[{type:"line",name:"GraphQL",stack:"errors",emphasis:{focus:"series"},dimensions:["epoch","total"],color:e((e=>e.chart.error)),smooth:!0,symbol:"circle",symbolSize:0,areaStyle:{},lineStyle:{width:1.5}}]})),[n,l,a]),i=Ts();return(0,F.jsx)(ts,{size:"big",buildOption:t,onInit:e=>{i(null),e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"lineX",brushMode:"single"}}),e.on("brushEnd",(e=>{var n,l;i(null!==(n=null===(l=e.areas.at(0))||void 0===l?void 0:l.coordRange)&&void 0!==n?n:null)}))}})}function As(){return(0,F.jsx)(Tn.HY,{title:"No Data"})}function Is(){return(0,F.jsx)(Ml,{})}function Ds(e){let{dataset:n,range:[l,a]}=e;const t=(0,b.useCallback)((e=>({tooltip:{trigger:"axis",padding:6,valueFormatter:e=>"number"===typeof e?(0,k.ng)(e):"-",axisPointer:{label:{formatter:e=>(0,k.ZS)(e.value)}}},legend:{selected:{mean:!0,p99:!1,p95:!1}},dataset:{source:n.map((e=>{let{epoch:n,mean:l,p95:a,p99:t}=e;return{epoch:n,mean:l,p95:a,p99:t}})),dimensions:["epoch","mean","p95","p99"]},toolbox:{show:!1},brush:{xAxisId:"time",outOfBrush:{},brushStyle:{color:e((e=>e.chart.axisBrush)),borderWidth:0}},xAxis:{id:"time",type:"time",min:l,max:a},yAxis:{type:"value",axisLabel:{formatter:e=>(0,k.ng)(e)}},series:[{type:"line",name:"mean",dimensions:["epoch","mean"],smooth:!0,symbol:"circle",symbolSize:0,areaStyle:{},lineStyle:{width:1.5},color:e((e=>e.chart.latency))},{type:"line",name:"p95",dimensions:["epoch","p95"],smooth:!0,symbol:"circle",symbolSize:0,lineStyle:{width:1.5},color:e((e=>e.chart.p95))},{type:"line",name:"p99",dimensions:["epoch","p99"],smooth:!0,symbol:"circle",symbolSize:0,lineStyle:{width:1.5},color:e((e=>e.chart.p99))}]})),[n,l,a]),i=Ts();return(0,F.jsx)(ts,{size:"big",buildOption:t,onInit:e=>{i(null),e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"lineX",brushMode:"single"}}),e.on("brushEnd",(e=>{var n,l;i(null!==(n=null===(l=e.areas.at(0))||void 0===l?void 0:l.coordRange)&&void 0!==n?n:null)}))}})}const Ns=(0,b.memo)((0,b.forwardRef)((function(e,n){let{data:{dataset:l,p95:a},onRangeChange:t}=e;const i=(0,b.useRef)(null),r=(0,b.useRef)(null),s=(0,b.useCallback)((e=>{const n=[{type:"bar",name:"success",dimensions:["bin","successFrequency"],stack:"frequency",barMinHeight:5,itemStyle:{borderRadius:[2,2,0,0]},color:e((e=>e.chart.latency))},{type:"bar",name:"error",dimensions:["bin","errorFrequency"],stack:"frequency",barMinHeight:5,itemStyle:{borderRadius:[2,2,0,0]},color:e((e=>e.chart.error))},{type:"line",name:"p95",markLine:{symbol:"none",lineStyle:{type:"solid"},label:{formatter:"p95",color:e((e=>e.chart.p95Label)),backgroundColor:"inherit",borderRadius:2,padding:[2,4],distance:2},data:[{xAxis:a,name:"p95"}]},tooltip:{show:!1},symbol:"none",itemStyle:{color:e((e=>e.chart.p95))},lineStyle:{width:0}}];return r.current&&n.push(r.current),{tooltip:{trigger:"axis",padding:6,valueFormatter:e=>"number"===typeof e?(0,k.wk)(e):"-",axisPointer:{label:{formatter:e=>(0,k.ng)(e.value)}}},toolbox:{show:!1},dataset:{source:l.map((e=>{let{bin:n,errorFrequency:l,successFrequency:a}=e;return{bin:n,successFrequency:a,errorFrequency:l}}))},brush:{xAxisId:"bin",outOfBrush:{},brushStyle:{color:e((e=>e.chart.axisBrush)),borderWidth:0}},xAxis:{id:"bin",type:"log",axisLabel:{formatter:e=>(0,k.ng)(e)}},yAxis:{type:"log",min:1,axisLabel:{formatter:e=>(0,k.wk)(e)}},series:n}}),[l,a]);return(0,b.useImperativeHandle)(n,(()=>({setCurrent:e=>{var n;null===(n=i.current)||void 0===n||n.setOption(((n,l)=>{const a=n.series.filter((e=>{let{name:n}=e;return"current"!==n}));return null===e?r.current&&(r.current={...r.current,markLine:{...r.current.data,data:[]}},a.push(r.current)):(r.current={type:"line",name:"current",animation:!1,markLine:{symbol:"none",lineStyle:{type:"solid"},label:{formatter:"current",color:l((e=>e.chart.currentLabel)),backgroundColor:"inherit",borderRadius:2,padding:[2,4],distance:2},data:[{xAxis:e,name:"current"}]},tooltip:{show:!1},symbol:"none",itemStyle:{color:l((e=>e.chart.current))},lineStyle:{width:0}},a.push(r.current)),{...n,series:a}}))}}))),(0,F.jsx)(ts,{ref:i,buildOption:s,onInit:e=>{null===t||void 0===t||t(null),e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"lineX",brushMode:"single"}}),e.on("brushEnd",(e=>{var n,l;null===t||void 0===t||t(null!==(n=null===(l=e.areas.at(0))||void 0===l?void 0:l.coordRange)&&void 0!==n?n:null)}))}})})));function Rs(e){let{plotValues:n,duration:l}=e;const{width:a,tickValues:t,xScale:i}=n;let r=function(e,n){if(!n||e.length<2)return e;const l=e[1]-e[0],a=n-l;return e.filter((e=>e<a))}(t,l).reduce(((e,n)=>{const l=i(n);return Number.isFinite(l)?[...e,{position:l,label:(0,k.ng)(n)}]:e}),[]);return l>0&&(r=[...r,{position:i(l),label:(0,k.ng)(l)}]),(0,F.jsx)(Es,{children:(0,F.jsx)($s,{children:(0,F.jsx)(Vs,{style:{width:a},children:r.map(((e,n,l)=>{let{position:a,label:t}=e,{length:i}=l;return(0,F.jsx)(Ps,{x:a,y:0,className:n+1===i?"last":void 0,children:t},`label-${a}`)}))})})})}const Es=j.Ay.div`position:sticky;z-index:2;top:0;box-sizing:border-box;border-bottom:1px solid ${o.lt.chart.axisLine};width:100%;height:${40}px;`,$s=j.Ay.svg`position:absolute;top:0;left:0;width:100%;height:${40}px;`,Vs=j.Ay.g`transform:translate(0,25px);`,Ps=j.Ay.text`fill:${o.lt.chart.axisLabel};font-size:1rem;text-anchor:middle;&.last{font-size:1.25rem;}`;var Ms=l(15079);function Os(e){let{duration:n,plotValues:l,height:a}=e;const{tickValues:t,xScale:i}=l;let r=t.reduce(((e,n)=>{const l=i(n);return Number.isFinite(l)?[...e,l]:e}),[]);return n>0&&(r=[...r,i(n)]),(0,F.jsx)(_s,{height:a,children:r.map(((e,n,l)=>{let{length:t}=l;return(0,F.jsx)(Gs,{x1:e,x2:e,y1:0,y2:a,className:n+1===t?"last":void 0},`line-${n}`)}))})}const _s=j.Ay.svg`position:relative;top:0;left:0;width:100%;`,Gs=j.Ay.line`stroke:${o.lt.chart.splitLine};stroke-dasharray:4,2;&.last{stroke:${o.lt.chart.marker};}`;function Hs(e){const[n,l]=(0,b.useState)(0),a=(0,b.useRef)(null);return(0,y.wY)(a,(e=>{let[n]=e;l(n.contentRect.width)})),(0,F.jsx)(Bs,{ref:a,children:(0,F.jsx)(zs,{width:n,...e})})}function zs(e){let{width:n,itemsHeight:l,margins:a,xMin:t,xMax:i}=e;if(!n||!i)return null;const r=function(e){let{width:n,margins:l,xMin:a=0,xMax:t}=e;const i=Math.max(2,Math.floor(n/100)-1),r=(0,Ms.A)().domain([a,t]).range([l.left,n-l.right]);return{margins:l,tickValues:r.ticks(i),width:n,xDomain:r.domain(),xMax:t,xScale:r}}({width:n,margins:a,xMin:t,xMax:i}),s=i-(null!==t&&void 0!==t?t:0);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Rs,{duration:s,plotValues:r}),(0,F.jsx)(Os,{duration:s,plotValues:r,height:l})]})}const Bs=j.Ay.div`position:relative;width:100%;`;function Qs(e){var n,l;let{active:a,item:t,color:i,totalDuration:r,margins:s,onClickItem:o}=e;const d=(0,b.useRef)(null),c=t.duration/r*100,u=t.offset/r*100,g=(0,b.useCallback)((e=>{o&&(e.stopPropagation(),o(t))}),[t,o]);return(0,F.jsx)(Us,{ref:d,className:a?"active":void 0,$margins:s,$failed:t.failed,onClick:g,children:(0,F.jsxs)(Ys,{children:[(0,F.jsx)(Ws,{style:{left:`${u}%`,width:`${c}%`,backgroundColor:i},children:null!==(n=t.segments)&&void 0!==n&&n.length?(0,F.jsx)(Xs,{children:null===(l=t.segments)||void 0===l?void 0:l.map((e=>(0,F.jsx)(Zs,{$color:e.color,$left:e.left,$width:e.width})))}):null}),(0,F.jsx)(qs,{style:{minWidth:`${Math.max(100-u,0)}%`},children:t.content})]})})}const Us=j.Ay.div`position:relative;box-sizing:border-box;border-bottom:1px solid ${o.lt.chart.gridLine};padding-right:${e=>{let{$margins:n}=e;return n.right}}px;padding-left:${e=>{let{$margins:n}=e;return n.left}}px;height:${40}px;color:${e=>{let{$failed:n}=e;return n?o.lt.base.itemFailedText:o.lt.base.itemText}};background-color:${e=>{let{$failed:n}=e;return n?o.lt.base.itemFailed:o.lt.base.item}};cursor:pointer;&.active{color:${o.lt.base.itemActiveText};background-color:${o.lt.base.itemActive};}&:hover{color:${o.lt.base.itemHoverText};background-color:${o.lt.base.itemHover};}`,Ys=j.Ay.div`position:relative;box-sizing:border-box;padding-top:4px;height:${40}px;`,Ws=j.Ay.div`position:relative;right:0;box-sizing:border-box;border-radius:2px;min-width:2px;height:14px;`,qs=j.Ay.span`position:absolute;top:23px;right:0;display:flex;align-items:center;max-width:100%;height:1rem;gap:8px;& > *{white-space:nowrap;}`,Xs=j.Ay.div`position:relative;top:4px;display:flex;flex-direction:row;box-sizing:border-box;min-width:2px;height:4px;background-color:transparent;`,Zs=j.Ay.div`position:absolute;left:${e=>{let{$left:n}=e;return 100*n}}%;box-sizing:border-box;width:${e=>{let{$width:n}=e;return 100*n}}%;min-width:2px;height:4px;background-color:${e=>e.$color};`;function Js(e){let{activeItemId:n,legends:l,items:a,offset:t,totalDuration:i,showLoading:r,onClickItem:s}=e;const o=40*(a.length?a.length:8);return(0,F.jsxs)(eo,{children:[(0,F.jsx)(no,{children:(0,F.jsx)(Hs,{itemsHeight:o,margins:{right:50,left:50},xMax:a.length?i:200})}),(0,F.jsx)(lo,{style:{height:o+"px"},children:a.length?a.map((e=>{var a,r;return(0,F.jsx)(Qs,{active:e.id===n,item:{...e,offset:e.epoch-t},color:null!==(a=null===(r=l.find((n=>{let{name:l}=n;return l===e.legendName})))||void 0===r?void 0:r.color)&&void 0!==a?a:"initial",totalDuration:i,margins:{right:50,left:50},onClickItem:s},e.id)})):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(ao,{}),(0,F.jsx)(io,{style:{height:o+"px"},children:(0,F.jsx)(Tn.HY,{title:"No Data"})})]})})]})}const eo=j.Ay.div`position:relative;width:100%;`,no=j.Ay.div`position:absolute;width:100%;`,lo=j.Ay.div`position:relative;padding-top:${40}px;width:100%;`;function ao(){return(0,F.jsxs)(to,{children:[(0,F.jsx)(Et.A,{animation:!1,width:"100%",height:"24px"}),(0,F.jsx)(Et.A,{animation:!1,width:"90%",height:"24px",sx:{marginLeft:"5%"}}),(0,F.jsx)(Et.A,{animation:!1,width:"75%",height:"24px",sx:{marginLeft:"15%"}}),(0,F.jsx)(Et.A,{animation:!1,width:"50%",height:"24px",sx:{marginLeft:"35%"}}),(0,F.jsx)(Et.A,{animation:!1,width:"30%",height:"24px",sx:{marginLeft:"55%"}}),(0,F.jsx)(Et.A,{animation:!1,width:"65%",height:"24px",sx:{marginLeft:"25%"}}),(0,F.jsx)(Et.A,{animation:!1,width:"50%",height:"24px",sx:{marginLeft:"45%"}}),(0,F.jsx)(Et.A,{animation:!1,width:"30%",height:"24px",sx:{marginLeft:"70%"}})]})}const to=j.Ay.div`position:absolute;top:50px;right:50px;bottom:10px;left:50px;display:flex;flex-direction:column;justify-content:space-between;opacity:0.1;`,io=j.Ay.div`position:absolute;z-index:2;width:100%;`;let ro=function(e){return e.Client="client",e.Server="server",e.Producer="producer",e.Consumer="consumer",e.Internal="internal",e}({}),so=function(e){return e.Default="default",e.DB="db",e.GraphQLOperation="graphql-operation",e.GraphQLResolver="graphql-resolver",e.HTTPClient="http-client",e.HTTPServer="http-server",e}({});function oo(e){const n=e.events.filter((e=>{let{name:n}=e;return"exception"===n})).length,l="error"===e.statusCode||n>0;return l?{failed:l,exceptionCount:n}:null}function co(e){switch(e){case so.DB:return"DB";case so.GraphQLOperation:case so.GraphQLResolver:return"GraphQL";case so.HTTPClient:case so.HTTPServer:return"HTTP";default:return"Internal"}}function uo(e){let{type:n}=e;switch(n){case so.DB:return(0,F.jsx)(g.bN,{});case so.GraphQLOperation:return(0,F.jsx)(g.hf,{});case so.GraphQLResolver:return(0,F.jsx)(g.qz,{});case so.HTTPClient:return(0,F.jsx)(g.Y_,{});case so.HTTPServer:return(0,F.jsx)(g.K6,{});default:return null}}function go(e){let{duration:n}=e;return n?(0,F.jsx)(z.A,{variant:"body2",component:"div",children:(0,k.ng)(n)}):null}function mo(e){let{count:n}=e;return n?(0,F.jsx)(bo,{children:n>1?`${n} errors`:"error"}):null}function po(e){let{count:n}=e;return n?(0,F.jsx)(bo,{children:n>1?`${n} exceptions`:"exception"}):null}function ho(e){let{epoch:n}=e;return n?(0,F.jsx)(z.A,{variant:"body2",component:"div",children:(0,k.CS)(n)}):null}function yo(e){let{epoch:n}=e;return n?(0,F.jsx)(ie.A,{title:(0,k.CS)(n),children:(0,F.jsx)(z.A,{variant:"body2",component:"div",children:(0,k.fw)(n)})}):null}function fo(e){let{statusCode:n}=e;return n?(0,F.jsx)(z.A,{variant:"body2",component:"div",children:n}):null}function xo(e){let{kind:n}=e;switch(n){case ro.Client:return(0,F.jsx)(Co,{children:"Client"});case ro.Server:return(0,F.jsx)(Co,{children:"Server"});case ro.Producer:return(0,F.jsx)(Co,{children:"Producer"});case ro.Consumer:return(0,F.jsx)(Co,{children:"Consumer"});default:return(0,F.jsx)(Co,{children:"Internal"})}}const ko=j.Ay.div`display:flex;flex:0 0 auto;align-items:center;justify-content:center;gap:4px;border-radius:4px;height:20px;padding-right:6px;padding-left:6px;font-size:0.917rem;line-height:1.5rem;text-transform:lowercase;`,bo=(0,j.Ay)(ko)`background-color:${o.lt.states.failure};color:${o.lt.states.failureText};& > svg{fill:${o.lt.states.failureText};}`,vo=(0,j.Ay)(ko)`background-color:${o.lt.states.success};color:${o.lt.states.successText};& > svg{fill:${o.lt.states.successText};}`,jo=(0,j.Ay)(ko)`background-color:${o.lt.states.info};color:${o.lt.states.infoText};& > svg{fill:${o.lt.states.infoText};}`,Fo=(0,j.Ay)(ko)`background-color:${o.lt.states.info};color:${o.lt.states.infoText};& > svg{fill:${o.lt.states.infoText};}`,So=(0,j.Ay)(ko)`background-color:${o.lt.states.info};color:${o.lt.states.infoText};& > svg{fill:${o.lt.states.infoText};}`,Co=(0,j.Ay)(ko)`background-color:${o.lt.states.highlight1};color:${o.lt.states.highlight1Text};& > svg{fill:${o.lt.states.highlight1Text};}`,Ko=(0,b.memo)((function(e){let{activeSpanId:n,spans:l,onShowSpanDetails:a,...t}=e;const i=[{name:"HTTP",color:o.lt.chart.palette[0]},{name:"GraphQL",color:o.lt.chart.palette[1]},{name:"Internal",color:o.lt.chart.palette[2]},{name:"DB",color:o.lt.chart.palette[3]}],r=(0,b.useCallback)((e=>{let{id:n}=e;if(a){const e=l.find((e=>e.id===n));e&&a(e)}}),[l,a]);return(0,F.jsx)(Js,{activeItemId:n,legends:i,items:l.map((e=>{var n;const l=oo(e);return{id:e.id,legendName:co(e.type),duration:e.duration,epoch:e.epoch,offset:e.offset,failed:null===l||void 0===l?void 0:l.failed,content:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(uo,{type:e.type}),(0,F.jsx)(fo,{statusCode:null===(n=e.http)||void 0===n?void 0:n.statusCode}),(0,F.jsx)(z.A,{variant:"body2",children:e.name}),(0,F.jsx)(go,{duration:e.duration}),(null===l||void 0===l?void 0:l.failed)&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(g.ik,{}),!!l.exceptionCount&&(0,F.jsx)(po,{count:l.exceptionCount})]})]})}})),onClickItem:r,...t})}));var Lo=l(35545);function To(e){let{onSortModelChange:n,...l}=e;const a=(0,Lo.b)();return(0,F.jsx)(ot.C,{apiRef:a,scrollEndThreshold:400,disableColumnReorder:!0,disableRowSelectionOnClick:!0,rowSelection:!1,sortingMode:"server",sortingOrder:["desc","asc",null],initialState:{sorting:{sortModel:[{field:"impact",sort:"desc"}]}},slots:{noRowsOverlay:As},onSortModelChange:(e,l)=>{n&&(n(e,l),a.current.scrollToIndexes({rowIndex:0}))},...l})}function wo(e){let{kind:n,name:l}=e;return(0,F.jsxs)(Ao,{children:[(0,F.jsx)(Io,{kind:n}),(0,F.jsx)(Do,{name:l})]})}const Ao=j.Ay.div`display:flex;align-items:center;gap:6px;`,Io=e=>{let{kind:n}=e;switch(n){case"QUERY":return(0,F.jsx)(Sl,{title:"Query"});case"MUTATION":return(0,F.jsx)(Cl,{title:"Mutation"});case"SUBSCRIPTION":return(0,F.jsx)(Kl,{title:"Subscription"});default:return null}},Do=e=>{let{name:n}=e;return n?(0,F.jsx)(st.$,{children:n}):null};var No=l(66699);const Ro={field:"operation",headerName:"Operation",width:250,sortable:!1,renderCell(e){let{row:n}=e;return(0,F.jsx)(Eo,{kind:n.node.kind,hash:n.node.hash,operationName:n.node.operationName})}};function Eo(e){let{hash:n,operationName:l,kind:t}=e;const i=(0,a.I7$)(),r=(0,a.WAJ)();return i?(0,F.jsx)($t.A,{onClick:()=>r({stageId:i.id,hash:n,operationName:l}),children:(0,F.jsx)(wo,{kind:t,name:l})}):(0,F.jsx)(wo,{kind:t,name:l})}const $o={field:"resolver",headerName:"Resolver",width:250,sortable:!1,renderCell(e){let{row:n}=e;return(0,F.jsx)(Vo,{coordinate:n.node.coordinate})}};function Vo(e){let{coordinate:n}=e;const l=(0,a.I7$)(),t=(0,a.VA7)();return l?(0,F.jsx)($t.A,{onClick:()=>t({stageId:l.id,coordinate:n}),children:(0,F.jsx)(st.$,{children:n})}):(0,F.jsx)(st.$,{children:n})}const Po={field:"subgraph",headerName:"Subgraph",width:250,sortable:!1,renderCell(e){let{row:n}=e;return(0,F.jsx)(Mo,{name:n.node.name,remoteId:n.node.remoteId,stage:n.node.stage})}};function Mo(e){let{name:n,remoteId:l,stage:t}=e;const[i,r]=(0,b.useState)(),s=(0,a.$KT)().serialize(),o=(0,a.Pan)();return(0,b.useEffect)((()=>{l&&(0,x._sj)(l).then((e=>{r(null===e||void 0===e?void 0:e.id)}))}),[l,r]),i?(0,F.jsx)($t.A,{onClick:()=>o(i,{activeStage:t,metricsDateTimeRange:s,activeViewId:"monitoring"}),children:(0,F.jsx)(st.$,{children:n})}):(0,F.jsx)(st.$,{children:n})}const Oo={field:"averageLatency",headerName:"Latency",width:150,minWidth:150,sortable:!0,align:"right",renderCell(e){let{row:n}=e;return n.node.averageLatency&&n.node.latency?(0,F.jsxs)(qo,{children:[(0,F.jsx)("span",{children:(0,k.ng)(n.node.averageLatency)}),(0,F.jsx)(Qo,{dataset:n.node.latency.dataset,range:n.range})]}):null}},_o={field:"averageLatency",headerName:"Latency",width:150,minWidth:150,sortable:!0,align:"right",renderCell(e){let{row:n}=e;return n.node.averageLatency&&n.node.latency?(0,F.jsxs)(qo,{children:[(0,F.jsx)("span",{children:(0,k.ng)(n.node.averageLatency)}),(0,F.jsx)(Uo,{dataset:n.node.latency.dataset,range:n.range})]}):null}},Go={field:"opm",headerName:"Throughput",width:150,minWidth:150,sortable:!0,align:"right",renderCell(e){let{row:n}=e;return n.node.opm&&n.node.throughput?(0,F.jsxs)(qo,{children:[(0,F.jsx)("span",{children:(0,k.wk)(n.node.opm)+" opm"}),(0,F.jsx)(Yo,{dataset:n.node.throughput.dataset,range:n.range})]}):null}},Ho={field:"errorRate",headerName:"Errors",width:150,minWidth:150,sortable:!0,align:"right",renderCell(e){let{row:n}=e;return n.node.errorRate&&n.node.throughput?(0,F.jsxs)(qo,{children:[(0,F.jsx)("span",{children:(0,k.Io)(n.node.errorRate)}),(0,F.jsx)(Wo,{dataset:n.node.throughput.dataset,range:n.range})]}):null}},zo={field:"impact",headerName:"Impact",width:150,sortable:!0,align:"right",renderCell(e){let{row:n}=e;return n.node.impact?(0,F.jsx)(Bo,{data:n.node.impact}):null}};function Bo(e){let{data:n}=e;return(0,F.jsx)(No.A,{variant:"determinate",color:"primary",value:n,className:"impact",sx:{width:80,height:4,borderRadius:1}})}function Qo(e){let{dataset:n,range:[l,a]}=e;const t=(0,b.useCallback)((e=>({legend:{show:!1},animation:!1,dataset:{source:n.map((e=>{let{epoch:n,mean:l,p99:a}=e;return{epoch:n,mean:l,p99:a}})),dimensions:["epoch","mean","p99"]},xAxis:{type:"time",show:!1,min:l,max:a},yAxis:{type:"value",show:!1},series:[{type:"scatter",name:"p99",dimensions:["epoch","p99"],symbol:"circle",symbolSize(e){let{p99:n,mean:l}=e;return n>l?3:0},color:e((e=>e.chart.p99))},{type:"line",name:"mean",dimensions:["epoch","mean"],smooth:!0,symbol:"circle",symbolSize:0,areaStyle:{},lineStyle:{width:1.5},color:e((e=>e.chart.latency))}]})),[n,l,a]);return(0,F.jsx)(ts,{size:"mini",buildOption:t})}function Uo(e){let{dataset:n,range:[l,a]}=e;const t=(0,b.useCallback)((e=>({legend:{show:!1},animation:!1,dataset:{source:n.map((e=>{let{epoch:n,p95:l}=e;return{epoch:n,p95:l}})),dimensions:["epoch","p95"]},xAxis:{type:"time",show:!1,min:l,max:a},yAxis:{type:"value",show:!1},series:[{type:"line",name:"p95",dimensions:["epoch","p95"],smooth:!0,symbol:"circle",symbolSize:0,areaStyle:{},lineStyle:{width:1.5},color:e((e=>e.chart.latency))}]})),[n,l,a]);return(0,F.jsx)(ts,{size:"mini",buildOption:t})}function Yo(e){let{dataset:n,range:[l,a]}=e;const t=(0,b.useCallback)((e=>({legend:{show:!1},animation:!1,dataset:{source:n.map((e=>{let{epoch:n,opm:l}=e;return{epoch:n,opm:l}})),dimensions:["epoch","opm"]},xAxis:{type:"time",show:!1,min:l,max:a},yAxis:{type:"value",show:!1},series:[{type:"line",name:"OPM",dimensions:["epoch","opm"],smooth:!0,symbol:"circle",symbolSize:0,areaStyle:{},lineStyle:{width:1.5},color:e((e=>e.chart.throughput))}]})),[n,l,a]);return(0,F.jsx)(ts,{size:"mini",buildOption:t})}function Wo(e){let{dataset:n,range:[l,a]}=e;const t=(0,b.useCallback)((e=>({grid:{top:"50%",bottom:"50%"},legend:{show:!1},animation:!1,dataset:{source:n.map((e=>{let{epoch:n,errorRate:l}=e;return{epoch:n,rate:l,baseline:0}})),dimensions:["epoch","rate"]},xAxis:{type:"time",show:!1,boundaryGap:["18%","18%"],min:l,max:a},yAxis:{type:"value",splitLine:{lineStyle:{type:"solid"}},axisLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1}},series:[{type:"scatter",name:"error",symbol:"circle",symbolSize(e){let{rate:n}=e;return n?(0,k.qE)(16*n,4,16):0},itemStyle:{color:e((e=>e.chart.error))},encode:{x:"epoch",y:"baseline"}}]})),[n,l,a]);return(0,F.jsx)(ts,{size:"mini",buildOption:t})}const qo=j.Ay.div`display:flex;align-items:center;gap:6px;`;function Xo(e){return(0,F.jsx)(To,{columns:Zo,getRowId:e=>{let{node:n}=e;return n.id},...e})}const Zo=[Ro,Oo,Go,Ho,zo];function Jo(e){return(0,F.jsx)(To,{columns:ed,getRowId:e=>{let{node:n}=e;return n.id},...e})}const ed=[$o,Oo,Go,Ho,zo];function nd(e){return(0,F.jsx)(To,{columns:ld,getRowId:e=>{let{node:n}=e;return n.id},...e})}const ld=[Po,_o,Go,Ho,zo];function ad(e){let{dataset:n,range:[l,a]}=e;const t=(0,b.useCallback)((e=>({tooltip:{trigger:"axis",padding:6,valueFormatter:e=>"number"===typeof e?(0,k.wk)(e):"-",axisPointer:{label:{formatter:e=>(0,k.ZS)(e.value)}}},dataset:{source:n.map((e=>{let{epoch:n,opm:l,success:a,error:t}=e;return{epoch:n,opm:l,success:a,error:t}})),dimensions:["epoch","opm","success","error"]},legend:{selected:{OPM:!0,Success:!1,Error:!0}},toolbox:{show:!1},brush:{xAxisId:"time",outOfBrush:{},brushStyle:{color:e((e=>e.chart.axisBrush)),borderWidth:0}},xAxis:{id:"time",type:"time",min:l,max:a},yAxis:[{type:"value",axisLabel:{formatter:e=>(0,k.wk)(e)+" opm"}},{type:"value",splitLine:{show:!1},axisLabel:{formatter:e=>(0,k.wk)(e)}}],series:[{type:"line",name:"OPM",dimensions:["epoch","opm"],tooltip:{valueFormatter:e=>"number"===typeof e?(0,k.wk)(e)+" opm":"-"},smooth:!0,symbol:"circle",symbolSize:0,areaStyle:{},lineStyle:{width:1.5},color:e((e=>e.chart.throughput))},{type:"line",name:"Success",dimensions:["epoch","success"],smooth:!0,symbol:"circle",symbolSize:0,lineStyle:{width:1.5},yAxisIndex:1,color:e((e=>e.chart.success))},{type:"bar",name:"Error",dimensions:["epoch","error"],smooth:!0,symbol:"circle",symbolSize:0,lineStyle:{width:1.5},yAxisIndex:1,color:e((e=>e.chart.error))}]})),[n,l,a]),i=Ts();return(0,F.jsx)(ts,{size:"big",buildOption:t,onInit:e=>{i(null),e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"lineX",brushMode:"single"}}),e.on("brushEnd",(e=>{var n,l;i(null!==(n=null===(l=e.areas.at(0))||void 0===l?void 0:l.coordRange)&&void 0!==n?n:null)}))}})}var td,id;function rd(e){let{deploymentId:n,fragmentRef:t,hasNext:i,isLoadingNext:r,loadNext:s}=e;const o=(0,a.dMM)(),{edges:d}=(0,dt.useFragment)(void 0!==td?td:td=l(72581),t),c=(0,b.memo)((function(e){var l;let{data:a,index:t,style:i}=e;const r=null===(l=a.at(t))||void 0===l?void 0:l.node;return r?(0,F.jsx)("div",{style:i,children:(0,F.jsx)(sd,{fragmentRef:r,deploymentId:n,onActivate:o})}):null}),Ft.t7),u=null!==d&&void 0!==d?d:[];return u.length?(0,F.jsx)(te.wn,{children:(0,F.jsx)(te.VP,{children:(0,F.jsx)(jt.w,{itemCount:i?u.length+2:u.length+1,itemData:u,itemKey:(e,n)=>{var l,a;return null!==(l=null===(a=n.at(e))||void 0===a?void 0:a.node.id)&&void 0!==l?l:"item-"+e},itemSize:68,tabIndex:-1,isItemLoaded:e=>e<=u.length,onLoadMoreItems:()=>{!r&&i&&s(15)},children:c})})}):null}function sd(e){let{fragmentRef:n,deploymentId:a,onActivate:t}=e;const{id:i,__typename:r,approval:s,createdAt:o,status:d,tag:c,client:u,subgraph:m}=(0,dt.useFragment)(void 0!==id?id:id=l(61406),n),p=(0,b.useCallback)((()=>{t(i)}),[i,t]);return(0,F.jsxs)(gd,{className:U()({active:a===i}),onClick:p,children:[(0,F.jsx)(od,{status:d}),(0,F.jsxs)(pd,{children:[(0,F.jsxs)(cd,{children:[(0,F.jsx)(z.A,{variant:"h6",children:dd(r,d)}),(0,F.jsxs)(jo,{children:[(0,F.jsx)(g.gq,{}),c]}),(null===u||void 0===u?void 0:u.name)&&(0,F.jsx)(Fo,{children:u.name}),m&&(0,F.jsxs)(So,{children:[m.api&&(0,F.jsx)(g.jc,{}),m.name]}),s&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(hd,{}),(0,F.jsxs)(vo,{children:[(0,F.jsx)(g.M3,{inheritColor:!0}),"Approved"]})]})]}),(0,F.jsxs)(ud,{children:[(0,F.jsx)(ie.A,{title:(0,k.YS)(o),children:(0,F.jsxs)(z.A,{variant:"body2",children:["Started ",(0,F.jsx)("strong",{children:(0,k.fw)(o)})]})}),s&&(0,F.jsx)(ie.A,{title:(0,k.YS)(s.approvedAt),children:(0,F.jsxs)(z.A,{variant:"body2",children:["Approved"," ",(0,F.jsx)("strong",{children:(0,k.fw)(s.approvedAt)})," by"," ",(0,F.jsx)("strong",{children:s.approvedBy.username})]})})]})]})]})}function od(e){let{status:n}=e;switch(n){case"QUEUED":return(0,F.jsx)(md,{children:(0,F.jsx)(g.xm,{})});case"READY":case"PROCESSING":case"WAITING_FOR_APPROVAL":case"APPROVED":return(0,F.jsx)(md,{children:(0,F.jsx)(Pl.A,{size:18})});case"SUCCEEDED":return(0,F.jsx)(md,{children:(0,F.jsx)(g.BK,{})});case"FAILED":return(0,F.jsx)(md,{children:(0,F.jsx)(g.ik,{})});case"CANCELLED":return(0,F.jsx)(md,{children:(0,F.jsx)(g.tT,{})})}}function dd(e,n){const l=function(e){switch(e){case"SchemaDeployment":return"Schema";case"ClientDeployment":return"Client";case"FusionConfigurationDeployment":return"Gateway Configuration";default:return"New"}}(e);switch(n){case"QUEUED":return`${l} deployment queued`;case"READY":case"PROCESSING":return`Evaluating ${l}`;case"WAITING_FOR_APPROVAL":return`Waiting for ${l} approval`;case"APPROVED":return`Deploying ${l}`;case"SUCCEEDED":return`${l} Deployment succeeded`;case"FAILED":return`${l} Deployment failed`;case"CANCELLED":return`${l} deployment cancelled`}}const cd=j.Ay.div`display:flex;flex:0 0 auto;flex-direction:row;align-items:center;gap:8px;& > h6{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}`,ud=j.Ay.div`display:flex;flex:0 0 auto;flex-direction:row;align-items:center;gap:8px;& > *{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}`,gd=j.Ay.div`display:flex;flex:0 0 auto;flex-direction:row;border-bottom:1px solid ${o.lt.base.itemSeparator};padding:12px 24px;gap:16px;cursor:pointer;transition:background-color 0.2s ease;${cd} > h6{color:${o.lt.base.itemText};transition:color 0.2s ease;}&:hover{background-color:${o.lt.base.itemHover};${cd} > h6{color:${o.lt.base.itemHoverText};}}&.active{background-color:${o.lt.base.itemActive};${cd} > h6{color:${o.lt.base.itemActiveText};}}`,md=j.Ay.div`display:flex;flex:0 0 auto;flex-direction:row;align-items:center;justify-content:center;& > svg{width:20px;height:20px;}`,pd=j.Ay.div`display:flex;flex:1 1 auto;flex-direction:column;gap:4px;`,hd=j.Ay.div`flex:1 1 auto;`;var yd,fd,xd;function kd(e){var n,t;let{fragmentRef:i,deploymentId:r}=e;const s=(0,a.xIY)(),o=(0,a.dMM)(),d=(0,a.gfI)(),{data:c,hasNext:u,isLoadingNext:g,loadNext:m}=(0,dt.usePaginationFragment)(void 0!==yd?yd:yd=l(9983),i);if(null!==c&&void 0!==c&&null!==(n=c.deployments)&&void 0!==n&&null!==(t=n.edges)&&void 0!==t&&t.length){const{edges:e}=c.deployments;return e.length&&!e.some((e=>e.node.id===r))?o(e[0].node.id):e.length&&r||o(null),(0,F.jsx)(bn.YV,{id:"clients",asideWidth:s,mainPane:"left",leftContent:(0,F.jsx)(rd,{deploymentId:null!==r&&void 0!==r?r:void 0,fragmentRef:c.deployments,hasNext:u,isLoadingNext:g,loadNext:m}),rightContent:(0,F.jsx)(Rr,{deploymentId:null!==r&&void 0!==r?r:void 0}),onAsideWidthChange:d})}return(0,F.jsx)(ns,{})}function bd(e){let{stage:n}=e;const t=(0,a.me9)(),i=Nt.ConnectionHandler.getConnectionID(n.id,"deployment_container_api_deployments");return(0,dt.useSubscription)((0,b.useMemo)((()=>({subscription:void 0!==fd?fd:fd=l(36969),variables:{stageId:n.id,connections:[i]}})),[i,n.id])),(0,F.jsxs)(te.wn,{children:[(0,F.jsx)(te.AW,{spacing:"right",children:(0,F.jsx)(vd,{stage:n})}),(0,F.jsx)(te.Y2,{}),(0,F.jsx)(te.gN,{children:(0,F.jsx)(It.A,{container:!0,spacing:.5,sx:{flexGrow:1,flexShrink:1,flexBasis:"auto",padding:1},children:(0,F.jsx)(It.A,{sx:{display:"flex",flexDirection:"column",flexGrow:1,flexShrink:1,flexBasis:"auto",overflow:"auto"},children:(0,F.jsx)(_.A,{children:(0,F.jsx)(H.A,{className:"no-padding",sx:{display:"flex",pt:0},children:(0,F.jsx)(b.Suspense,{fallback:(0,F.jsx)(Ml,{}),children:(0,F.jsx)(jd,{stageId:n.id,deploymentId:t})})})})})})})]})}function vd(e){let{stage:n}=e;return(0,F.jsx)(Dt.A,{children:(0,F.jsxs)(te.w,{children:[n.displayName," Stage"]})})}function jd(e){let{stageId:n,deploymentId:a}=e;const[t,i]=(0,y.V7)(),{stage:r}=(0,dt.useLazyLoadQuery)(void 0!==xd?xd:xd=l(41358),{stageId:n},{fetchKey:t,fetchPolicy:"store-and-network"});return nt(i),r?(0,F.jsx)(kd,{fragmentRef:r,deploymentId:null!==a&&void 0!==a?a:void 0}):(0,F.jsx)(ns,{})}var Fd=l(60899),Sd=l(39694);function Cd(e){let{title:n,children:l,headerButtons:a,tabsContent:t,onClose:i,...r}=e;return(0,F.jsx)(Sd.Ay,{anchor:"right",onClose:i,...r,children:r.open&&(0,F.jsx)(te.hM,{children:(0,F.jsxs)(wd,{children:[(0,F.jsxs)(Ad,{children:[(0,F.jsxs)(Id,{children:[(0,F.jsx)(Dd,{children:n}),a,(0,F.jsx)(te.jB,{}),(0,F.jsx)(d.pG,{onClick:i,children:(0,F.jsx)(g.US,{})})]}),t&&(0,F.jsx)(Nd,{children:t})]}),(0,F.jsx)(Rd,{children:l})]})})})}const Kd=(0,j.Ay)(d.e2)`margin-left:8px;`,Ld=j.Ay.div`display:flex;flex:0 0 auto;flex-direction:row;align-items:center;gap:8px;padding:24px 13px 16px;color:${o.lt.base.subtitle};`,Td=j.Ay.div`flex:1 1 auto;`,wd=j.Ay.div`display:flex;flex:1 1 auto;flex-direction:column;width:80vw;max-width:800px;min-width:400px;background-color:${o.lt.components.dialog};@media (min-width:1600px){max-width:1000px;}`,Ad=j.Ay.header`display:flex;flex:0 0 auto;flex-direction:column;border-bottom:1px solid ${o.lt.base.border};`,Id=j.Ay.header`display:flex;flex:0 0 60px;flex-direction:row;align-items:center;padding:0 13px;overflow:hidden;`,Dd=j.Ay.h1`display:flex;flex:0 0 auto;flex-direction:row;font-size:1.5rem;font-weight:500;color:${o.lt.base.heading};`,Nd=j.Ay.div`display:flex;flex:0 0 36px;flex-direction:row;align-items:center;padding-right:5px;padding-left:5px;overflow:hidden;`,Rd=j.Ay.main`display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden;`;function Ed(e){let{severity:n}=e;return n<13?(0,F.jsx)(g.mo,{}):n<17?(0,F.jsx)(g.id,{}):n<25?(0,F.jsx)(g.ik,{}):(0,F.jsx)(g.mo,{})}var $d,Vd,Pd,Md,Od,_d,Gd;function Hd(e){let{fragmentRef:n,onClose:a,onNext:t,onPrevious:i}=e;const r=(0,dt.useFragment)(void 0!==$d?$d:$d=l(39350),n),{Tabs:s,Tab:o,MoreTabs:c}=(0,y.NS)(),[u,m]=(0,b.useState)(0),p=(0,b.useMemo)((()=>r?(0,F.jsx)(zd,{fragmentRef:r,viewId:u}):void 0),[r,u]),h=(0,b.useMemo)((()=>(0,F.jsxs)(Kd,{children:[(0,F.jsx)(d.pG,{disabled:!i,onClick:i,children:(0,F.jsx)(g.Mt,{})}),(0,F.jsx)(d.pG,{disabled:!t,onClick:t,children:(0,F.jsx)(g.D3,{})})]})),[t,i]),f=(0,b.useCallback)((e=>{switch(e.key){case"ArrowUp":e.preventDefault(),null===i||void 0===i||i();break;case"ArrowDown":e.preventDefault(),null===t||void 0===t||t()}}),[t,i]),x=(0,b.useCallback)(((e,n)=>{m(n)}),[m]);return(0,F.jsx)(Cd,{open:!!r,title:"Log Detail",headerButtons:h,tabsContent:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(s,{value:u,"aria-label":"Log Detail Tabs",onChange:x,children:[(0,F.jsx)(o,{label:"General",value:0}),(0,F.jsx)(o,{label:"Attributes",value:1})]}),(0,F.jsx)(c,{})]}),onClose:a,onKeyDown:f,children:p})}function zd(e){let{fragmentRef:n,viewId:a}=e;const t=(0,dt.useFragment)(void 0!==Vd?Vd:Vd=l(40253),n);switch(a){case 0:return(0,F.jsx)(Ud,{fragmentRef:t});case 1:return(0,F.jsx)(Qd,{fragmentRef:t})}}function Bd(e){let{fragmentRef:n}=e;const a=(0,dt.useFragment)(void 0!==Pd?Pd:Pd=l(57760),n);return a?(0,F.jsxs)(Ld,{children:[(0,F.jsx)(Ed,{severity:a.severityNumber}),(0,F.jsx)(z.A,{variant:"h5",children:a.severityText}),(0,F.jsx)(ho,{epoch:a.epoch})]}):null}function Qd(e){let{fragmentRef:n}=e;const a=(0,dt.useFragment)(void 0!==Md?Md:Md=l(38868),n);return(0,F.jsx)(te.gN,{children:(0,F.jsxs)(m.Z,{children:[(0,F.jsx)(Bd,{fragmentRef:a}),(0,F.jsxs)(Ze.c,{children:[(0,F.jsx)(Wd,{fragmentRef:a}),(0,F.jsx)(Yd,{fragmentRef:a})]})]})})}function Ud(e){let{fragmentRef:n}=e;const a=(0,dt.useFragment)(void 0!==Od?Od:Od=l(14175),n);return(0,F.jsxs)(te.gN,{children:[(0,F.jsx)(Bd,{fragmentRef:a}),(0,F.jsx)(qd,{children:(0,F.jsx)(qt.Dv,{id:"api-log-entry-details",content:null===a||void 0===a?void 0:a.body,enableWordWrap:!0})})]})}function Yd(e){let{fragmentRef:n}=e;const a=(0,dt.useFragment)(void 0!==_d?_d:_d=l(84756),n),t=(0,b.useRef)(!1),i=(0,b.useCallback)((e=>{t.current=e}),[]);return a&&a.logAttributes?(0,F.jsx)(Ze.B,{title:"Log Attributes",items:a.logAttributes.map((e=>{var n,l;let{key:a,boolValue:t,longValue:i,floatValue:r,stringValue:s}=e;return{key:a,name:a,description:null!==(n=null!==(l=null!==t&&void 0!==t?t:i)&&void 0!==l?l:r)&&void 0!==n?n:s}})),collapsible:!0,initialCollapsed:t.current,onCollapseChange:i}):null}function Wd(e){let{fragmentRef:n}=e;const a=(0,dt.useFragment)(void 0!==Gd?Gd:Gd=l(59472),n),t=(0,b.useRef)(!1),i=(0,b.useCallback)((e=>{t.current=e}),[]);return a&&a.resourceAttributes?(0,F.jsx)(Ze.B,{title:"Resource Attributes",items:a.resourceAttributes.map((e=>{let{key:n,value:l}=e;return{key:n,name:n,description:l}})),collapsible:!0,initialCollapsed:t.current,onCollapseChange:i}):null}const qd=j.Ay.div`display:flex;flex:1 1 auto;margin-top:20px;border-top:1px solid ${o.lt.base.separator};`;function Xd(e){let{dataset:n,range:[l,a]}=e;const t=(0,b.useCallback)((e=>{const t=(0,k.dM)(n.flatMap((e=>{let{counts:n}=e;return n.map((e=>{let{severity:n}=e;return n}))}))).sort(((e,n)=>e-n));return{tooltip:{trigger:"axis",padding:6,axisPointer:{label:{formatter:e=>(0,k.ZS)(e.value)}}},legend:{show:!1},grid:{top:10,left:3,right:0,bottom:0},dataset:{source:n.map(((e,n,l)=>{let{epoch:a,counts:t}=e;const i={epoch:a};if(n<l.length-1){const e=l[n+1].counts;for(const{severity:n}of e)i[n+""]=0}if(n>1){const e=l[n-1].counts;for(const{severity:n}of e)i[n+""]=0}for(const{severity:r,count:s}of t)i[r.toString()]=s;return i})),dimensions:t.map((e=>e+""))},toolbox:{show:!1},brush:{xAxisId:"time",outOfBrush:{},brushStyle:{color:e((e=>e.chart.axisBrush)),borderWidth:0}},xAxis:{id:"time",type:"time",min:l,max:a,axisPointer:{snap:!1,label:{show:!0,formatter:function(e){return(0,k.ZS)(e.value)},backgroundColor:e((e=>e.components.tooltip)),borderColor:e((e=>e.components.tooltipBorder)),shadowColor:e((e=>e.base.shadow)),shadowBlur:4,shadowOffsetX:0,shadowOffsetY:1,textStyle:{fontFamily:o.F2,fontSize:o.Hr,color:e((e=>e.components.tooltipText))}}}},yAxis:{type:"value"},series:t.map((n=>({type:"line",name:Jd(n),dimensions:["epoch",n+""],stack:"severity",symbol:"circle",symbolSize:0,areaStyle:{},lineStyle:{width:1.5},color:Zd(n,e)})))}}),[n,l,a]),i=Ts();return(0,F.jsx)(ts,{size:"mid",buildOption:t,onInit:e=>{i(null),e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"lineX",brushMode:"single"}}),e.on("brushEnd",(e=>{var n,l;i(null!==(n=null===(l=e.areas.at(0))||void 0===l?void 0:l.coordRange)&&void 0!==n?n:null)}))}})}function Zd(e,n){return n((n=>e<5?n.chart.trace:e<9?n.chart.debug:e<13?n.chart.info:e<17?n.chart.warning:e<21?n.chart.error:n.chart.fatal))}function Jd(e){return e<5?`Trace (${e})`:e<9?`Debug (${e})`:e<13?`Info (${e})`:e<17?`Warning (${e})`:e<21?`Error (${e})`:`Fatal (${e})`}var ec,nc,lc=l(34877);function ac(e){let{fragmentRef:n,selectedIndex:a,onSelectLog:t,maybeHasMore:i=!1,pagination:{loadNext:r,loadPrevious:s,hasNext:o,hasPrevious:d,isLoadingNext:c,isLoadingPrevious:u}}=e;const m=(0,dt.useFragment)(void 0!==ec?ec:ec=l(77133),n),p=(0,b.useRef)(null),h=(0,b.useRef)(null),y=(0,b.useRef)(null),f=(0,b.useRef)(!0),x=(0,b.useRef)(-1),k=(0,b.useMemo)((()=>{var e;return null!==(e=null===m||void 0===m?void 0:m.map((e=>e)))&&void 0!==e?e:[]}),[m]);(0,b.useLayoutEffect)((()=>{var e;const n=k.length-x.current;var l;"backward"===(null===(e=p.current)||void 0===e?void 0:e.scrollDirection)&&(null===(l=h.current)||void 0===l||l.scrollTo(p.current.scrollOffset+n*lc.lh));x.current=k.length}),[k.length]);const v=(0,b.useCallback)((e=>{if(f.current){var n,l;const a=null!==(n=null===(l=y.current)||void 0===l?void 0:l.state.height)&&void 0!==n?n:0,t=k.length*lc.lh;k.length*lc.lh<=a?null===e||void 0===e||e.scrollTo(0):null===e||void 0===e||e.scrollTo(t-1e3),f.current=!1}h.current=e}),[k.length]),j=(0,b.useCallback)((()=>r(200)),[r]),S=(0,b.useCallback)((()=>s(200)),[s]),C=(0,b.useCallback)((e=>{switch(e.key){case"ArrowUp":case"k":e.preventDefault(),a&&a>0&&t(a-1);break;case"ArrowDown":case"j":e.preventDefault(),a&&a<k.length-1&&t(a+1)}}),[t,a,k]),K={hasNext:o,hasPrevious:d,isLoadingNext:c,isLoadingPrevious:u,onLoadNext:j,selectLog:t,selectedIndex:a,logs:k,maybeHasMore:i};return k.length?(0,F.jsx)(jt.w,{innerListRef:v,autoSizerRef:y,itemCount:k.length+2,itemData:K,itemSize:lc.lh,threshold:20,tabIndex:-1,isItemLoaded:e=>e<=k.length-2&&e>1,onScrollVirtualList:e=>p.current=e,onKeyDown:C,onLoadMoreItems:e=>{f.current||(e<2?S():j())},children:tc}):(0,F.jsx)(Tn.HY,{title:"Log Is Empty",icon:(0,F.jsx)(g.mo,{})})}const tc=(0,b.memo)((function(e){let{data:n,index:l,style:a}=e;switch(l){case 0:return(0,F.jsx)(dc,{style:a,children:(0,F.jsx)(rc,{isLoading:n.isLoadingPrevious})});case n.logs.length+1:return(0,F.jsx)(dc,{style:a,children:(0,F.jsx)(sc,{isLoading:n.isLoadingNext,onLoadNext:n.onLoadNext,maybeHasMore:n.maybeHasMore})});default:const e=n.logs[l-1],t=n.selectedIndex===l-1;return(0,F.jsx)(dc,{style:a,className:t?"active":void 0,onClick:()=>n.selectLog(l-1),children:(0,F.jsx)(ic,{fragmentRef:e})})}}),Ft.t7),ic=(0,b.memo)((function(e){let{fragmentRef:n}=e;const a=(0,dt.useFragment)(void 0!==nc?nc:nc=l(58676),n);return a?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(lc.dg,{children:(0,F.jsx)(Ed,{severity:a.severityNumber})}),(0,F.jsx)(lc.c9,{children:(0,k.CS)(a.epoch)}),(0,F.jsx)(lc.hE,{children:a.body})]}):(0,F.jsx)(F.Fragment,{children:"empty"})}));function rc(e){let{isLoading:n}=e;return n?(0,F.jsxs)(oc,{children:[(0,F.jsx)(Rt.y,{colorSelector:e=>e.components.buttonText}),(0,F.jsx)("span",{children:"Loading entries"})]}):(0,F.jsx)(oc,{children:(0,F.jsx)("span",{children:"You have reached the beginning of the logs"})})}function sc(e){let{isLoading:n,onLoadNext:l,maybeHasMore:a}=e;return n?(0,F.jsxs)(oc,{children:[(0,F.jsx)(Rt.y,{colorSelector:e=>e.components.buttonText}),(0,F.jsx)("span",{children:"Loading entries"})]}):(0,F.jsx)(oc,{children:a?(0,F.jsx)(be.A,{variant:"text",onClick:l,children:"Check for more"}):(0,F.jsx)("span",{children:"You have reached the end of the logs"})})}const oc=j.Ay.div`flex:1 1 auto;padding:0 6px;gap:6px;text-overflow:ellipsis;white-space:nowrap;display:flex;justify-content:center;align-items:center;`,dc=(0,j.Ay)(lc.St)`font-family:${o.Z7};`;var cc,uc,gc,mc,pc;function hc(e){let{stage:n,range:a}=e;const[t,i]=a,{stageById:r}=(0,dt.useLazyLoadQuery)(void 0!==cc?cc:cc=l(75142),{stageId:n.id,from:t,to:i},{fetchPolicy:"store-and-network"});return(0,F.jsxs)(ds,{header:(0,F.jsx)(Ks,{name:n.displayName,kind:"stage"}),disableScrolling:!0,children:[(0,F.jsx)(Fd.Ay,{sx:{display:"flex",flexGrow:0,flexShrink:0,flexBasis:"auto",overflow:"auto",p:.25},children:(0,F.jsx)(_.A,{sx:{height:170,minHeight:170},children:(0,F.jsx)(H.A,{children:(0,F.jsx)(b.Suspense,{fallback:(0,F.jsx)(Ml,{}),children:(0,F.jsx)(yc,{range:a,fragmentRef:r})})})})}),(0,F.jsx)(Fd.Ay,{sx:{display:"flex",flexGrow:1,flexShrink:1,flexBasis:"auto",overflow:"auto",p:.25},children:(0,F.jsx)(_.A,{sx:{height:"unset",minHeight:"unset"},children:(0,F.jsx)(H.A,{className:"no-padding",sx:{display:"flex"},children:(0,F.jsx)(b.Suspense,{fallback:(0,F.jsx)(Ml,{}),children:(0,F.jsx)(fc,{stage:n,fragmentRef:r})})})})})]})}function yc(e){let{fragmentRef:n,range:a}=e;const t=(0,dt.useFragment)(void 0!==uc?uc:uc=l(60484),n),i=(0,b.useMemo)((()=>{var e;return null===t||void 0===t||null===(e=t.logDistribution)||void 0===e?void 0:e.dataset.map((e=>({epoch:e.epoch,counts:[...e.counts]})))}),[t]);return i?(0,F.jsx)(Xd,{dataset:i,range:a}):(0,F.jsx)(Tn.HY,{title:"No Logs Available"})}function fc(e){let{fragmentRef:n}=e;const a=(0,dt.useFragment)(void 0!==gc?gc:gc=l(28428),n);return a?(0,F.jsx)(xc,{fragmentRef:a}):(0,F.jsx)(Tn.HY,{title:"No Logs Available"})}function xc(e){let{fragmentRef:n}=e;const{logs:a,pagination:t}=function(e){var n,a,t;const i=(0,dt.useFragment)(void 0!==mc?mc:mc=l(81593),e),r=(0,dt.useRelayEnvironment)(),[s,o]=(0,b.useReducer)(((e,n)=>{var l,a,t,i,s,d,c,u,g,m,p,h,y,f,x,k,b,v,j,F;switch(n.type){case"LOAD_NEXT":return e.isLoadingNext?e:(bc(e.environment,e.stageId,e.endCursor,200,null,null).then((n=>{o({type:"LOADED_NEXT",data:n,initialData:e.initialData})})).catch((()=>{o({type:"LOADED_NEXT",data:void 0,initialData:e.initialData})})),{...e,isLoadingNext:!0});case"LOADED_NEXT":if(n.initialData!==e.initialData)return e;if(!n.data)return{...e,isLoadingNext:!1};const S=null!==(l=null===(a=n.data.stageById)||void 0===a||null===(t=a.logs)||void 0===t||null===(i=t.edges)||void 0===i?void 0:i.map((e=>e.node)))&&void 0!==l?l:[];return{...e,logs:[...e.logs,...S],endCursor:null!==(s=null===(d=n.data.stageById)||void 0===d||null===(c=d.logs)||void 0===c?void 0:c.pageInfo.endCursor)&&void 0!==s?s:e.endCursor,hasNext:null!==(u=null===(g=n.data.stageById)||void 0===g||null===(m=g.logs)||void 0===m?void 0:m.pageInfo.hasNextPage)&&void 0!==u&&u,isLoadingNext:!1};case"LOAD_PREVIOUS":return e.isLoadingPrevious?e:(bc(e.environment,e.stageId,null,null,e.startCursor,200).then((n=>{o({type:"LOADED_PREVIOUS",data:n,initialData:e.initialData})})).catch((()=>{o({type:"LOADED_PREVIOUS",data:void 0,initialData:e.initialData})})),{...e,isLoadingPrevious:!0});case"LOADED_PREVIOUS":if(n.initialData!==e.initialData)return e;if(!n.data)return{...e,isLoadingPrevious:!1};const C=null!==(p=null===(h=n.data.stageById)||void 0===h||null===(y=h.logs)||void 0===y||null===(f=y.edges)||void 0===f?void 0:f.map((e=>e.node)))&&void 0!==p?p:[];return{...e,logs:[...C,...e.logs],startCursor:null!==(x=null===(k=n.data.stageById)||void 0===k||null===(b=k.logs)||void 0===b?void 0:b.pageInfo.startCursor)&&void 0!==x?x:e.startCursor,hasPrevious:null!==(v=null===(j=n.data.stageById)||void 0===j||null===(F=j.logs)||void 0===F?void 0:F.pageInfo.hasPreviousPage)&&void 0!==v&&v,isLoadingPrevious:!1};case"RESET":return kc(r,n.data);default:return e}}),kc(r,i));(0,b.useEffect)((()=>{i!==s.initialData&&o({type:"RESET",data:i})}),[i,s.initialData]);const d=e=>{o({type:"LOAD_NEXT",count:e})},c=e=>{o({type:"LOAD_PREVIOUS",count:e})},u=null===(n=i.logs)||void 0===n||null===(a=n.edges)||void 0===a||null===(t=a[0])||void 0===t?void 0:t.node,g=-s.logs.findIndex((e=>e===u));return{logs:s.logs,pagination:{offset:g,loadNext:d,loadPrevious:c,hasNext:s.hasNext,hasPrevious:s.hasPrevious,isLoadingNext:s.isLoadingNext,isLoadingPrevious:s.isLoadingPrevious}}}(n),[i,r]=(0,b.useState)(null),s=a[0],o=i?a[i]:null,d=(0,b.useCallback)((()=>r(null)),[r]),c=(0,b.useCallback)((e=>{if(!i)return;const n=i+e;n<0||n>=a.length||!a[n]||r(n)}),[a,i,r]),u=(0,b.useCallback)((()=>c(1)),[c]),g=(0,b.useCallback)((()=>c(-1)),[c]);return(0,b.useEffect)((()=>r(null)),[r,s]),(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(ac,{fragmentRef:a,selectedIndex:i,onSelectLog:r,pagination:t,maybeHasMore:!0}),(0,F.jsx)(Hd,{fragmentRef:o,onClose:d,onNext:u,onPrevious:g})]})}function kc(e,n){var l,a,t,i,r,s,o,d,c,u,g;return{initialData:n,logs:null!==(l=null===(a=n.logs)||void 0===a||null===(t=a.edges)||void 0===t?void 0:t.map((e=>e.node)))&&void 0!==l?l:[],stageId:n.id,hasNext:null!==(i=null===(r=n.logs)||void 0===r?void 0:r.pageInfo.hasNextPage)&&void 0!==i&&i,hasPrevious:null!==(s=null===(o=n.logs)||void 0===o?void 0:o.pageInfo.hasPreviousPage)&&void 0!==s&&s,endCursor:null!==(d=null===(c=n.logs)||void 0===c?void 0:c.pageInfo.endCursor)&&void 0!==d?d:null,startCursor:null!==(u=null===(g=n.logs)||void 0===g?void 0:g.pageInfo.startCursor)&&void 0!==u?u:null,isLoadingNext:!1,isLoadingPrevious:!1,environment:e}}function bc(e,n,a,t,i,r){return(0,dt.fetchQuery)(e,void 0!==pc?pc:pc=l(1015),{stageId:n,after:a,first:t,before:i,last:r}).toPromise()}const vc=(0,h.vr)(null,"OperationLatencyRange"),jc=(0,b.memo)((function(e){let{children:n}=e;const l=(0,h.oX)(null);return(0,F.jsx)(Cc,{state$:l.current,children:(0,F.jsx)(vc.Provider,{value:l.current,children:n})})}));function Fc(e){return e}const Sc=(0,h.vr)(k.lQ,"SelectOperationLatencyRange");function Cc(e){let{children:n,state$:l}=e;const a=(0,b.useCallback)((e=>{l.next(e)}),[l]);return(0,F.jsx)(Sc.Provider,{value:a,children:n})}const Kc=(0,h.vr)(null,"OperationSpanDetails"),Lc=(0,b.memo)((function(e){let{children:n}=e;const l=(0,h.oX)(null);return(0,F.jsx)(wc,{state$:l.current,children:(0,F.jsx)(Kc.Provider,{value:l.current,children:n})})}));const Tc=(0,h.vr)(k.lQ,"ActivateOperationSpanDetails");function wc(e){let{children:n,state$:l}=e;const a=(0,b.useCallback)((e=>{l.next(e)}),[l]);return(0,F.jsx)(Tc.Provider,{value:a,children:n})}var Ac;function Ic(e){let{fragmentRef:n,range:a}=e;const{throughput:t}=(0,dt.useFragment)(void 0!==Ac?Ac:Ac=l(67346),n);return(0,F.jsx)(us,{size:4,title:"Errors",content:null!==t&&void 0!==t&&t.dataset.length?(0,F.jsx)(ws,{dataset:t.dataset.map((e=>{let{epoch:n,totalCountWithError:l}=e;return{epoch:n,total:l}})),range:a}):(0,F.jsx)(As,{})})}const Dc=(0,b.memo)((function(e){let{children:n,offsetTop:l=0,show:a}=e;const t=(0,b.useRef)(null);return(0,b.useEffect)((()=>{const e=window.setTimeout((()=>{if(t.current){const e=t.current.querySelectorAll("span > span");a?(2===e.length&&requestAnimationFrame((()=>{e[0].style.animationPlayState="running",e[1].style.animationPlayState="running";const n=e[0].style.animation,l=e[1].style.animation;e[0].style.animation="none",e[1].style.animation="none",requestAnimationFrame((()=>{e[0].style.animation=n,e[1].style.animation=l}))})),t.current.style.opacity="1"):(2===e.length&&requestAnimationFrame((()=>{e[0].style.animationPlayState="paused",e[1].style.animationPlayState="paused"})),t.current.style.opacity="0")}}),f.W7);return()=>{window.clearTimeout(e)}}),[a]),(0,F.jsxs)(Nc,{children:[(0,F.jsx)(Ec,{ref:t,$offsetTop:l,children:(0,F.jsx)(No.A,{})}),(0,F.jsx)(Rc,{children:n})]})})),Nc=j.Ay.div`position:relative;overflow:visible;`,Rc=j.Ay.div`position:relative;width:100%;`,Ec=j.Ay.div`position:absolute;z-index:2;top:${e=>{let{$offsetTop:n}=e;return n}}px;width:100%;opacity:0;background-color:${o.lt.base.background};transition:opacity 0.2s ease;`;var $c=l(22758),Vc=l(50597),Pc=l(81092);function Mc(e){let{activeSpan:n,currentPosition:l,spanCount:a,offset:t,totalDuration:i,onClose:r,onNext:s,onPrevious:o}=e;const{Tabs:c,Tab:u,MoreTabs:m}=(0,y.NS)(),[p,h]=(0,b.useState)(0);n||0===p||h(0);const f=(0,b.useMemo)((()=>n?(0,F.jsx)(Oc,{span:n,offset:t,totalDuration:i,viewId:p}):void 0),[n,t,i,p]),x=(0,b.useMemo)((()=>(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(tu,{children:[l," of ",a]}),(0,F.jsxs)(Kd,{children:[(0,F.jsx)(d.pG,{disabled:!o,onClick:o,children:(0,F.jsx)(g.Mt,{})}),(0,F.jsx)(d.pG,{disabled:!s,onClick:s,children:(0,F.jsx)(g.D3,{})})]})]})),[a,l,s,o]),k=(0,b.useCallback)((e=>{switch(e.key){case"ArrowUp":e.preventDefault(),null===o||void 0===o||o();break;case"ArrowDown":e.preventDefault(),null===s||void 0===s||s()}}),[s,o]),v=(0,b.useCallback)(((e,n)=>{h(n)}),[h]);return(0,F.jsx)(Cd,{open:!!n,title:"Span Details",headerButtons:x,tabsContent:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(c,{value:p,"aria-label":"Operation Span Details",onChange:v,children:[(0,F.jsx)(u,{label:"General",value:0}),(0,F.jsx)(u,{label:"Attributes",value:1}),(0,F.jsx)(u,{label:"Events",value:2}),(0,F.jsx)(u,{label:"Errors",value:3})]}),(0,F.jsx)(m,{})]}),onClose:r,onKeyDown:k,children:f})}function Oc(e){let{span:n,offset:l,totalDuration:a,viewId:t}=e;switch(t){case 0:return(0,F.jsx)(Gc,{span:n,offset:l,totalDuration:a});case 1:return(0,F.jsx)(Wc,{span:n,offset:l,totalDuration:a});case 2:return(0,F.jsx)(Zc,{span:n,offset:l,totalDuration:a});case 3:return(0,F.jsx)(Jc,{span:n,offset:l,totalDuration:a});default:return(0,k.dr)(t)}}function _c(e){var n;let{span:l,offset:a,totalDuration:t}=e;const i=oo(l);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(Ld,{children:[(0,F.jsx)(uo,{type:l.type}),(0,F.jsx)(fo,{statusCode:null===(n=l.http)||void 0===n?void 0:n.statusCode}),(0,F.jsx)(z.A,{variant:"h5",children:l.name}),(0,F.jsx)(go,{duration:l.duration}),(0,F.jsx)(yo,{epoch:l.epoch}),(0,F.jsx)(xo,{kind:l.kind}),(null===i||void 0===i?void 0:i.failed)&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(mo,{count:1}),!!i.exceptionCount&&(0,F.jsx)(po,{count:i.exceptionCount})]})]}),(0,F.jsx)(iu,{children:(0,F.jsx)(Ko,{activeSpanId:null,offset:a,spans:[l],totalDuration:t})})]})}function Gc(e){let{span:n,offset:l,totalDuration:a}=e;return(0,F.jsxs)(m.Z,{children:[(0,F.jsx)(_c,{span:n,offset:l,totalDuration:a}),(0,F.jsxs)(Ze.c,{children:[(0,F.jsx)(zc,{span:n}),(0,F.jsx)(Hc,{db:n.db}),(0,F.jsx)(Yc,{http:n.http}),(0,F.jsx)(Qc,{operation:n.operation}),(0,F.jsx)(Bc,{document:n.document}),(0,F.jsx)(Uc,{selection:n.selection})]})]})}function Hc(e){let{db:n}=e;const l=(0,b.useRef)(!1),a=(0,b.useCallback)((e=>{l.current=e}),[]);return n?(0,F.jsx)(Ze.B,{title:"HTTP",items:[n.name&&{key:"db-name",name:"Name",description:n.name},n.operation&&{key:"db-operation",name:"Operation",description:n.operation},n.statement&&{key:"db-statement",name:"Statement",description:n.statement},n.instance&&{key:"db-instance",name:"Instance",description:n.instance},n.system&&{key:"db-system",name:"System",description:n.system},n.url&&{key:"db-url",name:"URL",description:n.url},n.user&&{key:"db-user",name:"User",description:n.user}].filter((e=>!!e)),collapsible:!0,initialCollapsed:l.current,onCollapseChange:a}):null}function zc(e){let{span:n}=e;const l=(0,b.useRef)(!1),a=(0,b.useCallback)((e=>{l.current=e}),[]);return(0,F.jsx)(Ze.B,{title:"General Information",items:[{key:"id",name:"ID",description:n.id},n.parentSpanId&&{key:"parent-id",name:"Parent ID",description:n.parentSpanId},{key:"trace-id",name:"Trace ID",description:n.traceId},{key:"timestamp",name:"Timestamp",description:(0,k.CS)(n.epoch)},n.traceState&&{key:"trace-state",name:"Trace State",description:n.traceState},n.statusMessage.length&&{key:"status-message",name:"Status Message",description:n.statusMessage}].filter((e=>!!e)),collapsible:!0,initialCollapsed:l.current,onCollapseChange:a})}function Bc(e){let{document:n}=e;const l=(0,b.useRef)(!1),a=(0,b.useCallback)((e=>{l.current=e}),[]);return n?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Ze.B,{title:"GraphQL Document",items:[(null===n||void 0===n?void 0:n.id)&&{key:"document-id",name:"ID",description:n.id}].filter((e=>!!e)),collapsible:!0,initialCollapsed:l.current,onCollapseChange:a}),n.body&&(0,F.jsx)(ru,{children:(0,F.jsx)(qt.Dw,{content:n.body})})]}):null}function Qc(e){let{operation:n}=e;const l=(0,b.useRef)(!1),a=(0,b.useCallback)((e=>{l.current=e}),[]);return n?(0,F.jsx)(Ze.B,{title:"GraphQL Operation",items:[n.name&&{key:"operation-name",name:"Name",description:n.name},n.kind&&{key:"operation-kind",name:"Kind",description:n.kind}].filter((e=>!!e)),collapsible:!0,initialCollapsed:l.current,onCollapseChange:a}):null}function Uc(e){let{selection:n}=e;const l=(0,b.useRef)(!1),a=(0,b.useCallback)((e=>{l.current=e}),[]);return n?(0,F.jsx)(Ze.B,{title:"GraphQL Selection",items:[n.name&&{key:"selection-name",name:"Name",description:n.name},n.path&&{key:"selection-path",name:"Path",description:n.path},n.type&&{key:"selection-type",name:"Type",description:n.type},n.field.declaringType&&{key:"selection-field-declaring-type",name:"Declaration Type",description:n.field.declaringType},n.field.coordinate&&{key:"selection-field-coordinate",name:"Coordinate",description:n.field.coordinate}].filter((e=>!!e)),collapsible:!0,initialCollapsed:l.current,onCollapseChange:a}):null}function Yc(e){let{http:n}=e;const l=(0,b.useRef)(!1),a=(0,b.useCallback)((e=>{l.current=e}),[]);return n?(0,F.jsx)(Ze.B,{title:"HTTP",items:[n.method&&{key:"http-method",name:"Method",description:(0,F.jsx)(Pc.R2,{children:n.method})},n.url&&{key:"http-url",name:"URL",description:n.url},n.statusCode&&{key:"http-status-code",name:"StatusCode",description:(0,F.jsx)(Pc.d8,{statusCode:n.statusCode})},n.userAgent&&{key:"http-user-agent",name:"User Agent",description:n.userAgent},n.flavor&&{key:"http-flavor",name:"Flavor",description:n.flavor}].filter((e=>!!e)),collapsible:!0,initialCollapsed:l.current,onCollapseChange:a}):null}function Wc(e){let{span:n,offset:l,totalDuration:a}=e;return(0,F.jsxs)(m.Z,{children:[(0,F.jsx)(_c,{span:n,offset:l,totalDuration:a}),(0,F.jsxs)(Ze.c,{children:[(0,F.jsx)(qc,{resourceAttributes:n.resourceAttributes}),(0,F.jsx)(Xc,{spanAttributes:n.spanAttributes})]})]})}function qc(e){let{resourceAttributes:n}=e;const l=(0,b.useRef)(!1),a=(0,b.useCallback)((e=>{l.current=e}),[]);return n.length>0?(0,F.jsx)(Ze.B,{title:"Resource Attributes",items:n.map((e=>{let{key:n,value:l}=e;return{key:n,name:n,description:l}})),collapsible:!0,initialCollapsed:l.current,onCollapseChange:a}):null}function Xc(e){let{spanAttributes:n}=e;const l=(0,b.useRef)(!1),a=(0,b.useCallback)((e=>{l.current=e}),[]);return n.length>0?(0,F.jsx)(Ze.B,{title:"Span Attributes",items:n.map((e=>{let{key:n,value:l}=e;return{key:n,name:n,description:l}})),collapsible:!0,initialCollapsed:l.current,onCollapseChange:a}):null}function Zc(e){let{span:n,offset:l,totalDuration:a}=e;const t=(0,b.useRef)(!1),i=(0,b.useCallback)((e=>{t.current=e}),[]);return(0,F.jsx)(F.Fragment,{children:n.events.length?(0,F.jsxs)(m.Z,{children:[(0,F.jsx)(_c,{span:n,offset:l,totalDuration:a}),(0,F.jsx)(Ze.c,{children:(0,F.jsx)(Ze.B,{title:"Events",items:n.events.map(((e,n)=>{let{name:l,epoch:a}=e;return{key:l+"_"+n,name:l,description:(0,k.CS)(a)}})),collapsible:!0,initialCollapsed:t.current,onCollapseChange:i})})]}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(_c,{span:n,offset:l,totalDuration:a}),(0,F.jsx)(Tn.HY,{title:"No Events"})]})})}function Jc(e){let{span:n,offset:l,totalDuration:a}=e;const t=n.events.filter((e=>{let{name:n}=e;return["Error","exception"].includes(n)}));return(0,F.jsx)(F.Fragment,{children:t.length?(0,F.jsxs)(m.Z,{children:[(0,F.jsx)(_c,{span:n,offset:l,totalDuration:a}),(0,F.jsxs)(Ze.c,{children:[(0,F.jsx)(eu,{events:t}),(0,F.jsx)(lu,{events:t})]})]}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(_c,{span:n,offset:l,totalDuration:a}),(0,F.jsx)(Tn.HY,{title:"No Errors"})]})})}function eu(e){let{events:n}=e;const l=n.filter((e=>{let{name:n}=e;return"exception"===n}));return(0,F.jsx)(F.Fragment,{children:l.map(((e,n)=>(0,F.jsx)(nu,{exception:e},"exception_"+n)))})}function nu(e){var n,l,a;let{exception:t}=e;const i=(0,b.useRef)(!1),r=null===(n=t.attributes.find((e=>{let{key:n}=e;return"exception.type"===n})))||void 0===n?void 0:n.value,s=null===(l=t.attributes.find((e=>{let{key:n}=e;return"exception.stacktrace"===n})))||void 0===l?void 0:l.value,o=null===(a=t.attributes.find((e=>{let{key:n}=e;return"exception.message"===n})))||void 0===a?void 0:a.value,d=(0,b.useCallback)((e=>{i.current=e}),[]);return(0,F.jsx)(Ze.B,{title:r?`Exception: ${r}`:"Exception",items:[o&&{key:"exception-message",name:"Message",description:o},s&&{key:"exception-stack-trace",name:"Stack Trace",description:s}].filter((e=>!!e)),collapsible:!0,initialCollapsed:i.current,onCollapseChange:d})}function lu(e){let{events:n}=e;const l=n.filter((e=>{let{name:n}=e;return"Error"===n}));return(0,F.jsx)(F.Fragment,{children:l.map(((e,n)=>(0,F.jsx)(au,{error:e},"error_"+n)))})}function au(e){var n,l;let{error:a}=e;const t=(0,b.useRef)(!1),i=null===(n=a.attributes.find((e=>{let{key:n}=e;return"graphql.error.code"===n})))||void 0===n?void 0:n.value,r=null===(l=a.attributes.find((e=>{let{key:n}=e;return"graphql.error.message"===n})))||void 0===l?void 0:l.value,s=(0,b.useCallback)((e=>{t.current=e}),[]);return(0,F.jsx)(Ze.B,{title:"Error",items:[r&&{key:"error-message",name:"Message",description:r},i&&{key:"error-code",name:"Code",description:i}].filter((e=>!!e)),collapsible:!0,initialCollapsed:t.current,onCollapseChange:s})}const tu=j.Ay.div`min-width:80px;margin-left:8px;font-weight:500;text-align:center;color:${o.lt.base.text};`,iu=j.Ay.div`flex:0 0 auto;margin-bottom:20px;`,ru=j.Ay.div`display:flex;flex:0 0 450px;margin-top:20px;border-top:1px solid ${o.lt.base.separator};border-bottom:1px solid ${o.lt.base.separator};`;var su;function ou(e){var n,a,t;let{fragmentRef:i}=e;const{data:r,hasNext:s,hasPrevious:o,isLoadingNext:d,isLoadingPrevious:c,loadNext:u,loadPrevious:g}=(0,dt.usePaginationFragment)(void 0!==su?su:su=l(19112),i),[m,p]=(0,b.useState)(null),h=(0,b.useMemo)((()=>{var e,n,l,a;return null!==(e=null===r||void 0===r||null===(n=r.trace)||void 0===n||null===(l=n.logs)||void 0===l||null===(a=l.edges)||void 0===a?void 0:a.map((e=>e.node)))&&void 0!==e?e:[]}),[r]),y=h[0],f=(0,b.useCallback)((()=>p(null)),[p]),x=(0,b.useCallback)((e=>{if(null===m||m<0)return;const n=m+e;n<0||n>=h.length||!h[n]||p(n)}),[h,m,p]),k=(0,b.useCallback)((()=>x(1)),[x]),v=(0,b.useCallback)((()=>x(-1)),[x]);return(0,b.useEffect)((()=>p(null)),[p,y]),(0,F.jsxs)(du,{children:[(0,F.jsx)(ac,{fragmentRef:null===r||void 0===r||null===(n=r.trace)||void 0===n||null===(a=n.logs)||void 0===a||null===(t=a.edges)||void 0===t?void 0:t.map((e=>e.node)),selectedIndex:m,onSelectLog:p,pagination:{hasNext:s,hasPrevious:o,isLoadingNext:d,isLoadingPrevious:c,loadNext:e=>u(e),loadPrevious:e=>g(e)}}),(0,F.jsx)(Hd,{fragmentRef:null!==m?h[m]:null,onClose:f,onNext:k,onPrevious:v})]})}const du=j.Ay.div`display:flex;flex-direction:column;height:500px;`;var cu,uu;function gu(e){let{fragmentRef:n,stageId:a,onTraceSampleDataLoaded:t}=e;const[i,r]=(0,dt.useRefetchableFragment)(void 0!==cu?cu:cu=l(56413),n),{samples:s}=i.metrics.operation;return(0,F.jsx)(pu,{stageId:a,samples:s,onTraceSampleDataLoaded:t,onRefetchSamples:e=>{r(e?{minLatency:e[0],maxLatency:e[1]}:{})}})}function mu(){return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(vu,{}),(0,F.jsx)(xu,{showLoading:!0})]})}function pu(e){let{stageId:n,samples:l,onTraceSampleDataLoaded:a,onRefetchSamples:t}=e;const i=l.length?l[0]:null,r=(0,b.useRef)(i),[s,o]=(0,b.useState)(i),d=(0,h.VF)((0,b.useContext)(vc),Fc,null),[c,u]=(0,b.useTransition)(),g=(0,b.useCallback)((e=>{u((()=>{o(e)}))}),[o,u]);return(0,b.useEffect)((()=>{r.current!==i&&(u((()=>{o(i)})),r.current=i)}),[i,o,u]),(0,b.useEffect)((()=>d.subscribe((e=>u((()=>{t(e)}))))),[d,t,u]),s||a(null),(0,F.jsx)(Lc,{children:s?(0,F.jsx)(hu,{stageId:n,activeSample:s,samples:l,showLoading:c,onActivateSample:g,onTraceSampleDataLoaded:a}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(ju,{samples:l,onActivateSample:g}),(0,F.jsx)(xu,{showLoading:c})]})})}function hu(e){var n,a,t,i,r,s,o,d,c;let{stageId:u,activeSample:g,samples:m,showLoading:p,onActivateSample:h,onTraceSampleDataLoaded:f}=e;const{traceId:x,spanId:k,seeker:v}=g,{stage:j}=(0,dt.useLazyLoadQuery)(void 0!==uu?uu:uu=l(4228),{stageId:u,traceId:x,spanId:k,seeker:v}),{Tabs:S,Tab:C,MoreTabs:K}=(0,y.NS)(),[L,T]=(0,b.useState)("timeline"),w=(0,y.d4)(Kc,(e=>e)),A=(0,b.useContext)(Tc),I=null!==(n=null===j||void 0===j||null===(a=j.trace)||void 0===a?void 0:a.spans.map((e=>{let{spanId:n,spanName:l,spanKind:a,__typename:t,...i}=e;return{id:n,name:l,kind:ku(a),type:bu(t),offset:0,...i}})))&&void 0!==n?n:[],D=I.map((e=>oo(e))).filter((e=>!!e)),N=w?I.findIndex((e=>{let{id:n}=e;return n===w.id})):-1,R=N+1,E=-1!==N&&I.length>R,$=N>0,V=null===j||void 0===j||null===(t=j.trace)||void 0===t||null===(i=t.spans[0])||void 0===i?void 0:i.spanKind,P=(0,b.useCallback)((()=>{A(null)}),[A]);(0,b.useEffect)((()=>{var e,n;f({traceId:x,spanId:k,seeker:v,totalDuration:null!==(e=null===j||void 0===j||null===(n=j.trace)||void 0===n?void 0:n.totalDuration)&&void 0!==e?e:null})}),[x,k,v,null===j||void 0===j||null===(r=j.trace)||void 0===r?void 0:r.totalDuration,f]);const M=(0,b.useCallback)(((e,n)=>{T(n)}),[T]);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(ju,{activeSample:g,duration:null!==(s=null===j||void 0===j||null===(o=j.trace)||void 0===o?void 0:o.totalDuration)&&void 0!==s?s:0,errorDetails:D,operationSpanKind:V?ku(V):void 0,samples:m,timestamp:null!==(d=null===j||void 0===j||null===(c=j.trace)||void 0===c?void 0:c.offset)&&void 0!==d?d:0,onActivateSample:h}),(null===j||void 0===j?void 0:j.trace)&&I.length&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(yu,{children:[(0,F.jsxs)(S,{value:L,"aria-label":"Trace Details",onChange:M,children:[(0,F.jsx)(C,{label:"Timeline",value:"timeline"}),(0,F.jsx)(C,{label:"Logs",value:"logs"})]}),(0,F.jsx)(K,{})]}),(0,F.jsx)(b.Suspense,{fallback:(0,F.jsx)(Ml,{}),children:(0,F.jsxs)(Dc,{show:p,offsetTop:-1,children:["timeline"===L&&(0,F.jsx)(fu,{offset:j.trace.offset,spans:I,totalDuration:j.trace.totalDuration,showLoading:p,onShowSpanDetails:A,activeSpan:w,currentPosition:N+1,spanCount:I.length,onClose:P,onNext:E?()=>{E&&A(I[R])}:void 0,onPrevious:$?()=>{$&&A(I[N-1])}:void 0}),"logs"===L&&(0,F.jsx)(ou,{fragmentRef:j})]})})]})]})}const yu=j.Ay.div.attrs({role:"toolbar"})`display:flex;flex-direction:row;align-items:center;border-bottom:1px solid ${o.lt.base.separator};`;function fu(e){var n;let{activeSpan:l,totalDuration:a,offset:t,spans:i,showLoading:r,currentPosition:s,spanCount:o,onClose:d,onNext:c,onPrevious:u,onShowSpanDetails:g}=e;return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(xu,{activeSpanId:null!==(n=null===l||void 0===l?void 0:l.id)&&void 0!==n?n:null,offset:t,spans:i,totalDuration:a,showLoading:r,onShowSpanDetails:g}),(0,F.jsx)(Mc,{activeSpan:l,currentPosition:s,spanCount:o,offset:t,totalDuration:a,onClose:d,onNext:c,onPrevious:u})]})}function xu(e){let{activeSpanId:n,spans:l,offset:a,totalDuration:t,showLoading:i,onShowSpanDetails:r}=e;return(0,F.jsx)(ms,{$disableXPadding:!0,$paddingBottom:!0,children:(0,F.jsx)(Ko,{activeSpanId:null!==n&&void 0!==n?n:null,offset:null!==a&&void 0!==a?a:0,spans:null!==l&&void 0!==l?l:[],totalDuration:null!==t&&void 0!==t?t:0,showLoading:i,onShowSpanDetails:r})})}function ku(e){switch(e){case"SPAN_KIND_CLIENT":return ro.Client;case"SPAN_KIND_SERVER":return ro.Server;case"SPAN_KIND_PRODUCER":return ro.Producer;case"SPAN_KIND_CONSUMER":return ro.Consumer;default:return ro.Internal}}function bu(e){switch(e){case"OpenTelemetryDbSpan":return so.DB;case"OpenTelemetryGraphQLOperationSpan":return so.GraphQLOperation;case"OpenTelemetryGraphQLResolverSpan":return so.GraphQLResolver;case"OpenTelemetryHttpClientSpan":return so.HTTPClient;case"OpenTelemetryHttpServerSpan":return so.HTTPServer;default:return so.Default}}function vu(e){let{children:n,duration:l,errorDetails:a,operationSpanKind:t,timestamp:i}=e;return(0,F.jsxs)(ms,{children:[(0,F.jsxs)(It.A,{container:!0,direction:"row",alignItems:"center",gap:1,sx:{marginTop:"8px",height:"50px"},children:[(0,F.jsx)(It.A,{children:(0,F.jsx)(z.A,{variant:"h5",children:"Trace Sample"})}),n]}),(0,F.jsxs)(It.A,{container:!0,direction:"row",alignItems:"center",gap:1,sx:{marginBottom:"8px",height:"20px"},children:[(0,F.jsx)(go,{duration:l}),(0,F.jsx)(yo,{epoch:i}),t&&(0,F.jsx)(xo,{kind:t}),(0,F.jsx)(mo,{count:null===a||void 0===a?void 0:a.length}),(0,F.jsx)(po,{count:null===a||void 0===a?void 0:a.reduce(((e,n)=>{let{exceptionCount:l}=n;return e+l}),0)})]})]})}function ju(e){let{activeSample:n,duration:l,errorDetails:a,operationSpanKind:t,samples:i,timestamp:r,onActivateSample:s}=e;const o=n?i.indexOf(n):-1;return(0,F.jsx)(F.Fragment,{children:(0,F.jsx)(vu,{duration:l,errorDetails:a,operationSpanKind:t,timestamp:r,children:!!i.length&&(0,F.jsx)($c.A,{count:i.length,disabled:!i.length,page:-1===o?1:o+1,showFirstButton:!0,showLastButton:!0,renderItem:e=>"page"===e.type?e.selected?(0,F.jsxs)(Fu,{children:[e.page," of ",i.length]}):null:"start-ellipsis"===e.type||"end-ellipsis"===e.type?null:(0,F.jsx)(Vc.A,{...e}),onChange:(e,n)=>{s(i[n-1])}})})})}const Fu=j.Ay.div`min-width:80px;padding-right:8px;padding-left:8px;font-weight:500;text-align:center;color:${o.lt.base.text};`;var Su;function Cu(e){var n;let{operationFragmentRef:a,stageFragmentRef:t,stageId:i}=e;const r=(0,b.useRef)(null),{latencyDistribution:s}=(0,dt.useFragment)(void 0!==Su?Su:Su=l(35485),a),o=(0,b.useContext)(Sc);return(0,F.jsx)(us,{size:12,minHeight:600,title:"Latency Distribution",noPadding:!0,subheader:(0,F.jsx)(Ku,{totalCount:null!==(n=null===s||void 0===s?void 0:s.totalCount)&&void 0!==n?n:0}),content:null!==s&&void 0!==s&&s.dataset.length?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(ms,{$paddingBottom:!0,children:(0,F.jsx)(Ns,{ref:r,data:s,onRangeChange:o})}),(0,F.jsx)(b.Suspense,{fallback:(0,F.jsx)(mu,{}),children:(0,F.jsx)(gu,{fragmentRef:t,stageId:i,onTraceSampleDataLoaded:e=>{var n;r.current&&r.current.setCurrent(null!==(n=null===e||void 0===e?void 0:e.totalDuration)&&void 0!==n?n:null)}})})]}):(0,F.jsx)(Tu,{children:(0,F.jsx)(As,{})})})}function Ku(e){let{totalCount:n}=e;const l=(0,y.d4)(vc,Fc);return(0,F.jsxs)(It.A,{direction:"row",justifyContent:"space-between",gap:1,container:!0,children:[(0,F.jsx)(It.A,{children:"Total operations: "+(0,k.Yh)(n)}),(0,F.jsx)(It.A,{children:l?"Selected range: "+l.map((e=>(0,k.ng)(e))).join(" - "):(0,F.jsxs)(Lu,{children:[(0,F.jsx)(g.mo,{})," Click and drag to select a range"]})})]})}const Lu=j.Ay.div`display:flex;align-items:center;gap:4px;`,Tu=j.Ay.div`display:flex;width:100%;height:300px;`;var wu,Au,Iu,Du,Nu,Ru,Eu,$u;function Vu(e){let{fragmentRef:n,range:a}=e;const{latency:t}=(0,dt.useFragment)(void 0!==wu?wu:wu=l(94013),n);return(0,F.jsx)(us,{size:4,title:"Latency",content:null!==t&&void 0!==t&&t.dataset.length?(0,F.jsx)(Ds,{dataset:t.dataset,range:a}):(0,F.jsx)(As,{})})}function Pu(e){let{fragmentRef:n,range:a}=e;const{throughput:t}=(0,dt.useFragment)(void 0!==Au?Au:Au=l(87404),n);return(0,F.jsx)(us,{size:4,title:"Throughput",content:null!==t&&void 0!==t&&t.dataset.length?(0,F.jsx)(ad,{dataset:t.dataset.map((e=>{let{epoch:n,opm:l,totalCount:a,totalCountWithError:t}=e;return{epoch:n,opm:l,success:a-t,error:t}})),range:a}):(0,F.jsx)(As,{})})}function Mu(e){let{stageId:n,hash:l,operationName:t,range:i}=e;const r=(0,a.WAJ)(),[s,o]=i,d=(0,b.useMemo)((()=>({stageId:n,hash:l,operationName:t,from:s,to:o})),[n,l,t,s,o]);return(0,F.jsx)(ds,{header:(0,F.jsx)(Ks,{name:t,kind:"operation",showBackButton:!0,onClickBack:()=>r(null)}),children:(0,F.jsx)(b.Suspense,{fallback:(0,F.jsx)(Ou,{}),children:(0,F.jsx)(_u,{variables:d})})})}function Ou(){return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(us,{size:4,title:"Latency",content:(0,F.jsx)(Is,{})}),(0,F.jsx)(us,{size:4,title:"Throughput",content:(0,F.jsx)(Is,{})}),(0,F.jsx)(us,{size:4,title:"Errors",content:(0,F.jsx)(Is,{})}),(0,F.jsx)(us,{size:12,minHeight:600,title:"Latency Distribution",content:(0,F.jsx)(Is,{})})]})}function _u(e){let{variables:n}=e;const{stage:a}=(0,dt.useLazyLoadQuery)(void 0!==Iu?Iu:Iu=l(97113),n);return a?(0,F.jsxs)(jc,{children:[(0,F.jsx)(Vu,{fragmentRef:a.metrics.operation,range:[n.from,n.to]}),(0,F.jsx)(Pu,{fragmentRef:a.metrics.operation,range:[n.from,n.to]}),(0,F.jsx)(Ic,{fragmentRef:a.metrics.operation,range:[n.from,n.to]}),(0,F.jsx)(Cu,{operationFragmentRef:a.metrics.operation,stageFragmentRef:a,stageId:n.stageId})]}):(0,F.jsx)(Tn.HY,{title:"No Monitoring Available"})}function Gu(e){let{fragmentRef:n,range:a}=e;const{throughput:t}=(0,dt.useFragment)(void 0!==Du?Du:Du=l(3340),n);return(0,F.jsx)(us,{size:4,title:"Errors",content:null!==t&&void 0!==t&&t.dataset.length?(0,F.jsx)(ws,{dataset:t.dataset.map((e=>{let{epoch:n,totalCountWithError:l}=e;return{epoch:n,total:l}})),range:a}):(0,F.jsx)(As,{})})}function Hu(e){let{fragmentRef:n,range:a}=e;const{latency:t}=(0,dt.useFragment)(void 0!==Nu?Nu:Nu=l(63727),n);return(0,F.jsx)(us,{size:4,title:"Latency",content:null!==t&&void 0!==t&&t.dataset.length?(0,F.jsx)(Ds,{dataset:t.dataset,range:a}):(0,F.jsx)(As,{})})}function zu(e){let{fragmentRef:n,range:a}=e;const{throughput:t}=(0,dt.useFragment)(void 0!==Ru?Ru:Ru=l(35177),n);return(0,F.jsx)(us,{size:4,title:"Throughput",content:null!==t&&void 0!==t&&t.dataset.length?(0,F.jsx)(ad,{dataset:t.dataset.map((e=>{let{epoch:n,opm:l,totalCount:a,totalCountWithError:t}=e;return{epoch:n,opm:l,success:a-t,error:t}})),range:a}):(0,F.jsx)(As,{})})}function Bu(e){let{stageId:n,coordinate:l,range:t}=e;const i=(0,a.VA7)(),[r,s]=t,o=(0,b.useMemo)((()=>({stageId:n,coordinate:l,from:r,to:s})),[n,l,r,s]);return(0,F.jsx)(ds,{header:(0,F.jsx)(Ks,{name:l,kind:"resolver",showBackButton:!0,onClickBack:()=>i(null)}),children:(0,F.jsx)(b.Suspense,{fallback:(0,F.jsx)(Qu,{}),children:(0,F.jsx)(Uu,{variables:o})})})}function Qu(){return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(us,{size:4,title:"Latency",content:(0,F.jsx)(Is,{})}),(0,F.jsx)(us,{size:4,title:"Throughput",content:(0,F.jsx)(Is,{})}),(0,F.jsx)(us,{size:4,title:"Errors",content:(0,F.jsx)(Is,{})})]})}function Uu(e){let{variables:n}=e;const{stage:a}=(0,dt.useLazyLoadQuery)(void 0!==Eu?Eu:Eu=l(18559),n);return a?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Hu,{fragmentRef:a.metrics.resolver,range:[n.from,n.to]}),(0,F.jsx)(zu,{fragmentRef:a.metrics.resolver,range:[n.from,n.to]}),(0,F.jsx)(Gu,{fragmentRef:a.metrics.resolver,range:[n.from,n.to]})]}):(0,F.jsx)(Tn.HY,{title:"No Monitoring Available"})}const Yu=(0,b.memo)((function(e){var n;let{fragmentRef:a}=e;const{data:t}=(0,dt.usePaginationFragment)(void 0!==$u?$u:$u=l(89847),a),i=(0,b.useMemo)((()=>{var e,n,l;return null!==(e=null===(n=t.metrics.clients.insights)||void 0===n||null===(l=n.edges)||void 0===l?void 0:l.filter((e=>{let{node:n}=e;return n.impact})).map((e=>{var n,l;let{node:a}=e;return{name:a.name,total:null!==(n=a.totalCount)&&void 0!==n?n:0,impact:null!==(l=a.impact)&&void 0!==l?l:0}})))&&void 0!==e?e:[]}),[null===(n=t.metrics.clients.insights)||void 0===n?void 0:n.edges]);return(0,F.jsx)(us,{size:6,title:"Clients",content:i.length?(0,F.jsx)(os,{dataset:i}):(0,F.jsx)(As,{})})}));var Wu;function qu(e){let{fragmentRef:n,loadNext:a}=e;const t=(0,dt.useFragment)(void 0!==Wu?Wu:Wu=l(91790),n),i=(0,Lo.b)();return(0,F.jsx)(ot.C,{apiRef:i,scrollEndThreshold:400,disableColumnReorder:!0,disableRowSelectionOnClick:!0,rowSelection:!1,slots:{noRowsOverlay:Zu},onRowsScrollEnd:a,columns:Xu,rows:t})}const Xu=[{field:"type",headerName:"Type",width:100,sortable:!1,renderCell(e){let{row:n}=e;return(0,F.jsx)(st.$,{children:n.type})}},{field:"message",headerName:"Message",width:250,sortable:!1,renderCell(e){let{row:n}=e;return(0,F.jsx)(st.$,{children:n.message})}},{field:"totalCount",headerName:"Total Count",width:100,sortable:!1,renderCell(e){let{row:n}=e;return(0,F.jsx)(st.$,{children:n.totalCount})}},{field:"rate",headerName:"Rate",width:100,sortable:!1,renderCell(e){let{row:n}=e;return(0,F.jsxs)(st.$,{children:[n.epm," epm"]})}},{field:"lastSeen",headerName:"Last Seen",width:150,sortable:!1,renderCell(e){let{row:n}=e;const l=(0,k.fw)(n.lastSeen);return(0,F.jsx)(st.$,{children:l})}}];function Zu(){return(0,F.jsx)(Tn.HY,{title:"No Errors"})}var Ju;const eg=(0,b.memo)((function(e){var n;let{fragmentRef:a,range:t}=e;const{data:i,isLoadingNext:r,loadNext:s,hasNext:o}=(0,dt.usePaginationFragment)(void 0!==Ju?Ju:Ju=l(5020),a),d=(0,b.useMemo)((()=>{var e,n,l;return null!==(e=null===(n=i.metrics.errors.insights)||void 0===n||null===(l=n.edges)||void 0===l?void 0:l.map((e=>{let{node:n}=e;return n})))&&void 0!==e?e:[]}),[null===(n=i.metrics.errors.insights)||void 0===n?void 0:n.edges]),c=(0,b.useCallback)((()=>{!r&&o&&s(5)}),[r,o,s]);return(0,F.jsx)(us,{size:6,title:"Errors",content:(0,F.jsx)(M.A,{height:250,children:(0,F.jsx)(qu,{fragmentRef:d,loadNext:c})})})}));var ng;const lg=(0,b.memo)((function(e){let{fragmentRef:n,range:a}=e;const{throughput:t}=(0,dt.useFragment)(void 0!==ng?ng:ng=l(62554),n),i=(0,b.useMemo)((()=>{var e;return null!==(e=null===t||void 0===t?void 0:t.dataset.map((e=>{let{epoch:n,totalCountWithError:l}=e;return{epoch:n,total:l}})))&&void 0!==e?e:[]}),[null===t||void 0===t?void 0:t.dataset]);return(0,F.jsx)(us,{size:6,title:"Failed Operations",content:i.length?(0,F.jsx)(ws,{dataset:i,range:a}):(0,F.jsx)(As,{})})}));var ag,tg=l(77369),ig=l(53924),rg=l(87658);const sg=(0,b.memo)((function(e){var n;let{fragmentRef:a,range:t,search:i}=e;const{data:r,hasNext:s,isLoadingNext:o,loadNext:d,refetch:c}=(0,dt.usePaginationFragment)(void 0!==ag?ag:ag=l(66498),a),[u,g]=(0,b.useTransition)(),m=(0,b.useMemo)((()=>{var e,n,l;return null!==(e=null===(n=r.metrics.operations.insights)||void 0===n||null===(l=n.edges)||void 0===l?void 0:l.map((e=>{let{node:n}=e;return{node:n,range:t}})))&&void 0!==e?e:[]}),[null===(n=r.metrics.operations.insights)||void 0===n?void 0:n.edges,t]),p=(0,b.useCallback)((()=>{s&&!o&&d(25)}),[s,o,d]),[h,y]=(0,b.useState)([]),f=(0,b.useCallback)((e=>{if(m.length){const n=e.filter((e=>{let{sort:n}=e;return!!n})).map((e=>{let{field:n,sort:l}=e;return{[n]:"asc"===l?"ASC":"DESC"}}));y(n)}}),[m,y]);return(0,b.useEffect)((()=>{const e=i?{search:i}:{},n=h.length?{sort:h}:{};g((()=>{c({...n,...e})}))}),[i,h,c,g]),(0,F.jsx)(Xo,{rows:m,loading:o||u,onRowsScrollEnd:p,onSortModelChange:f})}));var og;const dg=(0,b.memo)((function(e){var n;let{fragmentRef:a,range:t,search:i}=e;const{data:r,hasNext:s,isLoadingNext:o,loadNext:d,refetch:c}=(0,dt.usePaginationFragment)(void 0!==og?og:og=l(44842),a),[u,g]=(0,b.useTransition)(),m=(0,b.useMemo)((()=>{var e,n,l;return null!==(e=null===(n=r.metrics.resolvers.insights)||void 0===n||null===(l=n.edges)||void 0===l?void 0:l.map((e=>{let{node:n}=e;return{node:n,range:t}})))&&void 0!==e?e:[]}),[null===(n=r.metrics.resolvers.insights)||void 0===n?void 0:n.edges,t]),p=(0,b.useCallback)((()=>{s&&!o&&d(25)}),[s,o,d]),[h,y]=(0,b.useState)([]),f=(0,b.useCallback)((e=>{if(m.length){const n=e.filter((e=>{let{sort:n}=e;return!!n})).map((e=>{let{field:n,sort:l}=e;return{[n]:"asc"===l?"ASC":"DESC"}}));y(n)}}),[m,y]);return(0,b.useEffect)((()=>{const e=i?{search:i}:{},n=h.length?{sort:h}:{};g((()=>{c({...n,...e})}))}),[i,h,c,g]),(0,F.jsx)(Jo,{rows:m,loading:o||u,onRowsScrollEnd:p,onSortModelChange:f})}));var cg;const ug=(0,b.memo)((function(e){let{fragmentRef:n,range:a}=e;const t=(0,dt.useFragment)(void 0!==cg?cg:cg=l(69092),n),[i,r]=(0,b.useState)("operations"),s=(0,b.useRef)(null),[o,d]=(0,b.useState)(""),c=(0,b.useCallback)(((e,n)=>{n&&(r(n),d(""),s.current&&(s.current.value=""))}),[r]);return(0,F.jsx)(us,{size:12,title:"Insights",action:(0,F.jsxs)(gg,{children:[(0,F.jsx)(Ln.U,{fieldRef:s,width:230,onSearchTermChange:d}),(0,F.jsxs)(tg.A,{exclusive:!0,size:"small",value:i,onChange:c,children:[(0,F.jsx)(ig.A,{value:"operations",children:(0,F.jsx)(ie.A,{title:"Operations View",placement:"bottom",children:(0,F.jsx)(g.Kz,{})})}),(0,F.jsx)(ig.A,{value:"resolvers",children:(0,F.jsx)(ie.A,{title:"Resolvers View",placement:"bottom",children:(0,F.jsx)(g.tW,{})})})]})]}),content:(0,F.jsxs)(M.A,{height:388,children:[(0,F.jsx)(rg.K,{freeze:"operations"!==i,children:(0,F.jsx)(sg,{fragmentRef:t,range:a,search:o},"operations")}),(0,F.jsx)(rg.K,{freeze:"operations"===i,children:(0,F.jsx)(dg,{fragmentRef:t,range:a,search:o},"resolvers")})]}),noPadding:!0})})),gg=j.Ay.div`display:flex;flex-direction:row;align-items:center;gap:4px;`;var mg;const pg=(0,b.memo)((function(e){let{fragmentRef:n,range:a}=e;const{latency:t}=(0,dt.useFragment)(void 0!==mg?mg:mg=l(49173),n),i=(0,b.useMemo)((()=>{var e;return null!==(e=null===t||void 0===t?void 0:t.dataset)&&void 0!==e?e:[]}),[null===t||void 0===t?void 0:t.dataset]);return(0,F.jsx)(us,{size:12,title:"Latency",content:i.length?(0,F.jsx)(Ds,{dataset:i,range:a}):(0,F.jsx)(As,{})})}));var hg;const yg=(0,b.memo)((function(e){let{fragmentRef:n,range:a}=e;const{throughput:t}=(0,dt.useFragment)(void 0!==hg?hg:hg=l(97671),n),i=(0,b.useMemo)((()=>{var e;return null!==(e=null===t||void 0===t?void 0:t.dataset.map((e=>{let{epoch:n,opm:l,totalCount:a,totalCountWithError:t}=e;return{epoch:n,opm:l,success:a-t,error:t}})))&&void 0!==e?e:[]}),[null===t||void 0===t?void 0:t.dataset]);return(0,F.jsx)(us,{size:6,title:"Throughput",content:i.length?(0,F.jsx)(ad,{dataset:i,range:a}):(0,F.jsx)(As,{})})}));var fg,xg,kg;function bg(e){let{stage:n,range:l}=e;const t=(0,a.hvt)(),i=(0,a.QHv)();return t?(0,F.jsx)(Mu,{...t,stageId:n.id,range:l}):i?(0,F.jsx)(Bu,{...i,stageId:n.id,range:l}):(0,F.jsx)(vg,{stage:n,range:l})}function vg(e){let{stage:n,range:l}=e;const[a,t]=l,i=(0,b.useMemo)((()=>({stageId:n.id,from:a,to:t})),[n.id,a,t]);return(0,F.jsx)(ds,{header:(0,F.jsx)(Ks,{name:n.displayName,kind:"stage"}),children:(0,F.jsx)(b.Suspense,{fallback:(0,F.jsx)(jg,{}),children:(0,F.jsx)(Fg,{variables:i})})})}function jg(){return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(us,{size:12,title:"Latency",content:(0,F.jsx)(Is,{})}),(0,F.jsx)(us,{size:6,title:"Throughput",content:(0,F.jsx)(Is,{})}),(0,F.jsx)(us,{size:6,title:"Clients",content:(0,F.jsx)(Is,{})}),(0,F.jsx)(us,{size:6,title:"Failed Operations",content:(0,F.jsx)(Is,{})}),(0,F.jsx)(us,{size:6,title:"Errors",content:(0,F.jsx)(Is,{})}),(0,F.jsx)(us,{size:12,title:"Insights",content:(0,F.jsx)(Is,{})})]})}function Fg(e){let{variables:n}=e;const{stage:a}=(0,dt.useLazyLoadQuery)(void 0!==fg?fg:fg=l(13761),n);return a?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(pg,{fragmentRef:a.metrics.operations,range:[n.from,n.to]}),(0,F.jsx)(yg,{fragmentRef:a.metrics.operations,range:[n.from,n.to]}),(0,F.jsx)(Yu,{fragmentRef:a}),(0,F.jsx)(lg,{fragmentRef:a.metrics.operations,range:[n.from,n.to]}),(0,F.jsx)(eg,{fragmentRef:a,range:[n.from,n.to]}),(0,F.jsx)(ug,{fragmentRef:a,range:[n.from,n.to]})]}):(0,F.jsx)(Tn.HY,{title:"No Monitoring Available"})}function Sg(e){let{operation:n,onClose:l}=e;const a=(0,b.useMemo)((()=>n?(0,F.jsx)(Cg,{operation:n}):null),[n]);return(0,F.jsx)(Cd,{open:!!n,title:"Operation Details",onClose:l,children:a})}function Cg(e){var n;let{operation:{name:l,kind:a,document:t}}=e;return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Ld,{children:(0,F.jsxs)(z.A,{variant:"h5",children:[l," ",a]})}),(0,F.jsx)(Td,{children:(0,F.jsx)(qt.Dw,{content:null!==(n=null===t||void 0===t?void 0:t.content)&&void 0!==n?n:""})})]})}function Kg(e){let{apiId:n}=e;const[a,t]=(0,y.V7)(),{api:i}=(0,dt.useLazyLoadQuery)(void 0!==xg?xg:xg=l(59144),{apiId:n},{fetchKey:a,fetchPolicy:"store-and-network"});return nt(t),i?(0,F.jsx)(Tg,{children:(0,F.jsx)(wg,{api:i})}):null}const Lg=(0,h.vr)({activeOperation:null,activateOperation:k.lQ},"ActiveOperationGridItem");function Tg(e){let{children:n}=e;const[l,a]=(0,b.useState)(null);return(0,F.jsx)(Lg.Provider,{value:{activeOperation:l,activateOperation:a},children:n})}function wg(e){var n,a;let{api:t}=e;const{activeOperation:i,activateOperation:r}=(0,b.useContext)(Lg),{data:s,hasNext:o,isLoadingNext:d,loadNext:c}=(0,dt.usePaginationFragment)(void 0!==kg?kg:kg=l(27808),t),u=(0,b.useCallback)((()=>{r(null)}),[r]);if(!t)return(0,F.jsx)(Tn.HY,{title:"No API Available"});if(null===s||void 0===s||null===(n=s.operations)||void 0===n||null===(a=n.edges)||void 0===a||!a.length)return(0,F.jsx)(Tn.HY,{title:"No Operations Available"});const g=s.operations.edges.map(((e,n)=>{let{node:l}=e;return{id:n,node:l}}));return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(ot.C,{columns:Ag,rows:g,loading:d,disableColumnReorder:!0,disableRowSelectionOnClick:!0,rowSelection:!1,scrollEndThreshold:400,onRowsScrollEnd:()=>{o&&!d&&c(25)}}),(0,F.jsx)(Sg,{operation:i,onClose:u})]})}const Ag=[{field:"operation",headerName:"Operation",width:200,sortable:!1,renderCell(e){let{row:n}=e;return(0,F.jsx)(Ig,{node:n.node})}},{field:"ids",headerName:"Ids",flex:1,sortable:!1,resizable:!1,renderCell(e){var n;let{row:l}=e;return(0,F.jsx)(Dg,{children:null===(n=l.node.document)||void 0===n?void 0:n.documentIds.map((e=>(0,F.jsx)(st.$,{as:"li",children:e},e)))})}}],Ig=(0,b.memo)((function(e){let{node:n}=e;const{activateOperation:l}=(0,b.useContext)(Lg),a=(0,b.useCallback)((()=>{l(n)}),[n,l]);return(0,F.jsx)($t.A,{onClick:a,children:(0,F.jsx)(wo,{kind:n.kind,name:n.name||"unnamed operation"})})})),Dg=j.Ay.ul`display:flex;gap:6px;font-family:${o.Z7};font-weight:500;`;function Ng(e){let{remoteId:n}=e;return(0,F.jsx)(te.wn,{children:(0,F.jsx)(te.gN,{children:(0,F.jsx)(b.Suspense,{fallback:(0,F.jsx)(Ml,{}),children:(0,F.jsx)(Kg,{apiId:n})})})})}function Rg(e){let{data:n}=e;return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(Eg,{children:[(0,F.jsx)($g,{direction:(0,k.oW)(n.current.latency,n.previous.latency),sentiment:(0,k.uR)(n.current.latency,n.previous.latency,"bad"),value:(0,k.ng)(n.current.latency),description:"Latency"}),(0,F.jsx)($g,{direction:(0,k.oW)(n.current.throughput,n.previous.throughput),sentiment:(0,k.uR)(n.current.throughput,n.previous.throughput,"good"),value:(0,k.wk)(n.current.throughput)+" opm",description:"Throughput"}),(0,F.jsx)($g,{direction:(0,k.oW)(n.current.errorRate,n.previous.errorRate),sentiment:(0,k.uR)(n.current.errorRate,n.previous.errorRate,"bad"),value:(0,k.Io)(n.current.errorRate),description:"Error Rate"})]}),(0,F.jsx)(Ze.B,{title:"Essentials",items:[{key:"api-id",name:"API ID",description:n.apiId,enableCopy:!0},{key:"stage",name:"Stage",description:n.stageName},{key:"version",name:"Version",description:n.version},{key:"last-published-on",name:"Last published on",description:n.lastPublishedAt},{key:"clients",name:"Clients (registered)",description:n.clientCount},"GATEWAY"===n.apiKind&&{key:"subgraphs",name:"Subgraphs",description:n.subgraphCount}].filter((e=>!!e))})]})}const Eg=j.Ay.div`display:flex;flex-direction:row;margin:8px 12px 16px;border-radius:8px;border:1px solid ${o.lt.components.cardBorder};padding:8px 4px;gap:26px;background-color:${o.lt.base.background};`;function $g(e){let{direction:n,sentiment:l,value:a,description:t}=e;return(0,F.jsxs)(Vg,{children:[(0,F.jsx)(Pg,{$sentiment:l,children:(0,F.jsx)(Mg,{direction:n})}),(0,F.jsx)(Og,{children:a}),(0,F.jsx)(_g,{children:t})]})}const Vg=j.Ay.div`display:flex;flex:1 1 33%;flex-direction:column;align-items:center;justify-content:center;`,Pg=j.Ay.div`flex:0 0 auto;margin-bottom:4px;.icon{width:28px;height:28px;fill:${e=>{let{$sentiment:n}=e;return o.lt.states[n]}};}`;function Mg(e){let{direction:n}=e;switch(n){case"up":return(0,F.jsx)(g.sb,{});case"down":return(0,F.jsx)(g.eO,{});case"neutral":return(0,F.jsx)(g.rF,{})}}const Og=j.Ay.div`flex:0 0 auto;font-size:1.167rem;font-weight:500;margin-bottom:4px;color:${o.lt.base.text};`,_g=j.Ay.div`flex:0 0 auto;color:${o.lt.base.text};`;var Gg;function Hg(e){var n,a,t,i,r,s,o,d,c,u,g,m,p,h,y,f,x,b,v;let{fragmentRef:j}=e;const S=(0,dt.useFragment)(void 0!==Gg?Gg:Gg=l(58690),j);if(!S)return null;const{current:C,previous:K}=S.metrics.operations;return(0,F.jsx)(us,{size:4,title:"Status",content:(0,F.jsx)(Rg,{data:{apiId:S.api.id,apiKind:S.api.kind,stageName:S.displayName,version:null!==(n=null===(a=S.essentials)||void 0===a?void 0:a.version)&&void 0!==n?n:"",lastPublishedAt:null!==(t=S.essentials)&&void 0!==t&&t.lastPublishedAt?(0,k.YS)(S.essentials.lastPublishedAt):"",clientCount:null!==(i=null===(r=S.essentials)||void 0===r?void 0:r.clientCount)&&void 0!==i?i:0,subgraphCount:null!==(s=null===(o=S.essentials)||void 0===o?void 0:o.subgraphCount)&&void 0!==s?s:0,current:{latency:null!==(d=null===(c=C.latency)||void 0===c?void 0:c.mean)&&void 0!==d?d:0,throughput:null!==(u=null===(g=C.throughput)||void 0===g?void 0:g.opm)&&void 0!==u?u:0,errorRate:null!==(m=null===(p=C.throughput)||void 0===p?void 0:p.errorRate)&&void 0!==m?m:0},previous:{latency:null!==(h=null===(y=K.latency)||void 0===y?void 0:y.mean)&&void 0!==h?h:0,throughput:null!==(f=null===(x=K.throughput)||void 0===x?void 0:x.opm)&&void 0!==f?f:0,errorRate:null!==(b=null===(v=K.throughput)||void 0===v?void 0:v.errorRate)&&void 0!==b?b:0}}}),noPadding:!0})}var zg=l(8395),Bg=l.n(zg),Qg=l(85668),Ug=l(37630),Yg=l(89614);l(88626);function Wg(e){let{errorRate:n}=e;return(0,F.jsx)(as,{buildOption:e=>({series:[{type:"pie",radius:["90%","100%"],center:["50%","50%"],color:[e((e=>e.chart.error)),e((e=>e.chart.success))],emphasis:{disabled:!0},animation:!1,labelLine:{show:!1},data:[{value:n},{value:1}]}]}),style:{width:"100%",height:"100%"}})}function qg(e){let{data:n}=e;const[l,a]=(t=n,(0,b.useMemo)((()=>{const[e,n]=function(e){const n=Yg.yX.Right,l=Yg.yX.Left,a={position:{x:0,y:0},sourcePosition:n,targetPosition:l,selectable:!1,focusable:!1,deletable:!1},t=e.clients.map((e=>{let{id:n,type:l,name:t,latency:i,throughput:r,errorRate:s}=e;return{...a,id:t,type:"client",width:60,height:60,data:{id:n,name:t,kind:"client",type:l,latency:i,throughput:r,errorRate:s,width:60,height:60}}})).concat([{...a,id:e.name,type:"api",width:120,height:120,data:{id:e.id,kind:"api",name:e.name,latency:e.latency,throughput:e.throughput,errorRate:e.errorRate,width:120,height:120}}]).concat("GATEWAY"===e.kind?e.subgraphs.map((e=>{let{id:n,name:l,latency:t,throughput:i,errorRate:r}=e;return{...a,id:l,type:"subgraph",width:60,height:60,data:{id:n,name:l,kind:"subgraph",latency:t,throughput:i,errorRate:r,width:60,height:60}}})):[]),i={type:"request",focusable:!1,deletable:!1,animated:!1,markerEnd:{type:Yg.TG.ArrowClosed}},r=e.clients.map((n=>{let{name:l,latency:a,throughput:t,errorRate:r}=n;return{...i,id:`${l}-${e.name}`,source:l,target:e.name,data:{latency:a,throughput:t,errorRate:r}}})).concat("GATEWAY"===e.kind?e.subgraphs.map((n=>{let{name:l,latency:a,throughput:t,errorRate:r}=n;return{...i,id:`${e.name}-${l}`,source:e.name,target:l,data:{latency:a,throughput:t,errorRate:r}}})):[]);return[t,r]}(t),l=(new(Bg().graphlib.Graph)).setGraph({rankdir:"LR",ranksep:180,nodesep:30}).setDefaultEdgeLabel((()=>({})));e.forEach((e=>{let{id:n,width:a,height:t}=e;l.setNode(n,{width:null!==a&&void 0!==a?a:void 0,height:null!==t&&void 0!==t?t:void 0})})),n.forEach((e=>{let{source:n,target:a}=e;l.setEdge(n,a)})),Bg().layout(l);const a=(e,n,l,a,t,i)=>({x:l-(n%2===0?t:t+("client"===e?90:-90))/2,y:a-i/2});return e.forEach(((e,n)=>{const{x:t,y:i,width:r,height:s}=l.node(e.id);e.position=a(e.data.kind,n,t,i,r,s)})),[e,n]}),[t]));var t;return(0,F.jsxs)(Xg,{nodes:l,edges:a,nodeTypes:sm,edgeTypes:pm,minZoom:.75,maxZoom:1.25,zoomOnScroll:!0,nodesDraggable:!1,proOptions:{hideAttribution:!0},defaultMarkerColor:o.lt.graph.edge,fitView:!0,children:[(0,F.jsx)(Qg.V,{variant:Qg._.Dots}),(0,F.jsx)(Ug.H,{showInteractive:!1})]})}const Xg=(0,j.Ay)(Yg.Gc)`background-color:${o.lt.graph.background};color:${o.lt.graph.text};font-family:${o.F2};.react-flow__background > pattern > circle{fill:${o.lt.graph.backgroundPattern};}.react-flow__viewport,.react-flow__nodes,.react-flow__pane{overflow:visible;}.react-flow__node{gap:4px;}.react-flow__handle{visibility:hidden;}.react-flow__edge-path{stroke:${o.lt.graph.edge};stroke-width:2;stroke-dasharray:5 5;}.react-flow__arrowhead{polyline{fill:${o.lt.graph.edge};stroke:${o.lt.graph.edge};}}.react-flow__controls{border-radius:4px;}.react-flow__controls-button{border:1px solid var(--nitro-color-component-toggle-button-border);background-color:var(--nitro-color-component-toggle-button);border-radius:4px;&:not(:last-of-type){border-bottom-right-radius:0;border-bottom-left-radius:0;}&:not(:first-of-type){border-top-right-radius:0;border-top-left-radius:0;margin-top:-1px;}&:hover{background-color:var(--nitro-color-component-toggle-button-hover);& > svg{fill:var(--nitro-color-component-toggle-button-hover-text);}}& > svg{fill:var(--nitro-color-component-toggle-button-text);}}.react-flow__attribution{display:none;}`,Zg=j.Ay.div`display:flex;flex-direction:column;align-items:center;justify-content:center;margin-top:26px;border:${e=>{let{$kind:n}=e;return"api"===n?0:1}}px solid ${o.lt.graph.nodeBorder};border-radius:50%;width:${e=>{let{$width:n}=e;return n}}px;height:${e=>{let{$height:n}=e;return n}}px;background-color:${o.lt.graph.node};`,Jg=j.Ay.div`display:flex;flex-direction:column;flex:0 0 18px;flex-direction:row;align-items:center;justify-content:center;margin-top:6px;height:20px;white-space:nowrap;`,em=j.Ay.div`flex:0 0 auto;width:${e=>{let{$width:n}=e;return n}}px;font-size:1rem;text-align:center;text-overflow:ellipsis;`,nm=j.Ay.div`position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-weight:500;> .icon{width:${e=>{let{$nodeData:n}=e;return lm(n.kind)}}px;height:${e=>{let{$nodeData:n}=e;return lm(n.kind)}}px;fill:${e=>{let{$nodeData:n}=e;return function(e){if("type"in e)switch(e.type){case"apollo":case"other":case"strawberry-shake":return o.lt.icons.apiIcon;case"relay":return o.lt.icons.relayIcon}return o.lt.icons.apiIcon}(n)}};}`;function lm(e){return"api"===e?42:32}const am=j.Ay.div`display:flex;align-items:center;justify-content:center;margin-bottom:12px;gap:4px;font-size:1.25rem;line-height:100%;.icon{width:20px;height:20px;}`,tm=(0,b.memo)((function(e){let{data:n,sourcePosition:l,targetPosition:a}=e;return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(Zg,{$kind:n.kind,$width:n.width,$height:n.width,children:[(0,F.jsxs)(nm,{$nodeData:n,children:[(0,F.jsx)(g.Sv,{}),!!n.errorRate&&(0,F.jsxs)(am,{children:[(0,F.jsx)(g.ik,{}),(0,F.jsx)("span",{children:(0,k.Io)(n.errorRate)})]})]}),null!=n.errorRate&&(0,F.jsx)(Wg,{errorRate:n.errorRate})]}),(0,F.jsx)(Jg,{children:(0,F.jsx)(em,{$width:n.width,children:n.name})}),l&&(0,F.jsx)(Yg.h7,{type:"source",position:l}),a&&(0,F.jsx)(Yg.h7,{type:"target",position:a})]})})),im=(0,b.memo)((function(e){let{data:n,sourcePosition:l,targetPosition:a}=e;return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Zg,{$kind:n.kind,$width:n.width,$height:n.width,children:(0,F.jsx)(nm,{$nodeData:n,children:(0,F.jsx)(g.$C,{})})}),(0,F.jsx)(Jg,{children:(0,F.jsx)(em,{$width:n.width,children:n.name})}),l&&(0,F.jsx)(Yg.h7,{type:"source",position:l}),a&&(0,F.jsx)(Yg.h7,{type:"target",position:a})]})})),rm=(0,b.memo)((function(e){let{data:n,sourcePosition:l,targetPosition:a}=e;return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Zg,{$kind:n.kind,$width:n.width,$height:n.width,children:(0,F.jsx)(nm,{$nodeData:n,children:(0,F.jsx)(g.mb,{})})}),(0,F.jsx)(Jg,{children:(0,F.jsx)(em,{$width:n.width,children:n.name})}),l&&(0,F.jsx)(Yg.h7,{type:"source",position:l}),a&&(0,F.jsx)(Yg.h7,{type:"target",position:a})]})})),sm={api:tm,client:im,subgraph:rm},om=(0,b.memo)((function(e){let{id:n,style:l,markerEnd:a,data:t,...i}=e;const[r,s,o]=(0,Yg.Fp)({...i});return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("path",{id:n,style:l,className:"react-flow__edge-path",d:r,markerEnd:a}),(!(null===t||void 0===t||!t.latency)||!(null===t||void 0===t||!t.throughput)||!(null===t||void 0===t||!t.errorRate))&&(0,F.jsx)(Yg.rV,{children:(0,F.jsxs)(dm,{$labelX:s,$labelY:o,className:"nodrag nopan",children:[(0,F.jsxs)(cm,{children:[!!t.latency&&(0,F.jsx)(gm,{children:(0,k.ng)(t.latency)}),!!t.errorRate&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(um,{}),(0,F.jsxs)(gm,{children:[(0,F.jsx)(g.ik,{}),(0,F.jsx)("div",{children:(0,k.Io)(t.errorRate)})]})]})]}),!!t.throughput&&(0,F.jsx)(mm,{children:(0,k.wk)(t.throughput)+" opm"})]})})]})})),dm=j.Ay.div`position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;transform:translate(-50%,-50%) translate(${e=>{let{$labelX:n}=e;return n}}px,${e=>{let{$labelY:n}=e;return n}}px);font-size:0.857rem;line-height:100%;`,cm=j.Ay.div`display:flex;flex:0 0 14px;align-items:center;justify-content:center;margin-top:16px;border:1px solid ${o.lt.graph.labelBorder};border-radius:7px;padding:0 8px;gap:6px;background-color:${o.lt.graph.label};`,um=j.Ay.div`width:1px;height:10px;margin:2px 0;background-color:${o.lt.graph.labelBorder};`,gm=j.Ay.div`display:flex;flex:0 0 auto;align-items:center;justify-content:center;white-space:nowrap;gap:4px;.icon{width:12px;height:12px;}`,mm=j.Ay.div`display:flex;flex:0 0 14px;align-items:center;justify-content:center;margin-top:2px;`,pm={request:om};var hm,ym,fm,xm,km,bm,vm;function jm(e){let{fragmentRef:n}=e;const a=(0,dt.useFragment)(void 0!==hm?hm:hm=l(25697),n),t=(0,b.useMemo)((()=>{var e,n,l,t,i,r,s,o,d,c,u,g;if("SERVICE"!==(null===a||void 0===a?void 0:a.api.kind)&&"GATEWAY"!==(null===a||void 0===a?void 0:a.api.kind))return null;const m=a.api.id,p=a.api.kind,h=a.api.name,y=null!==(e=null===(n=a.metrics.operations.summary.latency)||void 0===n?void 0:n.mean)&&void 0!==e?e:null,f=null!==(l=null===(t=a.metrics.operations.summary.throughput)||void 0===t?void 0:t.opm)&&void 0!==l?l:null,x=null!==(i=null===(r=a.metrics.operations.summary.throughput)||void 0===r?void 0:r.errorRate)&&void 0!==i?i:null,k=null!==(s=null===(o=a.metrics.clients.insights)||void 0===o||null===(d=o.edges)||void 0===d?void 0:d.map((e=>{let{node:n}=e;return{id:n.id,name:n.name,type:"other",latency:n.averageLatency,throughput:n.opm,errorRate:n.errorRate}})))&&void 0!==s?s:[],b=null!==(c=null===(u=a.metrics.subgraphs.insights)||void 0===u||null===(g=u.edges)||void 0===g?void 0:g.map((e=>{let{node:n}=e;return{id:n.id,name:n.name,latency:n.averageLatency,throughput:n.opm,errorRate:n.errorRate}})))&&void 0!==c?c:[];return"SERVICE"===p?{id:m,kind:p,name:h,latency:y,throughput:f,errorRate:x,clients:k}:{id:m,kind:p,name:h,latency:y,throughput:f,errorRate:x,clients:k,subgraphs:b}}),[a]);return(0,F.jsx)(us,{size:8,content:t&&(0,F.jsx)(qg,{data:t}),minHeight:430,noPadding:!0})}function Fm(e){var n;let{fragmentRef:a,range:t}=e;const{data:i,hasNext:r,isLoadingNext:s,loadNext:o,refetch:d}=(0,dt.usePaginationFragment)(void 0!==ym?ym:ym=l(46172),a),[c,u]=(0,b.useTransition)(),g=(0,b.useMemo)((()=>{var e,n,l;return null!==(e=null===(n=i.metrics.subgraphs.insights)||void 0===n||null===(l=n.edges)||void 0===l?void 0:l.map((e=>{var n,l,a;let{node:i}=e;return{node:{...i,remoteId:null!==(n=null===(l=i.subgraph)||void 0===l||null===(a=l.api)||void 0===a?void 0:a.id)&&void 0!==n?n:null},range:t}})))&&void 0!==e?e:[]}),[null===(n=i.metrics.subgraphs.insights)||void 0===n?void 0:n.edges,t]);return(0,F.jsx)(nd,{rows:g,loading:s||c,onRowsScrollEnd:()=>{r&&!s&&o(25)},onSortModelChange:e=>{if(g.length){const n=e.filter((e=>{let{sort:n}=e;return!!n})).map((e=>{let{field:n,sort:l}=e;return{[n]:"asc"===l?"ASC":"DESC"}}));u((()=>{d(n.length?{sort:n}:{})}))}}})}function Sm(e){let{fragmentRef:n,range:a}=e;const t=(0,dt.useFragment)(void 0!==fm?fm:fm=l(30775),n);return(0,F.jsx)(us,{size:12,title:"Subgraphs",content:(0,F.jsx)(M.A,{height:388,children:(0,F.jsx)(Fm,{fragmentRef:t,range:a})}),noPadding:!0})}function Cm(e){let{stage:n,range:l}=e;const[a,t]=l,[i,r]=k.bP.from(l).toEpoch(),s=r-i,o=(0,k.CS)(i-s),d=(0,b.useMemo)((()=>({stageId:n.id,from:a,to:t,before:o})),[n.id,a,t,o]);return(0,F.jsx)(ds,{header:(0,F.jsx)(Ks,{name:n.displayName,kind:"stage"}),children:(0,F.jsx)(b.Suspense,{fallback:(0,F.jsx)(Km,{}),children:(0,F.jsx)(Lm,{variables:d})})})}function Km(){return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(us,{size:8,content:(0,F.jsx)(Is,{}),minHeight:430,noPadding:!0}),(0,F.jsx)(us,{size:4,title:"Status",content:(0,F.jsx)(Is,{}),noPadding:!0}),(0,F.jsx)(us,{size:12,title:"Subgraphs",content:(0,F.jsx)(Is,{}),noPadding:!0})]})}function Lm(e){let{variables:n}=e;const{stage:a}=(0,dt.useLazyLoadQuery)(void 0!==xm?xm:xm=l(86673),n);return a?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(jm,{fragmentRef:a},n.stageId),(0,F.jsx)(Hg,{fragmentRef:a}),(0,F.jsx)(Sm,{fragmentRef:a,range:[n.from,n.to]})]}):(0,F.jsx)(Tn.HY,{title:"No Stage Available"})}function Tm(e){let{stage:n,range:l}=e;const[a,t]=k.bP.from(l).toEpoch(),[i,r]=l,s=t-a,o=(0,k.CS)(a-s),d=(0,b.useMemo)((()=>({stageId:n.id,from:i,to:r,before:o})),[n.id,i,r,o]);return(0,F.jsx)(ds,{header:(0,F.jsx)(Ks,{name:n.displayName,kind:"stage"}),children:(0,F.jsx)(b.Suspense,{fallback:(0,F.jsx)(wm,{}),children:(0,F.jsx)(Am,{variables:d})})})}function wm(){return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(us,{size:8,content:(0,F.jsx)(Is,{}),minHeight:430,noPadding:!0}),(0,F.jsx)(us,{size:4,title:"Status",content:(0,F.jsx)(Is,{}),noPadding:!0})]})}function Am(e){let{variables:n}=e;const{stage:a}=(0,dt.useLazyLoadQuery)(void 0!==km?km:km=l(71309),n);return a?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(jm,{fragmentRef:a},n.stageId),(0,F.jsx)(Hg,{fragmentRef:a})]}):(0,F.jsx)(Tn.HY,{title:"No Stage Available"})}function Im(){const e=(0,a.Ruy)(),n=(0,a.uC$)(),l=(0,a.SXV)(),t=(0,b.useCallback)(((e,n)=>{n&&l(n)}),[l]);return(0,F.jsxs)(tg.A,{exclusive:!0,size:"small",value:n?e:null,disabled:!n,onChange:t,children:[(0,F.jsx)(ig.A,{value:"log",children:(0,F.jsx)(ie.A,{title:"Log View",placement:"bottom",children:(0,F.jsx)(g.wv,{})})}),(0,F.jsx)(ig.A,{value:"diff",children:(0,F.jsx)(ie.A,{title:"Diff View",placement:"bottom",children:(0,F.jsx)(g.R3,{})})})]})}function Dm(e){let{stage:n}=e;const l=(0,a.uC$)();return(0,F.jsxs)(te.wn,{children:[(0,F.jsxs)(te.AW,{spacing:"right",children:[(0,F.jsxs)(te.w,{children:["Changes for ",n.displayName]}),(0,F.jsx)(te.jB,{}),(0,F.jsx)(Im,{})]}),(0,F.jsx)(te.Y2,{}),(0,F.jsx)(te.gN,{children:l?(0,F.jsx)(b.Suspense,{fallback:(0,F.jsx)(Ml,{}),children:(0,F.jsx)(Nr,{changelogId:l})}):(0,F.jsx)(Ml,{})})]})}function Nm(e){let{stage:{id:n}}=e;const[a,t]=(0,y.V7)(),{stage:i}=(0,dt.useLazyLoadQuery)(void 0!==bm?bm:bm=l(26405),{stageId:n},{fetchKey:a,fetchPolicy:"store-and-network"});return nt(t),i?(0,F.jsx)(Rm,{fragmentRef:i}):null}function Rm(e){var n,t,i;let{fragmentRef:r}=e;const{data:s,hasNext:o,isLoadingNext:c,loadNext:u}=(0,dt.usePaginationFragment)(void 0!==vm?vm:vm=l(99719),r),g=(0,a.uC$)(),m=(0,a.BRC)(),p=null!==(n=null===s||void 0===s||null===(t=s.changeLog)||void 0===t?void 0:t.edges)&&void 0!==n?n:[],h=null===(i=p.at(0))||void 0===i?void 0:i.node.id;if(!g&&h?m(h):h||m(null),!p.length)return(0,F.jsx)(Tn.HY,{title:"No Tags Available"});const y=(0,b.memo)((function(e){let{data:n,index:l,style:a}=e;if(l===n.length)return o?(0,F.jsx)("div",{style:a,children:(0,F.jsx)(d.Xw,{isLoadingMore:c,onLoadMore:()=>{c||u(50)}})}):null;const t=n[l].node;return(0,F.jsx)("div",{style:a,children:(0,F.jsx)(yt,{caption:t.tag,active:t.id===g,detail:{label:"Published "+(0,k.fw)(t.changedAt),meta:(0,F.jsx)(Ht,{fragmentRef:t.statistic})},onClick:()=>{m(t.id)}})})}),Ft.t7);return(0,F.jsx)(te.gN,{$spacing:"top",children:(0,F.jsx)(jt.d,{itemCount:p.length+1,itemData:p,itemKey:(e,n)=>e===n.length?"load-more":`client-${e}`,itemSize:50,tabIndex:-1,children:y})})}function Em(e){let{stage:n}=e;return(0,F.jsx)(te.wn,{$separator:"left",children:(0,F.jsxs)(te.VP,{children:[(0,F.jsx)(te.AW,{spacing:"right",children:(0,F.jsx)(te.w,{children:"Versions"})}),(0,F.jsx)(te.Y2,{}),(0,F.jsx)(b.Suspense,{fallback:(0,F.jsx)(Ml,{}),children:(0,F.jsx)(Nm,{stage:n})})]})})}function $m(e){let{stage:n}=e;const l=(0,a.uC$)(),t=(0,a.BRC)();return nt((0,b.useCallback)((()=>{null===l&&t(void 0)}),[l,t])),null===l?(0,F.jsxs)(Tn.HY,{title:"No Changes",children:[(0,F.jsxs)(Tn.pd,{children:["No Schema published yet to the ",(0,F.jsx)("em",{children:n.displayName})," Stage. Use the ",(0,F.jsx)("em",{children:"Barista"})," CLI to publish Schemas."]}),(0,F.jsxs)(Tn.pd,{children:["More Info on how to publish a Schema with ",(0,F.jsx)("em",{children:"Barista"})," you'll find in the"," ",(0,F.jsxs)(le,{href:"https://chilli.run/schema-registry-tutorial",children:["Quick Start Guide ",(0,F.jsx)(g.pT,{})]})]})]}):(0,F.jsx)(Vm,{stage:n})}const Vm=(0,b.memo)((function(e){let{stage:n}=e;const l=(0,a.xIY)(),t=(0,a.gfI)();return(0,F.jsx)(bn.YV,{id:"schema-changes",asideWidth:l,mainPane:"left",leftContent:(0,F.jsx)(Dm,{stage:n}),rightContent:(0,F.jsx)(Em,{stage:n}),onAsideWidthChange:t})}));var Pm=l(58900),Mm=l.n(Pm),Om=l(67011);const _m={uri:"editor://schemas/stages.json",schema:{$schema:"http://json-schema.org/draft-07/schema",title:"Stage",type:"object",patternProperties:{"^[a-zA-Z][a-zA-Z0-9_-]*$":{type:"object",properties:{displayName:{type:"string"},conditions:{type:"array",items:{type:"object",properties:{after:{type:"string"}},required:["after"],additionalProperties:!1}}},required:["displayName"],additionalProperties:!1}},additionalProperties:!1}},Gm=(new(Mm())).compile(_m.schema);var Hm,zm;const Bm="stages-definition";function Qm(e){var n;let{fragmentRef:t}=e;const i=(0,Fa.iU)(),r=(0,dt.useFragment)(void 0!==Hm?Hm:Hm=l(80350),t),s=(0,a.l$t)(Bm),o=(0,b.useRef)("");var d;o.current=null!==s&&void 0!==s&&null!==(n=s.item.context)&&void 0!==n&&n.useDefaultSetup?"# Default Stage Setup\ndev:\n displayName: Development\nprod:\n displayName: Production\n conditions:\n - after: dev":null!==(d=null===r||void 0===r?void 0:r.stages)&&void 0!==d&&d.length?Om.Ay.stringify(Object.fromEntries(d.map((e=>{let{name:n,displayName:l,conditions:a}=e;return[n,{displayName:l,conditions:a.length?a.map((e=>{let{afterStage:n}=e;return{after:null===n||void 0===n?void 0:n.name}})):void 0}]}))),{logLevel:"silent"}):"# Default Stage Setup\n# dev:\n# displayName: Development\n# prod:\n# displayName: Production\n# conditions:\n# - after: dev";const[u]=(0,dt.useMutation)(void 0!==zm?zm:zm=l(50823)),g=(0,b.useCallback)((()=>{if(s)if(o.current){const e=function(e){if(!e.trim())return null;const n=Om.Ay.parse(e,{logLevel:"silent"});return Gm(n)?Object.entries(n).map((e=>{let[n,{displayName:l,conditions:a=[]}]=e;return{name:n,displayName:l,conditions:a.map((e=>{let{after:n}=e;return{afterStage:n}}))}})):null}(o.current);e?u({variables:{input:{apiId:s.item.context.remoteId,updatedStages:e}},onCompleted(e){let{updateStages:{errors:n}}=e;var l;n?(0,re.$E)(null===(l=n[0])||void 0===l?void 0:l.message):(s.hide(),i())},onError(){(0,re.$E)("There was an error during the request. Please try again.")}}):(0,re.$E)("The configuration is not valid. Please fix it and try again.")}else(0,re.$E)("The configuration is not valid. Please fix it and try again.")}),[s,u,i]),m=(0,b.useCallback)((()=>{null===s||void 0===s||s.hide()}),[s]),p=(0,b.useCallback)((e=>{o.current=e}),[]);return(0,b.useEffect)((()=>()=>{o.current=""}),[]),(0,F.jsx)(c.lG,{id:Bm,title:"Stages Definition",size:"medium",disableScrollbars:!0,closeOnEnter:!1,showConfirm:!0,confirmText:"Apply",showCancel:!0,cancelText:"Cancel",onConfirm:g,onCancel:m,onClose:m,children:(0,F.jsx)(qt.jE,{id:"stages",content:o.current,schema:_m,onChange:p})})}function Um(){return(0,c.Gk)(Bm)}function Ym(e){let{remoteId:n}=e;return(0,F.jsxs)(Tn.HY,{title:"No Stages",children:[(0,F.jsx)(Tn.pd,{children:"Here for the first time, and you don't know how to start? Then let's start with the Default Setup."}),(0,F.jsx)(Tn.pd,{children:"The Default Setup will create a Development and Production Stage for you."}),(0,F.jsx)(Tn.pd,{children:(0,F.jsx)(Wm,{remoteId:n})})]})}function Wm(e){let{remoteId:n}=e;const l=Um(),a=(0,b.useCallback)((()=>{l({remoteId:n,useDefaultSetup:!0})}),[n,l]);return(0,F.jsx)(be.A,{color:"primary",size:"medium",onClick:a,children:"Use Default Setup"})}var qm;function Xm(e){let{fragmentRef:n}=e;const{stages:a}=(0,dt.useFragment)(void 0!==qm?qm:qm=l(7646),n);return(0,F.jsx)(Zm,{stages:a})}const Zm=(0,b.memo)((function(e){let{stages:n}=e;const[l,a]=function(e,n){return(0,b.useMemo)((()=>{const[l,a]=function(e,n){const[l,a]="LR"===n?[Yg.yX.Right,Yg.yX.Left]:[Yg.yX.Bottom,Yg.yX.Top];return[e.map((e=>{var n,t;let{id:i,name:r,displayName:s,publishedSchema:o}=e;return{id:r,width:176,height:50,position:{x:0,y:0},sourcePosition:l,targetPosition:a,data:{id:i,name:r,displayName:s,tag:null===o||void 0===o||null===(n=o.version)||void 0===n?void 0:n.tag,downloadUrl:null===o||void 0===o||null===(t=o.version)||void 0===t?void 0:t.downloadUrl},type:"custom",selectable:!0,focusable:!1,deletable:!1}})),e.flatMap((e=>{let{name:n,conditions:l}=e;return l.map((e=>{let{afterStage:l}=e;return{id:`${l.name}-${n}`,source:l.name,target:n,type:"custom",focusable:!1,deletable:!1,animated:!1,markerEnd:{type:Yg.TG.ArrowClosed}}}))}))]}(e,n),t=(new(Bg().graphlib.Graph)).setGraph({rankdir:n,align:"UL",ranksep:96,nodesep:64}).setDefaultEdgeLabel((()=>({})));return l.forEach((e=>{let{id:n,width:l,height:a}=e;t.setNode(n,{width:null!==l&&void 0!==l?l:void 0,height:null!==a&&void 0!==a?a:void 0})})),a.forEach((e=>{let{source:n,target:l}=e;t.setEdge(n,l)})),Bg().layout(t),l.forEach((e=>{const{x:n,y:l,width:a,height:i}=t.node(e.id),r=e.parentNode?0:20;e.position={x:n+r-a/2,y:l+r-i/2}})),[l,a]}),[e,n])}(n,"LR");return(0,F.jsxs)(Jm,{nodes:l,edges:a,nodeTypes:rp,edgeTypes:sp,minZoom:.75,maxZoom:1.25,zoomOnScroll:!0,nodesDraggable:!1,proOptions:{hideAttribution:!0},defaultMarkerColor:o.lt.graph.edge,children:[(0,F.jsx)(Qg.V,{variant:Qg._.Dots}),(0,F.jsx)(Ug.H,{showInteractive:!1})]})}));const Jm=(0,j.Ay)(Yg.Gc)`background-color:${o.lt.graph.background};color:${o.lt.graph.text};font-family:${o.F2};.react-flow__background > pattern > circle{fill:${o.lt.graph.backgroundPattern};}.react-flow__viewport,.react-flow__nodes,.react-flow__pane{overflow:visible;}.react-flow__node-custom{border:1px solid ${o.lt.graph.nodeBorder};border-radius:10px;background-color:${o.lt.graph.node};&.selected{border-color:${o.lt.graph.nodeBorderActive};}}.react-flow__handle{visibility:hidden;}.react-flow__edge-path{stroke:${o.lt.graph.edge};stroke-width:2;stroke-dasharray:5 5;}.react-flow__arrowhead{polyline{fill:${o.lt.graph.edge};stroke:${o.lt.graph.edge};}}.react-flow__edge.selected .react-flow__edge-path{stroke:${o.lt.graph.edgeActive};}.react-flow__controls{border-radius:4px;}.react-flow__controls-button{border:1px solid ${o.lt.components.toggleButtonBorder};background-color:${o.lt.components.toggleButton};border-radius:4px;&:not(:last-of-type){border-bottom-right-radius:0;border-bottom-left-radius:0;}&:not(:first-of-type){border-top-right-radius:0;border-top-left-radius:0;margin-top:-1px;}&:hover{background-color:${o.lt.components.toggleButtonHover};& > svg{fill:${o.lt.components.toggleButtonHoverText};}}& > svg{fill:${o.lt.components.toggleButtonText};}}.react-flow__attribution{display:none;}`,ep=j.Ay.div`width:176px;height:50px;padding:12px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:5px;font-weight:500;background-color:${o.lt.graph.node};`,np=j.Ay.div`font-size:1.167rem;font-weight:500;`,lp=j.Ay.div``,ap=j.Ay.div``,tp=j.Ay.div`width:100%;display:flex;justify-content:space-between;align-items:center;`,ip=(0,b.memo)((function(e){let{data:n,sourcePosition:l,targetPosition:a}=e;return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(ep,{children:[(0,F.jsx)(np,{children:n.displayName}),(0,F.jsx)(lp,{children:n.name}),(0,F.jsxs)(tp,{children:[n.tag&&(0,F.jsx)(ap,{children:n.tag}),n.downloadUrl&&(0,F.jsx)(op,{tooltip:"Download as SDL",onClick:(t=n.downloadUrl,async e=>{e.preventDefault(),e.stopPropagation();const{uri:n,headers:l}=await(0,Xt.L2)(t);(0,h.$0)(n,{headers:l})}),children:(0,F.jsx)(g.s3,{})})]})]}),l&&(0,F.jsx)(Yg.h7,{type:"source",position:l}),a&&(0,F.jsx)(Yg.h7,{type:"target",position:a})]});var t})),rp={custom:ip},sp={custom:(0,b.memo)((function(e){let{id:n,style:l,markerEnd:a,...t}=e;const[i]=(0,Yg.oN)({offset:10,borderRadius:40,...t});return(0,F.jsx)("path",{id:n,style:l,className:"react-flow__edge-path",d:i,markerEnd:a})}))};const op=(0,j.Ay)(d.pG)`height:1em;flex-basis:1em;& > .icon{fill:${o.lt.components.linkText};}&:hover,&:focus{background-color:transparent;border-color:transparent;& > .icon{fill:${o.lt.components.linkHoverText};}}`;var dp;function cp(e){let{remoteId:n}=e;const[a,t]=(0,y.V7)(),i=(0,dt.useLazyLoadQuery)(void 0!==dp?dp:dp=l(6854),{apiId:n},{fetchKey:a,fetchPolicy:"store-and-network"});return nt(t),i.api?(0,F.jsx)(Xm,{fragmentRef:i.api}):null}function up(e){let{apiId:n}=e;const l=(0,a.acj)(),t=(0,a.Xoc)(),i=(0,a.WAs)(),r=ee();switch(l){case void 0:return i?(0,F.jsx)(Ya,{apiId:n,apiKind:t,workspaceId:i}):null;case x.xi2.Collection:return(0,F.jsxs)(Tn.HY,{title:"API Collection",icon:(0,F.jsx)(g.mb,{}),children:[(0,F.jsx)(Tn.pd,{children:"An API Collection allows you to share Connection Settings with linked Documents."}),(0,F.jsx)(Tn.pd,{children:(0,F.jsx)(be.A,{color:"primary",onClick:()=>r({apiId:n,apiKind:l}),children:"Change API Type"})})]});case x.xi2.Gateway:return(0,F.jsx)(mp,{});case x.xi2.Service:return(0,F.jsx)(gp,{});default:return(0,F.jsx)(Tn.HY,{title:"API Type Unknown",icon:(0,F.jsx)(g.id,{}),children:(0,F.jsx)(Tn.pd,{children:"This API type is not supported. This is probably because you use an older version of Nitro. To solve this issue update to the latest version."})})}}function gp(){const e=(0,a.I7$)(),n=(0,a.IqN)(),l=(0,a.YuI)(),t=(0,Fa.tc)(),i=tt();if(!l)return(0,F.jsx)(pp,{});if(t)return(0,F.jsx)(Ml,{});if(!e)return(0,F.jsx)(Ym,{remoteId:l});switch(n){case"overview":return(0,F.jsx)(Tm,{stage:e,range:i});case"monitoring":return(0,F.jsx)(bg,{stage:e,range:i});case"logs":return(0,F.jsx)(hc,{stage:e,range:i});case"deployments":return(0,F.jsx)(bd,{stage:e});case"changelog":return(0,F.jsx)($m,{stage:e});case"operations":return(0,F.jsx)(Ng,{remoteId:l});case"clients":return(0,F.jsx)(Tt,{remoteId:l});case"stages":return(0,F.jsx)(cp,{remoteId:l});default:return(0,k.dr)(n)}}function mp(){const e=(0,a.I7$)(),n=(0,a.IqN)(),l=(0,a.YuI)(),t=(0,Fa.tc)(),i=tt();if(!l)return(0,F.jsx)(pp,{});if(t)return(0,F.jsx)(Ml,{});if(!e)return(0,F.jsx)(Ym,{remoteId:l});switch(n){case"overview":return(0,F.jsx)(Cm,{stage:e,range:i});case"monitoring":return(0,F.jsx)(bg,{stage:e,range:i});case"logs":return(0,F.jsx)(hc,{stage:e,range:i});case"deployments":return(0,F.jsx)(bd,{stage:e});case"changelog":return(0,F.jsx)($m,{stage:e});case"operations":return(0,F.jsx)(Ng,{remoteId:l});case"clients":return(0,F.jsx)(Tt,{remoteId:l});case"stages":return(0,F.jsx)(cp,{remoteId:l});default:return(0,k.dr)(n)}}function pp(){const e=(0,a.Gje)(),n=(0,a.xVp)();return(0,F.jsx)(Tn.HY,{title:e?"API Synchronizing":"API Not Synchronized",icon:(0,F.jsx)(g.Fj,{}),spinIcon:e,children:(0,F.jsx)(ja.A,{color:"primary",size:"medium",variant:"contained",disableElevation:!0,loading:e,onClick:n,children:(0,F.jsx)("span",{children:"Synchronize API"})})})}const hp=(0,b.memo)((function(e){let{apiOrDocumentId:n}=e;const l=(0,a.WAs)(),t=(0,a.LbQ)(n),i=(0,a.cmd)(),r=(0,a.m5O)(),s=(0,ne.J)(),o=(0,a.u$U)((0,a.KBy)(n)),c=f.Eo.test(o),u=(0,k.Fy)(o,"N/A"),m=(0,b.useCallback)((e=>{e.stopPropagation();const{exists:a,hasSubscriptionType:o}=i.value(),{httpConnection:d}=t;s({workspaceId:l,apiOrDocumentId:n,httpConnection:d,subscriptionEndpointDisabled:a&&!o,unauthorized:"signed-in"!==r.value()})}),[n,t,i,r,l,s]),p=!!o.length;return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(ie.A,{disableInteractive:!0,title:p?o:"Endpoint Not Available",placement:"bottom",children:(0,F.jsxs)(te.S1,{children:[(0,F.jsx)(te.Jn,{children:c?(0,F.jsx)(g.$n,{}):(0,F.jsx)(g.at,{})}),(0,F.jsx)(te.hL,{children:u})]})}),(0,F.jsx)(te.S1,{children:(0,F.jsx)(d.pG,{tooltip:"Connection Settings",tooltipPlacement:"bottom",onClick:m,children:(0,F.jsx)(g.Ze,{})})})]})}));function yp(){const e=(0,a.IqN)(),n=(0,a.zE2)(),{Tabs:l,Tab:t,MoreTabs:i}=(0,y.NS)(),r=(0,b.useCallback)(((e,l)=>{n(l)}),[n]);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(l,{value:e,"aria-label":"Registry View Selection",onChange:r,children:[(0,F.jsx)(t,{label:"Overview",value:"overview"}),(0,F.jsx)(t,{label:"Monitoring",value:"monitoring"}),(0,F.jsx)(t,{label:"Logs",value:"logs"}),(0,F.jsx)(t,{label:"Deployments",value:"deployments"}),(0,F.jsx)(t,{label:"Changelog",value:"changelog"}),(0,F.jsx)(t,{label:"Operations",value:"operations"}),(0,F.jsx)(t,{label:"Clients",value:"clients"}),(0,F.jsx)(t,{label:"Stages",value:"stages"})]}),(0,F.jsx)(i,{})]})}function fp(){const e=(0,a.IqN)(),n=(0,a.zE2)(),{Tabs:l,Tab:t,MoreTabs:i}=(0,y.NS)(),r=(0,b.useCallback)(((e,l)=>{n(l)}),[n]);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(l,{value:e,"aria-label":"Registry View Selection",onChange:r,children:[(0,F.jsx)(t,{label:"Overview",value:"overview"}),(0,F.jsx)(t,{label:"Monitoring",value:"monitoring"}),(0,F.jsx)(t,{label:"Logs",value:"logs"}),(0,F.jsx)(t,{label:"Deployments",value:"deployments"}),(0,F.jsx)(t,{label:"Changelog",value:"changelog"}),(0,F.jsx)(t,{label:"Operations",value:"operations"}),(0,F.jsx)(t,{label:"Clients",value:"clients"}),(0,F.jsx)(t,{label:"Stages",value:"stages"})]}),(0,F.jsx)(i,{})]})}var xp;const kp=(0,b.memo)((function(e){let{apiId:n}=e;switch((0,a.acj)()){case void 0:return(0,F.jsx)(Dt.A,{children:(0,F.jsx)(te.w,{children:"Getting Started"})});case x.xi2.Collection:return(0,F.jsx)(bp,{apiId:n});case x.xi2.Service:return(0,F.jsx)(vp,{apiId:n});case x.xi2.Gateway:return(0,F.jsx)(jp,{apiId:n});default:return(0,F.jsx)(Dt.A,{children:(0,F.jsx)(te.w,{children:"API Type Unknown"})})}})),bp=(0,b.memo)((function(e){let{apiId:n}=e;return(0,F.jsxs)(Dt.A,{children:[(0,F.jsx)(te.w,{children:"API Collection"}),(0,F.jsx)(te.jB,{}),(0,F.jsx)(hp,{apiOrDocumentId:n})]})})),vp=(0,b.memo)((function(e){let{apiId:n}=e;const l=(0,a.YuI)(),t=Za();return(0,F.jsxs)(Dt.A,{children:[(0,F.jsx)(fp,{}),(0,F.jsx)(te.jB,{}),l&&(0,F.jsx)(b.Suspense,{children:(0,F.jsx)(Fp,{apiId:n,remoteId:l})}),(0,F.jsx)(te.S1,{children:(0,F.jsx)(be.A,{variant:"text",disabled:!t,startIcon:(0,F.jsx)(g.fN,{}),onClick:t,children:"Refresh"})}),(0,F.jsx)(hp,{apiOrDocumentId:n})]})})),jp=(0,b.memo)((function(e){let{apiId:n}=e;const l=(0,a.YuI)(),t=Za();return(0,F.jsxs)(Dt.A,{children:[(0,F.jsx)(yp,{}),(0,F.jsx)(te.jB,{}),l&&(0,F.jsx)(b.Suspense,{children:(0,F.jsx)(Fp,{apiId:n,remoteId:l})}),(0,F.jsx)(te.S1,{children:(0,F.jsx)(be.A,{variant:"text",disabled:!t,startIcon:(0,F.jsx)(g.fN,{}),onClick:t,children:"Refresh"})}),(0,F.jsx)(hp,{apiOrDocumentId:n})]})}));function Fp(e){var n,t;let{apiId:i,remoteId:r}=e;const s=(0,a.IqN)(),o=null===(n=(0,a.I7$)())||void 0===n?void 0:n.id,d=(0,a.j8J)(),c=(0,a.b8v)(),u=(0,dt.useLazyLoadQuery)(void 0!==xp?xp:xp=l(1069),{apiId:r}),g=(0,b.useCallback)((e=>c(i,e)),[i,c]);return(0,F.jsxs)(F.Fragment,{children:["stages"===s&&(0,F.jsx)(te.S1,{children:(0,F.jsx)(Sp,{remoteId:r})}),(0,F.jsx)(Qm,{fragmentRef:null!==(t=u.api)&&void 0!==t?t:null}),d&&["overview","monitoring","logs","deployments","changelog"].includes(s)&&(0,F.jsx)(te.S1,{children:(0,F.jsx)(Cp,{stageId:o,stages:d,onSelect:g})})]})}function Sp(e){let{remoteId:n}=e;const l=Um(),a=(0,b.useCallback)((()=>l({remoteId:n})),[n,l]);return(0,F.jsx)(be.A,{variant:"text",startIcon:(0,F.jsx)(g.qU,{}),onClick:a,children:"Edit Stages"})}const Cp=(0,b.memo)((function(e){var n;let{stageId:l,stages:a,onSelect:t}=e;const i=null!==(n=a.map((e=>({content:(0,F.jsx)(Kp,{children:e.displayName}),title:e.displayName,key:e.id,value:e}))))&&void 0!==n?n:[],r=i.find((e=>{let{value:n}=e;return n.id===l})),s=(0,b.useCallback)((e=>{t(e.value)}),[t]);return i.length&&r?(0,F.jsx)(ps,{selected:r,options:i,onSelectionChange:s,children:e=>{let{content:n,title:l}=e;return(0,F.jsx)(d.Si,{variant:"text",endIcon:(0,F.jsx)(g.D3,{}),sx:{maxWidth:150},tooltip:l,children:n})}}):null})),Kp=j.Ay.div`margin-left:7px;text-overflow:ellipsis;text-align:start;white-space:nowrap;flex:0 0 auto;`,Lp=(0,b.memo)((function(e){let{apiId:n}=e;return(0,F.jsx)(qa,{children:(0,F.jsxs)(a.J2F,{apiId:n,children:[(0,F.jsx)(te.qY,{children:(0,F.jsx)(kp,{apiId:n})}),(0,F.jsx)(te.Ow,{children:(0,F.jsx)(Tp,{apiId:n})})]})})}));function Tp(e){let{apiId:n}=e;const l=(0,a.I7$)(),t=(0,a.IqN)();return(0,F.jsx)(_l.t,{children:(0,F.jsx)(b.Suspense,{fallback:(0,F.jsx)(Ml,{}),children:(0,F.jsx)(up,{apiId:n})})},`api_view_error_${null===l||void 0===l?void 0:l.id}-${t}`)}l(53501);var wp=l(97353);function Ap(e){let{argument:n,onClick:l}=e;return(0,F.jsxs)(_p,{children:[(0,F.jsx)(qp,{children:n.name}),(0,F.jsx)(zp,{children:": "}),(0,F.jsx)($p,{type:n.type,onClick:l?()=>l(n):void 0}),(0,F.jsx)(Rp,{type:n.type,defaultValue:n.defaultValue})]})}function Ip(e){let{arguments:n,onClick:l}=e;return null!==n&&void 0!==n&&n.length?(0,F.jsx)(Op,{children:n.map((e=>(0,F.jsx)(Ap,{argument:e,onClick:l},e.coordinate)))}):null}function Dp(e){let{directive:{name:n,arguments:l},collapsed:a,onClick:t}=e;return(0,F.jsxs)(Pp,{children:[(0,F.jsxs)(Mp,{children:["@",n]}),(null===l||void 0===l?void 0:l.length)&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Gp,{children:"("}),a?"...":(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("br",{}),(0,F.jsx)(Ip,{arguments:l,onClick:t})]}),(0,F.jsx)(Gp,{children:")"})]})]})}function Np(e){var n;let{type:l,collapsed:a,onClick:t}=e;return(0,F.jsxs)(Pp,{children:[(0,F.jsx)(qp,{children:l.name}),(null===(n=l.arguments)||void 0===n?void 0:n.length)&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Gp,{children:"("}),a?"...":(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("br",{}),(0,F.jsx)(Ip,{arguments:l.arguments,onClick:t})]}),(0,F.jsx)(Gp,{children:")"})]}),(0,F.jsx)(zp,{children:": "}),(0,F.jsx)($p,{type:l.valueType,onClick:t?()=>t(l):void 0}),(0,F.jsx)(Rp,{type:l.valueType,defaultValue:l.defaultValue})]})}function Rp(e){let{type:n,defaultValue:l}=e;if(void 0===l)return null;const a=JSON.stringify(l,null,2);if((0,wp.jn)(n))switch(typeof l){case"string":return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Xp,{children:" = "}),(0,F.jsx)(Zp,{children:a})]});case"number":return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Xp,{children:" = "}),(0,F.jsx)(Jp,{children:a}),";"]});default:return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Xp,{children:" = "}),(0,F.jsx)(eh,{children:a})]})}return(0,F.jsx)(Wp,{children:a})}function Ep(e){let{type:n}=e;return(0,F.jsx)(qp,{children:n.name})}function $p(e){let{type:n,onClick:l}=e;if("value-type"===n.kind)return(0,F.jsxs)(F.Fragment,{children:[n.isList?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Gp,{children:"["}),(0,F.jsx)($p,{type:n.type,onClick:l}),(0,F.jsx)(Gp,{children:"]"})]}):(0,F.jsx)($p,{type:n.type,onClick:l}),!n.isOptional&&(0,F.jsx)(Xp,{children:"!"})]});switch(n.typeKind){case"enum":return(0,F.jsx)(Bp,{children:(0,F.jsx)(Vp,{type:n,onClick:l})});case"input-object":return(0,F.jsx)(Qp,{children:(0,F.jsx)(Vp,{type:n,onClick:l})});case"scalar":return(0,F.jsx)(Up,{children:(0,F.jsx)(Vp,{type:n,onClick:l})});case"union":return(0,F.jsx)(Yp,{children:(0,F.jsx)(Vp,{type:n,onClick:l})});default:return(0,F.jsx)(Wp,{children:(0,F.jsx)(Vp,{type:n,onClick:l})})}}function Vp(e){let{type:n,onClick:l}=e;return l?(0,F.jsx)(nh,{onClick:()=>l(n),children:n.name}):(0,F.jsx)(F.Fragment,{children:n.name})}const Pp=j.Ay.span`color:${o.lt.editor.defaultToken};`,Mp=j.Ay.span`color:${o.lt.editor.annotationToken};`,Op=j.Ay.div`margin-left:8px;`,_p=j.Ay.span`color:${o.lt.editor.defaultToken};`,Gp=j.Ay.span`color:${o.lt.editor.delimiterToken};`,Hp=j.Ay.span`color:${o.lt.editor.defaultToken};`,zp=j.Ay.span`color:${o.lt.editor.delimiterToken};`,Bp=j.Ay.span`color:${o.lt.icons.enumIcon};`,Qp=j.Ay.span`color:${o.lt.icons.inputObjectIcon};`,Up=j.Ay.span`color:${o.lt.editor.keywordToken};`,Yp=j.Ay.span`color:${o.lt.icons.unionIcon};`,Wp=j.Ay.span`color:${o.lt.editor.typeToken};`,qp=j.Ay.span`color:${o.lt.editor.keyToken};`,Xp=j.Ay.span`color:${o.lt.editor.operatorToken};`,Zp=j.Ay.span`color:${o.lt.editor.stringToken};`,Jp=j.Ay.span`color:${o.lt.editor.numberToken};`,eh=j.Ay.span`color:${o.lt.editor.keywordToken};`,nh=j.Ay.a`cursor:pointer;text-decoration:underline;:hover{text-decoration:none;}`;var lh=l(30628),ah=l(50514),th=l(10119),ih=l(76884);async function rh(e,n,l){if(null===e||void 0===e||!e.treeModel)return;const a={kind:th.$e.OPERATION,astNode:{kind:Ll.xs.OPERATION_DEFINITION,operationType:l,location:[0,0],selectionSet:(0,ih.wD)()},type:n,typeName:n.name};return e.collapseAll(),e.treeModel.triggerCreate({name:"",checkable:!1,expandable:!1,renamable:!0,metadata:a})}function sh(){const{Menu:e,MenuItem:n,closeMenu:l,toggleMenu:t,status$:i}=(0,y.b)(),r=(0,a.gxC)(),s=(0,a.zKO)(),o=(0,a.H1s)(r),c=(0,y.CH)(),u=(0,b.useCallback)((()=>{null!==o&&void 0!==o&&o.queryType&&rh(o,o.queryType,Ll.S5.QUERY),l()}),[o,l]),m=(0,b.useCallback)((()=>{null!==o&&void 0!==o&&o.mutationType&&rh(o,o.mutationType,Ll.S5.MUTATION),l()}),[o,l]),p=(0,b.useCallback)((()=>{null!==o&&void 0!==o&&o.subscriptionType&&rh(o,o.subscriptionType,Ll.S5.SUBSCRIPTION),l()}),[o,l]);return(0,b.useEffect)((()=>i.subscribe(c)),[i,c]),(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(d.pG,{disabled:!s.exists,tooltip:i.value()?void 0:"New Operation",onClick:t,children:(0,F.jsx)(g.RE,{})}),(0,F.jsxs)(e,{children:[(0,F.jsx)(n,{onClick:u,children:"New Query"}),s.hasMutationType&&(0,F.jsx)(n,{onClick:m,children:"New Mutation"}),s.hasSubscriptionType&&(0,F.jsx)(n,{onClick:p,children:"New Subscription"})]})]})}function oh(){const e=(0,a.gxC)(),n=(0,a.H1s)(e),[l,t]=function(){const{Menu:e,MenuItem:n,MenuSeparator:l,openMenu:t,closeMenu:i}=(0,y.EF)();return[(0,b.useCallback)((function(t){let{builderModel:r}=t;const s=(0,a.zKO)(),o=(0,b.useCallback)((()=>{null!==r&&void 0!==r&&r.queryType&&rh(r,r.queryType,Ll.S5.QUERY),i()}),[r]),d=(0,b.useCallback)((()=>{null!==r&&void 0!==r&&r.mutationType&&rh(r,r.mutationType,Ll.S5.MUTATION),i()}),[r]),c=(0,b.useCallback)((()=>{null!==r&&void 0!==r&&r.subscriptionType&&rh(r,r.subscriptionType,Ll.S5.SUBSCRIPTION),i()}),[r]),u=(0,b.useCallback)((()=>{null===r||void 0===r||r.collapseAll(),i()}),[r]);return(0,F.jsxs)(e,{children:[(0,F.jsx)(n,{onClick:o,children:"New Query"}),s.hasMutationType&&(0,F.jsx)(n,{onClick:d,children:"New Mutation"}),s.hasSubscriptionType&&(0,F.jsx)(n,{onClick:c,children:"New Subscription"}),(0,F.jsx)(l,{}),(0,F.jsx)(n,{onClick:u,children:"Collapse All"})]})}),[e,n,l,i]),t]}(),i=(0,b.useRef)([]),r=(0,b.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),t(e)}),[t]),s=(0,b.useCallback)(((e,l)=>{l.selected||(l.model.selectedNodes.forEach((e=>{e.selected=!1})),l.toggleSelected()),l.expanded||l.toggleExpanded(),n&&function(e,n){const l=(0,a.W09)();if(l){const a=(0,ih.$V)(e,n);a&&(l.setPosition(a),l.revealPositionInCenterIfOutsideViewport(a))}}(n,l)}),[n]),o=(0,b.useCallback)((async e=>{const l=(0,a.W09)();if(!l)return;const t=l.getModel();return t&&n&&(0,th.uN)(e.metadata)?(e.metadata.astNode.name=(0,lh.Oj)((0,lh.zI)(Ll.Yp.NAME,e.name,0,0,0,0,0,0)),await ch(n,l,t,e.metadata.astNode),void window.setTimeout((()=>{(0,ih.jm)(n,new ah.Position(1,1))}),f.tx)):void 0}),[n]),d=(0,b.useCallback)((e=>{const l=e.subscribeFor((async e=>{if(n)for(const l of e)if(l.node)switch(l.kind){case"checked":await gh(n,l.node);break;case"unchecked":ph(n,l.node);break;case"created":o(l.node)}}),"checked","unchecked","created");i.current.push(l)}),[n,e,o]);return(0,b.useEffect)((()=>{const e=i.current;return()=>{let n;for(;n=e.pop();)n()}}),[n]),n?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(p.PH,{id:f.Fk,model:n.treeModel,itemHeight:p._Y,emptyContent:(0,F.jsx)(dh,{}),onInitialized:d,onContextMenu:r,children:e=>(0,F.jsx)(p.nF,{id:e.id,depth:e.depth,name:e.name,path:e.path,checkable:e.checkable,checked:e.checked,expandable:e.expandable,expanded:e.expanded,node:e,onClick:s,renderIcon:hh,renderName:yh})}),(0,F.jsx)(l,{builderModel:n})]}):null}function dh(){const e=(0,a.zKO)(),n=(0,a.$nk)(),l=(0,a.DMK)(e.endpoint);return n?(0,F.jsx)(Tn.$M,{}):l?(0,F.jsx)(Tn.jc,{}):null!==e&&void 0!==e&&e.indexed?(0,F.jsx)(Tn.HY,{title:"No Operations",icon:(0,F.jsx)(g.Lq,{inheritColor:!0})}):(0,F.jsx)(Tn.pu,{})}async function ch(e,n,l,a){l.pushStackElement(),l.pushEditOperations(null,[{range:{startColumn:1,startLineNumber:1,endColumn:1,endLineNumber:1},text:(0,Ll.yy)(a)+(l.getValueLength()?"\n\n":"")}],(()=>null)),await e.updateAST(l.getValue()),n.setPosition(new ah.Position(1,1))}async function uh(e,n,l,a,t){const i=(0,Ll.g$)(e.documentAST.tokens,a.location),r=i.startToken.start,s=i.endToken.end;l.pushStackElement(),l.pushEditOperations(null,[{range:{startColumn:r.column,startLineNumber:r.line,endColumn:s.column,endLineNumber:s.line},text:(0,Ll.yy)(a)}],(()=>null)),await e.updateAST(l.getValue());const o=void 0===t?r:e.documentAST.tokens[t].end;n.setPosition(new ah.Position(o.line,o.column))}async function gh(e,n){const l=e.schemaEndpoint,t=(0,a.W09)();if(!l||!t)return;const i=t.getModel();if(i){if((0,th.UW)(n.metadata)){var r;const a=null!==(r=await In.gA.getFields(l,n.metadata.typeName))&&void 0!==r?r:[],s=(0,ih.SM)(n),o={kind:Ll.xs.OPERATION_DEFINITION,location:[0,0],operationType:s,selectionSet:(0,ih.wD)()};return Sh(o,a),void await ch(e,t,i,o)}if((0,th.XC)(n.metadata)){const[a,r]=Kh(n),s="enum"===n.metadata.unwrappedValueType.typeKind||"scalar"===n.metadata.unwrappedValueType.typeKind?void 0:await In.gA.getFields(l,n.metadata.unwrappedValueType.name);if(!r){const l=(0,ih.SM)(n),r=Fh({kind:Ll.xs.OPERATION_DEFINITION,location:[0,0],operationType:l},!0,a,s);return void await ch(e,t,i,r)}const o=(0,ih.K5)(n);if(!o)return;const d=(0,Ll.YR)(o.astNode,{OperationDefinition:e=>Fh(e,r.path===o.treeNode.path,a,s),FragmentDefinition:e=>Fh(e,r.path===o.treeNode.path,a,s),InlineFragment:(e,n,l,t,i)=>{const d=(0,ih.ou)(t,i,o.treeNode.path,(0,ih.pK)(e));return Fh(e,r.path===d,a,s)},Field:(e,n,l,t,i)=>{const d=(0,ih.ou)(t,i,o.treeNode.path,(0,ih.MO)(e));return Fh(e,r.path===d,a,s)}});await uh(e,t,i,d)}else if((0,th.e$)(n.metadata)||(0,th.YC)(n.metadata)){var s;const[l,a]=Kh(n);if(!a)return;const r=(0,ih.K5)(n);if(!r)return;const o=(0,th.e$)(n.metadata)?[n.metadata.argumentType]:null!==(s=n.metadata.fieldType.arguments)&&void 0!==s?s:[],d=(0,Ll.YR)(r.astNode,{OperationDefinition:e=>Fh(e,a.path===r.treeNode.path,l,void 0,o),FragmentDefinition:e=>Fh(e,a.path===r.treeNode.path,l,void 0,o),InlineFragment:(e,n,t,i,s)=>{const d=(0,ih.ou)(i,s,r.treeNode.path,(0,ih.pK)(e));return Fh(e,a.path===d,l,void 0,o)},Field:(e,n,t,i,s)=>{const d=(0,ih.ou)(i,s,r.treeNode.path,(0,ih.MO)(e));return Fh(e,a.path===d,l,void 0,o)},ArgumentDict:(e,n,t,i,s)=>{if((0,Ll.N5)(t)){const e=(0,ih.ou)(i,s,r.treeNode.path,(0,ih.XA)());return Fh(t,a.path===e,l,void 0,o).argumentDict}return e}});await uh(e,t,i,d)}else if((0,th.WH)(n.metadata)){const[l,a]=Kh(n);if(!a)return;const r=(0,ih.K5)(n);if(!r)return;const s=[mh(n)],o=(0,Ll.YR)(r.astNode,{OperationDefinition:e=>Fh(e,a.path===r.treeNode.path,l,void 0,s),FragmentDefinition:e=>Fh(e,a.path===r.treeNode.path,l,void 0,s),InlineFragment:(e,n,t,i,o)=>{const d=(0,ih.ou)(i,o,r.treeNode.path,(0,ih.pK)(e));return Fh(e,a.path===d,l,void 0,s)},Field:(e,n,t,i,o)=>{const d=(0,ih.ou)(i,o,r.treeNode.path,(0,ih.MO)(e));return Fh(e,a.path===d,l,void 0,s)},ArgumentDict:(e,n,t,i,o)=>{if((0,Ll.N5)(t)){const e=(0,ih.ou)(i,o,r.treeNode.path,(0,ih.XA)());return Fh(t,a.path===e,l,void 0,s).argumentDict}return e},Argument:(e,n,t,i,s)=>{if((0,Ll.SF)(e)){const n=e,t=(0,ih.ou)(i,s,r.treeNode.path,(0,ih.vK)(e));return a.path===t&&Ch(n,l),n}return e},ObjectField:(e,n,t,i,s)=>{if((0,Ll.cY)(e)){const n=e,t=(0,ih.ou)(i,s,r.treeNode.path,(0,ih.MO)(e));return a.path===t&&Ch(n,l),n}return e}});await uh(e,t,i,o)}else if((0,th.SR)(n.metadata)){const[l,a]=Kh(n);if(!a)return;const r=(0,ih.K5)(n);if(!r)return;const s=(0,Ll.YR)(r.astNode,{OperationDefinition:e=>Fh(e,a.path===r.treeNode.path,l),FragmentDefinition:e=>Fh(e,a.path===r.treeNode.path,l),InlineFragment:(e,n,t,i,s)=>{const o=(0,ih.ou)(i,s,r.treeNode.path,(0,ih.pK)(e));return Fh(e,a.path===o,l)},Field:(e,n,t,i,s)=>{const o=(0,ih.ou)(i,s,r.treeNode.path,(0,ih.MO)(e));return Fh(e,a.path===o,l)}});await uh(e,t,i,s)}else if((0,th._w)(n.metadata)){const[a,r]=Kh(n);if(!r)return;const s=(0,ih.K5)(n);if(!s)return;const o=await In.gA.getFields(l,n.metadata.type.name),d=(0,Ll.YR)(s.astNode,{OperationDefinition:e=>Fh(e,r.path===s.treeNode.path,a,o),FragmentDefinition:e=>Fh(e,r.path===s.treeNode.path,a,o),InlineFragment:(e,n,l,t,i)=>{const d=(0,ih.ou)(t,i,s.treeNode.path,(0,ih.pK)(e));return Fh(e,r.path===d,a,o)},Field:(e,n,l,t,i)=>{const d=(0,ih.ou)(t,i,s.treeNode.path,(0,ih.MO)(e));return Fh(e,r.path===d,a,o)}});await uh(e,t,i,d)}else;}}function mh(e){let n=e;for(;n=null===(l=n)||void 0===l?void 0:l.parent;){var l;if((0,th.e$)(n.metadata))return n.metadata.argumentType}throw new Error}async function ph(e,n){const l=(0,a.W09)();if(!l)return;const t=l.getModel();if(t){var i,r;if((0,th.uN)(n.metadata)||(0,th.F2)(n.metadata))!function(e,n,l,a){const t=(0,Ll.g$)(e,a),i=t.endToken.index+1,r=e.length>i?e[i].start:t.endToken.end,s=t.startToken.start;n.setPosition(new ah.Position(s.line,s.position)),l.pushStackElement(),l.pushEditOperations(null,[{range:{endColumn:r.column,endLineNumber:r.line,startColumn:s.column,startLineNumber:s.line},text:""}],(()=>null))}(e.documentAST.tokens,l,t,n.metadata.astNode.location),(null!==(i=n.parent)&&void 0!==i?i:n.model).remove(n);if((0,th.YC)(n.metadata)){var s;const a=(0,ih.K5)(n);if(!a)return;let i;const r=(0,Ll.YR)(a.astNode,{ArgumentDict:(e,l,t,r,s)=>{const o=(0,ih.ou)(r,s,a.treeNode.path,(0,ih.XA)());return n.path===o?(void 0===i&&(i=e.location[0]>0?e.location[0]-1:e.location[0]),null):e}});await uh(e,l,t,r,null!==(s=i)&&void 0!==s?s:void 0)}if((0,th.e$)(n.metadata))if((0,th.YC)(null===(r=n.parent)||void 0===r?void 0:r.metadata)&&0===n.parent.children.filter((e=>e.checked)).length)n.parent.checked=!1;else{const a=(0,ih.K5)(n);if(!a)return;let i;const r=(0,Ll.YR)(a.astNode,{Argument:(e,l,t,r,s)=>{const o=(0,ih.ou)(r,s,a.treeNode.path,(0,ih.vK)(e));return n.path===o?(void 0===i&&(i=e.location[0]>0?e.location[0]-1:e.location[0]),null):e}});await uh(e,l,t,r,i)}if((0,th.XC)(n.metadata)){const a=(0,ih.K5)(n);if(!a)return;let i;const r=(0,Ll.YR)(a.astNode,{Field:(e,l,t,r,s)=>{const o=(0,ih.ou)(r,s,a.treeNode.path,(0,ih.MO)(e));return n.path===o?(void 0===i&&(i=e.location[0]>0?e.location[0]-1:e.location[0]),null):e}});await uh(e,l,t,r,i)}if((0,th.WH)(n.metadata)){const a=(0,ih.K5)(n);if(!a)return;let i;const r=(0,Ll.YR)(a.astNode,{ObjectField:(e,l,t,r,s)=>{const o=(0,ih.ou)(r,s,a.treeNode.path,(0,ih.MO)(e));return n.path===o?(void 0===i&&(i=e.location[0]>0?e.location[0]-1:e.location[0]),null):e}});await uh(e,l,t,r,i)}if((0,th._w)(n.metadata)){const a=(0,ih.K5)(n);if(!a)return;let i;const r=(0,Ll.YR)(a.astNode,{InlineFragment:(e,l,t,r,s)=>{const o=(0,ih.ou)(r,s,a.treeNode.path,(0,ih.pK)(e));return n.path===o?(void 0===i&&(i=e.location[0]>0?e.location[0]-1:e.location[0]),null):e}});await uh(e,l,t,r,i)}if((0,th.SR)(n.metadata)){const a=(0,ih.K5)(n);if(!a)return;let i;const r=(0,Ll.YR)(a.astNode,{FragmentSpread:(e,l,t,r,s)=>{const o=(0,ih.ou)(r,s,a.treeNode.path,(0,ih.Rr)(e));return n.path===o?(void 0===i&&(i=e.location[0]>0?e.location[0]-1:e.location[0]),null):e}});await uh(e,l,t,r,i)}}}function hh(e){return(0,th.XC)(e.metadata)?(0,F.jsx)(p.Zh,{children:(0,F.jsx)(g.UI,{})}):(0,th.e$)(e.metadata)||(0,th.YC)(e.metadata)||(0,th.WH)(e.metadata)?(0,F.jsx)(p.Zh,{children:(0,F.jsx)(g.zG,{})}):(0,F.jsx)(p.Zh,{children:(0,F.jsx)(g.Lq,{})})}function yh(e){return(0,F.jsx)(st.$,{children:fh(e)})}function fh(e){return(0,th.e$)(e.metadata)&&e.metadata.argumentType?(0,F.jsx)(Ap,{argument:e.metadata.argumentType}):((0,th.XC)(e.metadata)||(0,th.WH)(e.metadata))&&e.metadata.fieldType?(0,F.jsx)(Np,{type:e.metadata.fieldType,collapsed:!0}):(0,th._w)(e.metadata)?(0,F.jsx)(vh,{typeName:e.metadata.type.name}):(0,th.SR)(e.metadata)?(0,F.jsx)(jh,{fragmentName:e.metadata.fragmentName}):(0,th.uN)(e.metadata)?(0,F.jsx)(kh,{operationName:e.name,typeName:e.metadata.typeName}):(0,th.F2)(e.metadata)?(0,F.jsx)(bh,{fragmentName:e.name,typeName:e.metadata.typeName}):(0,F.jsx)(xh,{name:e.name})}function xh(e){let{name:n}=e;return(0,F.jsx)(Pp,{children:(0,F.jsx)(Hp,{children:n})})}function kh(e){let{operationName:n,typeName:l}=e;return(0,F.jsxs)(Pp,{children:[n!==ih.Wo&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(qp,{children:n}),(0,F.jsx)(zp,{children:": "})]}),(0,F.jsx)(Wp,{children:l})]})}function bh(e){let{fragmentName:n,typeName:l}=e;return(0,F.jsx)(Pp,{children:n===ih.Wo?(0,F.jsx)(qp,{children:"unnamed"}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(qp,{children:n===ih.Wo?"unnamed":n}),(0,F.jsx)(zp,{children:": "}),(0,F.jsx)(Wp,{children:l})]})})}function vh(e){let{typeName:n}=e;return(0,F.jsxs)(Pp,{children:[(0,F.jsx)(zp,{children:"... "}),(0,F.jsx)(eh,{children:"on "}),(0,F.jsx)(Wp,{children:n})]})}function jh(e){let{fragmentName:n}=e;return(0,F.jsxs)(Pp,{children:[(0,F.jsx)(zp,{children:"..."}),(0,F.jsx)(Wp,{children:n})]})}function Fh(e,n,l,a,t){const i=e;return n&&(i.selectionSet||(i.selectionSet=(0,ih.wD)()),function(e,n,l,a){let t,i=e,r=(0,Ll.N5)(e)||(0,Ll.cX)(e)?e:void 0;for(;t=n.shift();)if(!(0,th.UW)(t.metadata)){if((0,th.XC)(t.metadata))r=wh(t.metadata.fieldType);else{if((0,th.SR)(t.metadata)){var s,o;r=Ih(t.metadata.fragmentName),null===(s=i)||void 0===s||null===(o=s.selectionSet)||void 0===o||o.selections.push(r);break}if((0,th._w)(t.metadata))r=Dh(t.metadata.type.name);else{if((0,th.YC)(t.metadata)&&(0,Ll.N5)(r)){r.argumentDict||(r.argumentDict=Lh());continue}if((0,th.e$)(t.metadata))break}}var d,c;if(r)null===(d=i)||void 0===d||null===(c=d.selectionSet)||void 0===c||c.selections.push(r);if(!r||(0,Ll.AY)(r))break;i=r}var u;(0,Ll.N5)(r)&&null!==a&&void 0!==a&&a.length&&(null===(u=r.argumentDict)||void 0===u||u.arguments.push(...a.map((e=>{const l=function(e){var n;const l={kind:Ll.xs.ARGUMENT,name:Th(e.name),location:[0,0],value:null!==(n=e.defaultValue)&&void 0!==n?n:null};return l}(e);return Ch(l,n),l}))));!(0,Ll.AY)(r)&&r&&null!==l&&void 0!==l&&l.length&&Sh(r,l)}(i,l,a,t)),i}function Sh(e,n){for(const a of n){const n=(0,wp.TL)(a);var l;if("enum"===n.typeKind||"scalar"===n.typeKind)null===(l=e.selectionSet)||void 0===l||l.selections.push(wh(a))}}function Ch(e,n){let l,a,t=e;for(;l=n.shift();){var i;if((0,th.WH)(l.metadata))if(a=Ah(l.metadata.fieldType),a)(null===(i=t.value)||void 0===i?void 0:i.kind)===Ll.xs.OBJECT?t.value.fields.push(a):t.value={kind:Ll.xs.OBJECT,location:[0,0],closed:!0,fields:[a]},t=a}}function Kh(e){const n=[];let l=e.parent;for(n.unshift(e);l;){if(l.checked)return[n,l];n.unshift(l),l=l.parent}return[n,l]}function Lh(){return{kind:Ll.xs.ARGUMENT_DICT,closed:!0,location:[0,0],arguments:[]}}function Th(e){return(0,lh.Oj)({kind:Ll.Yp.NAME,index:0,end:{column:0,line:0,position:0},start:{column:0,line:0,position:0},value:e})}function wh(e){const n=(0,wp.TL)(e);return{kind:Ll.xs.FIELD,location:[0,0],name:Th(e.name),selectionSet:"enum"===n.typeKind||"scalar"===n.typeKind?void 0:(0,ih.wD)()}}function Ah(e){return{kind:Ll.xs.OBJECT_FIELD,location:[0,0],name:Th(e.name),value:{kind:Ll.xs.NULL,location:[0,0]}}}function Ih(e){return{kind:Ll.xs.FRAGMENT_SPREAD,location:[0,0],name:Th(e)}}function Dh(e){return{kind:Ll.xs.INLINE_FRAGMENT,location:[0,0],typeCondition:{kind:Ll.xs.NAMED_TYPE,location:[0,0],name:Th(e)},selectionSet:(0,ih.wD)()}}function Nh(){const e=(0,a.gxC)(),n=(0,a.H1s)(e),l=(0,b.useCallback)((()=>{null===n||void 0===n||n.collapseAll()}),[n]);return(0,F.jsxs)(te.AW,{spacing:"right",children:[(0,F.jsx)(te.w,{children:"Builder"}),(0,F.jsx)(te.jB,{}),(0,F.jsxs)(d.e2,{children:[(0,F.jsx)(sh,{}),(0,F.jsx)(d.pG,{tooltip:"Collapse Elements in Builder",onClick:l,children:(0,F.jsx)(g.AL,{})})]})]})}var Rh=l(77545);function Eh(){const e=(0,a.gxC)(),n=(0,a.nrs)(),l=(0,a._e)(),t=(0,a.XdC)(e),i=(0,a.w6G)(e),r=(0,b.useCallback)((a=>l(n||e,{headers:a})),[n,e,l]);return(0,F.jsx)(te.gN,{children:(0,F.jsx)(m.Z,{children:(0,F.jsx)(Rh.L,{authHeaderValue:t,headers:i,onChange:r})})})}var $h=l(53790);const Vh="operations";function Ph(){const e=function(){const e=(0,a.gxC)(),n=(0,a.H1s)(e),l=function(e,n){const l=(0,a.cmd)(),t=(0,a.udK)(Vh,e),i=(0,a.m2y)(),r=(0,y.YQ)((async e=>{i(e),await(null===n||void 0===n?void 0:n.updateAST(e))}),[n,i]);return(0,b.useEffect)((()=>{function e(e){null!==t&&void 0!==t&&t.uri&&$h.F.setSchemaInfo(t.uri,e)}return e(l.value()),l.subscribe(e)}),[t,l]),(0,b.useEffect)((()=>{var e;let n;const l=null===t||void 0===t||null===(e=t.onDidChangeContent((()=>{t&&!t.isDisposed()&&(n=r(t.getValue()))})))||void 0===e?void 0:e.dispose;return()=>{var e;null===l||void 0===l||l(),null===(e=n)||void 0===e||e()}}),[t,r]),t}(e,n),t=(0,a.l3b)(),i=(0,b.useRef)(null),r=(0,b.useRef)(null),s=(0,a.o0S)(),d=(0,a.SK_)();return(0,b.useEffect)((()=>{const e=r.current,n=ah.editor.create(e,{...o.Ng,glyphMargin:!0});i.current=n;const l=a.Hk3.register(Vh,n);return(0,h.p$)(n),n.onKeyUp((e=>{e.altKey||e.ctrlKey||e.metaKey||!e.shiftKey||e.keyCode!==ah.KeyCode.Digit8||n.trigger("editor","editor.action.triggerSuggest",{})})),n.onContextMenu((()=>(0,o.iD)(e))),()=>{l(),i.current=null,n.dispose()}}),[]),(0,b.useEffect)((()=>{if(i.current&&(i.current.setModel(l),t&&requestAnimationFrame((()=>{var e;null===(e=i.current)||void 0===e||e.restoreViewState(t)})),e)){function a(l){if(n){const a=(0,ih.vL)(n,l.position);if(a)if(n.activeOperationDefinition===a.astNode||(0,Ll.ML)(a.astNode))"mouse"!==l.source&&"keyboard"!==l.source||(0,ih.jm)(n,l.position);else{if("mouse"===l.source||"keyboard"===l.source){const e=n.subscribeToActiveOperationChanged((()=>{e(),(0,ih.jm)(n,l.position)}))}d(e,{activeOperation:a.index})}}r()}function r(){var n;const l=null===(n=i.current)||void 0===n?void 0:n.saveViewState();l&&d(e,{operationsEditorViewState:l})}const o=[ah.editor.registerCommand("execute-operation",((n,l)=>{s(e,l)})),i.current.onDidFocusEditorText((()=>{d(e,{focusedElement:x.W7C})})),i.current.onDidChangeCursorPosition(a),i.current.onDidChangeCursorSelection(r),i.current.onDidScrollChange(r)];return()=>{o.forEach((e=>{let{dispose:n}=e;return n()}))}}}),[e,l,n,t,s,d]),(0,y.fs)(Vh,r),r}();return(0,F.jsx)(te.nG,{ref:e})}function Mh(){return(0,F.jsxs)(te.AW,{spacing:"right",children:[(0,F.jsx)(Oh,{}),(0,F.jsx)(te.jB,{}),(0,F.jsx)(_h,{}),(0,F.jsx)(Gh,{})]})}function Oh(){const e=(0,a.gxC)(),n=(0,a._Ji)(),l=(0,a.fV)(),t=(0,a.SK_)(),{Tabs:i,Tab:r,MoreTabs:s}=(0,y.NS)(),o=(0,b.useCallback)(((a,i)=>{t(e,{activeOperationsSettingsViewId:i,isOperationsSettingsPaneCollapsed:l===i&&!n})}),[e,l,n,t]);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(i,{value:!n&&l,"aria-label":"Operation Setting Sections",onChange:o,children:[(0,F.jsx)(r,{label:"GraphQL Variables",value:"variables"}),(0,F.jsx)(r,{label:"HTTP Headers",value:"http-headers"})]}),(0,F.jsx)(s,{})]})}function _h(){const e=(0,a.wZY)(),n=(0,a.EN5)(),{hasUploadType:l}=(0,a.zKO)(),t=(0,a.WAs)(),i=K(),r=(0,b.useCallback)((async()=>{t&&i({workspaceId:t,parentId:e})}),[e,t,i]);return l?(0,F.jsx)(d.pG,{tooltip:"Add Files",disabled:!n,onClick:r,children:(0,F.jsx)(g.hM,{inheritColor:!0})}):null}function Gh(){const e=(0,a.gxC)(),n=(0,a._Ji)(),l=(0,a.SK_)(),t=(0,b.useCallback)((()=>{l(e,{isOperationsSettingsPaneCollapsed:!0})}),[e,l]),i=(0,b.useCallback)((()=>{l(e,{isOperationsSettingsPaneCollapsed:!1})}),[e,l]);return n?(0,F.jsx)(d.pG,{tooltip:"Expand",onClick:i,children:(0,F.jsx)(g.uv,{})}):(0,F.jsx)(d.pG,{tooltip:"Collapse",onClick:t,children:(0,F.jsx)(g.xr,{})})}const Hh=(0,b.memo)((function(e){var n;let{selectedKey:l,operations:a,onSelectionChange:t}=e;const i=a.map(((e,n)=>{var l,a,t,i,r,s;let o,d;switch(e.type){case Ll.S5.MUTATION:o=(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Cl,{}),(0,F.jsx)(Bh,{children:null!==(l=e.name)&&void 0!==l?l:"Unnamed Mutation"})]}),d=`Mutation: ${null!==(a=e.name)&&void 0!==a?a:"Unnamed Mutation"}`;break;case Ll.S5.QUERY:o=(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Sl,{}),(0,F.jsx)(Bh,{children:null!==(t=e.name)&&void 0!==t?t:"Unnamed Query"})]}),d=`Query: ${null!==(i=e.name)&&void 0!==i?i:"Unnamed Query"}`;break;case Ll.S5.SUBSCRIPTION:o=(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Kl,{}),(0,F.jsx)(Bh,{children:null!==(r=e.name)&&void 0!==r?r:"Unnamed Subscription"})]}),d=`Subscription: ${null!==(s=e.name)&&void 0!==s?s:"Unnamed Subscription"}`;break;default:throw new Error(`Type "${e.type}" does not exist.`)}return{content:o,title:d,key:n,value:{activeOperation:n}}})),r=null!==(n=i.find((e=>e.value.activeOperation===l)))&&void 0!==n?n:i[0];return(0,F.jsx)(ps,{selected:r,options:i,onSelectionChange:t,children:e=>{let{content:n,title:l}=e;return(0,F.jsx)(zh,{variant:"text",endIcon:(0,F.jsx)(g.D3,{}),tooltip:l,children:n})}})})),zh=(0,j.Ay)(d.Si)`display:grid;grid-template-columns:auto 1fr auto;max-width:150px;`,Bh=j.Ay.div`margin-left:7px;text-overflow:ellipsis;text-align:start;white-space:nowrap;flex:0 0 auto;`;function Qh(){var e;const n=(0,a.gxC)(),l=(0,a.NXe)(),t=(0,a.Gkt)(n),i=(0,a.$nk)(),r=null!==(e=(0,a.NFP)())&&void 0!==e?e:0,s=(0,a.n2K)(),o=(0,a.o0S)(),c=(0,a.SK_)(),u=(0,b.useCallback)((()=>{var e,n;null===(e=(0,a.W09)())||void 0===e||null===(n=e.getAction("editor.action.formatDocument"))||void 0===n||n.run()}),[]),m=(0,b.useCallback)((()=>{t&&s(n)}),[n,t,s]),p=(0,b.useCallback)((()=>{t||o(n,r)}),[r,n,t,o]),h=(0,b.useCallback)((e=>{let{value:{activeOperation:t}}=e;if(c(n,{activeOperation:t}),void 0!==t){const e=l.at(t);e&&function(e){const n=(0,a.W09)();if(n){const l=new ah.Position(e.location.startToken.start.line,e.location.startToken.start.column);l&&(n.setPosition(l),n.revealPositionNearTop(l))}}(e)}}),[n,l,c]);return(0,a.wkm)(a.bab.formatDocument,u,void 0,[u]),(0,a.wkm)(a.bab.toggleOperation,(()=>{t?s(n):o(n,r)}),void 0,[r,n,t,s,o]),(0,F.jsxs)(te.AW,{spacing:"right",children:[(0,F.jsx)(te.w,{children:"Request"}),(0,F.jsx)(te.jB,{}),(0,F.jsxs)(d.e2,{children:[(0,F.jsx)(d.pG,{tooltip:(0,a.WIA)(a.bab.formatDocument,"Format Document"),onClick:u,children:(0,F.jsx)(g.hb,{})}),l.length>1&&(0,F.jsx)(Hh,{selectedKey:r,operations:l,onSelectionChange:h}),t?(0,F.jsx)(d.Si,{color:"primary",startIcon:(0,F.jsx)(Rt.y,{colorSelector:e=>e.components.buttonPrimaryText}),tooltip:(0,a.WIA)(a.bab.toggleOperation,"Cancel Operation"),onClick:m,children:"Cancel"}):(0,F.jsx)(d.Si,{color:"primary",disabled:i,startIcon:(0,F.jsx)(g.yZ,{}),tooltip:(0,a.WIA)(a.bab.toggleOperation,"Run Operation"),onClick:p,children:"Run"})]})]})}l(32799);const Uh="variables";function Yh(){return(0,F.jsx)(te.nG,{ref:Wh()})}function Wh(){const e=(0,a.gxC)(),n=function(e){const n=(0,a.udK)(Uh,e),l=(0,a.nVi)(),t=(0,y.YQ)(l,[l]);return(0,b.useEffect)((()=>{var e;let l;const a=null===n||void 0===n||null===(e=n.onDidChangeContent((()=>{n.isDisposed()||(l=t(n.getValue()))})))||void 0===e?void 0:e.dispose;return()=>{var e;null===a||void 0===a||a(),null===(e=l)||void 0===e||e()}}),[n,t]),(0,b.useEffect)((()=>{let e=[];return ah.editor.onDidChangeMarkers((l=>{l.forEach((l=>{if(l.toString()===(null===n||void 0===n?void 0:n.uri.toString())){const a=ah.editor.getModelMarkers({owner:"json",resource:l});if(n.isDisposed())return;e=n.deltaDecorations(e,a.reduce(((e,n)=>(n.severity!==ah.MarkerSeverity.Error&&n.severity!==ah.MarkerSeverity.Warning||e.push({range:new ah.Range(n.startLineNumber,1,n.startLineNumber,1),options:{glyphMarginClassName:n.severity===ah.MarkerSeverity.Error?"codicon-error":"codicon-warning"}}),e)),[]))}}))})).dispose}),[n]),n}(e),l=(0,a.sKH)(),t=(0,b.useRef)(null),i=(0,b.useRef)(null),r=(0,a.SK_)();return(0,b.useEffect)((()=>{const e=i.current,n=ah.editor.create(e,{...o.Ng,glyphMargin:!0});t.current=n;const l=a.Hk3.register(Uh,n);return(0,h.p$)(n),n.onContextMenu((()=>(0,o.iD)(e))),()=>{l(),t.current=null,n.dispose()}}),[]),(0,b.useEffect)((()=>{if(t.current&&(t.current.setModel(n),l&&requestAnimationFrame((()=>{var e;null===(e=t.current)||void 0===e||e.restoreViewState(l)})),e)){function a(){var n;const l=null===(n=t.current)||void 0===n?void 0:n.saveViewState();l&&r(e,{variablesEditorViewState:l})}const i=[t.current.onDidFocusEditorText((()=>{r(e,{focusedElement:x.r_W})})),t.current.onDidChangeCursorPosition(a),t.current.onDidChangeCursorSelection(a),t.current.onDidScrollChange(a)];return()=>{i.forEach((e=>{let{dispose:n}=e;return n()}))}}}),[e,n,l,r]),(0,y.fs)(Uh,i),i}function qh(){const e=(0,a.gxC)(),n=(0,a.HyM)(),l=(0,b.useRef)(n.value()),t=(0,a.KRs)(),i=(0,b.useRef)(null),r=(0,a.SK_)(),s=(0,b.useCallback)((n=>{l.current=n,r(e,{isOperationsSettingsPaneCollapsed:n})}),[e,r]),o=(0,b.useCallback)((n=>{r(e,{operationsSettingsPaneHeight:n})}),[e,r]);return(0,b.useEffect)((()=>n.subscribe((e=>{i.current&&l.current!==e&&(l.current=e,e?i.current.collapse():i.current.expand())}))),[n]),(0,F.jsxs)(te.wn,{children:[(0,F.jsx)(Qh,{}),(0,F.jsx)(te.Y2,{}),(0,F.jsx)(te.gN,{children:(0,F.jsx)(bn.yr,{id:"request",ref:i,asideCollapsible:!0,asideCollapsed:l.current,asideHeight:t,asideMenu:(0,F.jsx)(Xh,{}),asideMenuInBetween:!0,mainPane:"top",topContent:(0,F.jsx)(Ph,{}),bottomContent:(0,F.jsx)(Zh,{}),onAsideCollapsedChange:s,onAsideHeightChange:o})})]})}const Xh=(0,b.memo)((function(){return(0,F.jsx)(te.wn,{$separator:"top",children:(0,F.jsx)(Mh,{})})})),Zh=(0,b.memo)((function(){return(0,F.jsx)(te.wn,{$separator:"top",children:(0,F.jsx)(Jh,{})})}));function Jh(){switch((0,a.fV)()){case"http-headers":return(0,F.jsx)(Eh,{});case"http-settings":return null;case"variables":return(0,F.jsx)(Yh,{})}}const ey="response";function ny(){return(0,F.jsx)(te.nG,{ref:ly()})}function ly(){const e=(0,a.gxC)(),n=(0,a.yoR)(),l=(0,a.BIB)(e),t=(0,b.useRef)(null),i=(0,h.bu)((()=>ah.editor.createModel(ay(l.value()),"json"))),r=(0,a.SK_)(),s=(0,y.YQ)((n=>{const l=n.saveViewState();l&&r(e,{responseEditorViewState:l})}),[e,r]);return(0,b.useEffect)((()=>{const d=t.current;if(!d)return;const c=ah.editor.create(d,{...o.Ng,readOnly:!0,model:i.current}),u=a.Hk3.register(ey,c);n&&requestAnimationFrame((()=>{c.restoreViewState(n)})),c.onContextMenu((()=>(0,o.iD)(d))),c.onDidChangeCursorPosition((()=>s(c))),c.onDidChangeCursorSelection((()=>s(c))),c.onDidScrollChange((()=>s(c))),c.onDidFocusEditorText((()=>{r(e,{focusedElement:x.Pe7})})),i.current.setValue(ay(l.value())),i.current.updateOptions(o.x5);const g=l.subscribe((e=>{c.setScrollPosition({scrollLeft:0,scrollTop:0}),i.current.setValue(ay(e))}));return()=>{g(),u(),c.dispose()}}),[l,e,i,n,s,r]),(0,y.fs)(ey,t),t}function ay(e){return e&&"string"!==typeof e?JSON.stringify(e,null,2):null!==e&&void 0!==e?e:""}function ty(){const e=(0,a.gxC)(),n=(0,b.useRef)(null),l=(0,b.useRef)(null),t=(0,a.TO5)(e),i=(0,a.ujl)(e),r=(0,b.useRef)(!0),s=(0,b.useRef)(!1),o=(0,a.QRo)(),d=(0,a.bkB)(),c=(0,a.Sp8)(),u=(0,b.useRef)(t);u.current=t;const m=(0,b.useCallback)((n=>{r.current=!1,o(e,n.id,void 0)}),[e,o]),p=(0,b.useCallback)((e=>{d(e.id,void 0,!1)}),[d]),h=(0,b.useCallback)((n=>{r.current=!1,o(e,n.parentId,n.id)}),[e,o]),y=(0,b.useCallback)((e=>{d(e.parentId,void 0,!1)}),[d]),f=(0,b.useCallback)((n=>{c(e,n.scrollOffset)}),[e,c]),x=(0,b.useCallback)((e=>{n.current=e,s.current&&n.current&&u.current&&(n.current.scrollTo(i),s.current=!1)}),[i]);(0,b.useEffect)((()=>{s.current=!0}),[e]),(0,b.useEffect)((()=>{r.current=!0}),[null===t||void 0===t?void 0:t.activeChildId]),(0,b.useLayoutEffect)((()=>{var e;if(r.current&&null!==t&&void 0!==t&&t.activeId&&n.current&&null!==(e=u.current)&&void 0!==e&&e.entries.length){const e=u.current.activeId?u.current.entries.findIndex((e=>{var n;let{id:l}=e;return l===(null===(n=u.current)||void 0===n?void 0:n.activeId)})):-1;-1===e?n.current.scrollToItem(u.current.entries.length-1,"end"):n.current.scrollToItem(e,"end")}r.current=!0}),[null===t||void 0===t?void 0:t.activeId]);const k=(0,b.useCallback)(((e,n)=>`item-${n.entries[e].id}`),[]),v=(0,b.memo)((function(e){let{data:n,index:l,style:t}=e;const i=n.entries[l];return(0,a.qBC)(i)?(0,F.jsx)("div",{style:t,onClick:()=>h(i),onDoubleClick:()=>y(i),children:(0,F.jsx)(ry,{id:i.id,kind:i.kind,active:i.id===n.activeChildId&&i.parentId===n.activeId,last:i.last,duration:i.duration,index:i.index,success:i.success,received:i.received})},`entry-${i.id}`):(0,F.jsx)("div",{style:t,onClick:()=>m(i),onDoubleClick:()=>p(i),children:(0,F.jsx)(iy,{id:i.id,documentId:n.documentId,duration:i.duration,operationName:i.operationName,operationStatus:i.operationStatus,operationType:i.operationType,pending:i.pending,active:i.id===n.activeId,started:i.started,expandable:i.expandable,expanded:i.expanded})},`entry-${i.id}`)}),Ft.t7);return null!==t&&void 0!==t&&t.entries.length?(0,F.jsx)(jt.d,{innerListRef:x,scrollbarRef:l,itemCount:t.entries.length,itemData:t,itemKey:k,itemSize:lc.lh,tabIndex:-1,onScrollVirtualList:f,children:v}):(0,F.jsx)(Tn.HY,{title:"No Responses",icon:(0,F.jsx)(g.mo,{})})}const iy=(0,b.memo)((function(e){let{id:n,documentId:l,active:a,duration:t,operationName:i,operationStatus:r,operationType:s,pending:o,started:d,expandable:c,expanded:u}=e;return(0,F.jsxs)(lc.St,{className:a?"active":void 0,children:[(0,F.jsx)(sy,{documentId:l,resultId:n,active:a,pending:o,expandable:c,expanded:u}),(0,F.jsx)(oy,{operationStatus:r}),(0,F.jsx)(lc.dg,{children:s===Ll.S5.MUTATION?(0,F.jsx)(Cl,{title:"Mutation"}):s===Ll.S5.SUBSCRIPTION?(0,F.jsx)(Kl,{title:"Subscription"}):(0,F.jsx)(Sl,{title:"Query"})}),(0,F.jsx)(lc.hE,{children:i||s}),(0,F.jsx)(lc.gX,{children:(0,k.n$)(d)}),(0,F.jsx)(lc.G3,{children:(0,h.Ds)(t)})]})})),ry=(0,b.memo)((function(e){let{active:n,last:l,duration:a,kind:t,index:i,success:r,received:s}=e;return(0,F.jsxs)(lc.St,{className:n?"active":void 0,children:[(0,F.jsx)(lc.dg,{children:l?n?(0,F.jsx)(g.BB,{}):(0,F.jsx)(g.Dv,{}):n?(0,F.jsx)(g.XJ,{}):(0,F.jsx)(g.Z5,{})}),(0,F.jsx)(dy,{success:r}),(0,F.jsx)(lc.dg,{children:(0,F.jsx)(g.b1,{})}),(0,F.jsxs)(lc.hE,{children:["event"===t?"Event":"Patch"," ",i+1]}),(0,F.jsx)(lc.gX,{children:(0,k.n$)(s)}),(0,F.jsx)(lc.G3,{children:(0,h.Ds)(a)})]})}));function sy(e){let{documentId:n,resultId:l,active:t,pending:i,expandable:r,expanded:s}=e;const o=(0,a.QQs)(),d=(0,a.HjE)(),c=(0,b.useCallback)((e=>{r&&(e.stopPropagation(),s?o(n,l):d(n,l))}),[n,l,r,s,o,d]);return(0,F.jsx)(lc.dg,{onClick:c,children:i?(0,F.jsx)(Rt.y,{}):r?s?(0,F.jsx)(g.D3,{}):(0,F.jsx)(g.vK,{}):t?(0,F.jsx)(g.yf,{}):(0,F.jsx)(g.M1,{})})}function oy(e){let{operationStatus:n}=e;switch(n){case"cancelled":return(0,F.jsx)(cy,{children:(0,F.jsx)(g.tT,{})});case"failed":return(0,F.jsx)(cy,{children:(0,F.jsx)(g.ik,{})});default:return(0,F.jsx)(cy,{children:(0,F.jsx)(g.BK,{})})}}function dy(e){let{success:n}=e;return n?(0,F.jsx)(cy,{children:(0,F.jsx)(g.BK,{})}):(0,F.jsx)(cy,{children:(0,F.jsx)(g.ik,{})})}const cy=(0,j.Ay)(lc.dg)`margin-right:5px;`;function uy(){const e=(0,a.gxC)(),n=(0,a.MaU)(e),l=(0,a.bkB)(),t=(0,b.useCallback)((async()=>{n&&l(n,void 0,!1)}),[n,l]);return(0,F.jsxs)(te.AW,{spacing:"right",children:[(0,F.jsx)(te.w,{children:"Responses"}),(0,F.jsx)(te.jB,{}),n&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(d.pG,{tooltip:"Go to Log Entry",onClick:t,children:(0,F.jsx)(g.D0,{})}),(0,F.jsx)(gy,{documentId:e})]}),(0,F.jsx)(my,{})]})}function gy(e){let{documentId:n}=e;const l=(0,a.Gkt)(n),t=(0,a.LTd)(),i=(0,b.useCallback)((()=>{t(n)}),[n,t]);return(0,F.jsx)(d.pG,{tooltip:"Clear Results",disabled:l,onClick:i,children:(0,F.jsx)(g.EO,{})})}function my(){const e=(0,a.gxC)(),n=(0,a.ILA)(),l=(0,a.SK_)(),t=(0,b.useCallback)((()=>{l(e,{isResponseEntriesPaneCollapsed:!0})}),[e,l]),i=(0,b.useCallback)((()=>{l(e,{isResponseEntriesPaneCollapsed:!1})}),[e,l]);return n?(0,F.jsx)(d.pG,{tooltip:"Expand",onClick:i,children:(0,F.jsx)(g.uv,{})}):(0,F.jsx)(d.pG,{tooltip:"Collapse",onClick:t,children:(0,F.jsx)(g.xr,{})})}var py=l(32089);function hy(){const e=(0,a.gxC)(),n=(0,a.Ac3)(e),l=(0,a.GKj)(e);return n||l?null!==n&&void 0!==n&&n.queryPlan&&null!==n&&void 0!==n&&n.queryPlanHash?(0,F.jsx)(ky,{queryPlan:n.queryPlan,queryPlanHash:n.queryPlanHash}):null!==n&&void 0!==n&&n.queryPlanEnabled?(0,F.jsx)(Tn.HY,{title:"Fusion Query Plan Not Supported",icon:(0,F.jsx)(g.Z_,{}),children:(0,F.jsx)(Tn.pd,{children:"Looks like this GraphQL Server does not support Query Plans."})}):n&&!l?(0,F.jsx)(yy,{}):(0,F.jsx)(Tn.HY,{title:"No Fusion Query Plan Yet",icon:(0,F.jsx)(g.Z_,{}),children:(0,F.jsx)(Tn.pd,{children:"Run the GraphQL Operation to get the Query Plan."})}):(0,F.jsx)(yy,{})}function yy(){const e=(0,a.gxC)(),n=(0,a._5E)(e);return(0,F.jsxs)(Tn.HY,{title:"Fusion Query Plan",icon:(0,F.jsx)(g.Z_,{}),children:[(0,F.jsx)(Tn.pd,{children:"Enable Query Plan to get insights into how Fusion fetches data from Subgraphs."}),(0,F.jsx)(Tn.pd,{children:(0,F.jsx)(be.A,{color:"primary",onClick:()=>n(),children:"Enable Query Plan"})})]})}const fy=(0,b.createContext)({selectedVariable:null,setSelectedVariable:k.lQ,resetSelectedVariable:k.lQ});function xy(e){let{children:n}=e;const[l,a]=(0,b.useState)(null);return(0,F.jsx)(fy.Provider,{value:{selectedVariable:l,setSelectedVariable:a,resetSelectedVariable:()=>a(null)},children:n})}const ky=(0,b.memo)((function(e){let{queryPlan:n,queryPlanHash:l}=e;const[a,t]=(0,b.useState)([]),[i,r]=(s=n,d="LR",(0,b.useMemo)((()=>{const[e,n]=function(e,n){const l=[],a=[];function t(e,n,a){const t={id:e,width:12+("Compose"===n.type?72:152),height:"Compose"===n.type?40:60,position:{x:0,y:0},data:n,parentNode:a||void 0,extent:a?"parent":void 0,type:"Compose"===n.type?"compose":"custom",selectable:!1,focusable:!1,deletable:!1};return l.push(t),t}function i(e,l){const[t,i]=function(e){return"LR"===e?[Yg.yX.Right,Yg.yX.Left]:[Yg.yX.Bottom,Yg.yX.Top]}(n);a.push({id:(0,py.Ak)(),source:e.id,target:l.id,sourceHandle:t,targetHandle:i,type:"custom",animated:!0,focusable:!1,deletable:!1,markerEnd:{type:Yg.TG.ArrowClosed}})}function r(e,n,a){switch(n.type){case"Sequence":break;case"Parallel":case"Compose":case"Resolve":case"ResolveByKeyBatch":case"ResolveNode":{const r=l.at(-1),s=t(e,n,a),o=l.find((e=>e.id===a));r&&s&&r.parentNode===s.parentNode&&"Parallel"!==(null===o||void 0===o?void 0:o.data.type)&&i(r,s)}break;default:throw new Error("unknown type: "+n.type)}}function s(e){const n=[[null,e,null]];for(;n.length>0;){const[e,l,a]=n.shift();e&&r(e,l,a),"nodes"in l&&l.nodes.forEach((l=>{n.push([(0,py.Ak)(),l,e])}))}}return s(e.rootNode),[l,a]}(s,d),l=(new(Bg().graphlib.Graph)).setGraph({rankdir:d,align:"UL",ranksep:64,nodesep:44}).setDefaultEdgeLabel((()=>({})));function a(e){return e.reduce(((e,n)=>{const{parentNode:l}=n;if(l){var a;const t=null!==(a=e.get(l))&&void 0!==a?a:[];t.push(n),e.set(l,t)}return e}),new Map)}e.forEach((e=>{let{id:n,width:a,height:t}=e;l.setNode(n,{width:null!==a&&void 0!==a?a:void 0,height:null!==t&&void 0!==t?t:void 0})})),n.forEach((e=>{let{source:n,target:a}=e;l.setEdge(n,a)})),Bg().layout(l),e.forEach((e=>{const{x:n,y:a,width:t,height:i}=l.node(e.id),r=e.parentNode?0:20,s=e.parentNode?0:20;e.position={x:n+r-t/2,y:a+s-i/2}}));const t=a(e);return e.forEach((n=>{if(t.has(n.id)){const{x:a,y:i,width:r,height:s}=l.node(n.id),o=(0,Yg.Jo)(t.get(n.id)),d=20;e.push({id:(0,py.Ak)(),position:{x:a+d/2-r/2,y:i+d/2-s/2},data:void 0,style:{width:Math.max(r,o.x+o.width+d),height:Math.max(s,o.y+o.height+d)},zIndex:-1,type:"group",selectable:!1,focusable:!1,deletable:!1})}})),e.forEach((e=>{if(e.parentNode){const{x:n,y:a,width:t,height:i}=l.node(e.id),r=0,s=-44;e.position={x:n+r-t/2,y:a+s-i/2}}})),[e,n]}),[s,d]));var s,d;return(0,F.jsx)(xy,{children:(0,F.jsxs)(by,{nodes:a.length?i.map((e=>a.some((n=>{var l,a,t;return(null===(l=e.data)||void 0===l?void 0:l.selectionSetId)===n||(null===(a=e.data)||void 0===a||null===(t=a.selectionSetIds)||void 0===t?void 0:t.includes(n))}))?{...e,selected:!0}:e)):i,edges:r,nodeTypes:Ny,edgeTypes:Ry,minZoom:.75,maxZoom:1.25,zoomOnScroll:!0,nodesDraggable:!1,proOptions:{hideAttribution:!0},defaultMarkerColor:o.lt.graph.edge,fitView:!0,onNodeMouseEnter:(e,n)=>{var l,a;void 0!==(null===(l=n.data)||void 0===l?void 0:l.selectionSetId)?t([n.data.selectionSetId]):void 0!==(null===(a=n.data)||void 0===a?void 0:a.selectionSetIds)&&t(n.data.selectionSetIds)},onNodeMouseLeave:()=>{t([])},children:[n.state&&(0,F.jsx)(Yg.Zk,{position:"bottom-center",style:{bottom:20},children:(0,F.jsx)(Sy,{children:Object.entries(n.state).map((e=>{let[n,l]=e;return(0,F.jsx)(Ty,{name:n,value:l},n)}))})}),(0,F.jsx)(Qg.V,{variant:Qg._.Dots}),(0,F.jsx)(Ug.H,{showInteractive:!1})]})},l)}));const by=(0,j.Ay)(Yg.Gc)`--node-border-radius:10px;background-color:${o.lt.graph.background};color:${o.lt.graph.text};font-family:${o.F2};.react-flow__background > pattern > circle{fill:${o.lt.graph.backgroundPattern};}.react-flow__viewport,.react-flow__nodes,.react-flow__node,.react-flow__pane{overflow:visible;}.react-flow__node-custom,.react-flow__node-compose{display:flex;align-items:center;justify-content:center;}.react-flow__node-group{border:1px dashed ${o.lt.graph.nodeBorder};border-radius:var(--node-border-radius);background-color:${o.lt.graph.background};&.selected{border-color:${o.lt.graph.nodeBorderActive};}}.react-flow__handle{visibility:hidden;}.react-flow__edge-path{stroke:${o.lt.graph.edge};stroke-width:2;stroke-dasharray:5 5;}.react-flow__arrowhead{polyline{fill:${o.lt.graph.edge};stroke:${o.lt.graph.edge};}}.react-flow__edge.selected .react-flow__edge-path{stroke:${o.lt.graph.edgeActive};}.react-flow__controls{border-radius:4px;}.react-flow__controls-button{border:1px solid ${o.lt.components.toggleButtonBorder};background-color:${o.lt.components.toggleButton};border-radius:4px;&:not(:last-of-type){border-bottom-right-radius:0;border-bottom-left-radius:0;}&:not(:first-of-type){border-top-right-radius:0;border-top-left-radius:0;margin-top:-1px;}&:hover{background-color:${o.lt.components.toggleButtonHover};& > svg{fill:${o.lt.components.toggleButtonHoverText};}}& > svg{fill:${o.lt.components.toggleButtonText};}}.react-flow__attribution{display:none;}`,vy=j.Ay.div`width:152px;height:36px;padding:6px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:5px;font-weight:500;background-color:${o.lt.graph.node};border:1px solid ${o.lt.graph.nodeBorder};border:${e=>{let{$ghost:n}=e;return n?"none":""}};border-radius:var(--node-border-radius);box-shadow:${e=>{let{$ghost:n}=e;return n?"none":""}};overflow:visible;.selected &{border-color:${o.lt.graph.nodeBorderActive};}`,jy=j.Ay.div`-webkit-box-orient:vertical;-webkit-line-clamp:2;text-overflow:ellipsis;text-align:center;font-size:0.875rem;width:100%;margin:auto;`,Fy=j.Ay.div`position:absolute;top:100%;min-width:100%;margin-top:12px;display:flex;justify-content:space-evenly;gap:8px;overflow:visible;`,Sy=j.Ay.ul`display:flex;gap:5px;list-style:none;margin:0;padding:0;`,Cy=j.Ay.li`display:flex;gap:6px;`,Ky=j.Ay.span`display:inline-flex;align-items:center;justify-content:center;border-radius:12px;box-sizing:border-box;min-width:24px;height:24px;border:1px solid ${e=>{let{$selected:n}=e;return n?o.lt.graph.nodeBorderActive:o.lt.graph.nodeBorder}};font-size:0.875rem;color:${o.lt.graph.text};background-color:${o.lt.graph.node};pointer-events:all;user-select:none;cursor:default;`,Ly=j.Ay.span`display:inline-flex;align-items:center;justify-content:flex-start;height:24px;font-size:0.875rem;user-select:none;`;function Ty(e){let{name:n,value:l}=e;const{selectedVariable:a,setSelectedVariable:t,resetSelectedVariable:i}=(0,b.useContext)(fy);return(0,F.jsxs)(Cy,{children:[(0,F.jsx)(Ky,{$selected:a===n,onMouseEnter:()=>{t(n)},onMouseLeave:i,children:n.replace("__fusion_exports__","")}),l&&(0,F.jsx)(Ly,{children:l})]})}function wy(e){let{type:n,subgraph:l}=e;switch(n){case"Resolve":return`Fetch from ${l}`;case"ResolveNode":return"Fetch from ***";case"ResolveByKeyBatch":return`Batch from ${l}`;default:return n}}const Ay=(0,b.memo)((function(e){let{data:n}=e;return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(vy,{$ghost:"Parallel"===n.type,children:(0,F.jsx)(jy,{children:(0,F.jsx)(wy,{type:n.type,subgraph:n.subgraph})})}),(n.requires||n.provides)&&(0,F.jsxs)(Fy,{children:[n.requires&&(0,F.jsxs)(Sy,{children:[(0,F.jsx)(Ey,{}),n.requires.map((e=>{let{variable:n}=e;return(0,F.jsx)(Ty,{name:n},n)}))]}),n.provides&&(0,F.jsxs)(Sy,{children:[n.provides.map((e=>{let{variable:n}=e;return(0,F.jsx)(Ty,{name:n},n)})),(0,F.jsx)($y,{})]})]}),(0,F.jsx)(Yg.h7,{id:Yg.yX.Right,type:"source",position:Yg.yX.Right}),(0,F.jsx)(Yg.h7,{id:Yg.yX.Bottom,type:"source",position:Yg.yX.Bottom}),(0,F.jsx)(Yg.h7,{id:Yg.yX.Left,type:"target",position:Yg.yX.Left}),(0,F.jsx)(Yg.h7,{id:Yg.yX.Top,type:"target",position:Yg.yX.Top})]})})),Iy=j.Ay.div`width:84px;height:16px;padding:6px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid ${o.lt.graph.nodeBorder};font-weight:500;background-color:${o.lt.graph.node};border-radius:30px;overflow:visible;`,Dy=(0,b.memo)((function(e){let{data:n}=e;return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Iy,{children:(0,F.jsx)(jy,{children:(0,F.jsx)(wy,{type:n.type,subgraph:n.subgraph})})}),(0,F.jsx)(Yg.h7,{id:Yg.yX.Right,type:"source",position:Yg.yX.Right}),(0,F.jsx)(Yg.h7,{id:Yg.yX.Bottom,type:"source",position:Yg.yX.Bottom}),(0,F.jsx)(Yg.h7,{id:Yg.yX.Left,type:"target",position:Yg.yX.Left}),(0,F.jsx)(Yg.h7,{id:Yg.yX.Top,type:"target",position:Yg.yX.Top})]})})),Ny={custom:Ay,compose:Dy},Ry={custom:(0,b.memo)((function(e){let{id:n,style:l,markerEnd:a,...t}=e;const[i]=(0,Yg.oN)({offset:10,borderRadius:40,...t});return(0,F.jsx)("path",{id:n,style:l,className:"react-flow__edge-path",d:i,markerEnd:a})}))};function Ey(){return(0,F.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",style:{fill:o.lt.graph.text,transform:"rotate(-90deg)"},children:(0,F.jsx)("path",{d:"M 16.114 11.287 L 16.114 6.533 L 14.23 6.533 L 14.23 9.554 C 12.791 7.939 10.572 6.93 8.147 6.93 C 4.157 6.93 0.711 9.672 0.41 13.344 L 0.384 13.663 L2.27 13.663 L 2.297 13.395 C 2.565 10.787 5.064 8.713 8.147 8.713 C 10.33 8.713 12.223 9.754 13.236 11.287 L 9.681 11.287 L 9.681 13.069 L 14.91 13.069 L 16.119 11.911 L 16.119 11.287 L 16.114 11.287 Z"})})}function $y(){return(0,F.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",style:{fill:o.lt.graph.text,transform:"rotate(90deg)"},children:(0,F.jsx)("path",{d:"M 16.114 11.287 L 16.114 6.533 L 14.23 6.533 L 14.23 9.554 C 12.791 7.939 10.572 6.93 8.147 6.93 C 4.157 6.93 0.711 9.672 0.41 13.344 L 0.384 13.663 L2.27 13.663 L 2.297 13.395 C 2.565 10.787 5.064 8.713 8.147 8.713 C 10.33 8.713 12.223 9.754 13.236 11.287 L 9.681 11.287 L 9.681 13.069 L 14.91 13.069 L 16.119 11.911 L 16.119 11.287 L 16.114 11.287 Z"})})}function Vy(){return(0,F.jsxs)(te.AW,{spacing:"right",children:[(0,F.jsx)(te.w,{children:"Response"}),(0,F.jsx)(te.jB,{}),(0,F.jsx)(My,{}),(0,F.jsx)(Py,{})]})}function Py(){const e=(0,a.gxC)(),n=(0,a.l4V)(),l=(0,a.SK_)(),t=(0,b.useCallback)((n=>{l(e,{activeResponseViewId:n})}),[e,l]),i=(0,b.useCallback)(((e,n)=>{n&&t(n)}),[t]);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(_y,{}),(0,F.jsxs)(tg.A,{exclusive:!0,size:"small",value:n,onChange:i,children:[(0,F.jsx)(ig.A,{value:"json",children:(0,F.jsx)(ie.A,{title:"JSON",placement:"bottom",children:(0,F.jsx)(g.qz,{})})}),(0,F.jsx)(ig.A,{value:"query-plan",children:(0,F.jsx)(ie.A,{title:"Query Plan",placement:"bottom",children:(0,F.jsx)(g.Z_,{})})})]})]})}function My(){var e,n,l;const t=(0,a.gxC)(),i=(0,a.tpw)(t),r=function(e){if(!e)return!1;return(0,a._mr)(e)?"cancelled"!==e.operationStatus&&!!e.statusCode&&(null===e||void 0===e?void 0:e.statusCode)<300:"succeeded"===e.operationStatus}(i),s=e=>{switch(e){case"cancelled":return"abort";case"failed":return"failure";default:return"success"}};return i?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(te.S1,{children:[(0,F.jsx)(te.Jn,{$variant:r?"status-succeeded":"status-failed",children:(0,F.jsx)(g.bz,{inheritColor:!0})}),(0,F.jsxs)(Oy,{children:[(0,F.jsx)(te.ld,{$variant:r?"status-succeeded":"status-failed",children:(0,a._mr)(i)?"cancelled"===i.operationStatus?s(i.operationStatus):null!==(e=i.statusCode)&&void 0!==e?e:s(i.operationStatus):s(i.operationStatus)}),(0,F.jsx)(te.ve,{children:"Status"})]})]}),(null===(n=i.children)||void 0===n?void 0:n.length)&&(0,F.jsx)(te.S1,{children:(0,F.jsxs)(Oy,{children:[(0,F.jsx)(te.ld,{children:null===(l=i.children)||void 0===l?void 0:l.length}),(0,F.jsx)(te.ve,{children:(0,a._mr)(i)?"Patches":"Events"})]})}),(0,F.jsx)(te.S1,{children:(0,F.jsxs)(Oy,{children:[(0,F.jsx)(te.ld,{children:(0,h.Ds)(i.duration)}),(0,F.jsx)(te.ve,{children:"Duration"})]})}),(0,F.jsx)(te.S1,{children:(0,F.jsxs)(Oy,{children:[(0,F.jsx)(te.ld,{children:(0,h.YC)(i.contentLength)}),(0,F.jsx)(te.ve,{children:"Size"})]})})]}):null}const Oy=(0,j.Ay)(te.mA)`min-width:52px;`,_y=j.Ay.div`flex:0 0 6px;`;function Gy(){const e=(0,a.gxC)(),n=(0,a.zpm)(),l=(0,b.useRef)(n.value()),t=(0,a.Ilp)(),i=(0,b.useRef)(null),r=(0,a.SK_)(),s=(0,b.useCallback)((n=>{l.current=n,r(e,{isResponseEntriesPaneCollapsed:n})}),[e,r]),o=(0,b.useCallback)((n=>{r(e,{responseEntriesPaneHeight:n})}),[e,r]);return(0,b.useEffect)((()=>n.subscribe((e=>{i.current&&l.current!==e&&(l.current=e,e?i.current.collapse():i.current.expand())}))),[n]),(0,F.jsx)(te.wn,{$separator:"left",children:(0,F.jsx)(bn.yr,{id:"response",ref:i,asideCollapsible:!0,asideCollapsed:l.current,asideHeight:t,asideMenu:(0,F.jsx)(By,{}),asideMenuInBetween:!0,mainPane:"top",topContent:(0,F.jsx)(Hy,{}),bottomContent:(0,F.jsx)(Qy,{}),onAsideCollapsedChange:s,onAsideHeightChange:o})})}const Hy=(0,b.memo)((function(){return(0,F.jsxs)(te.wn,{children:[(0,F.jsx)(Vy,{}),(0,F.jsx)(te.Y2,{}),(0,F.jsx)(te.gN,{children:(0,F.jsx)(zy,{})})]})}));function zy(){switch((0,a.l4V)()){case"json":return(0,F.jsx)(ny,{});case"query-plan":return(0,F.jsx)(hy,{})}}const By=(0,b.memo)((function(){return(0,F.jsx)(te.wn,{$separator:"top",children:(0,F.jsx)(uy,{})})})),Qy=(0,b.memo)((function(){return(0,F.jsx)(te.wn,{$separator:"top",children:(0,F.jsx)(te.gN,{children:(0,F.jsx)(ty,{})})})}));function Uy(){const e=(0,a.htp)(),n=(0,a.AXs)(),l=(0,a.xUU)(),t=(0,b.useCallback)((e=>()=>l(e)),[l]);return(0,F.jsxs)(te.wn,{$fixedSize:36,$separator:"right",children:[(0,F.jsx)(Yy,{title:"Operation Builder",className:(i="builder",n||e!==i?void 0:"active"),onClick:t("builder"),children:(0,F.jsx)(g.Lq,{inheritColor:!0})}),(0,F.jsx)(qy,{})]});var i}function Yy(e){let{title:n,children:l,className:a,disabled:t,onClick:i}=e;return(0,F.jsx)(ie.A,{title:t?"":n,placement:"right",disableInteractive:!0,children:(0,F.jsx)(Wy,{className:a,disabled:t,onClick:i,children:(0,F.jsx)("span",{className:"icon-container",children:l})})})}const Wy=j.Ay.button`position:relative;display:flex;align-items:center;justify-content:center;width:36px;height:36px;transition:border-color 0.2s ease,opacity 0.2s ease;& > .icon-container{display:flex;align-items:center;justify-content:center;border-radius:4px;width:24px;height:24px;background-color:${o.lt.components.buttonIcon};transition:background-color 0.2s ease;& > .icon{width:16px;height:16px;fill:${o.lt.components.buttonIconText};transition:fill 0.2s ease;}}&:disabled,&:disabled:hover{opacity:0.5;& > .icon-container{background-color:${o.lt.components.buttonIcon};& > .icon{fill:${o.lt.components.buttonIconText};}}}&.active{width:36px;& > .icon-container{background-color:${o.lt.components.buttonIconHover};& > .icon{fill:${o.lt.components.buttonIconHoverText};}}&:hover{width:36px;& > .icon-container{background-color:${o.lt.components.buttonIconHover};& > .icon{fill:${o.lt.components.buttonIconHoverText};}}}}&:hover{& > .icon-container{background-color:${o.lt.components.buttonIconHover};& > .icon{fill:${o.lt.components.buttonIconHoverText};}}}`,qy=j.Ay.div`margin:auto;`,Xy=(0,b.memo)((function(){const e=(0,a.gxC)(),n=(0,a.AXs)(),l=(0,a.qQd)(),t=(0,a.gj1)(),i=(0,a.SK_)(),r=(0,b.useCallback)((n=>{i(e,{isOperationCompanionCollapsed:n})}),[e,i]);return(0,F.jsx)(bn.YV,{id:"operation",asideWidth:l,mainPane:"right",asideCollapsed:n,asideCollapsible:!0,asideMenu:(0,F.jsx)(Uy,{}),onAsideWidthChange:t,onAsideCollapsedChange:r,leftContent:(0,F.jsxs)(te.wn,{$separator:"right",children:[(0,F.jsx)(Nh,{}),(0,F.jsx)(te.Y2,{}),!1,(0,F.jsx)(te.gN,{children:(0,F.jsx)(oh,{})})]}),rightContent:(0,F.jsx)(te.wn,{children:(0,F.jsx)(te.gN,{children:(0,F.jsx)(ef,{})})})})})),Zy=(0,b.memo)(qh),Jy=(0,b.memo)(Gy),ef=(0,b.memo)((function(){const e=(0,a.ut_)(),n=(0,a.lD7)();return(0,F.jsx)(bn.YV,{id:"document",asideWidth:n,leftContent:(0,F.jsx)(Zy,{}),mainPane:"left",relativeWidth:!0,rightContent:(0,F.jsx)(Jy,{}),onAsideWidthChange:e})})),nf="schema-sdl",lf=(0,b.memo)((function(){const e=(0,a.gxC)(),n=function(e){const n=(0,a.cmd)(),l=(0,h.bu)((()=>ah.editor.createModel("","graphql"))),t=(0,a.Qas)();return l.current.updateOptions(o.x5),(0,b.useEffect)((()=>{function a(n){null!==n&&void 0!==n&&n.exists?async function(e){const n=await(0,x.ECv)(e);return n?(0,k.NY)(n.replace(/""""""/gi,"")):""}(n.endpoint).then((e=>{l.current.setValue(e)})).catch((n=>{(0,k.zf)(n)||(t(e,En.$b.error,"Could not fetch SDL. Please reload the schema and try again.",{...n}),l.current.setValue(""))})):l.current.setValue("")}return a(n.value()),n.subscribe(a)}),[e,l,n,t]),(0,b.useEffect)((()=>()=>{l.current.dispose()}),[l]),l.current}(e),l=function(e,n,l){const t=(0,b.useRef)(null),i=(0,a.SK_)(),r=(0,y.YQ)((n=>{const l=n.saveViewState();l&&i(e,{schemaSdlEditorViewState:l})}),[e,i]);return(0,b.useEffect)((()=>{const e=t.current,i=ah.editor.create(e,{...o.Ng,model:n,readOnly:!0}),s=a.Hk3.register(nf,i);return(0,h.p$)(i),i.onContextMenu((()=>(0,o.iD)(e))),i.onDidChangeCursorPosition((()=>r(i))),i.onDidChangeCursorSelection((()=>r(i))),i.onDidScrollChange((()=>r(i))),i.onDidChangeModelContent((()=>{l&&i.restoreViewState(l),i.focus()})),()=>{s(),i.dispose()}}),[e,n,l,r,i]),(0,y.fs)(nf,t),t}(e,n,(0,a.$rK)());return(0,F.jsx)(te.nG,{ref:l})}));const af=e=>{let{schemaLoading:n}=e;return(0,F.jsxs)(te.AW,{spacing:"right",children:[(0,F.jsx)(te.w,{children:"Schema Definition"}),(0,F.jsx)(te.jB,{}),(0,F.jsx)(tf,{disabled:n})]})};function tf(e){let{disabled:n}=e;const l=(0,a.zKO)();return(0,F.jsx)(d.pG,{disabled:n||!l.exists,tooltip:"Download as SDL",onClick:()=>{var e,n;if(!l.exists)return;const t=null===(e=(0,a.sdh)())||void 0===e||null===(n=e.getModel())||void 0===n?void 0:n.getValue();if(t){const e=new Blob([t],{type:"text/plain"});(0,h.Js)(e)}},children:(0,F.jsx)(g.s3,{})})}function rf(){const e=(0,a.$nk)();return(0,F.jsxs)(te.VP,{children:[(0,F.jsx)(af,{schemaLoading:e}),(0,F.jsx)(te.Y2,{}),e?(0,F.jsx)(Tn.$M,{}):(0,F.jsx)(lf,{})]})}function sf(e){let{mainContent:n,asideContent:l}=e;const t=(0,a.$Rm)(),i=(0,a.EoL)();return(0,F.jsx)(bn.YV,{id:"schema-reference",asideWidth:i,mainPane:"left",leftContent:n,rightContent:l,onAsideWidthChange:t})}function of(){const e=(0,a.gxC)(),n=(0,a.uZ0)(),l=(0,a.SK_)(),t=(0,b.useCallback)((n=>{l(e,{activeSchemaReferenceViewId:n})}),[e,l]),i=(0,b.useCallback)(((e,n)=>{n&&t(n)}),[t]);return(0,F.jsxs)(tg.A,{exclusive:!0,size:"small",value:n,onChange:i,children:[(0,F.jsx)(ig.A,{value:"default",children:(0,F.jsx)(ie.A,{title:"Type View",placement:"bottom",children:(0,F.jsx)(g.ev,{})})}),(0,F.jsx)(ig.A,{value:"column",children:(0,F.jsx)(ie.A,{title:"Column View",placement:"bottom",children:(0,F.jsx)(g.vf,{})})})]})}const df=(0,b.memo)((function(e){let{autoSizerRef:n,innerListRef:l,scrollbarRef:a,children:t,innerElementType:i,initialScrollOffset:r,itemCount:s,itemData:o,itemKey:d,itemSize:c,estimatedItemSize:u,layout:g,onScrollVirtualList:p,...h}=e;return(0,F.jsx)(m.Z,{ref:a,autoSizerRef:n,...h,children:e=>{let{width:n,height:a}=e;return e=>{let{scrollableNodeRef:m,contentNodeRef:h}=e;return(0,F.jsx)(Ft._m,{ref:l,innerElementType:i,width:n,height:a,layout:g,itemCount:s,itemData:o,itemKey:d,itemSize:c,estimatedItemSize:u,overscanCount:5,outerRef:m,innerRef:h,initialScrollOffset:r,onScroll:p,children:t})}}})}));var cf=l(17119);const uf=(0,b.memo)((function(e){let{children:n,initialScrollPosition:l,apiRef:a,onResize:t,onScroll:i}=e;const r=(0,b.useRef)(null),s=(0,b.useRef)(null),o=(0,y.bE)(),d=(0,b.useRef)({}),c=(0,y.YQ)(i,[]),u=(0,y.YQ)(t,[]),g=(0,b.useCallback)((e=>{var n;d.current[e.index]=e.width,null===s||void 0===s||null===(n=s.current)||void 0===n||n.resetAfterIndex(e.index),u(e)}),[s,u]);(0,b.useEffect)((()=>{if(a){const e={scrollToItem:e=>{var n;null===(n=s.current)||void 0===n||n.scrollToItem(e,"end")}};(0,k.Tn)(a)?a(e):a.current=e}}),[a]),(0,b.useEffect)((()=>{var e;d.current={},n.forEach(((e,n)=>d.current[n]=e.width)),null===(e=s.current)||void 0===e||e.resetAfterIndex(0)}),[n]);const m=(0,b.memo)((function(e){let{data:n,index:l,style:a}=e;return(0,F.jsx)("div",{style:a,children:(0,F.jsx)(gf,{backdropRef:r,index:l,initialWidth:n[l].width,onResize:g,children:n[l].content})})}),Ft.t7);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(df,{innerListRef:s,innerElementType:mf,itemCount:n.length,itemData:n,itemKey:e=>`column-${e}`,itemSize:e=>{var n;return null!==(n=d.current[e])&&void 0!==n?n:250},estimatedItemSize:250,layout:"horizontal",tabIndex:-1,initialScrollOffset:l,onScrollVirtualList:c,forceVisible:"x",children:m}),(0,cf.createPortal)((0,F.jsx)(yf,{ref:r}),o)]})})),gf=(0,b.memo)((function(e){let{backdropRef:n,children:l,index:a,initialWidth:t,onResize:i}=e;const r=(0,b.useRef)(null),s=(0,b.useRef)(null),o=e=>{if(e.preventDefault(),"button"in e&&0!==e.button)return;const l=n.current,t=function(e){let n=0,l=e;for(;null!==(a=l)&&void 0!==a&&a.offsetParent;){var a;n+=l.offsetLeft-l.scrollLeft,l=l.offsetParent}return n}(r.current),o=s.current,d=o.className;l.style.display="block",o.className=d+" dragging";const c=e=>{e.preventDefault();const n=(0,k.qE)(((e,n)=>"touches"in e?e.touches[0][n]:e[n])(e,"clientX")-t,100,600);(e=>{const n=r.current,l=s.current;if(!n||!l)return;n.style.width=e+"px",l.style.top="",l.style.right="",l.style.bottom="",l.style.left="";const a=e-4;l.style.left=n.offsetLeft+a+"px"})(n),i({index:a,width:n})},u={capture:!0},g=()=>{l.style.display="none",o.className=d,document.removeEventListener("mousemove",c,u),document.removeEventListener("touchmove",c,u),document.removeEventListener("mouseup",g,u),document.removeEventListener("touchcancel",g,u),document.removeEventListener("touchend",g,u)};document.addEventListener("mousemove",c,u),document.addEventListener("touchmove",c,u),document.addEventListener("mouseup",g,u),document.addEventListener("touchcancel",g,u),document.addEventListener("touchend",g,u)};return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(pf,{ref:r,$initialWidth:t,className:"column",children:l}),(0,F.jsx)(hf,{ref:s,onMouseDown:o,onTouchStart:o})]})})),mf=(0,b.forwardRef)((function(e,n){let{style:l,layout:a,...t}=e;const i={...l};return i.width=i.width?("number"===typeof i.width?i.width:parseInt(i.width))+20+"px":void 0,(0,F.jsx)("div",{ref:n,style:i,...t})})),pf=j.Ay.div.attrs((e=>{let{$initialWidth:n}=e;return{style:{flexBasis:`${n}px`,width:`${n}px`}}}))`display:flex;flex:0 0;box-sizing:border-box;border-right:1px solid ${o.lt.base.separator};height:100%;`,hf=j.Ay.div`position:absolute;z-index:10;top:0;right:-4px;bottom:0;width:8px;background-color:${o.lt.base.dragHandle};opacity:0;cursor:ew-resize;transition:opacity 0.2s ease 0s;&.dragging,&:hover{opacity:1;transition:opacity 0.2s ease 0.5s;}`,yf=j.Ay.div`display:none;position:absolute;z-index:5;top:0;right:0;bottom:0;left:0;cursor:ew-resize;`;const ff={"all-types":"All Types","root-types":"Root Types"};function xf(){const e=(0,a.Znq)(),n=(0,a.pQV)(),{Breadcrumbs:l}=(0,y.Pj)(),[t,i]=function(){const{Menu:e,MenuItem:n,closeMenu:l,toggleMenu:t}=(0,y.b)();return[(0,b.useCallback)((function(){const t=(0,a.V0m)(),i=(0,b.useCallback)((()=>{l(),t("all-types")}),[t]),r=(0,b.useCallback)((()=>{l(),t("root-types")}),[t]);return(0,F.jsxs)(e,{children:[(0,F.jsx)(n,{onClick:i,children:ff["all-types"]}),(0,F.jsx)(n,{onClick:r,children:ff["root-types"]})]})}),[e,n,l]),t]}(),r=(0,b.useCallback)(((e,l)=>()=>{n(e,l)}),[n]),s=(0,a.JKk)(),o=(0,b.useMemo)((()=>[{key:"0:root",children:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(jf,{children:(0,F.jsx)(Ff,{typeKind:"object"})}),(0,F.jsx)(kf,{children:ff[s]})]}),onClick:i}].concat(e.map(((e,n)=>({key:`${n+1}_${e.coordinate}`,children:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(jf,{children:(0,F.jsx)(vf,{breadcrumb:e})}),(0,F.jsx)(kf,{children:(0,F.jsx)(bf,{breadcrumb:e})})]}),onClick:r(n,e)}))))),[e,s,i,r]);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(m.Z,{children:e=>(0,F.jsx)(l,{items:o,minInitialItems:1,minFinalItems:1,style:e})}),(0,F.jsx)(t,{})]})}const kf=j.Ay.div`display:flex;flex:1 1 auto;align-items:center;margin-left:4px;white-space:nowrap;color:${o.lt.base.text};`,bf=e=>{let{breadcrumb:n}=e;return"field"===n.kind?(0,F.jsx)(Ep,{type:n}):(0,F.jsx)($p,{type:n})},vf=e=>{let{breadcrumb:n}=e;return"field"===n.kind?(0,F.jsx)(g.UI,{}):(0,F.jsx)(Ff,{typeKind:n.typeKind})},jf=j.Ay.div`display:flex;flex:0 0 16px;align-items:center;justify-content:center;margin:0 2px;& > .icon{fill:${o.lt.base.text};}`,Ff=e=>{let{typeKind:n}=e;switch(n){case"enum":return(0,F.jsx)(g.J8,{});case"input-object":return(0,F.jsx)(g.Lb,{});case"interface":return(0,F.jsx)(g.pY,{});case"scalar":return(0,F.jsx)(g.OC,{});case"union":return(0,F.jsx)(g.nh,{});default:return(0,F.jsx)(g.Lq,{})}};function Sf(){return(0,F.jsxs)(te.wn,{children:[(0,F.jsxs)(te.AW,{spacing:"right",children:[(0,F.jsx)(te.w,{children:"Column View"}),(0,F.jsx)(te.jB,{}),(0,F.jsx)(of,{})]}),(0,F.jsx)(te.Y2,{}),(0,a.oCw)()&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(te.tL,{children:(0,F.jsx)(xf,{})}),(0,F.jsx)(te.Y2,{})]}),(0,F.jsx)(te.gN,{children:(0,F.jsx)(Cf,{})})]})}function Cf(){const e=(0,a.Ws_)(),n=(0,a.Znq)(),l=(0,a.zKO)(),t=(0,a.$nk)(),i=(0,a.DMK)(l.endpoint),r=(0,a._Gr)(),s=(0,b.useRef)(null),o=(0,a.xi$)(),d=(0,a.y4V)(),c=(0,b.useCallback)((e=>{let{index:n,width:l}=e;o(n,l)}),[o]),u=(0,b.useCallback)((e=>{let{scrollOffset:n}=e;d(n)}),[d]);return(0,b.useEffect)((()=>{var n;null===(n=s.current)||void 0===n||n.scrollToItem(e.length-1)}),[e]),e.length?(0,F.jsx)(uf,{apiRef:s,initialScrollPosition:r,onResize:c,onScroll:u,children:e.map(((e,l)=>{var a;return{width:e,content:(0,F.jsx)(Kf,{position:l,activeItemId:null===(a=n[l])||void 0===a?void 0:a.coordinate})}}))}):t||l.indexed?(0,F.jsx)(Tn.$M,{}):i?(0,F.jsx)(Tn.jc,{}):(0,F.jsx)(Tn.pu,{})}function Kf(e){let{position:n,activeItemId:l}=e;const t=(0,a.V3s)(n),i=(0,a.ATB)(),r=(0,y.YQ)((e=>i(n,e)),[n,i]);return(0,F.jsxs)(te.VP,{children:[(0,F.jsx)(te.v1,{spacing:"x",children:(0,F.jsx)(Ln.U,{searchTerm:t,onSearchTermChange:r})}),(0,F.jsx)(te.Y2,{}),(0,F.jsx)(te.gN,{children:(0,F.jsx)(Lf,{position:n,activeItemId:l})})]})}const Lf=(0,b.memo)((function(e){let{position:n,activeItemId:l}=e;const t=(0,a.Pw3)(n),i=(0,a.L2r)(n),r=(0,a.pQV)(),s=(0,a.Iid)(),o=(0,b.useCallback)((e=>()=>r(n,e)),[n,r]),d=(0,y.YQ)((e=>{let{scrollOffset:l}=e;return s(n,l)}),[n,s]),c=(0,b.memo)((function(e){let{data:n,index:a,style:t}=e;const i=n[a];return(0,F.jsx)("div",{style:t,onClick:o(i),children:"field"===i.kind?(0,F.jsx)(Tf,{active:i.coordinate===l,fieldType:i}):(0,F.jsx)(wf,{active:i.coordinate===l,type:i})})}),Ft.t7);return(0,F.jsx)(jt.d,{itemCount:t.length,itemData:t,itemKey:e=>`item-${e}`,itemSize:lc.lh,tabIndex:-1,initialScrollOffset:i,onScrollVirtualList:d,children:c})})),Tf=e=>{let{active:n,fieldType:l}=e;const a=(0,wp.TL)(l);return(0,F.jsxs)(lc.St,{className:n?"active":void 0,children:[(0,F.jsx)(lc.dg,{children:(0,F.jsx)(g.UI,{})}),(0,F.jsx)(lc.hE,{children:(0,F.jsx)(Np,{type:l,collapsed:!0})}),l.isDeprecated&&(0,F.jsx)(lc.dg,{children:(0,F.jsx)(g.id,{})}),["input-object","interface","object","union"].includes(a.typeKind)&&(0,F.jsx)(lc.dg,{children:(0,F.jsx)(g.vK,{})})]})};function wf(e){let{active:n,type:l}=e;return(0,F.jsxs)(lc.St,{className:n?"active":void 0,children:[(0,F.jsx)(lc.dg,{children:(0,F.jsx)(Af,{typeKind:l.typeKind})}),(0,F.jsx)(lc.hE,{children:(0,F.jsx)($p,{type:l})}),l.isRelayType&&(0,F.jsx)(ie.A,{disableInteractive:!0,title:"Relay Type",placement:"bottom",children:(0,F.jsx)(lc.dg,{children:(0,F.jsx)(g.$C,{})})}),["input-object","interface","object","union"].includes(l.typeKind)&&(0,F.jsx)(lc.dg,{children:(0,F.jsx)(g.vK,{})})]})}function Af(e){let{typeKind:n}=e;switch(n){case"enum":return(0,F.jsx)(g.J8,{});case"input-object":return(0,F.jsx)(g.Lb,{});case"interface":return(0,F.jsx)(g.pY,{});case"scalar":return(0,F.jsx)(g.OC,{});case"union":return(0,F.jsx)(g.nh,{});default:return(0,F.jsx)(g.Lq,{})}}function If(){const e=(0,a.j_O)(),n=(0,a.$it)(),l=(0,a.LLk)(),t=(0,a.n6L)(),i=(0,a.x$U)();return(0,F.jsxs)(te.wn,{$separator:"left",children:[(0,F.jsx)(te.AW,{spacing:"right",children:(0,F.jsx)(Df,{fieldOrType:null===e||void 0===e?void 0:e.activeFieldOrType})}),(0,F.jsx)(te.Y2,{}),e&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(te.v1,{spacing:"right",children:(0,F.jsx)(Rf,{fieldOrType:e.activeFieldOrType,sectionId:e.activeSectionId,onChangeSection:n,onNavigateBackward:t,onNavigateForward:i})}),(0,F.jsx)(te.Y2,{})]}),(0,F.jsx)(te.gN,{children:e?(0,F.jsx)(Ef,{fieldOrType:e.activeFieldOrType,fields:e.fields,sectionId:e.activeSectionId,onNavigate:l}):(0,F.jsx)(Of,{})})]})}function Df(e){let{fieldOrType:n}=e;return n?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Nf,{children:(0,F.jsx)(Gf,{children:"field"===n.kind?(0,F.jsx)(g.UI,{}):(0,F.jsx)(Hf,{typeKind:n.typeKind})})}),(0,F.jsx)(te.w,{style:{userSelect:"text"},children:n.name}),(0,F.jsx)(te.jB,{}),"type"===n.kind&&n.isRelayType&&(0,F.jsx)(Gf,{children:(0,F.jsx)(g.$C,{})})]}):(0,F.jsx)(te.w,{children:"Details"})}const Nf=j.Ay.div`margin-left:8px;`;function Rf(e){var n,l;let{fieldOrType:t,sectionId:i,onChangeSection:r,onNavigateBackward:s,onNavigateForward:o}=e;const c=(0,a.nD4)(),u=(0,a.L7M)(),{Tabs:m,Tab:p,MoreTabs:h}=(0,y.NS)(t),f=(0,b.useCallback)(((e,n)=>{r(n)}),[r]);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(m,{value:null!==i&&void 0!==i?i:null,"aria-label":"Document View Selection",onChange:f,children:[(0,F.jsx)(p,{label:"General",title:"General",value:"general"}),"type"===t.kind&&"interface"===t.typeKind&&!(null===(n=t.types)||void 0===n||!n.length)&&(0,F.jsx)(p,{label:"Implemented By",title:"Implemented By",value:"types"}),"type"===t.kind&&"object"===t.typeKind&&!(null===(l=t.interfaces)||void 0===l||!l.length)&&(0,F.jsx)(p,{label:"Implements",title:"Implements",value:"types"})]}),(0,F.jsx)(h,{}),(0,F.jsx)(te.jB,{}),(0,F.jsx)(d.pG,{disabled:!c,onClick:s,children:(0,F.jsx)(g.A6,{})}),(0,F.jsx)(d.pG,{disabled:!u,onClick:o,children:(0,F.jsx)(g.fl,{})})]})}const Ef=e=>{var n,l,a,t,i;let{fieldOrType:r,fields:s,sectionId:o,onNavigate:d}=e;return(0,F.jsxs)(m.Z,{children:[r.description?(0,F.jsx)(Bf,{dangerouslySetInnerHTML:{__html:(0,h.Gc)(r.description)}}):(0,F.jsx)(Bf,{children:"No description"}),"field"===r.kind&&r.isDeprecated&&(0,F.jsx)(Bf,{children:(0,F.jsx)(zf,{deprecationReason:r.deprecationReason})}),"field"===r.kind&&(0,F.jsxs)(Qf,{children:[(0,F.jsx)(Uf,{children:"Returns"}),(0,F.jsx)("code",{children:(0,F.jsx)($p,{type:r.valueType,onClick:e=>d(e)})})]}),"general"===o&&"field"===r.kind&&!(null===(n=r.arguments)||void 0===n||!n.length)&&(0,F.jsx)($f,{arguments:r.arguments,onNavigate:d}),"general"===o&&"type"===r.kind&&["input-object","interface","object"].includes(r.typeKind)&&!(null===s||void 0===s||!s.length)&&(0,F.jsx)(Pf,{fields:s,onNavigate:d}),"general"===o&&"type"===r.kind&&"enum"===r.typeKind&&!(null===(l=r.enumValues)||void 0===l||!l.length)&&(0,F.jsx)(Vf,{enumValues:r.enumValues}),"general"===o&&"type"===r.kind&&"union"===r.typeKind&&!(null===(a=r.types)||void 0===a||!a.length)&&(0,F.jsx)(Mf,{title:"Types",types:r.types,onNavigate:d}),"types"===o&&"type"===r.kind&&"interface"===r.typeKind&&!(null===(t=r.types)||void 0===t||!t.length)&&(0,F.jsx)(Mf,{title:"Implemented By",types:r.types,onNavigate:d}),"types"===o&&"type"===r.kind&&"object"===r.typeKind&&!(null===(i=r.interfaces)||void 0===i||!i.length)&&(0,F.jsx)(Mf,{title:"Implements",types:r.interfaces,onNavigate:d})]})},$f=(0,b.memo)((function(e){let{arguments:n,onNavigate:l}=e;return(0,F.jsx)(Ze.B,{title:"Arguments",orientation:"vertical",items:n.map((e=>({key:`info-arguments-${e.coordinate}`,name:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Gf,{children:(0,F.jsx)(g.zG,{})}),(0,F.jsx)(Yf,{children:(0,F.jsx)(Ap,{argument:e,onClick:e=>l(e.type)})}),e.isDeprecated&&(0,F.jsx)(Gf,{children:(0,F.jsx)(g.id,{})})]}),description:(0,F.jsxs)(F.Fragment,{children:[e.description?(0,F.jsx)("div",{dangerouslySetInnerHTML:{__html:(0,h.Gc)(e.description)}}):"No description",e.isDeprecated&&(0,F.jsx)(zf,{deprecationReason:e.deprecationReason})]})})))})})),Vf=(0,b.memo)((function(e){let{enumValues:n}=e;return(0,F.jsx)(Ze.B,{title:"Enum Values",orientation:"vertical",items:n.map((e=>({key:`info-values-${e.coordinate}`,name:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Gf,{children:(0,F.jsx)(g.GY,{})}),(0,F.jsx)(Wf,{children:e.name}),e.isDeprecated&&(0,F.jsx)(Gf,{children:(0,F.jsx)(g.id,{})})]}),description:(0,F.jsxs)(F.Fragment,{children:[e.description?(0,F.jsx)("div",{dangerouslySetInnerHTML:{__html:(0,h.Gc)(e.description)}}):"No description",e.isDeprecated&&(0,F.jsx)(zf,{deprecationReason:e.deprecationReason})]})})))})})),Pf=(0,b.memo)((function(e){let{fields:n,onNavigate:l}=e;return(0,F.jsx)(Ze.B,{title:"Fields",orientation:"vertical",items:n.map((e=>({key:`info-fields-${e.coordinate}`,name:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Gf,{children:(0,F.jsx)(g.UI,{})}),(0,F.jsx)(Yf,{children:(0,F.jsx)(Np,{type:e,collapsed:!0,onClick:e=>l("argument"===e.kind?e.type:e.valueType)})}),e.isDeprecated&&(0,F.jsx)(Gf,{children:(0,F.jsx)(g.id,{})})]}),description:(0,F.jsxs)(F.Fragment,{children:[e.description?(0,F.jsx)("div",{dangerouslySetInnerHTML:{__html:(0,h.Gc)(e.description)}}):"No description",e.isDeprecated&&(0,F.jsx)(zf,{deprecationReason:e.deprecationReason})]})})))})})),Mf=(0,b.memo)((function(e){let{title:n,types:l,onNavigate:a}=e;return(0,F.jsx)(Ze.B,{title:n,orientation:"vertical",items:l.map((e=>{let n=(0,wp.TL)(e);return{key:`info-types-${n.coordinate}`,name:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Gf,{children:(0,F.jsx)(Hf,{typeKind:n.typeKind})}),(0,F.jsx)(Yf,{children:(0,F.jsx)($p,{type:n,onClick:e=>a(e)})})]}),description:n.description?(0,F.jsx)("div",{dangerouslySetInnerHTML:{__html:(0,h.Gc)(n.description)}}):"No description"}}))})})),Of=()=>(0,F.jsx)(m.Z,{children:(0,F.jsx)(Ze.B,{title:"Type Icon Legend",orientation:"vertical",items:[{key:"argument",name:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(_f,{children:(0,F.jsx)(Gf,{children:(0,F.jsx)(g.zG,{})})}),"Argument"]}),description:"Marks field arguments"},{key:"deprecation",name:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(_f,{children:(0,F.jsx)(Gf,{children:(0,F.jsx)(g.id,{})})}),"Deprecation"]}),description:"A warning triangle marks deprecated fields and enum values"},{key:"enum",name:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(_f,{children:(0,F.jsx)(Gf,{children:(0,F.jsx)(Hf,{typeKind:"enum"})})}),"Enum"]}),description:"Marks enum types"},{key:"enum-value",name:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(_f,{children:(0,F.jsx)(Gf,{children:(0,F.jsx)(g.GY,{})})}),"Enum Value"]}),description:"Marks enum values"},{key:"field",name:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(_f,{children:(0,F.jsx)(Gf,{children:(0,F.jsx)(g.UI,{})})}),"Field"]}),description:"Marks field types"},{key:"input-object",name:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(_f,{children:(0,F.jsx)(Gf,{children:(0,F.jsx)(Hf,{typeKind:"input-object"})})}),"Input Object"]}),description:"Marks input object types"},{key:"interface",name:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(_f,{children:(0,F.jsx)(Gf,{children:(0,F.jsx)(Hf,{typeKind:"interface"})})}),"Interface"]}),description:"Marks interface types"},{key:"object",name:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(_f,{children:(0,F.jsx)(Gf,{children:(0,F.jsx)(Hf,{typeKind:"object"})})}),"Object"]}),description:"Marks object types"},{key:"relay",name:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(_f,{children:(0,F.jsx)(Gf,{children:(0,F.jsx)(g.$C,{})})}),"Relay"]}),description:(0,F.jsxs)(F.Fragment,{children:["Marks Relay types (e.g Node) as described in the"," ",(0,F.jsxs)(qf,{href:"https://relay.dev/docs/guides/graphql-server-specification/#schema",children:["Relay Spec ",(0,F.jsx)(g.pT,{})]})]})},{key:"scalar",name:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(_f,{children:(0,F.jsx)(Gf,{children:(0,F.jsx)(Hf,{typeKind:"scalar"})})}),"Scalar"]}),description:"Marks scalar types"},{key:"union",name:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(_f,{children:(0,F.jsx)(Gf,{children:(0,F.jsx)(Hf,{typeKind:"union"})})}),"Union"]}),description:"Marks union types"}]})}),_f=j.Ay.div`display:flex;flex:0 0 auto;align-items:center;padding-right:12px;`,Gf=j.Ay.div`display:flex;flex:0 0 20px;align-items:center;justify-content:center;height:16px;& > .icon{fill:${o.lt.base.text};}`,Hf=e=>{let{typeKind:n}=e;switch(n){case"enum":return(0,F.jsx)(g.J8,{});case"input-object":return(0,F.jsx)(g.Lb,{});case"interface":return(0,F.jsx)(g.pY,{});case"scalar":return(0,F.jsx)(g.OC,{});case"union":return(0,F.jsx)(g.nh,{});default:return(0,F.jsx)(g.Lq,{})}},zf=e=>{let{deprecationReason:n}=e;return(0,F.jsxs)(O.A,{severity:"warning",children:[(0,F.jsx)("h3",{children:"Deprecated"}),n&&(0,F.jsx)("p",{dangerouslySetInnerHTML:{__html:(0,h.Gc)(n)}})]})},Bf=j.Ay.div`flex:0 0 auto;margin:12px 13px;font-size:1.167rem;font-weight:normal;line-height:1.75rem;color:${o.lt.base.description};`,Qf=j.Ay.div`flex:0 0 auto;margin:12px 13px;`,Uf=j.Ay.h2`margin-bottom:4px;font-size:1.167rem;font-weight:normal;line-height:1.75rem;color:${o.lt.base.subtitle};`,Yf=j.Ay.div`flex:1 1 auto;padding:0 4px;`,Wf=(0,j.Ay)(Yf)`color:${o.lt.icons.scalarIcon};`,qf=j.Ay.a.attrs({rel:"nofollow noopener noreferrer",target:"_blank"})`display:inline-flex;align-items:center;color:${o.lt.components.linkText};text-decoration:none;transition:color 0.2s ease;& > .icon{margin-left:4px;fill:${o.lt.components.linkText};transition:fill 0.2s ease;}&:hover{color:${o.lt.components.linkHoverText};& > .icon{fill:${o.lt.components.linkHoverText};}}`;function Xf(){return(0,F.jsx)(_l.t,{children:(0,F.jsx)(a.OeH,{children:(0,F.jsx)(sf,{mainContent:(0,F.jsx)(Sf,{}),asideContent:(0,F.jsx)(If,{})})})})}function Zf(){const e=(0,a.zm_)(),n=(0,a.txQ)(),l=(0,a.Kn4)(),t=(0,a.pjm)(),i=(0,a.WfH)(),r=(0,a.zKO)(),s=(0,a.$nk)(),o=(0,a.DMK)(r.endpoint),d=(0,a.ZfW)();return(0,F.jsxs)(te.wn,{children:[(0,F.jsxs)(te.AW,{spacing:"right",children:[(0,F.jsx)(te.w,{children:"Type View"}),(0,F.jsx)(te.jB,{}),(0,F.jsx)(of,{})]}),(0,F.jsx)(te.Y2,{}),(0,F.jsx)(te.gN,{children:i.length?(0,F.jsx)(m.Z,{children:n?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(ex,{activeType:n}),"enum"===e?(g=n.enumValues,null!==g&&void 0!==g&&g.length?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(dx,{children:(0,F.jsx)(ux,{children:(0,F.jsx)(hx,{children:"Values"})})}),g.map((e=>(0,F.jsxs)(cx,{children:[(0,F.jsx)(ux,{children:(0,F.jsx)(yx,{children:(0,F.jsx)(Fx,{children:e.name})})}),(0,F.jsxs)(gx,{children:[e.description?(0,F.jsx)(kx,{dangerouslySetInnerHTML:{__html:(0,h.Gc)(e.description)}}):(0,F.jsx)(kx,{children:"No description"}),e.isDeprecated&&(0,F.jsx)(fx,{deprecationReason:e.deprecationReason})]})]},`enum-value-${e.coordinate}`)))]}):null):"union"===e?ax(n.types,d):(c=l,u=d,null!==c&&void 0!==c&&c.length?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(dx,{children:(0,F.jsx)(ux,{children:(0,F.jsx)(hx,{children:"Fields"})})}),c.map((e=>(0,F.jsxs)(cx,{children:[(0,F.jsx)(ux,{children:(0,F.jsx)(yx,{children:(0,F.jsx)(Np,{type:e,collapsed:!0,onClick:e=>{const n=(0,wp.TL)("argument"===e.kind?e.type:e.valueType);u(n,n.typeKind)}})})}),(0,F.jsxs)(gx,{children:[e.description?(0,F.jsx)(kx,{dangerouslySetInnerHTML:{__html:(0,h.Gc)(e.description)}}):(0,F.jsx)(kx,{children:"No description"}),nx(e,u),e.isDeprecated&&(0,F.jsx)(fx,{deprecationReason:e.deprecationReason})]})]},`field-${e.coordinate}`)))]}):null)]}):e?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Jf,{activeCategory:e}),"directive"===e?lx(t,d):ax(t,d)]}):null}):s||r.indexed?(0,F.jsx)(Tn.$M,{}):o?(0,F.jsx)(Tn.jc,{}):(0,F.jsx)(Tn.pu,{})})]});var c,u,g}function Jf(e){let{activeCategory:n}=e;return(0,F.jsxs)(ox,{children:[(0,F.jsx)(ux,{children:(0,F.jsx)(mx,{children:ix(n)})}),(0,F.jsx)(gx,{children:(0,F.jsx)(kx,{children:tx(n)})})]})}function ex(e){let{activeType:n}=e;return(0,F.jsxs)(ox,{children:[(0,F.jsxs)(ux,{children:[(0,F.jsx)(mx,{children:n.name}),(0,F.jsxs)(px,{children:["Kind of type: ",sx(n.typeKind)]})]}),(0,F.jsx)(gx,{children:n.description?(0,F.jsx)(kx,{dangerouslySetInnerHTML:{__html:(0,h.Gc)(n.description)}}):(0,F.jsx)(kx,{children:rx(n.kind)})})]})}function nx(e,n){var l;return null!==(l=e.arguments)&&void 0!==l&&l.length?(0,F.jsx)(bx,{children:e.arguments.map((e=>(0,F.jsxs)(vx,{children:[(0,F.jsx)(Ap,{argument:e,onClick:()=>{const l=(0,wp.TL)(e.type);n(l,l.typeKind)}}),e.description&&(0,F.jsx)(jx,{dangerouslySetInnerHTML:{__html:(0,h.Gc)(e.description)}}),e.isDeprecated&&(0,F.jsx)(fx,{deprecationReason:e.deprecationReason})]},`argument-${e.coordinate}`)))}):null}function lx(e,n){return null!==e&&void 0!==e&&e.length?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(dx,{children:(0,F.jsx)(ux,{children:(0,F.jsx)(hx,{children:"Directives"})})}),e.map((e=>(0,F.jsxs)(cx,{children:[(0,F.jsx)(ux,{children:(0,F.jsx)(yx,{children:(0,F.jsx)(Dp,{directive:e,collapsed:!0})})}),(0,F.jsxs)(gx,{children:[e.description?(0,F.jsx)(kx,{dangerouslySetInnerHTML:{__html:(0,h.Gc)(e.description)}}):(0,F.jsx)(kx,{children:"No description"}),nx(e,n)]})]},`directive-${e.coordinate}`)))]}):null}function ax(e,n){return null!==e&&void 0!==e&&e.length?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(dx,{children:(0,F.jsx)(ux,{children:(0,F.jsx)(hx,{children:"Types"})})}),e.map((e=>{const l="value-type"===e.kind?e.type:e;return(0,F.jsxs)(cx,{children:[(0,F.jsx)(ux,{children:(0,F.jsx)(yx,{children:(0,F.jsx)($p,{type:l,onClick:()=>{n(l,l.typeKind)}})})}),(0,F.jsx)(gx,{children:l.description?(0,F.jsx)(kx,{dangerouslySetInnerHTML:{__html:(0,h.Gc)(l.description)}}):(0,F.jsx)(kx,{children:"No description"})})]},`type-${l.coordinate}`)}))]}):null}function tx(e){switch(e){case"directive":return(0,F.jsx)(F.Fragment,{children:"A directive can be attached to a field or fragment inclusion, and can affect execution of the query in any way the server desires."});case"enum":return(0,F.jsxs)(F.Fragment,{children:["Also called Enums, enumeration types are a special kind of scalar that is restricted to a particular set of allowed values. This allows you to: 1) Validate that any arguments of this type are one of the allowed values, and 2) communicate through the type system that a field will always be one of a finite set of values."," ",(0,F.jsxs)(le,{href:"https://graphql.org/learn/schema/#enumeration-types",children:["Learn More ",(0,F.jsx)(g.pT,{})]})]});case"interface":return(0,F.jsxs)(F.Fragment,{children:["Like many type systems, GraphQL supports interfaces. An Interface is an abstract type that includes a certain set of fields that a type must include to implement the interface."," ",(0,F.jsxs)(le,{href:"https://graphql.org/learn/schema/#interfaces",children:["Learn More ",(0,F.jsx)(g.pT,{})]})]});case"input-object":return(0,F.jsxs)(F.Fragment,{children:["Pass complex objects as arguments into a field with input types. This is particularly valuable in the case of mutations, where you might want to pass in a whole object to be created."," ",(0,F.jsxs)(le,{href:"https://graphql.org/learn/schema/#input-types",children:["Learn More ",(0,F.jsx)(g.pT,{})]})]});case"object":return(0,F.jsxs)(F.Fragment,{children:["The most basic components of a GraphQL schema are object types, which just represent a kind of object you can fetch from your service, and what fields it has."," ",(0,F.jsxs)(le,{href:"https://graphql.org/learn/schema/#object-types-and-fields",children:["Learn More ",(0,F.jsx)(g.pT,{})]})]});case"scalar":return(0,F.jsxs)(F.Fragment,{children:["A GraphQL object type has a name and fields, but at some point those fields have to resolve to some concrete data. That\u2019s where the scalar types come in: they represent the leaves of the query."," ",(0,F.jsxs)(le,{href:"https://graphql.org/learn/schema/#scalar-types",children:["Learn More ",(0,F.jsx)(g.pT,{})]})]});case"union":return(0,F.jsxs)(F.Fragment,{children:["Union types are very similar to interfaces, but they don't get to specify any common fields between the types."," ",(0,F.jsxs)(le,{href:"https://graphql.org/learn/schema/#union-types",children:["Learn More ",(0,F.jsx)(g.pT,{})]})]})}}function ix(e){switch(e){case"directive":return"Directives";case"enum":return"Enums";case"input-object":return"Input Objects";case"interface":return"Interfaces";case"object":return"Objects";case"scalar":return"Scalars";case"union":return"Unions"}}function rx(e){switch(e){case"query-type":return(0,F.jsxs)(F.Fragment,{children:["The Query type is a special type that defines the entry point of every GraphQL query. Otherwise, the Query type is the same as any other GraphQL object type, and its fields work exactly the same way."," ",(0,F.jsxs)(le,{href:"https://graphql.org/learn/queries/",children:["Learn More ",(0,F.jsx)(g.pT,{})]})]});case"mutation-type":return(0,F.jsxs)(F.Fragment,{children:["The Mutation type is a special type that is used to modify server-side data. Just like in queries, if the mutation field returns an object type, you can ask for nested fields. It can also contain multiple fields. However, unlike queries, mutation fields run in series, one after the other."," ",(0,F.jsxs)(le,{href:"https://graphql.org/learn/queries/#mutations",children:["Learn More ",(0,F.jsx)(g.pT,{})]})]});case"subscription-type":return(0,F.jsx)(F.Fragment,{children:"GraphQL subscriptions are a way to push data from the server to the clients that choose to listen to real time messages from the server. Subscriptions are similar to queries in that they specify a set of fields to be delivered to the client, but instead of immediately returning a single answer, a result is sent every time a particular event happens on the server."});default:return(0,F.jsx)(F.Fragment,{children:"No description"})}}function sx(e){switch(e){case"enum":return"Enum";case"input-object":return"Input Object";case"interface":return"Interface";case"object":return"Object";case"scalar":return"Scalar";case"union":return"Union"}}const ox=j.Ay.div`display:flex;flex:0 0 auto;flex-direction:row;margin:8px 13px 12px;`,dx=j.Ay.div`display:flex;flex:0 0 auto;flex-direction:row;margin:0 13px 8px;`,cx=j.Ay.div`display:flex;flex:0 0 auto;flex-direction:row;margin:0;border-top:1px solid ${o.lt.base.separator};padding:8px 13px;`,ux=j.Ay.div`flex:1 0 40%;max-width:400px;font-size:1.167rem;line-height:1.5rem;`,gx=j.Ay.div`flex:1 1 60%;font-size:1.167rem;line-height:1.5rem;a{display:inline-flex;align-items:center;color:${o.lt.components.linkText};text-decoration:none;transition:color 0.2s ease;&:hover{color:${o.lt.components.linkHoverText};}}`,mx=j.Ay.h1`flex:0 0 auto;margin:2px 0 4px;font-size:1.75rem;font-weight:normal;color:${o.lt.base.heading};`,px=j.Ay.h2`flex:0 0 auto;margin:4px 0;font-size:1.25rem;font-weight:normal;color:${o.lt.base.subtitle};`,hx=j.Ay.h4`flex:0 0 auto;margin:4px 0;font-weight:normal;color:${o.lt.base.subtitle};`,yx=j.Ay.h4`flex:0 0 100%;margin:4px 0;font-weight:normal;color:${o.lt.base.subtitle};`;function fx(e){let{deprecationReason:n}=e;return(0,F.jsxs)(O.A,{severity:"warning",children:["Deprecated",n&&(0,F.jsx)(xx,{dangerouslySetInnerHTML:{__html:(0,h.Gc)(n)}})]})}const xx=j.Ay.div`margin:4px 0;font-weight:normal;`,kx=j.Ay.div`margin:4px 0;font-weight:normal;line-height:1.75rem;color:${o.lt.base.description};`,bx=j.Ay.div`display:flex;flex-direction:column;margin-left:8px;`,vx=j.Ay.div`flex:0 0 auto;margin-top:2px;margin-bottom:2px;font-weight:normal;line-height:1.75rem;color:${o.lt.base.description};`,jx=j.Ay.div``,Fx=j.Ay.span`color:${o.lt.editor.identifierToken};`;function Sx(){const e=(0,a.zm_)(),n=(0,a.txQ)(),l=(0,a.pjm)(),t=(0,a.dqq)(),i=(0,a.WfH)(),r=(0,a.zKO)(),s=(0,a.$nk)(),o=(0,a.DMK)(r.endpoint),d=(0,a.VJ7)(),c=(0,a.a6w)(),u=(0,a.e$p)(),g=(0,a.xYT)(),p=(0,a.ZfW)(),h=(0,a.j2V)(),y=l=>null!==i&&void 0!==i&&i.find((e=>{let{coordinate:l}=e;return l===(null===n||void 0===n?void 0:n.coordinate)}))||e!==l?void 0:"active",f=(e,n)=>()=>p(e,n),x=e=>()=>h(e),k=e=>{const l=(()=>{switch(e.kind){case"query-type":return null===u||void 0===u?void 0:u.queryCount;case"mutation-type":return null===u||void 0===u?void 0:u.mutationCount;case"subscription-type":return null===u||void 0===u?void 0:u.subscriptionCount}})();return(0,F.jsxs)(Kx,{className:e.coordinate===(null===n||void 0===n?void 0:n.coordinate)?"active":void 0,onClick:f(e),children:[(0,F.jsx)(Lx,{children:e.name}),void 0!==l&&(0,F.jsx)(Tx,{$operation:!0,children:l})," "]},e.coordinate)},v=(e,n,l)=>(0,F.jsxs)(Kx,{className:y(e),onClick:x(e),children:[(0,F.jsx)(Lx,{children:n}),void 0!==l&&(0,F.jsx)(Tx,{children:l})]}),j=(0,b.memo)((function(e){var l;let{data:a,index:t,style:i}=e;const r=a[t];return(0,F.jsx)("div",{style:i,children:(0,F.jsx)(Kx,{className:r.coordinate===(null===n||void 0===n?void 0:n.coordinate)?"active":void 0,onClick:f(r,null!==(l=r.typeKind)&&void 0!==l?l:r.kind),children:(0,F.jsx)(Lx,{children:r.name})})},`type-${r.coordinate}`)}),Ft.t7);return i.length?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(te.v1,{spacing:"x",children:(0,F.jsx)(Ln.U,{searchTerm:d,onSearchTermChange:g})}),(0,F.jsxs)(te.gN,{children:[(0,F.jsxs)(m.Z,{children:[!t&&!c&&(0,F.jsxs)(F.Fragment,{children:[i.map(k),(0,F.jsx)(wx,{})]}),!t&&!c&&u&&(0,F.jsxs)(F.Fragment,{children:[!!u.objectCount&&v("object","Objects",u.objectCount),!!u.scalarCount&&v("scalar","Scalars",u.scalarCount),!!u.enumCount&&v("enum","Enums",u.enumCount),!!u.inputObjectCount&&v("input-object","Input Objects",u.inputObjectCount),!!u.unionCount&&v("union","Unions",u.unionCount),!!u.interfaceCount&&v("interface","Interfaces",u.interfaceCount),!!u.directiveCount&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(wx,{}),v("directive","Directives",u.directiveCount)]})]})]}),(t||!t&&c&&e)&&!(null===l||void 0===l||!l.length)&&(0,F.jsx)(jt.d,{itemCount:l.length,itemData:l,itemKey:e=>`type-${e}`,itemSize:Cx,tabIndex:-1,children:j})]})]}):s||r.indexed?(0,F.jsx)(Tn.$M,{}):o?(0,F.jsx)(Tn.jc,{}):(0,F.jsx)(Tn.pu,{})}const Cx=34,Kx=j.Ay.button`display:flex;flex-direction:row;align-items:center;justify-content:space-between;margin:0 6px;width:calc(100% - 16px);height:34px;padding:0 12px;border-radius:4px;color:${o.lt.base.itemText};background-color:${o.lt.base.item};transition:background-color 0.2s ease,color 0.2s ease;&.active,&.active:hover{color:${o.lt.base.itemActiveText};background-color:${o.lt.base.itemActive};}&:hover{color:${o.lt.base.itemHoverText};background-color:${o.lt.base.itemHover};}`,Lx=j.Ay.span`overflow:hidden;min-width:0;text-overflow:ellipsis;white-space:nowrap;`,Tx=j.Ay.div`display:flex;flex:0 0 auto;justify-self:flex-start;align-items:center;justify-content:center;border-radius:4px;height:16px;padding:0 6px;color:${e=>{let{$operation:n}=e;return n?o.lt.states.highlight1Text:o.lt.states.highlight2Text}};background-color:${e=>{let{$operation:n}=e;return n?o.lt.states.highlight1:o.lt.states.highlight2}};`,wx=j.Ay.div`height:1px;margin:8px 16px;background-color:${o.lt.base.separator};`;function Ax(){const e=(0,a.$nk)(),n=(0,a.dqq)(),l=(0,a.zm_)(),t=(0,a.a6w)(),i=(0,a.e$p)(),r=(0,a.w5x)(),s=!n&&t&&l;return(0,F.jsxs)(te.AW,{spacing:s?"x":"right",children:[s&&(0,F.jsx)(d.pG,{onClick:r,children:(0,F.jsx)(g.A6,{})}),(0,F.jsx)(Ix,{activeCategory:l,filterActive:n,showCategoryItems:t,statistics:i}),(0,F.jsx)(te.jB,{}),!e&&i&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(te.S1,{children:(0,F.jsxs)(te.mA,{children:[(0,F.jsx)(te.ld,{children:i.typeCount}),(0,F.jsx)(te.ve,{children:"Types"})]})}),(0,F.jsx)(te.S1,{children:(0,F.jsxs)(te.mA,{children:[(0,F.jsx)(te.ld,{children:i.directiveCount}),(0,F.jsx)(te.ve,{children:"Directives"})]})})]})]})}function Ix(e){var n,l,a,t,i,r,s;let{activeCategory:o,filterActive:d,showCategoryItems:c,statistics:u}=e;if(d||!c)return(0,F.jsx)(te.w,{children:"Types"});switch(o){case"directive":return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(te.w,{children:"Directives"}),(0,F.jsx)(Dx,{children:null!==(n=null===u||void 0===u?void 0:u.directiveCount)&&void 0!==n?n:0})]});case"enum":return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(te.w,{children:"Enums"}),(0,F.jsx)(Dx,{children:null!==(l=null===u||void 0===u?void 0:u.enumCount)&&void 0!==l?l:0})]});case"input-object":return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(te.w,{children:"Input Objects"}),(0,F.jsx)(Dx,{children:null!==(a=null===u||void 0===u?void 0:u.inputObjectCount)&&void 0!==a?a:0})]});case"interface":return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(te.w,{children:"Interfaces"}),(0,F.jsx)(Dx,{children:null!==(t=null===u||void 0===u?void 0:u.interfaceCount)&&void 0!==t?t:0})]});case"object":return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(te.w,{children:"Objects"}),(0,F.jsx)(Dx,{children:null!==(i=null===u||void 0===u?void 0:u.objectCount)&&void 0!==i?i:0})]});case"scalar":return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(te.w,{children:"Scalars"}),(0,F.jsx)(Dx,{children:null!==(r=null===u||void 0===u?void 0:u.scalarCount)&&void 0!==r?r:0})]});case"union":return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(te.w,{children:"Unions"}),(0,F.jsx)(Dx,{children:null!==(s=null===u||void 0===u?void 0:u.unionCount)&&void 0!==s?s:0})]});default:return null}}const Dx=j.Ay.div`display:flex;flex:0 0 auto;align-items:center;justify-content:center;margin-left:4px;border-radius:4px;height:16px;padding:0 6px;font-size:0.857rem;font-weight:normal;color:${o.lt.states.highlight2Text};background-color:${o.lt.states.highlight2};`;function Nx(){return(0,F.jsx)(te.wn,{$separator:"left",children:(0,F.jsxs)(te.VP,{children:[(0,F.jsx)(Ax,{}),(0,F.jsx)(te.Y2,{}),(0,F.jsx)(Sx,{})]})})}function Rx(){return(0,F.jsx)(_l.t,{children:(0,F.jsx)(a.YQi,{children:(0,F.jsx)(sf,{mainContent:(0,F.jsx)(Zf,{}),asideContent:(0,F.jsx)(Nx,{})})})})}function Ex(){return"column"===(0,a.uZ0)()?(0,F.jsx)(Xf,{}):(0,F.jsx)(Rx,{})}const $x=(0,b.memo)((function(e){let{documentId:n}=e;return(0,F.jsx)(a.f9r,{documentId:n,children:(0,F.jsxs)(a.tPD,{documentId:n,children:[(0,F.jsx)(te.qY,{children:(0,F.jsx)(Px,{documentId:n})}),(0,F.jsx)(te.Ow,{children:(0,F.jsx)(_l.t,{children:(0,F.jsx)(Vx,{})},"doc_view_error_"+n)})]})})}));function Vx(){switch((0,a.mdn)()){case"operations":return(0,F.jsx)(Xy,{});case"schema":return(0,F.jsx)(Ex,{});case"sdl":return(0,F.jsx)(rf,{})}}const Px=(0,b.memo)((function(e){let{documentId:n}=e;const l=(0,a.WAs)(),t=(0,a.LbQ)(n),i=!!(0,a.u$U)((0,a.KBy)(n)).length;return(0,F.jsxs)(Dt.A,{children:[(0,F.jsx)(Gx,{}),(0,F.jsx)(te.jB,{}),(0,F.jsx)(Mx,{documentId:n,workspaceId:l,connectionSettings:t}),(0,F.jsx)(te.S1,{children:(0,F.jsx)(Ox,{isEndpointValid:i})}),(0,F.jsx)(hp,{apiOrDocumentId:n})]})}));function Mx(e){var n;let{documentId:l,workspaceId:a,connectionSettings:t}=e;const[i,r,s,o]=(0,y.wp)(),c=(0,b.useCallback)((()=>{i(l,a)}),[l,a,i]),u=(0,b.useCallback)((()=>{s(l,a)}),[l,a,s]);(0,b.useEffect)((()=>r),[l,a,r]);return"oauth2"===(null===(n=t.httpConnection.authentication)||void 0===n?void 0:n.activeAuthenticationKind)&&t.httpConnection.authentication.oAuth2Options?(0,F.jsx)(te.S1,{children:t.httpConnection.authentication.headerValue?(0,F.jsx)(d.pG,{tooltip:"Clear Token",tooltipPlacement:"bottom",onClick:u,children:(0,F.jsx)(g.vu,{})}):(0,F.jsx)(d.pG,{tooltip:o?"Cancel Fetch Token":"Fetch Token",tooltipPlacement:"bottom",onClick:o?r:c,children:o?(0,F.jsx)(g.US,{}):(0,F.jsx)(g.RY,{})})}):null}function Ox(e){let{isEndpointValid:n}=e;const l=(0,a.$nk)(),t=(0,a.IEc)(),i=(0,a.aT2)();(0,a.wkm)(a.bab.reloadSchema,i);const r=l||!n||null===t||void 0===t?void 0:t.kind;return(0,F.jsxs)(d.pG,{disabled:l||!n,spinIcon:l,tooltip:(0,a.WIA)(a.bab.reloadSchema,"Reload Schema"),tooltipPlacement:"bottom",onClick:i,children:[(0,F.jsx)(_x,{$status:r},(0,k.tB)()),(0,F.jsx)(g.fN,{})]})}const _x=j.Ay.span`position:absolute;display:inline-block;width:6px;height:6px;border:none;border-radius:50%;color:transparent;${e=>{let{$status:n}=e;switch(n){case"success":return j.AH`background-color:${o.lt.states.success};box-shadow:0 0 0 0 ${o.lt.states.success};${ae.EK}`;case"failure":return j.AH`background-color:${o.lt.states.failure};box-shadow:0 0 0 0 ${o.lt.states.failure};${ae.EK}`;default:return j.AH`background-color:${o.lt.states.none};box-shadow:0 0 0 0 ${o.lt.states.none};`}}};& + .icon{height:20px;width:20px;}`;function Gx(){const e=(0,a.gxC)(),n=(0,a.mdn)(),l=(0,a.SK_)(),{Tabs:t,Tab:i,MoreTabs:r}=(0,y.NS)(),s=(0,b.useCallback)((n=>{l(e,{activeViewId:n})}),[e,l]),o=(0,b.useCallback)(((e,n)=>{s(n)}),[s]);return(0,a.wkm)(a.bab.showOperation,(()=>s("operations")),void 0,[s]),(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(t,{value:null!==n&&void 0!==n?n:null,"aria-label":"Document View Selection",onChange:o,children:[(0,F.jsx)(i,{label:"Operation",title:(0,a.WIA)(a.bab.showOperation,"Operation"),value:"operations"}),(0,F.jsx)(i,{label:"Schema Reference",title:"Schema Reference",value:"schema"}),(0,F.jsx)(i,{label:"Schema Definition",title:"Schema Definition",value:"sdl"})]}),(0,F.jsx)(r,{})]})}var Hx=l(29925),zx=l(45735),Bx=l(12795);const Qx=[],Ux=(0,b.memo)((function(e){let{variables:n,onChange:l}=e;const a=(0,Lo.b)(),t=(0,b.useCallback)((e=>{let{oldIndex:n,targetIndex:t}=e;const i=lk(a.current),r=i.splice(n,1)[0];i.splice(t,0,r),a.current.setRows(i),l(Wx(i))}),[a,l]);return(0,b.useEffect)((()=>{var e;return null===(e=a.current)||void 0===e?void 0:e.subscribeEvent("rowsSet",(()=>{l(Wx(lk(a.current)))}))}),[a,l]),(0,F.jsx)(ot.C,{apiRef:a,columns:Yx,rows:n.map((e=>({...e,__reorder__:e.name}))),disableColumnReorder:!0,disableRowSelectionOnClick:!0,rowSelection:!1,rowReordering:!0,slots:{rowReorderIcon:g.cO},onRowOrderChange:t})})),Yx=[{...Bx.A,width:100,resizable:!1,renderCell(e){var n;return(0,F.jsxs)(F.Fragment,{children:[null===(n=Bx.A.renderCell)||void 0===n?void 0:n.call(Bx.A,e),(0,F.jsx)(ek,{id:e.row.id,api:e.api}),(0,F.jsx)(qx,{id:e.row.id,variableEnabled:e.row.enabled,api:e.api})]})}},{field:"name",headerName:"Name",flex:1,sortable:!1,renderCell(e){let{row:n,api:l}=e;return(0,F.jsx)(Zx,{id:n.id,enabled:n.enabled,variableKey:n.name,setFocusOn:n.setFocusOn,api:l})}},{field:"value",headerName:"Value",flex:1.5,resizable:!1,sortable:!1,renderCell(e){let{row:n,api:l}=e;return(0,F.jsx)(Jx,{id:n.id,variableIsSecret:n.isSecret,variableValue:n.value,setFocusOn:n.setFocusOn,api:l})}},{field:"",headerName:"",width:40,minWidth:40,maxWidth:40,resizable:!1,sortable:!1,renderCell(e){let{row:n,api:l}=e;return(0,F.jsx)(nk,{id:n.id,api:l})}}];function Wx(e){return e.map((e=>{let{id:n,name:l,value:a,isSecret:t,enabled:i}=e;return{id:n,name:l,value:a,isSecret:t,enabled:i}}))}const qx=(0,b.memo)((function(e){let{id:n,variableEnabled:l,api:a}=e;const t=(0,b.useCallback)((e=>{a.updateRows([{id:n,enabled:e}])}),[n,a]);return(0,F.jsx)(Xx,{children:(0,F.jsx)(Le.K,{checked:null===l||void 0===l||l,onChange:t})})})),Xx=j.Ay.div`padding-right:4px;padding-left:4px;`,Zx=(0,b.memo)((function(e){let{id:n,variableKey:l,enabled:a,setFocusOn:t,api:i}=e;const r=(0,y.YQ)((e=>{var l;e!==(null===(l=i.getRow(n))||void 0===l?void 0:l.name)&&i.updateRows([{id:n,name:e}])}),[i,n]),s=(0,b.useCallback)((function(){r(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")}),[r]);return(0,F.jsx)(ak,{initialValue:l,enableValidation:a,setFocus:"key"===t,onChange:s})})),Jx=(0,b.memo)((function(e){let{id:n,variableValue:l,variableIsSecret:a,setFocusOn:t,api:i}=e;const r=(0,y.YQ)((e=>{var l;e!==(null===(l=i.getRow(n))||void 0===l?void 0:l.value)&&i.updateRows([{id:n,value:e}])}),[i,n]),s=(0,b.useCallback)((e=>{r(e.target.value)}),[r]),o=(0,b.useCallback)((()=>{var e;i.updateRows([{id:n,isSecret:!(null!==(e=i.getRow(n))&&void 0!==e&&e.isSecret)}])}),[i,n]);return(0,F.jsx)(Hx.A,{type:a?"password":"text",placeholder:"Value",defaultValue:l,fullWidth:!0,spellCheck:!1,autoComplete:"new-password",autoFocus:"value"===t,InputProps:{endAdornment:(0,F.jsx)(d.pG,{"aria-label":"toggle password visibility",onClick:o,children:a?(0,F.jsx)(g.DP,{}):(0,F.jsx)(g.Og,{})})},onChange:s})})),ek=(0,b.memo)((function(e){let{id:n,api:l}=e;const a=(0,b.useCallback)((()=>{const e=[...l.getAllRowIds()],a=(0,k.W0)();e.splice(e.indexOf(n)+1,0,a);const t=lk(l,e);l.setRows(t)}),[n,l]);return(0,F.jsx)(d.pG,{onClick:a,children:(0,F.jsx)(g.RE,{})})})),nk=(0,b.memo)((function(e){let{id:n,api:l}=e;const a=(0,b.useCallback)((()=>{l.updateRows([{_action:"delete",id:n}])}),[n,l]);return(0,F.jsx)(d.pG,{onClick:a,children:(0,F.jsx)(g.US,{})})}));function lk(e,n){return(null!==n&&void 0!==n?n:e.getAllRowIds()).map((n=>{const l=e.getRowModels().get(n);return l?{...l,id:n}:{id:n,name:"",value:"",enabled:!0,isSecret:!1,setFocusOn:"key"}}))}const ak=(0,b.memo)((function(e){let{disabled:n,initialValue:l,enableValidation:a,setFocus:t,onChange:i}=e;const[r,s]=(0,b.useState)(!1),o=(0,b.useCallback)((e=>{a&&s(!(0,k.UV)(e))}),[a]),d=(0,b.useCallback)(((e,n,l)=>{"reset"!==l&&(o(n),i(null!==n&&void 0!==n?n:void 0))}),[o,i]),c=(0,b.useCallback)(((e,n,l)=>{"selectOption"===l&&(o(null!==n&&void 0!==n?n:""),i(null!==n&&void 0!==n?n:void 0))}),[o,i]);return(0,b.useLayoutEffect)((()=>{o(null!==l&&void 0!==l?l:"")}),[l,o]),(0,F.jsx)(zx.A,{freeSolo:!0,disabled:n,clearIcon:(0,F.jsx)(g.US,{}),options:Qx,value:l,renderInput:e=>(0,F.jsx)(Hx.A,{error:a&&r,placeholder:"Name",spellCheck:!1,autoComplete:"off",autoFocus:t,...e}),onInputChange:d,onChange:c})})),tk=(0,b.memo)((function(){const e=(0,a.mTp)();return(0,F.jsx)(te.Ow,{children:(0,F.jsx)(_l.t,{children:(0,F.jsx)(b.Suspense,{fallback:(0,F.jsx)(Ml,{}),children:(0,F.jsx)(ik,{})})},"env_view_error"+e)})})),ik=(0,b.memo)((function(){const{environmentId:e,environmentVariables:n,loading:l}=(0,a.liY)(),t=(0,a.NvJ)(),[i,r]=(0,b.useState)(rk(n)),s=(0,b.useCallback)((async()=>{if(e){const n=await(0,x.djd)(e);if(n){const e=[...n.variables.map((e=>({...e,setFocusOn:void 0}))),{id:(0,k.W0)(),name:"",value:"",enabled:!0,isSecret:!1,setFocusOn:"key"}];await t(e),r(e)}}}),[e,r,t]);return(0,b.useLayoutEffect)((()=>{r(rk(n))}),[n,r]),(0,F.jsxs)(te.wn,{children:[(0,F.jsxs)(te.v1,{spacing:"right",children:[(0,F.jsx)(te.w,{children:"Variables"}),(0,F.jsx)(te.jB,{}),(0,F.jsx)(d.Si,{tooltip:"New Variable",endIcon:(0,F.jsx)(g.RE,{}),disabled:!e,onClick:s,children:"New"})]}),(0,F.jsx)(te.Y2,{}),(0,F.jsx)(te.gN,{children:l?(0,F.jsx)(Ml,{}):(0,F.jsx)(m.Z,{children:e=>(0,F.jsx)("div",{style:e,children:(0,F.jsx)(Ux,{variables:i,onChange:t})})})})]})}));function rk(e){return(null!==e&&void 0!==e?e:[]).map((e=>({...e})))}function sk(){const e=(0,b.useRef)(null),n=(0,b.useRef)(null),l=(0,b.useRef)(null),a=(0,b.useRef)(null);return(0,y.wY)(e,(e=>{let[t]=e;if(n.current&&l.current&&a.current){if(t.contentRect.width<370)return n.current.style.display="none",l.current.style.display="none",void(a.current.style.display="none");if(t.contentRect.height<390)return n.current.style.display="none",l.current.style.display="none",void(a.current.style.display="none");if(t.contentRect.height<450)return n.current.style.display="flex",l.current.style.display="none",void(a.current.style.display="none");if(t.contentRect.height<560)return n.current.style.display="flex",l.current.style.display="flex",void(a.current.style.display="none");n.current.style.display="flex",l.current.style.display="flex",a.current.style.display="flex"}})),(0,F.jsxs)(ck,{ref:e,children:[(0,F.jsx)(uk,{}),(0,F.jsx)(hk,{moreActionsRef:l}),(0,F.jsx)(ok,{innerRef:a})]})}function ok(e){let{innerRef:n}=e;return(0,F.jsxs)(gk,{ref:n,children:[(0,F.jsxs)(mk,{children:[(0,F.jsx)(pk,{children:"Open New Tab"}),(0,F.jsx)(dk,{shortcut:a.bab.newDocument})]}),(0,F.jsxs)(mk,{children:[(0,F.jsx)(pk,{children:"Save Current Tab"}),(0,F.jsx)(dk,{shortcut:a.bab.saveTab})]}),(0,F.jsxs)(mk,{children:[(0,F.jsx)(pk,{children:"Close Current Tab"}),(0,F.jsx)(dk,{shortcut:a.bab.closeTab})]}),(0,F.jsxs)(mk,{children:[(0,F.jsx)(pk,{children:"Run Current Operation"}),(0,F.jsx)(dk,{shortcut:a.bab.toggleOperation})]})]})}function dk(e){let{shortcut:n}=e;return(0,F.jsx)(F.Fragment,{children:n.toSymbols().map(((e,n)=>(0,F.jsx)(de,{$size:e.length,children:e},`shortcut-${n}`)))})}const ck=j.Ay.div`display:flex;flex:1 1 auto;flex-direction:column;align-items:center;justify-content:center;padding:20px 0;`,uk=(0,j.Ay)(pa)`width:auto;max-width:200px;margin:20px;> *{fill:${o.lt.base.logo};}feFlood{flood-color:${o.lt.base.logoShadow};}`,gk=j.Ay.ul`display:flex;flex:0 0 auto;flex-direction:column;align-items:center;justify-content:center;width:100%;max-width:240px;`,mk=j.Ay.li`display:flex;flex:0 0 auto;flex-direction:row;align-items:center;width:100%;padding:6px 0;color:${o.lt.base.text};`,pk=j.Ay.div`display:flex;flex:1 1 auto;align-items:center;margin:0 2px;`;function hk(e){let{moreActionsRef:n}=e;const l=(0,a.SHo)(),t=(0,a.UXI)();return(0,a.wkm)(a.bab.newDocument,(()=>{l()}),void 0,[l]),(0,a.wkm)(a.bab.newDocumentFromClipboard,(()=>{t()}),void 0,[t]),(0,F.jsxs)(yk,{children:[(0,F.jsx)(d.Si,{color:"primary",size:"medium",className:"create",tooltip:(0,a.WIA)(a.bab.newDocument,"Create Document"),onClick:()=>{l()},children:"Create Document"}),(0,F.jsxs)(fk,{ref:n,children:[(0,F.jsx)(xk,{children:"/"}),(0,F.jsx)(be.A,{color:"primary",size:"medium",onClick:()=>{l("schema")},children:"Browse Schema"})]})]})}const yk=j.Ay.div`display:flex;flex:0 0 auto;flex-direction:row;align-items:center;justify-content:center;margin-bottom:20px;max-width:350px;width:100%;& > button{margin:0 8px;}`,fk=j.Ay.div`display:flex;flex:0 0 auto;flex-direction:row;align-items:center;& > *{margin:0 8px;}`,xk=j.Ay.span`font-size:1.167rem;color:${o.lt.components.fieldText};`;var kk=l(42599);function bk(){const{Menu:e,MenuItem:n,closeMenu:l,toggleMenu:t,status$:i}=(0,y.b)(),r=(0,a.WAs)(),[s]=(0,a.B7v)(),o=(0,y.CH)(),c=(0,a.PPk)(),u=(0,a.GZp)(),m=(0,a.UXI)(),p=(0,b.useCallback)((()=>{c(),l()}),[l,c]),h=(0,b.useCallback)((()=>{u(),l()}),[l,u]),f=(0,b.useCallback)((async()=>{l(),await m()}),[l,m]);return(0,b.useEffect)((()=>i.subscribe(o)),[i,o]),(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(d.pG,{disabled:!r&&!s,tooltip:i.value()?void 0:"More Actions",onClick:t,children:(0,F.jsx)(g.QU,{})}),r?(0,F.jsxs)(e,{children:[(0,F.jsx)(n,{onClick:p,children:"New API"}),(0,F.jsx)(n,{onClick:h,children:"New Environment"}),(0,F.jsx)(kk.bX,{}),(0,F.jsx)(n,{disabled:!s,onClick:f,children:"New Document from Clipboard"})]}):(0,F.jsx)(e,{children:(0,F.jsx)(n,{onClick:f,children:"New Document from Clipboard"})})]})}const vk=j.Ay.div`display:flex;flex:0 0 30px;align-items:center;justify-content:center;& > .icon{transition:fill 0.2s ease;}`,jk=j.Ay.button`flex:0 2 auto;width:16px;height:16px;margin:7px;border-radius:4px;transition:background-color 0.2s ease;& > .icon{transition:fill 0.2s ease;}`,Fk=j.Ay.div`display:flex;flex:0 2 200px;flex-direction:row;align-items:center;justify-content:flex-start;margin:0 2px;border-style:solid;border-width:1px 1px 0 1px;border-color:${o.lt.base.tabBorder};border-radius:6px 6px 0 0;height:35px;font-weight:${e=>{let{$isNew:n}=e;return n?"600":"normal"}};font-style:${e=>{let{$isPreview:n}=e;return n?"italic":"normal"}};white-space:nowrap;color:${o.lt.base.tabText};background-color:${o.lt.base.tab};cursor:pointer;transition:background-color 0.2s ease,border-color 0.2s ease,color 0.2s ease,flex 0.2s ease;&.droppable{border-color:${o.lt.base.tabHighlightedBorder};background-color:${o.lt.base.tabHighlighted};color:${o.lt.base.tabHighlightedText};}&.active{flex-shrink:1;justify-content:flex-end;min-width:80px;border-color:${o.lt.base.tabActiveBorder};background-color:${o.lt.base.tabActive};color:${o.lt.base.tabActiveText};&.droppable{border-color:${o.lt.base.tabHighlightedBorder};background-color:${o.lt.base.tabHighlighted};color:${o.lt.base.tabHighlightedText};}& > ${jk}{flex:0 0 auto;background-color:${o.lt.components.buttonIcon};& > .icon{fill:${o.lt.components.buttonIconText};}&:hover{background-color:${o.lt.components.buttonIconHover};& > .icon{fill:${o.lt.components.buttonIconHoverText};}}}${vk} > .icon{fill:${o.lt.base.tabActiveText};}&:hover{border-color:${o.lt.base.tabActiveHoverBorder};background-color:${o.lt.base.tabActiveHover};color:${o.lt.base.tabActiveHoverText};${vk} > .icon{fill:${o.lt.base.tabActiveHoverText};}& > ${jk}{& > .icon{fill:${o.lt.base.tabActiveHoverText};}}}}&:hover{border-color:${o.lt.base.tabHoverBorder};background-color:${o.lt.base.tabHover};color:${o.lt.base.tabHoverText};${vk} > .icon{fill:${o.lt.base.tabHoverText};}& > ${jk}{& > .icon{fill:${o.lt.base.tabHoverText};}}}& > ${jk}{background-color:${o.lt.components.buttonIcon};& > .icon{fill:${o.lt.components.buttonIconText};}& > .changes{display:${e=>{let{$hasChanges:n}=e;return n?"inline-block":"none"}};font-size:0.667rem;margin-bottom:1px;}& > .close{display:${e=>{let{$hasChanges:n}=e;return n?"none":"inline-block"}};}&:hover{background-color:${o.lt.components.buttonIconHover};& > .icon{fill:${o.lt.components.buttonIconHoverText};}& > .changes{display:none;}& > .close{display:inline-block;}}}${vk}{& > .icon{fill:${o.lt.base.tabText};}}`,Sk=j.Ay.div`flex:1 1 auto;`;function Ck(e){let{id:n,name:l,showTooltip:a,children:t}=e;return a?(0,F.jsx)(ie.A,{disableInteractive:!0,PopperProps:{style:{width:"220px"}},placement:"bottom",enterDelay:900,title:(0,F.jsxs)(Lk,{children:[(0,F.jsx)(Tk,{children:l}),(0,F.jsx)(Kk,{id:n})]}),children:t}):t}function Kk(e){let{id:n}=e;const l=(0,a.u$U)((0,a.XPt)(n));return l.length?(0,F.jsx)(wk,{children:l}):null}const Lk=j.Ay.div`display:flex;flex-direction:column;`,Tk=j.Ay.h1`margin:6px 2px;font-size:1.25rem;font-weight:500;line-height:1.5rem;color:${o.lt.base.heading};`,wk=j.Ay.h2`margin:0 2px 6px;font-size:1.167rem;font-weight:normal;line-height:1.5rem;color:${o.lt.base.heading};`,Ak=(0,b.memo)((function(e){let{id:n,isActive:l,isPreview:t,showTooltip:i,dragAndDropContext:r,onClick:s,onContextMenu:o,onClose:d}=e;const c=(0,a.VhH)(n),{droppable:u,dragEventHandlers:m}=(0,y.ny)(c,r),p=(0,b.useCallback)((e=>{s(e,{id:n,openIfInPreviewMode:!1})}),[n,s]),h=(0,b.useCallback)((e=>{s(e,{id:n,openIfInPreviewMode:!0})}),[n,s]),f=(0,b.useCallback)((e=>{e.stopPropagation(),e.currentTarget.blur(),d(e,{id:n})}),[n,d]),k=(0,b.useCallback)((e=>{o&&o(e,n)}),[n,o]),v=(0,b.useCallback)((e=>{e.preventDefault(),e.stopPropagation()}),[]);if(!(0,x.o6j)(c))return null;const{name:j,hasChanges:S,isNew:C,apiKind:K}=c;return(0,F.jsx)(Ck,{id:n,name:j,showTooltip:i,children:(0,F.jsxs)(Fk,{draggable:!0,$hasChanges:S,$isNew:C,$isPreview:t,className:U()({active:l,droppable:u}),onClick:p,onContextMenu:k,onDoubleClick:h,...m,children:[(0,F.jsx)(vk,{children:Ik(K)}),(0,F.jsx)(Sk,{children:j}),(0,F.jsxs)(jk,{onClick:f,onContextMenu:v,children:[(0,F.jsx)(g.US,{className:"close"}),(0,F.jsx)(g.bz,{className:"changes",inheritColor:!0})]})]})})}));function Ik(e){switch(e){case x.xi2.Gateway:return(0,F.jsx)(g.Sv,{});case x.xi2.Service:return(0,F.jsx)(g.jc,{});default:return(0,F.jsx)(g.mb,{})}}const Dk=(0,b.memo)((function(e){let{id:n,isActive:l,isPreview:t,showTooltip:i,dragAndDropContext:r,onClick:s,onContextMenu:o,onClose:d}=e;const c=(0,a.VhH)(n),u=(0,a.Hpx)(),{droppable:m,dragEventHandlers:p}=(0,y.ny)(c,r),h=(0,b.useCallback)((e=>{s(e,{id:n,openIfInPreviewMode:!1})}),[n,s]),f=(0,b.useCallback)((e=>{s(e,{id:n,openIfInPreviewMode:!0})}),[n,s]),k=(0,b.useCallback)((e=>{e.stopPropagation(),e.currentTarget.blur(),d(e,{id:n})}),[n,d]),v=(0,b.useCallback)((e=>{o&&o(e,n)}),[n,o]),j=(0,b.useCallback)((e=>{e.preventDefault(),e.stopPropagation()}),[]);if(!(0,x.NlI)(c))return null;const{name:S,hasChanges:C,isNew:K}=c;return(0,F.jsx)(Ck,{id:n,name:S,showTooltip:i,children:(0,F.jsxs)(Fk,{draggable:!0,$hasChanges:C,$isNew:K,$isPreview:t,className:U()({active:l,droppable:m}),onClick:h,onContextMenu:v,onDoubleClick:f,...p,children:[(0,F.jsx)(vk,{children:Nk(c,u)}),(0,F.jsx)(Sk,{children:S}),(0,F.jsxs)(jk,{onClick:k,onContextMenu:j,children:[(0,F.jsx)(g.US,{className:"close"}),(0,F.jsx)(g.bz,{className:"changes",inheritColor:!0})]})]})})}));function Nk(e,n){return n[e.id]?(0,F.jsx)(Rt.y,{colorSelector:e=>e.states.surprise}):e.isHistory?(0,F.jsx)(g.os,{}):(0,F.jsx)(g.py,{})}const Rk=(0,b.memo)((function(e){let{id:n,isActive:l,isPreview:t,showTooltip:i,dragAndDropContext:r,onClick:s,onContextMenu:o,onClose:d}=e;const c=(0,a.VhH)(n),{droppable:u,dragEventHandlers:m}=(0,y.ny)(c,r),p=(0,b.useCallback)((e=>{s(e,{id:n,openIfInPreviewMode:!1})}),[n,s]),h=(0,b.useCallback)((e=>{s(e,{id:n,openIfInPreviewMode:!0})}),[n,s]),f=(0,b.useCallback)((e=>{e.stopPropagation(),e.currentTarget.blur(),d(e,{id:n})}),[n,d]),k=(0,b.useCallback)((e=>{o&&o(e,n)}),[n,o]),v=(0,b.useCallback)((e=>{e.preventDefault(),e.stopPropagation()}),[]);if(!(0,x.XNu)(c))return null;const{name:j,hasChanges:S,isNew:C}=c;return(0,F.jsx)(Ck,{id:n,name:j,showTooltip:i,children:(0,F.jsxs)(Fk,{draggable:!0,$hasChanges:S,$isNew:C,$isPreview:t,className:U()({active:l,droppable:u}),onClick:p,onContextMenu:k,onDoubleClick:h,...m,children:[(0,F.jsx)(vk,{children:(0,F.jsx)(g.bw,{})}),(0,F.jsx)(Sk,{children:j}),(0,F.jsxs)(jk,{onClick:f,onContextMenu:v,children:[(0,F.jsx)(g.US,{className:"close"}),(0,F.jsx)(g.bz,{className:"changes",inheritColor:!0})]})]})})}));function Ek(){const{Menu:e,MenuItem:n,MenuSeparator:l,openMenu:t,closeMenu:i,status$:r}=(0,y.EF)(),s=(0,b.useRef)(),o=(0,b.useCallback)((function(){const t=(0,a.WAs)(),r=(0,a.EN5)(),o=(0,a.HoC)(),d=(0,a.AjF)(),c=Ua(),u=Ma(),g=Ha(),m=(0,a.Q35)(),p=(0,a.wRs)(),h=(0,a.JBV)(),y=e=>()=>{s.current&&(i(),(async e=>{for(const n of e){const e=o(n);if(null!==e&&void 0!==e&&e.hasChanges){if(!await new Promise((n=>{c({id:e.id,kind:e.kind,name:e.name,isNew:e.isNew,closeTabAfterCreation:!0},n)})))break}else d(n)}})(e(s.current)))},f=y((e=>[e])),k=y((e=>h.filter((n=>n!==e)))),b=y((e=>h.slice(h.findIndex((n=>n===e))+1))),v=y((()=>h)),j=(e,n)=>()=>{s.current&&(i(),(async(e,n)=>{if(r&&t)for(const l of e){const e=o(l);if(e&&(e.hasChanges||e.isNew||(0,x.NlI)(e)&&e.isHistory||n))if((0,x.NlI)(e)&&(e.isNew||e.isHistory)||(0,x.XNu)(e)&&e.isNew){if(!await new Promise((n=>{switch(e.kind){case"document":u({workspaceId:t,documentId:e.id,documentName:e.name,closeTabAfterCreation:!1},n);break;case"environment":g({workspaceId:t,environmentId:e.id,environmentName:e.name,closeTabAfterCreation:!1},n);break;default:n(!0)}})))break}else p(e.id)}})(e(s.current),n))},S=j((e=>[e]),!0),C=j((()=>h),!1);return(0,F.jsxs)(e,{children:[(0,F.jsx)(n,{shortcut:a.bab.closeTab,onClick:f,children:"Close"}),(0,F.jsx)(n,{disabled:h.length<2,onClick:k,children:"Close Others"}),(0,F.jsx)(n,{disabled:h.at(-1)===s.current,onClick:b,children:"Close to the Right"}),(0,F.jsx)(n,{onClick:v,children:"Close All"}),(0,F.jsx)(l,{}),(0,F.jsx)(n,{onClick:()=>{s.current&&(i(),m(s.current))},children:"Duplicate"}),(0,F.jsx)(l,{}),(0,F.jsx)(n,{shortcut:a.bab.saveTab,disabled:!r,onClick:S,children:"Save"}),(0,F.jsx)(n,{shortcut:a.bab.saveAllTabs,disabled:!r,onClick:C,children:"Save All"})]})}),[e,n,l,i]),d=(0,b.useCallback)(((e,n)=>{s.current=n,t(e)}),[t]);return[o,d,r]}function $k(){const[e,n,l]=Ek(),t=(0,a.cfp)(),i=(0,a.KlF)(),r=(0,a.E4V)(),s=(0,a.ohr)(),o=(0,a.EN5)(),c=(0,a.l_p)(),u=(0,a.WAs)(),m=function(){const e=(0,a.wJg)(),n=(0,b.useCallback)(((n,l)=>{n instanceof FileList||l&&e(n.id,l.id)}),[e]);return(0,y.XR)(Vk,n)}(),p=(0,a.K46)(),h=(0,a.SHo)(),f=(0,a.UXI)(),v=(0,a.TZL)(),j=(0,a.AjF)(),S=(0,a.wRs)(),C=Ea(),K=Ma(),L=Ha(),T=Ua(),w=(0,a.HoC)(),A=(0,y.CH)(),I=(0,y.Ku)(),D=(0,b.useCallback)(((e,n)=>{let{id:l,openIfInPreviewMode:a}=n;p(l,a),I()}),[p,I]),N=n,R=(0,b.useCallback)(((e,n)=>{let{id:l}=n;e.preventDefault(),e.stopPropagation();const a=w(l);null!==a&&void 0!==a&&a.hasChanges?T({id:a.id,kind:a.kind,name:a.name,isNew:a.isNew,closeTabAfterCreation:!0}):j(l)}),[w,T,j]),E=(0,b.useCallback)((()=>{h()}),[h]),$=(0,b.useCallback)((async e=>{if(o&&u)for(const n of e){const e=w(n);if((0,x.o6j)(e)&&e.isNew||(0,x.NlI)(e)&&(e.isNew||e.isHistory)||(0,x.XNu)(e)&&e.isNew){if(!await new Promise((n=>{switch(e.kind){case"api":C({workspaceId:u,apiId:e.id,apiName:e.name,closeTabAfterCreation:!1},n);break;case"document":K({workspaceId:u,documentId:e.id,documentName:e.name,closeTabAfterCreation:!1},n);break;case"environment":L({workspaceId:u,environmentId:e.id,environmentName:e.name,closeTabAfterCreation:!1},n);break;default:n(!0)}})))break}else null!==e&&void 0!==e&&e.hasChanges&&S(e.id)}}),[o,u,C,K,L,S,w]),V=(0,b.useCallback)((()=>{t&&$([t])}),[t,$]),P=(0,b.useCallback)((()=>{$(c.map((e=>{let{id:n}=e;return n})))}),[c,$]);return(0,a.wkm)(a.bab.newDocument,(()=>{h()}),void 0,[h]),(0,a.wkm)(a.bab.newDocumentFromClipboard,(()=>{f()}),void 0,[f]),(0,a.wkm)(a.bab.copyDocumentToClipboard,(()=>{v()}),void 0,[v]),(0,a.wkm)(a.bab.closeTab,(()=>{t&&j(t)}),void 0,[t,j]),(0,a.wkm)(a.bab.saveTab,V,void 0,[V]),(0,a.wkm)(a.bab.saveAllTabs,P,void 0,[P]),(0,b.useEffect)((()=>l.subscribe(A)),[l,A]),(0,F.jsxs)(Pk,{children:[c.map((e=>{let{id:n,kind:a}=e;switch(a){case x.epG:return(0,F.jsx)(Ak,{id:n,dragAndDropContext:m,isActive:n===t,isPreview:n===i,showTooltip:!l.value(),onClick:D,onContextMenu:N,onClose:R},n);case x.D6J:return(0,F.jsx)(Dk,{id:n,dragAndDropContext:m,isActive:n===t,isPreview:n===i,showTooltip:!l.value(),onClick:D,onContextMenu:N,onClose:R},n);case x.v1J:return(0,F.jsx)(Rk,{id:n,dragAndDropContext:m,isActive:n===t,isPreview:n===i,showTooltip:!l.value(),onClick:D,onContextMenu:N,onClose:R},n);default:return(0,k.dr)(a)}})),t&&(0,F.jsxs)(d.e2,{children:[(0,F.jsx)(d.pG,{tooltip:(0,a.WIA)(a.bab.newDocument,"New Document"),onClick:E,children:(0,F.jsx)(g.RE,{})}),(0,F.jsx)(d.pG,{disabled:!o||!(s||r),tooltip:(0,a.WIA)(a.bab.saveTab,"Save Tab"),onClick:V,children:(0,F.jsx)(g.cb,{})}),(0,F.jsx)(bk,{})]}),(0,F.jsx)(e,{}),(0,F.jsx)(Ra,{}),(0,F.jsx)(Pa,{}),(0,F.jsx)(Ga,{}),(0,F.jsx)(Qa,{})]})}function Vk(e,n){return e instanceof Array?null:function(e,n){if(void 0===n)return null;if(e.id===n.id)return null;return n}(e,n)}const Pk=j.Ay.div`z-index:1;display:flex;flex:1 1 auto;flex-direction:row;align-items:center;height:100%;`,Mk=(0,b.memo)((function(e){let{activeTabId:n}=e;const l=(0,a.oHY)(),t=(0,a.mTp)();return n&&l?(0,F.jsx)(te.hb,{children:(0,F.jsx)(_l.t,{children:(0,F.jsx)(a.qS5,{environmentId:l===x.v1J?n:t,children:(0,F.jsx)(a.KEn,{children:(0,F.jsxs)(a.aR1,{children:[(0,F.jsx)(te.WA,{children:(0,F.jsx)($k,{})}),(0,F.jsx)(_l.t,{wrapError:e=>(0,F.jsx)(te.Ow,{children:e}),children:(0,F.jsx)(Ok,{tabId:n,tabKind:l})},"view_selection_error_"+n)]})})})},"main_section_error_"+n)}):(0,F.jsx)(te.Of,{children:(0,F.jsx)(sk,{})})})),Ok=(0,b.memo)((function(e){let{tabId:n,tabKind:l}=e;switch(l){case x.epG:return(0,F.jsx)(Lp,{apiId:n});case x.D6J:return(0,F.jsx)($x,{documentId:n});case x.v1J:return(0,F.jsx)(tk,{});default:return(0,k.dr)(l)}}));function _k(){const e=(0,a.uyD)(),n=(0,a.HDl)(),l=(0,a.KcR)(),t=(0,a.hMg)(),i=(0,a.d_6)(),r=(0,b.useCallback)((e=>{e?n():l()}),[n,l]);return(0,F.jsx)(bn.YV,{id:"main",asideCollapsible:!0,asideCollapsed:t,asideWidth:i,asideMenu:(0,F.jsx)(ha,{}),mainPane:"right",leftContent:(0,F.jsx)($l,{}),rightContent:(0,F.jsx)(Gk,{}),onAsideWidthChange:e,onAsideCollapsedChange:r})}const Gk=(0,b.memo)((function(){const e=(0,a.cfp)();return function(){var e,n;const l=(0,a.Bpo)(),t=null!==(e=null===(n=(0,a.Lsh)())||void 0===n?void 0:n.title)&&void 0!==e?e:f.C3,i=(0,a.hBE)();(0,b.useLayoutEffect)((()=>{function e(e,n){document.title=[e,n,t].filter(Boolean).join(" - ")}e(l.value(),i.value());const n=l.subscribe((n=>{e(n,i.value())})),a=i.subscribe((n=>{e(l.value(),n)}));return()=>{n(),a()}}),[l,t,i])}(),(0,F.jsx)(Hl,{children:(0,F.jsx)(Mk,{activeTabId:e})})}));function Hk(){return(0,F.jsxs)(F.Fragment,{children:[!1,(0,F.jsx)(_k,{}),(0,F.jsx)(nn,{}),(0,F.jsx)(J,{}),(0,F.jsx)(ne.e,{}),(0,F.jsx)(C,{})]})}function zk(e){let{children:n}=e;const l=(0,y.bE)(),a=(0,b.useCallback)((e=>e.preventDefault()),[]),t=(0,b.useCallback)((e=>{e.isDefaultPrevented()||(e.dataTransfer.dropEffect="none")}),[]);return Xl(),(0,F.jsxs)(Bk,{onContextMenu:a,onDragOver:t,children:[n,(0,F.jsx)(Qk,{}),(0,cf.createPortal)((0,F.jsx)(Bl.N9,{autoClose:f.k,closeOnClick:!1,position:"bottom-left",transition:Bl.br,closeButton:e=>{let{closeToast:n}=e;return(0,F.jsx)(d.pG,{onClick:n,children:(0,F.jsx)(g.US,{})})}}),l)]})}const Bk=j.Ay.div`display:flex;flex:auto;flex-direction:column;background-color:${o.lt.base.background};`,Qk=j.DU`.Toastify{.Toastify__toast{border:1px solid ${o.lt.components.toastBorder};box-shadow:0 3px 3px -2px ${o.lt.base.shadow},0 3px 4px 0 ${o.lt.base.shadow},0 1px 8px 0 ${o.lt.base.shadow};}.Toastify__toast-container--bottom-left{left:68px;bottom:16px;z-index:190;}.Toastify__toast-icon{align-self:flex-start;> .icon{width:20px;height:20px;}}.Toastify__toast-body{width:270px;}}`;var Uk=l(99850);class Yk extends b.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,n){Wk(e),console.error({error:e,errorInfo:n})}render(){return this.state.hasError?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(lb,{}),(0,F.jsx)(qk,{})]}):this.props.children}}function Wk(e){a.YAL.show({id:"root-error",context:{error:e}})}function qk(){var e;const n=(0,a.l$t)("root-error"),l=null===n||void 0===n||null===(e=n.item)||void 0===e?void 0:e.context.error;return l?(0,Nn.QP)(l)?(0,F.jsx)(Zk,{error:l}):(0,Nn.lz)(l)?(0,F.jsx)(Xk,{error:l}):(0,F.jsx)(Jk,{error:l}):null}function Xk(e){let{error:n}=e;const l=(0,b.useCallback)((async()=>{eb((()=>Wk(n)))}),[n]);return(0,F.jsxs)(c.lG,{id:"root-error",title:"Version Missmatch",closeOnEscape:!1,showConfirm:!0,confirmText:"Reset State",showCloseIcon:!1,onConfirm:l,children:[(0,F.jsxs)("p",{children:["You opened ",f.C3," an older version than before. The database does not match the version ",(0,F.jsx)("em",{children:f.mF}),"."]}),(0,F.jsxs)("p",{children:["To avoid this in the future you can also visit"," ",(0,F.jsxs)(le,{href:"https://nitro.chillicream.com",children:["nitro.chillicream.com ",(0,F.jsx)(g.pT,{})]})," ","or download the desktop app on"," ",(0,F.jsxs)(le,{href:"https://get-nitro.chillicream.com",children:["chillicream.com ",(0,F.jsx)(g.pT,{})]})]}),(0,F.jsxs)("p",{children:["Upgrade your ",f.C3," middleware or reset your local database."]})]})}function Zk(e){let{error:n}=e;const l=(0,b.useCallback)((async()=>{eb((()=>Wk(n)))}),[n]);return(0,F.jsxs)(c.lG,{id:"root-error",title:"Migration failed",closeOnEscape:!1,showConfirm:!0,confirmText:"Reset State",showCloseIcon:!1,onConfirm:l,children:[(0,F.jsxs)("p",{children:["The application could not migration from ",n.fromVersion," to version"," ",n.toVersion]}),(0,F.jsxs)(u.YJ,{children:[(0,F.jsx)(u.JU,{htmlFor:"error-info",children:"Error Info:"}),(0,F.jsx)(u.fs,{id:"error-info",readOnly:!0,rows:4,wrap:"off",value:n.migrationLog})]})]})}function Jk(e){let{error:n}=e;const l=(0,b.useCallback)((async()=>{window.location.reload()}),[]);return(0,F.jsxs)(c.lG,{id:"root-error",title:"Unexpected error",closeOnEscape:!1,showConfirm:!0,confirmText:"Reload",showCloseIcon:!1,onConfirm:l,children:[(0,F.jsx)("p",{children:"An unexpected error occurred. You can try to reload the page to see if the error can be resolved."}),(0,F.jsxs)(u.YJ,{children:[(0,F.jsx)(u.JU,{htmlFor:"error-info",children:"Error Info:"}),(0,F.jsx)(u.fs,{id:"error-info",readOnly:!0,rows:4,wrap:"off",value:JSON.stringify({name:n.name,message:n.message,stack:n.stack},void 0,2)})]})]})}function eb(e){a.YAL.show({id:"reset-state",context:{onClose:e}})}function nb(){(0,Uk.Hg)().then((()=>window.location.reload()))}function lb(){const e=(0,a.l$t)("reset-state");return(0,F.jsx)(c.lG,{id:"reset-state",title:"Warning!",closeOnEscape:!1,showConfirm:!0,confirmText:"Reset State & Reload",showCancel:!0,onConfirm:nb,onCancel:null===e||void 0===e?void 0:e.item.context.onClose,children:"You are about to reset all your application state. All your changes that are not synced to the server will be lost. You can log-in after the state reset and retrieve your data from the cloud."})}const ab=function(){return(0,F.jsx)(Yk,{children:(0,F.jsx)(a.LDV,{children:(0,F.jsx)(zk,{children:(0,F.jsx)(a._MQ,{children:(0,F.jsx)(a.uXN,{children:(0,F.jsx)(a.A$3,{children:(0,F.jsx)(s.u,{children:(0,F.jsx)(a.XGi,{children:(0,F.jsx)(a.Hb$,{children:(0,F.jsx)(a.X$R,{children:(0,F.jsx)(a.CPc,{children:(0,F.jsx)(a.Z6g,{children:(0,F.jsx)(a.$Mu,{children:(0,F.jsx)(a.viK,{children:(0,F.jsx)(a.wlj,{children:(0,F.jsx)(a.FRJ,{children:(0,F.jsx)(a.fjX,{children:(0,F.jsx)(a.vnJ,{children:(0,F.jsx)(a.Z9k,{children:(0,F.jsx)(a._Oo,{children:(0,F.jsx)(a.r2V,{children:(0,F.jsx)(a.lH_,{children:(0,F.jsx)(a.tOJ,{children:(0,F.jsx)(a.PQZ,{children:(0,F.jsx)(a.f19,{children:(0,F.jsx)(a.jGt,{children:(0,F.jsx)(a.bZ_,{children:(0,F.jsx)(a.hrn,{children:(0,F.jsx)(t.$,{dateAdapter:i.R,children:(0,F.jsx)(r.G,{children:(0,F.jsx)(Hk,{})})})})})})})})})})})})})})})})})})})})})})})})})})})})})})})}}}]);