From 1f47a398d600a52170499bb608e892c656bd2b55 Mon Sep 17 00:00:00 2001 From: Ahmet Soormally Date: Thu, 23 Oct 2025 11:42:41 +0100 Subject: [PATCH 01/10] feat(mcp): use GraphQL operation descriptions for MCP tool descriptions Extract and use operation descriptions from GraphQL files to provide better context for MCP tools. Operations without descriptions fall back to the default format. - Extract descriptions during operation loading - Merge operation and schema descriptions - Add tests for description extraction and usage --- router-tests/mcp_test.go | 205 +++++++++++++++++++++- router/go.mod | 3 + router/go.sum | 2 - router/pkg/mcpserver/server.go | 4 +- router/pkg/schemaloader/loader.go | 19 ++ router/pkg/schemaloader/loader_test.go | 167 ++++++++++++++++++ router/pkg/schemaloader/schema_builder.go | 5 +- 7 files changed, 398 insertions(+), 7 deletions(-) create mode 100644 router/pkg/schemaloader/loader_test.go diff --git a/router-tests/mcp_test.go b/router-tests/mcp_test.go index 83ef5a8ae5..f588a83f52 100644 --- a/router-tests/mcp_test.go +++ b/router-tests/mcp_test.go @@ -4,6 +4,8 @@ import ( "encoding/json" "fmt" "net/http" + "os" + "path/filepath" "strings" "testing" @@ -12,6 +14,10 @@ import ( "github.com/stretchr/testify/require" "github.com/wundergraph/cosmo/router-tests/testenv" "github.com/wundergraph/cosmo/router/pkg/config" + "github.com/wundergraph/cosmo/router/pkg/schemaloader" + "github.com/wundergraph/graphql-go-tools/v2/pkg/astparser" + "github.com/wundergraph/graphql-go-tools/v2/pkg/asttransform" + "go.uber.org/zap" ) func TestMCP(t *testing.T) { @@ -124,7 +130,7 @@ func TestMCP(t *testing.T) { // Verify MyEmployees operation require.Contains(t, resp.Tools, mcp.Tool{ Name: "execute_operation_my_employees", - Description: "Executes the GraphQL operation 'MyEmployees' of type query. This is a GraphQL query that retrieves a list of employees.", + Description: "This is a GraphQL query that retrieves a list of employees.", InputSchema: mcp.ToolInputSchema{ Type: "object", Properties: map[string]interface{}{"criteria": map[string]interface{}{"additionalProperties": false, "description": "Allows to filter employees by their details.", "nullable": false, "properties": map[string]interface{}{"hasPets": map[string]interface{}{"nullable": true, "type": "boolean"}, "nationality": map[string]interface{}{"enum": []interface{}{"AMERICAN", "DUTCH", "ENGLISH", "GERMAN", "INDIAN", "SPANISH", "UKRAINIAN"}, "nullable": true, "type": "string"}, "nested": map[string]interface{}{"additionalProperties": false, "nullable": true, "properties": map[string]interface{}{"hasChildren": map[string]interface{}{"nullable": true, "type": "boolean"}, "maritalStatus": map[string]interface{}{"enum": []interface{}{"ENGAGED", "MARRIED"}, "nullable": true, "type": "string"}}, "type": "object"}}, "type": "object"}}, @@ -141,7 +147,7 @@ func TestMCP(t *testing.T) { // Verify UpdateMood operation require.Contains(t, resp.Tools, mcp.Tool{ Name: "execute_operation_update_mood", - Description: "Executes the GraphQL operation 'UpdateMood' of type mutation. This mutation update the mood of an employee.", + Description: "This mutation update the mood of an employee.", InputSchema: mcp.ToolInputSchema{Type: "object", Properties: map[string]interface{}{"employeeID": map[string]interface{}{"type": "integer"}, "mood": map[string]interface{}{"enum": []interface{}{"HAPPY", "SAD"}, "type": "string"}}, Required: []string{"employeeID", "mood"}}, RawInputSchema: json.RawMessage(nil), Annotations: mcp.ToolAnnotation{ Title: "Execute operation UpdateMood", @@ -553,4 +559,199 @@ func TestMCP(t *testing.T) { }) }) }) + + t.Run("Operation Description Extraction", func(t *testing.T) { + // TestMCPOperationDescriptionExtraction tests that the MCP server properly extracts + // descriptions from GraphQL operations and uses them for tool descriptions + t.Run("Extract descriptions from GraphQL operations", func(t *testing.T) { + // Create a temporary directory for test operations + tempDir := t.TempDir() + + // Create test operation files + testCases := []struct { + name string + filename string + content string + expectedDesc string + expectDescEmpty bool + }{ + { + name: "operation with multi-line description", + filename: "FindUser.graphql", + content: `""" +Finds a user by their unique identifier. +Returns comprehensive user information including profile and settings. + +Required permissions: user:read +""" +query FindUser($id: ID!) { + user(id: $id) { + id + name + email + } +}`, + expectedDesc: "Finds a user by their unique identifier.\nReturns comprehensive user information including profile and settings.\n\nRequired permissions: user:read", + }, + { + name: "operation with single-line description", + filename: "GetProfile.graphql", + content: `"""Gets the current user's profile""" +query GetProfile { + me { + id + name + } +}`, + expectedDesc: "Gets the current user's profile", + }, + { + name: "operation without description", + filename: "ListUsers.graphql", + content: `query ListUsers { + users { + id + name + } +}`, + expectDescEmpty: true, + }, + { + name: "mutation with description", + filename: "CreateUser.graphql", + content: `""" +Creates a new user in the system. +Requires admin privileges. +""" +mutation CreateUser($input: UserInput!) { + createUser(input: $input) { + id + name + } +}`, + expectedDesc: "Creates a new user in the system.\nRequires admin privileges.", + }, + } + + // Write test files + for _, tc := range testCases { + err := os.WriteFile(filepath.Join(tempDir, tc.filename), []byte(tc.content), 0644) + require.NoError(t, err, "Failed to write test file %s", tc.filename) + } + + // Create a simple schema for validation + schemaStr := ` +type Query { + user(id: ID!): User + users: [User!]! + me: User +} + +type Mutation { + createUser(input: UserInput!): User +} + +type User { + id: ID! + name: String! + email: String +} + +input UserInput { + name: String! + email: String +} +` + schemaDoc, report := astparser.ParseGraphqlDocumentString(schemaStr) + require.False(t, report.HasErrors(), "Failed to parse schema") + + // Normalize the schema (required for validation) + err := asttransform.MergeDefinitionWithBaseSchema(&schemaDoc) + require.NoError(t, err, "Failed to normalize schema") + + // Load operations using the OperationLoader + logger := zap.NewNop() + loader := schemaloader.NewOperationLoader(logger, &schemaDoc) + operations, err := loader.LoadOperationsFromDirectory(tempDir) + require.NoError(t, err, "Failed to load operations") + require.Len(t, operations, len(testCases), "Expected %d operations to be loaded", len(testCases)) + + // Verify each operation has the correct description + for _, tc := range testCases { + t.Run(tc.name, func(t *testing.T) { + // Find the operation by name + var op *schemaloader.Operation + for i := range operations { + if operations[i].FilePath == filepath.Join(tempDir, tc.filename) { + op = &operations[i] + break + } + } + require.NotNil(t, op, "Operation not found: %s", tc.filename) + + // Verify description + if tc.expectDescEmpty { + assert.Empty(t, op.Description, "Expected empty description for %s", tc.name) + } else { + assert.Equal(t, tc.expectedDesc, op.Description, "Description mismatch for %s", tc.name) + } + }) + } + }) + }) + + t.Run("Tool Description Usage", func(t *testing.T) { + // TestMCPToolDescriptionUsage tests that operation descriptions are properly used + // when creating MCP tool descriptions + tests := []struct { + name string + operationDesc string + operationName string + operationType string + expectedToolDesc string + expectDefaultFormat bool + }{ + { + name: "uses operation description when present", + operationDesc: "Finds a user by ID and returns their profile", + operationName: "FindUser", + operationType: "query", + expectedToolDesc: "Finds a user by ID and returns their profile", + }, + { + name: "uses default format when description is empty", + operationDesc: "", + operationName: "GetUsers", + operationType: "query", + expectDefaultFormat: true, + }, + { + name: "uses mutation description", + operationDesc: "Creates a new user with the provided input", + operationName: "CreateUser", + operationType: "mutation", + expectedToolDesc: "Creates a new user with the provided input", + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + // Simulate what the MCP server does when creating tool descriptions + var toolDescription string + if tt.operationDesc != "" { + toolDescription = tt.operationDesc + } else { + // This is the default format used in server.go + toolDescription = "Executes the GraphQL operation '" + tt.operationName + "' of type " + tt.operationType + "." + } + + if tt.expectDefaultFormat { + assert.Contains(t, toolDescription, tt.operationName, "Default description should contain operation name") + assert.Contains(t, toolDescription, tt.operationType, "Default description should contain operation type") + } else { + assert.Equal(t, tt.expectedToolDesc, toolDescription, "Tool description should match operation description") + } + }) + } + }) } diff --git a/router/go.mod b/router/go.mod index 379a3a689f..eb2b7e221d 100644 --- a/router/go.mod +++ b/router/go.mod @@ -194,4 +194,7 @@ replace ( // Remember you can use Go workspaces to avoid using replace directives in multiple go.mod files // Use what is best for your personal workflow. See CONTRIBUTING.md for more information +// Local development: Use local graphql-go-tools with Description support in OperationDefinition +replace github.com/wundergraph/graphql-go-tools/v2 => /Users/asoorm/go/src/github.com/wundergraph/graphql-go-tools/v2 + // replace github.com/wundergraph/graphql-go-tools/v2 => ../../graphql-go-tools/v2 diff --git a/router/go.sum b/router/go.sum index d49db3de25..91222ec5d3 100644 --- a/router/go.sum +++ b/router/go.sum @@ -322,8 +322,6 @@ github.com/wk8/go-ordered-map/v2 v2.1.8 h1:5h/BUHu93oj4gIdvHHHGsScSTMijfx5PeYkE/ github.com/wk8/go-ordered-map/v2 v2.1.8/go.mod h1:5nJHM5DyteebpVlHnWMV0rPz6Zp7+xBAnxjb1X5vnTw= github.com/wundergraph/astjson v0.0.0-20250106123708-be463c97e083 h1:8/D7f8gKxTBjW+SZK4mhxTTBVpxcqeBgWF1Rfmltbfk= github.com/wundergraph/astjson v0.0.0-20250106123708-be463c97e083/go.mod h1:eOTL6acwctsN4F3b7YE+eE2t8zcJ/doLm9sZzsxxxrE= -github.com/wundergraph/graphql-go-tools/v2 v2.0.0-rc.232 h1:G04FDSXlEaQZS9cBrKlP8djbzquoQElB7w7i/d4sAHg= -github.com/wundergraph/graphql-go-tools/v2 v2.0.0-rc.232/go.mod h1:ErOQH1ki2+SZB8JjpTyGVnoBpg5picIyjvuWQJP4abg= github.com/yosida95/uritemplate/v3 v3.0.2 h1:Ed3Oyj9yrmi9087+NczuL5BwkIc4wvTb5zIM+UJPGz4= github.com/yosida95/uritemplate/v3 v3.0.2/go.mod h1:ILOh0sOhIJR3+L/8afwt/kE++YT040gmv5BQTMR2HP4= github.com/yuin/gopher-lua v1.1.1 h1:kYKnWBjvbNP4XLT3+bPEwAXJx262OhaHDWDVOPjL46M= diff --git a/router/pkg/mcpserver/server.go b/router/pkg/mcpserver/server.go index c5cf5b6399..04e6c7334f 100644 --- a/router/pkg/mcpserver/server.go +++ b/router/pkg/mcpserver/server.go @@ -504,10 +504,10 @@ func (s *GraphQLSchemaServer) registerTools() error { // Convert the operation name to snake_case for consistent tool naming operationToolName := strcase.ToSnake(op.Name) + // Use the operation description directly if provided, otherwise generate a default description var toolDescription string - if op.Description != "" { - toolDescription = fmt.Sprintf("Executes the GraphQL operation '%s' of type %s. %s", op.Name, op.OperationType, op.Description) + toolDescription = op.Description } else { toolDescription = fmt.Sprintf("Executes the GraphQL operation '%s' of type %s.", op.Name, op.OperationType) } diff --git a/router/pkg/schemaloader/loader.go b/router/pkg/schemaloader/loader.go index 5a4cb928eb..7d4e663279 100644 --- a/router/pkg/schemaloader/loader.go +++ b/router/pkg/schemaloader/loader.go @@ -116,6 +116,9 @@ func (l *OperationLoader) LoadOperationsFromDirectory(dirPath string) ([]Operati } } + // Extract description from operation definition + opDescription := extractOperationDescription(&opDoc) + // Add to our list of operations operations = append(operations, Operation{ Name: opName, @@ -123,6 +126,7 @@ func (l *OperationLoader) LoadOperationsFromDirectory(dirPath string) ([]Operati Document: opDoc, OperationString: operationString, OperationType: opType, + Description: opDescription, }) return nil @@ -181,3 +185,18 @@ func getOperationNameAndType(doc *ast.Document) (string, string, error) { } return "", "", fmt.Errorf("no operation found in document") } + +// extractOperationDescription extracts the description string from an operation definition +func extractOperationDescription(doc *ast.Document) string { + for _, ref := range doc.RootNodes { + if ref.Kind == ast.NodeKindOperationDefinition { + opDef := doc.OperationDefinitions[ref.Ref] + if opDef.Description.IsDefined && opDef.Description.Content.Length() > 0 { + description := doc.Input.ByteSliceString(opDef.Description.Content) + return strings.TrimSpace(description) + } + return "" + } + } + return "" +} diff --git a/router/pkg/schemaloader/loader_test.go b/router/pkg/schemaloader/loader_test.go new file mode 100644 index 0000000000..0108cef6b7 --- /dev/null +++ b/router/pkg/schemaloader/loader_test.go @@ -0,0 +1,167 @@ +package schemaloader + +import ( + "os" + "path/filepath" + "testing" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "github.com/wundergraph/graphql-go-tools/v2/pkg/astparser" + "github.com/wundergraph/graphql-go-tools/v2/pkg/asttransform" + "go.uber.org/zap" +) + +// TestLoadOperationsWithDescriptions tests that the OperationLoader properly loads +// operations from files and extracts their descriptions +func TestLoadOperationsWithDescriptions(t *testing.T) { + // Create a temporary directory for test operations + tempDir := t.TempDir() + + // Create test operation files + testFiles := map[string]string{ + "WithDescription.graphql": `""" +This operation finds employees by their ID. +It returns detailed employee information. +""" +query FindEmployee($id: ID!) { + employee(id: $id) { + id + name + email + } +}`, + "WithoutDescription.graphql": `query ListEmployees { + employees { + id + name + } +}`, + "SingleLineDescription.graphql": `"""Gets the current user""" +query GetCurrentUser { + me { + id + name + } +}`, + } + + // Write test files + for filename, content := range testFiles { + err := os.WriteFile(filepath.Join(tempDir, filename), []byte(content), 0644) + require.NoError(t, err, "Failed to write test file %s", filename) + } + + // Create a schema that matches all test operations + schemaStr := ` +schema { + query: Query +} + +type Query { + employee(id: ID!): Employee + employees: [Employee!]! + me: User +} + +type Employee { + id: ID! + name: String! + email: String! +} + +type User { + id: ID! + name: String! +} +` + schemaDoc, report := astparser.ParseGraphqlDocumentString(schemaStr) + require.False(t, report.HasErrors(), "Failed to parse schema") + + // Normalize the schema (required for validation) + err := asttransform.MergeDefinitionWithBaseSchema(&schemaDoc) + require.NoError(t, err, "Failed to normalize schema") + + // Load operations with a development logger to see errors + logger, _ := zap.NewDevelopment() + loader := NewOperationLoader(logger, &schemaDoc) + operations, err := loader.LoadOperationsFromDirectory(tempDir) + require.NoError(t, err, "Failed to load operations") + + // Debug: print what we got + t.Logf("Loaded %d operations", len(operations)) + for _, op := range operations { + t.Logf("Operation: %s (type: %s, desc: %q)", op.Name, op.OperationType, op.Description) + } + + require.Len(t, operations, 3, "Expected 3 operations to be loaded") + + // Verify operations + opMap := make(map[string]Operation) + for _, op := range operations { + opMap[filepath.Base(op.FilePath)] = op + } + + // Test operation with multi-line description + op1 := opMap["WithDescription.graphql"] + assert.Equal(t, "FindEmployee", op1.Name) + assert.Contains(t, op1.Description, "This operation finds employees by their ID") + assert.Contains(t, op1.Description, "It returns detailed employee information") + + // Test operation without description + op2 := opMap["WithoutDescription.graphql"] + assert.Equal(t, "ListEmployees", op2.Name) + assert.Empty(t, op2.Description, "Operation without description should have empty description") + + // Test operation with single-line description + op3 := opMap["SingleLineDescription.graphql"] + assert.Equal(t, "GetCurrentUser", op3.Name) + assert.Equal(t, "Gets the current user", op3.Description) +} + +// TestLoadOperationsValidation tests that invalid operations are properly rejected +func TestLoadOperationsValidation(t *testing.T) { + tempDir := t.TempDir() + + // Create an invalid operation (references non-existent type) + invalidOp := `"""This operation is invalid""" +query InvalidQuery { + nonExistentField { + id + } +} +` + err := os.WriteFile(filepath.Join(tempDir, "Invalid.graphql"), []byte(invalidOp), 0644) + require.NoError(t, err) + + // Create a simple schema + schemaStr := ` +type Query { + validField: String +} +` + schemaDoc, report := astparser.ParseGraphqlDocumentString(schemaStr) + require.False(t, report.HasErrors()) + + // Load operations - invalid operation should be skipped + logger := zap.NewNop() + loader := NewOperationLoader(logger, &schemaDoc) + operations, err := loader.LoadOperationsFromDirectory(tempDir) + require.NoError(t, err, "LoadOperationsFromDirectory should not return error for invalid operations") + assert.Len(t, operations, 0, "Invalid operations should be skipped") +} + +// TestLoadOperationsFromEmptyDirectory tests loading from an empty directory +func TestLoadOperationsFromEmptyDirectory(t *testing.T) { + tempDir := t.TempDir() + + schemaStr := `type Query { test: String }` + schemaDoc, report := astparser.ParseGraphqlDocumentString(schemaStr) + require.False(t, report.HasErrors()) + + logger := zap.NewNop() + loader := NewOperationLoader(logger, &schemaDoc) + operations, err := loader.LoadOperationsFromDirectory(tempDir) + require.NoError(t, err) + assert.Len(t, operations, 0, "Empty directory should return no operations") +} \ No newline at end of file diff --git a/router/pkg/schemaloader/schema_builder.go b/router/pkg/schemaloader/schema_builder.go index 1e304a950b..dd1cd88321 100644 --- a/router/pkg/schemaloader/schema_builder.go +++ b/router/pkg/schemaloader/schema_builder.go @@ -2,6 +2,7 @@ package schemaloader import ( "fmt" + "strings" "github.com/wundergraph/graphql-go-tools/v2/pkg/ast" "github.com/wundergraph/graphql-go-tools/v2/pkg/engine/jsonschema" @@ -46,7 +47,9 @@ func (b *SchemaBuilder) buildSchemaForOperation(operation *Operation) error { return fmt.Errorf("failed to marshal schema: %w", err) } operation.JSONSchema = s - operation.Description = schema.Description + + // Merge descriptions (operation takes priority) + operation.Description = strings.TrimSpace(operation.Description + " " + schema.Description) } return nil From 1c3cedb90ac86bcf47e05c418145204adb2ae701 Mon Sep 17 00:00:00 2001 From: Wilson Rivera <225781+wilsonrivera@users.noreply.github.com> Date: Wed, 22 Oct 2025 14:20:54 -0400 Subject: [PATCH 02/10] feat: fix playground tab duplication (#2291) --- studio/src/components/dashboard/workspace-provider.tsx | 4 ++-- .../[namespace]/graph/[slug]/playground.tsx | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/studio/src/components/dashboard/workspace-provider.tsx b/studio/src/components/dashboard/workspace-provider.tsx index 63d85937d5..67123d95d2 100644 --- a/studio/src/components/dashboard/workspace-provider.tsx +++ b/studio/src/components/dashboard/workspace-provider.tsx @@ -33,7 +33,7 @@ export function WorkspaceProvider({ children }: React.PropsWithChildren) { // Correct namespace useEffect(() => { - if (!data || data.response?.code == EnumStatusCode.OK || !data.namespaces?.length) { + if (data?.response?.code !== EnumStatusCode.OK || !data?.namespaces?.length) { return; } @@ -55,7 +55,7 @@ export function WorkspaceProvider({ children }: React.PropsWithChildren) { } setNamespaces(currentNamespaces); - }, [applyParams, data, namespace, namespaceParam, setStoredNamespace]); + }, [applyParams, data?.response?.code, data?.namespaces, namespace, namespaceParam, setStoredNamespace]); // Memoize context components const currentNamespace= useMemo( diff --git a/studio/src/pages/[organizationSlug]/[namespace]/graph/[slug]/playground.tsx b/studio/src/pages/[organizationSlug]/[namespace]/graph/[slug]/playground.tsx index dd9cd43c42..436bff7ba9 100644 --- a/studio/src/pages/[organizationSlug]/[namespace]/graph/[slug]/playground.tsx +++ b/studio/src/pages/[organizationSlug]/[namespace]/graph/[slug]/playground.tsx @@ -1289,7 +1289,8 @@ const PlaygroundPage: NextPageWithLayout = () => { query={query} variables={updatedVariables} onEditQuery={setQuery} - headers={headers} + headers={headers === PLAYGROUND_DEFAULT_HEADERS_TEMPLATE ? undefined : headers} + defaultHeaders={PLAYGROUND_DEFAULT_HEADERS_TEMPLATE} onEditHeaders={setHeaders} plugins={[ explorerPlugin({ From 1bc10676319f5011723e30c8ac652a1383c633c0 Mon Sep 17 00:00:00 2001 From: hardworker-bot Date: Wed, 22 Oct 2025 18:25:48 +0000 Subject: [PATCH 03/10] chore(release): Publish [skip ci] - studio@0.136.0 --- studio/CHANGELOG.md | 6 ++++++ studio/package.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/studio/CHANGELOG.md b/studio/CHANGELOG.md index dabf74f1a9..0f8196f0e0 100644 --- a/studio/CHANGELOG.md +++ b/studio/CHANGELOG.md @@ -4,6 +4,12 @@ Binaries are attached to the github release otherwise all images can be found [h All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [0.136.0](https://github.com/wundergraph/cosmo/compare/studio@0.135.2...studio@0.136.0) (2025-10-22) + +### Features + +* fix playground tab duplication ([#2291](https://github.com/wundergraph/cosmo/issues/2291)) ([943cf41](https://github.com/wundergraph/cosmo/commit/943cf411c5bb7ac1d5040cf4bf4bf6b91aa3c53d)) (@wilsonrivera) + ## [0.135.2](https://github.com/wundergraph/cosmo/compare/studio@0.135.1...studio@0.135.2) (2025-10-17) **Note:** Version bump only for package studio diff --git a/studio/package.json b/studio/package.json index 776c13d93f..be1cf21ff1 100644 --- a/studio/package.json +++ b/studio/package.json @@ -1,6 +1,6 @@ { "name": "studio", - "version": "0.135.2", + "version": "0.136.0", "private": true, "license": "Apache-2.0", "description": "WunderGraph Cosmo Studio", From aac6b15c8cf7e4de52bde4c6f72e6ee4e66e7f76 Mon Sep 17 00:00:00 2001 From: Wilson Rivera <225781+wilsonrivera@users.noreply.github.com> Date: Thu, 23 Oct 2025 13:24:11 -0400 Subject: [PATCH 04/10] fix: handle internal graph edge case with shared root field and nested entities (#2298) --- composition-go/index.global.js | 44 +++--- composition/src/resolvability-graph/graph.ts | 9 +- composition/tests/v1/resolvability.test.ts | 158 +++++++++++++++++++ 3 files changed, 186 insertions(+), 25 deletions(-) diff --git a/composition-go/index.global.js b/composition-go/index.global.js index d6310187d7..528335f35a 100644 --- a/composition-go/index.global.js +++ b/composition-go/index.global.js @@ -15,13 +15,13 @@ class URL { return urlCanParse(url, base || ''); } } -"use strict";var shim=(()=>{var AJ=Object.create;var Dd=Object.defineProperty,RJ=Object.defineProperties,PJ=Object.getOwnPropertyDescriptor,FJ=Object.getOwnPropertyDescriptors,wJ=Object.getOwnPropertyNames,WA=Object.getOwnPropertySymbols,LJ=Object.getPrototypeOf,XA=Object.prototype.hasOwnProperty,CJ=Object.prototype.propertyIsEnumerable;var un=Math.pow,Cy=(e,t,n)=>t in e?Dd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,x=(e,t)=>{for(var n in t||(t={}))XA.call(t,n)&&Cy(e,n,t[n]);if(WA)for(var n of WA(t))CJ.call(t,n)&&Cy(e,n,t[n]);return e},Q=(e,t)=>RJ(e,FJ(t));var ku=(e,t)=>()=>(e&&(t=e(e=0)),t);var w=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),fm=(e,t)=>{for(var n in t)Dd(e,n,{get:t[n],enumerable:!0})},ZA=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of wJ(t))!XA.call(e,i)&&i!==n&&Dd(e,i,{get:()=>t[i],enumerable:!(r=PJ(t,i))||r.enumerable});return e};var ps=(e,t,n)=>(n=e!=null?AJ(LJ(e)):{},ZA(t||!e||!e.__esModule?Dd(n,"default",{value:e,enumerable:!0}):n,e)),pm=e=>ZA(Dd({},"__esModule",{value:!0}),e);var _=(e,t,n)=>(Cy(e,typeof t!="symbol"?t+"":t,n),n),eR=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var By=(e,t,n)=>(eR(e,t,"read from private field"),n?n.call(e):t.get(e)),tR=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Uy=(e,t,n,r)=>(eR(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var bi=(e,t,n)=>new Promise((r,i)=>{var a=l=>{try{c(n.next(l))}catch(d){i(d)}},o=l=>{try{c(n.throw(l))}catch(d){i(d)}},c=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,o);c((n=n.apply(e,t)).next())});var m=ku(()=>{"use strict"});var O={};fm(O,{_debugEnd:()=>KR,_debugProcess:()=>jR,_events:()=>aP,_eventsCount:()=>sP,_exiting:()=>vR,_fatalExceptions:()=>MR,_getActiveHandles:()=>bR,_getActiveRequests:()=>DR,_kill:()=>RR,_linkedBinding:()=>gR,_maxListeners:()=>iP,_preload_modules:()=>tP,_rawDebug:()=>yR,_startProfilerIdleNotifier:()=>GR,_stopProfilerIdleNotifier:()=>$R,_tickCallback:()=>VR,abort:()=>HR,addListener:()=>oP,allowedNodeEnvironmentFlags:()=>BR,arch:()=>sR,argv:()=>cR,argv0:()=>eP,assert:()=>UR,binding:()=>mR,chdir:()=>ER,config:()=>SR,cpuUsage:()=>Tm,cwd:()=>TR,debugPort:()=>ZR,default:()=>TP,dlopen:()=>OR,domain:()=>_R,emit:()=>fP,emitWarning:()=>pR,env:()=>uR,execArgv:()=>lR,execPath:()=>XR,exit:()=>LR,features:()=>kR,hasUncaughtExceptionCaptureCallback:()=>qR,hrtime:()=>Nm,kill:()=>wR,listeners:()=>NP,memoryUsage:()=>FR,moduleLoadList:()=>IR,nextTick:()=>rR,off:()=>cP,on:()=>Ns,once:()=>uP,openStdin:()=>CR,pid:()=>zR,platform:()=>oR,ppid:()=>WR,prependListener:()=>pP,prependOnceListener:()=>mP,reallyExit:()=>AR,release:()=>hR,removeAllListeners:()=>dP,removeListener:()=>lP,resourceUsage:()=>PR,setSourceMapsEnabled:()=>nP,setUncaughtExceptionCaptureCallback:()=>xR,stderr:()=>YR,stdin:()=>JR,stdout:()=>QR,title:()=>aR,umask:()=>NR,uptime:()=>rP,version:()=>dR,versions:()=>fR});function xy(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function BJ(){!Zc||!Mu||(Zc=!1,Mu.length?ms=Mu.concat(ms):mm=-1,ms.length&&nR())}function nR(){if(!Zc){var e=setTimeout(BJ,0);Zc=!0;for(var t=ms.length;t;){for(Mu=ms,ms=[];++mm1)for(var n=1;n{"use strict";m();T();N();ms=[],Zc=!1,mm=-1;iR.prototype.run=function(){this.fun.apply(null,this.array)};aR="browser",sR="x64",oR="browser",uR={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},cR=["/usr/bin/node"],lR=[],dR="v16.8.0",fR={},pR=function(e,t){console.warn((t?t+": ":"")+e)},mR=function(e){xy("binding")},NR=function(e){return 0},TR=function(){return"/"},ER=function(e){},hR={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};yR=yr,IR=[];_R={},vR=!1,SR={};AR=yr,RR=yr,Tm=function(){return{}},PR=Tm,FR=Tm,wR=yr,LR=yr,CR=yr,BR={};kR={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},MR=yr,xR=yr;VR=yr,jR=yr,KR=yr,GR=yr,$R=yr,QR=void 0,YR=void 0,JR=void 0,HR=yr,zR=2,WR=1,XR="/bin/usr/node",ZR=9229,eP="node",tP=[],nP=yr,Xo={now:typeof performance!="undefined"?performance.now.bind(performance):void 0,timing:typeof performance!="undefined"?performance.timing:void 0};Xo.now===void 0&&(ky=Date.now(),Xo.timing&&Xo.timing.navigationStart&&(ky=Xo.timing.navigationStart),Xo.now=()=>Date.now()-ky);My=1e9;Nm.bigint=function(e){var t=Nm(e);return typeof BigInt=="undefined"?t[0]*My+t[1]:BigInt(t[0]*My)+BigInt(t[1])};iP=10,aP={},sP=0;oP=Ns,uP=Ns,cP=Ns,lP=Ns,dP=Ns,fP=yr,pP=Ns,mP=Ns;TP={version:dR,versions:fR,arch:sR,platform:oR,release:hR,_rawDebug:yR,moduleLoadList:IR,binding:mR,_linkedBinding:gR,_events:aP,_eventsCount:sP,_maxListeners:iP,on:Ns,addListener:oP,once:uP,off:cP,removeListener:lP,removeAllListeners:dP,emit:fP,prependListener:pP,prependOnceListener:mP,listeners:NP,domain:_R,_exiting:vR,config:SR,dlopen:OR,uptime:rP,_getActiveRequests:DR,_getActiveHandles:bR,reallyExit:AR,_kill:RR,cpuUsage:Tm,resourceUsage:PR,memoryUsage:FR,kill:wR,exit:LR,openStdin:CR,allowedNodeEnvironmentFlags:BR,assert:UR,features:kR,_fatalExceptions:MR,setUncaughtExceptionCaptureCallback:xR,hasUncaughtExceptionCaptureCallback:qR,emitWarning:pR,nextTick:rR,_tickCallback:VR,_debugProcess:jR,_debugEnd:KR,_startProfilerIdleNotifier:GR,_stopProfilerIdleNotifier:$R,stdout:QR,stdin:JR,stderr:YR,abort:HR,umask:NR,chdir:ER,cwd:TR,env:uR,title:aR,argv:cR,execArgv:lR,pid:zR,ppid:WR,execPath:XR,debugPort:ZR,hrtime:Nm,argv0:eP,_preload_modules:tP,setSourceMapsEnabled:nP}});var N=ku(()=>{"use strict";EP()});function UJ(){if(hP)return bd;hP=!0,bd.byteLength=c,bd.toByteArray=d,bd.fromByteArray=I;for(var e=[],t=[],n=typeof Uint8Array!="undefined"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,a=r.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var k=v.indexOf("=");k===-1&&(k=F);var K=k===F?0:4-k%4;return[k,K]}function c(v){var F=o(v),k=F[0],K=F[1];return(k+K)*3/4-K}function l(v,F,k){return(F+k)*3/4-k}function d(v){var F,k=o(v),K=k[0],J=k[1],se=new n(l(v,K,J)),ie=0,Te=J>0?K-4:K,de;for(de=0;de>16&255,se[ie++]=F>>8&255,se[ie++]=F&255;return J===2&&(F=t[v.charCodeAt(de)]<<2|t[v.charCodeAt(de+1)]>>4,se[ie++]=F&255),J===1&&(F=t[v.charCodeAt(de)]<<10|t[v.charCodeAt(de+1)]<<4|t[v.charCodeAt(de+2)]>>2,se[ie++]=F>>8&255,se[ie++]=F&255),se}function p(v){return e[v>>18&63]+e[v>>12&63]+e[v>>6&63]+e[v&63]}function y(v,F,k){for(var K,J=[],se=F;seTe?Te:ie+se));return K===1?(F=v[k-1],J.push(e[F>>2]+e[F<<4&63]+"==")):K===2&&(F=(v[k-2]<<8)+v[k-1],J.push(e[F>>10]+e[F>>4&63]+e[F<<2&63]+"=")),J.join("")}return bd}function kJ(){if(yP)return Em;yP=!0;return Em.read=function(e,t,n,r,i){var a,o,c=i*8-r-1,l=(1<>1,p=-7,y=n?i-1:0,I=n?-1:1,v=e[t+y];for(y+=I,a=v&(1<<-p)-1,v>>=-p,p+=c;p>0;a=a*256+e[t+y],y+=I,p-=8);for(o=a&(1<<-p)-1,a>>=-p,p+=r;p>0;o=o*256+e[t+y],y+=I,p-=8);if(a===0)a=1-d;else{if(a===l)return o?NaN:(v?-1:1)*(1/0);o=o+Math.pow(2,r),a=a-d}return(v?-1:1)*o*Math.pow(2,a-r)},Em.write=function(e,t,n,r,i,a){var o,c,l,d=a*8-i-1,p=(1<>1,I=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=r?0:a-1,F=r?1:-1,k=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,o=p):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+y>=1?t+=I/l:t+=I*Math.pow(2,1-y),t*l>=2&&(o++,l/=2),o+y>=p?(c=0,o=p):o+y>=1?(c=(t*l-1)*Math.pow(2,i),o=o+y):(c=t*Math.pow(2,y-1)*Math.pow(2,i),o=0));i>=8;e[n+v]=c&255,v+=F,c/=256,i-=8);for(o=o<0;e[n+v]=o&255,v+=F,o/=256,d-=8);e[n+v-F]|=k*128},Em}function MJ(){if(IP)return xu;IP=!0;let e=UJ(),t=kJ(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;xu.Buffer=o,xu.SlowBuffer=J,xu.INSPECT_MAX_BYTES=50;let r=2147483647;xu.kMaxLength=r,o.TYPED_ARRAY_SUPPORT=i(),!o.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{let R=new Uint8Array(1),h={foo:function(){return 42}};return Object.setPrototypeOf(h,Uint8Array.prototype),Object.setPrototypeOf(R,h),R.foo()===42}catch(R){return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function a(R){if(R>r)throw new RangeError('The value "'+R+'" is invalid for option "size"');let h=new Uint8Array(R);return Object.setPrototypeOf(h,o.prototype),h}function o(R,h,g){if(typeof R=="number"){if(typeof h=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return p(R)}return c(R,h,g)}o.poolSize=8192;function c(R,h,g){if(typeof R=="string")return y(R,h);if(ArrayBuffer.isView(R))return v(R);if(R==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof R);if(Vt(R,ArrayBuffer)||R&&Vt(R.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Vt(R,SharedArrayBuffer)||R&&Vt(R.buffer,SharedArrayBuffer)))return F(R,h,g);if(typeof R=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let C=R.valueOf&&R.valueOf();if(C!=null&&C!==R)return o.from(C,h,g);let G=k(R);if(G)return G;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof R[Symbol.toPrimitive]=="function")return o.from(R[Symbol.toPrimitive]("string"),h,g);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof R)}o.from=function(R,h,g){return c(R,h,g)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function l(R){if(typeof R!="number")throw new TypeError('"size" argument must be of type number');if(R<0)throw new RangeError('The value "'+R+'" is invalid for option "size"')}function d(R,h,g){return l(R),R<=0?a(R):h!==void 0?typeof g=="string"?a(R).fill(h,g):a(R).fill(h):a(R)}o.alloc=function(R,h,g){return d(R,h,g)};function p(R){return l(R),a(R<0?0:K(R)|0)}o.allocUnsafe=function(R){return p(R)},o.allocUnsafeSlow=function(R){return p(R)};function y(R,h){if((typeof h!="string"||h==="")&&(h="utf8"),!o.isEncoding(h))throw new TypeError("Unknown encoding: "+h);let g=se(R,h)|0,C=a(g),G=C.write(R,h);return G!==g&&(C=C.slice(0,G)),C}function I(R){let h=R.length<0?0:K(R.length)|0,g=a(h);for(let C=0;C=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return R|0}function J(R){return+R!=R&&(R=0),o.alloc(+R)}o.isBuffer=function(h){return h!=null&&h._isBuffer===!0&&h!==o.prototype},o.compare=function(h,g){if(Vt(h,Uint8Array)&&(h=o.from(h,h.offset,h.byteLength)),Vt(g,Uint8Array)&&(g=o.from(g,g.offset,g.byteLength)),!o.isBuffer(h)||!o.isBuffer(g))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(h===g)return 0;let C=h.length,G=g.length;for(let te=0,fe=Math.min(C,G);teG.length?(o.isBuffer(fe)||(fe=o.from(fe)),fe.copy(G,te)):Uint8Array.prototype.set.call(G,fe,te);else if(o.isBuffer(fe))fe.copy(G,te);else throw new TypeError('"list" argument must be an Array of Buffers');te+=fe.length}return G};function se(R,h){if(o.isBuffer(R))return R.length;if(ArrayBuffer.isView(R)||Vt(R,ArrayBuffer))return R.byteLength;if(typeof R!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof R);let g=R.length,C=arguments.length>2&&arguments[2]===!0;if(!C&&g===0)return 0;let G=!1;for(;;)switch(h){case"ascii":case"latin1":case"binary":return g;case"utf8":case"utf-8":return rs(R).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return g*2;case"hex":return g>>>1;case"base64":return mr(R).length;default:if(G)return C?-1:rs(R).length;h=(""+h).toLowerCase(),G=!0}}o.byteLength=se;function ie(R,h,g){let C=!1;if((h===void 0||h<0)&&(h=0),h>this.length||((g===void 0||g>this.length)&&(g=this.length),g<=0)||(g>>>=0,h>>>=0,g<=h))return"";for(R||(R="utf8");;)switch(R){case"hex":return Fr(this,h,g);case"utf8":case"utf-8":return tn(this,h,g);case"ascii":return mn(this,h,g);case"latin1":case"binary":return Pr(this,h,g);case"base64":return en(this,h,g);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return kn(this,h,g);default:if(C)throw new TypeError("Unknown encoding: "+R);R=(R+"").toLowerCase(),C=!0}}o.prototype._isBuffer=!0;function Te(R,h,g){let C=R[h];R[h]=R[g],R[g]=C}o.prototype.swap16=function(){let h=this.length;if(h%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let g=0;gg&&(h+=" ... "),""},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(h,g,C,G,te){if(Vt(h,Uint8Array)&&(h=o.from(h,h.offset,h.byteLength)),!o.isBuffer(h))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof h);if(g===void 0&&(g=0),C===void 0&&(C=h?h.length:0),G===void 0&&(G=0),te===void 0&&(te=this.length),g<0||C>h.length||G<0||te>this.length)throw new RangeError("out of range index");if(G>=te&&g>=C)return 0;if(G>=te)return-1;if(g>=C)return 1;if(g>>>=0,C>>>=0,G>>>=0,te>>>=0,this===h)return 0;let fe=te-G,pt=C-g,Nn=Math.min(fe,pt),on=this.slice(G,te),yn=h.slice(g,C);for(let nn=0;nn2147483647?g=2147483647:g<-2147483648&&(g=-2147483648),g=+g,Nr(g)&&(g=G?0:R.length-1),g<0&&(g=R.length+g),g>=R.length){if(G)return-1;g=R.length-1}else if(g<0)if(G)g=0;else return-1;if(typeof h=="string"&&(h=o.from(h,C)),o.isBuffer(h))return h.length===0?-1:Re(R,h,g,C,G);if(typeof h=="number")return h=h&255,typeof Uint8Array.prototype.indexOf=="function"?G?Uint8Array.prototype.indexOf.call(R,h,g):Uint8Array.prototype.lastIndexOf.call(R,h,g):Re(R,[h],g,C,G);throw new TypeError("val must be string, number or Buffer")}function Re(R,h,g,C,G){let te=1,fe=R.length,pt=h.length;if(C!==void 0&&(C=String(C).toLowerCase(),C==="ucs2"||C==="ucs-2"||C==="utf16le"||C==="utf-16le")){if(R.length<2||h.length<2)return-1;te=2,fe/=2,pt/=2,g/=2}function Nn(yn,nn){return te===1?yn[nn]:yn.readUInt16BE(nn*te)}let on;if(G){let yn=-1;for(on=g;onfe&&(g=fe-pt),on=g;on>=0;on--){let yn=!0;for(let nn=0;nnG&&(C=G)):C=G;let te=h.length;C>te/2&&(C=te/2);let fe;for(fe=0;fe>>0,isFinite(C)?(C=C>>>0,G===void 0&&(G="utf8")):(G=C,C=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let te=this.length-g;if((C===void 0||C>te)&&(C=te),h.length>0&&(C<0||g<0)||g>this.length)throw new RangeError("Attempt to write outside buffer bounds");G||(G="utf8");let fe=!1;for(;;)switch(G){case"hex":return xe(this,h,g,C);case"utf8":case"utf-8":return tt(this,h,g,C);case"ascii":case"latin1":case"binary":return ee(this,h,g,C);case"base64":return Se(this,h,g,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _t(this,h,g,C);default:if(fe)throw new TypeError("Unknown encoding: "+G);G=(""+G).toLowerCase(),fe=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function en(R,h,g){return h===0&&g===R.length?e.fromByteArray(R):e.fromByteArray(R.slice(h,g))}function tn(R,h,g){g=Math.min(R.length,g);let C=[],G=h;for(;G239?4:te>223?3:te>191?2:1;if(G+pt<=g){let Nn,on,yn,nn;switch(pt){case 1:te<128&&(fe=te);break;case 2:Nn=R[G+1],(Nn&192)===128&&(nn=(te&31)<<6|Nn&63,nn>127&&(fe=nn));break;case 3:Nn=R[G+1],on=R[G+2],(Nn&192)===128&&(on&192)===128&&(nn=(te&15)<<12|(Nn&63)<<6|on&63,nn>2047&&(nn<55296||nn>57343)&&(fe=nn));break;case 4:Nn=R[G+1],on=R[G+2],yn=R[G+3],(Nn&192)===128&&(on&192)===128&&(yn&192)===128&&(nn=(te&15)<<18|(Nn&63)<<12|(on&63)<<6|yn&63,nn>65535&&nn<1114112&&(fe=nn))}}fe===null?(fe=65533,pt=1):fe>65535&&(fe-=65536,C.push(fe>>>10&1023|55296),fe=56320|fe&1023),C.push(fe),G+=pt}return Qt(C)}let An=4096;function Qt(R){let h=R.length;if(h<=An)return String.fromCharCode.apply(String,R);let g="",C=0;for(;CC)&&(g=C);let G="";for(let te=h;teC&&(h=C),g<0?(g+=C,g<0&&(g=0)):g>C&&(g=C),gg)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(h,g,C){h=h>>>0,g=g>>>0,C||zt(h,g,this.length);let G=this[h],te=1,fe=0;for(;++fe>>0,g=g>>>0,C||zt(h,g,this.length);let G=this[h+--g],te=1;for(;g>0&&(te*=256);)G+=this[h+--g]*te;return G},o.prototype.readUint8=o.prototype.readUInt8=function(h,g){return h=h>>>0,g||zt(h,1,this.length),this[h]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(h,g){return h=h>>>0,g||zt(h,2,this.length),this[h]|this[h+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(h,g){return h=h>>>0,g||zt(h,2,this.length),this[h]<<8|this[h+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(h,g){return h=h>>>0,g||zt(h,4,this.length),(this[h]|this[h+1]<<8|this[h+2]<<16)+this[h+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(h,g){return h=h>>>0,g||zt(h,4,this.length),this[h]*16777216+(this[h+1]<<16|this[h+2]<<8|this[h+3])},o.prototype.readBigUInt64LE=_a(function(h){h=h>>>0,nt(h,"offset");let g=this[h],C=this[h+7];(g===void 0||C===void 0)&&Rt(h,this.length-8);let G=g+this[++h]*un(2,8)+this[++h]*un(2,16)+this[++h]*un(2,24),te=this[++h]+this[++h]*un(2,8)+this[++h]*un(2,16)+C*un(2,24);return BigInt(G)+(BigInt(te)<>>0,nt(h,"offset");let g=this[h],C=this[h+7];(g===void 0||C===void 0)&&Rt(h,this.length-8);let G=g*un(2,24)+this[++h]*un(2,16)+this[++h]*un(2,8)+this[++h],te=this[++h]*un(2,24)+this[++h]*un(2,16)+this[++h]*un(2,8)+C;return(BigInt(G)<>>0,g=g>>>0,C||zt(h,g,this.length);let G=this[h],te=1,fe=0;for(;++fe=te&&(G-=Math.pow(2,8*g)),G},o.prototype.readIntBE=function(h,g,C){h=h>>>0,g=g>>>0,C||zt(h,g,this.length);let G=g,te=1,fe=this[h+--G];for(;G>0&&(te*=256);)fe+=this[h+--G]*te;return te*=128,fe>=te&&(fe-=Math.pow(2,8*g)),fe},o.prototype.readInt8=function(h,g){return h=h>>>0,g||zt(h,1,this.length),this[h]&128?(255-this[h]+1)*-1:this[h]},o.prototype.readInt16LE=function(h,g){h=h>>>0,g||zt(h,2,this.length);let C=this[h]|this[h+1]<<8;return C&32768?C|4294901760:C},o.prototype.readInt16BE=function(h,g){h=h>>>0,g||zt(h,2,this.length);let C=this[h+1]|this[h]<<8;return C&32768?C|4294901760:C},o.prototype.readInt32LE=function(h,g){return h=h>>>0,g||zt(h,4,this.length),this[h]|this[h+1]<<8|this[h+2]<<16|this[h+3]<<24},o.prototype.readInt32BE=function(h,g){return h=h>>>0,g||zt(h,4,this.length),this[h]<<24|this[h+1]<<16|this[h+2]<<8|this[h+3]},o.prototype.readBigInt64LE=_a(function(h){h=h>>>0,nt(h,"offset");let g=this[h],C=this[h+7];(g===void 0||C===void 0)&&Rt(h,this.length-8);let G=this[h+4]+this[h+5]*un(2,8)+this[h+6]*un(2,16)+(C<<24);return(BigInt(G)<>>0,nt(h,"offset");let g=this[h],C=this[h+7];(g===void 0||C===void 0)&&Rt(h,this.length-8);let G=(g<<24)+this[++h]*un(2,16)+this[++h]*un(2,8)+this[++h];return(BigInt(G)<>>0,g||zt(h,4,this.length),t.read(this,h,!0,23,4)},o.prototype.readFloatBE=function(h,g){return h=h>>>0,g||zt(h,4,this.length),t.read(this,h,!1,23,4)},o.prototype.readDoubleLE=function(h,g){return h=h>>>0,g||zt(h,8,this.length),t.read(this,h,!0,52,8)},o.prototype.readDoubleBE=function(h,g){return h=h>>>0,g||zt(h,8,this.length),t.read(this,h,!1,52,8)};function Rn(R,h,g,C,G,te){if(!o.isBuffer(R))throw new TypeError('"buffer" argument must be a Buffer instance');if(h>G||hR.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(h,g,C,G){if(h=+h,g=g>>>0,C=C>>>0,!G){let pt=Math.pow(2,8*C)-1;Rn(this,h,g,C,pt,0)}let te=1,fe=0;for(this[g]=h&255;++fe>>0,C=C>>>0,!G){let pt=Math.pow(2,8*C)-1;Rn(this,h,g,C,pt,0)}let te=C-1,fe=1;for(this[g+te]=h&255;--te>=0&&(fe*=256);)this[g+te]=h/fe&255;return g+C},o.prototype.writeUint8=o.prototype.writeUInt8=function(h,g,C){return h=+h,g=g>>>0,C||Rn(this,h,g,1,255,0),this[g]=h&255,g+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(h,g,C){return h=+h,g=g>>>0,C||Rn(this,h,g,2,65535,0),this[g]=h&255,this[g+1]=h>>>8,g+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(h,g,C){return h=+h,g=g>>>0,C||Rn(this,h,g,2,65535,0),this[g]=h>>>8,this[g+1]=h&255,g+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(h,g,C){return h=+h,g=g>>>0,C||Rn(this,h,g,4,4294967295,0),this[g+3]=h>>>24,this[g+2]=h>>>16,this[g+1]=h>>>8,this[g]=h&255,g+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(h,g,C){return h=+h,g=g>>>0,C||Rn(this,h,g,4,4294967295,0),this[g]=h>>>24,this[g+1]=h>>>16,this[g+2]=h>>>8,this[g+3]=h&255,g+4};function ue(R,h,g,C,G){Ut(h,C,G,R,g,7);let te=Number(h&BigInt(4294967295));R[g++]=te,te=te>>8,R[g++]=te,te=te>>8,R[g++]=te,te=te>>8,R[g++]=te;let fe=Number(h>>BigInt(32)&BigInt(4294967295));return R[g++]=fe,fe=fe>>8,R[g++]=fe,fe=fe>>8,R[g++]=fe,fe=fe>>8,R[g++]=fe,g}function be(R,h,g,C,G){Ut(h,C,G,R,g,7);let te=Number(h&BigInt(4294967295));R[g+7]=te,te=te>>8,R[g+6]=te,te=te>>8,R[g+5]=te,te=te>>8,R[g+4]=te;let fe=Number(h>>BigInt(32)&BigInt(4294967295));return R[g+3]=fe,fe=fe>>8,R[g+2]=fe,fe=fe>>8,R[g+1]=fe,fe=fe>>8,R[g]=fe,g+8}o.prototype.writeBigUInt64LE=_a(function(h,g=0){return ue(this,h,g,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=_a(function(h,g=0){return be(this,h,g,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(h,g,C,G){if(h=+h,g=g>>>0,!G){let Nn=Math.pow(2,8*C-1);Rn(this,h,g,C,Nn-1,-Nn)}let te=0,fe=1,pt=0;for(this[g]=h&255;++te>0)-pt&255;return g+C},o.prototype.writeIntBE=function(h,g,C,G){if(h=+h,g=g>>>0,!G){let Nn=Math.pow(2,8*C-1);Rn(this,h,g,C,Nn-1,-Nn)}let te=C-1,fe=1,pt=0;for(this[g+te]=h&255;--te>=0&&(fe*=256);)h<0&&pt===0&&this[g+te+1]!==0&&(pt=1),this[g+te]=(h/fe>>0)-pt&255;return g+C},o.prototype.writeInt8=function(h,g,C){return h=+h,g=g>>>0,C||Rn(this,h,g,1,127,-128),h<0&&(h=255+h+1),this[g]=h&255,g+1},o.prototype.writeInt16LE=function(h,g,C){return h=+h,g=g>>>0,C||Rn(this,h,g,2,32767,-32768),this[g]=h&255,this[g+1]=h>>>8,g+2},o.prototype.writeInt16BE=function(h,g,C){return h=+h,g=g>>>0,C||Rn(this,h,g,2,32767,-32768),this[g]=h>>>8,this[g+1]=h&255,g+2},o.prototype.writeInt32LE=function(h,g,C){return h=+h,g=g>>>0,C||Rn(this,h,g,4,2147483647,-2147483648),this[g]=h&255,this[g+1]=h>>>8,this[g+2]=h>>>16,this[g+3]=h>>>24,g+4},o.prototype.writeInt32BE=function(h,g,C){return h=+h,g=g>>>0,C||Rn(this,h,g,4,2147483647,-2147483648),h<0&&(h=4294967295+h+1),this[g]=h>>>24,this[g+1]=h>>>16,this[g+2]=h>>>8,this[g+3]=h&255,g+4},o.prototype.writeBigInt64LE=_a(function(h,g=0){return ue(this,h,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=_a(function(h,g=0){return be(this,h,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ve(R,h,g,C,G,te){if(g+C>R.length)throw new RangeError("Index out of range");if(g<0)throw new RangeError("Index out of range")}function Ce(R,h,g,C,G){return h=+h,g=g>>>0,G||ve(R,h,g,4),t.write(R,h,g,C,23,4),g+4}o.prototype.writeFloatLE=function(h,g,C){return Ce(this,h,g,!0,C)},o.prototype.writeFloatBE=function(h,g,C){return Ce(this,h,g,!1,C)};function vt(R,h,g,C,G){return h=+h,g=g>>>0,G||ve(R,h,g,8),t.write(R,h,g,C,52,8),g+8}o.prototype.writeDoubleLE=function(h,g,C){return vt(this,h,g,!0,C)},o.prototype.writeDoubleBE=function(h,g,C){return vt(this,h,g,!1,C)},o.prototype.copy=function(h,g,C,G){if(!o.isBuffer(h))throw new TypeError("argument should be a Buffer");if(C||(C=0),!G&&G!==0&&(G=this.length),g>=h.length&&(g=h.length),g||(g=0),G>0&&G=this.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("sourceEnd out of bounds");G>this.length&&(G=this.length),h.length-g>>0,C=C===void 0?this.length:C>>>0,h||(h=0);let te;if(typeof h=="number")for(te=g;teun(2,32)?G=qe(String(g)):typeof g=="bigint"&&(G=String(g),(g>un(BigInt(2),BigInt(32))||g<-un(BigInt(2),BigInt(32)))&&(G=qe(G)),G+="n"),C+=` It must be ${h}. Received ${G}`,C},RangeError);function qe(R){let h="",g=R.length,C=R[0]==="-"?1:0;for(;g>=C+4;g-=3)h=`_${R.slice(g-3,g)}${h}`;return`${R.slice(0,g)}${h}`}function Ye(R,h,g){nt(h,"offset"),(R[h]===void 0||R[h+g]===void 0)&&Rt(h,R.length-(g+1))}function Ut(R,h,g,C,G,te){if(R>g||R3?h===0||h===BigInt(0)?pt=`>= 0${fe} and < 2${fe} ** ${(te+1)*8}${fe}`:pt=`>= -(2${fe} ** ${(te+1)*8-1}${fe}) and < 2 ** ${(te+1)*8-1}${fe}`:pt=`>= ${h}${fe} and <= ${g}${fe}`,new Y.ERR_OUT_OF_RANGE("value",pt,R)}Ye(C,G,te)}function nt(R,h){if(typeof R!="number")throw new Y.ERR_INVALID_ARG_TYPE(h,"number",R)}function Rt(R,h,g){throw Math.floor(R)!==R?(nt(R,g),new Y.ERR_OUT_OF_RANGE(g||"offset","an integer",R)):h<0?new Y.ERR_BUFFER_OUT_OF_BOUNDS:new Y.ERR_OUT_OF_RANGE(g||"offset",`>= ${g?1:0} and <= ${h}`,R)}let ns=/[^+/0-9A-Za-z-_]/g;function Vr(R){if(R=R.split("=")[0],R=R.trim().replace(ns,""),R.length<2)return"";for(;R.length%4!==0;)R=R+"=";return R}function rs(R,h){h=h||1/0;let g,C=R.length,G=null,te=[];for(let fe=0;fe55295&&g<57344){if(!G){if(g>56319){(h-=3)>-1&&te.push(239,191,189);continue}else if(fe+1===C){(h-=3)>-1&&te.push(239,191,189);continue}G=g;continue}if(g<56320){(h-=3)>-1&&te.push(239,191,189),G=g;continue}g=(G-55296<<10|g-56320)+65536}else G&&(h-=3)>-1&&te.push(239,191,189);if(G=null,g<128){if((h-=1)<0)break;te.push(g)}else if(g<2048){if((h-=2)<0)break;te.push(g>>6|192,g&63|128)}else if(g<65536){if((h-=3)<0)break;te.push(g>>12|224,g>>6&63|128,g&63|128)}else if(g<1114112){if((h-=4)<0)break;te.push(g>>18|240,g>>12&63|128,g>>6&63|128,g&63|128)}else throw new Error("Invalid code point")}return te}function xc(R){let h=[];for(let g=0;g>8,G=g%256,te.push(G),te.push(C);return te}function mr(R){return e.toByteArray(Vr(R))}function ri(R,h,g,C){let G;for(G=0;G=h.length||G>=R.length);++G)h[G+g]=R[G];return G}function Vt(R,h){return R instanceof h||R!=null&&R.constructor!=null&&R.constructor.name!=null&&R.constructor.name===h.name}function Nr(R){return R!==R}let Du=function(){let R="0123456789abcdef",h=new Array(256);for(let g=0;g<16;++g){let C=g*16;for(let G=0;G<16;++G)h[C+G]=R[g]+R[G]}return h}();function _a(R){return typeof BigInt=="undefined"?bu:R}function bu(){throw new Error("BigInt not supported")}return xu}var bd,hP,Em,yP,xu,IP,qu,D,yfe,Ife,gP=ku(()=>{"use strict";m();T();N();bd={},hP=!1;Em={},yP=!1;xu={},IP=!1;qu=MJ();qu.Buffer;qu.SlowBuffer;qu.INSPECT_MAX_BYTES;qu.kMaxLength;D=qu.Buffer,yfe=qu.INSPECT_MAX_BYTES,Ife=qu.kMaxLength});var T=ku(()=>{"use strict";gP()});var _P=w(el=>{"use strict";m();T();N();Object.defineProperty(el,"__esModule",{value:!0});el.versionInfo=el.version=void 0;var xJ="16.9.0";el.version=xJ;var qJ=Object.freeze({major:16,minor:9,patch:0,preReleaseTag:null});el.versionInfo=qJ});var Br=w(qy=>{"use strict";m();T();N();Object.defineProperty(qy,"__esModule",{value:!0});qy.devAssert=VJ;function VJ(e,t){if(!!!e)throw new Error(t)}});var hm=w(Vy=>{"use strict";m();T();N();Object.defineProperty(Vy,"__esModule",{value:!0});Vy.isPromise=jJ;function jJ(e){return typeof(e==null?void 0:e.then)=="function"}});var Da=w(jy=>{"use strict";m();T();N();Object.defineProperty(jy,"__esModule",{value:!0});jy.isObjectLike=KJ;function KJ(e){return typeof e=="object"&&e!==null}});var Ir=w(Ky=>{"use strict";m();T();N();Object.defineProperty(Ky,"__esModule",{value:!0});Ky.invariant=GJ;function GJ(e,t){if(!!!e)throw new Error(t!=null?t:"Unexpected invariant triggered.")}});var ym=w(Gy=>{"use strict";m();T();N();Object.defineProperty(Gy,"__esModule",{value:!0});Gy.getLocation=YJ;var $J=Ir(),QJ=/\r\n|[\n\r]/g;function YJ(e,t){let n=0,r=1;for(let i of e.body.matchAll(QJ)){if(typeof i.index=="number"||(0,$J.invariant)(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}});var $y=w(Im=>{"use strict";m();T();N();Object.defineProperty(Im,"__esModule",{value:!0});Im.printLocation=HJ;Im.printSourceLocation=SP;var JJ=ym();function HJ(e){return SP(e.source,(0,JJ.getLocation)(e.source,e.start))}function SP(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,a=e.locationOffset.line-1,o=t.line+a,c=t.line===1?n:0,l=t.column+c,d=`${e.name}:${o}:${l} +"use strict";var shim=(()=>{var AJ=Object.create;var Dd=Object.defineProperty,RJ=Object.defineProperties,PJ=Object.getOwnPropertyDescriptor,FJ=Object.getOwnPropertyDescriptors,wJ=Object.getOwnPropertyNames,WA=Object.getOwnPropertySymbols,LJ=Object.getPrototypeOf,XA=Object.prototype.hasOwnProperty,CJ=Object.prototype.propertyIsEnumerable;var un=Math.pow,Cy=(e,t,n)=>t in e?Dd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,x=(e,t)=>{for(var n in t||(t={}))XA.call(t,n)&&Cy(e,n,t[n]);if(WA)for(var n of WA(t))CJ.call(t,n)&&Cy(e,n,t[n]);return e},Q=(e,t)=>RJ(e,FJ(t));var ku=(e,t)=>()=>(e&&(t=e(e=0)),t);var w=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),fm=(e,t)=>{for(var n in t)Dd(e,n,{get:t[n],enumerable:!0})},ZA=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of wJ(t))!XA.call(e,i)&&i!==n&&Dd(e,i,{get:()=>t[i],enumerable:!(r=PJ(t,i))||r.enumerable});return e};var ps=(e,t,n)=>(n=e!=null?AJ(LJ(e)):{},ZA(t||!e||!e.__esModule?Dd(n,"default",{value:e,enumerable:!0}):n,e)),pm=e=>ZA(Dd({},"__esModule",{value:!0}),e);var _=(e,t,n)=>(Cy(e,typeof t!="symbol"?t+"":t,n),n),eR=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var By=(e,t,n)=>(eR(e,t,"read from private field"),n?n.call(e):t.get(e)),tR=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Uy=(e,t,n,r)=>(eR(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var Di=(e,t,n)=>new Promise((r,i)=>{var a=l=>{try{c(n.next(l))}catch(d){i(d)}},o=l=>{try{c(n.throw(l))}catch(d){i(d)}},c=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,o);c((n=n.apply(e,t)).next())});var m=ku(()=>{"use strict"});var O={};fm(O,{_debugEnd:()=>KR,_debugProcess:()=>jR,_events:()=>aP,_eventsCount:()=>sP,_exiting:()=>vR,_fatalExceptions:()=>MR,_getActiveHandles:()=>bR,_getActiveRequests:()=>DR,_kill:()=>RR,_linkedBinding:()=>gR,_maxListeners:()=>iP,_preload_modules:()=>tP,_rawDebug:()=>yR,_startProfilerIdleNotifier:()=>GR,_stopProfilerIdleNotifier:()=>$R,_tickCallback:()=>VR,abort:()=>HR,addListener:()=>oP,allowedNodeEnvironmentFlags:()=>BR,arch:()=>sR,argv:()=>cR,argv0:()=>eP,assert:()=>UR,binding:()=>mR,chdir:()=>ER,config:()=>SR,cpuUsage:()=>Tm,cwd:()=>TR,debugPort:()=>ZR,default:()=>TP,dlopen:()=>OR,domain:()=>_R,emit:()=>fP,emitWarning:()=>pR,env:()=>uR,execArgv:()=>lR,execPath:()=>XR,exit:()=>LR,features:()=>kR,hasUncaughtExceptionCaptureCallback:()=>qR,hrtime:()=>Nm,kill:()=>wR,listeners:()=>NP,memoryUsage:()=>FR,moduleLoadList:()=>IR,nextTick:()=>rR,off:()=>cP,on:()=>Ns,once:()=>uP,openStdin:()=>CR,pid:()=>zR,platform:()=>oR,ppid:()=>WR,prependListener:()=>pP,prependOnceListener:()=>mP,reallyExit:()=>AR,release:()=>hR,removeAllListeners:()=>dP,removeListener:()=>lP,resourceUsage:()=>PR,setSourceMapsEnabled:()=>nP,setUncaughtExceptionCaptureCallback:()=>xR,stderr:()=>YR,stdin:()=>JR,stdout:()=>QR,title:()=>aR,umask:()=>NR,uptime:()=>rP,version:()=>dR,versions:()=>fR});function xy(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function BJ(){!Zc||!Mu||(Zc=!1,Mu.length?ms=Mu.concat(ms):mm=-1,ms.length&&nR())}function nR(){if(!Zc){var e=setTimeout(BJ,0);Zc=!0;for(var t=ms.length;t;){for(Mu=ms,ms=[];++mm1)for(var n=1;n{"use strict";m();T();N();ms=[],Zc=!1,mm=-1;iR.prototype.run=function(){this.fun.apply(null,this.array)};aR="browser",sR="x64",oR="browser",uR={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},cR=["/usr/bin/node"],lR=[],dR="v16.8.0",fR={},pR=function(e,t){console.warn((t?t+": ":"")+e)},mR=function(e){xy("binding")},NR=function(e){return 0},TR=function(){return"/"},ER=function(e){},hR={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};yR=yr,IR=[];_R={},vR=!1,SR={};AR=yr,RR=yr,Tm=function(){return{}},PR=Tm,FR=Tm,wR=yr,LR=yr,CR=yr,BR={};kR={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},MR=yr,xR=yr;VR=yr,jR=yr,KR=yr,GR=yr,$R=yr,QR=void 0,YR=void 0,JR=void 0,HR=yr,zR=2,WR=1,XR="/bin/usr/node",ZR=9229,eP="node",tP=[],nP=yr,Xo={now:typeof performance!="undefined"?performance.now.bind(performance):void 0,timing:typeof performance!="undefined"?performance.timing:void 0};Xo.now===void 0&&(ky=Date.now(),Xo.timing&&Xo.timing.navigationStart&&(ky=Xo.timing.navigationStart),Xo.now=()=>Date.now()-ky);My=1e9;Nm.bigint=function(e){var t=Nm(e);return typeof BigInt=="undefined"?t[0]*My+t[1]:BigInt(t[0]*My)+BigInt(t[1])};iP=10,aP={},sP=0;oP=Ns,uP=Ns,cP=Ns,lP=Ns,dP=Ns,fP=yr,pP=Ns,mP=Ns;TP={version:dR,versions:fR,arch:sR,platform:oR,release:hR,_rawDebug:yR,moduleLoadList:IR,binding:mR,_linkedBinding:gR,_events:aP,_eventsCount:sP,_maxListeners:iP,on:Ns,addListener:oP,once:uP,off:cP,removeListener:lP,removeAllListeners:dP,emit:fP,prependListener:pP,prependOnceListener:mP,listeners:NP,domain:_R,_exiting:vR,config:SR,dlopen:OR,uptime:rP,_getActiveRequests:DR,_getActiveHandles:bR,reallyExit:AR,_kill:RR,cpuUsage:Tm,resourceUsage:PR,memoryUsage:FR,kill:wR,exit:LR,openStdin:CR,allowedNodeEnvironmentFlags:BR,assert:UR,features:kR,_fatalExceptions:MR,setUncaughtExceptionCaptureCallback:xR,hasUncaughtExceptionCaptureCallback:qR,emitWarning:pR,nextTick:rR,_tickCallback:VR,_debugProcess:jR,_debugEnd:KR,_startProfilerIdleNotifier:GR,_stopProfilerIdleNotifier:$R,stdout:QR,stdin:JR,stderr:YR,abort:HR,umask:NR,chdir:ER,cwd:TR,env:uR,title:aR,argv:cR,execArgv:lR,pid:zR,ppid:WR,execPath:XR,debugPort:ZR,hrtime:Nm,argv0:eP,_preload_modules:tP,setSourceMapsEnabled:nP}});var N=ku(()=>{"use strict";EP()});function UJ(){if(hP)return bd;hP=!0,bd.byteLength=c,bd.toByteArray=d,bd.fromByteArray=I;for(var e=[],t=[],n=typeof Uint8Array!="undefined"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,a=r.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var k=v.indexOf("=");k===-1&&(k=F);var K=k===F?0:4-k%4;return[k,K]}function c(v){var F=o(v),k=F[0],K=F[1];return(k+K)*3/4-K}function l(v,F,k){return(F+k)*3/4-k}function d(v){var F,k=o(v),K=k[0],J=k[1],se=new n(l(v,K,J)),ie=0,Te=J>0?K-4:K,de;for(de=0;de>16&255,se[ie++]=F>>8&255,se[ie++]=F&255;return J===2&&(F=t[v.charCodeAt(de)]<<2|t[v.charCodeAt(de+1)]>>4,se[ie++]=F&255),J===1&&(F=t[v.charCodeAt(de)]<<10|t[v.charCodeAt(de+1)]<<4|t[v.charCodeAt(de+2)]>>2,se[ie++]=F>>8&255,se[ie++]=F&255),se}function p(v){return e[v>>18&63]+e[v>>12&63]+e[v>>6&63]+e[v&63]}function y(v,F,k){for(var K,J=[],se=F;seTe?Te:ie+se));return K===1?(F=v[k-1],J.push(e[F>>2]+e[F<<4&63]+"==")):K===2&&(F=(v[k-2]<<8)+v[k-1],J.push(e[F>>10]+e[F>>4&63]+e[F<<2&63]+"=")),J.join("")}return bd}function kJ(){if(yP)return Em;yP=!0;return Em.read=function(e,t,n,r,i){var a,o,c=i*8-r-1,l=(1<>1,p=-7,y=n?i-1:0,I=n?-1:1,v=e[t+y];for(y+=I,a=v&(1<<-p)-1,v>>=-p,p+=c;p>0;a=a*256+e[t+y],y+=I,p-=8);for(o=a&(1<<-p)-1,a>>=-p,p+=r;p>0;o=o*256+e[t+y],y+=I,p-=8);if(a===0)a=1-d;else{if(a===l)return o?NaN:(v?-1:1)*(1/0);o=o+Math.pow(2,r),a=a-d}return(v?-1:1)*o*Math.pow(2,a-r)},Em.write=function(e,t,n,r,i,a){var o,c,l,d=a*8-i-1,p=(1<>1,I=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=r?0:a-1,F=r?1:-1,k=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,o=p):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+y>=1?t+=I/l:t+=I*Math.pow(2,1-y),t*l>=2&&(o++,l/=2),o+y>=p?(c=0,o=p):o+y>=1?(c=(t*l-1)*Math.pow(2,i),o=o+y):(c=t*Math.pow(2,y-1)*Math.pow(2,i),o=0));i>=8;e[n+v]=c&255,v+=F,c/=256,i-=8);for(o=o<0;e[n+v]=o&255,v+=F,o/=256,d-=8);e[n+v-F]|=k*128},Em}function MJ(){if(IP)return xu;IP=!0;let e=UJ(),t=kJ(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;xu.Buffer=o,xu.SlowBuffer=J,xu.INSPECT_MAX_BYTES=50;let r=2147483647;xu.kMaxLength=r,o.TYPED_ARRAY_SUPPORT=i(),!o.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{let R=new Uint8Array(1),h={foo:function(){return 42}};return Object.setPrototypeOf(h,Uint8Array.prototype),Object.setPrototypeOf(R,h),R.foo()===42}catch(R){return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function a(R){if(R>r)throw new RangeError('The value "'+R+'" is invalid for option "size"');let h=new Uint8Array(R);return Object.setPrototypeOf(h,o.prototype),h}function o(R,h,g){if(typeof R=="number"){if(typeof h=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return p(R)}return c(R,h,g)}o.poolSize=8192;function c(R,h,g){if(typeof R=="string")return y(R,h);if(ArrayBuffer.isView(R))return v(R);if(R==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof R);if(Vt(R,ArrayBuffer)||R&&Vt(R.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Vt(R,SharedArrayBuffer)||R&&Vt(R.buffer,SharedArrayBuffer)))return F(R,h,g);if(typeof R=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let C=R.valueOf&&R.valueOf();if(C!=null&&C!==R)return o.from(C,h,g);let G=k(R);if(G)return G;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof R[Symbol.toPrimitive]=="function")return o.from(R[Symbol.toPrimitive]("string"),h,g);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof R)}o.from=function(R,h,g){return c(R,h,g)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function l(R){if(typeof R!="number")throw new TypeError('"size" argument must be of type number');if(R<0)throw new RangeError('The value "'+R+'" is invalid for option "size"')}function d(R,h,g){return l(R),R<=0?a(R):h!==void 0?typeof g=="string"?a(R).fill(h,g):a(R).fill(h):a(R)}o.alloc=function(R,h,g){return d(R,h,g)};function p(R){return l(R),a(R<0?0:K(R)|0)}o.allocUnsafe=function(R){return p(R)},o.allocUnsafeSlow=function(R){return p(R)};function y(R,h){if((typeof h!="string"||h==="")&&(h="utf8"),!o.isEncoding(h))throw new TypeError("Unknown encoding: "+h);let g=se(R,h)|0,C=a(g),G=C.write(R,h);return G!==g&&(C=C.slice(0,G)),C}function I(R){let h=R.length<0?0:K(R.length)|0,g=a(h);for(let C=0;C=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return R|0}function J(R){return+R!=R&&(R=0),o.alloc(+R)}o.isBuffer=function(h){return h!=null&&h._isBuffer===!0&&h!==o.prototype},o.compare=function(h,g){if(Vt(h,Uint8Array)&&(h=o.from(h,h.offset,h.byteLength)),Vt(g,Uint8Array)&&(g=o.from(g,g.offset,g.byteLength)),!o.isBuffer(h)||!o.isBuffer(g))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(h===g)return 0;let C=h.length,G=g.length;for(let te=0,fe=Math.min(C,G);teG.length?(o.isBuffer(fe)||(fe=o.from(fe)),fe.copy(G,te)):Uint8Array.prototype.set.call(G,fe,te);else if(o.isBuffer(fe))fe.copy(G,te);else throw new TypeError('"list" argument must be an Array of Buffers');te+=fe.length}return G};function se(R,h){if(o.isBuffer(R))return R.length;if(ArrayBuffer.isView(R)||Vt(R,ArrayBuffer))return R.byteLength;if(typeof R!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof R);let g=R.length,C=arguments.length>2&&arguments[2]===!0;if(!C&&g===0)return 0;let G=!1;for(;;)switch(h){case"ascii":case"latin1":case"binary":return g;case"utf8":case"utf-8":return rs(R).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return g*2;case"hex":return g>>>1;case"base64":return mr(R).length;default:if(G)return C?-1:rs(R).length;h=(""+h).toLowerCase(),G=!0}}o.byteLength=se;function ie(R,h,g){let C=!1;if((h===void 0||h<0)&&(h=0),h>this.length||((g===void 0||g>this.length)&&(g=this.length),g<=0)||(g>>>=0,h>>>=0,g<=h))return"";for(R||(R="utf8");;)switch(R){case"hex":return Fr(this,h,g);case"utf8":case"utf-8":return tn(this,h,g);case"ascii":return mn(this,h,g);case"latin1":case"binary":return Pr(this,h,g);case"base64":return en(this,h,g);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return kn(this,h,g);default:if(C)throw new TypeError("Unknown encoding: "+R);R=(R+"").toLowerCase(),C=!0}}o.prototype._isBuffer=!0;function Te(R,h,g){let C=R[h];R[h]=R[g],R[g]=C}o.prototype.swap16=function(){let h=this.length;if(h%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let g=0;gg&&(h+=" ... "),""},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(h,g,C,G,te){if(Vt(h,Uint8Array)&&(h=o.from(h,h.offset,h.byteLength)),!o.isBuffer(h))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof h);if(g===void 0&&(g=0),C===void 0&&(C=h?h.length:0),G===void 0&&(G=0),te===void 0&&(te=this.length),g<0||C>h.length||G<0||te>this.length)throw new RangeError("out of range index");if(G>=te&&g>=C)return 0;if(G>=te)return-1;if(g>=C)return 1;if(g>>>=0,C>>>=0,G>>>=0,te>>>=0,this===h)return 0;let fe=te-G,pt=C-g,Nn=Math.min(fe,pt),on=this.slice(G,te),yn=h.slice(g,C);for(let nn=0;nn2147483647?g=2147483647:g<-2147483648&&(g=-2147483648),g=+g,Nr(g)&&(g=G?0:R.length-1),g<0&&(g=R.length+g),g>=R.length){if(G)return-1;g=R.length-1}else if(g<0)if(G)g=0;else return-1;if(typeof h=="string"&&(h=o.from(h,C)),o.isBuffer(h))return h.length===0?-1:Re(R,h,g,C,G);if(typeof h=="number")return h=h&255,typeof Uint8Array.prototype.indexOf=="function"?G?Uint8Array.prototype.indexOf.call(R,h,g):Uint8Array.prototype.lastIndexOf.call(R,h,g):Re(R,[h],g,C,G);throw new TypeError("val must be string, number or Buffer")}function Re(R,h,g,C,G){let te=1,fe=R.length,pt=h.length;if(C!==void 0&&(C=String(C).toLowerCase(),C==="ucs2"||C==="ucs-2"||C==="utf16le"||C==="utf-16le")){if(R.length<2||h.length<2)return-1;te=2,fe/=2,pt/=2,g/=2}function Nn(yn,nn){return te===1?yn[nn]:yn.readUInt16BE(nn*te)}let on;if(G){let yn=-1;for(on=g;onfe&&(g=fe-pt),on=g;on>=0;on--){let yn=!0;for(let nn=0;nnG&&(C=G)):C=G;let te=h.length;C>te/2&&(C=te/2);let fe;for(fe=0;fe>>0,isFinite(C)?(C=C>>>0,G===void 0&&(G="utf8")):(G=C,C=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let te=this.length-g;if((C===void 0||C>te)&&(C=te),h.length>0&&(C<0||g<0)||g>this.length)throw new RangeError("Attempt to write outside buffer bounds");G||(G="utf8");let fe=!1;for(;;)switch(G){case"hex":return xe(this,h,g,C);case"utf8":case"utf-8":return tt(this,h,g,C);case"ascii":case"latin1":case"binary":return ee(this,h,g,C);case"base64":return Se(this,h,g,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _t(this,h,g,C);default:if(fe)throw new TypeError("Unknown encoding: "+G);G=(""+G).toLowerCase(),fe=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function en(R,h,g){return h===0&&g===R.length?e.fromByteArray(R):e.fromByteArray(R.slice(h,g))}function tn(R,h,g){g=Math.min(R.length,g);let C=[],G=h;for(;G239?4:te>223?3:te>191?2:1;if(G+pt<=g){let Nn,on,yn,nn;switch(pt){case 1:te<128&&(fe=te);break;case 2:Nn=R[G+1],(Nn&192)===128&&(nn=(te&31)<<6|Nn&63,nn>127&&(fe=nn));break;case 3:Nn=R[G+1],on=R[G+2],(Nn&192)===128&&(on&192)===128&&(nn=(te&15)<<12|(Nn&63)<<6|on&63,nn>2047&&(nn<55296||nn>57343)&&(fe=nn));break;case 4:Nn=R[G+1],on=R[G+2],yn=R[G+3],(Nn&192)===128&&(on&192)===128&&(yn&192)===128&&(nn=(te&15)<<18|(Nn&63)<<12|(on&63)<<6|yn&63,nn>65535&&nn<1114112&&(fe=nn))}}fe===null?(fe=65533,pt=1):fe>65535&&(fe-=65536,C.push(fe>>>10&1023|55296),fe=56320|fe&1023),C.push(fe),G+=pt}return Qt(C)}let An=4096;function Qt(R){let h=R.length;if(h<=An)return String.fromCharCode.apply(String,R);let g="",C=0;for(;CC)&&(g=C);let G="";for(let te=h;teC&&(h=C),g<0?(g+=C,g<0&&(g=0)):g>C&&(g=C),gg)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(h,g,C){h=h>>>0,g=g>>>0,C||zt(h,g,this.length);let G=this[h],te=1,fe=0;for(;++fe>>0,g=g>>>0,C||zt(h,g,this.length);let G=this[h+--g],te=1;for(;g>0&&(te*=256);)G+=this[h+--g]*te;return G},o.prototype.readUint8=o.prototype.readUInt8=function(h,g){return h=h>>>0,g||zt(h,1,this.length),this[h]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(h,g){return h=h>>>0,g||zt(h,2,this.length),this[h]|this[h+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(h,g){return h=h>>>0,g||zt(h,2,this.length),this[h]<<8|this[h+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(h,g){return h=h>>>0,g||zt(h,4,this.length),(this[h]|this[h+1]<<8|this[h+2]<<16)+this[h+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(h,g){return h=h>>>0,g||zt(h,4,this.length),this[h]*16777216+(this[h+1]<<16|this[h+2]<<8|this[h+3])},o.prototype.readBigUInt64LE=_a(function(h){h=h>>>0,nt(h,"offset");let g=this[h],C=this[h+7];(g===void 0||C===void 0)&&Rt(h,this.length-8);let G=g+this[++h]*un(2,8)+this[++h]*un(2,16)+this[++h]*un(2,24),te=this[++h]+this[++h]*un(2,8)+this[++h]*un(2,16)+C*un(2,24);return BigInt(G)+(BigInt(te)<>>0,nt(h,"offset");let g=this[h],C=this[h+7];(g===void 0||C===void 0)&&Rt(h,this.length-8);let G=g*un(2,24)+this[++h]*un(2,16)+this[++h]*un(2,8)+this[++h],te=this[++h]*un(2,24)+this[++h]*un(2,16)+this[++h]*un(2,8)+C;return(BigInt(G)<>>0,g=g>>>0,C||zt(h,g,this.length);let G=this[h],te=1,fe=0;for(;++fe=te&&(G-=Math.pow(2,8*g)),G},o.prototype.readIntBE=function(h,g,C){h=h>>>0,g=g>>>0,C||zt(h,g,this.length);let G=g,te=1,fe=this[h+--G];for(;G>0&&(te*=256);)fe+=this[h+--G]*te;return te*=128,fe>=te&&(fe-=Math.pow(2,8*g)),fe},o.prototype.readInt8=function(h,g){return h=h>>>0,g||zt(h,1,this.length),this[h]&128?(255-this[h]+1)*-1:this[h]},o.prototype.readInt16LE=function(h,g){h=h>>>0,g||zt(h,2,this.length);let C=this[h]|this[h+1]<<8;return C&32768?C|4294901760:C},o.prototype.readInt16BE=function(h,g){h=h>>>0,g||zt(h,2,this.length);let C=this[h+1]|this[h]<<8;return C&32768?C|4294901760:C},o.prototype.readInt32LE=function(h,g){return h=h>>>0,g||zt(h,4,this.length),this[h]|this[h+1]<<8|this[h+2]<<16|this[h+3]<<24},o.prototype.readInt32BE=function(h,g){return h=h>>>0,g||zt(h,4,this.length),this[h]<<24|this[h+1]<<16|this[h+2]<<8|this[h+3]},o.prototype.readBigInt64LE=_a(function(h){h=h>>>0,nt(h,"offset");let g=this[h],C=this[h+7];(g===void 0||C===void 0)&&Rt(h,this.length-8);let G=this[h+4]+this[h+5]*un(2,8)+this[h+6]*un(2,16)+(C<<24);return(BigInt(G)<>>0,nt(h,"offset");let g=this[h],C=this[h+7];(g===void 0||C===void 0)&&Rt(h,this.length-8);let G=(g<<24)+this[++h]*un(2,16)+this[++h]*un(2,8)+this[++h];return(BigInt(G)<>>0,g||zt(h,4,this.length),t.read(this,h,!0,23,4)},o.prototype.readFloatBE=function(h,g){return h=h>>>0,g||zt(h,4,this.length),t.read(this,h,!1,23,4)},o.prototype.readDoubleLE=function(h,g){return h=h>>>0,g||zt(h,8,this.length),t.read(this,h,!0,52,8)},o.prototype.readDoubleBE=function(h,g){return h=h>>>0,g||zt(h,8,this.length),t.read(this,h,!1,52,8)};function Rn(R,h,g,C,G,te){if(!o.isBuffer(R))throw new TypeError('"buffer" argument must be a Buffer instance');if(h>G||hR.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(h,g,C,G){if(h=+h,g=g>>>0,C=C>>>0,!G){let pt=Math.pow(2,8*C)-1;Rn(this,h,g,C,pt,0)}let te=1,fe=0;for(this[g]=h&255;++fe>>0,C=C>>>0,!G){let pt=Math.pow(2,8*C)-1;Rn(this,h,g,C,pt,0)}let te=C-1,fe=1;for(this[g+te]=h&255;--te>=0&&(fe*=256);)this[g+te]=h/fe&255;return g+C},o.prototype.writeUint8=o.prototype.writeUInt8=function(h,g,C){return h=+h,g=g>>>0,C||Rn(this,h,g,1,255,0),this[g]=h&255,g+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(h,g,C){return h=+h,g=g>>>0,C||Rn(this,h,g,2,65535,0),this[g]=h&255,this[g+1]=h>>>8,g+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(h,g,C){return h=+h,g=g>>>0,C||Rn(this,h,g,2,65535,0),this[g]=h>>>8,this[g+1]=h&255,g+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(h,g,C){return h=+h,g=g>>>0,C||Rn(this,h,g,4,4294967295,0),this[g+3]=h>>>24,this[g+2]=h>>>16,this[g+1]=h>>>8,this[g]=h&255,g+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(h,g,C){return h=+h,g=g>>>0,C||Rn(this,h,g,4,4294967295,0),this[g]=h>>>24,this[g+1]=h>>>16,this[g+2]=h>>>8,this[g+3]=h&255,g+4};function ue(R,h,g,C,G){Ut(h,C,G,R,g,7);let te=Number(h&BigInt(4294967295));R[g++]=te,te=te>>8,R[g++]=te,te=te>>8,R[g++]=te,te=te>>8,R[g++]=te;let fe=Number(h>>BigInt(32)&BigInt(4294967295));return R[g++]=fe,fe=fe>>8,R[g++]=fe,fe=fe>>8,R[g++]=fe,fe=fe>>8,R[g++]=fe,g}function be(R,h,g,C,G){Ut(h,C,G,R,g,7);let te=Number(h&BigInt(4294967295));R[g+7]=te,te=te>>8,R[g+6]=te,te=te>>8,R[g+5]=te,te=te>>8,R[g+4]=te;let fe=Number(h>>BigInt(32)&BigInt(4294967295));return R[g+3]=fe,fe=fe>>8,R[g+2]=fe,fe=fe>>8,R[g+1]=fe,fe=fe>>8,R[g]=fe,g+8}o.prototype.writeBigUInt64LE=_a(function(h,g=0){return ue(this,h,g,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=_a(function(h,g=0){return be(this,h,g,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(h,g,C,G){if(h=+h,g=g>>>0,!G){let Nn=Math.pow(2,8*C-1);Rn(this,h,g,C,Nn-1,-Nn)}let te=0,fe=1,pt=0;for(this[g]=h&255;++te>0)-pt&255;return g+C},o.prototype.writeIntBE=function(h,g,C,G){if(h=+h,g=g>>>0,!G){let Nn=Math.pow(2,8*C-1);Rn(this,h,g,C,Nn-1,-Nn)}let te=C-1,fe=1,pt=0;for(this[g+te]=h&255;--te>=0&&(fe*=256);)h<0&&pt===0&&this[g+te+1]!==0&&(pt=1),this[g+te]=(h/fe>>0)-pt&255;return g+C},o.prototype.writeInt8=function(h,g,C){return h=+h,g=g>>>0,C||Rn(this,h,g,1,127,-128),h<0&&(h=255+h+1),this[g]=h&255,g+1},o.prototype.writeInt16LE=function(h,g,C){return h=+h,g=g>>>0,C||Rn(this,h,g,2,32767,-32768),this[g]=h&255,this[g+1]=h>>>8,g+2},o.prototype.writeInt16BE=function(h,g,C){return h=+h,g=g>>>0,C||Rn(this,h,g,2,32767,-32768),this[g]=h>>>8,this[g+1]=h&255,g+2},o.prototype.writeInt32LE=function(h,g,C){return h=+h,g=g>>>0,C||Rn(this,h,g,4,2147483647,-2147483648),this[g]=h&255,this[g+1]=h>>>8,this[g+2]=h>>>16,this[g+3]=h>>>24,g+4},o.prototype.writeInt32BE=function(h,g,C){return h=+h,g=g>>>0,C||Rn(this,h,g,4,2147483647,-2147483648),h<0&&(h=4294967295+h+1),this[g]=h>>>24,this[g+1]=h>>>16,this[g+2]=h>>>8,this[g+3]=h&255,g+4},o.prototype.writeBigInt64LE=_a(function(h,g=0){return ue(this,h,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=_a(function(h,g=0){return be(this,h,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ve(R,h,g,C,G,te){if(g+C>R.length)throw new RangeError("Index out of range");if(g<0)throw new RangeError("Index out of range")}function Ce(R,h,g,C,G){return h=+h,g=g>>>0,G||ve(R,h,g,4),t.write(R,h,g,C,23,4),g+4}o.prototype.writeFloatLE=function(h,g,C){return Ce(this,h,g,!0,C)},o.prototype.writeFloatBE=function(h,g,C){return Ce(this,h,g,!1,C)};function vt(R,h,g,C,G){return h=+h,g=g>>>0,G||ve(R,h,g,8),t.write(R,h,g,C,52,8),g+8}o.prototype.writeDoubleLE=function(h,g,C){return vt(this,h,g,!0,C)},o.prototype.writeDoubleBE=function(h,g,C){return vt(this,h,g,!1,C)},o.prototype.copy=function(h,g,C,G){if(!o.isBuffer(h))throw new TypeError("argument should be a Buffer");if(C||(C=0),!G&&G!==0&&(G=this.length),g>=h.length&&(g=h.length),g||(g=0),G>0&&G=this.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("sourceEnd out of bounds");G>this.length&&(G=this.length),h.length-g>>0,C=C===void 0?this.length:C>>>0,h||(h=0);let te;if(typeof h=="number")for(te=g;teun(2,32)?G=qe(String(g)):typeof g=="bigint"&&(G=String(g),(g>un(BigInt(2),BigInt(32))||g<-un(BigInt(2),BigInt(32)))&&(G=qe(G)),G+="n"),C+=` It must be ${h}. Received ${G}`,C},RangeError);function qe(R){let h="",g=R.length,C=R[0]==="-"?1:0;for(;g>=C+4;g-=3)h=`_${R.slice(g-3,g)}${h}`;return`${R.slice(0,g)}${h}`}function Ye(R,h,g){nt(h,"offset"),(R[h]===void 0||R[h+g]===void 0)&&Rt(h,R.length-(g+1))}function Ut(R,h,g,C,G,te){if(R>g||R3?h===0||h===BigInt(0)?pt=`>= 0${fe} and < 2${fe} ** ${(te+1)*8}${fe}`:pt=`>= -(2${fe} ** ${(te+1)*8-1}${fe}) and < 2 ** ${(te+1)*8-1}${fe}`:pt=`>= ${h}${fe} and <= ${g}${fe}`,new Y.ERR_OUT_OF_RANGE("value",pt,R)}Ye(C,G,te)}function nt(R,h){if(typeof R!="number")throw new Y.ERR_INVALID_ARG_TYPE(h,"number",R)}function Rt(R,h,g){throw Math.floor(R)!==R?(nt(R,g),new Y.ERR_OUT_OF_RANGE(g||"offset","an integer",R)):h<0?new Y.ERR_BUFFER_OUT_OF_BOUNDS:new Y.ERR_OUT_OF_RANGE(g||"offset",`>= ${g?1:0} and <= ${h}`,R)}let ns=/[^+/0-9A-Za-z-_]/g;function Vr(R){if(R=R.split("=")[0],R=R.trim().replace(ns,""),R.length<2)return"";for(;R.length%4!==0;)R=R+"=";return R}function rs(R,h){h=h||1/0;let g,C=R.length,G=null,te=[];for(let fe=0;fe55295&&g<57344){if(!G){if(g>56319){(h-=3)>-1&&te.push(239,191,189);continue}else if(fe+1===C){(h-=3)>-1&&te.push(239,191,189);continue}G=g;continue}if(g<56320){(h-=3)>-1&&te.push(239,191,189),G=g;continue}g=(G-55296<<10|g-56320)+65536}else G&&(h-=3)>-1&&te.push(239,191,189);if(G=null,g<128){if((h-=1)<0)break;te.push(g)}else if(g<2048){if((h-=2)<0)break;te.push(g>>6|192,g&63|128)}else if(g<65536){if((h-=3)<0)break;te.push(g>>12|224,g>>6&63|128,g&63|128)}else if(g<1114112){if((h-=4)<0)break;te.push(g>>18|240,g>>12&63|128,g>>6&63|128,g&63|128)}else throw new Error("Invalid code point")}return te}function xc(R){let h=[];for(let g=0;g>8,G=g%256,te.push(G),te.push(C);return te}function mr(R){return e.toByteArray(Vr(R))}function ri(R,h,g,C){let G;for(G=0;G=h.length||G>=R.length);++G)h[G+g]=R[G];return G}function Vt(R,h){return R instanceof h||R!=null&&R.constructor!=null&&R.constructor.name!=null&&R.constructor.name===h.name}function Nr(R){return R!==R}let Du=function(){let R="0123456789abcdef",h=new Array(256);for(let g=0;g<16;++g){let C=g*16;for(let G=0;G<16;++G)h[C+G]=R[g]+R[G]}return h}();function _a(R){return typeof BigInt=="undefined"?bu:R}function bu(){throw new Error("BigInt not supported")}return xu}var bd,hP,Em,yP,xu,IP,qu,D,yfe,Ife,gP=ku(()=>{"use strict";m();T();N();bd={},hP=!1;Em={},yP=!1;xu={},IP=!1;qu=MJ();qu.Buffer;qu.SlowBuffer;qu.INSPECT_MAX_BYTES;qu.kMaxLength;D=qu.Buffer,yfe=qu.INSPECT_MAX_BYTES,Ife=qu.kMaxLength});var T=ku(()=>{"use strict";gP()});var _P=w(el=>{"use strict";m();T();N();Object.defineProperty(el,"__esModule",{value:!0});el.versionInfo=el.version=void 0;var xJ="16.9.0";el.version=xJ;var qJ=Object.freeze({major:16,minor:9,patch:0,preReleaseTag:null});el.versionInfo=qJ});var Br=w(qy=>{"use strict";m();T();N();Object.defineProperty(qy,"__esModule",{value:!0});qy.devAssert=VJ;function VJ(e,t){if(!!!e)throw new Error(t)}});var hm=w(Vy=>{"use strict";m();T();N();Object.defineProperty(Vy,"__esModule",{value:!0});Vy.isPromise=jJ;function jJ(e){return typeof(e==null?void 0:e.then)=="function"}});var Da=w(jy=>{"use strict";m();T();N();Object.defineProperty(jy,"__esModule",{value:!0});jy.isObjectLike=KJ;function KJ(e){return typeof e=="object"&&e!==null}});var Ir=w(Ky=>{"use strict";m();T();N();Object.defineProperty(Ky,"__esModule",{value:!0});Ky.invariant=GJ;function GJ(e,t){if(!!!e)throw new Error(t!=null?t:"Unexpected invariant triggered.")}});var ym=w(Gy=>{"use strict";m();T();N();Object.defineProperty(Gy,"__esModule",{value:!0});Gy.getLocation=YJ;var $J=Ir(),QJ=/\r\n|[\n\r]/g;function YJ(e,t){let n=0,r=1;for(let i of e.body.matchAll(QJ)){if(typeof i.index=="number"||(0,$J.invariant)(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}});var $y=w(Im=>{"use strict";m();T();N();Object.defineProperty(Im,"__esModule",{value:!0});Im.printLocation=HJ;Im.printSourceLocation=SP;var JJ=ym();function HJ(e){return SP(e.source,(0,JJ.getLocation)(e.source,e.start))}function SP(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,a=e.locationOffset.line-1,o=t.line+a,c=t.line===1?n:0,l=t.column+c,d=`${e.name}:${o}:${l} `,p=r.split(/\r\n|[\n\r]/g),y=p[i];if(y.length>120){let I=Math.floor(l/80),v=l%80,F=[];for(let k=0;k["|",k]),["|","^".padStart(v)],["|",F[I+1]]])}return d+vP([[`${o-1} |`,p[i-1]],[`${o} |`,y],["|","^".padStart(l)],[`${o+1} |`,p[i+1]]])}function vP(e){let t=e.filter(([r,i])=>i!==void 0),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,i])=>r.padStart(n)+(i?" "+i:"")).join(` `)}});var ze=w(tl=>{"use strict";m();T();N();Object.defineProperty(tl,"__esModule",{value:!0});tl.GraphQLError=void 0;tl.formatError=ZJ;tl.printError=XJ;var zJ=Da(),OP=ym(),DP=$y();function WJ(e){let t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}var Qy=class e extends Error{constructor(t,...n){var r,i,a;let{nodes:o,source:c,positions:l,path:d,originalError:p,extensions:y}=WJ(n);super(t),this.name="GraphQLError",this.path=d!=null?d:void 0,this.originalError=p!=null?p:void 0,this.nodes=bP(Array.isArray(o)?o:o?[o]:void 0);let I=bP((r=this.nodes)===null||r===void 0?void 0:r.map(F=>F.loc).filter(F=>F!=null));this.source=c!=null?c:I==null||(i=I[0])===null||i===void 0?void 0:i.source,this.positions=l!=null?l:I==null?void 0:I.map(F=>F.start),this.locations=l&&c?l.map(F=>(0,OP.getLocation)(c,F)):I==null?void 0:I.map(F=>(0,OP.getLocation)(F.source,F.start));let v=(0,zJ.isObjectLike)(p==null?void 0:p.extensions)?p==null?void 0:p.extensions:void 0;this.extensions=(a=y!=null?y:v)!==null&&a!==void 0?a:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),p!=null&&p.stack?Object.defineProperty(this,"stack",{value:p.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(let n of this.nodes)n.loc&&(t+=` `+(0,DP.printLocation)(n.loc));else if(this.source&&this.locations)for(let n of this.locations)t+=` -`+(0,DP.printSourceLocation)(this.source,n);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};tl.GraphQLError=Qy;function bP(e){return e===void 0||e.length===0?void 0:e}function XJ(e){return e.toString()}function ZJ(e){return e.toJSON()}});var gm=w(Yy=>{"use strict";m();T();N();Object.defineProperty(Yy,"__esModule",{value:!0});Yy.syntaxError=tH;var eH=ze();function tH(e,t,n){return new eH.GraphQLError(`Syntax Error: ${n}`,{source:e,positions:[t]})}});var ba=w(Ai=>{"use strict";m();T();N();Object.defineProperty(Ai,"__esModule",{value:!0});Ai.Token=Ai.QueryDocumentKeys=Ai.OperationTypeNode=Ai.Location=void 0;Ai.isNode=rH;var Jy=class{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}};Ai.Location=Jy;var Hy=class{constructor(t,n,r,i,a,o){this.kind=t,this.start=n,this.end=r,this.line=i,this.column=a,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}};Ai.Token=Hy;var AP={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};Ai.QueryDocumentKeys=AP;var nH=new Set(Object.keys(AP));function rH(e){let t=e==null?void 0:e.kind;return typeof t=="string"&&nH.has(t)}var zy;Ai.OperationTypeNode=zy;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(zy||(Ai.OperationTypeNode=zy={}))});var nl=w(Ad=>{"use strict";m();T();N();Object.defineProperty(Ad,"__esModule",{value:!0});Ad.DirectiveLocation=void 0;var Wy;Ad.DirectiveLocation=Wy;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(Wy||(Ad.DirectiveLocation=Wy={}))});var Ft=w(Rd=>{"use strict";m();T();N();Object.defineProperty(Rd,"__esModule",{value:!0});Rd.Kind=void 0;var Xy;Rd.Kind=Xy;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(Xy||(Rd.Kind=Xy={}))});var _m=w(Vu=>{"use strict";m();T();N();Object.defineProperty(Vu,"__esModule",{value:!0});Vu.isDigit=RP;Vu.isLetter=Zy;Vu.isNameContinue=sH;Vu.isNameStart=aH;Vu.isWhiteSpace=iH;function iH(e){return e===9||e===32}function RP(e){return e>=48&&e<=57}function Zy(e){return e>=97&&e<=122||e>=65&&e<=90}function aH(e){return Zy(e)||e===95}function sH(e){return Zy(e)||RP(e)||e===95}});var Fd=w(Pd=>{"use strict";m();T();N();Object.defineProperty(Pd,"__esModule",{value:!0});Pd.dedentBlockStringLines=oH;Pd.isPrintableAsBlockString=cH;Pd.printBlockString=lH;var eI=_m();function oH(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let o=0;oc===0?o:o.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,i+1)}function uH(e){let t=0;for(;t1&&r.slice(1).every(v=>v.length===0||(0,eI.isWhiteSpace)(v.charCodeAt(0))),o=n.endsWith('\\"""'),c=e.endsWith('"')&&!o,l=e.endsWith("\\"),d=c||l,p=!(t!=null&&t.minimize)&&(!i||e.length>70||d||a||o),y="",I=i&&(0,eI.isWhiteSpace)(e.charCodeAt(0));return(p&&!I||a)&&(y+=` +`+(0,DP.printSourceLocation)(this.source,n);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};tl.GraphQLError=Qy;function bP(e){return e===void 0||e.length===0?void 0:e}function XJ(e){return e.toString()}function ZJ(e){return e.toJSON()}});var gm=w(Yy=>{"use strict";m();T();N();Object.defineProperty(Yy,"__esModule",{value:!0});Yy.syntaxError=tH;var eH=ze();function tH(e,t,n){return new eH.GraphQLError(`Syntax Error: ${n}`,{source:e,positions:[t]})}});var ba=w(bi=>{"use strict";m();T();N();Object.defineProperty(bi,"__esModule",{value:!0});bi.Token=bi.QueryDocumentKeys=bi.OperationTypeNode=bi.Location=void 0;bi.isNode=rH;var Jy=class{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}};bi.Location=Jy;var Hy=class{constructor(t,n,r,i,a,o){this.kind=t,this.start=n,this.end=r,this.line=i,this.column=a,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}};bi.Token=Hy;var AP={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};bi.QueryDocumentKeys=AP;var nH=new Set(Object.keys(AP));function rH(e){let t=e==null?void 0:e.kind;return typeof t=="string"&&nH.has(t)}var zy;bi.OperationTypeNode=zy;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(zy||(bi.OperationTypeNode=zy={}))});var nl=w(Ad=>{"use strict";m();T();N();Object.defineProperty(Ad,"__esModule",{value:!0});Ad.DirectiveLocation=void 0;var Wy;Ad.DirectiveLocation=Wy;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(Wy||(Ad.DirectiveLocation=Wy={}))});var Ft=w(Rd=>{"use strict";m();T();N();Object.defineProperty(Rd,"__esModule",{value:!0});Rd.Kind=void 0;var Xy;Rd.Kind=Xy;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(Xy||(Rd.Kind=Xy={}))});var _m=w(Vu=>{"use strict";m();T();N();Object.defineProperty(Vu,"__esModule",{value:!0});Vu.isDigit=RP;Vu.isLetter=Zy;Vu.isNameContinue=sH;Vu.isNameStart=aH;Vu.isWhiteSpace=iH;function iH(e){return e===9||e===32}function RP(e){return e>=48&&e<=57}function Zy(e){return e>=97&&e<=122||e>=65&&e<=90}function aH(e){return Zy(e)||e===95}function sH(e){return Zy(e)||RP(e)||e===95}});var Fd=w(Pd=>{"use strict";m();T();N();Object.defineProperty(Pd,"__esModule",{value:!0});Pd.dedentBlockStringLines=oH;Pd.isPrintableAsBlockString=cH;Pd.printBlockString=lH;var eI=_m();function oH(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let o=0;oc===0?o:o.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,i+1)}function uH(e){let t=0;for(;t1&&r.slice(1).every(v=>v.length===0||(0,eI.isWhiteSpace)(v.charCodeAt(0))),o=n.endsWith('\\"""'),c=e.endsWith('"')&&!o,l=e.endsWith("\\"),d=c||l,p=!(t!=null&&t.minimize)&&(!i||e.length>70||d||a||o),y="",I=i&&(0,eI.isWhiteSpace)(e.charCodeAt(0));return(p&&!I||a)&&(y+=` `),y+=n,(p||d)&&(y+=` `),'"""'+y+'"""'}});var Ld=w(wd=>{"use strict";m();T();N();Object.defineProperty(wd,"__esModule",{value:!0});wd.TokenKind=void 0;var tI;wd.TokenKind=tI;(function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(tI||(wd.TokenKind=tI={}))});var Sm=w(Bd=>{"use strict";m();T();N();Object.defineProperty(Bd,"__esModule",{value:!0});Bd.Lexer=void 0;Bd.isPunctuatorTokenKind=fH;var ea=gm(),FP=ba(),dH=Fd(),ju=_m(),gt=Ld(),rI=class{constructor(t){let n=new FP.Token(gt.TokenKind.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==gt.TokenKind.EOF)do if(t.next)t=t.next;else{let n=pH(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===gt.TokenKind.COMMENT);return t}};Bd.Lexer=rI;function fH(e){return e===gt.TokenKind.BANG||e===gt.TokenKind.DOLLAR||e===gt.TokenKind.AMP||e===gt.TokenKind.PAREN_L||e===gt.TokenKind.PAREN_R||e===gt.TokenKind.SPREAD||e===gt.TokenKind.COLON||e===gt.TokenKind.EQUALS||e===gt.TokenKind.AT||e===gt.TokenKind.BRACKET_L||e===gt.TokenKind.BRACKET_R||e===gt.TokenKind.BRACE_L||e===gt.TokenKind.PIPE||e===gt.TokenKind.BRACE_R}function rl(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function vm(e,t){return wP(e.charCodeAt(t))&&LP(e.charCodeAt(t+1))}function wP(e){return e>=55296&&e<=56319}function LP(e){return e>=56320&&e<=57343}function Ku(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return gt.TokenKind.EOF;if(n>=32&&n<=126){let r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Qn(e,t,n,r,i){let a=e.line,o=1+n-e.lineStart;return new FP.Token(t,n,r,a,o,i)}function pH(e,t){let n=e.source.body,r=n.length,i=t;for(;i=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function yH(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:` `,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw(0,ea.syntaxError)(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function IH(e,t){let n=e.source.body,r=n.length,i=e.lineStart,a=t+3,o=a,c="",l=[];for(;a{"use strict";m() `)),` }`)}function Dt(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function Lm(e){return Dt(" ",e.replace(/\n/g,` `))}function jP(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(` -`)))!==null&&t!==void 0?t:!1}});var _I=w(gI=>{"use strict";m();T();N();Object.defineProperty(gI,"__esModule",{value:!0});gI.valueFromASTUntyped=II;var f3=xd(),Ts=Ft();function II(e,t){switch(e.kind){case Ts.Kind.NULL:return null;case Ts.Kind.INT:return parseInt(e.value,10);case Ts.Kind.FLOAT:return parseFloat(e.value);case Ts.Kind.STRING:case Ts.Kind.ENUM:case Ts.Kind.BOOLEAN:return e.value;case Ts.Kind.LIST:return e.values.map(n=>II(n,t));case Ts.Kind.OBJECT:return(0,f3.keyValMap)(e.fields,n=>n.name.value,n=>II(n.value,t));case Ts.Kind.VARIABLE:return t==null?void 0:t[e.name.value]}}});var Vd=w(Bm=>{"use strict";m();T();N();Object.defineProperty(Bm,"__esModule",{value:!0});Bm.assertEnumValueName=p3;Bm.assertName=$P;var KP=Br(),Cm=ze(),GP=_m();function $P(e){if(e!=null||(0,KP.devAssert)(!1,"Must provide name."),typeof e=="string"||(0,KP.devAssert)(!1,"Expected name to be a string."),e.length===0)throw new Cm.GraphQLError("Expected name to be a non-empty string.");for(let t=1;t{"use strict";m();T();N();Object.defineProperty(Ge,"__esModule",{value:!0});Ge.GraphQLUnionType=Ge.GraphQLScalarType=Ge.GraphQLObjectType=Ge.GraphQLNonNull=Ge.GraphQLList=Ge.GraphQLInterfaceType=Ge.GraphQLInputObjectType=Ge.GraphQLEnumType=void 0;Ge.argsToArgsConfig=iF;Ge.assertAbstractType=L3;Ge.assertCompositeType=w3;Ge.assertEnumType=O3;Ge.assertInputObjectType=D3;Ge.assertInputType=R3;Ge.assertInterfaceType=v3;Ge.assertLeafType=F3;Ge.assertListType=b3;Ge.assertNamedType=k3;Ge.assertNonNullType=A3;Ge.assertNullableType=B3;Ge.assertObjectType=_3;Ge.assertOutputType=P3;Ge.assertScalarType=g3;Ge.assertType=I3;Ge.assertUnionType=S3;Ge.assertWrappingType=C3;Ge.defineArguments=nF;Ge.getNamedType=M3;Ge.getNullableType=U3;Ge.isAbstractType=XP;Ge.isCompositeType=WP;Ge.isEnumType=zu;Ge.isInputObjectType=Kd;Ge.isInputType=vI;Ge.isInterfaceType=Ju;Ge.isLeafType=zP;Ge.isListType=Ym;Ge.isNamedType=ZP;Ge.isNonNullType=au;Ge.isNullableType=OI;Ge.isObjectType=ol;Ge.isOutputType=SI;Ge.isRequiredArgument=x3;Ge.isRequiredInputField=j3;Ge.isScalarType=Yu;Ge.isType=Qm;Ge.isUnionType=Hu;Ge.isWrappingType=Gd;Ge.resolveObjMapThunk=bI;Ge.resolveReadonlyArrayThunk=DI;var sr=Br(),m3=eu(),QP=MP(),fn=Xt(),iu=Ud(),N3=Da(),T3=tu(),HP=xd(),$m=dI(),E3=nu(),Aa=Fm(),jd=ze(),h3=Ft(),YP=li(),y3=_I(),Ra=Vd();function Qm(e){return Yu(e)||ol(e)||Ju(e)||Hu(e)||zu(e)||Kd(e)||Ym(e)||au(e)}function I3(e){if(!Qm(e))throw new Error(`Expected ${(0,fn.inspect)(e)} to be a GraphQL type.`);return e}function Yu(e){return(0,iu.instanceOf)(e,xm)}function g3(e){if(!Yu(e))throw new Error(`Expected ${(0,fn.inspect)(e)} to be a GraphQL Scalar type.`);return e}function ol(e){return(0,iu.instanceOf)(e,qm)}function _3(e){if(!ol(e))throw new Error(`Expected ${(0,fn.inspect)(e)} to be a GraphQL Object type.`);return e}function Ju(e){return(0,iu.instanceOf)(e,Vm)}function v3(e){if(!Ju(e))throw new Error(`Expected ${(0,fn.inspect)(e)} to be a GraphQL Interface type.`);return e}function Hu(e){return(0,iu.instanceOf)(e,jm)}function S3(e){if(!Hu(e))throw new Error(`Expected ${(0,fn.inspect)(e)} to be a GraphQL Union type.`);return e}function zu(e){return(0,iu.instanceOf)(e,Km)}function O3(e){if(!zu(e))throw new Error(`Expected ${(0,fn.inspect)(e)} to be a GraphQL Enum type.`);return e}function Kd(e){return(0,iu.instanceOf)(e,Gm)}function D3(e){if(!Kd(e))throw new Error(`Expected ${(0,fn.inspect)(e)} to be a GraphQL Input Object type.`);return e}function Ym(e){return(0,iu.instanceOf)(e,km)}function b3(e){if(!Ym(e))throw new Error(`Expected ${(0,fn.inspect)(e)} to be a GraphQL List type.`);return e}function au(e){return(0,iu.instanceOf)(e,Mm)}function A3(e){if(!au(e))throw new Error(`Expected ${(0,fn.inspect)(e)} to be a GraphQL Non-Null type.`);return e}function vI(e){return Yu(e)||zu(e)||Kd(e)||Gd(e)&&vI(e.ofType)}function R3(e){if(!vI(e))throw new Error(`Expected ${(0,fn.inspect)(e)} to be a GraphQL input type.`);return e}function SI(e){return Yu(e)||ol(e)||Ju(e)||Hu(e)||zu(e)||Gd(e)&&SI(e.ofType)}function P3(e){if(!SI(e))throw new Error(`Expected ${(0,fn.inspect)(e)} to be a GraphQL output type.`);return e}function zP(e){return Yu(e)||zu(e)}function F3(e){if(!zP(e))throw new Error(`Expected ${(0,fn.inspect)(e)} to be a GraphQL leaf type.`);return e}function WP(e){return ol(e)||Ju(e)||Hu(e)}function w3(e){if(!WP(e))throw new Error(`Expected ${(0,fn.inspect)(e)} to be a GraphQL composite type.`);return e}function XP(e){return Ju(e)||Hu(e)}function L3(e){if(!XP(e))throw new Error(`Expected ${(0,fn.inspect)(e)} to be a GraphQL abstract type.`);return e}var km=class{constructor(t){Qm(t)||(0,sr.devAssert)(!1,`Expected ${(0,fn.inspect)(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}};Ge.GraphQLList=km;var Mm=class{constructor(t){OI(t)||(0,sr.devAssert)(!1,`Expected ${(0,fn.inspect)(t)} to be a GraphQL nullable type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}};Ge.GraphQLNonNull=Mm;function Gd(e){return Ym(e)||au(e)}function C3(e){if(!Gd(e))throw new Error(`Expected ${(0,fn.inspect)(e)} to be a GraphQL wrapping type.`);return e}function OI(e){return Qm(e)&&!au(e)}function B3(e){if(!OI(e))throw new Error(`Expected ${(0,fn.inspect)(e)} to be a GraphQL nullable type.`);return e}function U3(e){if(e)return au(e)?e.ofType:e}function ZP(e){return Yu(e)||ol(e)||Ju(e)||Hu(e)||zu(e)||Kd(e)}function k3(e){if(!ZP(e))throw new Error(`Expected ${(0,fn.inspect)(e)} to be a GraphQL named type.`);return e}function M3(e){if(e){let t=e;for(;Gd(t);)t=t.ofType;return t}}function DI(e){return typeof e=="function"?e():e}function bI(e){return typeof e=="function"?e():e}var xm=class{constructor(t){var n,r,i,a;let o=(n=t.parseValue)!==null&&n!==void 0?n:QP.identityFunc;this.name=(0,Ra.assertName)(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(r=t.serialize)!==null&&r!==void 0?r:QP.identityFunc,this.parseValue=o,this.parseLiteral=(i=t.parseLiteral)!==null&&i!==void 0?i:(c,l)=>o((0,y3.valueFromASTUntyped)(c,l)),this.extensions=(0,Aa.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(a=t.extensionASTNodes)!==null&&a!==void 0?a:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||(0,sr.devAssert)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,fn.inspect)(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||(0,sr.devAssert)(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),t.parseLiteral&&(typeof t.parseValue=="function"&&typeof t.parseLiteral=="function"||(0,sr.devAssert)(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Ge.GraphQLScalarType=xm;var qm=class{constructor(t){var n;this.name=(0,Ra.assertName)(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=(0,Aa.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>tF(t),this._interfaces=()=>eF(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||(0,sr.devAssert)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,fn.inspect)(t.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:rF(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Ge.GraphQLObjectType=qm;function eF(e){var t;let n=DI((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(n)||(0,sr.devAssert)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function tF(e){let t=bI(e.fields);return sl(t)||(0,sr.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,$m.mapValue)(t,(n,r)=>{var i;sl(n)||(0,sr.devAssert)(!1,`${e.name}.${r} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||(0,sr.devAssert)(!1,`${e.name}.${r} field resolver must be a function if provided, but got: ${(0,fn.inspect)(n.resolve)}.`);let a=(i=n.args)!==null&&i!==void 0?i:{};return sl(a)||(0,sr.devAssert)(!1,`${e.name}.${r} args must be an object with argument names as keys.`),{name:(0,Ra.assertName)(r),description:n.description,type:n.type,args:nF(a),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:(0,Aa.toObjMap)(n.extensions),astNode:n.astNode}})}function nF(e){return Object.entries(e).map(([t,n])=>({name:(0,Ra.assertName)(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:(0,Aa.toObjMap)(n.extensions),astNode:n.astNode}))}function sl(e){return(0,N3.isObjectLike)(e)&&!Array.isArray(e)}function rF(e){return(0,$m.mapValue)(e,t=>({description:t.description,type:t.type,args:iF(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function iF(e){return(0,HP.keyValMap)(e,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function x3(e){return au(e.type)&&e.defaultValue===void 0}var Vm=class{constructor(t){var n;this.name=(0,Ra.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,Aa.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=tF.bind(void 0,t),this._interfaces=eF.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,sr.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,fn.inspect)(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:rF(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Ge.GraphQLInterfaceType=Vm;var jm=class{constructor(t){var n;this.name=(0,Ra.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,Aa.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=q3.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,sr.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,fn.inspect)(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return typeof this._types=="function"&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Ge.GraphQLUnionType=jm;function q3(e){let t=DI(e.types);return Array.isArray(t)||(0,sr.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}var Km=class{constructor(t){var n;this.name=(0,Ra.assertName)(t.name),this.description=t.description,this.extensions=(0,Aa.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=typeof t.values=="function"?t.values:JP(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=JP(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=(0,T3.keyMap)(this.getValues(),n=>n.name)),this._nameLookup[t]}serialize(t){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(r=>[r.value,r])));let n=this._valueLookup.get(t);if(n===void 0)throw new jd.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,fn.inspect)(t)}`);return n.name}parseValue(t){if(typeof t!="string"){let r=(0,fn.inspect)(t);throw new jd.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${r}.`+Um(this,r))}let n=this.getValue(t);if(n==null)throw new jd.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+Um(this,t));return n.value}parseLiteral(t,n){if(t.kind!==h3.Kind.ENUM){let i=(0,YP.print)(t);throw new jd.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+Um(this,i),{nodes:t})}let r=this.getValue(t.value);if(r==null){let i=(0,YP.print)(t);throw new jd.GraphQLError(`Value "${i}" does not exist in "${this.name}" enum.`+Um(this,i),{nodes:t})}return r.value}toConfig(){let t=(0,HP.keyValMap)(this.getValues(),n=>n.name,n=>({description:n.description,value:n.value,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Ge.GraphQLEnumType=Km;function Um(e,t){let n=e.getValues().map(i=>i.name),r=(0,E3.suggestionList)(t,n);return(0,m3.didYouMean)("the enum value",r)}function JP(e,t){return sl(t)||(0,sr.devAssert)(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([n,r])=>(sl(r)||(0,sr.devAssert)(!1,`${e}.${n} must refer to an object with a "value" key representing an internal value but got: ${(0,fn.inspect)(r)}.`),{name:(0,Ra.assertEnumValueName)(n),description:r.description,value:r.value!==void 0?r.value:n,deprecationReason:r.deprecationReason,extensions:(0,Aa.toObjMap)(r.extensions),astNode:r.astNode}))}var Gm=class{constructor(t){var n,r;this.name=(0,Ra.assertName)(t.name),this.description=t.description,this.extensions=(0,Aa.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this.isOneOf=(r=t.isOneOf)!==null&&r!==void 0?r:!1,this._fields=V3.bind(void 0,t)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){let t=(0,$m.mapValue)(this.getFields(),n=>({description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}};Ge.GraphQLInputObjectType=Gm;function V3(e){let t=bI(e.fields);return sl(t)||(0,sr.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,$m.mapValue)(t,(n,r)=>(!("resolve"in n)||(0,sr.devAssert)(!1,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,Ra.assertName)(r),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:(0,Aa.toObjMap)(n.extensions),astNode:n.astNode}))}function j3(e){return au(e.type)&&e.defaultValue===void 0}});var Qd=w($d=>{"use strict";m();T();N();Object.defineProperty($d,"__esModule",{value:!0});$d.doTypesOverlap=K3;$d.isEqualType=AI;$d.isTypeSubTypeOf=Jm;var gr=wt();function AI(e,t){return e===t?!0:(0,gr.isNonNullType)(e)&&(0,gr.isNonNullType)(t)||(0,gr.isListType)(e)&&(0,gr.isListType)(t)?AI(e.ofType,t.ofType):!1}function Jm(e,t,n){return t===n?!0:(0,gr.isNonNullType)(n)?(0,gr.isNonNullType)(t)?Jm(e,t.ofType,n.ofType):!1:(0,gr.isNonNullType)(t)?Jm(e,t.ofType,n):(0,gr.isListType)(n)?(0,gr.isListType)(t)?Jm(e,t.ofType,n.ofType):!1:(0,gr.isListType)(t)?!1:(0,gr.isAbstractType)(n)&&((0,gr.isInterfaceType)(t)||(0,gr.isObjectType)(t))&&e.isSubType(n,t)}function K3(e,t,n){return t===n?!0:(0,gr.isAbstractType)(t)?(0,gr.isAbstractType)(n)?e.getPossibleTypes(t).some(r=>e.isSubType(n,r)):e.isSubType(t,n):(0,gr.isAbstractType)(n)?e.isSubType(n,t):!1}});var Pa=w(Wn=>{"use strict";m();T();N();Object.defineProperty(Wn,"__esModule",{value:!0});Wn.GraphQLString=Wn.GraphQLInt=Wn.GraphQLID=Wn.GraphQLFloat=Wn.GraphQLBoolean=Wn.GRAPHQL_MIN_INT=Wn.GRAPHQL_MAX_INT=void 0;Wn.isSpecifiedScalarType=G3;Wn.specifiedScalarTypes=void 0;var na=Xt(),aF=Da(),or=ze(),Wu=Ft(),Yd=li(),Jd=wt(),Hm=2147483647;Wn.GRAPHQL_MAX_INT=Hm;var zm=-2147483648;Wn.GRAPHQL_MIN_INT=zm;var sF=new Jd.GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){let t=Hd(e);if(typeof t=="boolean")return t?1:0;let n=t;if(typeof t=="string"&&t!==""&&(n=Number(t)),typeof n!="number"||!Number.isInteger(n))throw new or.GraphQLError(`Int cannot represent non-integer value: ${(0,na.inspect)(t)}`);if(n>Hm||nHm||eHm||te.name===t)}function Hd(e){if((0,aF.isObjectLike)(e)){if(typeof e.valueOf=="function"){let t=e.valueOf();if(!(0,aF.isObjectLike)(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}});var Qr=w(qn=>{"use strict";m();T();N();Object.defineProperty(qn,"__esModule",{value:!0});qn.GraphQLSpecifiedByDirective=qn.GraphQLSkipDirective=qn.GraphQLOneOfDirective=qn.GraphQLIncludeDirective=qn.GraphQLDirective=qn.GraphQLDeprecatedDirective=qn.DEFAULT_DEPRECATION_REASON=void 0;qn.assertDirective=z3;qn.isDirective=pF;qn.isSpecifiedDirective=W3;qn.specifiedDirectives=void 0;var fF=Br(),$3=Xt(),Q3=Ud(),Y3=Da(),J3=Fm(),Ri=nl(),H3=Vd(),zd=wt(),Wm=Pa();function pF(e){return(0,Q3.instanceOf)(e,Es)}function z3(e){if(!pF(e))throw new Error(`Expected ${(0,$3.inspect)(e)} to be a GraphQL directive.`);return e}var Es=class{constructor(t){var n,r;this.name=(0,H3.assertName)(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(n=t.isRepeatable)!==null&&n!==void 0?n:!1,this.extensions=(0,J3.toObjMap)(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||(0,fF.devAssert)(!1,`@${t.name} locations must be an Array.`);let i=(r=t.args)!==null&&r!==void 0?r:{};(0,Y3.isObjectLike)(i)&&!Array.isArray(i)||(0,fF.devAssert)(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=(0,zd.defineArguments)(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,zd.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}};qn.GraphQLDirective=Es;var mF=new Es({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[Ri.DirectiveLocation.FIELD,Ri.DirectiveLocation.FRAGMENT_SPREAD,Ri.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new zd.GraphQLNonNull(Wm.GraphQLBoolean),description:"Included when true."}}});qn.GraphQLIncludeDirective=mF;var NF=new Es({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[Ri.DirectiveLocation.FIELD,Ri.DirectiveLocation.FRAGMENT_SPREAD,Ri.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new zd.GraphQLNonNull(Wm.GraphQLBoolean),description:"Skipped when true."}}});qn.GraphQLSkipDirective=NF;var TF="No longer supported";qn.DEFAULT_DEPRECATION_REASON=TF;var EF=new Es({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[Ri.DirectiveLocation.FIELD_DEFINITION,Ri.DirectiveLocation.ARGUMENT_DEFINITION,Ri.DirectiveLocation.INPUT_FIELD_DEFINITION,Ri.DirectiveLocation.ENUM_VALUE],args:{reason:{type:Wm.GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:TF}}});qn.GraphQLDeprecatedDirective=EF;var hF=new Es({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[Ri.DirectiveLocation.SCALAR],args:{url:{type:new zd.GraphQLNonNull(Wm.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});qn.GraphQLSpecifiedByDirective=hF;var yF=new Es({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[Ri.DirectiveLocation.INPUT_OBJECT],args:{}});qn.GraphQLOneOfDirective=yF;var IF=Object.freeze([mF,NF,EF,hF,yF]);qn.specifiedDirectives=IF;function W3(e){return IF.some(({name:t})=>t===e.name)}});var Xm=w(RI=>{"use strict";m();T();N();Object.defineProperty(RI,"__esModule",{value:!0});RI.isIterableObject=X3;function X3(e){return typeof e=="object"&&typeof(e==null?void 0:e[Symbol.iterator])=="function"}});var Zd=w(PI=>{"use strict";m();T();N();Object.defineProperty(PI,"__esModule",{value:!0});PI.astFromValue=Xd;var gF=Xt(),Z3=Ir(),e6=Xm(),t6=Da(),Pi=Ft(),Wd=wt(),n6=Pa();function Xd(e,t){if((0,Wd.isNonNullType)(t)){let n=Xd(e,t.ofType);return(n==null?void 0:n.kind)===Pi.Kind.NULL?null:n}if(e===null)return{kind:Pi.Kind.NULL};if(e===void 0)return null;if((0,Wd.isListType)(t)){let n=t.ofType;if((0,e6.isIterableObject)(e)){let r=[];for(let i of e){let a=Xd(i,n);a!=null&&r.push(a)}return{kind:Pi.Kind.LIST,values:r}}return Xd(e,n)}if((0,Wd.isInputObjectType)(t)){if(!(0,t6.isObjectLike)(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=Xd(e[r.name],r.type);i&&n.push({kind:Pi.Kind.OBJECT_FIELD,name:{kind:Pi.Kind.NAME,value:r.name},value:i})}return{kind:Pi.Kind.OBJECT,fields:n}}if((0,Wd.isLeafType)(t)){let n=t.serialize(e);if(n==null)return null;if(typeof n=="boolean")return{kind:Pi.Kind.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){let r=String(n);return _F.test(r)?{kind:Pi.Kind.INT,value:r}:{kind:Pi.Kind.FLOAT,value:r}}if(typeof n=="string")return(0,Wd.isEnumType)(t)?{kind:Pi.Kind.ENUM,value:n}:t===n6.GraphQLID&&_F.test(n)?{kind:Pi.Kind.INT,value:n}:{kind:Pi.Kind.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${(0,gF.inspect)(n)}.`)}(0,Z3.invariant)(!1,"Unexpected input type: "+(0,gF.inspect)(t))}var _F=/^-?(?:0|[1-9][0-9]*)$/});var wi=w(Zt=>{"use strict";m();T();N();Object.defineProperty(Zt,"__esModule",{value:!0});Zt.introspectionTypes=Zt.__TypeKind=Zt.__Type=Zt.__Schema=Zt.__InputValue=Zt.__Field=Zt.__EnumValue=Zt.__DirectiveLocation=Zt.__Directive=Zt.TypeNameMetaFieldDef=Zt.TypeMetaFieldDef=Zt.TypeKind=Zt.SchemaMetaFieldDef=void 0;Zt.isIntrospectionType=l6;var r6=Xt(),i6=Ir(),Xn=nl(),a6=li(),s6=Zd(),ke=wt(),cn=Pa(),FI=new ke.GraphQLObjectType({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:cn.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new ke.GraphQLNonNull(new ke.GraphQLList(new ke.GraphQLNonNull(Fi))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new ke.GraphQLNonNull(Fi),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Fi,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Fi,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new ke.GraphQLNonNull(new ke.GraphQLList(new ke.GraphQLNonNull(wI))),resolve:e=>e.getDirectives()}})});Zt.__Schema=FI;var wI=new ke.GraphQLObjectType({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document. +`)))!==null&&t!==void 0?t:!1}});var _I=w(gI=>{"use strict";m();T();N();Object.defineProperty(gI,"__esModule",{value:!0});gI.valueFromASTUntyped=II;var f3=xd(),Ts=Ft();function II(e,t){switch(e.kind){case Ts.Kind.NULL:return null;case Ts.Kind.INT:return parseInt(e.value,10);case Ts.Kind.FLOAT:return parseFloat(e.value);case Ts.Kind.STRING:case Ts.Kind.ENUM:case Ts.Kind.BOOLEAN:return e.value;case Ts.Kind.LIST:return e.values.map(n=>II(n,t));case Ts.Kind.OBJECT:return(0,f3.keyValMap)(e.fields,n=>n.name.value,n=>II(n.value,t));case Ts.Kind.VARIABLE:return t==null?void 0:t[e.name.value]}}});var Vd=w(Bm=>{"use strict";m();T();N();Object.defineProperty(Bm,"__esModule",{value:!0});Bm.assertEnumValueName=p3;Bm.assertName=$P;var KP=Br(),Cm=ze(),GP=_m();function $P(e){if(e!=null||(0,KP.devAssert)(!1,"Must provide name."),typeof e=="string"||(0,KP.devAssert)(!1,"Expected name to be a string."),e.length===0)throw new Cm.GraphQLError("Expected name to be a non-empty string.");for(let t=1;t{"use strict";m();T();N();Object.defineProperty(Ge,"__esModule",{value:!0});Ge.GraphQLUnionType=Ge.GraphQLScalarType=Ge.GraphQLObjectType=Ge.GraphQLNonNull=Ge.GraphQLList=Ge.GraphQLInterfaceType=Ge.GraphQLInputObjectType=Ge.GraphQLEnumType=void 0;Ge.argsToArgsConfig=iF;Ge.assertAbstractType=L3;Ge.assertCompositeType=w3;Ge.assertEnumType=O3;Ge.assertInputObjectType=D3;Ge.assertInputType=R3;Ge.assertInterfaceType=v3;Ge.assertLeafType=F3;Ge.assertListType=b3;Ge.assertNamedType=k3;Ge.assertNonNullType=A3;Ge.assertNullableType=B3;Ge.assertObjectType=_3;Ge.assertOutputType=P3;Ge.assertScalarType=g3;Ge.assertType=I3;Ge.assertUnionType=S3;Ge.assertWrappingType=C3;Ge.defineArguments=nF;Ge.getNamedType=M3;Ge.getNullableType=U3;Ge.isAbstractType=XP;Ge.isCompositeType=WP;Ge.isEnumType=zu;Ge.isInputObjectType=Kd;Ge.isInputType=vI;Ge.isInterfaceType=Ju;Ge.isLeafType=zP;Ge.isListType=Ym;Ge.isNamedType=ZP;Ge.isNonNullType=au;Ge.isNullableType=OI;Ge.isObjectType=ol;Ge.isOutputType=SI;Ge.isRequiredArgument=x3;Ge.isRequiredInputField=j3;Ge.isScalarType=Yu;Ge.isType=Qm;Ge.isUnionType=Hu;Ge.isWrappingType=Gd;Ge.resolveObjMapThunk=bI;Ge.resolveReadonlyArrayThunk=DI;var sr=Br(),m3=eu(),QP=MP(),fn=Xt(),iu=Ud(),N3=Da(),T3=tu(),HP=xd(),$m=dI(),E3=nu(),Aa=Fm(),jd=ze(),h3=Ft(),YP=li(),y3=_I(),Ra=Vd();function Qm(e){return Yu(e)||ol(e)||Ju(e)||Hu(e)||zu(e)||Kd(e)||Ym(e)||au(e)}function I3(e){if(!Qm(e))throw new Error(`Expected ${(0,fn.inspect)(e)} to be a GraphQL type.`);return e}function Yu(e){return(0,iu.instanceOf)(e,xm)}function g3(e){if(!Yu(e))throw new Error(`Expected ${(0,fn.inspect)(e)} to be a GraphQL Scalar type.`);return e}function ol(e){return(0,iu.instanceOf)(e,qm)}function _3(e){if(!ol(e))throw new Error(`Expected ${(0,fn.inspect)(e)} to be a GraphQL Object type.`);return e}function Ju(e){return(0,iu.instanceOf)(e,Vm)}function v3(e){if(!Ju(e))throw new Error(`Expected ${(0,fn.inspect)(e)} to be a GraphQL Interface type.`);return e}function Hu(e){return(0,iu.instanceOf)(e,jm)}function S3(e){if(!Hu(e))throw new Error(`Expected ${(0,fn.inspect)(e)} to be a GraphQL Union type.`);return e}function zu(e){return(0,iu.instanceOf)(e,Km)}function O3(e){if(!zu(e))throw new Error(`Expected ${(0,fn.inspect)(e)} to be a GraphQL Enum type.`);return e}function Kd(e){return(0,iu.instanceOf)(e,Gm)}function D3(e){if(!Kd(e))throw new Error(`Expected ${(0,fn.inspect)(e)} to be a GraphQL Input Object type.`);return e}function Ym(e){return(0,iu.instanceOf)(e,km)}function b3(e){if(!Ym(e))throw new Error(`Expected ${(0,fn.inspect)(e)} to be a GraphQL List type.`);return e}function au(e){return(0,iu.instanceOf)(e,Mm)}function A3(e){if(!au(e))throw new Error(`Expected ${(0,fn.inspect)(e)} to be a GraphQL Non-Null type.`);return e}function vI(e){return Yu(e)||zu(e)||Kd(e)||Gd(e)&&vI(e.ofType)}function R3(e){if(!vI(e))throw new Error(`Expected ${(0,fn.inspect)(e)} to be a GraphQL input type.`);return e}function SI(e){return Yu(e)||ol(e)||Ju(e)||Hu(e)||zu(e)||Gd(e)&&SI(e.ofType)}function P3(e){if(!SI(e))throw new Error(`Expected ${(0,fn.inspect)(e)} to be a GraphQL output type.`);return e}function zP(e){return Yu(e)||zu(e)}function F3(e){if(!zP(e))throw new Error(`Expected ${(0,fn.inspect)(e)} to be a GraphQL leaf type.`);return e}function WP(e){return ol(e)||Ju(e)||Hu(e)}function w3(e){if(!WP(e))throw new Error(`Expected ${(0,fn.inspect)(e)} to be a GraphQL composite type.`);return e}function XP(e){return Ju(e)||Hu(e)}function L3(e){if(!XP(e))throw new Error(`Expected ${(0,fn.inspect)(e)} to be a GraphQL abstract type.`);return e}var km=class{constructor(t){Qm(t)||(0,sr.devAssert)(!1,`Expected ${(0,fn.inspect)(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}};Ge.GraphQLList=km;var Mm=class{constructor(t){OI(t)||(0,sr.devAssert)(!1,`Expected ${(0,fn.inspect)(t)} to be a GraphQL nullable type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}};Ge.GraphQLNonNull=Mm;function Gd(e){return Ym(e)||au(e)}function C3(e){if(!Gd(e))throw new Error(`Expected ${(0,fn.inspect)(e)} to be a GraphQL wrapping type.`);return e}function OI(e){return Qm(e)&&!au(e)}function B3(e){if(!OI(e))throw new Error(`Expected ${(0,fn.inspect)(e)} to be a GraphQL nullable type.`);return e}function U3(e){if(e)return au(e)?e.ofType:e}function ZP(e){return Yu(e)||ol(e)||Ju(e)||Hu(e)||zu(e)||Kd(e)}function k3(e){if(!ZP(e))throw new Error(`Expected ${(0,fn.inspect)(e)} to be a GraphQL named type.`);return e}function M3(e){if(e){let t=e;for(;Gd(t);)t=t.ofType;return t}}function DI(e){return typeof e=="function"?e():e}function bI(e){return typeof e=="function"?e():e}var xm=class{constructor(t){var n,r,i,a;let o=(n=t.parseValue)!==null&&n!==void 0?n:QP.identityFunc;this.name=(0,Ra.assertName)(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(r=t.serialize)!==null&&r!==void 0?r:QP.identityFunc,this.parseValue=o,this.parseLiteral=(i=t.parseLiteral)!==null&&i!==void 0?i:(c,l)=>o((0,y3.valueFromASTUntyped)(c,l)),this.extensions=(0,Aa.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(a=t.extensionASTNodes)!==null&&a!==void 0?a:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||(0,sr.devAssert)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,fn.inspect)(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||(0,sr.devAssert)(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),t.parseLiteral&&(typeof t.parseValue=="function"&&typeof t.parseLiteral=="function"||(0,sr.devAssert)(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Ge.GraphQLScalarType=xm;var qm=class{constructor(t){var n;this.name=(0,Ra.assertName)(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=(0,Aa.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>tF(t),this._interfaces=()=>eF(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||(0,sr.devAssert)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,fn.inspect)(t.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:rF(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Ge.GraphQLObjectType=qm;function eF(e){var t;let n=DI((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(n)||(0,sr.devAssert)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function tF(e){let t=bI(e.fields);return sl(t)||(0,sr.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,$m.mapValue)(t,(n,r)=>{var i;sl(n)||(0,sr.devAssert)(!1,`${e.name}.${r} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||(0,sr.devAssert)(!1,`${e.name}.${r} field resolver must be a function if provided, but got: ${(0,fn.inspect)(n.resolve)}.`);let a=(i=n.args)!==null&&i!==void 0?i:{};return sl(a)||(0,sr.devAssert)(!1,`${e.name}.${r} args must be an object with argument names as keys.`),{name:(0,Ra.assertName)(r),description:n.description,type:n.type,args:nF(a),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:(0,Aa.toObjMap)(n.extensions),astNode:n.astNode}})}function nF(e){return Object.entries(e).map(([t,n])=>({name:(0,Ra.assertName)(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:(0,Aa.toObjMap)(n.extensions),astNode:n.astNode}))}function sl(e){return(0,N3.isObjectLike)(e)&&!Array.isArray(e)}function rF(e){return(0,$m.mapValue)(e,t=>({description:t.description,type:t.type,args:iF(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function iF(e){return(0,HP.keyValMap)(e,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function x3(e){return au(e.type)&&e.defaultValue===void 0}var Vm=class{constructor(t){var n;this.name=(0,Ra.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,Aa.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=tF.bind(void 0,t),this._interfaces=eF.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,sr.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,fn.inspect)(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:rF(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Ge.GraphQLInterfaceType=Vm;var jm=class{constructor(t){var n;this.name=(0,Ra.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,Aa.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=q3.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,sr.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,fn.inspect)(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return typeof this._types=="function"&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Ge.GraphQLUnionType=jm;function q3(e){let t=DI(e.types);return Array.isArray(t)||(0,sr.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}var Km=class{constructor(t){var n;this.name=(0,Ra.assertName)(t.name),this.description=t.description,this.extensions=(0,Aa.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=typeof t.values=="function"?t.values:JP(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=JP(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=(0,T3.keyMap)(this.getValues(),n=>n.name)),this._nameLookup[t]}serialize(t){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(r=>[r.value,r])));let n=this._valueLookup.get(t);if(n===void 0)throw new jd.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,fn.inspect)(t)}`);return n.name}parseValue(t){if(typeof t!="string"){let r=(0,fn.inspect)(t);throw new jd.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${r}.`+Um(this,r))}let n=this.getValue(t);if(n==null)throw new jd.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+Um(this,t));return n.value}parseLiteral(t,n){if(t.kind!==h3.Kind.ENUM){let i=(0,YP.print)(t);throw new jd.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+Um(this,i),{nodes:t})}let r=this.getValue(t.value);if(r==null){let i=(0,YP.print)(t);throw new jd.GraphQLError(`Value "${i}" does not exist in "${this.name}" enum.`+Um(this,i),{nodes:t})}return r.value}toConfig(){let t=(0,HP.keyValMap)(this.getValues(),n=>n.name,n=>({description:n.description,value:n.value,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Ge.GraphQLEnumType=Km;function Um(e,t){let n=e.getValues().map(i=>i.name),r=(0,E3.suggestionList)(t,n);return(0,m3.didYouMean)("the enum value",r)}function JP(e,t){return sl(t)||(0,sr.devAssert)(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([n,r])=>(sl(r)||(0,sr.devAssert)(!1,`${e}.${n} must refer to an object with a "value" key representing an internal value but got: ${(0,fn.inspect)(r)}.`),{name:(0,Ra.assertEnumValueName)(n),description:r.description,value:r.value!==void 0?r.value:n,deprecationReason:r.deprecationReason,extensions:(0,Aa.toObjMap)(r.extensions),astNode:r.astNode}))}var Gm=class{constructor(t){var n,r;this.name=(0,Ra.assertName)(t.name),this.description=t.description,this.extensions=(0,Aa.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this.isOneOf=(r=t.isOneOf)!==null&&r!==void 0?r:!1,this._fields=V3.bind(void 0,t)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){let t=(0,$m.mapValue)(this.getFields(),n=>({description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}};Ge.GraphQLInputObjectType=Gm;function V3(e){let t=bI(e.fields);return sl(t)||(0,sr.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,$m.mapValue)(t,(n,r)=>(!("resolve"in n)||(0,sr.devAssert)(!1,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,Ra.assertName)(r),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:(0,Aa.toObjMap)(n.extensions),astNode:n.astNode}))}function j3(e){return au(e.type)&&e.defaultValue===void 0}});var Qd=w($d=>{"use strict";m();T();N();Object.defineProperty($d,"__esModule",{value:!0});$d.doTypesOverlap=K3;$d.isEqualType=AI;$d.isTypeSubTypeOf=Jm;var gr=wt();function AI(e,t){return e===t?!0:(0,gr.isNonNullType)(e)&&(0,gr.isNonNullType)(t)||(0,gr.isListType)(e)&&(0,gr.isListType)(t)?AI(e.ofType,t.ofType):!1}function Jm(e,t,n){return t===n?!0:(0,gr.isNonNullType)(n)?(0,gr.isNonNullType)(t)?Jm(e,t.ofType,n.ofType):!1:(0,gr.isNonNullType)(t)?Jm(e,t.ofType,n):(0,gr.isListType)(n)?(0,gr.isListType)(t)?Jm(e,t.ofType,n.ofType):!1:(0,gr.isListType)(t)?!1:(0,gr.isAbstractType)(n)&&((0,gr.isInterfaceType)(t)||(0,gr.isObjectType)(t))&&e.isSubType(n,t)}function K3(e,t,n){return t===n?!0:(0,gr.isAbstractType)(t)?(0,gr.isAbstractType)(n)?e.getPossibleTypes(t).some(r=>e.isSubType(n,r)):e.isSubType(t,n):(0,gr.isAbstractType)(n)?e.isSubType(n,t):!1}});var Pa=w(Wn=>{"use strict";m();T();N();Object.defineProperty(Wn,"__esModule",{value:!0});Wn.GraphQLString=Wn.GraphQLInt=Wn.GraphQLID=Wn.GraphQLFloat=Wn.GraphQLBoolean=Wn.GRAPHQL_MIN_INT=Wn.GRAPHQL_MAX_INT=void 0;Wn.isSpecifiedScalarType=G3;Wn.specifiedScalarTypes=void 0;var na=Xt(),aF=Da(),or=ze(),Wu=Ft(),Yd=li(),Jd=wt(),Hm=2147483647;Wn.GRAPHQL_MAX_INT=Hm;var zm=-2147483648;Wn.GRAPHQL_MIN_INT=zm;var sF=new Jd.GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){let t=Hd(e);if(typeof t=="boolean")return t?1:0;let n=t;if(typeof t=="string"&&t!==""&&(n=Number(t)),typeof n!="number"||!Number.isInteger(n))throw new or.GraphQLError(`Int cannot represent non-integer value: ${(0,na.inspect)(t)}`);if(n>Hm||nHm||eHm||te.name===t)}function Hd(e){if((0,aF.isObjectLike)(e)){if(typeof e.valueOf=="function"){let t=e.valueOf();if(!(0,aF.isObjectLike)(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}});var Qr=w(qn=>{"use strict";m();T();N();Object.defineProperty(qn,"__esModule",{value:!0});qn.GraphQLSpecifiedByDirective=qn.GraphQLSkipDirective=qn.GraphQLOneOfDirective=qn.GraphQLIncludeDirective=qn.GraphQLDirective=qn.GraphQLDeprecatedDirective=qn.DEFAULT_DEPRECATION_REASON=void 0;qn.assertDirective=z3;qn.isDirective=pF;qn.isSpecifiedDirective=W3;qn.specifiedDirectives=void 0;var fF=Br(),$3=Xt(),Q3=Ud(),Y3=Da(),J3=Fm(),Ai=nl(),H3=Vd(),zd=wt(),Wm=Pa();function pF(e){return(0,Q3.instanceOf)(e,Es)}function z3(e){if(!pF(e))throw new Error(`Expected ${(0,$3.inspect)(e)} to be a GraphQL directive.`);return e}var Es=class{constructor(t){var n,r;this.name=(0,H3.assertName)(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(n=t.isRepeatable)!==null&&n!==void 0?n:!1,this.extensions=(0,J3.toObjMap)(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||(0,fF.devAssert)(!1,`@${t.name} locations must be an Array.`);let i=(r=t.args)!==null&&r!==void 0?r:{};(0,Y3.isObjectLike)(i)&&!Array.isArray(i)||(0,fF.devAssert)(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=(0,zd.defineArguments)(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,zd.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}};qn.GraphQLDirective=Es;var mF=new Es({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[Ai.DirectiveLocation.FIELD,Ai.DirectiveLocation.FRAGMENT_SPREAD,Ai.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new zd.GraphQLNonNull(Wm.GraphQLBoolean),description:"Included when true."}}});qn.GraphQLIncludeDirective=mF;var NF=new Es({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[Ai.DirectiveLocation.FIELD,Ai.DirectiveLocation.FRAGMENT_SPREAD,Ai.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new zd.GraphQLNonNull(Wm.GraphQLBoolean),description:"Skipped when true."}}});qn.GraphQLSkipDirective=NF;var TF="No longer supported";qn.DEFAULT_DEPRECATION_REASON=TF;var EF=new Es({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[Ai.DirectiveLocation.FIELD_DEFINITION,Ai.DirectiveLocation.ARGUMENT_DEFINITION,Ai.DirectiveLocation.INPUT_FIELD_DEFINITION,Ai.DirectiveLocation.ENUM_VALUE],args:{reason:{type:Wm.GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:TF}}});qn.GraphQLDeprecatedDirective=EF;var hF=new Es({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[Ai.DirectiveLocation.SCALAR],args:{url:{type:new zd.GraphQLNonNull(Wm.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});qn.GraphQLSpecifiedByDirective=hF;var yF=new Es({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[Ai.DirectiveLocation.INPUT_OBJECT],args:{}});qn.GraphQLOneOfDirective=yF;var IF=Object.freeze([mF,NF,EF,hF,yF]);qn.specifiedDirectives=IF;function W3(e){return IF.some(({name:t})=>t===e.name)}});var Xm=w(RI=>{"use strict";m();T();N();Object.defineProperty(RI,"__esModule",{value:!0});RI.isIterableObject=X3;function X3(e){return typeof e=="object"&&typeof(e==null?void 0:e[Symbol.iterator])=="function"}});var Zd=w(PI=>{"use strict";m();T();N();Object.defineProperty(PI,"__esModule",{value:!0});PI.astFromValue=Xd;var gF=Xt(),Z3=Ir(),e6=Xm(),t6=Da(),Ri=Ft(),Wd=wt(),n6=Pa();function Xd(e,t){if((0,Wd.isNonNullType)(t)){let n=Xd(e,t.ofType);return(n==null?void 0:n.kind)===Ri.Kind.NULL?null:n}if(e===null)return{kind:Ri.Kind.NULL};if(e===void 0)return null;if((0,Wd.isListType)(t)){let n=t.ofType;if((0,e6.isIterableObject)(e)){let r=[];for(let i of e){let a=Xd(i,n);a!=null&&r.push(a)}return{kind:Ri.Kind.LIST,values:r}}return Xd(e,n)}if((0,Wd.isInputObjectType)(t)){if(!(0,t6.isObjectLike)(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=Xd(e[r.name],r.type);i&&n.push({kind:Ri.Kind.OBJECT_FIELD,name:{kind:Ri.Kind.NAME,value:r.name},value:i})}return{kind:Ri.Kind.OBJECT,fields:n}}if((0,Wd.isLeafType)(t)){let n=t.serialize(e);if(n==null)return null;if(typeof n=="boolean")return{kind:Ri.Kind.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){let r=String(n);return _F.test(r)?{kind:Ri.Kind.INT,value:r}:{kind:Ri.Kind.FLOAT,value:r}}if(typeof n=="string")return(0,Wd.isEnumType)(t)?{kind:Ri.Kind.ENUM,value:n}:t===n6.GraphQLID&&_F.test(n)?{kind:Ri.Kind.INT,value:n}:{kind:Ri.Kind.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${(0,gF.inspect)(n)}.`)}(0,Z3.invariant)(!1,"Unexpected input type: "+(0,gF.inspect)(t))}var _F=/^-?(?:0|[1-9][0-9]*)$/});var Fi=w(Zt=>{"use strict";m();T();N();Object.defineProperty(Zt,"__esModule",{value:!0});Zt.introspectionTypes=Zt.__TypeKind=Zt.__Type=Zt.__Schema=Zt.__InputValue=Zt.__Field=Zt.__EnumValue=Zt.__DirectiveLocation=Zt.__Directive=Zt.TypeNameMetaFieldDef=Zt.TypeMetaFieldDef=Zt.TypeKind=Zt.SchemaMetaFieldDef=void 0;Zt.isIntrospectionType=l6;var r6=Xt(),i6=Ir(),Xn=nl(),a6=li(),s6=Zd(),ke=wt(),cn=Pa(),FI=new ke.GraphQLObjectType({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:cn.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new ke.GraphQLNonNull(new ke.GraphQLList(new ke.GraphQLNonNull(Pi))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new ke.GraphQLNonNull(Pi),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Pi,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Pi,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new ke.GraphQLNonNull(new ke.GraphQLList(new ke.GraphQLNonNull(wI))),resolve:e=>e.getDirectives()}})});Zt.__Schema=FI;var wI=new ke.GraphQLObjectType({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document. -In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:()=>({name:{type:new ke.GraphQLNonNull(cn.GraphQLString),resolve:e=>e.name},description:{type:cn.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new ke.GraphQLNonNull(cn.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new ke.GraphQLNonNull(new ke.GraphQLList(new ke.GraphQLNonNull(LI))),resolve:e=>e.locations},args:{type:new ke.GraphQLNonNull(new ke.GraphQLList(new ke.GraphQLNonNull(ef))),args:{includeDeprecated:{type:cn.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}}})});Zt.__Directive=wI;var LI=new ke.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:Xn.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:Xn.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:Xn.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:Xn.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:Xn.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:Xn.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:Xn.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:Xn.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:Xn.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:Xn.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:Xn.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:Xn.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:Xn.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:Xn.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:Xn.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:Xn.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:Xn.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:Xn.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:Xn.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});Zt.__DirectiveLocation=LI;var Fi=new ke.GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new ke.GraphQLNonNull(UI),resolve(e){if((0,ke.isScalarType)(e))return Zn.SCALAR;if((0,ke.isObjectType)(e))return Zn.OBJECT;if((0,ke.isInterfaceType)(e))return Zn.INTERFACE;if((0,ke.isUnionType)(e))return Zn.UNION;if((0,ke.isEnumType)(e))return Zn.ENUM;if((0,ke.isInputObjectType)(e))return Zn.INPUT_OBJECT;if((0,ke.isListType)(e))return Zn.LIST;if((0,ke.isNonNullType)(e))return Zn.NON_NULL;(0,i6.invariant)(!1,`Unexpected type: "${(0,r6.inspect)(e)}".`)}},name:{type:cn.GraphQLString,resolve:e=>"name"in e?e.name:void 0},description:{type:cn.GraphQLString,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:cn.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new ke.GraphQLList(new ke.GraphQLNonNull(CI)),args:{includeDeprecated:{type:cn.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,ke.isObjectType)(e)||(0,ke.isInterfaceType)(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},interfaces:{type:new ke.GraphQLList(new ke.GraphQLNonNull(Fi)),resolve(e){if((0,ke.isObjectType)(e)||(0,ke.isInterfaceType)(e))return e.getInterfaces()}},possibleTypes:{type:new ke.GraphQLList(new ke.GraphQLNonNull(Fi)),resolve(e,t,n,{schema:r}){if((0,ke.isAbstractType)(e))return r.getPossibleTypes(e)}},enumValues:{type:new ke.GraphQLList(new ke.GraphQLNonNull(BI)),args:{includeDeprecated:{type:cn.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,ke.isEnumType)(e)){let n=e.getValues();return t?n:n.filter(r=>r.deprecationReason==null)}}},inputFields:{type:new ke.GraphQLList(new ke.GraphQLNonNull(ef)),args:{includeDeprecated:{type:cn.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,ke.isInputObjectType)(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},ofType:{type:Fi,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:cn.GraphQLBoolean,resolve:e=>{if((0,ke.isInputObjectType)(e))return e.isOneOf}}})});Zt.__Type=Fi;var CI=new ke.GraphQLObjectType({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new ke.GraphQLNonNull(cn.GraphQLString),resolve:e=>e.name},description:{type:cn.GraphQLString,resolve:e=>e.description},args:{type:new ke.GraphQLNonNull(new ke.GraphQLList(new ke.GraphQLNonNull(ef))),args:{includeDeprecated:{type:cn.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}},type:{type:new ke.GraphQLNonNull(Fi),resolve:e=>e.type},isDeprecated:{type:new ke.GraphQLNonNull(cn.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:cn.GraphQLString,resolve:e=>e.deprecationReason}})});Zt.__Field=CI;var ef=new ke.GraphQLObjectType({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new ke.GraphQLNonNull(cn.GraphQLString),resolve:e=>e.name},description:{type:cn.GraphQLString,resolve:e=>e.description},type:{type:new ke.GraphQLNonNull(Fi),resolve:e=>e.type},defaultValue:{type:cn.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:n}=e,r=(0,s6.astFromValue)(n,t);return r?(0,a6.print)(r):null}},isDeprecated:{type:new ke.GraphQLNonNull(cn.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:cn.GraphQLString,resolve:e=>e.deprecationReason}})});Zt.__InputValue=ef;var BI=new ke.GraphQLObjectType({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new ke.GraphQLNonNull(cn.GraphQLString),resolve:e=>e.name},description:{type:cn.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new ke.GraphQLNonNull(cn.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:cn.GraphQLString,resolve:e=>e.deprecationReason}})});Zt.__EnumValue=BI;var Zn;Zt.TypeKind=Zn;(function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"})(Zn||(Zt.TypeKind=Zn={}));var UI=new ke.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:Zn.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:Zn.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:Zn.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:Zn.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:Zn.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:Zn.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:Zn.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:Zn.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});Zt.__TypeKind=UI;var o6={name:"__schema",type:new ke.GraphQLNonNull(FI),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};Zt.SchemaMetaFieldDef=o6;var u6={name:"__type",type:Fi,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new ke.GraphQLNonNull(cn.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};Zt.TypeMetaFieldDef=u6;var c6={name:"__typename",type:new ke.GraphQLNonNull(cn.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};Zt.TypeNameMetaFieldDef=c6;var vF=Object.freeze([FI,wI,LI,Fi,CI,ef,BI,UI]);Zt.introspectionTypes=vF;function l6(e){return vF.some(({name:t})=>e.name===t)}});var Xu=w(ul=>{"use strict";m();T();N();Object.defineProperty(ul,"__esModule",{value:!0});ul.GraphQLSchema=void 0;ul.assertSchema=N6;ul.isSchema=OF;var Zm=Br(),MI=Xt(),d6=Ud(),f6=Da(),p6=Fm(),kI=ba(),ra=wt(),SF=Qr(),m6=wi();function OF(e){return(0,d6.instanceOf)(e,eN)}function N6(e){if(!OF(e))throw new Error(`Expected ${(0,MI.inspect)(e)} to be a GraphQL schema.`);return e}var eN=class{constructor(t){var n,r;this.__validationErrors=t.assumeValid===!0?[]:void 0,(0,f6.isObjectLike)(t)||(0,Zm.devAssert)(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||(0,Zm.devAssert)(!1,`"types" must be Array if provided but got: ${(0,MI.inspect)(t.types)}.`),!t.directives||Array.isArray(t.directives)||(0,Zm.devAssert)(!1,`"directives" must be Array if provided but got: ${(0,MI.inspect)(t.directives)}.`),this.description=t.description,this.extensions=(0,p6.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(r=t.directives)!==null&&r!==void 0?r:SF.specifiedDirectives;let i=new Set(t.types);if(t.types!=null)for(let a of t.types)i.delete(a),ia(a,i);this._queryType!=null&&ia(this._queryType,i),this._mutationType!=null&&ia(this._mutationType,i),this._subscriptionType!=null&&ia(this._subscriptionType,i);for(let a of this._directives)if((0,SF.isDirective)(a))for(let o of a.args)ia(o.type,i);ia(m6.__Schema,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let a of i){if(a==null)continue;let o=a.name;if(o||(0,Zm.devAssert)(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[o]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${o}".`);if(this._typeMap[o]=a,(0,ra.isInterfaceType)(a)){for(let c of a.getInterfaces())if((0,ra.isInterfaceType)(c)){let l=this._implementationsMap[c.name];l===void 0&&(l=this._implementationsMap[c.name]={objects:[],interfaces:[]}),l.interfaces.push(a)}}else if((0,ra.isObjectType)(a)){for(let c of a.getInterfaces())if((0,ra.isInterfaceType)(c)){let l=this._implementationsMap[c.name];l===void 0&&(l=this._implementationsMap[c.name]={objects:[],interfaces:[]}),l.objects.push(a)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case kI.OperationTypeNode.QUERY:return this.getQueryType();case kI.OperationTypeNode.MUTATION:return this.getMutationType();case kI.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return(0,ra.isUnionType)(t)?t.getTypes():this.getImplementations(t).objects}getImplementations(t){let n=this._implementationsMap[t.name];return n!=null?n:{objects:[],interfaces:[]}}isSubType(t,n){let r=this._subTypeMap[t.name];if(r===void 0){if(r=Object.create(null),(0,ra.isUnionType)(t))for(let i of t.getTypes())r[i.name]=!0;else{let i=this.getImplementations(t);for(let a of i.objects)r[a.name]=!0;for(let a of i.interfaces)r[a.name]=!0}this._subTypeMap[t.name]=r}return r[n.name]!==void 0}getDirectives(){return this._directives}getDirective(t){return this.getDirectives().find(n=>n.name===t)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==void 0}}};ul.GraphQLSchema=eN;function ia(e,t){let n=(0,ra.getNamedType)(e);if(!t.has(n)){if(t.add(n),(0,ra.isUnionType)(n))for(let r of n.getTypes())ia(r,t);else if((0,ra.isObjectType)(n)||(0,ra.isInterfaceType)(n)){for(let r of n.getInterfaces())ia(r,t);for(let r of Object.values(n.getFields())){ia(r.type,t);for(let i of r.args)ia(i.type,t)}}else if((0,ra.isInputObjectType)(n))for(let r of Object.values(n.getFields()))ia(r.type,t)}return t}});var nf=w(tN=>{"use strict";m();T();N();Object.defineProperty(tN,"__esModule",{value:!0});tN.assertValidSchema=y6;tN.validateSchema=FF;var _r=Xt(),T6=ze(),xI=ba(),DF=Qd(),Fn=wt(),PF=Qr(),E6=wi(),h6=Xu();function FF(e){if((0,h6.assertSchema)(e),e.__validationErrors)return e.__validationErrors;let t=new VI(e);I6(t),g6(t),_6(t);let n=t.getErrors();return e.__validationErrors=n,n}function y6(e){let t=FF(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` +In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:()=>({name:{type:new ke.GraphQLNonNull(cn.GraphQLString),resolve:e=>e.name},description:{type:cn.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new ke.GraphQLNonNull(cn.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new ke.GraphQLNonNull(new ke.GraphQLList(new ke.GraphQLNonNull(LI))),resolve:e=>e.locations},args:{type:new ke.GraphQLNonNull(new ke.GraphQLList(new ke.GraphQLNonNull(ef))),args:{includeDeprecated:{type:cn.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}}})});Zt.__Directive=wI;var LI=new ke.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:Xn.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:Xn.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:Xn.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:Xn.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:Xn.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:Xn.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:Xn.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:Xn.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:Xn.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:Xn.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:Xn.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:Xn.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:Xn.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:Xn.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:Xn.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:Xn.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:Xn.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:Xn.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:Xn.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});Zt.__DirectiveLocation=LI;var Pi=new ke.GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new ke.GraphQLNonNull(UI),resolve(e){if((0,ke.isScalarType)(e))return Zn.SCALAR;if((0,ke.isObjectType)(e))return Zn.OBJECT;if((0,ke.isInterfaceType)(e))return Zn.INTERFACE;if((0,ke.isUnionType)(e))return Zn.UNION;if((0,ke.isEnumType)(e))return Zn.ENUM;if((0,ke.isInputObjectType)(e))return Zn.INPUT_OBJECT;if((0,ke.isListType)(e))return Zn.LIST;if((0,ke.isNonNullType)(e))return Zn.NON_NULL;(0,i6.invariant)(!1,`Unexpected type: "${(0,r6.inspect)(e)}".`)}},name:{type:cn.GraphQLString,resolve:e=>"name"in e?e.name:void 0},description:{type:cn.GraphQLString,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:cn.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new ke.GraphQLList(new ke.GraphQLNonNull(CI)),args:{includeDeprecated:{type:cn.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,ke.isObjectType)(e)||(0,ke.isInterfaceType)(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},interfaces:{type:new ke.GraphQLList(new ke.GraphQLNonNull(Pi)),resolve(e){if((0,ke.isObjectType)(e)||(0,ke.isInterfaceType)(e))return e.getInterfaces()}},possibleTypes:{type:new ke.GraphQLList(new ke.GraphQLNonNull(Pi)),resolve(e,t,n,{schema:r}){if((0,ke.isAbstractType)(e))return r.getPossibleTypes(e)}},enumValues:{type:new ke.GraphQLList(new ke.GraphQLNonNull(BI)),args:{includeDeprecated:{type:cn.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,ke.isEnumType)(e)){let n=e.getValues();return t?n:n.filter(r=>r.deprecationReason==null)}}},inputFields:{type:new ke.GraphQLList(new ke.GraphQLNonNull(ef)),args:{includeDeprecated:{type:cn.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,ke.isInputObjectType)(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},ofType:{type:Pi,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:cn.GraphQLBoolean,resolve:e=>{if((0,ke.isInputObjectType)(e))return e.isOneOf}}})});Zt.__Type=Pi;var CI=new ke.GraphQLObjectType({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new ke.GraphQLNonNull(cn.GraphQLString),resolve:e=>e.name},description:{type:cn.GraphQLString,resolve:e=>e.description},args:{type:new ke.GraphQLNonNull(new ke.GraphQLList(new ke.GraphQLNonNull(ef))),args:{includeDeprecated:{type:cn.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}},type:{type:new ke.GraphQLNonNull(Pi),resolve:e=>e.type},isDeprecated:{type:new ke.GraphQLNonNull(cn.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:cn.GraphQLString,resolve:e=>e.deprecationReason}})});Zt.__Field=CI;var ef=new ke.GraphQLObjectType({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new ke.GraphQLNonNull(cn.GraphQLString),resolve:e=>e.name},description:{type:cn.GraphQLString,resolve:e=>e.description},type:{type:new ke.GraphQLNonNull(Pi),resolve:e=>e.type},defaultValue:{type:cn.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:n}=e,r=(0,s6.astFromValue)(n,t);return r?(0,a6.print)(r):null}},isDeprecated:{type:new ke.GraphQLNonNull(cn.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:cn.GraphQLString,resolve:e=>e.deprecationReason}})});Zt.__InputValue=ef;var BI=new ke.GraphQLObjectType({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new ke.GraphQLNonNull(cn.GraphQLString),resolve:e=>e.name},description:{type:cn.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new ke.GraphQLNonNull(cn.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:cn.GraphQLString,resolve:e=>e.deprecationReason}})});Zt.__EnumValue=BI;var Zn;Zt.TypeKind=Zn;(function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"})(Zn||(Zt.TypeKind=Zn={}));var UI=new ke.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:Zn.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:Zn.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:Zn.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:Zn.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:Zn.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:Zn.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:Zn.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:Zn.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});Zt.__TypeKind=UI;var o6={name:"__schema",type:new ke.GraphQLNonNull(FI),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};Zt.SchemaMetaFieldDef=o6;var u6={name:"__type",type:Pi,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new ke.GraphQLNonNull(cn.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};Zt.TypeMetaFieldDef=u6;var c6={name:"__typename",type:new ke.GraphQLNonNull(cn.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};Zt.TypeNameMetaFieldDef=c6;var vF=Object.freeze([FI,wI,LI,Pi,CI,ef,BI,UI]);Zt.introspectionTypes=vF;function l6(e){return vF.some(({name:t})=>e.name===t)}});var Xu=w(ul=>{"use strict";m();T();N();Object.defineProperty(ul,"__esModule",{value:!0});ul.GraphQLSchema=void 0;ul.assertSchema=N6;ul.isSchema=OF;var Zm=Br(),MI=Xt(),d6=Ud(),f6=Da(),p6=Fm(),kI=ba(),ra=wt(),SF=Qr(),m6=Fi();function OF(e){return(0,d6.instanceOf)(e,eN)}function N6(e){if(!OF(e))throw new Error(`Expected ${(0,MI.inspect)(e)} to be a GraphQL schema.`);return e}var eN=class{constructor(t){var n,r;this.__validationErrors=t.assumeValid===!0?[]:void 0,(0,f6.isObjectLike)(t)||(0,Zm.devAssert)(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||(0,Zm.devAssert)(!1,`"types" must be Array if provided but got: ${(0,MI.inspect)(t.types)}.`),!t.directives||Array.isArray(t.directives)||(0,Zm.devAssert)(!1,`"directives" must be Array if provided but got: ${(0,MI.inspect)(t.directives)}.`),this.description=t.description,this.extensions=(0,p6.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(r=t.directives)!==null&&r!==void 0?r:SF.specifiedDirectives;let i=new Set(t.types);if(t.types!=null)for(let a of t.types)i.delete(a),ia(a,i);this._queryType!=null&&ia(this._queryType,i),this._mutationType!=null&&ia(this._mutationType,i),this._subscriptionType!=null&&ia(this._subscriptionType,i);for(let a of this._directives)if((0,SF.isDirective)(a))for(let o of a.args)ia(o.type,i);ia(m6.__Schema,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let a of i){if(a==null)continue;let o=a.name;if(o||(0,Zm.devAssert)(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[o]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${o}".`);if(this._typeMap[o]=a,(0,ra.isInterfaceType)(a)){for(let c of a.getInterfaces())if((0,ra.isInterfaceType)(c)){let l=this._implementationsMap[c.name];l===void 0&&(l=this._implementationsMap[c.name]={objects:[],interfaces:[]}),l.interfaces.push(a)}}else if((0,ra.isObjectType)(a)){for(let c of a.getInterfaces())if((0,ra.isInterfaceType)(c)){let l=this._implementationsMap[c.name];l===void 0&&(l=this._implementationsMap[c.name]={objects:[],interfaces:[]}),l.objects.push(a)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case kI.OperationTypeNode.QUERY:return this.getQueryType();case kI.OperationTypeNode.MUTATION:return this.getMutationType();case kI.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return(0,ra.isUnionType)(t)?t.getTypes():this.getImplementations(t).objects}getImplementations(t){let n=this._implementationsMap[t.name];return n!=null?n:{objects:[],interfaces:[]}}isSubType(t,n){let r=this._subTypeMap[t.name];if(r===void 0){if(r=Object.create(null),(0,ra.isUnionType)(t))for(let i of t.getTypes())r[i.name]=!0;else{let i=this.getImplementations(t);for(let a of i.objects)r[a.name]=!0;for(let a of i.interfaces)r[a.name]=!0}this._subTypeMap[t.name]=r}return r[n.name]!==void 0}getDirectives(){return this._directives}getDirective(t){return this.getDirectives().find(n=>n.name===t)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==void 0}}};ul.GraphQLSchema=eN;function ia(e,t){let n=(0,ra.getNamedType)(e);if(!t.has(n)){if(t.add(n),(0,ra.isUnionType)(n))for(let r of n.getTypes())ia(r,t);else if((0,ra.isObjectType)(n)||(0,ra.isInterfaceType)(n)){for(let r of n.getInterfaces())ia(r,t);for(let r of Object.values(n.getFields())){ia(r.type,t);for(let i of r.args)ia(i.type,t)}}else if((0,ra.isInputObjectType)(n))for(let r of Object.values(n.getFields()))ia(r.type,t)}return t}});var nf=w(tN=>{"use strict";m();T();N();Object.defineProperty(tN,"__esModule",{value:!0});tN.assertValidSchema=y6;tN.validateSchema=FF;var _r=Xt(),T6=ze(),xI=ba(),DF=Qd(),Fn=wt(),PF=Qr(),E6=Fi(),h6=Xu();function FF(e){if((0,h6.assertSchema)(e),e.__validationErrors)return e.__validationErrors;let t=new VI(e);I6(t),g6(t),_6(t);let n=t.getErrors();return e.__validationErrors=n,n}function y6(e){let t=FF(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` -`))}var VI=class{constructor(t){this._errors=[],this.schema=t}reportError(t,n){let r=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new T6.GraphQLError(t,{nodes:r}))}getErrors(){return this._errors}};function I6(e){let t=e.schema,n=t.getQueryType();if(!n)e.reportError("Query root type must be provided.",t.astNode);else if(!(0,Fn.isObjectType)(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${(0,_r.inspect)(n)}.`,(r=qI(t,xI.OperationTypeNode.QUERY))!==null&&r!==void 0?r:n.astNode)}let i=t.getMutationType();if(i&&!(0,Fn.isObjectType)(i)){var a;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,_r.inspect)(i)}.`,(a=qI(t,xI.OperationTypeNode.MUTATION))!==null&&a!==void 0?a:i.astNode)}let o=t.getSubscriptionType();if(o&&!(0,Fn.isObjectType)(o)){var c;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,_r.inspect)(o)}.`,(c=qI(t,xI.OperationTypeNode.SUBSCRIPTION))!==null&&c!==void 0?c:o.astNode)}}function qI(e,t){var n;return(n=[e.astNode,...e.extensionASTNodes].flatMap(r=>{var i;return(i=r==null?void 0:r.operationTypes)!==null&&i!==void 0?i:[]}).find(r=>r.operation===t))===null||n===void 0?void 0:n.type}function g6(e){for(let n of e.schema.getDirectives()){if(!(0,PF.isDirective)(n)){e.reportError(`Expected directive but got: ${(0,_r.inspect)(n)}.`,n==null?void 0:n.astNode);continue}Zu(e,n);for(let r of n.args)if(Zu(e,r),(0,Fn.isInputType)(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${(0,_r.inspect)(r.type)}.`,r.astNode),(0,Fn.isRequiredArgument)(r)&&r.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[jI(r.astNode),(t=r.astNode)===null||t===void 0?void 0:t.type])}}}function Zu(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function _6(e){let t=R6(e),n=e.schema.getTypeMap();for(let r of Object.values(n)){if(!(0,Fn.isNamedType)(r)){e.reportError(`Expected GraphQL named type but got: ${(0,_r.inspect)(r)}.`,r.astNode);continue}(0,E6.isIntrospectionType)(r)||Zu(e,r),(0,Fn.isObjectType)(r)||(0,Fn.isInterfaceType)(r)?(bF(e,r),AF(e,r)):(0,Fn.isUnionType)(r)?O6(e,r):(0,Fn.isEnumType)(r)?D6(e,r):(0,Fn.isInputObjectType)(r)&&(b6(e,r),t(r))}}function bF(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let o of n){if(Zu(e,o),!(0,Fn.isOutputType)(o.type)){var r;e.reportError(`The type of ${t.name}.${o.name} must be Output Type but got: ${(0,_r.inspect)(o.type)}.`,(r=o.astNode)===null||r===void 0?void 0:r.type)}for(let c of o.args){let l=c.name;if(Zu(e,c),!(0,Fn.isInputType)(c.type)){var i;e.reportError(`The type of ${t.name}.${o.name}(${l}:) must be Input Type but got: ${(0,_r.inspect)(c.type)}.`,(i=c.astNode)===null||i===void 0?void 0:i.type)}if((0,Fn.isRequiredArgument)(c)&&c.deprecationReason!=null){var a;e.reportError(`Required argument ${t.name}.${o.name}(${l}:) cannot be deprecated.`,[jI(c.astNode),(a=c.astNode)===null||a===void 0?void 0:a.type])}}}}function AF(e,t){let n=Object.create(null);for(let r of t.getInterfaces()){if(!(0,Fn.isInterfaceType)(r)){e.reportError(`Type ${(0,_r.inspect)(t)} must only implement Interface types, it cannot implement ${(0,_r.inspect)(r)}.`,tf(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,tf(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,tf(t,r));continue}n[r.name]=!0,S6(e,t,r),v6(e,t,r)}}function v6(e,t,n){let r=t.getFields();for(let l of Object.values(n.getFields())){let d=l.name,p=r[d];if(!p){e.reportError(`Interface field ${n.name}.${d} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!(0,DF.isTypeSubTypeOf)(e.schema,p.type,l.type)){var i,a;e.reportError(`Interface field ${n.name}.${d} expects type ${(0,_r.inspect)(l.type)} but ${t.name}.${d} is type ${(0,_r.inspect)(p.type)}.`,[(i=l.astNode)===null||i===void 0?void 0:i.type,(a=p.astNode)===null||a===void 0?void 0:a.type])}for(let y of l.args){let I=y.name,v=p.args.find(F=>F.name===I);if(!v){e.reportError(`Interface field argument ${n.name}.${d}(${I}:) expected but ${t.name}.${d} does not provide it.`,[y.astNode,p.astNode]);continue}if(!(0,DF.isEqualType)(y.type,v.type)){var o,c;e.reportError(`Interface field argument ${n.name}.${d}(${I}:) expects type ${(0,_r.inspect)(y.type)} but ${t.name}.${d}(${I}:) is type ${(0,_r.inspect)(v.type)}.`,[(o=y.astNode)===null||o===void 0?void 0:o.type,(c=v.astNode)===null||c===void 0?void 0:c.type])}}for(let y of p.args){let I=y.name;!l.args.find(F=>F.name===I)&&(0,Fn.isRequiredArgument)(y)&&e.reportError(`Object field ${t.name}.${d} includes required argument ${I} that is missing from the Interface field ${n.name}.${d}.`,[y.astNode,l.astNode])}}}function S6(e,t,n){let r=t.getInterfaces();for(let i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...tf(n,i),...tf(t,n)])}function O6(e,t){let n=t.getTypes();n.length===0&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);let r=Object.create(null);for(let i of n){if(r[i.name]){e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,RF(t,i.name));continue}r[i.name]=!0,(0,Fn.isObjectType)(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,_r.inspect)(i)}.`,RF(t,String(i)))}}function D6(e,t){let n=t.getValues();n.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(let r of n)Zu(e,r)}function b6(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let a of n){if(Zu(e,a),!(0,Fn.isInputType)(a.type)){var r;e.reportError(`The type of ${t.name}.${a.name} must be Input Type but got: ${(0,_r.inspect)(a.type)}.`,(r=a.astNode)===null||r===void 0?void 0:r.type)}if((0,Fn.isRequiredInputField)(a)&&a.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${a.name} cannot be deprecated.`,[jI(a.astNode),(i=a.astNode)===null||i===void 0?void 0:i.type])}t.isOneOf&&A6(t,a,e)}}function A6(e,t,n){if((0,Fn.isNonNullType)(t.type)){var r;n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(r=t.astNode)===null||r===void 0?void 0:r.type)}t.defaultValue!==void 0&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function R6(e){let t=Object.create(null),n=[],r=Object.create(null);return i;function i(a){if(t[a.name])return;t[a.name]=!0,r[a.name]=n.length;let o=Object.values(a.getFields());for(let c of o)if((0,Fn.isNonNullType)(c.type)&&(0,Fn.isInputObjectType)(c.type.ofType)){let l=c.type.ofType,d=r[l.name];if(n.push(c),d===void 0)i(l);else{let p=n.slice(d),y=p.map(I=>I.name).join(".");e.reportError(`Cannot reference Input Object "${l.name}" within itself through a series of non-null fields: "${y}".`,p.map(I=>I.astNode))}n.pop()}r[a.name]=void 0}}function tf(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(a=>{var o;return(o=a.interfaces)!==null&&o!==void 0?o:[]}).filter(a=>a.name.value===t.name)}function RF(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(a=>{var o;return(o=a.types)!==null&&o!==void 0?o:[]}).filter(a=>a.name.value===t)}function jI(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(n=>n.name.value===PF.GraphQLDeprecatedDirective.name)}});var Fa=w($I=>{"use strict";m();T();N();Object.defineProperty($I,"__esModule",{value:!0});$I.typeFromAST=GI;var KI=Ft(),wF=wt();function GI(e,t){switch(t.kind){case KI.Kind.LIST_TYPE:{let n=GI(e,t.type);return n&&new wF.GraphQLList(n)}case KI.Kind.NON_NULL_TYPE:{let n=GI(e,t.type);return n&&new wF.GraphQLNonNull(n)}case KI.Kind.NAMED_TYPE:return e.getType(t.name.value)}}});var nN=w(rf=>{"use strict";m();T();N();Object.defineProperty(rf,"__esModule",{value:!0});rf.TypeInfo=void 0;rf.visitWithTypeInfo=w6;var P6=ba(),wn=Ft(),LF=Qu(),Ln=wt(),cl=wi(),CF=Fa(),QI=class{constructor(t,n,r){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=r!=null?r:F6,n&&((0,Ln.isInputType)(n)&&this._inputTypeStack.push(n),(0,Ln.isCompositeType)(n)&&this._parentTypeStack.push(n),(0,Ln.isOutputType)(n)&&this._typeStack.push(n))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(t){let n=this._schema;switch(t.kind){case wn.Kind.SELECTION_SET:{let i=(0,Ln.getNamedType)(this.getType());this._parentTypeStack.push((0,Ln.isCompositeType)(i)?i:void 0);break}case wn.Kind.FIELD:{let i=this.getParentType(),a,o;i&&(a=this._getFieldDef(n,i,t),a&&(o=a.type)),this._fieldDefStack.push(a),this._typeStack.push((0,Ln.isOutputType)(o)?o:void 0);break}case wn.Kind.DIRECTIVE:this._directive=n.getDirective(t.name.value);break;case wn.Kind.OPERATION_DEFINITION:{let i=n.getRootType(t.operation);this._typeStack.push((0,Ln.isObjectType)(i)?i:void 0);break}case wn.Kind.INLINE_FRAGMENT:case wn.Kind.FRAGMENT_DEFINITION:{let i=t.typeCondition,a=i?(0,CF.typeFromAST)(n,i):(0,Ln.getNamedType)(this.getType());this._typeStack.push((0,Ln.isOutputType)(a)?a:void 0);break}case wn.Kind.VARIABLE_DEFINITION:{let i=(0,CF.typeFromAST)(n,t.type);this._inputTypeStack.push((0,Ln.isInputType)(i)?i:void 0);break}case wn.Kind.ARGUMENT:{var r;let i,a,o=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();o&&(i=o.args.find(c=>c.name===t.name.value),i&&(a=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push((0,Ln.isInputType)(a)?a:void 0);break}case wn.Kind.LIST:{let i=(0,Ln.getNullableType)(this.getInputType()),a=(0,Ln.isListType)(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,Ln.isInputType)(a)?a:void 0);break}case wn.Kind.OBJECT_FIELD:{let i=(0,Ln.getNamedType)(this.getInputType()),a,o;(0,Ln.isInputObjectType)(i)&&(o=i.getFields()[t.name.value],o&&(a=o.type)),this._defaultValueStack.push(o?o.defaultValue:void 0),this._inputTypeStack.push((0,Ln.isInputType)(a)?a:void 0);break}case wn.Kind.ENUM:{let i=(0,Ln.getNamedType)(this.getInputType()),a;(0,Ln.isEnumType)(i)&&(a=i.getValue(t.value)),this._enumValue=a;break}default:}}leave(t){switch(t.kind){case wn.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case wn.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case wn.Kind.DIRECTIVE:this._directive=null;break;case wn.Kind.OPERATION_DEFINITION:case wn.Kind.INLINE_FRAGMENT:case wn.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case wn.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case wn.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case wn.Kind.LIST:case wn.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case wn.Kind.ENUM:this._enumValue=null;break;default:}}};rf.TypeInfo=QI;function F6(e,t,n){let r=n.name.value;if(r===cl.SchemaMetaFieldDef.name&&e.getQueryType()===t)return cl.SchemaMetaFieldDef;if(r===cl.TypeMetaFieldDef.name&&e.getQueryType()===t)return cl.TypeMetaFieldDef;if(r===cl.TypeNameMetaFieldDef.name&&(0,Ln.isCompositeType)(t))return cl.TypeNameMetaFieldDef;if((0,Ln.isObjectType)(t)||(0,Ln.isInterfaceType)(t))return t.getFields()[r]}function w6(e,t){return{enter(...n){let r=n[0];e.enter(r);let i=(0,LF.getEnterLeaveForKind)(t,r.kind).enter;if(i){let a=i.apply(t,n);return a!==void 0&&(e.leave(r),(0,P6.isNode)(a)&&e.enter(a)),a}},leave(...n){let r=n[0],i=(0,LF.getEnterLeaveForKind)(t,r.kind).leave,a;return i&&(a=i.apply(t,n)),e.leave(r),a}}}});var ec=w(Li=>{"use strict";m();T();N();Object.defineProperty(Li,"__esModule",{value:!0});Li.isConstValueNode=YI;Li.isDefinitionNode=L6;Li.isExecutableDefinitionNode=BF;Li.isSelectionNode=C6;Li.isTypeDefinitionNode=MF;Li.isTypeExtensionNode=qF;Li.isTypeNode=B6;Li.isTypeSystemDefinitionNode=kF;Li.isTypeSystemExtensionNode=xF;Li.isValueNode=UF;var Lt=Ft();function L6(e){return BF(e)||kF(e)||xF(e)}function BF(e){return e.kind===Lt.Kind.OPERATION_DEFINITION||e.kind===Lt.Kind.FRAGMENT_DEFINITION}function C6(e){return e.kind===Lt.Kind.FIELD||e.kind===Lt.Kind.FRAGMENT_SPREAD||e.kind===Lt.Kind.INLINE_FRAGMENT}function UF(e){return e.kind===Lt.Kind.VARIABLE||e.kind===Lt.Kind.INT||e.kind===Lt.Kind.FLOAT||e.kind===Lt.Kind.STRING||e.kind===Lt.Kind.BOOLEAN||e.kind===Lt.Kind.NULL||e.kind===Lt.Kind.ENUM||e.kind===Lt.Kind.LIST||e.kind===Lt.Kind.OBJECT}function YI(e){return UF(e)&&(e.kind===Lt.Kind.LIST?e.values.some(YI):e.kind===Lt.Kind.OBJECT?e.fields.some(t=>YI(t.value)):e.kind!==Lt.Kind.VARIABLE)}function B6(e){return e.kind===Lt.Kind.NAMED_TYPE||e.kind===Lt.Kind.LIST_TYPE||e.kind===Lt.Kind.NON_NULL_TYPE}function kF(e){return e.kind===Lt.Kind.SCHEMA_DEFINITION||MF(e)||e.kind===Lt.Kind.DIRECTIVE_DEFINITION}function MF(e){return e.kind===Lt.Kind.SCALAR_TYPE_DEFINITION||e.kind===Lt.Kind.OBJECT_TYPE_DEFINITION||e.kind===Lt.Kind.INTERFACE_TYPE_DEFINITION||e.kind===Lt.Kind.UNION_TYPE_DEFINITION||e.kind===Lt.Kind.ENUM_TYPE_DEFINITION||e.kind===Lt.Kind.INPUT_OBJECT_TYPE_DEFINITION}function xF(e){return e.kind===Lt.Kind.SCHEMA_EXTENSION||qF(e)}function qF(e){return e.kind===Lt.Kind.SCALAR_TYPE_EXTENSION||e.kind===Lt.Kind.OBJECT_TYPE_EXTENSION||e.kind===Lt.Kind.INTERFACE_TYPE_EXTENSION||e.kind===Lt.Kind.UNION_TYPE_EXTENSION||e.kind===Lt.Kind.ENUM_TYPE_EXTENSION||e.kind===Lt.Kind.INPUT_OBJECT_TYPE_EXTENSION}});var HI=w(JI=>{"use strict";m();T();N();Object.defineProperty(JI,"__esModule",{value:!0});JI.ExecutableDefinitionsRule=M6;var U6=ze(),VF=Ft(),k6=ec();function M6(e){return{Document(t){for(let n of t.definitions)if(!(0,k6.isExecutableDefinitionNode)(n)){let r=n.kind===VF.Kind.SCHEMA_DEFINITION||n.kind===VF.Kind.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new U6.GraphQLError(`The ${r} definition is not executable.`,{nodes:n}))}return!1}}}});var WI=w(zI=>{"use strict";m();T();N();Object.defineProperty(zI,"__esModule",{value:!0});zI.FieldsOnCorrectTypeRule=j6;var jF=eu(),x6=qd(),q6=nu(),V6=ze(),af=wt();function j6(e){return{Field(t){let n=e.getParentType();if(n&&!e.getFieldDef()){let i=e.getSchema(),a=t.name.value,o=(0,jF.didYouMean)("to use an inline fragment on",K6(i,n,a));o===""&&(o=(0,jF.didYouMean)(G6(n,a))),e.reportError(new V6.GraphQLError(`Cannot query field "${a}" on type "${n.name}".`+o,{nodes:t}))}}}}function K6(e,t,n){if(!(0,af.isAbstractType)(t))return[];let r=new Set,i=Object.create(null);for(let o of e.getPossibleTypes(t))if(o.getFields()[n]){r.add(o),i[o.name]=1;for(let c of o.getInterfaces()){var a;c.getFields()[n]&&(r.add(c),i[c.name]=((a=i[c.name])!==null&&a!==void 0?a:0)+1)}}return[...r].sort((o,c)=>{let l=i[c.name]-i[o.name];return l!==0?l:(0,af.isInterfaceType)(o)&&e.isSubType(o,c)?-1:(0,af.isInterfaceType)(c)&&e.isSubType(c,o)?1:(0,x6.naturalCompare)(o.name,c.name)}).map(o=>o.name)}function G6(e,t){if((0,af.isObjectType)(e)||(0,af.isInterfaceType)(e)){let n=Object.keys(e.getFields());return(0,q6.suggestionList)(t,n)}return[]}});var ZI=w(XI=>{"use strict";m();T();N();Object.defineProperty(XI,"__esModule",{value:!0});XI.FragmentsOnCompositeTypesRule=$6;var KF=ze(),GF=li(),$F=wt(),QF=Fa();function $6(e){return{InlineFragment(t){let n=t.typeCondition;if(n){let r=(0,QF.typeFromAST)(e.getSchema(),n);if(r&&!(0,$F.isCompositeType)(r)){let i=(0,GF.print)(n);e.reportError(new KF.GraphQLError(`Fragment cannot condition on non composite type "${i}".`,{nodes:n}))}}},FragmentDefinition(t){let n=(0,QF.typeFromAST)(e.getSchema(),t.typeCondition);if(n&&!(0,$F.isCompositeType)(n)){let r=(0,GF.print)(t.typeCondition);e.reportError(new KF.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}});var eg=w(rN=>{"use strict";m();T();N();Object.defineProperty(rN,"__esModule",{value:!0});rN.KnownArgumentNamesOnDirectivesRule=zF;rN.KnownArgumentNamesRule=J6;var YF=eu(),JF=nu(),HF=ze(),Q6=Ft(),Y6=Qr();function J6(e){return Q(x({},zF(e)),{Argument(t){let n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){let a=t.name.value,o=r.args.map(l=>l.name),c=(0,JF.suggestionList)(a,o);e.reportError(new HF.GraphQLError(`Unknown argument "${a}" on field "${i.name}.${r.name}".`+(0,YF.didYouMean)(c),{nodes:t}))}}})}function zF(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Y6.specifiedDirectives;for(let o of r)t[o.name]=o.args.map(c=>c.name);let i=e.getDocument().definitions;for(let o of i)if(o.kind===Q6.Kind.DIRECTIVE_DEFINITION){var a;let c=(a=o.arguments)!==null&&a!==void 0?a:[];t[o.name.value]=c.map(l=>l.name.value)}return{Directive(o){let c=o.name.value,l=t[c];if(o.arguments&&l)for(let d of o.arguments){let p=d.name.value;if(!l.includes(p)){let y=(0,JF.suggestionList)(p,l);e.reportError(new HF.GraphQLError(`Unknown argument "${p}" on directive "@${c}".`+(0,YF.didYouMean)(y),{nodes:d}))}}return!1}}}});var ig=w(rg=>{"use strict";m();T();N();Object.defineProperty(rg,"__esModule",{value:!0});rg.KnownDirectivesRule=W6;var H6=Xt(),tg=Ir(),WF=ze(),ng=ba(),er=nl(),hn=Ft(),z6=Qr();function W6(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():z6.specifiedDirectives;for(let a of r)t[a.name]=a.locations;let i=e.getDocument().definitions;for(let a of i)a.kind===hn.Kind.DIRECTIVE_DEFINITION&&(t[a.name.value]=a.locations.map(o=>o.value));return{Directive(a,o,c,l,d){let p=a.name.value,y=t[p];if(!y){e.reportError(new WF.GraphQLError(`Unknown directive "@${p}".`,{nodes:a}));return}let I=X6(d);I&&!y.includes(I)&&e.reportError(new WF.GraphQLError(`Directive "@${p}" may not be used on ${I}.`,{nodes:a}))}}}function X6(e){let t=e[e.length-1];switch("kind"in t||(0,tg.invariant)(!1),t.kind){case hn.Kind.OPERATION_DEFINITION:return Z6(t.operation);case hn.Kind.FIELD:return er.DirectiveLocation.FIELD;case hn.Kind.FRAGMENT_SPREAD:return er.DirectiveLocation.FRAGMENT_SPREAD;case hn.Kind.INLINE_FRAGMENT:return er.DirectiveLocation.INLINE_FRAGMENT;case hn.Kind.FRAGMENT_DEFINITION:return er.DirectiveLocation.FRAGMENT_DEFINITION;case hn.Kind.VARIABLE_DEFINITION:return er.DirectiveLocation.VARIABLE_DEFINITION;case hn.Kind.SCHEMA_DEFINITION:case hn.Kind.SCHEMA_EXTENSION:return er.DirectiveLocation.SCHEMA;case hn.Kind.SCALAR_TYPE_DEFINITION:case hn.Kind.SCALAR_TYPE_EXTENSION:return er.DirectiveLocation.SCALAR;case hn.Kind.OBJECT_TYPE_DEFINITION:case hn.Kind.OBJECT_TYPE_EXTENSION:return er.DirectiveLocation.OBJECT;case hn.Kind.FIELD_DEFINITION:return er.DirectiveLocation.FIELD_DEFINITION;case hn.Kind.INTERFACE_TYPE_DEFINITION:case hn.Kind.INTERFACE_TYPE_EXTENSION:return er.DirectiveLocation.INTERFACE;case hn.Kind.UNION_TYPE_DEFINITION:case hn.Kind.UNION_TYPE_EXTENSION:return er.DirectiveLocation.UNION;case hn.Kind.ENUM_TYPE_DEFINITION:case hn.Kind.ENUM_TYPE_EXTENSION:return er.DirectiveLocation.ENUM;case hn.Kind.ENUM_VALUE_DEFINITION:return er.DirectiveLocation.ENUM_VALUE;case hn.Kind.INPUT_OBJECT_TYPE_DEFINITION:case hn.Kind.INPUT_OBJECT_TYPE_EXTENSION:return er.DirectiveLocation.INPUT_OBJECT;case hn.Kind.INPUT_VALUE_DEFINITION:{let n=e[e.length-3];return"kind"in n||(0,tg.invariant)(!1),n.kind===hn.Kind.INPUT_OBJECT_TYPE_DEFINITION?er.DirectiveLocation.INPUT_FIELD_DEFINITION:er.DirectiveLocation.ARGUMENT_DEFINITION}default:(0,tg.invariant)(!1,"Unexpected kind: "+(0,H6.inspect)(t.kind))}}function Z6(e){switch(e){case ng.OperationTypeNode.QUERY:return er.DirectiveLocation.QUERY;case ng.OperationTypeNode.MUTATION:return er.DirectiveLocation.MUTATION;case ng.OperationTypeNode.SUBSCRIPTION:return er.DirectiveLocation.SUBSCRIPTION}}});var sg=w(ag=>{"use strict";m();T();N();Object.defineProperty(ag,"__esModule",{value:!0});ag.KnownFragmentNamesRule=tz;var ez=ze();function tz(e){return{FragmentSpread(t){let n=t.name.value;e.getFragment(n)||e.reportError(new ez.GraphQLError(`Unknown fragment "${n}".`,{nodes:t.name}))}}}});var cg=w(ug=>{"use strict";m();T();N();Object.defineProperty(ug,"__esModule",{value:!0});ug.KnownTypeNamesRule=oz;var nz=eu(),rz=nu(),iz=ze(),og=ec(),az=wi(),sz=Pa();function oz(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(let a of e.getDocument().definitions)(0,og.isTypeDefinitionNode)(a)&&(r[a.name.value]=!0);let i=[...Object.keys(n),...Object.keys(r)];return{NamedType(a,o,c,l,d){let p=a.name.value;if(!n[p]&&!r[p]){var y;let I=(y=d[2])!==null&&y!==void 0?y:c,v=I!=null&&uz(I);if(v&&XF.includes(p))return;let F=(0,rz.suggestionList)(p,v?XF.concat(i):i);e.reportError(new iz.GraphQLError(`Unknown type "${p}".`+(0,nz.didYouMean)(F),{nodes:a}))}}}}var XF=[...sz.specifiedScalarTypes,...az.introspectionTypes].map(e=>e.name);function uz(e){return"kind"in e&&((0,og.isTypeSystemDefinitionNode)(e)||(0,og.isTypeSystemExtensionNode)(e))}});var dg=w(lg=>{"use strict";m();T();N();Object.defineProperty(lg,"__esModule",{value:!0});lg.LoneAnonymousOperationRule=dz;var cz=ze(),lz=Ft();function dz(e){let t=0;return{Document(n){t=n.definitions.filter(r=>r.kind===lz.Kind.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new cz.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:n}))}}}});var pg=w(fg=>{"use strict";m();T();N();Object.defineProperty(fg,"__esModule",{value:!0});fg.LoneSchemaDefinitionRule=fz;var ZF=ze();function fz(e){var t,n,r;let i=e.getSchema(),a=(t=(n=(r=i==null?void 0:i.astNode)!==null&&r!==void 0?r:i==null?void 0:i.getQueryType())!==null&&n!==void 0?n:i==null?void 0:i.getMutationType())!==null&&t!==void 0?t:i==null?void 0:i.getSubscriptionType(),o=0;return{SchemaDefinition(c){if(a){e.reportError(new ZF.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:c}));return}o>0&&e.reportError(new ZF.GraphQLError("Must provide only one schema definition.",{nodes:c})),++o}}}});var Ng=w(mg=>{"use strict";m();T();N();Object.defineProperty(mg,"__esModule",{value:!0});mg.MaxIntrospectionDepthRule=Nz;var pz=ze(),ew=Ft(),mz=3;function Nz(e){function t(n,r=Object.create(null),i=0){if(n.kind===ew.Kind.FRAGMENT_SPREAD){let a=n.name.value;if(r[a]===!0)return!1;let o=e.getFragment(a);if(!o)return!1;try{return r[a]=!0,t(o,r,i)}finally{r[a]=void 0}}if(n.kind===ew.Kind.FIELD&&(n.name.value==="fields"||n.name.value==="interfaces"||n.name.value==="possibleTypes"||n.name.value==="inputFields")&&(i++,i>=mz))return!0;if("selectionSet"in n&&n.selectionSet){for(let a of n.selectionSet.selections)if(t(a,r,i))return!0}return!1}return{Field(n){if((n.name.value==="__schema"||n.name.value==="__type")&&t(n))return e.reportError(new pz.GraphQLError("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}});var Eg=w(Tg=>{"use strict";m();T();N();Object.defineProperty(Tg,"__esModule",{value:!0});Tg.NoFragmentCyclesRule=Ez;var Tz=ze();function Ez(e){let t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(a){return i(a),!1}};function i(a){if(t[a.name.value])return;let o=a.name.value;t[o]=!0;let c=e.getFragmentSpreads(a.selectionSet);if(c.length!==0){r[o]=n.length;for(let l of c){let d=l.name.value,p=r[d];if(n.push(l),p===void 0){let y=e.getFragment(d);y&&i(y)}else{let y=n.slice(p),I=y.slice(0,-1).map(v=>'"'+v.name.value+'"').join(", ");e.reportError(new Tz.GraphQLError(`Cannot spread fragment "${d}" within itself`+(I!==""?` via ${I}.`:"."),{nodes:y}))}n.pop()}r[o]=void 0}}}});var yg=w(hg=>{"use strict";m();T();N();Object.defineProperty(hg,"__esModule",{value:!0});hg.NoUndefinedVariablesRule=yz;var hz=ze();function yz(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){let r=e.getRecursiveVariableUsages(n);for(let{node:i}of r){let a=i.name.value;t[a]!==!0&&e.reportError(new hz.GraphQLError(n.name?`Variable "$${a}" is not defined by operation "${n.name.value}".`:`Variable "$${a}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(n){t[n.variable.name.value]=!0}}}});var gg=w(Ig=>{"use strict";m();T();N();Object.defineProperty(Ig,"__esModule",{value:!0});Ig.NoUnusedFragmentsRule=gz;var Iz=ze();function gz(e){let t=[],n=[];return{OperationDefinition(r){return t.push(r),!1},FragmentDefinition(r){return n.push(r),!1},Document:{leave(){let r=Object.create(null);for(let i of t)for(let a of e.getRecursivelyReferencedFragments(i))r[a.name.value]=!0;for(let i of n){let a=i.name.value;r[a]!==!0&&e.reportError(new Iz.GraphQLError(`Fragment "${a}" is never used.`,{nodes:i}))}}}}}});var vg=w(_g=>{"use strict";m();T();N();Object.defineProperty(_g,"__esModule",{value:!0});_g.NoUnusedVariablesRule=vz;var _z=ze();function vz(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){let r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(let{node:a}of i)r[a.name.value]=!0;for(let a of t){let o=a.variable.name.value;r[o]!==!0&&e.reportError(new _z.GraphQLError(n.name?`Variable "$${o}" is never used in operation "${n.name.value}".`:`Variable "$${o}" is never used.`,{nodes:a}))}}},VariableDefinition(n){t.push(n)}}}});var Dg=w(Og=>{"use strict";m();T();N();Object.defineProperty(Og,"__esModule",{value:!0});Og.sortValueNode=Sg;var Sz=qd(),hs=Ft();function Sg(e){switch(e.kind){case hs.Kind.OBJECT:return Q(x({},e),{fields:Oz(e.fields)});case hs.Kind.LIST:return Q(x({},e),{values:e.values.map(Sg)});case hs.Kind.INT:case hs.Kind.FLOAT:case hs.Kind.STRING:case hs.Kind.BOOLEAN:case hs.Kind.NULL:case hs.Kind.ENUM:case hs.Kind.VARIABLE:return e}}function Oz(e){return e.map(t=>Q(x({},t),{value:Sg(t.value)})).sort((t,n)=>(0,Sz.naturalCompare)(t.name.value,n.name.value))}});var Lg=w(wg=>{"use strict";m();T();N();Object.defineProperty(wg,"__esModule",{value:!0});wg.OverlappingFieldsCanBeMergedRule=Rz;var tw=Xt(),Dz=ze(),bg=Ft(),bz=li(),Yr=wt(),Az=Dg(),rw=Fa();function iw(e){return Array.isArray(e)?e.map(([t,n])=>`subfields "${t}" conflict because `+iw(n)).join(" and "):e}function Rz(e){let t=new Pg,n=new Map;return{SelectionSet(r){let i=Pz(e,n,t,e.getParentType(),r);for(let[[a,o],c,l]of i){let d=iw(o);e.reportError(new Dz.GraphQLError(`Fields "${a}" conflict because ${d}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:c.concat(l)}))}}}}function Pz(e,t,n,r,i){let a=[],[o,c]=sN(e,t,r,i);if(wz(e,a,t,n,o),c.length!==0)for(let l=0;l1)for(let c=0;c[a.value,o]));return n.every(a=>{let o=a.value,c=i.get(a.name.value);return c===void 0?!1:nw(o)===nw(c)})}function nw(e){return(0,bz.print)((0,Az.sortValueNode)(e))}function Ag(e,t){return(0,Yr.isListType)(e)?(0,Yr.isListType)(t)?Ag(e.ofType,t.ofType):!0:(0,Yr.isListType)(t)?!0:(0,Yr.isNonNullType)(e)?(0,Yr.isNonNullType)(t)?Ag(e.ofType,t.ofType):!0:(0,Yr.isNonNullType)(t)?!0:(0,Yr.isLeafType)(e)||(0,Yr.isLeafType)(t)?e!==t:!1}function sN(e,t,n,r){let i=t.get(r);if(i)return i;let a=Object.create(null),o=Object.create(null);sw(e,n,r,a,o);let c=[a,Object.keys(o)];return t.set(r,c),c}function Rg(e,t,n){let r=t.get(n.selectionSet);if(r)return r;let i=(0,rw.typeFromAST)(e.getSchema(),n.typeCondition);return sN(e,t,i,n.selectionSet)}function sw(e,t,n,r,i){for(let a of n.selections)switch(a.kind){case bg.Kind.FIELD:{let o=a.name.value,c;((0,Yr.isObjectType)(t)||(0,Yr.isInterfaceType)(t))&&(c=t.getFields()[o]);let l=a.alias?a.alias.value:o;r[l]||(r[l]=[]),r[l].push([t,a,c]);break}case bg.Kind.FRAGMENT_SPREAD:i[a.name.value]=!0;break;case bg.Kind.INLINE_FRAGMENT:{let o=a.typeCondition,c=o?(0,rw.typeFromAST)(e.getSchema(),o):t;sw(e,c,a.selectionSet,r,i);break}}}function Cz(e,t,n,r){if(e.length>0)return[[t,e.map(([i])=>i)],[n,...e.map(([,i])=>i).flat()],[r,...e.map(([,,i])=>i).flat()]]}var Pg=class{constructor(){this._data=new Map}has(t,n,r){var i;let[a,o]=t{"use strict";m();T();N();Object.defineProperty(Bg,"__esModule",{value:!0});Bg.PossibleFragmentSpreadsRule=Uz;var oN=Xt(),ow=ze(),Cg=wt(),uw=Qd(),Bz=Fa();function Uz(e){return{InlineFragment(t){let n=e.getType(),r=e.getParentType();if((0,Cg.isCompositeType)(n)&&(0,Cg.isCompositeType)(r)&&!(0,uw.doTypesOverlap)(e.getSchema(),n,r)){let i=(0,oN.inspect)(r),a=(0,oN.inspect)(n);e.reportError(new ow.GraphQLError(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${a}".`,{nodes:t}))}},FragmentSpread(t){let n=t.name.value,r=kz(e,n),i=e.getParentType();if(r&&i&&!(0,uw.doTypesOverlap)(e.getSchema(),r,i)){let a=(0,oN.inspect)(i),o=(0,oN.inspect)(r);e.reportError(new ow.GraphQLError(`Fragment "${n}" cannot be spread here as objects of type "${a}" can never be of type "${o}".`,{nodes:t}))}}}}function kz(e,t){let n=e.getFragment(t);if(n){let r=(0,Bz.typeFromAST)(e.getSchema(),n.typeCondition);if((0,Cg.isCompositeType)(r))return r}}});var Mg=w(kg=>{"use strict";m();T();N();Object.defineProperty(kg,"__esModule",{value:!0});kg.PossibleTypeExtensionsRule=Vz;var Mz=eu(),lw=Xt(),dw=Ir(),xz=nu(),cw=ze(),gn=Ft(),qz=ec(),ll=wt();function Vz(e){let t=e.getSchema(),n=Object.create(null);for(let i of e.getDocument().definitions)(0,qz.isTypeDefinitionNode)(i)&&(n[i.name.value]=i);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(i){let a=i.name.value,o=n[a],c=t==null?void 0:t.getType(a),l;if(o?l=jz[o.kind]:c&&(l=Kz(c)),l){if(l!==i.kind){let d=Gz(i.kind);e.reportError(new cw.GraphQLError(`Cannot extend non-${d} type "${a}".`,{nodes:o?[o,i]:i}))}}else{let d=Object.keys(x(x({},n),t==null?void 0:t.getTypeMap())),p=(0,xz.suggestionList)(a,d);e.reportError(new cw.GraphQLError(`Cannot extend type "${a}" because it is not defined.`+(0,Mz.didYouMean)(p),{nodes:i.name}))}}}var jz={[gn.Kind.SCALAR_TYPE_DEFINITION]:gn.Kind.SCALAR_TYPE_EXTENSION,[gn.Kind.OBJECT_TYPE_DEFINITION]:gn.Kind.OBJECT_TYPE_EXTENSION,[gn.Kind.INTERFACE_TYPE_DEFINITION]:gn.Kind.INTERFACE_TYPE_EXTENSION,[gn.Kind.UNION_TYPE_DEFINITION]:gn.Kind.UNION_TYPE_EXTENSION,[gn.Kind.ENUM_TYPE_DEFINITION]:gn.Kind.ENUM_TYPE_EXTENSION,[gn.Kind.INPUT_OBJECT_TYPE_DEFINITION]:gn.Kind.INPUT_OBJECT_TYPE_EXTENSION};function Kz(e){if((0,ll.isScalarType)(e))return gn.Kind.SCALAR_TYPE_EXTENSION;if((0,ll.isObjectType)(e))return gn.Kind.OBJECT_TYPE_EXTENSION;if((0,ll.isInterfaceType)(e))return gn.Kind.INTERFACE_TYPE_EXTENSION;if((0,ll.isUnionType)(e))return gn.Kind.UNION_TYPE_EXTENSION;if((0,ll.isEnumType)(e))return gn.Kind.ENUM_TYPE_EXTENSION;if((0,ll.isInputObjectType)(e))return gn.Kind.INPUT_OBJECT_TYPE_EXTENSION;(0,dw.invariant)(!1,"Unexpected type: "+(0,lw.inspect)(e))}function Gz(e){switch(e){case gn.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case gn.Kind.OBJECT_TYPE_EXTENSION:return"object";case gn.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case gn.Kind.UNION_TYPE_EXTENSION:return"union";case gn.Kind.ENUM_TYPE_EXTENSION:return"enum";case gn.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,dw.invariant)(!1,"Unexpected kind: "+(0,lw.inspect)(e))}}});var qg=w(uN=>{"use strict";m();T();N();Object.defineProperty(uN,"__esModule",{value:!0});uN.ProvidedRequiredArgumentsOnDirectivesRule=Tw;uN.ProvidedRequiredArgumentsRule=Yz;var pw=Xt(),fw=tu(),mw=ze(),Nw=Ft(),$z=li(),xg=wt(),Qz=Qr();function Yz(e){return Q(x({},Tw(e)),{Field:{leave(t){var n;let r=e.getFieldDef();if(!r)return!1;let i=new Set((n=t.arguments)===null||n===void 0?void 0:n.map(a=>a.name.value));for(let a of r.args)if(!i.has(a.name)&&(0,xg.isRequiredArgument)(a)){let o=(0,pw.inspect)(a.type);e.reportError(new mw.GraphQLError(`Field "${r.name}" argument "${a.name}" of type "${o}" is required, but it was not provided.`,{nodes:t}))}}}})}function Tw(e){var t;let n=Object.create(null),r=e.getSchema(),i=(t=r==null?void 0:r.getDirectives())!==null&&t!==void 0?t:Qz.specifiedDirectives;for(let c of i)n[c.name]=(0,fw.keyMap)(c.args.filter(xg.isRequiredArgument),l=>l.name);let a=e.getDocument().definitions;for(let c of a)if(c.kind===Nw.Kind.DIRECTIVE_DEFINITION){var o;let l=(o=c.arguments)!==null&&o!==void 0?o:[];n[c.name.value]=(0,fw.keyMap)(l.filter(Jz),d=>d.name.value)}return{Directive:{leave(c){let l=c.name.value,d=n[l];if(d){var p;let y=(p=c.arguments)!==null&&p!==void 0?p:[],I=new Set(y.map(v=>v.name.value));for(let[v,F]of Object.entries(d))if(!I.has(v)){let k=(0,xg.isType)(F.type)?(0,pw.inspect)(F.type):(0,$z.print)(F.type);e.reportError(new mw.GraphQLError(`Directive "@${l}" argument "${v}" of type "${k}" is required, but it was not provided.`,{nodes:c}))}}}}}}function Jz(e){return e.type.kind===Nw.Kind.NON_NULL_TYPE&&e.defaultValue==null}});var jg=w(Vg=>{"use strict";m();T();N();Object.defineProperty(Vg,"__esModule",{value:!0});Vg.ScalarLeafsRule=Hz;var Ew=Xt(),hw=ze(),yw=wt();function Hz(e){return{Field(t){let n=e.getType(),r=t.selectionSet;if(n){if((0,yw.isLeafType)((0,yw.getNamedType)(n))){if(r){let i=t.name.value,a=(0,Ew.inspect)(n);e.reportError(new hw.GraphQLError(`Field "${i}" must not have a selection since type "${a}" has no subfields.`,{nodes:r}))}}else if(!r){let i=t.name.value,a=(0,Ew.inspect)(n);e.reportError(new hw.GraphQLError(`Field "${i}" of type "${a}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:t}))}}}}}});var Gg=w(Kg=>{"use strict";m();T();N();Object.defineProperty(Kg,"__esModule",{value:!0});Kg.printPathArray=zz;function zz(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}});var sf=w(cN=>{"use strict";m();T();N();Object.defineProperty(cN,"__esModule",{value:!0});cN.addPath=Wz;cN.pathToArray=Xz;function Wz(e,t,n){return{prev:e,key:t,typename:n}}function Xz(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}});var Qg=w($g=>{"use strict";m();T();N();Object.defineProperty($g,"__esModule",{value:!0});$g.coerceInputValue=aW;var Zz=eu(),lN=Xt(),eW=Ir(),tW=Xm(),nW=Da(),aa=sf(),rW=Gg(),iW=nu(),ys=ze(),of=wt();function aW(e,t,n=sW){return uf(e,t,n,void 0)}function sW(e,t,n){let r="Invalid value "+(0,lN.inspect)(t);throw e.length>0&&(r+=` at "value${(0,rW.printPathArray)(e)}"`),n.message=r+": "+n.message,n}function uf(e,t,n,r){if((0,of.isNonNullType)(t)){if(e!=null)return uf(e,t.ofType,n,r);n((0,aa.pathToArray)(r),e,new ys.GraphQLError(`Expected non-nullable type "${(0,lN.inspect)(t)}" not to be null.`));return}if(e==null)return null;if((0,of.isListType)(t)){let i=t.ofType;return(0,tW.isIterableObject)(e)?Array.from(e,(a,o)=>{let c=(0,aa.addPath)(r,o,void 0);return uf(a,i,n,c)}):[uf(e,i,n,r)]}if((0,of.isInputObjectType)(t)){if(!(0,nW.isObjectLike)(e)){n((0,aa.pathToArray)(r),e,new ys.GraphQLError(`Expected type "${t.name}" to be an object.`));return}let i={},a=t.getFields();for(let o of Object.values(a)){let c=e[o.name];if(c===void 0){if(o.defaultValue!==void 0)i[o.name]=o.defaultValue;else if((0,of.isNonNullType)(o.type)){let l=(0,lN.inspect)(o.type);n((0,aa.pathToArray)(r),e,new ys.GraphQLError(`Field "${o.name}" of required type "${l}" was not provided.`))}continue}i[o.name]=uf(c,o.type,n,(0,aa.addPath)(r,o.name,t.name))}for(let o of Object.keys(e))if(!a[o]){let c=(0,iW.suggestionList)(o,Object.keys(t.getFields()));n((0,aa.pathToArray)(r),e,new ys.GraphQLError(`Field "${o}" is not defined by type "${t.name}".`+(0,Zz.didYouMean)(c)))}if(t.isOneOf){let o=Object.keys(i);o.length!==1&&n((0,aa.pathToArray)(r),e,new ys.GraphQLError(`Exactly one key must be specified for OneOf type "${t.name}".`));let c=o[0],l=i[c];l===null&&n((0,aa.pathToArray)(r).concat(c),l,new ys.GraphQLError(`Field "${c}" must be non-null.`))}return i}if((0,of.isLeafType)(t)){let i;try{i=t.parseValue(e)}catch(a){a instanceof ys.GraphQLError?n((0,aa.pathToArray)(r),e,a):n((0,aa.pathToArray)(r),e,new ys.GraphQLError(`Expected type "${t.name}". `+a.message,{originalError:a}));return}return i===void 0&&n((0,aa.pathToArray)(r),e,new ys.GraphQLError(`Expected type "${t.name}".`)),i}(0,eW.invariant)(!1,"Unexpected input type: "+(0,lN.inspect)(t))}});var lf=w(Yg=>{"use strict";m();T();N();Object.defineProperty(Yg,"__esModule",{value:!0});Yg.valueFromAST=cf;var oW=Xt(),uW=Ir(),cW=tu(),dl=Ft(),tc=wt();function cf(e,t,n){if(e){if(e.kind===dl.Kind.VARIABLE){let r=e.name.value;if(n==null||n[r]===void 0)return;let i=n[r];return i===null&&(0,tc.isNonNullType)(t)?void 0:i}if((0,tc.isNonNullType)(t))return e.kind===dl.Kind.NULL?void 0:cf(e,t.ofType,n);if(e.kind===dl.Kind.NULL)return null;if((0,tc.isListType)(t)){let r=t.ofType;if(e.kind===dl.Kind.LIST){let a=[];for(let o of e.values)if(Iw(o,n)){if((0,tc.isNonNullType)(r))return;a.push(null)}else{let c=cf(o,r,n);if(c===void 0)return;a.push(c)}return a}let i=cf(e,r,n);return i===void 0?void 0:[i]}if((0,tc.isInputObjectType)(t)){if(e.kind!==dl.Kind.OBJECT)return;let r=Object.create(null),i=(0,cW.keyMap)(e.fields,a=>a.name.value);for(let a of Object.values(t.getFields())){let o=i[a.name];if(!o||Iw(o.value,n)){if(a.defaultValue!==void 0)r[a.name]=a.defaultValue;else if((0,tc.isNonNullType)(a.type))return;continue}let c=cf(o.value,a.type,n);if(c===void 0)return;r[a.name]=c}if(t.isOneOf){let a=Object.keys(r);if(a.length!==1||r[a[0]]===null)return}return r}if((0,tc.isLeafType)(t)){let r;try{r=t.parseLiteral(e,n)}catch(i){return}return r===void 0?void 0:r}(0,uW.invariant)(!1,"Unexpected input type: "+(0,oW.inspect)(t))}}function Iw(e,t){return e.kind===dl.Kind.VARIABLE&&(t==null||t[e.name.value]===void 0)}});var ml=w(df=>{"use strict";m();T();N();Object.defineProperty(df,"__esModule",{value:!0});df.getArgumentValues=Sw;df.getDirectiveValues=TW;df.getVariableValues=mW;var fl=Xt(),lW=tu(),dW=Gg(),Is=ze(),gw=Ft(),_w=li(),pl=wt(),fW=Qg(),pW=Fa(),vw=lf();function mW(e,t,n,r){let i=[],a=r==null?void 0:r.maxErrors;try{let o=NW(e,t,n,c=>{if(a!=null&&i.length>=a)throw new Is.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");i.push(c)});if(i.length===0)return{coerced:o}}catch(o){i.push(o)}return{errors:i}}function NW(e,t,n,r){let i={};for(let a of t){let o=a.variable.name.value,c=(0,pW.typeFromAST)(e,a.type);if(!(0,pl.isInputType)(c)){let d=(0,_w.print)(a.type);r(new Is.GraphQLError(`Variable "$${o}" expected value of type "${d}" which cannot be used as an input type.`,{nodes:a.type}));continue}if(!Ow(n,o)){if(a.defaultValue)i[o]=(0,vw.valueFromAST)(a.defaultValue,c);else if((0,pl.isNonNullType)(c)){let d=(0,fl.inspect)(c);r(new Is.GraphQLError(`Variable "$${o}" of required type "${d}" was not provided.`,{nodes:a}))}continue}let l=n[o];if(l===null&&(0,pl.isNonNullType)(c)){let d=(0,fl.inspect)(c);r(new Is.GraphQLError(`Variable "$${o}" of non-null type "${d}" must not be null.`,{nodes:a}));continue}i[o]=(0,fW.coerceInputValue)(l,c,(d,p,y)=>{let I=`Variable "$${o}" got invalid value `+(0,fl.inspect)(p);d.length>0&&(I+=` at "${o}${(0,dW.printPathArray)(d)}"`),r(new Is.GraphQLError(I+"; "+y.message,{nodes:a,originalError:y}))})}return i}function Sw(e,t,n){var r;let i={},a=(r=t.arguments)!==null&&r!==void 0?r:[],o=(0,lW.keyMap)(a,c=>c.name.value);for(let c of e.args){let l=c.name,d=c.type,p=o[l];if(!p){if(c.defaultValue!==void 0)i[l]=c.defaultValue;else if((0,pl.isNonNullType)(d))throw new Is.GraphQLError(`Argument "${l}" of required type "${(0,fl.inspect)(d)}" was not provided.`,{nodes:t});continue}let y=p.value,I=y.kind===gw.Kind.NULL;if(y.kind===gw.Kind.VARIABLE){let F=y.name.value;if(n==null||!Ow(n,F)){if(c.defaultValue!==void 0)i[l]=c.defaultValue;else if((0,pl.isNonNullType)(d))throw new Is.GraphQLError(`Argument "${l}" of required type "${(0,fl.inspect)(d)}" was provided the variable "$${F}" which was not provided a runtime value.`,{nodes:y});continue}I=n[F]==null}if(I&&(0,pl.isNonNullType)(d))throw new Is.GraphQLError(`Argument "${l}" of non-null type "${(0,fl.inspect)(d)}" must not be null.`,{nodes:y});let v=(0,vw.valueFromAST)(y,d,n);if(v===void 0)throw new Is.GraphQLError(`Argument "${l}" has invalid value ${(0,_w.print)(y)}.`,{nodes:y});i[l]=v}return i}function TW(e,t,n){var r;let i=(r=t.directives)===null||r===void 0?void 0:r.find(a=>a.name.value===e.name);if(i)return Sw(e,i,n)}function Ow(e,t){return Object.prototype.hasOwnProperty.call(e,t)}});var pN=w(fN=>{"use strict";m();T();N();Object.defineProperty(fN,"__esModule",{value:!0});fN.collectFields=yW;fN.collectSubfields=IW;var Jg=Ft(),EW=wt(),Dw=Qr(),hW=Fa(),bw=ml();function yW(e,t,n,r,i){let a=new Map;return dN(e,t,n,r,i,a,new Set),a}function IW(e,t,n,r,i){let a=new Map,o=new Set;for(let c of i)c.selectionSet&&dN(e,t,n,r,c.selectionSet,a,o);return a}function dN(e,t,n,r,i,a,o){for(let c of i.selections)switch(c.kind){case Jg.Kind.FIELD:{if(!Hg(n,c))continue;let l=gW(c),d=a.get(l);d!==void 0?d.push(c):a.set(l,[c]);break}case Jg.Kind.INLINE_FRAGMENT:{if(!Hg(n,c)||!Aw(e,c,r))continue;dN(e,t,n,r,c.selectionSet,a,o);break}case Jg.Kind.FRAGMENT_SPREAD:{let l=c.name.value;if(o.has(l)||!Hg(n,c))continue;o.add(l);let d=t[l];if(!d||!Aw(e,d,r))continue;dN(e,t,n,r,d.selectionSet,a,o);break}}}function Hg(e,t){let n=(0,bw.getDirectiveValues)(Dw.GraphQLSkipDirective,t,e);if((n==null?void 0:n.if)===!0)return!1;let r=(0,bw.getDirectiveValues)(Dw.GraphQLIncludeDirective,t,e);return(r==null?void 0:r.if)!==!1}function Aw(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=(0,hW.typeFromAST)(e,r);return i===n?!0:(0,EW.isAbstractType)(i)?e.isSubType(i,n):!1}function gW(e){return e.alias?e.alias.value:e.name.value}});var Wg=w(zg=>{"use strict";m();T();N();Object.defineProperty(zg,"__esModule",{value:!0});zg.SingleFieldSubscriptionsRule=SW;var Rw=ze(),_W=Ft(),vW=pN();function SW(e){return{OperationDefinition(t){if(t.operation==="subscription"){let n=e.getSchema(),r=n.getSubscriptionType();if(r){let i=t.name?t.name.value:null,a=Object.create(null),o=e.getDocument(),c=Object.create(null);for(let d of o.definitions)d.kind===_W.Kind.FRAGMENT_DEFINITION&&(c[d.name.value]=d);let l=(0,vW.collectFields)(n,c,a,r,t.selectionSet);if(l.size>1){let y=[...l.values()].slice(1).flat();e.reportError(new Rw.GraphQLError(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:y}))}for(let d of l.values())d[0].name.value.startsWith("__")&&e.reportError(new Rw.GraphQLError(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:d}))}}}}}});var mN=w(Xg=>{"use strict";m();T();N();Object.defineProperty(Xg,"__esModule",{value:!0});Xg.groupBy=OW;function OW(e,t){let n=new Map;for(let r of e){let i=t(r),a=n.get(i);a===void 0?n.set(i,[r]):a.push(r)}return n}});var e_=w(Zg=>{"use strict";m();T();N();Object.defineProperty(Zg,"__esModule",{value:!0});Zg.UniqueArgumentDefinitionNamesRule=AW;var DW=mN(),bW=ze();function AW(e){return{DirectiveDefinition(r){var i;let a=(i=r.arguments)!==null&&i!==void 0?i:[];return n(`@${r.name.value}`,a)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(r){var i;let a=r.name.value,o=(i=r.fields)!==null&&i!==void 0?i:[];for(let l of o){var c;let d=l.name.value,p=(c=l.arguments)!==null&&c!==void 0?c:[];n(`${a}.${d}`,p)}return!1}function n(r,i){let a=(0,DW.groupBy)(i,o=>o.name.value);for(let[o,c]of a)c.length>1&&e.reportError(new bW.GraphQLError(`Argument "${r}(${o}:)" can only be defined once.`,{nodes:c.map(l=>l.name)}));return!1}}});var n_=w(t_=>{"use strict";m();T();N();Object.defineProperty(t_,"__esModule",{value:!0});t_.UniqueArgumentNamesRule=FW;var RW=mN(),PW=ze();function FW(e){return{Field:t,Directive:t};function t(n){var r;let i=(r=n.arguments)!==null&&r!==void 0?r:[],a=(0,RW.groupBy)(i,o=>o.name.value);for(let[o,c]of a)c.length>1&&e.reportError(new PW.GraphQLError(`There can be only one argument named "${o}".`,{nodes:c.map(l=>l.name)}))}}});var i_=w(r_=>{"use strict";m();T();N();Object.defineProperty(r_,"__esModule",{value:!0});r_.UniqueDirectiveNamesRule=wW;var Pw=ze();function wW(e){let t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){let i=r.name.value;if(n!=null&&n.getDirective(i)){e.reportError(new Pw.GraphQLError(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}));return}return t[i]?e.reportError(new Pw.GraphQLError(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}}});var o_=w(s_=>{"use strict";m();T();N();Object.defineProperty(s_,"__esModule",{value:!0});s_.UniqueDirectivesPerLocationRule=BW;var LW=ze(),a_=Ft(),Fw=ec(),CW=Qr();function BW(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():CW.specifiedDirectives;for(let c of r)t[c.name]=!c.isRepeatable;let i=e.getDocument().definitions;for(let c of i)c.kind===a_.Kind.DIRECTIVE_DEFINITION&&(t[c.name.value]=!c.repeatable);let a=Object.create(null),o=Object.create(null);return{enter(c){if(!("directives"in c)||!c.directives)return;let l;if(c.kind===a_.Kind.SCHEMA_DEFINITION||c.kind===a_.Kind.SCHEMA_EXTENSION)l=a;else if((0,Fw.isTypeDefinitionNode)(c)||(0,Fw.isTypeExtensionNode)(c)){let d=c.name.value;l=o[d],l===void 0&&(o[d]=l=Object.create(null))}else l=Object.create(null);for(let d of c.directives){let p=d.name.value;t[p]&&(l[p]?e.reportError(new LW.GraphQLError(`The directive "@${p}" can only be used once at this location.`,{nodes:[l[p],d]})):l[p]=d)}}}}});var c_=w(u_=>{"use strict";m();T();N();Object.defineProperty(u_,"__esModule",{value:!0});u_.UniqueEnumValueNamesRule=kW;var ww=ze(),UW=wt();function kW(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(a){var o;let c=a.name.value;r[c]||(r[c]=Object.create(null));let l=(o=a.values)!==null&&o!==void 0?o:[],d=r[c];for(let p of l){let y=p.name.value,I=n[c];(0,UW.isEnumType)(I)&&I.getValue(y)?e.reportError(new ww.GraphQLError(`Enum value "${c}.${y}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:p.name})):d[y]?e.reportError(new ww.GraphQLError(`Enum value "${c}.${y}" can only be defined once.`,{nodes:[d[y],p.name]})):d[y]=p.name}return!1}}});var f_=w(d_=>{"use strict";m();T();N();Object.defineProperty(d_,"__esModule",{value:!0});d_.UniqueFieldDefinitionNamesRule=MW;var Lw=ze(),l_=wt();function MW(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(a){var o;let c=a.name.value;r[c]||(r[c]=Object.create(null));let l=(o=a.fields)!==null&&o!==void 0?o:[],d=r[c];for(let p of l){let y=p.name.value;xW(n[c],y)?e.reportError(new Lw.GraphQLError(`Field "${c}.${y}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:p.name})):d[y]?e.reportError(new Lw.GraphQLError(`Field "${c}.${y}" can only be defined once.`,{nodes:[d[y],p.name]})):d[y]=p.name}return!1}}function xW(e,t){return(0,l_.isObjectType)(e)||(0,l_.isInterfaceType)(e)||(0,l_.isInputObjectType)(e)?e.getFields()[t]!=null:!1}});var m_=w(p_=>{"use strict";m();T();N();Object.defineProperty(p_,"__esModule",{value:!0});p_.UniqueFragmentNamesRule=VW;var qW=ze();function VW(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let r=n.name.value;return t[r]?e.reportError(new qW.GraphQLError(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}});var T_=w(N_=>{"use strict";m();T();N();Object.defineProperty(N_,"__esModule",{value:!0});N_.UniqueInputFieldNamesRule=GW;var jW=Ir(),KW=ze();function GW(e){let t=[],n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){let r=t.pop();r||(0,jW.invariant)(!1),n=r}},ObjectField(r){let i=r.name.value;n[i]?e.reportError(new KW.GraphQLError(`There can be only one input field named "${i}".`,{nodes:[n[i],r.name]})):n[i]=r.name}}}});var h_=w(E_=>{"use strict";m();T();N();Object.defineProperty(E_,"__esModule",{value:!0});E_.UniqueOperationNamesRule=QW;var $W=ze();function QW(e){let t=Object.create(null);return{OperationDefinition(n){let r=n.name;return r&&(t[r.value]?e.reportError(new $W.GraphQLError(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}});var I_=w(y_=>{"use strict";m();T();N();Object.defineProperty(y_,"__esModule",{value:!0});y_.UniqueOperationTypesRule=YW;var Cw=ze();function YW(e){let t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(a){var o;let c=(o=a.operationTypes)!==null&&o!==void 0?o:[];for(let l of c){let d=l.operation,p=n[d];r[d]?e.reportError(new Cw.GraphQLError(`Type for ${d} already defined in the schema. It cannot be redefined.`,{nodes:l})):p?e.reportError(new Cw.GraphQLError(`There can be only one ${d} type in schema.`,{nodes:[p,l]})):n[d]=l}return!1}}});var __=w(g_=>{"use strict";m();T();N();Object.defineProperty(g_,"__esModule",{value:!0});g_.UniqueTypeNamesRule=JW;var Bw=ze();function JW(e){let t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(i){let a=i.name.value;if(n!=null&&n.getType(a)){e.reportError(new Bw.GraphQLError(`Type "${a}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return t[a]?e.reportError(new Bw.GraphQLError(`There can be only one type named "${a}".`,{nodes:[t[a],i.name]})):t[a]=i.name,!1}}});var S_=w(v_=>{"use strict";m();T();N();Object.defineProperty(v_,"__esModule",{value:!0});v_.UniqueVariableNamesRule=WW;var HW=mN(),zW=ze();function WW(e){return{OperationDefinition(t){var n;let r=(n=t.variableDefinitions)!==null&&n!==void 0?n:[],i=(0,HW.groupBy)(r,a=>a.variable.name.value);for(let[a,o]of i)o.length>1&&e.reportError(new zW.GraphQLError(`There can be only one variable named "$${a}".`,{nodes:o.map(c=>c.variable.name)}))}}}});var b_=w(D_=>{"use strict";m();T();N();Object.defineProperty(D_,"__esModule",{value:!0});D_.ValuesOfCorrectTypeRule=t4;var XW=eu(),ff=Xt(),ZW=tu(),e4=nu(),La=ze(),O_=Ft(),NN=li(),wa=wt();function t4(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(n){t[n.variable.name.value]=n},ListValue(n){let r=(0,wa.getNullableType)(e.getParentInputType());if(!(0,wa.isListType)(r))return nc(e,n),!1},ObjectValue(n){let r=(0,wa.getNamedType)(e.getInputType());if(!(0,wa.isInputObjectType)(r))return nc(e,n),!1;let i=(0,ZW.keyMap)(n.fields,a=>a.name.value);for(let a of Object.values(r.getFields()))if(!i[a.name]&&(0,wa.isRequiredInputField)(a)){let c=(0,ff.inspect)(a.type);e.reportError(new La.GraphQLError(`Field "${r.name}.${a.name}" of required type "${c}" was not provided.`,{nodes:n}))}r.isOneOf&&n4(e,n,r,i,t)},ObjectField(n){let r=(0,wa.getNamedType)(e.getParentInputType());if(!e.getInputType()&&(0,wa.isInputObjectType)(r)){let a=(0,e4.suggestionList)(n.name.value,Object.keys(r.getFields()));e.reportError(new La.GraphQLError(`Field "${n.name.value}" is not defined by type "${r.name}".`+(0,XW.didYouMean)(a),{nodes:n}))}},NullValue(n){let r=e.getInputType();(0,wa.isNonNullType)(r)&&e.reportError(new La.GraphQLError(`Expected value of type "${(0,ff.inspect)(r)}", found ${(0,NN.print)(n)}.`,{nodes:n}))},EnumValue:n=>nc(e,n),IntValue:n=>nc(e,n),FloatValue:n=>nc(e,n),StringValue:n=>nc(e,n),BooleanValue:n=>nc(e,n)}}function nc(e,t){let n=e.getInputType();if(!n)return;let r=(0,wa.getNamedType)(n);if(!(0,wa.isLeafType)(r)){let i=(0,ff.inspect)(n);e.reportError(new La.GraphQLError(`Expected value of type "${i}", found ${(0,NN.print)(t)}.`,{nodes:t}));return}try{if(r.parseLiteral(t,void 0)===void 0){let a=(0,ff.inspect)(n);e.reportError(new La.GraphQLError(`Expected value of type "${a}", found ${(0,NN.print)(t)}.`,{nodes:t}))}}catch(i){let a=(0,ff.inspect)(n);i instanceof La.GraphQLError?e.reportError(i):e.reportError(new La.GraphQLError(`Expected value of type "${a}", found ${(0,NN.print)(t)}; `+i.message,{nodes:t,originalError:i}))}}function n4(e,t,n,r,i){var a;let o=Object.keys(r);if(o.length!==1){e.reportError(new La.GraphQLError(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));return}let l=(a=r[o[0]])===null||a===void 0?void 0:a.value,d=!l||l.kind===O_.Kind.NULL,p=(l==null?void 0:l.kind)===O_.Kind.VARIABLE;if(d){e.reportError(new La.GraphQLError(`Field "${n.name}.${o[0]}" must be non-null.`,{nodes:[t]}));return}if(p){let y=l.name.value;i[y].type.kind!==O_.Kind.NON_NULL_TYPE&&e.reportError(new La.GraphQLError(`Variable "${y}" must be non-nullable to be used for OneOf Input Object "${n.name}".`,{nodes:[t]}))}}});var R_=w(A_=>{"use strict";m();T();N();Object.defineProperty(A_,"__esModule",{value:!0});A_.VariablesAreInputTypesRule=o4;var r4=ze(),i4=li(),a4=wt(),s4=Fa();function o4(e){return{VariableDefinition(t){let n=(0,s4.typeFromAST)(e.getSchema(),t.type);if(n!==void 0&&!(0,a4.isInputType)(n)){let r=t.variable.name.value,i=(0,i4.print)(t.type);e.reportError(new r4.GraphQLError(`Variable "$${r}" cannot be non-input type "${i}".`,{nodes:t.type}))}}}}});var F_=w(P_=>{"use strict";m();T();N();Object.defineProperty(P_,"__esModule",{value:!0});P_.VariablesInAllowedPositionRule=d4;var Uw=Xt(),u4=ze(),c4=Ft(),kw=wt(),Mw=Qd(),l4=Fa();function d4(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){let r=e.getRecursiveVariableUsages(n);for(let{node:i,type:a,defaultValue:o}of r){let c=i.name.value,l=t[c];if(l&&a){let d=e.getSchema(),p=(0,l4.typeFromAST)(d,l.type);if(p&&!f4(d,p,l.defaultValue,a,o)){let y=(0,Uw.inspect)(p),I=(0,Uw.inspect)(a);e.reportError(new u4.GraphQLError(`Variable "$${c}" of type "${y}" used in position expecting type "${I}".`,{nodes:[l,i]}))}}}}},VariableDefinition(n){t[n.variable.name.value]=n}}}function f4(e,t,n,r,i){if((0,kw.isNonNullType)(r)&&!(0,kw.isNonNullType)(t)){if(!(n!=null&&n.kind!==c4.Kind.NULL)&&!(i!==void 0))return!1;let c=r.ofType;return(0,Mw.isTypeSubTypeOf)(e,t,c)}return(0,Mw.isTypeSubTypeOf)(e,t,r)}});var w_=w(su=>{"use strict";m();T();N();Object.defineProperty(su,"__esModule",{value:!0});su.specifiedSDLRules=su.specifiedRules=su.recommendedRules=void 0;var p4=HI(),m4=WI(),N4=ZI(),xw=eg(),qw=ig(),T4=sg(),Vw=cg(),E4=dg(),h4=pg(),y4=Ng(),I4=Eg(),g4=yg(),_4=gg(),v4=vg(),S4=Lg(),O4=Ug(),D4=Mg(),jw=qg(),b4=jg(),A4=Wg(),R4=e_(),Kw=n_(),P4=i_(),Gw=o_(),F4=c_(),w4=f_(),L4=m_(),$w=T_(),C4=h_(),B4=I_(),U4=__(),k4=S_(),M4=b_(),x4=R_(),q4=F_(),Qw=Object.freeze([y4.MaxIntrospectionDepthRule]);su.recommendedRules=Qw;var V4=Object.freeze([p4.ExecutableDefinitionsRule,C4.UniqueOperationNamesRule,E4.LoneAnonymousOperationRule,A4.SingleFieldSubscriptionsRule,Vw.KnownTypeNamesRule,N4.FragmentsOnCompositeTypesRule,x4.VariablesAreInputTypesRule,b4.ScalarLeafsRule,m4.FieldsOnCorrectTypeRule,L4.UniqueFragmentNamesRule,T4.KnownFragmentNamesRule,_4.NoUnusedFragmentsRule,O4.PossibleFragmentSpreadsRule,I4.NoFragmentCyclesRule,k4.UniqueVariableNamesRule,g4.NoUndefinedVariablesRule,v4.NoUnusedVariablesRule,qw.KnownDirectivesRule,Gw.UniqueDirectivesPerLocationRule,xw.KnownArgumentNamesRule,Kw.UniqueArgumentNamesRule,M4.ValuesOfCorrectTypeRule,jw.ProvidedRequiredArgumentsRule,q4.VariablesInAllowedPositionRule,S4.OverlappingFieldsCanBeMergedRule,$w.UniqueInputFieldNamesRule,...Qw]);su.specifiedRules=V4;var j4=Object.freeze([h4.LoneSchemaDefinitionRule,B4.UniqueOperationTypesRule,U4.UniqueTypeNamesRule,F4.UniqueEnumValueNamesRule,w4.UniqueFieldDefinitionNamesRule,R4.UniqueArgumentDefinitionNamesRule,P4.UniqueDirectiveNamesRule,Vw.KnownTypeNamesRule,qw.KnownDirectivesRule,Gw.UniqueDirectivesPerLocationRule,D4.PossibleTypeExtensionsRule,xw.KnownArgumentNamesOnDirectivesRule,Kw.UniqueArgumentNamesRule,$w.UniqueInputFieldNamesRule,jw.ProvidedRequiredArgumentsOnDirectivesRule]);su.specifiedSDLRules=j4});var B_=w(ou=>{"use strict";m();T();N();Object.defineProperty(ou,"__esModule",{value:!0});ou.ValidationContext=ou.SDLValidationContext=ou.ASTValidationContext=void 0;var Yw=Ft(),K4=Qu(),Jw=nN(),pf=class{constructor(t,n){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(t){this._onError(t)}getDocument(){return this._ast}getFragment(t){let n;if(this._fragments)n=this._fragments;else{n=Object.create(null);for(let r of this.getDocument().definitions)r.kind===Yw.Kind.FRAGMENT_DEFINITION&&(n[r.name.value]=r);this._fragments=n}return n[t]}getFragmentSpreads(t){let n=this._fragmentSpreads.get(t);if(!n){n=[];let r=[t],i;for(;i=r.pop();)for(let a of i.selections)a.kind===Yw.Kind.FRAGMENT_SPREAD?n.push(a):a.selectionSet&&r.push(a.selectionSet);this._fragmentSpreads.set(t,n)}return n}getRecursivelyReferencedFragments(t){let n=this._recursivelyReferencedFragments.get(t);if(!n){n=[];let r=Object.create(null),i=[t.selectionSet],a;for(;a=i.pop();)for(let o of this.getFragmentSpreads(a)){let c=o.name.value;if(r[c]!==!0){r[c]=!0;let l=this.getFragment(c);l&&(n.push(l),i.push(l.selectionSet))}}this._recursivelyReferencedFragments.set(t,n)}return n}};ou.ASTValidationContext=pf;var L_=class extends pf{constructor(t,n,r){super(t,r),this._schema=n}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}};ou.SDLValidationContext=L_;var C_=class extends pf{constructor(t,n,r,i){super(n,i),this._schema=t,this._typeInfo=r,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(t){let n=this._variableUsages.get(t);if(!n){let r=[],i=new Jw.TypeInfo(this._schema);(0,K4.visit)(t,(0,Jw.visitWithTypeInfo)(i,{VariableDefinition:()=>!1,Variable(a){r.push({node:a,type:i.getInputType(),defaultValue:i.getDefaultValue()})}})),n=r,this._variableUsages.set(t,n)}return n}getRecursiveVariableUsages(t){let n=this._recursiveVariableUsages.get(t);if(!n){n=this.getVariableUsages(t);for(let r of this.getRecursivelyReferencedFragments(t))n=n.concat(this.getVariableUsages(r));this._recursiveVariableUsages.set(t,n)}return n}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}};ou.ValidationContext=C_});var Tl=w(Nl=>{"use strict";m();T();N();Object.defineProperty(Nl,"__esModule",{value:!0});Nl.assertValidSDL=J4;Nl.assertValidSDLExtension=H4;Nl.validate=Y4;Nl.validateSDL=U_;var G4=Br(),$4=ze(),TN=Qu(),Q4=nf(),Hw=nN(),zw=w_(),Ww=B_();function Y4(e,t,n=zw.specifiedRules,r,i=new Hw.TypeInfo(e)){var a;let o=(a=r==null?void 0:r.maxErrors)!==null&&a!==void 0?a:100;t||(0,G4.devAssert)(!1,"Must provide document."),(0,Q4.assertValidSchema)(e);let c=Object.freeze({}),l=[],d=new Ww.ValidationContext(e,t,i,y=>{if(l.length>=o)throw l.push(new $4.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),c;l.push(y)}),p=(0,TN.visitInParallel)(n.map(y=>y(d)));try{(0,TN.visit)(t,(0,Hw.visitWithTypeInfo)(i,p))}catch(y){if(y!==c)throw y}return l}function U_(e,t,n=zw.specifiedSDLRules){let r=[],i=new Ww.SDLValidationContext(e,t,o=>{r.push(o)}),a=n.map(o=>o(i));return(0,TN.visit)(e,(0,TN.visitInParallel)(a)),r}function J4(e){let t=U_(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` +`))}var VI=class{constructor(t){this._errors=[],this.schema=t}reportError(t,n){let r=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new T6.GraphQLError(t,{nodes:r}))}getErrors(){return this._errors}};function I6(e){let t=e.schema,n=t.getQueryType();if(!n)e.reportError("Query root type must be provided.",t.astNode);else if(!(0,Fn.isObjectType)(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${(0,_r.inspect)(n)}.`,(r=qI(t,xI.OperationTypeNode.QUERY))!==null&&r!==void 0?r:n.astNode)}let i=t.getMutationType();if(i&&!(0,Fn.isObjectType)(i)){var a;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,_r.inspect)(i)}.`,(a=qI(t,xI.OperationTypeNode.MUTATION))!==null&&a!==void 0?a:i.astNode)}let o=t.getSubscriptionType();if(o&&!(0,Fn.isObjectType)(o)){var c;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,_r.inspect)(o)}.`,(c=qI(t,xI.OperationTypeNode.SUBSCRIPTION))!==null&&c!==void 0?c:o.astNode)}}function qI(e,t){var n;return(n=[e.astNode,...e.extensionASTNodes].flatMap(r=>{var i;return(i=r==null?void 0:r.operationTypes)!==null&&i!==void 0?i:[]}).find(r=>r.operation===t))===null||n===void 0?void 0:n.type}function g6(e){for(let n of e.schema.getDirectives()){if(!(0,PF.isDirective)(n)){e.reportError(`Expected directive but got: ${(0,_r.inspect)(n)}.`,n==null?void 0:n.astNode);continue}Zu(e,n);for(let r of n.args)if(Zu(e,r),(0,Fn.isInputType)(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${(0,_r.inspect)(r.type)}.`,r.astNode),(0,Fn.isRequiredArgument)(r)&&r.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[jI(r.astNode),(t=r.astNode)===null||t===void 0?void 0:t.type])}}}function Zu(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function _6(e){let t=R6(e),n=e.schema.getTypeMap();for(let r of Object.values(n)){if(!(0,Fn.isNamedType)(r)){e.reportError(`Expected GraphQL named type but got: ${(0,_r.inspect)(r)}.`,r.astNode);continue}(0,E6.isIntrospectionType)(r)||Zu(e,r),(0,Fn.isObjectType)(r)||(0,Fn.isInterfaceType)(r)?(bF(e,r),AF(e,r)):(0,Fn.isUnionType)(r)?O6(e,r):(0,Fn.isEnumType)(r)?D6(e,r):(0,Fn.isInputObjectType)(r)&&(b6(e,r),t(r))}}function bF(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let o of n){if(Zu(e,o),!(0,Fn.isOutputType)(o.type)){var r;e.reportError(`The type of ${t.name}.${o.name} must be Output Type but got: ${(0,_r.inspect)(o.type)}.`,(r=o.astNode)===null||r===void 0?void 0:r.type)}for(let c of o.args){let l=c.name;if(Zu(e,c),!(0,Fn.isInputType)(c.type)){var i;e.reportError(`The type of ${t.name}.${o.name}(${l}:) must be Input Type but got: ${(0,_r.inspect)(c.type)}.`,(i=c.astNode)===null||i===void 0?void 0:i.type)}if((0,Fn.isRequiredArgument)(c)&&c.deprecationReason!=null){var a;e.reportError(`Required argument ${t.name}.${o.name}(${l}:) cannot be deprecated.`,[jI(c.astNode),(a=c.astNode)===null||a===void 0?void 0:a.type])}}}}function AF(e,t){let n=Object.create(null);for(let r of t.getInterfaces()){if(!(0,Fn.isInterfaceType)(r)){e.reportError(`Type ${(0,_r.inspect)(t)} must only implement Interface types, it cannot implement ${(0,_r.inspect)(r)}.`,tf(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,tf(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,tf(t,r));continue}n[r.name]=!0,S6(e,t,r),v6(e,t,r)}}function v6(e,t,n){let r=t.getFields();for(let l of Object.values(n.getFields())){let d=l.name,p=r[d];if(!p){e.reportError(`Interface field ${n.name}.${d} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!(0,DF.isTypeSubTypeOf)(e.schema,p.type,l.type)){var i,a;e.reportError(`Interface field ${n.name}.${d} expects type ${(0,_r.inspect)(l.type)} but ${t.name}.${d} is type ${(0,_r.inspect)(p.type)}.`,[(i=l.astNode)===null||i===void 0?void 0:i.type,(a=p.astNode)===null||a===void 0?void 0:a.type])}for(let y of l.args){let I=y.name,v=p.args.find(F=>F.name===I);if(!v){e.reportError(`Interface field argument ${n.name}.${d}(${I}:) expected but ${t.name}.${d} does not provide it.`,[y.astNode,p.astNode]);continue}if(!(0,DF.isEqualType)(y.type,v.type)){var o,c;e.reportError(`Interface field argument ${n.name}.${d}(${I}:) expects type ${(0,_r.inspect)(y.type)} but ${t.name}.${d}(${I}:) is type ${(0,_r.inspect)(v.type)}.`,[(o=y.astNode)===null||o===void 0?void 0:o.type,(c=v.astNode)===null||c===void 0?void 0:c.type])}}for(let y of p.args){let I=y.name;!l.args.find(F=>F.name===I)&&(0,Fn.isRequiredArgument)(y)&&e.reportError(`Object field ${t.name}.${d} includes required argument ${I} that is missing from the Interface field ${n.name}.${d}.`,[y.astNode,l.astNode])}}}function S6(e,t,n){let r=t.getInterfaces();for(let i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...tf(n,i),...tf(t,n)])}function O6(e,t){let n=t.getTypes();n.length===0&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);let r=Object.create(null);for(let i of n){if(r[i.name]){e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,RF(t,i.name));continue}r[i.name]=!0,(0,Fn.isObjectType)(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,_r.inspect)(i)}.`,RF(t,String(i)))}}function D6(e,t){let n=t.getValues();n.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(let r of n)Zu(e,r)}function b6(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let a of n){if(Zu(e,a),!(0,Fn.isInputType)(a.type)){var r;e.reportError(`The type of ${t.name}.${a.name} must be Input Type but got: ${(0,_r.inspect)(a.type)}.`,(r=a.astNode)===null||r===void 0?void 0:r.type)}if((0,Fn.isRequiredInputField)(a)&&a.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${a.name} cannot be deprecated.`,[jI(a.astNode),(i=a.astNode)===null||i===void 0?void 0:i.type])}t.isOneOf&&A6(t,a,e)}}function A6(e,t,n){if((0,Fn.isNonNullType)(t.type)){var r;n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(r=t.astNode)===null||r===void 0?void 0:r.type)}t.defaultValue!==void 0&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function R6(e){let t=Object.create(null),n=[],r=Object.create(null);return i;function i(a){if(t[a.name])return;t[a.name]=!0,r[a.name]=n.length;let o=Object.values(a.getFields());for(let c of o)if((0,Fn.isNonNullType)(c.type)&&(0,Fn.isInputObjectType)(c.type.ofType)){let l=c.type.ofType,d=r[l.name];if(n.push(c),d===void 0)i(l);else{let p=n.slice(d),y=p.map(I=>I.name).join(".");e.reportError(`Cannot reference Input Object "${l.name}" within itself through a series of non-null fields: "${y}".`,p.map(I=>I.astNode))}n.pop()}r[a.name]=void 0}}function tf(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(a=>{var o;return(o=a.interfaces)!==null&&o!==void 0?o:[]}).filter(a=>a.name.value===t.name)}function RF(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(a=>{var o;return(o=a.types)!==null&&o!==void 0?o:[]}).filter(a=>a.name.value===t)}function jI(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(n=>n.name.value===PF.GraphQLDeprecatedDirective.name)}});var Fa=w($I=>{"use strict";m();T();N();Object.defineProperty($I,"__esModule",{value:!0});$I.typeFromAST=GI;var KI=Ft(),wF=wt();function GI(e,t){switch(t.kind){case KI.Kind.LIST_TYPE:{let n=GI(e,t.type);return n&&new wF.GraphQLList(n)}case KI.Kind.NON_NULL_TYPE:{let n=GI(e,t.type);return n&&new wF.GraphQLNonNull(n)}case KI.Kind.NAMED_TYPE:return e.getType(t.name.value)}}});var nN=w(rf=>{"use strict";m();T();N();Object.defineProperty(rf,"__esModule",{value:!0});rf.TypeInfo=void 0;rf.visitWithTypeInfo=w6;var P6=ba(),wn=Ft(),LF=Qu(),Ln=wt(),cl=Fi(),CF=Fa(),QI=class{constructor(t,n,r){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=r!=null?r:F6,n&&((0,Ln.isInputType)(n)&&this._inputTypeStack.push(n),(0,Ln.isCompositeType)(n)&&this._parentTypeStack.push(n),(0,Ln.isOutputType)(n)&&this._typeStack.push(n))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(t){let n=this._schema;switch(t.kind){case wn.Kind.SELECTION_SET:{let i=(0,Ln.getNamedType)(this.getType());this._parentTypeStack.push((0,Ln.isCompositeType)(i)?i:void 0);break}case wn.Kind.FIELD:{let i=this.getParentType(),a,o;i&&(a=this._getFieldDef(n,i,t),a&&(o=a.type)),this._fieldDefStack.push(a),this._typeStack.push((0,Ln.isOutputType)(o)?o:void 0);break}case wn.Kind.DIRECTIVE:this._directive=n.getDirective(t.name.value);break;case wn.Kind.OPERATION_DEFINITION:{let i=n.getRootType(t.operation);this._typeStack.push((0,Ln.isObjectType)(i)?i:void 0);break}case wn.Kind.INLINE_FRAGMENT:case wn.Kind.FRAGMENT_DEFINITION:{let i=t.typeCondition,a=i?(0,CF.typeFromAST)(n,i):(0,Ln.getNamedType)(this.getType());this._typeStack.push((0,Ln.isOutputType)(a)?a:void 0);break}case wn.Kind.VARIABLE_DEFINITION:{let i=(0,CF.typeFromAST)(n,t.type);this._inputTypeStack.push((0,Ln.isInputType)(i)?i:void 0);break}case wn.Kind.ARGUMENT:{var r;let i,a,o=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();o&&(i=o.args.find(c=>c.name===t.name.value),i&&(a=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push((0,Ln.isInputType)(a)?a:void 0);break}case wn.Kind.LIST:{let i=(0,Ln.getNullableType)(this.getInputType()),a=(0,Ln.isListType)(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,Ln.isInputType)(a)?a:void 0);break}case wn.Kind.OBJECT_FIELD:{let i=(0,Ln.getNamedType)(this.getInputType()),a,o;(0,Ln.isInputObjectType)(i)&&(o=i.getFields()[t.name.value],o&&(a=o.type)),this._defaultValueStack.push(o?o.defaultValue:void 0),this._inputTypeStack.push((0,Ln.isInputType)(a)?a:void 0);break}case wn.Kind.ENUM:{let i=(0,Ln.getNamedType)(this.getInputType()),a;(0,Ln.isEnumType)(i)&&(a=i.getValue(t.value)),this._enumValue=a;break}default:}}leave(t){switch(t.kind){case wn.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case wn.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case wn.Kind.DIRECTIVE:this._directive=null;break;case wn.Kind.OPERATION_DEFINITION:case wn.Kind.INLINE_FRAGMENT:case wn.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case wn.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case wn.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case wn.Kind.LIST:case wn.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case wn.Kind.ENUM:this._enumValue=null;break;default:}}};rf.TypeInfo=QI;function F6(e,t,n){let r=n.name.value;if(r===cl.SchemaMetaFieldDef.name&&e.getQueryType()===t)return cl.SchemaMetaFieldDef;if(r===cl.TypeMetaFieldDef.name&&e.getQueryType()===t)return cl.TypeMetaFieldDef;if(r===cl.TypeNameMetaFieldDef.name&&(0,Ln.isCompositeType)(t))return cl.TypeNameMetaFieldDef;if((0,Ln.isObjectType)(t)||(0,Ln.isInterfaceType)(t))return t.getFields()[r]}function w6(e,t){return{enter(...n){let r=n[0];e.enter(r);let i=(0,LF.getEnterLeaveForKind)(t,r.kind).enter;if(i){let a=i.apply(t,n);return a!==void 0&&(e.leave(r),(0,P6.isNode)(a)&&e.enter(a)),a}},leave(...n){let r=n[0],i=(0,LF.getEnterLeaveForKind)(t,r.kind).leave,a;return i&&(a=i.apply(t,n)),e.leave(r),a}}}});var ec=w(wi=>{"use strict";m();T();N();Object.defineProperty(wi,"__esModule",{value:!0});wi.isConstValueNode=YI;wi.isDefinitionNode=L6;wi.isExecutableDefinitionNode=BF;wi.isSelectionNode=C6;wi.isTypeDefinitionNode=MF;wi.isTypeExtensionNode=qF;wi.isTypeNode=B6;wi.isTypeSystemDefinitionNode=kF;wi.isTypeSystemExtensionNode=xF;wi.isValueNode=UF;var Lt=Ft();function L6(e){return BF(e)||kF(e)||xF(e)}function BF(e){return e.kind===Lt.Kind.OPERATION_DEFINITION||e.kind===Lt.Kind.FRAGMENT_DEFINITION}function C6(e){return e.kind===Lt.Kind.FIELD||e.kind===Lt.Kind.FRAGMENT_SPREAD||e.kind===Lt.Kind.INLINE_FRAGMENT}function UF(e){return e.kind===Lt.Kind.VARIABLE||e.kind===Lt.Kind.INT||e.kind===Lt.Kind.FLOAT||e.kind===Lt.Kind.STRING||e.kind===Lt.Kind.BOOLEAN||e.kind===Lt.Kind.NULL||e.kind===Lt.Kind.ENUM||e.kind===Lt.Kind.LIST||e.kind===Lt.Kind.OBJECT}function YI(e){return UF(e)&&(e.kind===Lt.Kind.LIST?e.values.some(YI):e.kind===Lt.Kind.OBJECT?e.fields.some(t=>YI(t.value)):e.kind!==Lt.Kind.VARIABLE)}function B6(e){return e.kind===Lt.Kind.NAMED_TYPE||e.kind===Lt.Kind.LIST_TYPE||e.kind===Lt.Kind.NON_NULL_TYPE}function kF(e){return e.kind===Lt.Kind.SCHEMA_DEFINITION||MF(e)||e.kind===Lt.Kind.DIRECTIVE_DEFINITION}function MF(e){return e.kind===Lt.Kind.SCALAR_TYPE_DEFINITION||e.kind===Lt.Kind.OBJECT_TYPE_DEFINITION||e.kind===Lt.Kind.INTERFACE_TYPE_DEFINITION||e.kind===Lt.Kind.UNION_TYPE_DEFINITION||e.kind===Lt.Kind.ENUM_TYPE_DEFINITION||e.kind===Lt.Kind.INPUT_OBJECT_TYPE_DEFINITION}function xF(e){return e.kind===Lt.Kind.SCHEMA_EXTENSION||qF(e)}function qF(e){return e.kind===Lt.Kind.SCALAR_TYPE_EXTENSION||e.kind===Lt.Kind.OBJECT_TYPE_EXTENSION||e.kind===Lt.Kind.INTERFACE_TYPE_EXTENSION||e.kind===Lt.Kind.UNION_TYPE_EXTENSION||e.kind===Lt.Kind.ENUM_TYPE_EXTENSION||e.kind===Lt.Kind.INPUT_OBJECT_TYPE_EXTENSION}});var HI=w(JI=>{"use strict";m();T();N();Object.defineProperty(JI,"__esModule",{value:!0});JI.ExecutableDefinitionsRule=M6;var U6=ze(),VF=Ft(),k6=ec();function M6(e){return{Document(t){for(let n of t.definitions)if(!(0,k6.isExecutableDefinitionNode)(n)){let r=n.kind===VF.Kind.SCHEMA_DEFINITION||n.kind===VF.Kind.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new U6.GraphQLError(`The ${r} definition is not executable.`,{nodes:n}))}return!1}}}});var WI=w(zI=>{"use strict";m();T();N();Object.defineProperty(zI,"__esModule",{value:!0});zI.FieldsOnCorrectTypeRule=j6;var jF=eu(),x6=qd(),q6=nu(),V6=ze(),af=wt();function j6(e){return{Field(t){let n=e.getParentType();if(n&&!e.getFieldDef()){let i=e.getSchema(),a=t.name.value,o=(0,jF.didYouMean)("to use an inline fragment on",K6(i,n,a));o===""&&(o=(0,jF.didYouMean)(G6(n,a))),e.reportError(new V6.GraphQLError(`Cannot query field "${a}" on type "${n.name}".`+o,{nodes:t}))}}}}function K6(e,t,n){if(!(0,af.isAbstractType)(t))return[];let r=new Set,i=Object.create(null);for(let o of e.getPossibleTypes(t))if(o.getFields()[n]){r.add(o),i[o.name]=1;for(let c of o.getInterfaces()){var a;c.getFields()[n]&&(r.add(c),i[c.name]=((a=i[c.name])!==null&&a!==void 0?a:0)+1)}}return[...r].sort((o,c)=>{let l=i[c.name]-i[o.name];return l!==0?l:(0,af.isInterfaceType)(o)&&e.isSubType(o,c)?-1:(0,af.isInterfaceType)(c)&&e.isSubType(c,o)?1:(0,x6.naturalCompare)(o.name,c.name)}).map(o=>o.name)}function G6(e,t){if((0,af.isObjectType)(e)||(0,af.isInterfaceType)(e)){let n=Object.keys(e.getFields());return(0,q6.suggestionList)(t,n)}return[]}});var ZI=w(XI=>{"use strict";m();T();N();Object.defineProperty(XI,"__esModule",{value:!0});XI.FragmentsOnCompositeTypesRule=$6;var KF=ze(),GF=li(),$F=wt(),QF=Fa();function $6(e){return{InlineFragment(t){let n=t.typeCondition;if(n){let r=(0,QF.typeFromAST)(e.getSchema(),n);if(r&&!(0,$F.isCompositeType)(r)){let i=(0,GF.print)(n);e.reportError(new KF.GraphQLError(`Fragment cannot condition on non composite type "${i}".`,{nodes:n}))}}},FragmentDefinition(t){let n=(0,QF.typeFromAST)(e.getSchema(),t.typeCondition);if(n&&!(0,$F.isCompositeType)(n)){let r=(0,GF.print)(t.typeCondition);e.reportError(new KF.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}});var eg=w(rN=>{"use strict";m();T();N();Object.defineProperty(rN,"__esModule",{value:!0});rN.KnownArgumentNamesOnDirectivesRule=zF;rN.KnownArgumentNamesRule=J6;var YF=eu(),JF=nu(),HF=ze(),Q6=Ft(),Y6=Qr();function J6(e){return Q(x({},zF(e)),{Argument(t){let n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){let a=t.name.value,o=r.args.map(l=>l.name),c=(0,JF.suggestionList)(a,o);e.reportError(new HF.GraphQLError(`Unknown argument "${a}" on field "${i.name}.${r.name}".`+(0,YF.didYouMean)(c),{nodes:t}))}}})}function zF(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Y6.specifiedDirectives;for(let o of r)t[o.name]=o.args.map(c=>c.name);let i=e.getDocument().definitions;for(let o of i)if(o.kind===Q6.Kind.DIRECTIVE_DEFINITION){var a;let c=(a=o.arguments)!==null&&a!==void 0?a:[];t[o.name.value]=c.map(l=>l.name.value)}return{Directive(o){let c=o.name.value,l=t[c];if(o.arguments&&l)for(let d of o.arguments){let p=d.name.value;if(!l.includes(p)){let y=(0,JF.suggestionList)(p,l);e.reportError(new HF.GraphQLError(`Unknown argument "${p}" on directive "@${c}".`+(0,YF.didYouMean)(y),{nodes:d}))}}return!1}}}});var ig=w(rg=>{"use strict";m();T();N();Object.defineProperty(rg,"__esModule",{value:!0});rg.KnownDirectivesRule=W6;var H6=Xt(),tg=Ir(),WF=ze(),ng=ba(),er=nl(),hn=Ft(),z6=Qr();function W6(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():z6.specifiedDirectives;for(let a of r)t[a.name]=a.locations;let i=e.getDocument().definitions;for(let a of i)a.kind===hn.Kind.DIRECTIVE_DEFINITION&&(t[a.name.value]=a.locations.map(o=>o.value));return{Directive(a,o,c,l,d){let p=a.name.value,y=t[p];if(!y){e.reportError(new WF.GraphQLError(`Unknown directive "@${p}".`,{nodes:a}));return}let I=X6(d);I&&!y.includes(I)&&e.reportError(new WF.GraphQLError(`Directive "@${p}" may not be used on ${I}.`,{nodes:a}))}}}function X6(e){let t=e[e.length-1];switch("kind"in t||(0,tg.invariant)(!1),t.kind){case hn.Kind.OPERATION_DEFINITION:return Z6(t.operation);case hn.Kind.FIELD:return er.DirectiveLocation.FIELD;case hn.Kind.FRAGMENT_SPREAD:return er.DirectiveLocation.FRAGMENT_SPREAD;case hn.Kind.INLINE_FRAGMENT:return er.DirectiveLocation.INLINE_FRAGMENT;case hn.Kind.FRAGMENT_DEFINITION:return er.DirectiveLocation.FRAGMENT_DEFINITION;case hn.Kind.VARIABLE_DEFINITION:return er.DirectiveLocation.VARIABLE_DEFINITION;case hn.Kind.SCHEMA_DEFINITION:case hn.Kind.SCHEMA_EXTENSION:return er.DirectiveLocation.SCHEMA;case hn.Kind.SCALAR_TYPE_DEFINITION:case hn.Kind.SCALAR_TYPE_EXTENSION:return er.DirectiveLocation.SCALAR;case hn.Kind.OBJECT_TYPE_DEFINITION:case hn.Kind.OBJECT_TYPE_EXTENSION:return er.DirectiveLocation.OBJECT;case hn.Kind.FIELD_DEFINITION:return er.DirectiveLocation.FIELD_DEFINITION;case hn.Kind.INTERFACE_TYPE_DEFINITION:case hn.Kind.INTERFACE_TYPE_EXTENSION:return er.DirectiveLocation.INTERFACE;case hn.Kind.UNION_TYPE_DEFINITION:case hn.Kind.UNION_TYPE_EXTENSION:return er.DirectiveLocation.UNION;case hn.Kind.ENUM_TYPE_DEFINITION:case hn.Kind.ENUM_TYPE_EXTENSION:return er.DirectiveLocation.ENUM;case hn.Kind.ENUM_VALUE_DEFINITION:return er.DirectiveLocation.ENUM_VALUE;case hn.Kind.INPUT_OBJECT_TYPE_DEFINITION:case hn.Kind.INPUT_OBJECT_TYPE_EXTENSION:return er.DirectiveLocation.INPUT_OBJECT;case hn.Kind.INPUT_VALUE_DEFINITION:{let n=e[e.length-3];return"kind"in n||(0,tg.invariant)(!1),n.kind===hn.Kind.INPUT_OBJECT_TYPE_DEFINITION?er.DirectiveLocation.INPUT_FIELD_DEFINITION:er.DirectiveLocation.ARGUMENT_DEFINITION}default:(0,tg.invariant)(!1,"Unexpected kind: "+(0,H6.inspect)(t.kind))}}function Z6(e){switch(e){case ng.OperationTypeNode.QUERY:return er.DirectiveLocation.QUERY;case ng.OperationTypeNode.MUTATION:return er.DirectiveLocation.MUTATION;case ng.OperationTypeNode.SUBSCRIPTION:return er.DirectiveLocation.SUBSCRIPTION}}});var sg=w(ag=>{"use strict";m();T();N();Object.defineProperty(ag,"__esModule",{value:!0});ag.KnownFragmentNamesRule=tz;var ez=ze();function tz(e){return{FragmentSpread(t){let n=t.name.value;e.getFragment(n)||e.reportError(new ez.GraphQLError(`Unknown fragment "${n}".`,{nodes:t.name}))}}}});var cg=w(ug=>{"use strict";m();T();N();Object.defineProperty(ug,"__esModule",{value:!0});ug.KnownTypeNamesRule=oz;var nz=eu(),rz=nu(),iz=ze(),og=ec(),az=Fi(),sz=Pa();function oz(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(let a of e.getDocument().definitions)(0,og.isTypeDefinitionNode)(a)&&(r[a.name.value]=!0);let i=[...Object.keys(n),...Object.keys(r)];return{NamedType(a,o,c,l,d){let p=a.name.value;if(!n[p]&&!r[p]){var y;let I=(y=d[2])!==null&&y!==void 0?y:c,v=I!=null&&uz(I);if(v&&XF.includes(p))return;let F=(0,rz.suggestionList)(p,v?XF.concat(i):i);e.reportError(new iz.GraphQLError(`Unknown type "${p}".`+(0,nz.didYouMean)(F),{nodes:a}))}}}}var XF=[...sz.specifiedScalarTypes,...az.introspectionTypes].map(e=>e.name);function uz(e){return"kind"in e&&((0,og.isTypeSystemDefinitionNode)(e)||(0,og.isTypeSystemExtensionNode)(e))}});var dg=w(lg=>{"use strict";m();T();N();Object.defineProperty(lg,"__esModule",{value:!0});lg.LoneAnonymousOperationRule=dz;var cz=ze(),lz=Ft();function dz(e){let t=0;return{Document(n){t=n.definitions.filter(r=>r.kind===lz.Kind.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new cz.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:n}))}}}});var pg=w(fg=>{"use strict";m();T();N();Object.defineProperty(fg,"__esModule",{value:!0});fg.LoneSchemaDefinitionRule=fz;var ZF=ze();function fz(e){var t,n,r;let i=e.getSchema(),a=(t=(n=(r=i==null?void 0:i.astNode)!==null&&r!==void 0?r:i==null?void 0:i.getQueryType())!==null&&n!==void 0?n:i==null?void 0:i.getMutationType())!==null&&t!==void 0?t:i==null?void 0:i.getSubscriptionType(),o=0;return{SchemaDefinition(c){if(a){e.reportError(new ZF.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:c}));return}o>0&&e.reportError(new ZF.GraphQLError("Must provide only one schema definition.",{nodes:c})),++o}}}});var Ng=w(mg=>{"use strict";m();T();N();Object.defineProperty(mg,"__esModule",{value:!0});mg.MaxIntrospectionDepthRule=Nz;var pz=ze(),ew=Ft(),mz=3;function Nz(e){function t(n,r=Object.create(null),i=0){if(n.kind===ew.Kind.FRAGMENT_SPREAD){let a=n.name.value;if(r[a]===!0)return!1;let o=e.getFragment(a);if(!o)return!1;try{return r[a]=!0,t(o,r,i)}finally{r[a]=void 0}}if(n.kind===ew.Kind.FIELD&&(n.name.value==="fields"||n.name.value==="interfaces"||n.name.value==="possibleTypes"||n.name.value==="inputFields")&&(i++,i>=mz))return!0;if("selectionSet"in n&&n.selectionSet){for(let a of n.selectionSet.selections)if(t(a,r,i))return!0}return!1}return{Field(n){if((n.name.value==="__schema"||n.name.value==="__type")&&t(n))return e.reportError(new pz.GraphQLError("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}});var Eg=w(Tg=>{"use strict";m();T();N();Object.defineProperty(Tg,"__esModule",{value:!0});Tg.NoFragmentCyclesRule=Ez;var Tz=ze();function Ez(e){let t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(a){return i(a),!1}};function i(a){if(t[a.name.value])return;let o=a.name.value;t[o]=!0;let c=e.getFragmentSpreads(a.selectionSet);if(c.length!==0){r[o]=n.length;for(let l of c){let d=l.name.value,p=r[d];if(n.push(l),p===void 0){let y=e.getFragment(d);y&&i(y)}else{let y=n.slice(p),I=y.slice(0,-1).map(v=>'"'+v.name.value+'"').join(", ");e.reportError(new Tz.GraphQLError(`Cannot spread fragment "${d}" within itself`+(I!==""?` via ${I}.`:"."),{nodes:y}))}n.pop()}r[o]=void 0}}}});var yg=w(hg=>{"use strict";m();T();N();Object.defineProperty(hg,"__esModule",{value:!0});hg.NoUndefinedVariablesRule=yz;var hz=ze();function yz(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){let r=e.getRecursiveVariableUsages(n);for(let{node:i}of r){let a=i.name.value;t[a]!==!0&&e.reportError(new hz.GraphQLError(n.name?`Variable "$${a}" is not defined by operation "${n.name.value}".`:`Variable "$${a}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(n){t[n.variable.name.value]=!0}}}});var gg=w(Ig=>{"use strict";m();T();N();Object.defineProperty(Ig,"__esModule",{value:!0});Ig.NoUnusedFragmentsRule=gz;var Iz=ze();function gz(e){let t=[],n=[];return{OperationDefinition(r){return t.push(r),!1},FragmentDefinition(r){return n.push(r),!1},Document:{leave(){let r=Object.create(null);for(let i of t)for(let a of e.getRecursivelyReferencedFragments(i))r[a.name.value]=!0;for(let i of n){let a=i.name.value;r[a]!==!0&&e.reportError(new Iz.GraphQLError(`Fragment "${a}" is never used.`,{nodes:i}))}}}}}});var vg=w(_g=>{"use strict";m();T();N();Object.defineProperty(_g,"__esModule",{value:!0});_g.NoUnusedVariablesRule=vz;var _z=ze();function vz(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){let r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(let{node:a}of i)r[a.name.value]=!0;for(let a of t){let o=a.variable.name.value;r[o]!==!0&&e.reportError(new _z.GraphQLError(n.name?`Variable "$${o}" is never used in operation "${n.name.value}".`:`Variable "$${o}" is never used.`,{nodes:a}))}}},VariableDefinition(n){t.push(n)}}}});var Dg=w(Og=>{"use strict";m();T();N();Object.defineProperty(Og,"__esModule",{value:!0});Og.sortValueNode=Sg;var Sz=qd(),hs=Ft();function Sg(e){switch(e.kind){case hs.Kind.OBJECT:return Q(x({},e),{fields:Oz(e.fields)});case hs.Kind.LIST:return Q(x({},e),{values:e.values.map(Sg)});case hs.Kind.INT:case hs.Kind.FLOAT:case hs.Kind.STRING:case hs.Kind.BOOLEAN:case hs.Kind.NULL:case hs.Kind.ENUM:case hs.Kind.VARIABLE:return e}}function Oz(e){return e.map(t=>Q(x({},t),{value:Sg(t.value)})).sort((t,n)=>(0,Sz.naturalCompare)(t.name.value,n.name.value))}});var Lg=w(wg=>{"use strict";m();T();N();Object.defineProperty(wg,"__esModule",{value:!0});wg.OverlappingFieldsCanBeMergedRule=Rz;var tw=Xt(),Dz=ze(),bg=Ft(),bz=li(),Yr=wt(),Az=Dg(),rw=Fa();function iw(e){return Array.isArray(e)?e.map(([t,n])=>`subfields "${t}" conflict because `+iw(n)).join(" and "):e}function Rz(e){let t=new Pg,n=new Map;return{SelectionSet(r){let i=Pz(e,n,t,e.getParentType(),r);for(let[[a,o],c,l]of i){let d=iw(o);e.reportError(new Dz.GraphQLError(`Fields "${a}" conflict because ${d}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:c.concat(l)}))}}}}function Pz(e,t,n,r,i){let a=[],[o,c]=sN(e,t,r,i);if(wz(e,a,t,n,o),c.length!==0)for(let l=0;l1)for(let c=0;c[a.value,o]));return n.every(a=>{let o=a.value,c=i.get(a.name.value);return c===void 0?!1:nw(o)===nw(c)})}function nw(e){return(0,bz.print)((0,Az.sortValueNode)(e))}function Ag(e,t){return(0,Yr.isListType)(e)?(0,Yr.isListType)(t)?Ag(e.ofType,t.ofType):!0:(0,Yr.isListType)(t)?!0:(0,Yr.isNonNullType)(e)?(0,Yr.isNonNullType)(t)?Ag(e.ofType,t.ofType):!0:(0,Yr.isNonNullType)(t)?!0:(0,Yr.isLeafType)(e)||(0,Yr.isLeafType)(t)?e!==t:!1}function sN(e,t,n,r){let i=t.get(r);if(i)return i;let a=Object.create(null),o=Object.create(null);sw(e,n,r,a,o);let c=[a,Object.keys(o)];return t.set(r,c),c}function Rg(e,t,n){let r=t.get(n.selectionSet);if(r)return r;let i=(0,rw.typeFromAST)(e.getSchema(),n.typeCondition);return sN(e,t,i,n.selectionSet)}function sw(e,t,n,r,i){for(let a of n.selections)switch(a.kind){case bg.Kind.FIELD:{let o=a.name.value,c;((0,Yr.isObjectType)(t)||(0,Yr.isInterfaceType)(t))&&(c=t.getFields()[o]);let l=a.alias?a.alias.value:o;r[l]||(r[l]=[]),r[l].push([t,a,c]);break}case bg.Kind.FRAGMENT_SPREAD:i[a.name.value]=!0;break;case bg.Kind.INLINE_FRAGMENT:{let o=a.typeCondition,c=o?(0,rw.typeFromAST)(e.getSchema(),o):t;sw(e,c,a.selectionSet,r,i);break}}}function Cz(e,t,n,r){if(e.length>0)return[[t,e.map(([i])=>i)],[n,...e.map(([,i])=>i).flat()],[r,...e.map(([,,i])=>i).flat()]]}var Pg=class{constructor(){this._data=new Map}has(t,n,r){var i;let[a,o]=t{"use strict";m();T();N();Object.defineProperty(Bg,"__esModule",{value:!0});Bg.PossibleFragmentSpreadsRule=Uz;var oN=Xt(),ow=ze(),Cg=wt(),uw=Qd(),Bz=Fa();function Uz(e){return{InlineFragment(t){let n=e.getType(),r=e.getParentType();if((0,Cg.isCompositeType)(n)&&(0,Cg.isCompositeType)(r)&&!(0,uw.doTypesOverlap)(e.getSchema(),n,r)){let i=(0,oN.inspect)(r),a=(0,oN.inspect)(n);e.reportError(new ow.GraphQLError(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${a}".`,{nodes:t}))}},FragmentSpread(t){let n=t.name.value,r=kz(e,n),i=e.getParentType();if(r&&i&&!(0,uw.doTypesOverlap)(e.getSchema(),r,i)){let a=(0,oN.inspect)(i),o=(0,oN.inspect)(r);e.reportError(new ow.GraphQLError(`Fragment "${n}" cannot be spread here as objects of type "${a}" can never be of type "${o}".`,{nodes:t}))}}}}function kz(e,t){let n=e.getFragment(t);if(n){let r=(0,Bz.typeFromAST)(e.getSchema(),n.typeCondition);if((0,Cg.isCompositeType)(r))return r}}});var Mg=w(kg=>{"use strict";m();T();N();Object.defineProperty(kg,"__esModule",{value:!0});kg.PossibleTypeExtensionsRule=Vz;var Mz=eu(),lw=Xt(),dw=Ir(),xz=nu(),cw=ze(),gn=Ft(),qz=ec(),ll=wt();function Vz(e){let t=e.getSchema(),n=Object.create(null);for(let i of e.getDocument().definitions)(0,qz.isTypeDefinitionNode)(i)&&(n[i.name.value]=i);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(i){let a=i.name.value,o=n[a],c=t==null?void 0:t.getType(a),l;if(o?l=jz[o.kind]:c&&(l=Kz(c)),l){if(l!==i.kind){let d=Gz(i.kind);e.reportError(new cw.GraphQLError(`Cannot extend non-${d} type "${a}".`,{nodes:o?[o,i]:i}))}}else{let d=Object.keys(x(x({},n),t==null?void 0:t.getTypeMap())),p=(0,xz.suggestionList)(a,d);e.reportError(new cw.GraphQLError(`Cannot extend type "${a}" because it is not defined.`+(0,Mz.didYouMean)(p),{nodes:i.name}))}}}var jz={[gn.Kind.SCALAR_TYPE_DEFINITION]:gn.Kind.SCALAR_TYPE_EXTENSION,[gn.Kind.OBJECT_TYPE_DEFINITION]:gn.Kind.OBJECT_TYPE_EXTENSION,[gn.Kind.INTERFACE_TYPE_DEFINITION]:gn.Kind.INTERFACE_TYPE_EXTENSION,[gn.Kind.UNION_TYPE_DEFINITION]:gn.Kind.UNION_TYPE_EXTENSION,[gn.Kind.ENUM_TYPE_DEFINITION]:gn.Kind.ENUM_TYPE_EXTENSION,[gn.Kind.INPUT_OBJECT_TYPE_DEFINITION]:gn.Kind.INPUT_OBJECT_TYPE_EXTENSION};function Kz(e){if((0,ll.isScalarType)(e))return gn.Kind.SCALAR_TYPE_EXTENSION;if((0,ll.isObjectType)(e))return gn.Kind.OBJECT_TYPE_EXTENSION;if((0,ll.isInterfaceType)(e))return gn.Kind.INTERFACE_TYPE_EXTENSION;if((0,ll.isUnionType)(e))return gn.Kind.UNION_TYPE_EXTENSION;if((0,ll.isEnumType)(e))return gn.Kind.ENUM_TYPE_EXTENSION;if((0,ll.isInputObjectType)(e))return gn.Kind.INPUT_OBJECT_TYPE_EXTENSION;(0,dw.invariant)(!1,"Unexpected type: "+(0,lw.inspect)(e))}function Gz(e){switch(e){case gn.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case gn.Kind.OBJECT_TYPE_EXTENSION:return"object";case gn.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case gn.Kind.UNION_TYPE_EXTENSION:return"union";case gn.Kind.ENUM_TYPE_EXTENSION:return"enum";case gn.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,dw.invariant)(!1,"Unexpected kind: "+(0,lw.inspect)(e))}}});var qg=w(uN=>{"use strict";m();T();N();Object.defineProperty(uN,"__esModule",{value:!0});uN.ProvidedRequiredArgumentsOnDirectivesRule=Tw;uN.ProvidedRequiredArgumentsRule=Yz;var pw=Xt(),fw=tu(),mw=ze(),Nw=Ft(),$z=li(),xg=wt(),Qz=Qr();function Yz(e){return Q(x({},Tw(e)),{Field:{leave(t){var n;let r=e.getFieldDef();if(!r)return!1;let i=new Set((n=t.arguments)===null||n===void 0?void 0:n.map(a=>a.name.value));for(let a of r.args)if(!i.has(a.name)&&(0,xg.isRequiredArgument)(a)){let o=(0,pw.inspect)(a.type);e.reportError(new mw.GraphQLError(`Field "${r.name}" argument "${a.name}" of type "${o}" is required, but it was not provided.`,{nodes:t}))}}}})}function Tw(e){var t;let n=Object.create(null),r=e.getSchema(),i=(t=r==null?void 0:r.getDirectives())!==null&&t!==void 0?t:Qz.specifiedDirectives;for(let c of i)n[c.name]=(0,fw.keyMap)(c.args.filter(xg.isRequiredArgument),l=>l.name);let a=e.getDocument().definitions;for(let c of a)if(c.kind===Nw.Kind.DIRECTIVE_DEFINITION){var o;let l=(o=c.arguments)!==null&&o!==void 0?o:[];n[c.name.value]=(0,fw.keyMap)(l.filter(Jz),d=>d.name.value)}return{Directive:{leave(c){let l=c.name.value,d=n[l];if(d){var p;let y=(p=c.arguments)!==null&&p!==void 0?p:[],I=new Set(y.map(v=>v.name.value));for(let[v,F]of Object.entries(d))if(!I.has(v)){let k=(0,xg.isType)(F.type)?(0,pw.inspect)(F.type):(0,$z.print)(F.type);e.reportError(new mw.GraphQLError(`Directive "@${l}" argument "${v}" of type "${k}" is required, but it was not provided.`,{nodes:c}))}}}}}}function Jz(e){return e.type.kind===Nw.Kind.NON_NULL_TYPE&&e.defaultValue==null}});var jg=w(Vg=>{"use strict";m();T();N();Object.defineProperty(Vg,"__esModule",{value:!0});Vg.ScalarLeafsRule=Hz;var Ew=Xt(),hw=ze(),yw=wt();function Hz(e){return{Field(t){let n=e.getType(),r=t.selectionSet;if(n){if((0,yw.isLeafType)((0,yw.getNamedType)(n))){if(r){let i=t.name.value,a=(0,Ew.inspect)(n);e.reportError(new hw.GraphQLError(`Field "${i}" must not have a selection since type "${a}" has no subfields.`,{nodes:r}))}}else if(!r){let i=t.name.value,a=(0,Ew.inspect)(n);e.reportError(new hw.GraphQLError(`Field "${i}" of type "${a}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:t}))}}}}}});var Gg=w(Kg=>{"use strict";m();T();N();Object.defineProperty(Kg,"__esModule",{value:!0});Kg.printPathArray=zz;function zz(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}});var sf=w(cN=>{"use strict";m();T();N();Object.defineProperty(cN,"__esModule",{value:!0});cN.addPath=Wz;cN.pathToArray=Xz;function Wz(e,t,n){return{prev:e,key:t,typename:n}}function Xz(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}});var Qg=w($g=>{"use strict";m();T();N();Object.defineProperty($g,"__esModule",{value:!0});$g.coerceInputValue=aW;var Zz=eu(),lN=Xt(),eW=Ir(),tW=Xm(),nW=Da(),aa=sf(),rW=Gg(),iW=nu(),ys=ze(),of=wt();function aW(e,t,n=sW){return uf(e,t,n,void 0)}function sW(e,t,n){let r="Invalid value "+(0,lN.inspect)(t);throw e.length>0&&(r+=` at "value${(0,rW.printPathArray)(e)}"`),n.message=r+": "+n.message,n}function uf(e,t,n,r){if((0,of.isNonNullType)(t)){if(e!=null)return uf(e,t.ofType,n,r);n((0,aa.pathToArray)(r),e,new ys.GraphQLError(`Expected non-nullable type "${(0,lN.inspect)(t)}" not to be null.`));return}if(e==null)return null;if((0,of.isListType)(t)){let i=t.ofType;return(0,tW.isIterableObject)(e)?Array.from(e,(a,o)=>{let c=(0,aa.addPath)(r,o,void 0);return uf(a,i,n,c)}):[uf(e,i,n,r)]}if((0,of.isInputObjectType)(t)){if(!(0,nW.isObjectLike)(e)){n((0,aa.pathToArray)(r),e,new ys.GraphQLError(`Expected type "${t.name}" to be an object.`));return}let i={},a=t.getFields();for(let o of Object.values(a)){let c=e[o.name];if(c===void 0){if(o.defaultValue!==void 0)i[o.name]=o.defaultValue;else if((0,of.isNonNullType)(o.type)){let l=(0,lN.inspect)(o.type);n((0,aa.pathToArray)(r),e,new ys.GraphQLError(`Field "${o.name}" of required type "${l}" was not provided.`))}continue}i[o.name]=uf(c,o.type,n,(0,aa.addPath)(r,o.name,t.name))}for(let o of Object.keys(e))if(!a[o]){let c=(0,iW.suggestionList)(o,Object.keys(t.getFields()));n((0,aa.pathToArray)(r),e,new ys.GraphQLError(`Field "${o}" is not defined by type "${t.name}".`+(0,Zz.didYouMean)(c)))}if(t.isOneOf){let o=Object.keys(i);o.length!==1&&n((0,aa.pathToArray)(r),e,new ys.GraphQLError(`Exactly one key must be specified for OneOf type "${t.name}".`));let c=o[0],l=i[c];l===null&&n((0,aa.pathToArray)(r).concat(c),l,new ys.GraphQLError(`Field "${c}" must be non-null.`))}return i}if((0,of.isLeafType)(t)){let i;try{i=t.parseValue(e)}catch(a){a instanceof ys.GraphQLError?n((0,aa.pathToArray)(r),e,a):n((0,aa.pathToArray)(r),e,new ys.GraphQLError(`Expected type "${t.name}". `+a.message,{originalError:a}));return}return i===void 0&&n((0,aa.pathToArray)(r),e,new ys.GraphQLError(`Expected type "${t.name}".`)),i}(0,eW.invariant)(!1,"Unexpected input type: "+(0,lN.inspect)(t))}});var lf=w(Yg=>{"use strict";m();T();N();Object.defineProperty(Yg,"__esModule",{value:!0});Yg.valueFromAST=cf;var oW=Xt(),uW=Ir(),cW=tu(),dl=Ft(),tc=wt();function cf(e,t,n){if(e){if(e.kind===dl.Kind.VARIABLE){let r=e.name.value;if(n==null||n[r]===void 0)return;let i=n[r];return i===null&&(0,tc.isNonNullType)(t)?void 0:i}if((0,tc.isNonNullType)(t))return e.kind===dl.Kind.NULL?void 0:cf(e,t.ofType,n);if(e.kind===dl.Kind.NULL)return null;if((0,tc.isListType)(t)){let r=t.ofType;if(e.kind===dl.Kind.LIST){let a=[];for(let o of e.values)if(Iw(o,n)){if((0,tc.isNonNullType)(r))return;a.push(null)}else{let c=cf(o,r,n);if(c===void 0)return;a.push(c)}return a}let i=cf(e,r,n);return i===void 0?void 0:[i]}if((0,tc.isInputObjectType)(t)){if(e.kind!==dl.Kind.OBJECT)return;let r=Object.create(null),i=(0,cW.keyMap)(e.fields,a=>a.name.value);for(let a of Object.values(t.getFields())){let o=i[a.name];if(!o||Iw(o.value,n)){if(a.defaultValue!==void 0)r[a.name]=a.defaultValue;else if((0,tc.isNonNullType)(a.type))return;continue}let c=cf(o.value,a.type,n);if(c===void 0)return;r[a.name]=c}if(t.isOneOf){let a=Object.keys(r);if(a.length!==1||r[a[0]]===null)return}return r}if((0,tc.isLeafType)(t)){let r;try{r=t.parseLiteral(e,n)}catch(i){return}return r===void 0?void 0:r}(0,uW.invariant)(!1,"Unexpected input type: "+(0,oW.inspect)(t))}}function Iw(e,t){return e.kind===dl.Kind.VARIABLE&&(t==null||t[e.name.value]===void 0)}});var ml=w(df=>{"use strict";m();T();N();Object.defineProperty(df,"__esModule",{value:!0});df.getArgumentValues=Sw;df.getDirectiveValues=TW;df.getVariableValues=mW;var fl=Xt(),lW=tu(),dW=Gg(),Is=ze(),gw=Ft(),_w=li(),pl=wt(),fW=Qg(),pW=Fa(),vw=lf();function mW(e,t,n,r){let i=[],a=r==null?void 0:r.maxErrors;try{let o=NW(e,t,n,c=>{if(a!=null&&i.length>=a)throw new Is.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");i.push(c)});if(i.length===0)return{coerced:o}}catch(o){i.push(o)}return{errors:i}}function NW(e,t,n,r){let i={};for(let a of t){let o=a.variable.name.value,c=(0,pW.typeFromAST)(e,a.type);if(!(0,pl.isInputType)(c)){let d=(0,_w.print)(a.type);r(new Is.GraphQLError(`Variable "$${o}" expected value of type "${d}" which cannot be used as an input type.`,{nodes:a.type}));continue}if(!Ow(n,o)){if(a.defaultValue)i[o]=(0,vw.valueFromAST)(a.defaultValue,c);else if((0,pl.isNonNullType)(c)){let d=(0,fl.inspect)(c);r(new Is.GraphQLError(`Variable "$${o}" of required type "${d}" was not provided.`,{nodes:a}))}continue}let l=n[o];if(l===null&&(0,pl.isNonNullType)(c)){let d=(0,fl.inspect)(c);r(new Is.GraphQLError(`Variable "$${o}" of non-null type "${d}" must not be null.`,{nodes:a}));continue}i[o]=(0,fW.coerceInputValue)(l,c,(d,p,y)=>{let I=`Variable "$${o}" got invalid value `+(0,fl.inspect)(p);d.length>0&&(I+=` at "${o}${(0,dW.printPathArray)(d)}"`),r(new Is.GraphQLError(I+"; "+y.message,{nodes:a,originalError:y}))})}return i}function Sw(e,t,n){var r;let i={},a=(r=t.arguments)!==null&&r!==void 0?r:[],o=(0,lW.keyMap)(a,c=>c.name.value);for(let c of e.args){let l=c.name,d=c.type,p=o[l];if(!p){if(c.defaultValue!==void 0)i[l]=c.defaultValue;else if((0,pl.isNonNullType)(d))throw new Is.GraphQLError(`Argument "${l}" of required type "${(0,fl.inspect)(d)}" was not provided.`,{nodes:t});continue}let y=p.value,I=y.kind===gw.Kind.NULL;if(y.kind===gw.Kind.VARIABLE){let F=y.name.value;if(n==null||!Ow(n,F)){if(c.defaultValue!==void 0)i[l]=c.defaultValue;else if((0,pl.isNonNullType)(d))throw new Is.GraphQLError(`Argument "${l}" of required type "${(0,fl.inspect)(d)}" was provided the variable "$${F}" which was not provided a runtime value.`,{nodes:y});continue}I=n[F]==null}if(I&&(0,pl.isNonNullType)(d))throw new Is.GraphQLError(`Argument "${l}" of non-null type "${(0,fl.inspect)(d)}" must not be null.`,{nodes:y});let v=(0,vw.valueFromAST)(y,d,n);if(v===void 0)throw new Is.GraphQLError(`Argument "${l}" has invalid value ${(0,_w.print)(y)}.`,{nodes:y});i[l]=v}return i}function TW(e,t,n){var r;let i=(r=t.directives)===null||r===void 0?void 0:r.find(a=>a.name.value===e.name);if(i)return Sw(e,i,n)}function Ow(e,t){return Object.prototype.hasOwnProperty.call(e,t)}});var pN=w(fN=>{"use strict";m();T();N();Object.defineProperty(fN,"__esModule",{value:!0});fN.collectFields=yW;fN.collectSubfields=IW;var Jg=Ft(),EW=wt(),Dw=Qr(),hW=Fa(),bw=ml();function yW(e,t,n,r,i){let a=new Map;return dN(e,t,n,r,i,a,new Set),a}function IW(e,t,n,r,i){let a=new Map,o=new Set;for(let c of i)c.selectionSet&&dN(e,t,n,r,c.selectionSet,a,o);return a}function dN(e,t,n,r,i,a,o){for(let c of i.selections)switch(c.kind){case Jg.Kind.FIELD:{if(!Hg(n,c))continue;let l=gW(c),d=a.get(l);d!==void 0?d.push(c):a.set(l,[c]);break}case Jg.Kind.INLINE_FRAGMENT:{if(!Hg(n,c)||!Aw(e,c,r))continue;dN(e,t,n,r,c.selectionSet,a,o);break}case Jg.Kind.FRAGMENT_SPREAD:{let l=c.name.value;if(o.has(l)||!Hg(n,c))continue;o.add(l);let d=t[l];if(!d||!Aw(e,d,r))continue;dN(e,t,n,r,d.selectionSet,a,o);break}}}function Hg(e,t){let n=(0,bw.getDirectiveValues)(Dw.GraphQLSkipDirective,t,e);if((n==null?void 0:n.if)===!0)return!1;let r=(0,bw.getDirectiveValues)(Dw.GraphQLIncludeDirective,t,e);return(r==null?void 0:r.if)!==!1}function Aw(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=(0,hW.typeFromAST)(e,r);return i===n?!0:(0,EW.isAbstractType)(i)?e.isSubType(i,n):!1}function gW(e){return e.alias?e.alias.value:e.name.value}});var Wg=w(zg=>{"use strict";m();T();N();Object.defineProperty(zg,"__esModule",{value:!0});zg.SingleFieldSubscriptionsRule=SW;var Rw=ze(),_W=Ft(),vW=pN();function SW(e){return{OperationDefinition(t){if(t.operation==="subscription"){let n=e.getSchema(),r=n.getSubscriptionType();if(r){let i=t.name?t.name.value:null,a=Object.create(null),o=e.getDocument(),c=Object.create(null);for(let d of o.definitions)d.kind===_W.Kind.FRAGMENT_DEFINITION&&(c[d.name.value]=d);let l=(0,vW.collectFields)(n,c,a,r,t.selectionSet);if(l.size>1){let y=[...l.values()].slice(1).flat();e.reportError(new Rw.GraphQLError(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:y}))}for(let d of l.values())d[0].name.value.startsWith("__")&&e.reportError(new Rw.GraphQLError(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:d}))}}}}}});var mN=w(Xg=>{"use strict";m();T();N();Object.defineProperty(Xg,"__esModule",{value:!0});Xg.groupBy=OW;function OW(e,t){let n=new Map;for(let r of e){let i=t(r),a=n.get(i);a===void 0?n.set(i,[r]):a.push(r)}return n}});var e_=w(Zg=>{"use strict";m();T();N();Object.defineProperty(Zg,"__esModule",{value:!0});Zg.UniqueArgumentDefinitionNamesRule=AW;var DW=mN(),bW=ze();function AW(e){return{DirectiveDefinition(r){var i;let a=(i=r.arguments)!==null&&i!==void 0?i:[];return n(`@${r.name.value}`,a)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(r){var i;let a=r.name.value,o=(i=r.fields)!==null&&i!==void 0?i:[];for(let l of o){var c;let d=l.name.value,p=(c=l.arguments)!==null&&c!==void 0?c:[];n(`${a}.${d}`,p)}return!1}function n(r,i){let a=(0,DW.groupBy)(i,o=>o.name.value);for(let[o,c]of a)c.length>1&&e.reportError(new bW.GraphQLError(`Argument "${r}(${o}:)" can only be defined once.`,{nodes:c.map(l=>l.name)}));return!1}}});var n_=w(t_=>{"use strict";m();T();N();Object.defineProperty(t_,"__esModule",{value:!0});t_.UniqueArgumentNamesRule=FW;var RW=mN(),PW=ze();function FW(e){return{Field:t,Directive:t};function t(n){var r;let i=(r=n.arguments)!==null&&r!==void 0?r:[],a=(0,RW.groupBy)(i,o=>o.name.value);for(let[o,c]of a)c.length>1&&e.reportError(new PW.GraphQLError(`There can be only one argument named "${o}".`,{nodes:c.map(l=>l.name)}))}}});var i_=w(r_=>{"use strict";m();T();N();Object.defineProperty(r_,"__esModule",{value:!0});r_.UniqueDirectiveNamesRule=wW;var Pw=ze();function wW(e){let t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){let i=r.name.value;if(n!=null&&n.getDirective(i)){e.reportError(new Pw.GraphQLError(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}));return}return t[i]?e.reportError(new Pw.GraphQLError(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}}});var o_=w(s_=>{"use strict";m();T();N();Object.defineProperty(s_,"__esModule",{value:!0});s_.UniqueDirectivesPerLocationRule=BW;var LW=ze(),a_=Ft(),Fw=ec(),CW=Qr();function BW(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():CW.specifiedDirectives;for(let c of r)t[c.name]=!c.isRepeatable;let i=e.getDocument().definitions;for(let c of i)c.kind===a_.Kind.DIRECTIVE_DEFINITION&&(t[c.name.value]=!c.repeatable);let a=Object.create(null),o=Object.create(null);return{enter(c){if(!("directives"in c)||!c.directives)return;let l;if(c.kind===a_.Kind.SCHEMA_DEFINITION||c.kind===a_.Kind.SCHEMA_EXTENSION)l=a;else if((0,Fw.isTypeDefinitionNode)(c)||(0,Fw.isTypeExtensionNode)(c)){let d=c.name.value;l=o[d],l===void 0&&(o[d]=l=Object.create(null))}else l=Object.create(null);for(let d of c.directives){let p=d.name.value;t[p]&&(l[p]?e.reportError(new LW.GraphQLError(`The directive "@${p}" can only be used once at this location.`,{nodes:[l[p],d]})):l[p]=d)}}}}});var c_=w(u_=>{"use strict";m();T();N();Object.defineProperty(u_,"__esModule",{value:!0});u_.UniqueEnumValueNamesRule=kW;var ww=ze(),UW=wt();function kW(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(a){var o;let c=a.name.value;r[c]||(r[c]=Object.create(null));let l=(o=a.values)!==null&&o!==void 0?o:[],d=r[c];for(let p of l){let y=p.name.value,I=n[c];(0,UW.isEnumType)(I)&&I.getValue(y)?e.reportError(new ww.GraphQLError(`Enum value "${c}.${y}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:p.name})):d[y]?e.reportError(new ww.GraphQLError(`Enum value "${c}.${y}" can only be defined once.`,{nodes:[d[y],p.name]})):d[y]=p.name}return!1}}});var f_=w(d_=>{"use strict";m();T();N();Object.defineProperty(d_,"__esModule",{value:!0});d_.UniqueFieldDefinitionNamesRule=MW;var Lw=ze(),l_=wt();function MW(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(a){var o;let c=a.name.value;r[c]||(r[c]=Object.create(null));let l=(o=a.fields)!==null&&o!==void 0?o:[],d=r[c];for(let p of l){let y=p.name.value;xW(n[c],y)?e.reportError(new Lw.GraphQLError(`Field "${c}.${y}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:p.name})):d[y]?e.reportError(new Lw.GraphQLError(`Field "${c}.${y}" can only be defined once.`,{nodes:[d[y],p.name]})):d[y]=p.name}return!1}}function xW(e,t){return(0,l_.isObjectType)(e)||(0,l_.isInterfaceType)(e)||(0,l_.isInputObjectType)(e)?e.getFields()[t]!=null:!1}});var m_=w(p_=>{"use strict";m();T();N();Object.defineProperty(p_,"__esModule",{value:!0});p_.UniqueFragmentNamesRule=VW;var qW=ze();function VW(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let r=n.name.value;return t[r]?e.reportError(new qW.GraphQLError(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}});var T_=w(N_=>{"use strict";m();T();N();Object.defineProperty(N_,"__esModule",{value:!0});N_.UniqueInputFieldNamesRule=GW;var jW=Ir(),KW=ze();function GW(e){let t=[],n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){let r=t.pop();r||(0,jW.invariant)(!1),n=r}},ObjectField(r){let i=r.name.value;n[i]?e.reportError(new KW.GraphQLError(`There can be only one input field named "${i}".`,{nodes:[n[i],r.name]})):n[i]=r.name}}}});var h_=w(E_=>{"use strict";m();T();N();Object.defineProperty(E_,"__esModule",{value:!0});E_.UniqueOperationNamesRule=QW;var $W=ze();function QW(e){let t=Object.create(null);return{OperationDefinition(n){let r=n.name;return r&&(t[r.value]?e.reportError(new $W.GraphQLError(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}});var I_=w(y_=>{"use strict";m();T();N();Object.defineProperty(y_,"__esModule",{value:!0});y_.UniqueOperationTypesRule=YW;var Cw=ze();function YW(e){let t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(a){var o;let c=(o=a.operationTypes)!==null&&o!==void 0?o:[];for(let l of c){let d=l.operation,p=n[d];r[d]?e.reportError(new Cw.GraphQLError(`Type for ${d} already defined in the schema. It cannot be redefined.`,{nodes:l})):p?e.reportError(new Cw.GraphQLError(`There can be only one ${d} type in schema.`,{nodes:[p,l]})):n[d]=l}return!1}}});var __=w(g_=>{"use strict";m();T();N();Object.defineProperty(g_,"__esModule",{value:!0});g_.UniqueTypeNamesRule=JW;var Bw=ze();function JW(e){let t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(i){let a=i.name.value;if(n!=null&&n.getType(a)){e.reportError(new Bw.GraphQLError(`Type "${a}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return t[a]?e.reportError(new Bw.GraphQLError(`There can be only one type named "${a}".`,{nodes:[t[a],i.name]})):t[a]=i.name,!1}}});var S_=w(v_=>{"use strict";m();T();N();Object.defineProperty(v_,"__esModule",{value:!0});v_.UniqueVariableNamesRule=WW;var HW=mN(),zW=ze();function WW(e){return{OperationDefinition(t){var n;let r=(n=t.variableDefinitions)!==null&&n!==void 0?n:[],i=(0,HW.groupBy)(r,a=>a.variable.name.value);for(let[a,o]of i)o.length>1&&e.reportError(new zW.GraphQLError(`There can be only one variable named "$${a}".`,{nodes:o.map(c=>c.variable.name)}))}}}});var b_=w(D_=>{"use strict";m();T();N();Object.defineProperty(D_,"__esModule",{value:!0});D_.ValuesOfCorrectTypeRule=t4;var XW=eu(),ff=Xt(),ZW=tu(),e4=nu(),La=ze(),O_=Ft(),NN=li(),wa=wt();function t4(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(n){t[n.variable.name.value]=n},ListValue(n){let r=(0,wa.getNullableType)(e.getParentInputType());if(!(0,wa.isListType)(r))return nc(e,n),!1},ObjectValue(n){let r=(0,wa.getNamedType)(e.getInputType());if(!(0,wa.isInputObjectType)(r))return nc(e,n),!1;let i=(0,ZW.keyMap)(n.fields,a=>a.name.value);for(let a of Object.values(r.getFields()))if(!i[a.name]&&(0,wa.isRequiredInputField)(a)){let c=(0,ff.inspect)(a.type);e.reportError(new La.GraphQLError(`Field "${r.name}.${a.name}" of required type "${c}" was not provided.`,{nodes:n}))}r.isOneOf&&n4(e,n,r,i,t)},ObjectField(n){let r=(0,wa.getNamedType)(e.getParentInputType());if(!e.getInputType()&&(0,wa.isInputObjectType)(r)){let a=(0,e4.suggestionList)(n.name.value,Object.keys(r.getFields()));e.reportError(new La.GraphQLError(`Field "${n.name.value}" is not defined by type "${r.name}".`+(0,XW.didYouMean)(a),{nodes:n}))}},NullValue(n){let r=e.getInputType();(0,wa.isNonNullType)(r)&&e.reportError(new La.GraphQLError(`Expected value of type "${(0,ff.inspect)(r)}", found ${(0,NN.print)(n)}.`,{nodes:n}))},EnumValue:n=>nc(e,n),IntValue:n=>nc(e,n),FloatValue:n=>nc(e,n),StringValue:n=>nc(e,n),BooleanValue:n=>nc(e,n)}}function nc(e,t){let n=e.getInputType();if(!n)return;let r=(0,wa.getNamedType)(n);if(!(0,wa.isLeafType)(r)){let i=(0,ff.inspect)(n);e.reportError(new La.GraphQLError(`Expected value of type "${i}", found ${(0,NN.print)(t)}.`,{nodes:t}));return}try{if(r.parseLiteral(t,void 0)===void 0){let a=(0,ff.inspect)(n);e.reportError(new La.GraphQLError(`Expected value of type "${a}", found ${(0,NN.print)(t)}.`,{nodes:t}))}}catch(i){let a=(0,ff.inspect)(n);i instanceof La.GraphQLError?e.reportError(i):e.reportError(new La.GraphQLError(`Expected value of type "${a}", found ${(0,NN.print)(t)}; `+i.message,{nodes:t,originalError:i}))}}function n4(e,t,n,r,i){var a;let o=Object.keys(r);if(o.length!==1){e.reportError(new La.GraphQLError(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));return}let l=(a=r[o[0]])===null||a===void 0?void 0:a.value,d=!l||l.kind===O_.Kind.NULL,p=(l==null?void 0:l.kind)===O_.Kind.VARIABLE;if(d){e.reportError(new La.GraphQLError(`Field "${n.name}.${o[0]}" must be non-null.`,{nodes:[t]}));return}if(p){let y=l.name.value;i[y].type.kind!==O_.Kind.NON_NULL_TYPE&&e.reportError(new La.GraphQLError(`Variable "${y}" must be non-nullable to be used for OneOf Input Object "${n.name}".`,{nodes:[t]}))}}});var R_=w(A_=>{"use strict";m();T();N();Object.defineProperty(A_,"__esModule",{value:!0});A_.VariablesAreInputTypesRule=o4;var r4=ze(),i4=li(),a4=wt(),s4=Fa();function o4(e){return{VariableDefinition(t){let n=(0,s4.typeFromAST)(e.getSchema(),t.type);if(n!==void 0&&!(0,a4.isInputType)(n)){let r=t.variable.name.value,i=(0,i4.print)(t.type);e.reportError(new r4.GraphQLError(`Variable "$${r}" cannot be non-input type "${i}".`,{nodes:t.type}))}}}}});var F_=w(P_=>{"use strict";m();T();N();Object.defineProperty(P_,"__esModule",{value:!0});P_.VariablesInAllowedPositionRule=d4;var Uw=Xt(),u4=ze(),c4=Ft(),kw=wt(),Mw=Qd(),l4=Fa();function d4(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){let r=e.getRecursiveVariableUsages(n);for(let{node:i,type:a,defaultValue:o}of r){let c=i.name.value,l=t[c];if(l&&a){let d=e.getSchema(),p=(0,l4.typeFromAST)(d,l.type);if(p&&!f4(d,p,l.defaultValue,a,o)){let y=(0,Uw.inspect)(p),I=(0,Uw.inspect)(a);e.reportError(new u4.GraphQLError(`Variable "$${c}" of type "${y}" used in position expecting type "${I}".`,{nodes:[l,i]}))}}}}},VariableDefinition(n){t[n.variable.name.value]=n}}}function f4(e,t,n,r,i){if((0,kw.isNonNullType)(r)&&!(0,kw.isNonNullType)(t)){if(!(n!=null&&n.kind!==c4.Kind.NULL)&&!(i!==void 0))return!1;let c=r.ofType;return(0,Mw.isTypeSubTypeOf)(e,t,c)}return(0,Mw.isTypeSubTypeOf)(e,t,r)}});var w_=w(su=>{"use strict";m();T();N();Object.defineProperty(su,"__esModule",{value:!0});su.specifiedSDLRules=su.specifiedRules=su.recommendedRules=void 0;var p4=HI(),m4=WI(),N4=ZI(),xw=eg(),qw=ig(),T4=sg(),Vw=cg(),E4=dg(),h4=pg(),y4=Ng(),I4=Eg(),g4=yg(),_4=gg(),v4=vg(),S4=Lg(),O4=Ug(),D4=Mg(),jw=qg(),b4=jg(),A4=Wg(),R4=e_(),Kw=n_(),P4=i_(),Gw=o_(),F4=c_(),w4=f_(),L4=m_(),$w=T_(),C4=h_(),B4=I_(),U4=__(),k4=S_(),M4=b_(),x4=R_(),q4=F_(),Qw=Object.freeze([y4.MaxIntrospectionDepthRule]);su.recommendedRules=Qw;var V4=Object.freeze([p4.ExecutableDefinitionsRule,C4.UniqueOperationNamesRule,E4.LoneAnonymousOperationRule,A4.SingleFieldSubscriptionsRule,Vw.KnownTypeNamesRule,N4.FragmentsOnCompositeTypesRule,x4.VariablesAreInputTypesRule,b4.ScalarLeafsRule,m4.FieldsOnCorrectTypeRule,L4.UniqueFragmentNamesRule,T4.KnownFragmentNamesRule,_4.NoUnusedFragmentsRule,O4.PossibleFragmentSpreadsRule,I4.NoFragmentCyclesRule,k4.UniqueVariableNamesRule,g4.NoUndefinedVariablesRule,v4.NoUnusedVariablesRule,qw.KnownDirectivesRule,Gw.UniqueDirectivesPerLocationRule,xw.KnownArgumentNamesRule,Kw.UniqueArgumentNamesRule,M4.ValuesOfCorrectTypeRule,jw.ProvidedRequiredArgumentsRule,q4.VariablesInAllowedPositionRule,S4.OverlappingFieldsCanBeMergedRule,$w.UniqueInputFieldNamesRule,...Qw]);su.specifiedRules=V4;var j4=Object.freeze([h4.LoneSchemaDefinitionRule,B4.UniqueOperationTypesRule,U4.UniqueTypeNamesRule,F4.UniqueEnumValueNamesRule,w4.UniqueFieldDefinitionNamesRule,R4.UniqueArgumentDefinitionNamesRule,P4.UniqueDirectiveNamesRule,Vw.KnownTypeNamesRule,qw.KnownDirectivesRule,Gw.UniqueDirectivesPerLocationRule,D4.PossibleTypeExtensionsRule,xw.KnownArgumentNamesOnDirectivesRule,Kw.UniqueArgumentNamesRule,$w.UniqueInputFieldNamesRule,jw.ProvidedRequiredArgumentsOnDirectivesRule]);su.specifiedSDLRules=j4});var B_=w(ou=>{"use strict";m();T();N();Object.defineProperty(ou,"__esModule",{value:!0});ou.ValidationContext=ou.SDLValidationContext=ou.ASTValidationContext=void 0;var Yw=Ft(),K4=Qu(),Jw=nN(),pf=class{constructor(t,n){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(t){this._onError(t)}getDocument(){return this._ast}getFragment(t){let n;if(this._fragments)n=this._fragments;else{n=Object.create(null);for(let r of this.getDocument().definitions)r.kind===Yw.Kind.FRAGMENT_DEFINITION&&(n[r.name.value]=r);this._fragments=n}return n[t]}getFragmentSpreads(t){let n=this._fragmentSpreads.get(t);if(!n){n=[];let r=[t],i;for(;i=r.pop();)for(let a of i.selections)a.kind===Yw.Kind.FRAGMENT_SPREAD?n.push(a):a.selectionSet&&r.push(a.selectionSet);this._fragmentSpreads.set(t,n)}return n}getRecursivelyReferencedFragments(t){let n=this._recursivelyReferencedFragments.get(t);if(!n){n=[];let r=Object.create(null),i=[t.selectionSet],a;for(;a=i.pop();)for(let o of this.getFragmentSpreads(a)){let c=o.name.value;if(r[c]!==!0){r[c]=!0;let l=this.getFragment(c);l&&(n.push(l),i.push(l.selectionSet))}}this._recursivelyReferencedFragments.set(t,n)}return n}};ou.ASTValidationContext=pf;var L_=class extends pf{constructor(t,n,r){super(t,r),this._schema=n}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}};ou.SDLValidationContext=L_;var C_=class extends pf{constructor(t,n,r,i){super(n,i),this._schema=t,this._typeInfo=r,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(t){let n=this._variableUsages.get(t);if(!n){let r=[],i=new Jw.TypeInfo(this._schema);(0,K4.visit)(t,(0,Jw.visitWithTypeInfo)(i,{VariableDefinition:()=>!1,Variable(a){r.push({node:a,type:i.getInputType(),defaultValue:i.getDefaultValue()})}})),n=r,this._variableUsages.set(t,n)}return n}getRecursiveVariableUsages(t){let n=this._recursiveVariableUsages.get(t);if(!n){n=this.getVariableUsages(t);for(let r of this.getRecursivelyReferencedFragments(t))n=n.concat(this.getVariableUsages(r));this._recursiveVariableUsages.set(t,n)}return n}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}};ou.ValidationContext=C_});var Tl=w(Nl=>{"use strict";m();T();N();Object.defineProperty(Nl,"__esModule",{value:!0});Nl.assertValidSDL=J4;Nl.assertValidSDLExtension=H4;Nl.validate=Y4;Nl.validateSDL=U_;var G4=Br(),$4=ze(),TN=Qu(),Q4=nf(),Hw=nN(),zw=w_(),Ww=B_();function Y4(e,t,n=zw.specifiedRules,r,i=new Hw.TypeInfo(e)){var a;let o=(a=r==null?void 0:r.maxErrors)!==null&&a!==void 0?a:100;t||(0,G4.devAssert)(!1,"Must provide document."),(0,Q4.assertValidSchema)(e);let c=Object.freeze({}),l=[],d=new Ww.ValidationContext(e,t,i,y=>{if(l.length>=o)throw l.push(new $4.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),c;l.push(y)}),p=(0,TN.visitInParallel)(n.map(y=>y(d)));try{(0,TN.visit)(t,(0,Hw.visitWithTypeInfo)(i,p))}catch(y){if(y!==c)throw y}return l}function U_(e,t,n=zw.specifiedSDLRules){let r=[],i=new Ww.SDLValidationContext(e,t,o=>{r.push(o)}),a=n.map(o=>o(i));return(0,TN.visit)(e,(0,TN.visitInParallel)(a)),r}function J4(e){let t=U_(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` `))}function H4(e,t){let n=U_(e,t);if(n.length!==0)throw new Error(n.map(r=>r.message).join(` -`))}});var Xw=w(k_=>{"use strict";m();T();N();Object.defineProperty(k_,"__esModule",{value:!0});k_.memoize3=z4;function z4(e){let t;return function(r,i,a){t===void 0&&(t=new WeakMap);let o=t.get(r);o===void 0&&(o=new WeakMap,t.set(r,o));let c=o.get(i);c===void 0&&(c=new WeakMap,o.set(i,c));let l=c.get(a);return l===void 0&&(l=e(r,i,a),c.set(a,l)),l}}});var Zw=w(M_=>{"use strict";m();T();N();Object.defineProperty(M_,"__esModule",{value:!0});M_.promiseForObject=W4;function W4(e){return Promise.all(Object.values(e)).then(t=>{let n=Object.create(null);for(let[r,i]of Object.keys(e).entries())n[i]=t[r];return n})}});var eL=w(x_=>{"use strict";m();T();N();Object.defineProperty(x_,"__esModule",{value:!0});x_.promiseReduce=Z4;var X4=hm();function Z4(e,t,n){let r=n;for(let i of e)r=(0,X4.isPromise)(r)?r.then(a=>t(a,i)):t(r,i);return r}});var tL=w(V_=>{"use strict";m();T();N();Object.defineProperty(V_,"__esModule",{value:!0});V_.toError=t8;var e8=Xt();function t8(e){return e instanceof Error?e:new q_(e)}var q_=class extends Error{constructor(t){super("Unexpected error value: "+(0,e8.inspect)(t)),this.name="NonErrorThrown",this.thrownValue=t}}});var EN=w(j_=>{"use strict";m();T();N();Object.defineProperty(j_,"__esModule",{value:!0});j_.locatedError=i8;var n8=tL(),r8=ze();function i8(e,t,n){var r;let i=(0,n8.toError)(e);return a8(i)?i:new r8.GraphQLError(i.message,{nodes:(r=i.nodes)!==null&&r!==void 0?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}function a8(e){return Array.isArray(e.path)}});var Nf=w(Bi=>{"use strict";m();T();N();Object.defineProperty(Bi,"__esModule",{value:!0});Bi.assertValidExecutionArguments=cL;Bi.buildExecutionContext=lL;Bi.buildResolveInfo=fL;Bi.defaultTypeResolver=Bi.defaultFieldResolver=void 0;Bi.execute=uL;Bi.executeSync=f8;Bi.getFieldDef=mL;var G_=Br(),rc=Xt(),s8=Ir(),o8=Xm(),Y_=Da(),sa=hm(),u8=Xw(),ic=sf(),nL=Zw(),c8=eL(),Ci=ze(),yN=EN(),K_=ba(),rL=Ft(),uu=wt(),El=wi(),l8=nf(),sL=pN(),oL=ml(),d8=(0,u8.memoize3)((e,t,n)=>(0,sL.collectSubfields)(e.schema,e.fragments,e.variableValues,t,n));function uL(e){arguments.length<2||(0,G_.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,document:n,variableValues:r,rootValue:i}=e;cL(t,n,r);let a=lL(e);if(!("schema"in a))return{errors:a};try{let{operation:o}=a,c=p8(a,o,i);return(0,sa.isPromise)(c)?c.then(l=>hN(l,a.errors),l=>(a.errors.push(l),hN(null,a.errors))):hN(c,a.errors)}catch(o){return a.errors.push(o),hN(null,a.errors)}}function f8(e){let t=uL(e);if((0,sa.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function hN(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function cL(e,t,n){t||(0,G_.devAssert)(!1,"Must provide document."),(0,l8.assertValidSchema)(e),n==null||(0,Y_.isObjectLike)(n)||(0,G_.devAssert)(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function lL(e){var t,n;let{schema:r,document:i,rootValue:a,contextValue:o,variableValues:c,operationName:l,fieldResolver:d,typeResolver:p,subscribeFieldResolver:y}=e,I,v=Object.create(null);for(let K of i.definitions)switch(K.kind){case rL.Kind.OPERATION_DEFINITION:if(l==null){if(I!==void 0)return[new Ci.GraphQLError("Must provide operation name if query contains multiple operations.")];I=K}else((t=K.name)===null||t===void 0?void 0:t.value)===l&&(I=K);break;case rL.Kind.FRAGMENT_DEFINITION:v[K.name.value]=K;break;default:}if(!I)return l!=null?[new Ci.GraphQLError(`Unknown operation named "${l}".`)]:[new Ci.GraphQLError("Must provide an operation.")];let F=(n=I.variableDefinitions)!==null&&n!==void 0?n:[],k=(0,oL.getVariableValues)(r,F,c!=null?c:{},{maxErrors:50});return k.errors?k.errors:{schema:r,fragments:v,rootValue:a,contextValue:o,operation:I,variableValues:k.coerced,fieldResolver:d!=null?d:Q_,typeResolver:p!=null?p:pL,subscribeFieldResolver:y!=null?y:Q_,errors:[]}}function p8(e,t,n){let r=e.schema.getRootType(t.operation);if(r==null)throw new Ci.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let i=(0,sL.collectFields)(e.schema,e.fragments,e.variableValues,r,t.selectionSet),a=void 0;switch(t.operation){case K_.OperationTypeNode.QUERY:return IN(e,r,n,a,i);case K_.OperationTypeNode.MUTATION:return m8(e,r,n,a,i);case K_.OperationTypeNode.SUBSCRIPTION:return IN(e,r,n,a,i)}}function m8(e,t,n,r,i){return(0,c8.promiseReduce)(i.entries(),(a,[o,c])=>{let l=(0,ic.addPath)(r,o,t.name),d=dL(e,t,n,c,l);return d===void 0?a:(0,sa.isPromise)(d)?d.then(p=>(a[o]=p,a)):(a[o]=d,a)},Object.create(null))}function IN(e,t,n,r,i){let a=Object.create(null),o=!1;try{for(let[c,l]of i.entries()){let d=(0,ic.addPath)(r,c,t.name),p=dL(e,t,n,l,d);p!==void 0&&(a[c]=p,(0,sa.isPromise)(p)&&(o=!0))}}catch(c){if(o)return(0,nL.promiseForObject)(a).finally(()=>{throw c});throw c}return o?(0,nL.promiseForObject)(a):a}function dL(e,t,n,r,i){var a;let o=mL(e.schema,t,r[0]);if(!o)return;let c=o.type,l=(a=o.resolve)!==null&&a!==void 0?a:e.fieldResolver,d=fL(e,o,r,t,i);try{let p=(0,oL.getArgumentValues)(o,r[0],e.variableValues),y=e.contextValue,I=l(n,p,y,d),v;return(0,sa.isPromise)(I)?v=I.then(F=>mf(e,c,r,d,i,F)):v=mf(e,c,r,d,i,I),(0,sa.isPromise)(v)?v.then(void 0,F=>{let k=(0,yN.locatedError)(F,r,(0,ic.pathToArray)(i));return gN(k,c,e)}):v}catch(p){let y=(0,yN.locatedError)(p,r,(0,ic.pathToArray)(i));return gN(y,c,e)}}function fL(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function gN(e,t,n){if((0,uu.isNonNullType)(t))throw e;return n.errors.push(e),null}function mf(e,t,n,r,i,a){if(a instanceof Error)throw a;if((0,uu.isNonNullType)(t)){let o=mf(e,t.ofType,n,r,i,a);if(o===null)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return o}if(a==null)return null;if((0,uu.isListType)(t))return N8(e,t,n,r,i,a);if((0,uu.isLeafType)(t))return T8(t,a);if((0,uu.isAbstractType)(t))return E8(e,t,n,r,i,a);if((0,uu.isObjectType)(t))return $_(e,t,n,r,i,a);(0,s8.invariant)(!1,"Cannot complete value of unexpected output type: "+(0,rc.inspect)(t))}function N8(e,t,n,r,i,a){if(!(0,o8.isIterableObject)(a))throw new Ci.GraphQLError(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);let o=t.ofType,c=!1,l=Array.from(a,(d,p)=>{let y=(0,ic.addPath)(i,p,void 0);try{let I;return(0,sa.isPromise)(d)?I=d.then(v=>mf(e,o,n,r,y,v)):I=mf(e,o,n,r,y,d),(0,sa.isPromise)(I)?(c=!0,I.then(void 0,v=>{let F=(0,yN.locatedError)(v,n,(0,ic.pathToArray)(y));return gN(F,o,e)})):I}catch(I){let v=(0,yN.locatedError)(I,n,(0,ic.pathToArray)(y));return gN(v,o,e)}});return c?Promise.all(l):l}function T8(e,t){let n=e.serialize(t);if(n==null)throw new Error(`Expected \`${(0,rc.inspect)(e)}.serialize(${(0,rc.inspect)(t)})\` to return non-nullable value, returned: ${(0,rc.inspect)(n)}`);return n}function E8(e,t,n,r,i,a){var o;let c=(o=t.resolveType)!==null&&o!==void 0?o:e.typeResolver,l=e.contextValue,d=c(a,l,r,t);return(0,sa.isPromise)(d)?d.then(p=>$_(e,iL(p,e,t,n,r,a),n,r,i,a)):$_(e,iL(d,e,t,n,r,a),n,r,i,a)}function iL(e,t,n,r,i,a){if(e==null)throw new Ci.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,r);if((0,uu.isObjectType)(e))throw new Ci.GraphQLError("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if(typeof e!="string")throw new Ci.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${(0,rc.inspect)(a)}, received "${(0,rc.inspect)(e)}".`);let o=t.schema.getType(e);if(o==null)throw new Ci.GraphQLError(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!(0,uu.isObjectType)(o))throw new Ci.GraphQLError(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,o))throw new Ci.GraphQLError(`Runtime Object type "${o.name}" is not a possible type for "${n.name}".`,{nodes:r});return o}function $_(e,t,n,r,i,a){let o=d8(e,t,n);if(t.isTypeOf){let c=t.isTypeOf(a,e.contextValue,r);if((0,sa.isPromise)(c))return c.then(l=>{if(!l)throw aL(t,a,n);return IN(e,t,a,i,o)});if(!c)throw aL(t,a,n)}return IN(e,t,a,i,o)}function aL(e,t,n){return new Ci.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,rc.inspect)(t)}.`,{nodes:n})}var pL=function(e,t,n,r){if((0,Y_.isObjectLike)(e)&&typeof e.__typename=="string")return e.__typename;let i=n.schema.getPossibleTypes(r),a=[];for(let o=0;o{for(let c=0;c{"use strict";m();T();N();Object.defineProperty(_N,"__esModule",{value:!0});_N.graphql=S8;_N.graphqlSync=O8;var h8=Br(),y8=hm(),I8=il(),g8=nf(),_8=Tl(),v8=Nf();function S8(e){return new Promise(t=>t(NL(e)))}function O8(e){let t=NL(e);if((0,y8.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function NL(e){arguments.length<2||(0,h8.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,source:n,rootValue:r,contextValue:i,variableValues:a,operationName:o,fieldResolver:c,typeResolver:l}=e,d=(0,g8.validateSchema)(t);if(d.length>0)return{errors:d};let p;try{p=(0,I8.parse)(n)}catch(I){return{errors:[I]}}let y=(0,_8.validate)(t,p);return y.length>0?{errors:y}:(0,v8.execute)({schema:t,document:p,rootValue:r,contextValue:i,variableValues:a,operationName:o,fieldResolver:c,typeResolver:l})}});var yL=w(ye=>{"use strict";m();T();N();Object.defineProperty(ye,"__esModule",{value:!0});Object.defineProperty(ye,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return oa.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(ye,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return gs.GRAPHQL_MAX_INT}});Object.defineProperty(ye,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return gs.GRAPHQL_MIN_INT}});Object.defineProperty(ye,"GraphQLBoolean",{enumerable:!0,get:function(){return gs.GraphQLBoolean}});Object.defineProperty(ye,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return oa.GraphQLDeprecatedDirective}});Object.defineProperty(ye,"GraphQLDirective",{enumerable:!0,get:function(){return oa.GraphQLDirective}});Object.defineProperty(ye,"GraphQLEnumType",{enumerable:!0,get:function(){return rt.GraphQLEnumType}});Object.defineProperty(ye,"GraphQLFloat",{enumerable:!0,get:function(){return gs.GraphQLFloat}});Object.defineProperty(ye,"GraphQLID",{enumerable:!0,get:function(){return gs.GraphQLID}});Object.defineProperty(ye,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return oa.GraphQLIncludeDirective}});Object.defineProperty(ye,"GraphQLInputObjectType",{enumerable:!0,get:function(){return rt.GraphQLInputObjectType}});Object.defineProperty(ye,"GraphQLInt",{enumerable:!0,get:function(){return gs.GraphQLInt}});Object.defineProperty(ye,"GraphQLInterfaceType",{enumerable:!0,get:function(){return rt.GraphQLInterfaceType}});Object.defineProperty(ye,"GraphQLList",{enumerable:!0,get:function(){return rt.GraphQLList}});Object.defineProperty(ye,"GraphQLNonNull",{enumerable:!0,get:function(){return rt.GraphQLNonNull}});Object.defineProperty(ye,"GraphQLObjectType",{enumerable:!0,get:function(){return rt.GraphQLObjectType}});Object.defineProperty(ye,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return oa.GraphQLOneOfDirective}});Object.defineProperty(ye,"GraphQLScalarType",{enumerable:!0,get:function(){return rt.GraphQLScalarType}});Object.defineProperty(ye,"GraphQLSchema",{enumerable:!0,get:function(){return J_.GraphQLSchema}});Object.defineProperty(ye,"GraphQLSkipDirective",{enumerable:!0,get:function(){return oa.GraphQLSkipDirective}});Object.defineProperty(ye,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return oa.GraphQLSpecifiedByDirective}});Object.defineProperty(ye,"GraphQLString",{enumerable:!0,get:function(){return gs.GraphQLString}});Object.defineProperty(ye,"GraphQLUnionType",{enumerable:!0,get:function(){return rt.GraphQLUnionType}});Object.defineProperty(ye,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return Jr.SchemaMetaFieldDef}});Object.defineProperty(ye,"TypeKind",{enumerable:!0,get:function(){return Jr.TypeKind}});Object.defineProperty(ye,"TypeMetaFieldDef",{enumerable:!0,get:function(){return Jr.TypeMetaFieldDef}});Object.defineProperty(ye,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return Jr.TypeNameMetaFieldDef}});Object.defineProperty(ye,"__Directive",{enumerable:!0,get:function(){return Jr.__Directive}});Object.defineProperty(ye,"__DirectiveLocation",{enumerable:!0,get:function(){return Jr.__DirectiveLocation}});Object.defineProperty(ye,"__EnumValue",{enumerable:!0,get:function(){return Jr.__EnumValue}});Object.defineProperty(ye,"__Field",{enumerable:!0,get:function(){return Jr.__Field}});Object.defineProperty(ye,"__InputValue",{enumerable:!0,get:function(){return Jr.__InputValue}});Object.defineProperty(ye,"__Schema",{enumerable:!0,get:function(){return Jr.__Schema}});Object.defineProperty(ye,"__Type",{enumerable:!0,get:function(){return Jr.__Type}});Object.defineProperty(ye,"__TypeKind",{enumerable:!0,get:function(){return Jr.__TypeKind}});Object.defineProperty(ye,"assertAbstractType",{enumerable:!0,get:function(){return rt.assertAbstractType}});Object.defineProperty(ye,"assertCompositeType",{enumerable:!0,get:function(){return rt.assertCompositeType}});Object.defineProperty(ye,"assertDirective",{enumerable:!0,get:function(){return oa.assertDirective}});Object.defineProperty(ye,"assertEnumType",{enumerable:!0,get:function(){return rt.assertEnumType}});Object.defineProperty(ye,"assertEnumValueName",{enumerable:!0,get:function(){return hL.assertEnumValueName}});Object.defineProperty(ye,"assertInputObjectType",{enumerable:!0,get:function(){return rt.assertInputObjectType}});Object.defineProperty(ye,"assertInputType",{enumerable:!0,get:function(){return rt.assertInputType}});Object.defineProperty(ye,"assertInterfaceType",{enumerable:!0,get:function(){return rt.assertInterfaceType}});Object.defineProperty(ye,"assertLeafType",{enumerable:!0,get:function(){return rt.assertLeafType}});Object.defineProperty(ye,"assertListType",{enumerable:!0,get:function(){return rt.assertListType}});Object.defineProperty(ye,"assertName",{enumerable:!0,get:function(){return hL.assertName}});Object.defineProperty(ye,"assertNamedType",{enumerable:!0,get:function(){return rt.assertNamedType}});Object.defineProperty(ye,"assertNonNullType",{enumerable:!0,get:function(){return rt.assertNonNullType}});Object.defineProperty(ye,"assertNullableType",{enumerable:!0,get:function(){return rt.assertNullableType}});Object.defineProperty(ye,"assertObjectType",{enumerable:!0,get:function(){return rt.assertObjectType}});Object.defineProperty(ye,"assertOutputType",{enumerable:!0,get:function(){return rt.assertOutputType}});Object.defineProperty(ye,"assertScalarType",{enumerable:!0,get:function(){return rt.assertScalarType}});Object.defineProperty(ye,"assertSchema",{enumerable:!0,get:function(){return J_.assertSchema}});Object.defineProperty(ye,"assertType",{enumerable:!0,get:function(){return rt.assertType}});Object.defineProperty(ye,"assertUnionType",{enumerable:!0,get:function(){return rt.assertUnionType}});Object.defineProperty(ye,"assertValidSchema",{enumerable:!0,get:function(){return EL.assertValidSchema}});Object.defineProperty(ye,"assertWrappingType",{enumerable:!0,get:function(){return rt.assertWrappingType}});Object.defineProperty(ye,"getNamedType",{enumerable:!0,get:function(){return rt.getNamedType}});Object.defineProperty(ye,"getNullableType",{enumerable:!0,get:function(){return rt.getNullableType}});Object.defineProperty(ye,"introspectionTypes",{enumerable:!0,get:function(){return Jr.introspectionTypes}});Object.defineProperty(ye,"isAbstractType",{enumerable:!0,get:function(){return rt.isAbstractType}});Object.defineProperty(ye,"isCompositeType",{enumerable:!0,get:function(){return rt.isCompositeType}});Object.defineProperty(ye,"isDirective",{enumerable:!0,get:function(){return oa.isDirective}});Object.defineProperty(ye,"isEnumType",{enumerable:!0,get:function(){return rt.isEnumType}});Object.defineProperty(ye,"isInputObjectType",{enumerable:!0,get:function(){return rt.isInputObjectType}});Object.defineProperty(ye,"isInputType",{enumerable:!0,get:function(){return rt.isInputType}});Object.defineProperty(ye,"isInterfaceType",{enumerable:!0,get:function(){return rt.isInterfaceType}});Object.defineProperty(ye,"isIntrospectionType",{enumerable:!0,get:function(){return Jr.isIntrospectionType}});Object.defineProperty(ye,"isLeafType",{enumerable:!0,get:function(){return rt.isLeafType}});Object.defineProperty(ye,"isListType",{enumerable:!0,get:function(){return rt.isListType}});Object.defineProperty(ye,"isNamedType",{enumerable:!0,get:function(){return rt.isNamedType}});Object.defineProperty(ye,"isNonNullType",{enumerable:!0,get:function(){return rt.isNonNullType}});Object.defineProperty(ye,"isNullableType",{enumerable:!0,get:function(){return rt.isNullableType}});Object.defineProperty(ye,"isObjectType",{enumerable:!0,get:function(){return rt.isObjectType}});Object.defineProperty(ye,"isOutputType",{enumerable:!0,get:function(){return rt.isOutputType}});Object.defineProperty(ye,"isRequiredArgument",{enumerable:!0,get:function(){return rt.isRequiredArgument}});Object.defineProperty(ye,"isRequiredInputField",{enumerable:!0,get:function(){return rt.isRequiredInputField}});Object.defineProperty(ye,"isScalarType",{enumerable:!0,get:function(){return rt.isScalarType}});Object.defineProperty(ye,"isSchema",{enumerable:!0,get:function(){return J_.isSchema}});Object.defineProperty(ye,"isSpecifiedDirective",{enumerable:!0,get:function(){return oa.isSpecifiedDirective}});Object.defineProperty(ye,"isSpecifiedScalarType",{enumerable:!0,get:function(){return gs.isSpecifiedScalarType}});Object.defineProperty(ye,"isType",{enumerable:!0,get:function(){return rt.isType}});Object.defineProperty(ye,"isUnionType",{enumerable:!0,get:function(){return rt.isUnionType}});Object.defineProperty(ye,"isWrappingType",{enumerable:!0,get:function(){return rt.isWrappingType}});Object.defineProperty(ye,"resolveObjMapThunk",{enumerable:!0,get:function(){return rt.resolveObjMapThunk}});Object.defineProperty(ye,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return rt.resolveReadonlyArrayThunk}});Object.defineProperty(ye,"specifiedDirectives",{enumerable:!0,get:function(){return oa.specifiedDirectives}});Object.defineProperty(ye,"specifiedScalarTypes",{enumerable:!0,get:function(){return gs.specifiedScalarTypes}});Object.defineProperty(ye,"validateSchema",{enumerable:!0,get:function(){return EL.validateSchema}});var J_=Xu(),rt=wt(),oa=Qr(),gs=Pa(),Jr=wi(),EL=nf(),hL=Vd()});var gL=w(kt=>{"use strict";m();T();N();Object.defineProperty(kt,"__esModule",{value:!0});Object.defineProperty(kt,"BREAK",{enumerable:!0,get:function(){return Tf.BREAK}});Object.defineProperty(kt,"DirectiveLocation",{enumerable:!0,get:function(){return w8.DirectiveLocation}});Object.defineProperty(kt,"Kind",{enumerable:!0,get:function(){return A8.Kind}});Object.defineProperty(kt,"Lexer",{enumerable:!0,get:function(){return P8.Lexer}});Object.defineProperty(kt,"Location",{enumerable:!0,get:function(){return H_.Location}});Object.defineProperty(kt,"OperationTypeNode",{enumerable:!0,get:function(){return H_.OperationTypeNode}});Object.defineProperty(kt,"Source",{enumerable:!0,get:function(){return D8.Source}});Object.defineProperty(kt,"Token",{enumerable:!0,get:function(){return H_.Token}});Object.defineProperty(kt,"TokenKind",{enumerable:!0,get:function(){return R8.TokenKind}});Object.defineProperty(kt,"getEnterLeaveForKind",{enumerable:!0,get:function(){return Tf.getEnterLeaveForKind}});Object.defineProperty(kt,"getLocation",{enumerable:!0,get:function(){return b8.getLocation}});Object.defineProperty(kt,"getVisitFn",{enumerable:!0,get:function(){return Tf.getVisitFn}});Object.defineProperty(kt,"isConstValueNode",{enumerable:!0,get:function(){return Ca.isConstValueNode}});Object.defineProperty(kt,"isDefinitionNode",{enumerable:!0,get:function(){return Ca.isDefinitionNode}});Object.defineProperty(kt,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return Ca.isExecutableDefinitionNode}});Object.defineProperty(kt,"isSelectionNode",{enumerable:!0,get:function(){return Ca.isSelectionNode}});Object.defineProperty(kt,"isTypeDefinitionNode",{enumerable:!0,get:function(){return Ca.isTypeDefinitionNode}});Object.defineProperty(kt,"isTypeExtensionNode",{enumerable:!0,get:function(){return Ca.isTypeExtensionNode}});Object.defineProperty(kt,"isTypeNode",{enumerable:!0,get:function(){return Ca.isTypeNode}});Object.defineProperty(kt,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return Ca.isTypeSystemDefinitionNode}});Object.defineProperty(kt,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return Ca.isTypeSystemExtensionNode}});Object.defineProperty(kt,"isValueNode",{enumerable:!0,get:function(){return Ca.isValueNode}});Object.defineProperty(kt,"parse",{enumerable:!0,get:function(){return vN.parse}});Object.defineProperty(kt,"parseConstValue",{enumerable:!0,get:function(){return vN.parseConstValue}});Object.defineProperty(kt,"parseType",{enumerable:!0,get:function(){return vN.parseType}});Object.defineProperty(kt,"parseValue",{enumerable:!0,get:function(){return vN.parseValue}});Object.defineProperty(kt,"print",{enumerable:!0,get:function(){return F8.print}});Object.defineProperty(kt,"printLocation",{enumerable:!0,get:function(){return IL.printLocation}});Object.defineProperty(kt,"printSourceLocation",{enumerable:!0,get:function(){return IL.printSourceLocation}});Object.defineProperty(kt,"visit",{enumerable:!0,get:function(){return Tf.visit}});Object.defineProperty(kt,"visitInParallel",{enumerable:!0,get:function(){return Tf.visitInParallel}});var D8=Am(),b8=ym(),IL=$y(),A8=Ft(),R8=Ld(),P8=Sm(),vN=il(),F8=li(),Tf=Qu(),H_=ba(),Ca=ec(),w8=nl()});var _L=w(z_=>{"use strict";m();T();N();Object.defineProperty(z_,"__esModule",{value:!0});z_.isAsyncIterable=L8;function L8(e){return typeof(e==null?void 0:e[Symbol.asyncIterator])=="function"}});var vL=w(W_=>{"use strict";m();T();N();Object.defineProperty(W_,"__esModule",{value:!0});W_.mapAsyncIterator=C8;function C8(e,t){let n=e[Symbol.asyncIterator]();function r(a){return bi(this,null,function*(){if(a.done)return a;try{return{value:yield t(a.value),done:!1}}catch(o){if(typeof n.return=="function")try{yield n.return()}catch(c){}throw o}})}return{next(){return bi(this,null,function*(){return r(yield n.next())})},return(){return bi(this,null,function*(){return typeof n.return=="function"?r(yield n.return()):{value:void 0,done:!0}})},throw(a){return bi(this,null,function*(){if(typeof n.throw=="function")return r(yield n.throw(a));throw a})},[Symbol.asyncIterator](){return this}}}});var bL=w(SN=>{"use strict";m();T();N();Object.defineProperty(SN,"__esModule",{value:!0});SN.createSourceEventStream=DL;SN.subscribe=V8;var B8=Br(),U8=Xt(),OL=_L(),SL=sf(),X_=ze(),k8=EN(),M8=pN(),Ef=Nf(),x8=vL(),q8=ml();function V8(t){return bi(this,arguments,function*(e){arguments.length<2||(0,B8.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let n=yield DL(e);if(!(0,OL.isAsyncIterable)(n))return n;let r=i=>(0,Ef.execute)(Q(x({},e),{rootValue:i}));return(0,x8.mapAsyncIterator)(n,r)})}function j8(e){let t=e[0];return t&&"document"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}function DL(...e){return bi(this,null,function*(){let t=j8(e),{schema:n,document:r,variableValues:i}=t;(0,Ef.assertValidExecutionArguments)(n,r,i);let a=(0,Ef.buildExecutionContext)(t);if(!("schema"in a))return{errors:a};try{let o=yield K8(a);if(!(0,OL.isAsyncIterable)(o))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,U8.inspect)(o)}.`);return o}catch(o){if(o instanceof X_.GraphQLError)return{errors:[o]};throw o}})}function K8(e){return bi(this,null,function*(){let{schema:t,fragments:n,operation:r,variableValues:i,rootValue:a}=e,o=t.getSubscriptionType();if(o==null)throw new X_.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:r});let c=(0,M8.collectFields)(t,n,i,o,r.selectionSet),[l,d]=[...c.entries()][0],p=(0,Ef.getFieldDef)(t,o,d[0]);if(!p){let F=d[0].name.value;throw new X_.GraphQLError(`The subscription field "${F}" is not defined.`,{nodes:d})}let y=(0,SL.addPath)(void 0,l,o.name),I=(0,Ef.buildResolveInfo)(e,p,d,o,y);try{var v;let F=(0,q8.getArgumentValues)(p,d[0],i),k=e.contextValue,J=yield((v=p.subscribe)!==null&&v!==void 0?v:e.subscribeFieldResolver)(a,F,k,I);if(J instanceof Error)throw J;return J}catch(F){throw(0,k8.locatedError)(F,d,(0,SL.pathToArray)(y))}})}});var RL=w(Ui=>{"use strict";m();T();N();Object.defineProperty(Ui,"__esModule",{value:!0});Object.defineProperty(Ui,"createSourceEventStream",{enumerable:!0,get:function(){return AL.createSourceEventStream}});Object.defineProperty(Ui,"defaultFieldResolver",{enumerable:!0,get:function(){return ON.defaultFieldResolver}});Object.defineProperty(Ui,"defaultTypeResolver",{enumerable:!0,get:function(){return ON.defaultTypeResolver}});Object.defineProperty(Ui,"execute",{enumerable:!0,get:function(){return ON.execute}});Object.defineProperty(Ui,"executeSync",{enumerable:!0,get:function(){return ON.executeSync}});Object.defineProperty(Ui,"getArgumentValues",{enumerable:!0,get:function(){return Z_.getArgumentValues}});Object.defineProperty(Ui,"getDirectiveValues",{enumerable:!0,get:function(){return Z_.getDirectiveValues}});Object.defineProperty(Ui,"getVariableValues",{enumerable:!0,get:function(){return Z_.getVariableValues}});Object.defineProperty(Ui,"responsePathAsArray",{enumerable:!0,get:function(){return G8.pathToArray}});Object.defineProperty(Ui,"subscribe",{enumerable:!0,get:function(){return AL.subscribe}});var G8=sf(),ON=Nf(),AL=bL(),Z_=ml()});var PL=w(nv=>{"use strict";m();T();N();Object.defineProperty(nv,"__esModule",{value:!0});nv.NoDeprecatedCustomRule=$8;var ev=Ir(),hf=ze(),tv=wt();function $8(e){return{Field(t){let n=e.getFieldDef(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){let i=e.getParentType();i!=null||(0,ev.invariant)(!1),e.reportError(new hf.GraphQLError(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){let n=e.getArgument(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){let i=e.getDirective();if(i!=null)e.reportError(new hf.GraphQLError(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{let a=e.getParentType(),o=e.getFieldDef();a!=null&&o!=null||(0,ev.invariant)(!1),e.reportError(new hf.GraphQLError(`Field "${a.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){let n=(0,tv.getNamedType)(e.getParentInputType());if((0,tv.isInputObjectType)(n)){let r=n.getFields()[t.name.value],i=r==null?void 0:r.deprecationReason;i!=null&&e.reportError(new hf.GraphQLError(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){let n=e.getEnumValue(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){let i=(0,tv.getNamedType)(e.getInputType());i!=null||(0,ev.invariant)(!1),e.reportError(new hf.GraphQLError(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}});var FL=w(rv=>{"use strict";m();T();N();Object.defineProperty(rv,"__esModule",{value:!0});rv.NoSchemaIntrospectionCustomRule=H8;var Q8=ze(),Y8=wt(),J8=wi();function H8(e){return{Field(t){let n=(0,Y8.getNamedType)(e.getType());n&&(0,J8.isIntrospectionType)(n)&&e.reportError(new Q8.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}});var LL=w(ft=>{"use strict";m();T();N();Object.defineProperty(ft,"__esModule",{value:!0});Object.defineProperty(ft,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return X8.ExecutableDefinitionsRule}});Object.defineProperty(ft,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return Z8.FieldsOnCorrectTypeRule}});Object.defineProperty(ft,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return e5.FragmentsOnCompositeTypesRule}});Object.defineProperty(ft,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return t5.KnownArgumentNamesRule}});Object.defineProperty(ft,"KnownDirectivesRule",{enumerable:!0,get:function(){return n5.KnownDirectivesRule}});Object.defineProperty(ft,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return r5.KnownFragmentNamesRule}});Object.defineProperty(ft,"KnownTypeNamesRule",{enumerable:!0,get:function(){return i5.KnownTypeNamesRule}});Object.defineProperty(ft,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return a5.LoneAnonymousOperationRule}});Object.defineProperty(ft,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return O5.LoneSchemaDefinitionRule}});Object.defineProperty(ft,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return S5.MaxIntrospectionDepthRule}});Object.defineProperty(ft,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return L5.NoDeprecatedCustomRule}});Object.defineProperty(ft,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return s5.NoFragmentCyclesRule}});Object.defineProperty(ft,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return C5.NoSchemaIntrospectionCustomRule}});Object.defineProperty(ft,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return o5.NoUndefinedVariablesRule}});Object.defineProperty(ft,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return u5.NoUnusedFragmentsRule}});Object.defineProperty(ft,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return c5.NoUnusedVariablesRule}});Object.defineProperty(ft,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return l5.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(ft,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return d5.PossibleFragmentSpreadsRule}});Object.defineProperty(ft,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return w5.PossibleTypeExtensionsRule}});Object.defineProperty(ft,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return f5.ProvidedRequiredArgumentsRule}});Object.defineProperty(ft,"ScalarLeafsRule",{enumerable:!0,get:function(){return p5.ScalarLeafsRule}});Object.defineProperty(ft,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return m5.SingleFieldSubscriptionsRule}});Object.defineProperty(ft,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return P5.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(ft,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return N5.UniqueArgumentNamesRule}});Object.defineProperty(ft,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return F5.UniqueDirectiveNamesRule}});Object.defineProperty(ft,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return T5.UniqueDirectivesPerLocationRule}});Object.defineProperty(ft,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return A5.UniqueEnumValueNamesRule}});Object.defineProperty(ft,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return R5.UniqueFieldDefinitionNamesRule}});Object.defineProperty(ft,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return E5.UniqueFragmentNamesRule}});Object.defineProperty(ft,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return h5.UniqueInputFieldNamesRule}});Object.defineProperty(ft,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return y5.UniqueOperationNamesRule}});Object.defineProperty(ft,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return D5.UniqueOperationTypesRule}});Object.defineProperty(ft,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return b5.UniqueTypeNamesRule}});Object.defineProperty(ft,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return I5.UniqueVariableNamesRule}});Object.defineProperty(ft,"ValidationContext",{enumerable:!0,get:function(){return W8.ValidationContext}});Object.defineProperty(ft,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return g5.ValuesOfCorrectTypeRule}});Object.defineProperty(ft,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return _5.VariablesAreInputTypesRule}});Object.defineProperty(ft,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return v5.VariablesInAllowedPositionRule}});Object.defineProperty(ft,"recommendedRules",{enumerable:!0,get:function(){return wL.recommendedRules}});Object.defineProperty(ft,"specifiedRules",{enumerable:!0,get:function(){return wL.specifiedRules}});Object.defineProperty(ft,"validate",{enumerable:!0,get:function(){return z8.validate}});var z8=Tl(),W8=B_(),wL=w_(),X8=HI(),Z8=WI(),e5=ZI(),t5=eg(),n5=ig(),r5=sg(),i5=cg(),a5=dg(),s5=Eg(),o5=yg(),u5=gg(),c5=vg(),l5=Lg(),d5=Ug(),f5=qg(),p5=jg(),m5=Wg(),N5=n_(),T5=o_(),E5=m_(),h5=T_(),y5=h_(),I5=S_(),g5=b_(),_5=R_(),v5=F_(),S5=Ng(),O5=pg(),D5=I_(),b5=__(),A5=c_(),R5=f_(),P5=e_(),F5=i_(),w5=Mg(),L5=PL(),C5=FL()});var CL=w(ac=>{"use strict";m();T();N();Object.defineProperty(ac,"__esModule",{value:!0});Object.defineProperty(ac,"GraphQLError",{enumerable:!0,get:function(){return iv.GraphQLError}});Object.defineProperty(ac,"formatError",{enumerable:!0,get:function(){return iv.formatError}});Object.defineProperty(ac,"locatedError",{enumerable:!0,get:function(){return U5.locatedError}});Object.defineProperty(ac,"printError",{enumerable:!0,get:function(){return iv.printError}});Object.defineProperty(ac,"syntaxError",{enumerable:!0,get:function(){return B5.syntaxError}});var iv=ze(),B5=gm(),U5=EN()});var sv=w(av=>{"use strict";m();T();N();Object.defineProperty(av,"__esModule",{value:!0});av.getIntrospectionQuery=k5;function k5(e){let t=x({descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1},e),n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"",a=t.schemaDescription?n:"";function o(l){return t.inputValueDeprecation?l:""}let c=t.oneOf?"isOneOf":"";return` +`))}});var Xw=w(k_=>{"use strict";m();T();N();Object.defineProperty(k_,"__esModule",{value:!0});k_.memoize3=z4;function z4(e){let t;return function(r,i,a){t===void 0&&(t=new WeakMap);let o=t.get(r);o===void 0&&(o=new WeakMap,t.set(r,o));let c=o.get(i);c===void 0&&(c=new WeakMap,o.set(i,c));let l=c.get(a);return l===void 0&&(l=e(r,i,a),c.set(a,l)),l}}});var Zw=w(M_=>{"use strict";m();T();N();Object.defineProperty(M_,"__esModule",{value:!0});M_.promiseForObject=W4;function W4(e){return Promise.all(Object.values(e)).then(t=>{let n=Object.create(null);for(let[r,i]of Object.keys(e).entries())n[i]=t[r];return n})}});var eL=w(x_=>{"use strict";m();T();N();Object.defineProperty(x_,"__esModule",{value:!0});x_.promiseReduce=Z4;var X4=hm();function Z4(e,t,n){let r=n;for(let i of e)r=(0,X4.isPromise)(r)?r.then(a=>t(a,i)):t(r,i);return r}});var tL=w(V_=>{"use strict";m();T();N();Object.defineProperty(V_,"__esModule",{value:!0});V_.toError=t8;var e8=Xt();function t8(e){return e instanceof Error?e:new q_(e)}var q_=class extends Error{constructor(t){super("Unexpected error value: "+(0,e8.inspect)(t)),this.name="NonErrorThrown",this.thrownValue=t}}});var EN=w(j_=>{"use strict";m();T();N();Object.defineProperty(j_,"__esModule",{value:!0});j_.locatedError=i8;var n8=tL(),r8=ze();function i8(e,t,n){var r;let i=(0,n8.toError)(e);return a8(i)?i:new r8.GraphQLError(i.message,{nodes:(r=i.nodes)!==null&&r!==void 0?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}function a8(e){return Array.isArray(e.path)}});var Nf=w(Ci=>{"use strict";m();T();N();Object.defineProperty(Ci,"__esModule",{value:!0});Ci.assertValidExecutionArguments=cL;Ci.buildExecutionContext=lL;Ci.buildResolveInfo=fL;Ci.defaultTypeResolver=Ci.defaultFieldResolver=void 0;Ci.execute=uL;Ci.executeSync=f8;Ci.getFieldDef=mL;var G_=Br(),rc=Xt(),s8=Ir(),o8=Xm(),Y_=Da(),sa=hm(),u8=Xw(),ic=sf(),nL=Zw(),c8=eL(),Li=ze(),yN=EN(),K_=ba(),rL=Ft(),uu=wt(),El=Fi(),l8=nf(),sL=pN(),oL=ml(),d8=(0,u8.memoize3)((e,t,n)=>(0,sL.collectSubfields)(e.schema,e.fragments,e.variableValues,t,n));function uL(e){arguments.length<2||(0,G_.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,document:n,variableValues:r,rootValue:i}=e;cL(t,n,r);let a=lL(e);if(!("schema"in a))return{errors:a};try{let{operation:o}=a,c=p8(a,o,i);return(0,sa.isPromise)(c)?c.then(l=>hN(l,a.errors),l=>(a.errors.push(l),hN(null,a.errors))):hN(c,a.errors)}catch(o){return a.errors.push(o),hN(null,a.errors)}}function f8(e){let t=uL(e);if((0,sa.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function hN(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function cL(e,t,n){t||(0,G_.devAssert)(!1,"Must provide document."),(0,l8.assertValidSchema)(e),n==null||(0,Y_.isObjectLike)(n)||(0,G_.devAssert)(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function lL(e){var t,n;let{schema:r,document:i,rootValue:a,contextValue:o,variableValues:c,operationName:l,fieldResolver:d,typeResolver:p,subscribeFieldResolver:y}=e,I,v=Object.create(null);for(let K of i.definitions)switch(K.kind){case rL.Kind.OPERATION_DEFINITION:if(l==null){if(I!==void 0)return[new Li.GraphQLError("Must provide operation name if query contains multiple operations.")];I=K}else((t=K.name)===null||t===void 0?void 0:t.value)===l&&(I=K);break;case rL.Kind.FRAGMENT_DEFINITION:v[K.name.value]=K;break;default:}if(!I)return l!=null?[new Li.GraphQLError(`Unknown operation named "${l}".`)]:[new Li.GraphQLError("Must provide an operation.")];let F=(n=I.variableDefinitions)!==null&&n!==void 0?n:[],k=(0,oL.getVariableValues)(r,F,c!=null?c:{},{maxErrors:50});return k.errors?k.errors:{schema:r,fragments:v,rootValue:a,contextValue:o,operation:I,variableValues:k.coerced,fieldResolver:d!=null?d:Q_,typeResolver:p!=null?p:pL,subscribeFieldResolver:y!=null?y:Q_,errors:[]}}function p8(e,t,n){let r=e.schema.getRootType(t.operation);if(r==null)throw new Li.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let i=(0,sL.collectFields)(e.schema,e.fragments,e.variableValues,r,t.selectionSet),a=void 0;switch(t.operation){case K_.OperationTypeNode.QUERY:return IN(e,r,n,a,i);case K_.OperationTypeNode.MUTATION:return m8(e,r,n,a,i);case K_.OperationTypeNode.SUBSCRIPTION:return IN(e,r,n,a,i)}}function m8(e,t,n,r,i){return(0,c8.promiseReduce)(i.entries(),(a,[o,c])=>{let l=(0,ic.addPath)(r,o,t.name),d=dL(e,t,n,c,l);return d===void 0?a:(0,sa.isPromise)(d)?d.then(p=>(a[o]=p,a)):(a[o]=d,a)},Object.create(null))}function IN(e,t,n,r,i){let a=Object.create(null),o=!1;try{for(let[c,l]of i.entries()){let d=(0,ic.addPath)(r,c,t.name),p=dL(e,t,n,l,d);p!==void 0&&(a[c]=p,(0,sa.isPromise)(p)&&(o=!0))}}catch(c){if(o)return(0,nL.promiseForObject)(a).finally(()=>{throw c});throw c}return o?(0,nL.promiseForObject)(a):a}function dL(e,t,n,r,i){var a;let o=mL(e.schema,t,r[0]);if(!o)return;let c=o.type,l=(a=o.resolve)!==null&&a!==void 0?a:e.fieldResolver,d=fL(e,o,r,t,i);try{let p=(0,oL.getArgumentValues)(o,r[0],e.variableValues),y=e.contextValue,I=l(n,p,y,d),v;return(0,sa.isPromise)(I)?v=I.then(F=>mf(e,c,r,d,i,F)):v=mf(e,c,r,d,i,I),(0,sa.isPromise)(v)?v.then(void 0,F=>{let k=(0,yN.locatedError)(F,r,(0,ic.pathToArray)(i));return gN(k,c,e)}):v}catch(p){let y=(0,yN.locatedError)(p,r,(0,ic.pathToArray)(i));return gN(y,c,e)}}function fL(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function gN(e,t,n){if((0,uu.isNonNullType)(t))throw e;return n.errors.push(e),null}function mf(e,t,n,r,i,a){if(a instanceof Error)throw a;if((0,uu.isNonNullType)(t)){let o=mf(e,t.ofType,n,r,i,a);if(o===null)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return o}if(a==null)return null;if((0,uu.isListType)(t))return N8(e,t,n,r,i,a);if((0,uu.isLeafType)(t))return T8(t,a);if((0,uu.isAbstractType)(t))return E8(e,t,n,r,i,a);if((0,uu.isObjectType)(t))return $_(e,t,n,r,i,a);(0,s8.invariant)(!1,"Cannot complete value of unexpected output type: "+(0,rc.inspect)(t))}function N8(e,t,n,r,i,a){if(!(0,o8.isIterableObject)(a))throw new Li.GraphQLError(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);let o=t.ofType,c=!1,l=Array.from(a,(d,p)=>{let y=(0,ic.addPath)(i,p,void 0);try{let I;return(0,sa.isPromise)(d)?I=d.then(v=>mf(e,o,n,r,y,v)):I=mf(e,o,n,r,y,d),(0,sa.isPromise)(I)?(c=!0,I.then(void 0,v=>{let F=(0,yN.locatedError)(v,n,(0,ic.pathToArray)(y));return gN(F,o,e)})):I}catch(I){let v=(0,yN.locatedError)(I,n,(0,ic.pathToArray)(y));return gN(v,o,e)}});return c?Promise.all(l):l}function T8(e,t){let n=e.serialize(t);if(n==null)throw new Error(`Expected \`${(0,rc.inspect)(e)}.serialize(${(0,rc.inspect)(t)})\` to return non-nullable value, returned: ${(0,rc.inspect)(n)}`);return n}function E8(e,t,n,r,i,a){var o;let c=(o=t.resolveType)!==null&&o!==void 0?o:e.typeResolver,l=e.contextValue,d=c(a,l,r,t);return(0,sa.isPromise)(d)?d.then(p=>$_(e,iL(p,e,t,n,r,a),n,r,i,a)):$_(e,iL(d,e,t,n,r,a),n,r,i,a)}function iL(e,t,n,r,i,a){if(e==null)throw new Li.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,r);if((0,uu.isObjectType)(e))throw new Li.GraphQLError("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if(typeof e!="string")throw new Li.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${(0,rc.inspect)(a)}, received "${(0,rc.inspect)(e)}".`);let o=t.schema.getType(e);if(o==null)throw new Li.GraphQLError(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!(0,uu.isObjectType)(o))throw new Li.GraphQLError(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,o))throw new Li.GraphQLError(`Runtime Object type "${o.name}" is not a possible type for "${n.name}".`,{nodes:r});return o}function $_(e,t,n,r,i,a){let o=d8(e,t,n);if(t.isTypeOf){let c=t.isTypeOf(a,e.contextValue,r);if((0,sa.isPromise)(c))return c.then(l=>{if(!l)throw aL(t,a,n);return IN(e,t,a,i,o)});if(!c)throw aL(t,a,n)}return IN(e,t,a,i,o)}function aL(e,t,n){return new Li.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,rc.inspect)(t)}.`,{nodes:n})}var pL=function(e,t,n,r){if((0,Y_.isObjectLike)(e)&&typeof e.__typename=="string")return e.__typename;let i=n.schema.getPossibleTypes(r),a=[];for(let o=0;o{for(let c=0;c{"use strict";m();T();N();Object.defineProperty(_N,"__esModule",{value:!0});_N.graphql=S8;_N.graphqlSync=O8;var h8=Br(),y8=hm(),I8=il(),g8=nf(),_8=Tl(),v8=Nf();function S8(e){return new Promise(t=>t(NL(e)))}function O8(e){let t=NL(e);if((0,y8.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function NL(e){arguments.length<2||(0,h8.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,source:n,rootValue:r,contextValue:i,variableValues:a,operationName:o,fieldResolver:c,typeResolver:l}=e,d=(0,g8.validateSchema)(t);if(d.length>0)return{errors:d};let p;try{p=(0,I8.parse)(n)}catch(I){return{errors:[I]}}let y=(0,_8.validate)(t,p);return y.length>0?{errors:y}:(0,v8.execute)({schema:t,document:p,rootValue:r,contextValue:i,variableValues:a,operationName:o,fieldResolver:c,typeResolver:l})}});var yL=w(ye=>{"use strict";m();T();N();Object.defineProperty(ye,"__esModule",{value:!0});Object.defineProperty(ye,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return oa.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(ye,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return gs.GRAPHQL_MAX_INT}});Object.defineProperty(ye,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return gs.GRAPHQL_MIN_INT}});Object.defineProperty(ye,"GraphQLBoolean",{enumerable:!0,get:function(){return gs.GraphQLBoolean}});Object.defineProperty(ye,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return oa.GraphQLDeprecatedDirective}});Object.defineProperty(ye,"GraphQLDirective",{enumerable:!0,get:function(){return oa.GraphQLDirective}});Object.defineProperty(ye,"GraphQLEnumType",{enumerable:!0,get:function(){return rt.GraphQLEnumType}});Object.defineProperty(ye,"GraphQLFloat",{enumerable:!0,get:function(){return gs.GraphQLFloat}});Object.defineProperty(ye,"GraphQLID",{enumerable:!0,get:function(){return gs.GraphQLID}});Object.defineProperty(ye,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return oa.GraphQLIncludeDirective}});Object.defineProperty(ye,"GraphQLInputObjectType",{enumerable:!0,get:function(){return rt.GraphQLInputObjectType}});Object.defineProperty(ye,"GraphQLInt",{enumerable:!0,get:function(){return gs.GraphQLInt}});Object.defineProperty(ye,"GraphQLInterfaceType",{enumerable:!0,get:function(){return rt.GraphQLInterfaceType}});Object.defineProperty(ye,"GraphQLList",{enumerable:!0,get:function(){return rt.GraphQLList}});Object.defineProperty(ye,"GraphQLNonNull",{enumerable:!0,get:function(){return rt.GraphQLNonNull}});Object.defineProperty(ye,"GraphQLObjectType",{enumerable:!0,get:function(){return rt.GraphQLObjectType}});Object.defineProperty(ye,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return oa.GraphQLOneOfDirective}});Object.defineProperty(ye,"GraphQLScalarType",{enumerable:!0,get:function(){return rt.GraphQLScalarType}});Object.defineProperty(ye,"GraphQLSchema",{enumerable:!0,get:function(){return J_.GraphQLSchema}});Object.defineProperty(ye,"GraphQLSkipDirective",{enumerable:!0,get:function(){return oa.GraphQLSkipDirective}});Object.defineProperty(ye,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return oa.GraphQLSpecifiedByDirective}});Object.defineProperty(ye,"GraphQLString",{enumerable:!0,get:function(){return gs.GraphQLString}});Object.defineProperty(ye,"GraphQLUnionType",{enumerable:!0,get:function(){return rt.GraphQLUnionType}});Object.defineProperty(ye,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return Jr.SchemaMetaFieldDef}});Object.defineProperty(ye,"TypeKind",{enumerable:!0,get:function(){return Jr.TypeKind}});Object.defineProperty(ye,"TypeMetaFieldDef",{enumerable:!0,get:function(){return Jr.TypeMetaFieldDef}});Object.defineProperty(ye,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return Jr.TypeNameMetaFieldDef}});Object.defineProperty(ye,"__Directive",{enumerable:!0,get:function(){return Jr.__Directive}});Object.defineProperty(ye,"__DirectiveLocation",{enumerable:!0,get:function(){return Jr.__DirectiveLocation}});Object.defineProperty(ye,"__EnumValue",{enumerable:!0,get:function(){return Jr.__EnumValue}});Object.defineProperty(ye,"__Field",{enumerable:!0,get:function(){return Jr.__Field}});Object.defineProperty(ye,"__InputValue",{enumerable:!0,get:function(){return Jr.__InputValue}});Object.defineProperty(ye,"__Schema",{enumerable:!0,get:function(){return Jr.__Schema}});Object.defineProperty(ye,"__Type",{enumerable:!0,get:function(){return Jr.__Type}});Object.defineProperty(ye,"__TypeKind",{enumerable:!0,get:function(){return Jr.__TypeKind}});Object.defineProperty(ye,"assertAbstractType",{enumerable:!0,get:function(){return rt.assertAbstractType}});Object.defineProperty(ye,"assertCompositeType",{enumerable:!0,get:function(){return rt.assertCompositeType}});Object.defineProperty(ye,"assertDirective",{enumerable:!0,get:function(){return oa.assertDirective}});Object.defineProperty(ye,"assertEnumType",{enumerable:!0,get:function(){return rt.assertEnumType}});Object.defineProperty(ye,"assertEnumValueName",{enumerable:!0,get:function(){return hL.assertEnumValueName}});Object.defineProperty(ye,"assertInputObjectType",{enumerable:!0,get:function(){return rt.assertInputObjectType}});Object.defineProperty(ye,"assertInputType",{enumerable:!0,get:function(){return rt.assertInputType}});Object.defineProperty(ye,"assertInterfaceType",{enumerable:!0,get:function(){return rt.assertInterfaceType}});Object.defineProperty(ye,"assertLeafType",{enumerable:!0,get:function(){return rt.assertLeafType}});Object.defineProperty(ye,"assertListType",{enumerable:!0,get:function(){return rt.assertListType}});Object.defineProperty(ye,"assertName",{enumerable:!0,get:function(){return hL.assertName}});Object.defineProperty(ye,"assertNamedType",{enumerable:!0,get:function(){return rt.assertNamedType}});Object.defineProperty(ye,"assertNonNullType",{enumerable:!0,get:function(){return rt.assertNonNullType}});Object.defineProperty(ye,"assertNullableType",{enumerable:!0,get:function(){return rt.assertNullableType}});Object.defineProperty(ye,"assertObjectType",{enumerable:!0,get:function(){return rt.assertObjectType}});Object.defineProperty(ye,"assertOutputType",{enumerable:!0,get:function(){return rt.assertOutputType}});Object.defineProperty(ye,"assertScalarType",{enumerable:!0,get:function(){return rt.assertScalarType}});Object.defineProperty(ye,"assertSchema",{enumerable:!0,get:function(){return J_.assertSchema}});Object.defineProperty(ye,"assertType",{enumerable:!0,get:function(){return rt.assertType}});Object.defineProperty(ye,"assertUnionType",{enumerable:!0,get:function(){return rt.assertUnionType}});Object.defineProperty(ye,"assertValidSchema",{enumerable:!0,get:function(){return EL.assertValidSchema}});Object.defineProperty(ye,"assertWrappingType",{enumerable:!0,get:function(){return rt.assertWrappingType}});Object.defineProperty(ye,"getNamedType",{enumerable:!0,get:function(){return rt.getNamedType}});Object.defineProperty(ye,"getNullableType",{enumerable:!0,get:function(){return rt.getNullableType}});Object.defineProperty(ye,"introspectionTypes",{enumerable:!0,get:function(){return Jr.introspectionTypes}});Object.defineProperty(ye,"isAbstractType",{enumerable:!0,get:function(){return rt.isAbstractType}});Object.defineProperty(ye,"isCompositeType",{enumerable:!0,get:function(){return rt.isCompositeType}});Object.defineProperty(ye,"isDirective",{enumerable:!0,get:function(){return oa.isDirective}});Object.defineProperty(ye,"isEnumType",{enumerable:!0,get:function(){return rt.isEnumType}});Object.defineProperty(ye,"isInputObjectType",{enumerable:!0,get:function(){return rt.isInputObjectType}});Object.defineProperty(ye,"isInputType",{enumerable:!0,get:function(){return rt.isInputType}});Object.defineProperty(ye,"isInterfaceType",{enumerable:!0,get:function(){return rt.isInterfaceType}});Object.defineProperty(ye,"isIntrospectionType",{enumerable:!0,get:function(){return Jr.isIntrospectionType}});Object.defineProperty(ye,"isLeafType",{enumerable:!0,get:function(){return rt.isLeafType}});Object.defineProperty(ye,"isListType",{enumerable:!0,get:function(){return rt.isListType}});Object.defineProperty(ye,"isNamedType",{enumerable:!0,get:function(){return rt.isNamedType}});Object.defineProperty(ye,"isNonNullType",{enumerable:!0,get:function(){return rt.isNonNullType}});Object.defineProperty(ye,"isNullableType",{enumerable:!0,get:function(){return rt.isNullableType}});Object.defineProperty(ye,"isObjectType",{enumerable:!0,get:function(){return rt.isObjectType}});Object.defineProperty(ye,"isOutputType",{enumerable:!0,get:function(){return rt.isOutputType}});Object.defineProperty(ye,"isRequiredArgument",{enumerable:!0,get:function(){return rt.isRequiredArgument}});Object.defineProperty(ye,"isRequiredInputField",{enumerable:!0,get:function(){return rt.isRequiredInputField}});Object.defineProperty(ye,"isScalarType",{enumerable:!0,get:function(){return rt.isScalarType}});Object.defineProperty(ye,"isSchema",{enumerable:!0,get:function(){return J_.isSchema}});Object.defineProperty(ye,"isSpecifiedDirective",{enumerable:!0,get:function(){return oa.isSpecifiedDirective}});Object.defineProperty(ye,"isSpecifiedScalarType",{enumerable:!0,get:function(){return gs.isSpecifiedScalarType}});Object.defineProperty(ye,"isType",{enumerable:!0,get:function(){return rt.isType}});Object.defineProperty(ye,"isUnionType",{enumerable:!0,get:function(){return rt.isUnionType}});Object.defineProperty(ye,"isWrappingType",{enumerable:!0,get:function(){return rt.isWrappingType}});Object.defineProperty(ye,"resolveObjMapThunk",{enumerable:!0,get:function(){return rt.resolveObjMapThunk}});Object.defineProperty(ye,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return rt.resolveReadonlyArrayThunk}});Object.defineProperty(ye,"specifiedDirectives",{enumerable:!0,get:function(){return oa.specifiedDirectives}});Object.defineProperty(ye,"specifiedScalarTypes",{enumerable:!0,get:function(){return gs.specifiedScalarTypes}});Object.defineProperty(ye,"validateSchema",{enumerable:!0,get:function(){return EL.validateSchema}});var J_=Xu(),rt=wt(),oa=Qr(),gs=Pa(),Jr=Fi(),EL=nf(),hL=Vd()});var gL=w(kt=>{"use strict";m();T();N();Object.defineProperty(kt,"__esModule",{value:!0});Object.defineProperty(kt,"BREAK",{enumerable:!0,get:function(){return Tf.BREAK}});Object.defineProperty(kt,"DirectiveLocation",{enumerable:!0,get:function(){return w8.DirectiveLocation}});Object.defineProperty(kt,"Kind",{enumerable:!0,get:function(){return A8.Kind}});Object.defineProperty(kt,"Lexer",{enumerable:!0,get:function(){return P8.Lexer}});Object.defineProperty(kt,"Location",{enumerable:!0,get:function(){return H_.Location}});Object.defineProperty(kt,"OperationTypeNode",{enumerable:!0,get:function(){return H_.OperationTypeNode}});Object.defineProperty(kt,"Source",{enumerable:!0,get:function(){return D8.Source}});Object.defineProperty(kt,"Token",{enumerable:!0,get:function(){return H_.Token}});Object.defineProperty(kt,"TokenKind",{enumerable:!0,get:function(){return R8.TokenKind}});Object.defineProperty(kt,"getEnterLeaveForKind",{enumerable:!0,get:function(){return Tf.getEnterLeaveForKind}});Object.defineProperty(kt,"getLocation",{enumerable:!0,get:function(){return b8.getLocation}});Object.defineProperty(kt,"getVisitFn",{enumerable:!0,get:function(){return Tf.getVisitFn}});Object.defineProperty(kt,"isConstValueNode",{enumerable:!0,get:function(){return Ca.isConstValueNode}});Object.defineProperty(kt,"isDefinitionNode",{enumerable:!0,get:function(){return Ca.isDefinitionNode}});Object.defineProperty(kt,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return Ca.isExecutableDefinitionNode}});Object.defineProperty(kt,"isSelectionNode",{enumerable:!0,get:function(){return Ca.isSelectionNode}});Object.defineProperty(kt,"isTypeDefinitionNode",{enumerable:!0,get:function(){return Ca.isTypeDefinitionNode}});Object.defineProperty(kt,"isTypeExtensionNode",{enumerable:!0,get:function(){return Ca.isTypeExtensionNode}});Object.defineProperty(kt,"isTypeNode",{enumerable:!0,get:function(){return Ca.isTypeNode}});Object.defineProperty(kt,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return Ca.isTypeSystemDefinitionNode}});Object.defineProperty(kt,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return Ca.isTypeSystemExtensionNode}});Object.defineProperty(kt,"isValueNode",{enumerable:!0,get:function(){return Ca.isValueNode}});Object.defineProperty(kt,"parse",{enumerable:!0,get:function(){return vN.parse}});Object.defineProperty(kt,"parseConstValue",{enumerable:!0,get:function(){return vN.parseConstValue}});Object.defineProperty(kt,"parseType",{enumerable:!0,get:function(){return vN.parseType}});Object.defineProperty(kt,"parseValue",{enumerable:!0,get:function(){return vN.parseValue}});Object.defineProperty(kt,"print",{enumerable:!0,get:function(){return F8.print}});Object.defineProperty(kt,"printLocation",{enumerable:!0,get:function(){return IL.printLocation}});Object.defineProperty(kt,"printSourceLocation",{enumerable:!0,get:function(){return IL.printSourceLocation}});Object.defineProperty(kt,"visit",{enumerable:!0,get:function(){return Tf.visit}});Object.defineProperty(kt,"visitInParallel",{enumerable:!0,get:function(){return Tf.visitInParallel}});var D8=Am(),b8=ym(),IL=$y(),A8=Ft(),R8=Ld(),P8=Sm(),vN=il(),F8=li(),Tf=Qu(),H_=ba(),Ca=ec(),w8=nl()});var _L=w(z_=>{"use strict";m();T();N();Object.defineProperty(z_,"__esModule",{value:!0});z_.isAsyncIterable=L8;function L8(e){return typeof(e==null?void 0:e[Symbol.asyncIterator])=="function"}});var vL=w(W_=>{"use strict";m();T();N();Object.defineProperty(W_,"__esModule",{value:!0});W_.mapAsyncIterator=C8;function C8(e,t){let n=e[Symbol.asyncIterator]();function r(a){return Di(this,null,function*(){if(a.done)return a;try{return{value:yield t(a.value),done:!1}}catch(o){if(typeof n.return=="function")try{yield n.return()}catch(c){}throw o}})}return{next(){return Di(this,null,function*(){return r(yield n.next())})},return(){return Di(this,null,function*(){return typeof n.return=="function"?r(yield n.return()):{value:void 0,done:!0}})},throw(a){return Di(this,null,function*(){if(typeof n.throw=="function")return r(yield n.throw(a));throw a})},[Symbol.asyncIterator](){return this}}}});var bL=w(SN=>{"use strict";m();T();N();Object.defineProperty(SN,"__esModule",{value:!0});SN.createSourceEventStream=DL;SN.subscribe=V8;var B8=Br(),U8=Xt(),OL=_L(),SL=sf(),X_=ze(),k8=EN(),M8=pN(),Ef=Nf(),x8=vL(),q8=ml();function V8(t){return Di(this,arguments,function*(e){arguments.length<2||(0,B8.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let n=yield DL(e);if(!(0,OL.isAsyncIterable)(n))return n;let r=i=>(0,Ef.execute)(Q(x({},e),{rootValue:i}));return(0,x8.mapAsyncIterator)(n,r)})}function j8(e){let t=e[0];return t&&"document"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}function DL(...e){return Di(this,null,function*(){let t=j8(e),{schema:n,document:r,variableValues:i}=t;(0,Ef.assertValidExecutionArguments)(n,r,i);let a=(0,Ef.buildExecutionContext)(t);if(!("schema"in a))return{errors:a};try{let o=yield K8(a);if(!(0,OL.isAsyncIterable)(o))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,U8.inspect)(o)}.`);return o}catch(o){if(o instanceof X_.GraphQLError)return{errors:[o]};throw o}})}function K8(e){return Di(this,null,function*(){let{schema:t,fragments:n,operation:r,variableValues:i,rootValue:a}=e,o=t.getSubscriptionType();if(o==null)throw new X_.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:r});let c=(0,M8.collectFields)(t,n,i,o,r.selectionSet),[l,d]=[...c.entries()][0],p=(0,Ef.getFieldDef)(t,o,d[0]);if(!p){let F=d[0].name.value;throw new X_.GraphQLError(`The subscription field "${F}" is not defined.`,{nodes:d})}let y=(0,SL.addPath)(void 0,l,o.name),I=(0,Ef.buildResolveInfo)(e,p,d,o,y);try{var v;let F=(0,q8.getArgumentValues)(p,d[0],i),k=e.contextValue,J=yield((v=p.subscribe)!==null&&v!==void 0?v:e.subscribeFieldResolver)(a,F,k,I);if(J instanceof Error)throw J;return J}catch(F){throw(0,k8.locatedError)(F,d,(0,SL.pathToArray)(y))}})}});var RL=w(Bi=>{"use strict";m();T();N();Object.defineProperty(Bi,"__esModule",{value:!0});Object.defineProperty(Bi,"createSourceEventStream",{enumerable:!0,get:function(){return AL.createSourceEventStream}});Object.defineProperty(Bi,"defaultFieldResolver",{enumerable:!0,get:function(){return ON.defaultFieldResolver}});Object.defineProperty(Bi,"defaultTypeResolver",{enumerable:!0,get:function(){return ON.defaultTypeResolver}});Object.defineProperty(Bi,"execute",{enumerable:!0,get:function(){return ON.execute}});Object.defineProperty(Bi,"executeSync",{enumerable:!0,get:function(){return ON.executeSync}});Object.defineProperty(Bi,"getArgumentValues",{enumerable:!0,get:function(){return Z_.getArgumentValues}});Object.defineProperty(Bi,"getDirectiveValues",{enumerable:!0,get:function(){return Z_.getDirectiveValues}});Object.defineProperty(Bi,"getVariableValues",{enumerable:!0,get:function(){return Z_.getVariableValues}});Object.defineProperty(Bi,"responsePathAsArray",{enumerable:!0,get:function(){return G8.pathToArray}});Object.defineProperty(Bi,"subscribe",{enumerable:!0,get:function(){return AL.subscribe}});var G8=sf(),ON=Nf(),AL=bL(),Z_=ml()});var PL=w(nv=>{"use strict";m();T();N();Object.defineProperty(nv,"__esModule",{value:!0});nv.NoDeprecatedCustomRule=$8;var ev=Ir(),hf=ze(),tv=wt();function $8(e){return{Field(t){let n=e.getFieldDef(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){let i=e.getParentType();i!=null||(0,ev.invariant)(!1),e.reportError(new hf.GraphQLError(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){let n=e.getArgument(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){let i=e.getDirective();if(i!=null)e.reportError(new hf.GraphQLError(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{let a=e.getParentType(),o=e.getFieldDef();a!=null&&o!=null||(0,ev.invariant)(!1),e.reportError(new hf.GraphQLError(`Field "${a.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){let n=(0,tv.getNamedType)(e.getParentInputType());if((0,tv.isInputObjectType)(n)){let r=n.getFields()[t.name.value],i=r==null?void 0:r.deprecationReason;i!=null&&e.reportError(new hf.GraphQLError(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){let n=e.getEnumValue(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){let i=(0,tv.getNamedType)(e.getInputType());i!=null||(0,ev.invariant)(!1),e.reportError(new hf.GraphQLError(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}});var FL=w(rv=>{"use strict";m();T();N();Object.defineProperty(rv,"__esModule",{value:!0});rv.NoSchemaIntrospectionCustomRule=H8;var Q8=ze(),Y8=wt(),J8=Fi();function H8(e){return{Field(t){let n=(0,Y8.getNamedType)(e.getType());n&&(0,J8.isIntrospectionType)(n)&&e.reportError(new Q8.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}});var LL=w(ft=>{"use strict";m();T();N();Object.defineProperty(ft,"__esModule",{value:!0});Object.defineProperty(ft,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return X8.ExecutableDefinitionsRule}});Object.defineProperty(ft,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return Z8.FieldsOnCorrectTypeRule}});Object.defineProperty(ft,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return e5.FragmentsOnCompositeTypesRule}});Object.defineProperty(ft,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return t5.KnownArgumentNamesRule}});Object.defineProperty(ft,"KnownDirectivesRule",{enumerable:!0,get:function(){return n5.KnownDirectivesRule}});Object.defineProperty(ft,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return r5.KnownFragmentNamesRule}});Object.defineProperty(ft,"KnownTypeNamesRule",{enumerable:!0,get:function(){return i5.KnownTypeNamesRule}});Object.defineProperty(ft,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return a5.LoneAnonymousOperationRule}});Object.defineProperty(ft,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return O5.LoneSchemaDefinitionRule}});Object.defineProperty(ft,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return S5.MaxIntrospectionDepthRule}});Object.defineProperty(ft,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return L5.NoDeprecatedCustomRule}});Object.defineProperty(ft,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return s5.NoFragmentCyclesRule}});Object.defineProperty(ft,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return C5.NoSchemaIntrospectionCustomRule}});Object.defineProperty(ft,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return o5.NoUndefinedVariablesRule}});Object.defineProperty(ft,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return u5.NoUnusedFragmentsRule}});Object.defineProperty(ft,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return c5.NoUnusedVariablesRule}});Object.defineProperty(ft,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return l5.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(ft,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return d5.PossibleFragmentSpreadsRule}});Object.defineProperty(ft,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return w5.PossibleTypeExtensionsRule}});Object.defineProperty(ft,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return f5.ProvidedRequiredArgumentsRule}});Object.defineProperty(ft,"ScalarLeafsRule",{enumerable:!0,get:function(){return p5.ScalarLeafsRule}});Object.defineProperty(ft,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return m5.SingleFieldSubscriptionsRule}});Object.defineProperty(ft,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return P5.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(ft,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return N5.UniqueArgumentNamesRule}});Object.defineProperty(ft,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return F5.UniqueDirectiveNamesRule}});Object.defineProperty(ft,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return T5.UniqueDirectivesPerLocationRule}});Object.defineProperty(ft,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return A5.UniqueEnumValueNamesRule}});Object.defineProperty(ft,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return R5.UniqueFieldDefinitionNamesRule}});Object.defineProperty(ft,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return E5.UniqueFragmentNamesRule}});Object.defineProperty(ft,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return h5.UniqueInputFieldNamesRule}});Object.defineProperty(ft,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return y5.UniqueOperationNamesRule}});Object.defineProperty(ft,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return D5.UniqueOperationTypesRule}});Object.defineProperty(ft,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return b5.UniqueTypeNamesRule}});Object.defineProperty(ft,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return I5.UniqueVariableNamesRule}});Object.defineProperty(ft,"ValidationContext",{enumerable:!0,get:function(){return W8.ValidationContext}});Object.defineProperty(ft,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return g5.ValuesOfCorrectTypeRule}});Object.defineProperty(ft,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return _5.VariablesAreInputTypesRule}});Object.defineProperty(ft,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return v5.VariablesInAllowedPositionRule}});Object.defineProperty(ft,"recommendedRules",{enumerable:!0,get:function(){return wL.recommendedRules}});Object.defineProperty(ft,"specifiedRules",{enumerable:!0,get:function(){return wL.specifiedRules}});Object.defineProperty(ft,"validate",{enumerable:!0,get:function(){return z8.validate}});var z8=Tl(),W8=B_(),wL=w_(),X8=HI(),Z8=WI(),e5=ZI(),t5=eg(),n5=ig(),r5=sg(),i5=cg(),a5=dg(),s5=Eg(),o5=yg(),u5=gg(),c5=vg(),l5=Lg(),d5=Ug(),f5=qg(),p5=jg(),m5=Wg(),N5=n_(),T5=o_(),E5=m_(),h5=T_(),y5=h_(),I5=S_(),g5=b_(),_5=R_(),v5=F_(),S5=Ng(),O5=pg(),D5=I_(),b5=__(),A5=c_(),R5=f_(),P5=e_(),F5=i_(),w5=Mg(),L5=PL(),C5=FL()});var CL=w(ac=>{"use strict";m();T();N();Object.defineProperty(ac,"__esModule",{value:!0});Object.defineProperty(ac,"GraphQLError",{enumerable:!0,get:function(){return iv.GraphQLError}});Object.defineProperty(ac,"formatError",{enumerable:!0,get:function(){return iv.formatError}});Object.defineProperty(ac,"locatedError",{enumerable:!0,get:function(){return U5.locatedError}});Object.defineProperty(ac,"printError",{enumerable:!0,get:function(){return iv.printError}});Object.defineProperty(ac,"syntaxError",{enumerable:!0,get:function(){return B5.syntaxError}});var iv=ze(),B5=gm(),U5=EN()});var sv=w(av=>{"use strict";m();T();N();Object.defineProperty(av,"__esModule",{value:!0});av.getIntrospectionQuery=k5;function k5(e){let t=x({descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1},e),n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"",a=t.schemaDescription?n:"";function o(l){return t.inputValueDeprecation?l:""}let c=t.oneOf?"isOneOf":"";return` query IntrospectionQuery { __schema { ${a} @@ -177,27 +177,27 @@ In some cases, you need to provide options to alter GraphQL's execution behavior } } } - `}});var BL=w(ov=>{"use strict";m();T();N();Object.defineProperty(ov,"__esModule",{value:!0});ov.getOperationAST=x5;var M5=Ft();function x5(e,t){let n=null;for(let i of e.definitions)if(i.kind===M5.Kind.OPERATION_DEFINITION){var r;if(t==null){if(n)return null;n=i}else if(((r=i.name)===null||r===void 0?void 0:r.value)===t)return i}return n}});var UL=w(uv=>{"use strict";m();T();N();Object.defineProperty(uv,"__esModule",{value:!0});uv.getOperationRootType=q5;var DN=ze();function q5(e,t){if(t.operation==="query"){let n=e.getQueryType();if(!n)throw new DN.GraphQLError("Schema does not define the required query root type.",{nodes:t});return n}if(t.operation==="mutation"){let n=e.getMutationType();if(!n)throw new DN.GraphQLError("Schema is not configured for mutations.",{nodes:t});return n}if(t.operation==="subscription"){let n=e.getSubscriptionType();if(!n)throw new DN.GraphQLError("Schema is not configured for subscriptions.",{nodes:t});return n}throw new DN.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:t})}});var kL=w(cv=>{"use strict";m();T();N();Object.defineProperty(cv,"__esModule",{value:!0});cv.introspectionFromSchema=$5;var V5=Ir(),j5=il(),K5=Nf(),G5=sv();function $5(e,t){let n=x({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0},t),r=(0,j5.parse)((0,G5.getIntrospectionQuery)(n)),i=(0,K5.executeSync)({schema:e,document:r});return!i.errors&&i.data||(0,V5.invariant)(!1),i.data}});var xL=w(lv=>{"use strict";m();T();N();Object.defineProperty(lv,"__esModule",{value:!0});lv.buildClientSchema=X5;var Q5=Br(),di=Xt(),ML=Da(),bN=xd(),Y5=il(),fi=wt(),J5=Qr(),Ba=wi(),H5=Pa(),z5=Xu(),W5=lf();function X5(e,t){(0,ML.isObjectLike)(e)&&(0,ML.isObjectLike)(e.__schema)||(0,Q5.devAssert)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,di.inspect)(e)}.`);let n=e.__schema,r=(0,bN.keyValMap)(n.types,ee=>ee.name,ee=>I(ee));for(let ee of[...H5.specifiedScalarTypes,...Ba.introspectionTypes])r[ee.name]&&(r[ee.name]=ee);let i=n.queryType?p(n.queryType):null,a=n.mutationType?p(n.mutationType):null,o=n.subscriptionType?p(n.subscriptionType):null,c=n.directives?n.directives.map(tt):[];return new z5.GraphQLSchema({description:n.description,query:i,mutation:a,subscription:o,types:Object.values(r),directives:c,assumeValid:t==null?void 0:t.assumeValid});function l(ee){if(ee.kind===Ba.TypeKind.LIST){let Se=ee.ofType;if(!Se)throw new Error("Decorated type deeper than introspection query.");return new fi.GraphQLList(l(Se))}if(ee.kind===Ba.TypeKind.NON_NULL){let Se=ee.ofType;if(!Se)throw new Error("Decorated type deeper than introspection query.");let _t=l(Se);return new fi.GraphQLNonNull((0,fi.assertNullableType)(_t))}return d(ee)}function d(ee){let Se=ee.name;if(!Se)throw new Error(`Unknown type reference: ${(0,di.inspect)(ee)}.`);let _t=r[Se];if(!_t)throw new Error(`Invalid or incomplete schema, unknown type: ${Se}. Ensure that a full introspection query is used in order to build a client schema.`);return _t}function p(ee){return(0,fi.assertObjectType)(d(ee))}function y(ee){return(0,fi.assertInterfaceType)(d(ee))}function I(ee){if(ee!=null&&ee.name!=null&&ee.kind!=null)switch(ee.kind){case Ba.TypeKind.SCALAR:return v(ee);case Ba.TypeKind.OBJECT:return k(ee);case Ba.TypeKind.INTERFACE:return K(ee);case Ba.TypeKind.UNION:return J(ee);case Ba.TypeKind.ENUM:return se(ee);case Ba.TypeKind.INPUT_OBJECT:return ie(ee)}let Se=(0,di.inspect)(ee);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${Se}.`)}function v(ee){return new fi.GraphQLScalarType({name:ee.name,description:ee.description,specifiedByURL:ee.specifiedByURL})}function F(ee){if(ee.interfaces===null&&ee.kind===Ba.TypeKind.INTERFACE)return[];if(!ee.interfaces){let Se=(0,di.inspect)(ee);throw new Error(`Introspection result missing interfaces: ${Se}.`)}return ee.interfaces.map(y)}function k(ee){return new fi.GraphQLObjectType({name:ee.name,description:ee.description,interfaces:()=>F(ee),fields:()=>Te(ee)})}function K(ee){return new fi.GraphQLInterfaceType({name:ee.name,description:ee.description,interfaces:()=>F(ee),fields:()=>Te(ee)})}function J(ee){if(!ee.possibleTypes){let Se=(0,di.inspect)(ee);throw new Error(`Introspection result missing possibleTypes: ${Se}.`)}return new fi.GraphQLUnionType({name:ee.name,description:ee.description,types:()=>ee.possibleTypes.map(p)})}function se(ee){if(!ee.enumValues){let Se=(0,di.inspect)(ee);throw new Error(`Introspection result missing enumValues: ${Se}.`)}return new fi.GraphQLEnumType({name:ee.name,description:ee.description,values:(0,bN.keyValMap)(ee.enumValues,Se=>Se.name,Se=>({description:Se.description,deprecationReason:Se.deprecationReason}))})}function ie(ee){if(!ee.inputFields){let Se=(0,di.inspect)(ee);throw new Error(`Introspection result missing inputFields: ${Se}.`)}return new fi.GraphQLInputObjectType({name:ee.name,description:ee.description,fields:()=>Re(ee.inputFields),isOneOf:ee.isOneOf})}function Te(ee){if(!ee.fields)throw new Error(`Introspection result missing fields: ${(0,di.inspect)(ee)}.`);return(0,bN.keyValMap)(ee.fields,Se=>Se.name,de)}function de(ee){let Se=l(ee.type);if(!(0,fi.isOutputType)(Se)){let _t=(0,di.inspect)(Se);throw new Error(`Introspection must provide output type for fields, but received: ${_t}.`)}if(!ee.args){let _t=(0,di.inspect)(ee);throw new Error(`Introspection result missing field args: ${_t}.`)}return{description:ee.description,deprecationReason:ee.deprecationReason,type:Se,args:Re(ee.args)}}function Re(ee){return(0,bN.keyValMap)(ee,Se=>Se.name,xe)}function xe(ee){let Se=l(ee.type);if(!(0,fi.isInputType)(Se)){let en=(0,di.inspect)(Se);throw new Error(`Introspection must provide input type for arguments, but received: ${en}.`)}let _t=ee.defaultValue!=null?(0,W5.valueFromAST)((0,Y5.parseValue)(ee.defaultValue),Se):void 0;return{description:ee.description,type:Se,defaultValue:_t,deprecationReason:ee.deprecationReason}}function tt(ee){if(!ee.args){let Se=(0,di.inspect)(ee);throw new Error(`Introspection result missing directive args: ${Se}.`)}if(!ee.locations){let Se=(0,di.inspect)(ee);throw new Error(`Introspection result missing directive locations: ${Se}.`)}return new J5.GraphQLDirective({name:ee.name,description:ee.description,isRepeatable:ee.isRepeatable,locations:ee.locations.slice(),args:Re(ee.args)})}}});var fv=w(RN=>{"use strict";m();T();N();Object.defineProperty(RN,"__esModule",{value:!0});RN.extendSchema=iX;RN.extendSchemaImpl=YL;var Z5=Br(),eX=Xt(),tX=Ir(),nX=tu(),yf=dI(),ki=Ft(),qL=ec(),_n=wt(),If=Qr(),$L=wi(),QL=Pa(),VL=Xu(),rX=Tl(),dv=ml(),jL=lf();function iX(e,t,n){(0,VL.assertSchema)(e),t!=null&&t.kind===ki.Kind.DOCUMENT||(0,Z5.devAssert)(!1,"Must provide valid Document AST."),(n==null?void 0:n.assumeValid)!==!0&&(n==null?void 0:n.assumeValidSDL)!==!0&&(0,rX.assertValidSDLExtension)(t,e);let r=e.toConfig(),i=YL(r,t,n);return r===i?e:new VL.GraphQLSchema(i)}function YL(e,t,n){var r,i,a,o;let c=[],l=Object.create(null),d=[],p,y=[];for(let ue of t.definitions)if(ue.kind===ki.Kind.SCHEMA_DEFINITION)p=ue;else if(ue.kind===ki.Kind.SCHEMA_EXTENSION)y.push(ue);else if((0,qL.isTypeDefinitionNode)(ue))c.push(ue);else if((0,qL.isTypeExtensionNode)(ue)){let be=ue.name.value,ve=l[be];l[be]=ve?ve.concat([ue]):[ue]}else ue.kind===ki.Kind.DIRECTIVE_DEFINITION&&d.push(ue);if(Object.keys(l).length===0&&c.length===0&&d.length===0&&y.length===0&&p==null)return e;let I=Object.create(null);for(let ue of e.types)I[ue.name]=se(ue);for(let ue of c){var v;let be=ue.name.value;I[be]=(v=KL[be])!==null&&v!==void 0?v:Rn(ue)}let F=x(x({query:e.query&&K(e.query),mutation:e.mutation&&K(e.mutation),subscription:e.subscription&&K(e.subscription)},p&&_t([p])),_t(y));return Q(x({description:(r=p)===null||r===void 0||(i=r.description)===null||i===void 0?void 0:i.value},F),{types:Object.values(I),directives:[...e.directives.map(J),...d.map(An)],extensions:Object.create(null),astNode:(a=p)!==null&&a!==void 0?a:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(y),assumeValid:(o=n==null?void 0:n.assumeValid)!==null&&o!==void 0?o:!1});function k(ue){return(0,_n.isListType)(ue)?new _n.GraphQLList(k(ue.ofType)):(0,_n.isNonNullType)(ue)?new _n.GraphQLNonNull(k(ue.ofType)):K(ue)}function K(ue){return I[ue.name]}function J(ue){let be=ue.toConfig();return new If.GraphQLDirective(Q(x({},be),{args:(0,yf.mapValue)(be.args,Se)}))}function se(ue){if((0,$L.isIntrospectionType)(ue)||(0,QL.isSpecifiedScalarType)(ue))return ue;if((0,_n.isScalarType)(ue))return de(ue);if((0,_n.isObjectType)(ue))return Re(ue);if((0,_n.isInterfaceType)(ue))return xe(ue);if((0,_n.isUnionType)(ue))return tt(ue);if((0,_n.isEnumType)(ue))return Te(ue);if((0,_n.isInputObjectType)(ue))return ie(ue);(0,tX.invariant)(!1,"Unexpected type: "+(0,eX.inspect)(ue))}function ie(ue){var be;let ve=ue.toConfig(),Ce=(be=l[ve.name])!==null&&be!==void 0?be:[];return new _n.GraphQLInputObjectType(Q(x({},ve),{fields:()=>x(x({},(0,yf.mapValue)(ve.fields,vt=>Q(x({},vt),{type:k(vt.type)}))),Pr(Ce)),extensionASTNodes:ve.extensionASTNodes.concat(Ce)}))}function Te(ue){var be;let ve=ue.toConfig(),Ce=(be=l[ue.name])!==null&&be!==void 0?be:[];return new _n.GraphQLEnumType(Q(x({},ve),{values:x(x({},ve.values),Fr(Ce)),extensionASTNodes:ve.extensionASTNodes.concat(Ce)}))}function de(ue){var be;let ve=ue.toConfig(),Ce=(be=l[ve.name])!==null&&be!==void 0?be:[],vt=ve.specifiedByURL;for(let oe of Ce){var Y;vt=(Y=GL(oe))!==null&&Y!==void 0?Y:vt}return new _n.GraphQLScalarType(Q(x({},ve),{specifiedByURL:vt,extensionASTNodes:ve.extensionASTNodes.concat(Ce)}))}function Re(ue){var be;let ve=ue.toConfig(),Ce=(be=l[ve.name])!==null&&be!==void 0?be:[];return new _n.GraphQLObjectType(Q(x({},ve),{interfaces:()=>[...ue.getInterfaces().map(K),...kn(Ce)],fields:()=>x(x({},(0,yf.mapValue)(ve.fields,ee)),Qt(Ce)),extensionASTNodes:ve.extensionASTNodes.concat(Ce)}))}function xe(ue){var be;let ve=ue.toConfig(),Ce=(be=l[ve.name])!==null&&be!==void 0?be:[];return new _n.GraphQLInterfaceType(Q(x({},ve),{interfaces:()=>[...ue.getInterfaces().map(K),...kn(Ce)],fields:()=>x(x({},(0,yf.mapValue)(ve.fields,ee)),Qt(Ce)),extensionASTNodes:ve.extensionASTNodes.concat(Ce)}))}function tt(ue){var be;let ve=ue.toConfig(),Ce=(be=l[ve.name])!==null&&be!==void 0?be:[];return new _n.GraphQLUnionType(Q(x({},ve),{types:()=>[...ue.getTypes().map(K),...zt(Ce)],extensionASTNodes:ve.extensionASTNodes.concat(Ce)}))}function ee(ue){return Q(x({},ue),{type:k(ue.type),args:ue.args&&(0,yf.mapValue)(ue.args,Se)})}function Se(ue){return Q(x({},ue),{type:k(ue.type)})}function _t(ue){let be={};for(let Ce of ue){var ve;let vt=(ve=Ce.operationTypes)!==null&&ve!==void 0?ve:[];for(let Y of vt)be[Y.operation]=en(Y.type)}return be}function en(ue){var be;let ve=ue.name.value,Ce=(be=KL[ve])!==null&&be!==void 0?be:I[ve];if(Ce===void 0)throw new Error(`Unknown type: "${ve}".`);return Ce}function tn(ue){return ue.kind===ki.Kind.LIST_TYPE?new _n.GraphQLList(tn(ue.type)):ue.kind===ki.Kind.NON_NULL_TYPE?new _n.GraphQLNonNull(tn(ue.type)):en(ue)}function An(ue){var be;return new If.GraphQLDirective({name:ue.name.value,description:(be=ue.description)===null||be===void 0?void 0:be.value,locations:ue.locations.map(({value:ve})=>ve),isRepeatable:ue.repeatable,args:mn(ue.arguments),astNode:ue})}function Qt(ue){let be=Object.create(null);for(let vt of ue){var ve;let Y=(ve=vt.fields)!==null&&ve!==void 0?ve:[];for(let oe of Y){var Ce;be[oe.name.value]={type:tn(oe.type),description:(Ce=oe.description)===null||Ce===void 0?void 0:Ce.value,args:mn(oe.arguments),deprecationReason:AN(oe),astNode:oe}}}return be}function mn(ue){let be=ue!=null?ue:[],ve=Object.create(null);for(let vt of be){var Ce;let Y=tn(vt.type);ve[vt.name.value]={type:Y,description:(Ce=vt.description)===null||Ce===void 0?void 0:Ce.value,defaultValue:(0,jL.valueFromAST)(vt.defaultValue,Y),deprecationReason:AN(vt),astNode:vt}}return ve}function Pr(ue){let be=Object.create(null);for(let vt of ue){var ve;let Y=(ve=vt.fields)!==null&&ve!==void 0?ve:[];for(let oe of Y){var Ce;let qe=tn(oe.type);be[oe.name.value]={type:qe,description:(Ce=oe.description)===null||Ce===void 0?void 0:Ce.value,defaultValue:(0,jL.valueFromAST)(oe.defaultValue,qe),deprecationReason:AN(oe),astNode:oe}}}return be}function Fr(ue){let be=Object.create(null);for(let vt of ue){var ve;let Y=(ve=vt.values)!==null&&ve!==void 0?ve:[];for(let oe of Y){var Ce;be[oe.name.value]={description:(Ce=oe.description)===null||Ce===void 0?void 0:Ce.value,deprecationReason:AN(oe),astNode:oe}}}return be}function kn(ue){return ue.flatMap(be=>{var ve,Ce;return(ve=(Ce=be.interfaces)===null||Ce===void 0?void 0:Ce.map(en))!==null&&ve!==void 0?ve:[]})}function zt(ue){return ue.flatMap(be=>{var ve,Ce;return(ve=(Ce=be.types)===null||Ce===void 0?void 0:Ce.map(en))!==null&&ve!==void 0?ve:[]})}function Rn(ue){var be;let ve=ue.name.value,Ce=(be=l[ve])!==null&&be!==void 0?be:[];switch(ue.kind){case ki.Kind.OBJECT_TYPE_DEFINITION:{var vt;let nt=[ue,...Ce];return new _n.GraphQLObjectType({name:ve,description:(vt=ue.description)===null||vt===void 0?void 0:vt.value,interfaces:()=>kn(nt),fields:()=>Qt(nt),astNode:ue,extensionASTNodes:Ce})}case ki.Kind.INTERFACE_TYPE_DEFINITION:{var Y;let nt=[ue,...Ce];return new _n.GraphQLInterfaceType({name:ve,description:(Y=ue.description)===null||Y===void 0?void 0:Y.value,interfaces:()=>kn(nt),fields:()=>Qt(nt),astNode:ue,extensionASTNodes:Ce})}case ki.Kind.ENUM_TYPE_DEFINITION:{var oe;let nt=[ue,...Ce];return new _n.GraphQLEnumType({name:ve,description:(oe=ue.description)===null||oe===void 0?void 0:oe.value,values:Fr(nt),astNode:ue,extensionASTNodes:Ce})}case ki.Kind.UNION_TYPE_DEFINITION:{var qe;let nt=[ue,...Ce];return new _n.GraphQLUnionType({name:ve,description:(qe=ue.description)===null||qe===void 0?void 0:qe.value,types:()=>zt(nt),astNode:ue,extensionASTNodes:Ce})}case ki.Kind.SCALAR_TYPE_DEFINITION:{var Ye;return new _n.GraphQLScalarType({name:ve,description:(Ye=ue.description)===null||Ye===void 0?void 0:Ye.value,specifiedByURL:GL(ue),astNode:ue,extensionASTNodes:Ce})}case ki.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var Ut;let nt=[ue,...Ce];return new _n.GraphQLInputObjectType({name:ve,description:(Ut=ue.description)===null||Ut===void 0?void 0:Ut.value,fields:()=>Pr(nt),astNode:ue,extensionASTNodes:Ce,isOneOf:aX(ue)})}}}}var KL=(0,nX.keyMap)([...QL.specifiedScalarTypes,...$L.introspectionTypes],e=>e.name);function AN(e){let t=(0,dv.getDirectiveValues)(If.GraphQLDeprecatedDirective,e);return t==null?void 0:t.reason}function GL(e){let t=(0,dv.getDirectiveValues)(If.GraphQLSpecifiedByDirective,e);return t==null?void 0:t.url}function aX(e){return!!(0,dv.getDirectiveValues)(If.GraphQLOneOfDirective,e)}});var HL=w(PN=>{"use strict";m();T();N();Object.defineProperty(PN,"__esModule",{value:!0});PN.buildASTSchema=JL;PN.buildSchema=pX;var sX=Br(),oX=Ft(),uX=il(),cX=Qr(),lX=Xu(),dX=Tl(),fX=fv();function JL(e,t){e!=null&&e.kind===oX.Kind.DOCUMENT||(0,sX.devAssert)(!1,"Must provide valid Document AST."),(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,dX.assertValidSDL)(e);let n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},r=(0,fX.extendSchemaImpl)(n,e,t);if(r.astNode==null)for(let a of r.types)switch(a.name){case"Query":r.query=a;break;case"Mutation":r.mutation=a;break;case"Subscription":r.subscription=a;break}let i=[...r.directives,...cX.specifiedDirectives.filter(a=>r.directives.every(o=>o.name!==a.name))];return new lX.GraphQLSchema(Q(x({},r),{directives:i}))}function pX(e,t){let n=(0,uX.parse)(e,{noLocation:t==null?void 0:t.noLocation,allowLegacyFragmentVariables:t==null?void 0:t.allowLegacyFragmentVariables});return JL(n,{assumeValidSDL:t==null?void 0:t.assumeValidSDL,assumeValid:t==null?void 0:t.assumeValid})}});var XL=w(mv=>{"use strict";m();T();N();Object.defineProperty(mv,"__esModule",{value:!0});mv.lexicographicSortSchema=IX;var mX=Xt(),NX=Ir(),TX=xd(),zL=qd(),Ur=wt(),EX=Qr(),hX=wi(),yX=Xu();function IX(e){let t=e.toConfig(),n=(0,TX.keyValMap)(pv(t.types),I=>I.name,y);return new yX.GraphQLSchema(Q(x({},t),{types:Object.values(n),directives:pv(t.directives).map(o),query:a(t.query),mutation:a(t.mutation),subscription:a(t.subscription)}));function r(I){return(0,Ur.isListType)(I)?new Ur.GraphQLList(r(I.ofType)):(0,Ur.isNonNullType)(I)?new Ur.GraphQLNonNull(r(I.ofType)):i(I)}function i(I){return n[I.name]}function a(I){return I&&i(I)}function o(I){let v=I.toConfig();return new EX.GraphQLDirective(Q(x({},v),{locations:WL(v.locations,F=>F),args:c(v.args)}))}function c(I){return FN(I,v=>Q(x({},v),{type:r(v.type)}))}function l(I){return FN(I,v=>Q(x({},v),{type:r(v.type),args:v.args&&c(v.args)}))}function d(I){return FN(I,v=>Q(x({},v),{type:r(v.type)}))}function p(I){return pv(I).map(i)}function y(I){if((0,Ur.isScalarType)(I)||(0,hX.isIntrospectionType)(I))return I;if((0,Ur.isObjectType)(I)){let v=I.toConfig();return new Ur.GraphQLObjectType(Q(x({},v),{interfaces:()=>p(v.interfaces),fields:()=>l(v.fields)}))}if((0,Ur.isInterfaceType)(I)){let v=I.toConfig();return new Ur.GraphQLInterfaceType(Q(x({},v),{interfaces:()=>p(v.interfaces),fields:()=>l(v.fields)}))}if((0,Ur.isUnionType)(I)){let v=I.toConfig();return new Ur.GraphQLUnionType(Q(x({},v),{types:()=>p(v.types)}))}if((0,Ur.isEnumType)(I)){let v=I.toConfig();return new Ur.GraphQLEnumType(Q(x({},v),{values:FN(v.values,F=>F)}))}if((0,Ur.isInputObjectType)(I)){let v=I.toConfig();return new Ur.GraphQLInputObjectType(Q(x({},v),{fields:()=>d(v.fields)}))}(0,NX.invariant)(!1,"Unexpected type: "+(0,mX.inspect)(I))}}function FN(e,t){let n=Object.create(null);for(let r of Object.keys(e).sort(zL.naturalCompare))n[r]=t(e[r]);return n}function pv(e){return WL(e,t=>t.name)}function WL(e,t){return e.slice().sort((n,r)=>{let i=t(n),a=t(r);return(0,zL.naturalCompare)(i,a)})}});var aC=w(gf=>{"use strict";m();T();N();Object.defineProperty(gf,"__esModule",{value:!0});gf.printIntrospectionSchema=bX;gf.printSchema=DX;gf.printType=tC;var gX=Xt(),_X=Ir(),vX=Fd(),Tv=Ft(),wN=li(),hl=wt(),Ev=Qr(),ZL=wi(),SX=Pa(),OX=Zd();function DX(e){return eC(e,t=>!(0,Ev.isSpecifiedDirective)(t),AX)}function bX(e){return eC(e,Ev.isSpecifiedDirective,ZL.isIntrospectionType)}function AX(e){return!(0,SX.isSpecifiedScalarType)(e)&&!(0,ZL.isIntrospectionType)(e)}function eC(e,t,n){let r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[RX(e),...r.map(a=>kX(a)),...i.map(a=>tC(a))].filter(Boolean).join(` + `}});var BL=w(ov=>{"use strict";m();T();N();Object.defineProperty(ov,"__esModule",{value:!0});ov.getOperationAST=x5;var M5=Ft();function x5(e,t){let n=null;for(let i of e.definitions)if(i.kind===M5.Kind.OPERATION_DEFINITION){var r;if(t==null){if(n)return null;n=i}else if(((r=i.name)===null||r===void 0?void 0:r.value)===t)return i}return n}});var UL=w(uv=>{"use strict";m();T();N();Object.defineProperty(uv,"__esModule",{value:!0});uv.getOperationRootType=q5;var DN=ze();function q5(e,t){if(t.operation==="query"){let n=e.getQueryType();if(!n)throw new DN.GraphQLError("Schema does not define the required query root type.",{nodes:t});return n}if(t.operation==="mutation"){let n=e.getMutationType();if(!n)throw new DN.GraphQLError("Schema is not configured for mutations.",{nodes:t});return n}if(t.operation==="subscription"){let n=e.getSubscriptionType();if(!n)throw new DN.GraphQLError("Schema is not configured for subscriptions.",{nodes:t});return n}throw new DN.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:t})}});var kL=w(cv=>{"use strict";m();T();N();Object.defineProperty(cv,"__esModule",{value:!0});cv.introspectionFromSchema=$5;var V5=Ir(),j5=il(),K5=Nf(),G5=sv();function $5(e,t){let n=x({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0},t),r=(0,j5.parse)((0,G5.getIntrospectionQuery)(n)),i=(0,K5.executeSync)({schema:e,document:r});return!i.errors&&i.data||(0,V5.invariant)(!1),i.data}});var xL=w(lv=>{"use strict";m();T();N();Object.defineProperty(lv,"__esModule",{value:!0});lv.buildClientSchema=X5;var Q5=Br(),di=Xt(),ML=Da(),bN=xd(),Y5=il(),fi=wt(),J5=Qr(),Ba=Fi(),H5=Pa(),z5=Xu(),W5=lf();function X5(e,t){(0,ML.isObjectLike)(e)&&(0,ML.isObjectLike)(e.__schema)||(0,Q5.devAssert)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,di.inspect)(e)}.`);let n=e.__schema,r=(0,bN.keyValMap)(n.types,ee=>ee.name,ee=>I(ee));for(let ee of[...H5.specifiedScalarTypes,...Ba.introspectionTypes])r[ee.name]&&(r[ee.name]=ee);let i=n.queryType?p(n.queryType):null,a=n.mutationType?p(n.mutationType):null,o=n.subscriptionType?p(n.subscriptionType):null,c=n.directives?n.directives.map(tt):[];return new z5.GraphQLSchema({description:n.description,query:i,mutation:a,subscription:o,types:Object.values(r),directives:c,assumeValid:t==null?void 0:t.assumeValid});function l(ee){if(ee.kind===Ba.TypeKind.LIST){let Se=ee.ofType;if(!Se)throw new Error("Decorated type deeper than introspection query.");return new fi.GraphQLList(l(Se))}if(ee.kind===Ba.TypeKind.NON_NULL){let Se=ee.ofType;if(!Se)throw new Error("Decorated type deeper than introspection query.");let _t=l(Se);return new fi.GraphQLNonNull((0,fi.assertNullableType)(_t))}return d(ee)}function d(ee){let Se=ee.name;if(!Se)throw new Error(`Unknown type reference: ${(0,di.inspect)(ee)}.`);let _t=r[Se];if(!_t)throw new Error(`Invalid or incomplete schema, unknown type: ${Se}. Ensure that a full introspection query is used in order to build a client schema.`);return _t}function p(ee){return(0,fi.assertObjectType)(d(ee))}function y(ee){return(0,fi.assertInterfaceType)(d(ee))}function I(ee){if(ee!=null&&ee.name!=null&&ee.kind!=null)switch(ee.kind){case Ba.TypeKind.SCALAR:return v(ee);case Ba.TypeKind.OBJECT:return k(ee);case Ba.TypeKind.INTERFACE:return K(ee);case Ba.TypeKind.UNION:return J(ee);case Ba.TypeKind.ENUM:return se(ee);case Ba.TypeKind.INPUT_OBJECT:return ie(ee)}let Se=(0,di.inspect)(ee);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${Se}.`)}function v(ee){return new fi.GraphQLScalarType({name:ee.name,description:ee.description,specifiedByURL:ee.specifiedByURL})}function F(ee){if(ee.interfaces===null&&ee.kind===Ba.TypeKind.INTERFACE)return[];if(!ee.interfaces){let Se=(0,di.inspect)(ee);throw new Error(`Introspection result missing interfaces: ${Se}.`)}return ee.interfaces.map(y)}function k(ee){return new fi.GraphQLObjectType({name:ee.name,description:ee.description,interfaces:()=>F(ee),fields:()=>Te(ee)})}function K(ee){return new fi.GraphQLInterfaceType({name:ee.name,description:ee.description,interfaces:()=>F(ee),fields:()=>Te(ee)})}function J(ee){if(!ee.possibleTypes){let Se=(0,di.inspect)(ee);throw new Error(`Introspection result missing possibleTypes: ${Se}.`)}return new fi.GraphQLUnionType({name:ee.name,description:ee.description,types:()=>ee.possibleTypes.map(p)})}function se(ee){if(!ee.enumValues){let Se=(0,di.inspect)(ee);throw new Error(`Introspection result missing enumValues: ${Se}.`)}return new fi.GraphQLEnumType({name:ee.name,description:ee.description,values:(0,bN.keyValMap)(ee.enumValues,Se=>Se.name,Se=>({description:Se.description,deprecationReason:Se.deprecationReason}))})}function ie(ee){if(!ee.inputFields){let Se=(0,di.inspect)(ee);throw new Error(`Introspection result missing inputFields: ${Se}.`)}return new fi.GraphQLInputObjectType({name:ee.name,description:ee.description,fields:()=>Re(ee.inputFields),isOneOf:ee.isOneOf})}function Te(ee){if(!ee.fields)throw new Error(`Introspection result missing fields: ${(0,di.inspect)(ee)}.`);return(0,bN.keyValMap)(ee.fields,Se=>Se.name,de)}function de(ee){let Se=l(ee.type);if(!(0,fi.isOutputType)(Se)){let _t=(0,di.inspect)(Se);throw new Error(`Introspection must provide output type for fields, but received: ${_t}.`)}if(!ee.args){let _t=(0,di.inspect)(ee);throw new Error(`Introspection result missing field args: ${_t}.`)}return{description:ee.description,deprecationReason:ee.deprecationReason,type:Se,args:Re(ee.args)}}function Re(ee){return(0,bN.keyValMap)(ee,Se=>Se.name,xe)}function xe(ee){let Se=l(ee.type);if(!(0,fi.isInputType)(Se)){let en=(0,di.inspect)(Se);throw new Error(`Introspection must provide input type for arguments, but received: ${en}.`)}let _t=ee.defaultValue!=null?(0,W5.valueFromAST)((0,Y5.parseValue)(ee.defaultValue),Se):void 0;return{description:ee.description,type:Se,defaultValue:_t,deprecationReason:ee.deprecationReason}}function tt(ee){if(!ee.args){let Se=(0,di.inspect)(ee);throw new Error(`Introspection result missing directive args: ${Se}.`)}if(!ee.locations){let Se=(0,di.inspect)(ee);throw new Error(`Introspection result missing directive locations: ${Se}.`)}return new J5.GraphQLDirective({name:ee.name,description:ee.description,isRepeatable:ee.isRepeatable,locations:ee.locations.slice(),args:Re(ee.args)})}}});var fv=w(RN=>{"use strict";m();T();N();Object.defineProperty(RN,"__esModule",{value:!0});RN.extendSchema=iX;RN.extendSchemaImpl=YL;var Z5=Br(),eX=Xt(),tX=Ir(),nX=tu(),yf=dI(),Ui=Ft(),qL=ec(),_n=wt(),If=Qr(),$L=Fi(),QL=Pa(),VL=Xu(),rX=Tl(),dv=ml(),jL=lf();function iX(e,t,n){(0,VL.assertSchema)(e),t!=null&&t.kind===Ui.Kind.DOCUMENT||(0,Z5.devAssert)(!1,"Must provide valid Document AST."),(n==null?void 0:n.assumeValid)!==!0&&(n==null?void 0:n.assumeValidSDL)!==!0&&(0,rX.assertValidSDLExtension)(t,e);let r=e.toConfig(),i=YL(r,t,n);return r===i?e:new VL.GraphQLSchema(i)}function YL(e,t,n){var r,i,a,o;let c=[],l=Object.create(null),d=[],p,y=[];for(let ue of t.definitions)if(ue.kind===Ui.Kind.SCHEMA_DEFINITION)p=ue;else if(ue.kind===Ui.Kind.SCHEMA_EXTENSION)y.push(ue);else if((0,qL.isTypeDefinitionNode)(ue))c.push(ue);else if((0,qL.isTypeExtensionNode)(ue)){let be=ue.name.value,ve=l[be];l[be]=ve?ve.concat([ue]):[ue]}else ue.kind===Ui.Kind.DIRECTIVE_DEFINITION&&d.push(ue);if(Object.keys(l).length===0&&c.length===0&&d.length===0&&y.length===0&&p==null)return e;let I=Object.create(null);for(let ue of e.types)I[ue.name]=se(ue);for(let ue of c){var v;let be=ue.name.value;I[be]=(v=KL[be])!==null&&v!==void 0?v:Rn(ue)}let F=x(x({query:e.query&&K(e.query),mutation:e.mutation&&K(e.mutation),subscription:e.subscription&&K(e.subscription)},p&&_t([p])),_t(y));return Q(x({description:(r=p)===null||r===void 0||(i=r.description)===null||i===void 0?void 0:i.value},F),{types:Object.values(I),directives:[...e.directives.map(J),...d.map(An)],extensions:Object.create(null),astNode:(a=p)!==null&&a!==void 0?a:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(y),assumeValid:(o=n==null?void 0:n.assumeValid)!==null&&o!==void 0?o:!1});function k(ue){return(0,_n.isListType)(ue)?new _n.GraphQLList(k(ue.ofType)):(0,_n.isNonNullType)(ue)?new _n.GraphQLNonNull(k(ue.ofType)):K(ue)}function K(ue){return I[ue.name]}function J(ue){let be=ue.toConfig();return new If.GraphQLDirective(Q(x({},be),{args:(0,yf.mapValue)(be.args,Se)}))}function se(ue){if((0,$L.isIntrospectionType)(ue)||(0,QL.isSpecifiedScalarType)(ue))return ue;if((0,_n.isScalarType)(ue))return de(ue);if((0,_n.isObjectType)(ue))return Re(ue);if((0,_n.isInterfaceType)(ue))return xe(ue);if((0,_n.isUnionType)(ue))return tt(ue);if((0,_n.isEnumType)(ue))return Te(ue);if((0,_n.isInputObjectType)(ue))return ie(ue);(0,tX.invariant)(!1,"Unexpected type: "+(0,eX.inspect)(ue))}function ie(ue){var be;let ve=ue.toConfig(),Ce=(be=l[ve.name])!==null&&be!==void 0?be:[];return new _n.GraphQLInputObjectType(Q(x({},ve),{fields:()=>x(x({},(0,yf.mapValue)(ve.fields,vt=>Q(x({},vt),{type:k(vt.type)}))),Pr(Ce)),extensionASTNodes:ve.extensionASTNodes.concat(Ce)}))}function Te(ue){var be;let ve=ue.toConfig(),Ce=(be=l[ue.name])!==null&&be!==void 0?be:[];return new _n.GraphQLEnumType(Q(x({},ve),{values:x(x({},ve.values),Fr(Ce)),extensionASTNodes:ve.extensionASTNodes.concat(Ce)}))}function de(ue){var be;let ve=ue.toConfig(),Ce=(be=l[ve.name])!==null&&be!==void 0?be:[],vt=ve.specifiedByURL;for(let oe of Ce){var Y;vt=(Y=GL(oe))!==null&&Y!==void 0?Y:vt}return new _n.GraphQLScalarType(Q(x({},ve),{specifiedByURL:vt,extensionASTNodes:ve.extensionASTNodes.concat(Ce)}))}function Re(ue){var be;let ve=ue.toConfig(),Ce=(be=l[ve.name])!==null&&be!==void 0?be:[];return new _n.GraphQLObjectType(Q(x({},ve),{interfaces:()=>[...ue.getInterfaces().map(K),...kn(Ce)],fields:()=>x(x({},(0,yf.mapValue)(ve.fields,ee)),Qt(Ce)),extensionASTNodes:ve.extensionASTNodes.concat(Ce)}))}function xe(ue){var be;let ve=ue.toConfig(),Ce=(be=l[ve.name])!==null&&be!==void 0?be:[];return new _n.GraphQLInterfaceType(Q(x({},ve),{interfaces:()=>[...ue.getInterfaces().map(K),...kn(Ce)],fields:()=>x(x({},(0,yf.mapValue)(ve.fields,ee)),Qt(Ce)),extensionASTNodes:ve.extensionASTNodes.concat(Ce)}))}function tt(ue){var be;let ve=ue.toConfig(),Ce=(be=l[ve.name])!==null&&be!==void 0?be:[];return new _n.GraphQLUnionType(Q(x({},ve),{types:()=>[...ue.getTypes().map(K),...zt(Ce)],extensionASTNodes:ve.extensionASTNodes.concat(Ce)}))}function ee(ue){return Q(x({},ue),{type:k(ue.type),args:ue.args&&(0,yf.mapValue)(ue.args,Se)})}function Se(ue){return Q(x({},ue),{type:k(ue.type)})}function _t(ue){let be={};for(let Ce of ue){var ve;let vt=(ve=Ce.operationTypes)!==null&&ve!==void 0?ve:[];for(let Y of vt)be[Y.operation]=en(Y.type)}return be}function en(ue){var be;let ve=ue.name.value,Ce=(be=KL[ve])!==null&&be!==void 0?be:I[ve];if(Ce===void 0)throw new Error(`Unknown type: "${ve}".`);return Ce}function tn(ue){return ue.kind===Ui.Kind.LIST_TYPE?new _n.GraphQLList(tn(ue.type)):ue.kind===Ui.Kind.NON_NULL_TYPE?new _n.GraphQLNonNull(tn(ue.type)):en(ue)}function An(ue){var be;return new If.GraphQLDirective({name:ue.name.value,description:(be=ue.description)===null||be===void 0?void 0:be.value,locations:ue.locations.map(({value:ve})=>ve),isRepeatable:ue.repeatable,args:mn(ue.arguments),astNode:ue})}function Qt(ue){let be=Object.create(null);for(let vt of ue){var ve;let Y=(ve=vt.fields)!==null&&ve!==void 0?ve:[];for(let oe of Y){var Ce;be[oe.name.value]={type:tn(oe.type),description:(Ce=oe.description)===null||Ce===void 0?void 0:Ce.value,args:mn(oe.arguments),deprecationReason:AN(oe),astNode:oe}}}return be}function mn(ue){let be=ue!=null?ue:[],ve=Object.create(null);for(let vt of be){var Ce;let Y=tn(vt.type);ve[vt.name.value]={type:Y,description:(Ce=vt.description)===null||Ce===void 0?void 0:Ce.value,defaultValue:(0,jL.valueFromAST)(vt.defaultValue,Y),deprecationReason:AN(vt),astNode:vt}}return ve}function Pr(ue){let be=Object.create(null);for(let vt of ue){var ve;let Y=(ve=vt.fields)!==null&&ve!==void 0?ve:[];for(let oe of Y){var Ce;let qe=tn(oe.type);be[oe.name.value]={type:qe,description:(Ce=oe.description)===null||Ce===void 0?void 0:Ce.value,defaultValue:(0,jL.valueFromAST)(oe.defaultValue,qe),deprecationReason:AN(oe),astNode:oe}}}return be}function Fr(ue){let be=Object.create(null);for(let vt of ue){var ve;let Y=(ve=vt.values)!==null&&ve!==void 0?ve:[];for(let oe of Y){var Ce;be[oe.name.value]={description:(Ce=oe.description)===null||Ce===void 0?void 0:Ce.value,deprecationReason:AN(oe),astNode:oe}}}return be}function kn(ue){return ue.flatMap(be=>{var ve,Ce;return(ve=(Ce=be.interfaces)===null||Ce===void 0?void 0:Ce.map(en))!==null&&ve!==void 0?ve:[]})}function zt(ue){return ue.flatMap(be=>{var ve,Ce;return(ve=(Ce=be.types)===null||Ce===void 0?void 0:Ce.map(en))!==null&&ve!==void 0?ve:[]})}function Rn(ue){var be;let ve=ue.name.value,Ce=(be=l[ve])!==null&&be!==void 0?be:[];switch(ue.kind){case Ui.Kind.OBJECT_TYPE_DEFINITION:{var vt;let nt=[ue,...Ce];return new _n.GraphQLObjectType({name:ve,description:(vt=ue.description)===null||vt===void 0?void 0:vt.value,interfaces:()=>kn(nt),fields:()=>Qt(nt),astNode:ue,extensionASTNodes:Ce})}case Ui.Kind.INTERFACE_TYPE_DEFINITION:{var Y;let nt=[ue,...Ce];return new _n.GraphQLInterfaceType({name:ve,description:(Y=ue.description)===null||Y===void 0?void 0:Y.value,interfaces:()=>kn(nt),fields:()=>Qt(nt),astNode:ue,extensionASTNodes:Ce})}case Ui.Kind.ENUM_TYPE_DEFINITION:{var oe;let nt=[ue,...Ce];return new _n.GraphQLEnumType({name:ve,description:(oe=ue.description)===null||oe===void 0?void 0:oe.value,values:Fr(nt),astNode:ue,extensionASTNodes:Ce})}case Ui.Kind.UNION_TYPE_DEFINITION:{var qe;let nt=[ue,...Ce];return new _n.GraphQLUnionType({name:ve,description:(qe=ue.description)===null||qe===void 0?void 0:qe.value,types:()=>zt(nt),astNode:ue,extensionASTNodes:Ce})}case Ui.Kind.SCALAR_TYPE_DEFINITION:{var Ye;return new _n.GraphQLScalarType({name:ve,description:(Ye=ue.description)===null||Ye===void 0?void 0:Ye.value,specifiedByURL:GL(ue),astNode:ue,extensionASTNodes:Ce})}case Ui.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var Ut;let nt=[ue,...Ce];return new _n.GraphQLInputObjectType({name:ve,description:(Ut=ue.description)===null||Ut===void 0?void 0:Ut.value,fields:()=>Pr(nt),astNode:ue,extensionASTNodes:Ce,isOneOf:aX(ue)})}}}}var KL=(0,nX.keyMap)([...QL.specifiedScalarTypes,...$L.introspectionTypes],e=>e.name);function AN(e){let t=(0,dv.getDirectiveValues)(If.GraphQLDeprecatedDirective,e);return t==null?void 0:t.reason}function GL(e){let t=(0,dv.getDirectiveValues)(If.GraphQLSpecifiedByDirective,e);return t==null?void 0:t.url}function aX(e){return!!(0,dv.getDirectiveValues)(If.GraphQLOneOfDirective,e)}});var HL=w(PN=>{"use strict";m();T();N();Object.defineProperty(PN,"__esModule",{value:!0});PN.buildASTSchema=JL;PN.buildSchema=pX;var sX=Br(),oX=Ft(),uX=il(),cX=Qr(),lX=Xu(),dX=Tl(),fX=fv();function JL(e,t){e!=null&&e.kind===oX.Kind.DOCUMENT||(0,sX.devAssert)(!1,"Must provide valid Document AST."),(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,dX.assertValidSDL)(e);let n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},r=(0,fX.extendSchemaImpl)(n,e,t);if(r.astNode==null)for(let a of r.types)switch(a.name){case"Query":r.query=a;break;case"Mutation":r.mutation=a;break;case"Subscription":r.subscription=a;break}let i=[...r.directives,...cX.specifiedDirectives.filter(a=>r.directives.every(o=>o.name!==a.name))];return new lX.GraphQLSchema(Q(x({},r),{directives:i}))}function pX(e,t){let n=(0,uX.parse)(e,{noLocation:t==null?void 0:t.noLocation,allowLegacyFragmentVariables:t==null?void 0:t.allowLegacyFragmentVariables});return JL(n,{assumeValidSDL:t==null?void 0:t.assumeValidSDL,assumeValid:t==null?void 0:t.assumeValid})}});var XL=w(mv=>{"use strict";m();T();N();Object.defineProperty(mv,"__esModule",{value:!0});mv.lexicographicSortSchema=IX;var mX=Xt(),NX=Ir(),TX=xd(),zL=qd(),Ur=wt(),EX=Qr(),hX=Fi(),yX=Xu();function IX(e){let t=e.toConfig(),n=(0,TX.keyValMap)(pv(t.types),I=>I.name,y);return new yX.GraphQLSchema(Q(x({},t),{types:Object.values(n),directives:pv(t.directives).map(o),query:a(t.query),mutation:a(t.mutation),subscription:a(t.subscription)}));function r(I){return(0,Ur.isListType)(I)?new Ur.GraphQLList(r(I.ofType)):(0,Ur.isNonNullType)(I)?new Ur.GraphQLNonNull(r(I.ofType)):i(I)}function i(I){return n[I.name]}function a(I){return I&&i(I)}function o(I){let v=I.toConfig();return new EX.GraphQLDirective(Q(x({},v),{locations:WL(v.locations,F=>F),args:c(v.args)}))}function c(I){return FN(I,v=>Q(x({},v),{type:r(v.type)}))}function l(I){return FN(I,v=>Q(x({},v),{type:r(v.type),args:v.args&&c(v.args)}))}function d(I){return FN(I,v=>Q(x({},v),{type:r(v.type)}))}function p(I){return pv(I).map(i)}function y(I){if((0,Ur.isScalarType)(I)||(0,hX.isIntrospectionType)(I))return I;if((0,Ur.isObjectType)(I)){let v=I.toConfig();return new Ur.GraphQLObjectType(Q(x({},v),{interfaces:()=>p(v.interfaces),fields:()=>l(v.fields)}))}if((0,Ur.isInterfaceType)(I)){let v=I.toConfig();return new Ur.GraphQLInterfaceType(Q(x({},v),{interfaces:()=>p(v.interfaces),fields:()=>l(v.fields)}))}if((0,Ur.isUnionType)(I)){let v=I.toConfig();return new Ur.GraphQLUnionType(Q(x({},v),{types:()=>p(v.types)}))}if((0,Ur.isEnumType)(I)){let v=I.toConfig();return new Ur.GraphQLEnumType(Q(x({},v),{values:FN(v.values,F=>F)}))}if((0,Ur.isInputObjectType)(I)){let v=I.toConfig();return new Ur.GraphQLInputObjectType(Q(x({},v),{fields:()=>d(v.fields)}))}(0,NX.invariant)(!1,"Unexpected type: "+(0,mX.inspect)(I))}}function FN(e,t){let n=Object.create(null);for(let r of Object.keys(e).sort(zL.naturalCompare))n[r]=t(e[r]);return n}function pv(e){return WL(e,t=>t.name)}function WL(e,t){return e.slice().sort((n,r)=>{let i=t(n),a=t(r);return(0,zL.naturalCompare)(i,a)})}});var aC=w(gf=>{"use strict";m();T();N();Object.defineProperty(gf,"__esModule",{value:!0});gf.printIntrospectionSchema=bX;gf.printSchema=DX;gf.printType=tC;var gX=Xt(),_X=Ir(),vX=Fd(),Tv=Ft(),wN=li(),hl=wt(),Ev=Qr(),ZL=Fi(),SX=Pa(),OX=Zd();function DX(e){return eC(e,t=>!(0,Ev.isSpecifiedDirective)(t),AX)}function bX(e){return eC(e,Ev.isSpecifiedDirective,ZL.isIntrospectionType)}function AX(e){return!(0,SX.isSpecifiedScalarType)(e)&&!(0,ZL.isIntrospectionType)(e)}function eC(e,t,n){let r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[RX(e),...r.map(a=>kX(a)),...i.map(a=>tC(a))].filter(Boolean).join(` -`)}function RX(e){if(e.description==null&&PX(e))return;let t=[],n=e.getQueryType();n&&t.push(` query: ${n.name}`);let r=e.getMutationType();r&&t.push(` mutation: ${r.name}`);let i=e.getSubscriptionType();return i&&t.push(` subscription: ${i.name}`),Mi(e)+`schema { +`)}function RX(e){if(e.description==null&&PX(e))return;let t=[],n=e.getQueryType();n&&t.push(` query: ${n.name}`);let r=e.getMutationType();r&&t.push(` mutation: ${r.name}`);let i=e.getSubscriptionType();return i&&t.push(` subscription: ${i.name}`),ki(e)+`schema { ${t.join(` `)} -}`}function PX(e){let t=e.getQueryType();if(t&&t.name!=="Query")return!1;let n=e.getMutationType();if(n&&n.name!=="Mutation")return!1;let r=e.getSubscriptionType();return!(r&&r.name!=="Subscription")}function tC(e){if((0,hl.isScalarType)(e))return FX(e);if((0,hl.isObjectType)(e))return wX(e);if((0,hl.isInterfaceType)(e))return LX(e);if((0,hl.isUnionType)(e))return CX(e);if((0,hl.isEnumType)(e))return BX(e);if((0,hl.isInputObjectType)(e))return UX(e);(0,_X.invariant)(!1,"Unexpected type: "+(0,gX.inspect)(e))}function FX(e){return Mi(e)+`scalar ${e.name}`+MX(e)}function nC(e){let t=e.getInterfaces();return t.length?" implements "+t.map(n=>n.name).join(" & "):""}function wX(e){return Mi(e)+`type ${e.name}`+nC(e)+rC(e)}function LX(e){return Mi(e)+`interface ${e.name}`+nC(e)+rC(e)}function CX(e){let t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return Mi(e)+"union "+e.name+n}function BX(e){let t=e.getValues().map((n,r)=>Mi(n," ",!r)+" "+n.name+yv(n.deprecationReason));return Mi(e)+`enum ${e.name}`+hv(t)}function UX(e){let t=Object.values(e.getFields()).map((n,r)=>Mi(n," ",!r)+" "+Nv(n));return Mi(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+hv(t)}function rC(e){let t=Object.values(e.getFields()).map((n,r)=>Mi(n," ",!r)+" "+n.name+iC(n.args," ")+": "+String(n.type)+yv(n.deprecationReason));return hv(t)}function hv(e){return e.length!==0?` { +}`}function PX(e){let t=e.getQueryType();if(t&&t.name!=="Query")return!1;let n=e.getMutationType();if(n&&n.name!=="Mutation")return!1;let r=e.getSubscriptionType();return!(r&&r.name!=="Subscription")}function tC(e){if((0,hl.isScalarType)(e))return FX(e);if((0,hl.isObjectType)(e))return wX(e);if((0,hl.isInterfaceType)(e))return LX(e);if((0,hl.isUnionType)(e))return CX(e);if((0,hl.isEnumType)(e))return BX(e);if((0,hl.isInputObjectType)(e))return UX(e);(0,_X.invariant)(!1,"Unexpected type: "+(0,gX.inspect)(e))}function FX(e){return ki(e)+`scalar ${e.name}`+MX(e)}function nC(e){let t=e.getInterfaces();return t.length?" implements "+t.map(n=>n.name).join(" & "):""}function wX(e){return ki(e)+`type ${e.name}`+nC(e)+rC(e)}function LX(e){return ki(e)+`interface ${e.name}`+nC(e)+rC(e)}function CX(e){let t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return ki(e)+"union "+e.name+n}function BX(e){let t=e.getValues().map((n,r)=>ki(n," ",!r)+" "+n.name+yv(n.deprecationReason));return ki(e)+`enum ${e.name}`+hv(t)}function UX(e){let t=Object.values(e.getFields()).map((n,r)=>ki(n," ",!r)+" "+Nv(n));return ki(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+hv(t)}function rC(e){let t=Object.values(e.getFields()).map((n,r)=>ki(n," ",!r)+" "+n.name+iC(n.args," ")+": "+String(n.type)+yv(n.deprecationReason));return hv(t)}function hv(e){return e.length!==0?` { `+e.join(` `)+` }`:""}function iC(e,t=""){return e.length===0?"":e.every(n=>!n.description)?"("+e.map(Nv).join(", ")+")":`( -`+e.map((n,r)=>Mi(n," "+t,!r)+" "+t+Nv(n)).join(` +`+e.map((n,r)=>ki(n," "+t,!r)+" "+t+Nv(n)).join(` `)+` -`+t+")"}function Nv(e){let t=(0,OX.astFromValue)(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=` = ${(0,wN.print)(t)}`),n+yv(e.deprecationReason)}function kX(e){return Mi(e)+"directive @"+e.name+iC(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function yv(e){return e==null?"":e!==Ev.DEFAULT_DEPRECATION_REASON?` @deprecated(reason: ${(0,wN.print)({kind:Tv.Kind.STRING,value:e})})`:" @deprecated"}function MX(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${(0,wN.print)({kind:Tv.Kind.STRING,value:e.specifiedByURL})})`}function Mi(e,t="",n=!0){let{description:r}=e;if(r==null)return"";let i=(0,wN.print)({kind:Tv.Kind.STRING,value:r,block:(0,vX.isPrintableAsBlockString)(r)});return(t&&!n?` +`+t+")"}function Nv(e){let t=(0,OX.astFromValue)(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=` = ${(0,wN.print)(t)}`),n+yv(e.deprecationReason)}function kX(e){return ki(e)+"directive @"+e.name+iC(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function yv(e){return e==null?"":e!==Ev.DEFAULT_DEPRECATION_REASON?` @deprecated(reason: ${(0,wN.print)({kind:Tv.Kind.STRING,value:e})})`:" @deprecated"}function MX(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${(0,wN.print)({kind:Tv.Kind.STRING,value:e.specifiedByURL})})`}function ki(e,t="",n=!0){let{description:r}=e;if(r==null)return"";let i=(0,wN.print)({kind:Tv.Kind.STRING,value:r,block:(0,vX.isPrintableAsBlockString)(r)});return(t&&!n?` `+t:t)+i.replace(/\n/g,` `+t)+` `}});var sC=w(Iv=>{"use strict";m();T();N();Object.defineProperty(Iv,"__esModule",{value:!0});Iv.concatAST=qX;var xX=Ft();function qX(e){let t=[];for(let n of e)t.push(...n.definitions);return{kind:xX.Kind.DOCUMENT,definitions:t}}});var cC=w(gv=>{"use strict";m();T();N();Object.defineProperty(gv,"__esModule",{value:!0});gv.separateOperations=jX;var LN=Ft(),VX=Qu();function jX(e){let t=[],n=Object.create(null);for(let i of e.definitions)switch(i.kind){case LN.Kind.OPERATION_DEFINITION:t.push(i);break;case LN.Kind.FRAGMENT_DEFINITION:n[i.name.value]=oC(i.selectionSet);break;default:}let r=Object.create(null);for(let i of t){let a=new Set;for(let c of oC(i.selectionSet))uC(a,n,c);let o=i.name?i.name.value:"";r[o]={kind:LN.Kind.DOCUMENT,definitions:e.definitions.filter(c=>c===i||c.kind===LN.Kind.FRAGMENT_DEFINITION&&a.has(c.name.value))}}return r}function uC(e,t,n){if(!e.has(n)){e.add(n);let r=t[n];if(r!==void 0)for(let i of r)uC(e,t,i)}}function oC(e){let t=[];return(0,VX.visit)(e,{FragmentSpread(n){t.push(n.name.value)}}),t}});var fC=w(vv=>{"use strict";m();T();N();Object.defineProperty(vv,"__esModule",{value:!0});vv.stripIgnoredCharacters=GX;var KX=Fd(),lC=Sm(),dC=Am(),_v=Ld();function GX(e){let t=(0,dC.isSource)(e)?e:new dC.Source(e),n=t.body,r=new lC.Lexer(t),i="",a=!1;for(;r.advance().kind!==_v.TokenKind.EOF;){let o=r.token,c=o.kind,l=!(0,lC.isPunctuatorTokenKind)(o.kind);a&&(l||o.kind===_v.TokenKind.SPREAD)&&(i+=" ");let d=n.slice(o.start,o.end);c===_v.TokenKind.BLOCK_STRING?i+=(0,KX.printBlockString)(o.value,{minimize:!0}):i+=d,a=l}return i}});var mC=w(CN=>{"use strict";m();T();N();Object.defineProperty(CN,"__esModule",{value:!0});CN.assertValidName=JX;CN.isValidNameError=pC;var $X=Br(),QX=ze(),YX=Vd();function JX(e){let t=pC(e);if(t)throw t;return e}function pC(e){if(typeof e=="string"||(0,$X.devAssert)(!1,"Expected name to be a string."),e.startsWith("__"))return new QX.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,YX.assertName)(e)}catch(t){return t}}});var _C=w(Ua=>{"use strict";m();T();N();Object.defineProperty(Ua,"__esModule",{value:!0});Ua.DangerousChangeType=Ua.BreakingChangeType=void 0;Ua.findBreakingChanges=e9;Ua.findDangerousChanges=t9;var HX=Xt(),IC=Ir(),NC=tu(),zX=li(),jt=wt(),WX=Pa(),XX=Zd(),ZX=Dg(),Cn;Ua.BreakingChangeType=Cn;(function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"})(Cn||(Ua.BreakingChangeType=Cn={}));var ua;Ua.DangerousChangeType=ua;(function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"})(ua||(Ua.DangerousChangeType=ua={}));function e9(e,t){return gC(e,t).filter(n=>n.type in Cn)}function t9(e,t){return gC(e,t).filter(n=>n.type in ua)}function gC(e,t){return[...r9(e,t),...n9(e,t)]}function n9(e,t){let n=[],r=_s(e.getDirectives(),t.getDirectives());for(let i of r.removed)n.push({type:Cn.DIRECTIVE_REMOVED,description:`${i.name} was removed.`});for(let[i,a]of r.persisted){let o=_s(i.args,a.args);for(let c of o.added)(0,jt.isRequiredArgument)(c)&&n.push({type:Cn.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${c.name} on directive ${i.name} was added.`});for(let c of o.removed)n.push({type:Cn.DIRECTIVE_ARG_REMOVED,description:`${c.name} was removed from ${i.name}.`});i.isRepeatable&&!a.isRepeatable&&n.push({type:Cn.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${i.name}.`});for(let c of i.locations)a.locations.includes(c)||n.push({type:Cn.DIRECTIVE_LOCATION_REMOVED,description:`${c} was removed from ${i.name}.`})}return n}function r9(e,t){let n=[],r=_s(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let i of r.removed)n.push({type:Cn.TYPE_REMOVED,description:(0,WX.isSpecifiedScalarType)(i)?`Standard scalar ${i.name} was removed because it is not referenced anymore.`:`${i.name} was removed.`});for(let[i,a]of r.persisted)(0,jt.isEnumType)(i)&&(0,jt.isEnumType)(a)?n.push(...s9(i,a)):(0,jt.isUnionType)(i)&&(0,jt.isUnionType)(a)?n.push(...a9(i,a)):(0,jt.isInputObjectType)(i)&&(0,jt.isInputObjectType)(a)?n.push(...i9(i,a)):(0,jt.isObjectType)(i)&&(0,jt.isObjectType)(a)?n.push(...EC(i,a),...TC(i,a)):(0,jt.isInterfaceType)(i)&&(0,jt.isInterfaceType)(a)?n.push(...EC(i,a),...TC(i,a)):i.constructor!==a.constructor&&n.push({type:Cn.TYPE_CHANGED_KIND,description:`${i.name} changed from ${hC(i)} to ${hC(a)}.`});return n}function i9(e,t){let n=[],r=_s(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of r.added)(0,jt.isRequiredInputField)(i)?n.push({type:Cn.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${i.name} on input type ${e.name} was added.`}):n.push({type:ua.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${i.name} on input type ${e.name} was added.`});for(let i of r.removed)n.push({type:Cn.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,a]of r.persisted)vf(i.type,a.type)||n.push({type:Cn.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(a.type)}.`});return n}function a9(e,t){let n=[],r=_s(e.getTypes(),t.getTypes());for(let i of r.added)n.push({type:ua.TYPE_ADDED_TO_UNION,description:`${i.name} was added to union type ${e.name}.`});for(let i of r.removed)n.push({type:Cn.TYPE_REMOVED_FROM_UNION,description:`${i.name} was removed from union type ${e.name}.`});return n}function s9(e,t){let n=[],r=_s(e.getValues(),t.getValues());for(let i of r.added)n.push({type:ua.VALUE_ADDED_TO_ENUM,description:`${i.name} was added to enum type ${e.name}.`});for(let i of r.removed)n.push({type:Cn.VALUE_REMOVED_FROM_ENUM,description:`${i.name} was removed from enum type ${e.name}.`});return n}function TC(e,t){let n=[],r=_s(e.getInterfaces(),t.getInterfaces());for(let i of r.added)n.push({type:ua.IMPLEMENTED_INTERFACE_ADDED,description:`${i.name} added to interfaces implemented by ${e.name}.`});for(let i of r.removed)n.push({type:Cn.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${i.name}.`});return n}function EC(e,t){let n=[],r=_s(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of r.removed)n.push({type:Cn.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,a]of r.persisted)n.push(...o9(e,i,a)),_f(i.type,a.type)||n.push({type:Cn.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(a.type)}.`});return n}function o9(e,t,n){let r=[],i=_s(t.args,n.args);for(let a of i.removed)r.push({type:Cn.ARG_REMOVED,description:`${e.name}.${t.name} arg ${a.name} was removed.`});for(let[a,o]of i.persisted)if(!vf(a.type,o.type))r.push({type:Cn.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${a.name} has changed type from ${String(a.type)} to ${String(o.type)}.`});else if(a.defaultValue!==void 0)if(o.defaultValue===void 0)r.push({type:ua.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${a.name} defaultValue was removed.`});else{let l=yC(a.defaultValue,a.type),d=yC(o.defaultValue,o.type);l!==d&&r.push({type:ua.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${a.name} has changed defaultValue from ${l} to ${d}.`})}for(let a of i.added)(0,jt.isRequiredArgument)(a)?r.push({type:Cn.REQUIRED_ARG_ADDED,description:`A required arg ${a.name} on ${e.name}.${t.name} was added.`}):r.push({type:ua.OPTIONAL_ARG_ADDED,description:`An optional arg ${a.name} on ${e.name}.${t.name} was added.`});return r}function _f(e,t){return(0,jt.isListType)(e)?(0,jt.isListType)(t)&&_f(e.ofType,t.ofType)||(0,jt.isNonNullType)(t)&&_f(e,t.ofType):(0,jt.isNonNullType)(e)?(0,jt.isNonNullType)(t)&&_f(e.ofType,t.ofType):(0,jt.isNamedType)(t)&&e.name===t.name||(0,jt.isNonNullType)(t)&&_f(e,t.ofType)}function vf(e,t){return(0,jt.isListType)(e)?(0,jt.isListType)(t)&&vf(e.ofType,t.ofType):(0,jt.isNonNullType)(e)?(0,jt.isNonNullType)(t)&&vf(e.ofType,t.ofType)||!(0,jt.isNonNullType)(t)&&vf(e.ofType,t):(0,jt.isNamedType)(t)&&e.name===t.name}function hC(e){if((0,jt.isScalarType)(e))return"a Scalar type";if((0,jt.isObjectType)(e))return"an Object type";if((0,jt.isInterfaceType)(e))return"an Interface type";if((0,jt.isUnionType)(e))return"a Union type";if((0,jt.isEnumType)(e))return"an Enum type";if((0,jt.isInputObjectType)(e))return"an Input type";(0,IC.invariant)(!1,"Unexpected type: "+(0,HX.inspect)(e))}function yC(e,t){let n=(0,XX.astFromValue)(e,t);return n!=null||(0,IC.invariant)(!1),(0,zX.print)((0,ZX.sortValueNode)(n))}function _s(e,t){let n=[],r=[],i=[],a=(0,NC.keyMap)(e,({name:c})=>c),o=(0,NC.keyMap)(t,({name:c})=>c);for(let c of e){let l=o[c.name];l===void 0?r.push(c):i.push([c,l])}for(let c of t)a[c.name]===void 0&&n.push(c);return{added:n,persisted:i,removed:r}}});var DC=w(Mt=>{"use strict";m();T();N();Object.defineProperty(Mt,"__esModule",{value:!0});Object.defineProperty(Mt,"BreakingChangeType",{enumerable:!0,get:function(){return BN.BreakingChangeType}});Object.defineProperty(Mt,"DangerousChangeType",{enumerable:!0,get:function(){return BN.DangerousChangeType}});Object.defineProperty(Mt,"TypeInfo",{enumerable:!0,get:function(){return SC.TypeInfo}});Object.defineProperty(Mt,"assertValidName",{enumerable:!0,get:function(){return OC.assertValidName}});Object.defineProperty(Mt,"astFromValue",{enumerable:!0,get:function(){return h9.astFromValue}});Object.defineProperty(Mt,"buildASTSchema",{enumerable:!0,get:function(){return vC.buildASTSchema}});Object.defineProperty(Mt,"buildClientSchema",{enumerable:!0,get:function(){return f9.buildClientSchema}});Object.defineProperty(Mt,"buildSchema",{enumerable:!0,get:function(){return vC.buildSchema}});Object.defineProperty(Mt,"coerceInputValue",{enumerable:!0,get:function(){return y9.coerceInputValue}});Object.defineProperty(Mt,"concatAST",{enumerable:!0,get:function(){return I9.concatAST}});Object.defineProperty(Mt,"doTypesOverlap",{enumerable:!0,get:function(){return Ov.doTypesOverlap}});Object.defineProperty(Mt,"extendSchema",{enumerable:!0,get:function(){return p9.extendSchema}});Object.defineProperty(Mt,"findBreakingChanges",{enumerable:!0,get:function(){return BN.findBreakingChanges}});Object.defineProperty(Mt,"findDangerousChanges",{enumerable:!0,get:function(){return BN.findDangerousChanges}});Object.defineProperty(Mt,"getIntrospectionQuery",{enumerable:!0,get:function(){return u9.getIntrospectionQuery}});Object.defineProperty(Mt,"getOperationAST",{enumerable:!0,get:function(){return c9.getOperationAST}});Object.defineProperty(Mt,"getOperationRootType",{enumerable:!0,get:function(){return l9.getOperationRootType}});Object.defineProperty(Mt,"introspectionFromSchema",{enumerable:!0,get:function(){return d9.introspectionFromSchema}});Object.defineProperty(Mt,"isEqualType",{enumerable:!0,get:function(){return Ov.isEqualType}});Object.defineProperty(Mt,"isTypeSubTypeOf",{enumerable:!0,get:function(){return Ov.isTypeSubTypeOf}});Object.defineProperty(Mt,"isValidNameError",{enumerable:!0,get:function(){return OC.isValidNameError}});Object.defineProperty(Mt,"lexicographicSortSchema",{enumerable:!0,get:function(){return m9.lexicographicSortSchema}});Object.defineProperty(Mt,"printIntrospectionSchema",{enumerable:!0,get:function(){return Sv.printIntrospectionSchema}});Object.defineProperty(Mt,"printSchema",{enumerable:!0,get:function(){return Sv.printSchema}});Object.defineProperty(Mt,"printType",{enumerable:!0,get:function(){return Sv.printType}});Object.defineProperty(Mt,"separateOperations",{enumerable:!0,get:function(){return g9.separateOperations}});Object.defineProperty(Mt,"stripIgnoredCharacters",{enumerable:!0,get:function(){return _9.stripIgnoredCharacters}});Object.defineProperty(Mt,"typeFromAST",{enumerable:!0,get:function(){return N9.typeFromAST}});Object.defineProperty(Mt,"valueFromAST",{enumerable:!0,get:function(){return T9.valueFromAST}});Object.defineProperty(Mt,"valueFromASTUntyped",{enumerable:!0,get:function(){return E9.valueFromASTUntyped}});Object.defineProperty(Mt,"visitWithTypeInfo",{enumerable:!0,get:function(){return SC.visitWithTypeInfo}});var u9=sv(),c9=BL(),l9=UL(),d9=kL(),f9=xL(),vC=HL(),p9=fv(),m9=XL(),Sv=aC(),N9=Fa(),T9=lf(),E9=_I(),h9=Zd(),SC=nN(),y9=Qg(),I9=sC(),g9=cC(),_9=fC(),Ov=Qd(),OC=mC(),BN=_C()});var De=w(V=>{"use strict";m();T();N();Object.defineProperty(V,"__esModule",{value:!0});Object.defineProperty(V,"BREAK",{enumerable:!0,get:function(){return Jt.BREAK}});Object.defineProperty(V,"BreakingChangeType",{enumerable:!0,get:function(){return Ht.BreakingChangeType}});Object.defineProperty(V,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return ge.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(V,"DangerousChangeType",{enumerable:!0,get:function(){return Ht.DangerousChangeType}});Object.defineProperty(V,"DirectiveLocation",{enumerable:!0,get:function(){return Jt.DirectiveLocation}});Object.defineProperty(V,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return Tt.ExecutableDefinitionsRule}});Object.defineProperty(V,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return Tt.FieldsOnCorrectTypeRule}});Object.defineProperty(V,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return Tt.FragmentsOnCompositeTypesRule}});Object.defineProperty(V,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return ge.GRAPHQL_MAX_INT}});Object.defineProperty(V,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return ge.GRAPHQL_MIN_INT}});Object.defineProperty(V,"GraphQLBoolean",{enumerable:!0,get:function(){return ge.GraphQLBoolean}});Object.defineProperty(V,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return ge.GraphQLDeprecatedDirective}});Object.defineProperty(V,"GraphQLDirective",{enumerable:!0,get:function(){return ge.GraphQLDirective}});Object.defineProperty(V,"GraphQLEnumType",{enumerable:!0,get:function(){return ge.GraphQLEnumType}});Object.defineProperty(V,"GraphQLError",{enumerable:!0,get:function(){return Sf.GraphQLError}});Object.defineProperty(V,"GraphQLFloat",{enumerable:!0,get:function(){return ge.GraphQLFloat}});Object.defineProperty(V,"GraphQLID",{enumerable:!0,get:function(){return ge.GraphQLID}});Object.defineProperty(V,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return ge.GraphQLIncludeDirective}});Object.defineProperty(V,"GraphQLInputObjectType",{enumerable:!0,get:function(){return ge.GraphQLInputObjectType}});Object.defineProperty(V,"GraphQLInt",{enumerable:!0,get:function(){return ge.GraphQLInt}});Object.defineProperty(V,"GraphQLInterfaceType",{enumerable:!0,get:function(){return ge.GraphQLInterfaceType}});Object.defineProperty(V,"GraphQLList",{enumerable:!0,get:function(){return ge.GraphQLList}});Object.defineProperty(V,"GraphQLNonNull",{enumerable:!0,get:function(){return ge.GraphQLNonNull}});Object.defineProperty(V,"GraphQLObjectType",{enumerable:!0,get:function(){return ge.GraphQLObjectType}});Object.defineProperty(V,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return ge.GraphQLOneOfDirective}});Object.defineProperty(V,"GraphQLScalarType",{enumerable:!0,get:function(){return ge.GraphQLScalarType}});Object.defineProperty(V,"GraphQLSchema",{enumerable:!0,get:function(){return ge.GraphQLSchema}});Object.defineProperty(V,"GraphQLSkipDirective",{enumerable:!0,get:function(){return ge.GraphQLSkipDirective}});Object.defineProperty(V,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return ge.GraphQLSpecifiedByDirective}});Object.defineProperty(V,"GraphQLString",{enumerable:!0,get:function(){return ge.GraphQLString}});Object.defineProperty(V,"GraphQLUnionType",{enumerable:!0,get:function(){return ge.GraphQLUnionType}});Object.defineProperty(V,"Kind",{enumerable:!0,get:function(){return Jt.Kind}});Object.defineProperty(V,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return Tt.KnownArgumentNamesRule}});Object.defineProperty(V,"KnownDirectivesRule",{enumerable:!0,get:function(){return Tt.KnownDirectivesRule}});Object.defineProperty(V,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return Tt.KnownFragmentNamesRule}});Object.defineProperty(V,"KnownTypeNamesRule",{enumerable:!0,get:function(){return Tt.KnownTypeNamesRule}});Object.defineProperty(V,"Lexer",{enumerable:!0,get:function(){return Jt.Lexer}});Object.defineProperty(V,"Location",{enumerable:!0,get:function(){return Jt.Location}});Object.defineProperty(V,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return Tt.LoneAnonymousOperationRule}});Object.defineProperty(V,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return Tt.LoneSchemaDefinitionRule}});Object.defineProperty(V,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return Tt.MaxIntrospectionDepthRule}});Object.defineProperty(V,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return Tt.NoDeprecatedCustomRule}});Object.defineProperty(V,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return Tt.NoFragmentCyclesRule}});Object.defineProperty(V,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return Tt.NoSchemaIntrospectionCustomRule}});Object.defineProperty(V,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return Tt.NoUndefinedVariablesRule}});Object.defineProperty(V,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return Tt.NoUnusedFragmentsRule}});Object.defineProperty(V,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return Tt.NoUnusedVariablesRule}});Object.defineProperty(V,"OperationTypeNode",{enumerable:!0,get:function(){return Jt.OperationTypeNode}});Object.defineProperty(V,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return Tt.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(V,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return Tt.PossibleFragmentSpreadsRule}});Object.defineProperty(V,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return Tt.PossibleTypeExtensionsRule}});Object.defineProperty(V,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return Tt.ProvidedRequiredArgumentsRule}});Object.defineProperty(V,"ScalarLeafsRule",{enumerable:!0,get:function(){return Tt.ScalarLeafsRule}});Object.defineProperty(V,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return ge.SchemaMetaFieldDef}});Object.defineProperty(V,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return Tt.SingleFieldSubscriptionsRule}});Object.defineProperty(V,"Source",{enumerable:!0,get:function(){return Jt.Source}});Object.defineProperty(V,"Token",{enumerable:!0,get:function(){return Jt.Token}});Object.defineProperty(V,"TokenKind",{enumerable:!0,get:function(){return Jt.TokenKind}});Object.defineProperty(V,"TypeInfo",{enumerable:!0,get:function(){return Ht.TypeInfo}});Object.defineProperty(V,"TypeKind",{enumerable:!0,get:function(){return ge.TypeKind}});Object.defineProperty(V,"TypeMetaFieldDef",{enumerable:!0,get:function(){return ge.TypeMetaFieldDef}});Object.defineProperty(V,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return ge.TypeNameMetaFieldDef}});Object.defineProperty(V,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return Tt.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(V,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return Tt.UniqueArgumentNamesRule}});Object.defineProperty(V,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return Tt.UniqueDirectiveNamesRule}});Object.defineProperty(V,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return Tt.UniqueDirectivesPerLocationRule}});Object.defineProperty(V,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return Tt.UniqueEnumValueNamesRule}});Object.defineProperty(V,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return Tt.UniqueFieldDefinitionNamesRule}});Object.defineProperty(V,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return Tt.UniqueFragmentNamesRule}});Object.defineProperty(V,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return Tt.UniqueInputFieldNamesRule}});Object.defineProperty(V,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return Tt.UniqueOperationNamesRule}});Object.defineProperty(V,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return Tt.UniqueOperationTypesRule}});Object.defineProperty(V,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return Tt.UniqueTypeNamesRule}});Object.defineProperty(V,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return Tt.UniqueVariableNamesRule}});Object.defineProperty(V,"ValidationContext",{enumerable:!0,get:function(){return Tt.ValidationContext}});Object.defineProperty(V,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return Tt.ValuesOfCorrectTypeRule}});Object.defineProperty(V,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return Tt.VariablesAreInputTypesRule}});Object.defineProperty(V,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return Tt.VariablesInAllowedPositionRule}});Object.defineProperty(V,"__Directive",{enumerable:!0,get:function(){return ge.__Directive}});Object.defineProperty(V,"__DirectiveLocation",{enumerable:!0,get:function(){return ge.__DirectiveLocation}});Object.defineProperty(V,"__EnumValue",{enumerable:!0,get:function(){return ge.__EnumValue}});Object.defineProperty(V,"__Field",{enumerable:!0,get:function(){return ge.__Field}});Object.defineProperty(V,"__InputValue",{enumerable:!0,get:function(){return ge.__InputValue}});Object.defineProperty(V,"__Schema",{enumerable:!0,get:function(){return ge.__Schema}});Object.defineProperty(V,"__Type",{enumerable:!0,get:function(){return ge.__Type}});Object.defineProperty(V,"__TypeKind",{enumerable:!0,get:function(){return ge.__TypeKind}});Object.defineProperty(V,"assertAbstractType",{enumerable:!0,get:function(){return ge.assertAbstractType}});Object.defineProperty(V,"assertCompositeType",{enumerable:!0,get:function(){return ge.assertCompositeType}});Object.defineProperty(V,"assertDirective",{enumerable:!0,get:function(){return ge.assertDirective}});Object.defineProperty(V,"assertEnumType",{enumerable:!0,get:function(){return ge.assertEnumType}});Object.defineProperty(V,"assertEnumValueName",{enumerable:!0,get:function(){return ge.assertEnumValueName}});Object.defineProperty(V,"assertInputObjectType",{enumerable:!0,get:function(){return ge.assertInputObjectType}});Object.defineProperty(V,"assertInputType",{enumerable:!0,get:function(){return ge.assertInputType}});Object.defineProperty(V,"assertInterfaceType",{enumerable:!0,get:function(){return ge.assertInterfaceType}});Object.defineProperty(V,"assertLeafType",{enumerable:!0,get:function(){return ge.assertLeafType}});Object.defineProperty(V,"assertListType",{enumerable:!0,get:function(){return ge.assertListType}});Object.defineProperty(V,"assertName",{enumerable:!0,get:function(){return ge.assertName}});Object.defineProperty(V,"assertNamedType",{enumerable:!0,get:function(){return ge.assertNamedType}});Object.defineProperty(V,"assertNonNullType",{enumerable:!0,get:function(){return ge.assertNonNullType}});Object.defineProperty(V,"assertNullableType",{enumerable:!0,get:function(){return ge.assertNullableType}});Object.defineProperty(V,"assertObjectType",{enumerable:!0,get:function(){return ge.assertObjectType}});Object.defineProperty(V,"assertOutputType",{enumerable:!0,get:function(){return ge.assertOutputType}});Object.defineProperty(V,"assertScalarType",{enumerable:!0,get:function(){return ge.assertScalarType}});Object.defineProperty(V,"assertSchema",{enumerable:!0,get:function(){return ge.assertSchema}});Object.defineProperty(V,"assertType",{enumerable:!0,get:function(){return ge.assertType}});Object.defineProperty(V,"assertUnionType",{enumerable:!0,get:function(){return ge.assertUnionType}});Object.defineProperty(V,"assertValidName",{enumerable:!0,get:function(){return Ht.assertValidName}});Object.defineProperty(V,"assertValidSchema",{enumerable:!0,get:function(){return ge.assertValidSchema}});Object.defineProperty(V,"assertWrappingType",{enumerable:!0,get:function(){return ge.assertWrappingType}});Object.defineProperty(V,"astFromValue",{enumerable:!0,get:function(){return Ht.astFromValue}});Object.defineProperty(V,"buildASTSchema",{enumerable:!0,get:function(){return Ht.buildASTSchema}});Object.defineProperty(V,"buildClientSchema",{enumerable:!0,get:function(){return Ht.buildClientSchema}});Object.defineProperty(V,"buildSchema",{enumerable:!0,get:function(){return Ht.buildSchema}});Object.defineProperty(V,"coerceInputValue",{enumerable:!0,get:function(){return Ht.coerceInputValue}});Object.defineProperty(V,"concatAST",{enumerable:!0,get:function(){return Ht.concatAST}});Object.defineProperty(V,"createSourceEventStream",{enumerable:!0,get:function(){return ka.createSourceEventStream}});Object.defineProperty(V,"defaultFieldResolver",{enumerable:!0,get:function(){return ka.defaultFieldResolver}});Object.defineProperty(V,"defaultTypeResolver",{enumerable:!0,get:function(){return ka.defaultTypeResolver}});Object.defineProperty(V,"doTypesOverlap",{enumerable:!0,get:function(){return Ht.doTypesOverlap}});Object.defineProperty(V,"execute",{enumerable:!0,get:function(){return ka.execute}});Object.defineProperty(V,"executeSync",{enumerable:!0,get:function(){return ka.executeSync}});Object.defineProperty(V,"extendSchema",{enumerable:!0,get:function(){return Ht.extendSchema}});Object.defineProperty(V,"findBreakingChanges",{enumerable:!0,get:function(){return Ht.findBreakingChanges}});Object.defineProperty(V,"findDangerousChanges",{enumerable:!0,get:function(){return Ht.findDangerousChanges}});Object.defineProperty(V,"formatError",{enumerable:!0,get:function(){return Sf.formatError}});Object.defineProperty(V,"getArgumentValues",{enumerable:!0,get:function(){return ka.getArgumentValues}});Object.defineProperty(V,"getDirectiveValues",{enumerable:!0,get:function(){return ka.getDirectiveValues}});Object.defineProperty(V,"getEnterLeaveForKind",{enumerable:!0,get:function(){return Jt.getEnterLeaveForKind}});Object.defineProperty(V,"getIntrospectionQuery",{enumerable:!0,get:function(){return Ht.getIntrospectionQuery}});Object.defineProperty(V,"getLocation",{enumerable:!0,get:function(){return Jt.getLocation}});Object.defineProperty(V,"getNamedType",{enumerable:!0,get:function(){return ge.getNamedType}});Object.defineProperty(V,"getNullableType",{enumerable:!0,get:function(){return ge.getNullableType}});Object.defineProperty(V,"getOperationAST",{enumerable:!0,get:function(){return Ht.getOperationAST}});Object.defineProperty(V,"getOperationRootType",{enumerable:!0,get:function(){return Ht.getOperationRootType}});Object.defineProperty(V,"getVariableValues",{enumerable:!0,get:function(){return ka.getVariableValues}});Object.defineProperty(V,"getVisitFn",{enumerable:!0,get:function(){return Jt.getVisitFn}});Object.defineProperty(V,"graphql",{enumerable:!0,get:function(){return AC.graphql}});Object.defineProperty(V,"graphqlSync",{enumerable:!0,get:function(){return AC.graphqlSync}});Object.defineProperty(V,"introspectionFromSchema",{enumerable:!0,get:function(){return Ht.introspectionFromSchema}});Object.defineProperty(V,"introspectionTypes",{enumerable:!0,get:function(){return ge.introspectionTypes}});Object.defineProperty(V,"isAbstractType",{enumerable:!0,get:function(){return ge.isAbstractType}});Object.defineProperty(V,"isCompositeType",{enumerable:!0,get:function(){return ge.isCompositeType}});Object.defineProperty(V,"isConstValueNode",{enumerable:!0,get:function(){return Jt.isConstValueNode}});Object.defineProperty(V,"isDefinitionNode",{enumerable:!0,get:function(){return Jt.isDefinitionNode}});Object.defineProperty(V,"isDirective",{enumerable:!0,get:function(){return ge.isDirective}});Object.defineProperty(V,"isEnumType",{enumerable:!0,get:function(){return ge.isEnumType}});Object.defineProperty(V,"isEqualType",{enumerable:!0,get:function(){return Ht.isEqualType}});Object.defineProperty(V,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return Jt.isExecutableDefinitionNode}});Object.defineProperty(V,"isInputObjectType",{enumerable:!0,get:function(){return ge.isInputObjectType}});Object.defineProperty(V,"isInputType",{enumerable:!0,get:function(){return ge.isInputType}});Object.defineProperty(V,"isInterfaceType",{enumerable:!0,get:function(){return ge.isInterfaceType}});Object.defineProperty(V,"isIntrospectionType",{enumerable:!0,get:function(){return ge.isIntrospectionType}});Object.defineProperty(V,"isLeafType",{enumerable:!0,get:function(){return ge.isLeafType}});Object.defineProperty(V,"isListType",{enumerable:!0,get:function(){return ge.isListType}});Object.defineProperty(V,"isNamedType",{enumerable:!0,get:function(){return ge.isNamedType}});Object.defineProperty(V,"isNonNullType",{enumerable:!0,get:function(){return ge.isNonNullType}});Object.defineProperty(V,"isNullableType",{enumerable:!0,get:function(){return ge.isNullableType}});Object.defineProperty(V,"isObjectType",{enumerable:!0,get:function(){return ge.isObjectType}});Object.defineProperty(V,"isOutputType",{enumerable:!0,get:function(){return ge.isOutputType}});Object.defineProperty(V,"isRequiredArgument",{enumerable:!0,get:function(){return ge.isRequiredArgument}});Object.defineProperty(V,"isRequiredInputField",{enumerable:!0,get:function(){return ge.isRequiredInputField}});Object.defineProperty(V,"isScalarType",{enumerable:!0,get:function(){return ge.isScalarType}});Object.defineProperty(V,"isSchema",{enumerable:!0,get:function(){return ge.isSchema}});Object.defineProperty(V,"isSelectionNode",{enumerable:!0,get:function(){return Jt.isSelectionNode}});Object.defineProperty(V,"isSpecifiedDirective",{enumerable:!0,get:function(){return ge.isSpecifiedDirective}});Object.defineProperty(V,"isSpecifiedScalarType",{enumerable:!0,get:function(){return ge.isSpecifiedScalarType}});Object.defineProperty(V,"isType",{enumerable:!0,get:function(){return ge.isType}});Object.defineProperty(V,"isTypeDefinitionNode",{enumerable:!0,get:function(){return Jt.isTypeDefinitionNode}});Object.defineProperty(V,"isTypeExtensionNode",{enumerable:!0,get:function(){return Jt.isTypeExtensionNode}});Object.defineProperty(V,"isTypeNode",{enumerable:!0,get:function(){return Jt.isTypeNode}});Object.defineProperty(V,"isTypeSubTypeOf",{enumerable:!0,get:function(){return Ht.isTypeSubTypeOf}});Object.defineProperty(V,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return Jt.isTypeSystemDefinitionNode}});Object.defineProperty(V,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return Jt.isTypeSystemExtensionNode}});Object.defineProperty(V,"isUnionType",{enumerable:!0,get:function(){return ge.isUnionType}});Object.defineProperty(V,"isValidNameError",{enumerable:!0,get:function(){return Ht.isValidNameError}});Object.defineProperty(V,"isValueNode",{enumerable:!0,get:function(){return Jt.isValueNode}});Object.defineProperty(V,"isWrappingType",{enumerable:!0,get:function(){return ge.isWrappingType}});Object.defineProperty(V,"lexicographicSortSchema",{enumerable:!0,get:function(){return Ht.lexicographicSortSchema}});Object.defineProperty(V,"locatedError",{enumerable:!0,get:function(){return Sf.locatedError}});Object.defineProperty(V,"parse",{enumerable:!0,get:function(){return Jt.parse}});Object.defineProperty(V,"parseConstValue",{enumerable:!0,get:function(){return Jt.parseConstValue}});Object.defineProperty(V,"parseType",{enumerable:!0,get:function(){return Jt.parseType}});Object.defineProperty(V,"parseValue",{enumerable:!0,get:function(){return Jt.parseValue}});Object.defineProperty(V,"print",{enumerable:!0,get:function(){return Jt.print}});Object.defineProperty(V,"printError",{enumerable:!0,get:function(){return Sf.printError}});Object.defineProperty(V,"printIntrospectionSchema",{enumerable:!0,get:function(){return Ht.printIntrospectionSchema}});Object.defineProperty(V,"printLocation",{enumerable:!0,get:function(){return Jt.printLocation}});Object.defineProperty(V,"printSchema",{enumerable:!0,get:function(){return Ht.printSchema}});Object.defineProperty(V,"printSourceLocation",{enumerable:!0,get:function(){return Jt.printSourceLocation}});Object.defineProperty(V,"printType",{enumerable:!0,get:function(){return Ht.printType}});Object.defineProperty(V,"recommendedRules",{enumerable:!0,get:function(){return Tt.recommendedRules}});Object.defineProperty(V,"resolveObjMapThunk",{enumerable:!0,get:function(){return ge.resolveObjMapThunk}});Object.defineProperty(V,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return ge.resolveReadonlyArrayThunk}});Object.defineProperty(V,"responsePathAsArray",{enumerable:!0,get:function(){return ka.responsePathAsArray}});Object.defineProperty(V,"separateOperations",{enumerable:!0,get:function(){return Ht.separateOperations}});Object.defineProperty(V,"specifiedDirectives",{enumerable:!0,get:function(){return ge.specifiedDirectives}});Object.defineProperty(V,"specifiedRules",{enumerable:!0,get:function(){return Tt.specifiedRules}});Object.defineProperty(V,"specifiedScalarTypes",{enumerable:!0,get:function(){return ge.specifiedScalarTypes}});Object.defineProperty(V,"stripIgnoredCharacters",{enumerable:!0,get:function(){return Ht.stripIgnoredCharacters}});Object.defineProperty(V,"subscribe",{enumerable:!0,get:function(){return ka.subscribe}});Object.defineProperty(V,"syntaxError",{enumerable:!0,get:function(){return Sf.syntaxError}});Object.defineProperty(V,"typeFromAST",{enumerable:!0,get:function(){return Ht.typeFromAST}});Object.defineProperty(V,"validate",{enumerable:!0,get:function(){return Tt.validate}});Object.defineProperty(V,"validateSchema",{enumerable:!0,get:function(){return ge.validateSchema}});Object.defineProperty(V,"valueFromAST",{enumerable:!0,get:function(){return Ht.valueFromAST}});Object.defineProperty(V,"valueFromASTUntyped",{enumerable:!0,get:function(){return Ht.valueFromASTUntyped}});Object.defineProperty(V,"version",{enumerable:!0,get:function(){return bC.version}});Object.defineProperty(V,"versionInfo",{enumerable:!0,get:function(){return bC.versionInfo}});Object.defineProperty(V,"visit",{enumerable:!0,get:function(){return Jt.visit}});Object.defineProperty(V,"visitInParallel",{enumerable:!0,get:function(){return Jt.visitInParallel}});Object.defineProperty(V,"visitWithTypeInfo",{enumerable:!0,get:function(){return Ht.visitWithTypeInfo}});var bC=_P(),AC=TL(),ge=yL(),Jt=gL(),ka=RL(),Tt=LL(),Sf=CL(),Ht=DC()});var vr=w(A=>{"use strict";m();T();N();Object.defineProperty(A,"__esModule",{value:!0});A.FIELDS=A.FIELD_SET_SCALAR=A.FIELD_UPPER=A.FIELD_PATH=A.FIELD=A.EXTENSIONS=A.EXTENDS=A.EXTERNAL=A.EXECUTION=A.ENUM_VALUE_UPPER=A.ENUM_VALUE=A.ENUM_UPPER=A.ENUM=A.ENTITY_UNION=A.ENTITIES_FIELD=A.ENTITIES=A.EDFS_REDIS_SUBSCRIBE=A.EDFS_REDIS_PUBLISH=A.EDFS_NATS_STREAM_CONFIGURATION=A.EDFS_PUBLISH_RESULT=A.EDFS_NATS_SUBSCRIBE=A.EDFS_NATS_REQUEST=A.EDFS_NATS_PUBLISH=A.EDFS_KAFKA_SUBSCRIBE=A.EDFS_KAFKA_PUBLISH=A.DIRECTIVE_DEFINITION=A.DESCRIPTION_OVERRIDE=A.DEPRECATED_DEFAULT_ARGUMENT_VALUE=A.DEPRECATED=A.DEFAULT_SUBSCRIPTION=A.DEFAULT_QUERY=A.DEFAULT_MUTATION=A.DEFAULT_EDFS_PROVIDER_ID=A.DEFAULT=A.CONSUMER_NAME=A.CONSUMER_INACTIVE_THRESHOLD=A.CONFIGURE_CHILD_DESCRIPTIONS=A.CONFIGURE_DESCRIPTION=A.CONDITION=A.COMPOSE_DIRECTIVE=A.CHANNELS=A.CHANNEL=A.BOOLEAN_SCALAR=A.BOOLEAN=A.ARGUMENT_DEFINITION_UPPER=A.AUTHENTICATED=A.ARGUMENT=A.ANY_SCALAR=A.AND_UPPER=A.AS=void 0;A.OPERATION_TO_DEFAULT=A.ONE_OF=A.NULL=A.NOT_UPPER=A.NON_NULLABLE_STRING=A.NON_NULLABLE_INT=A.NON_NULLABLE_BOOLEAN=A.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT=A.NAME=A.NOT_APPLICABLE=A.PROVIDER_TYPE_REDIS=A.PROVIDER_TYPE_NATS=A.PROVIDER_TYPE_KAFKA=A.PROPAGATE=A.MUTATION_UPPER=A.MUTATION=A.NUMBER=A.LITERAL_NEW_LINE=A.LITERAL_SPACE=A.LIST=A.LINK_PURPOSE=A.LINK_IMPORT=A.LINK=A.LEVELS=A.LEFT_PARENTHESIS=A.KEY=A.INTERFACE_OBJECT=A.INTERFACE_UPPER=A.INTERFACE=A.INT_SCALAR=A.INPUT_VALUE=A.INPUT_OBJECT_UPPER=A.INPUT_OBJECT=A.INPUT_FIELD_DEFINITION_UPPER=A.INPUT_FIELD=A.INPUT=A.INLINE_FRAGMENT_UPPER=A.INLINE_FRAGMENT=A.INACCESSIBLE=A.IN_UPPER=A.IMPORT=A.ID_SCALAR=A.HYPHEN_JOIN=A.FROM=A.FRAGMENT_SPREAD_UPPER=A.FRAGMENT_DEFINITION_UPPER=A.FOR=A.FLOAT_SCALAR=A.FIRST_ORDINAL=A.FIELD_DEFINITION_UPPER=void 0;A.TOPICS=A.TOPIC=A.TAG=A.SUCCESS=A.SUBSCRIPTION_UPPER=A.SUBSCRIBE=A.SUBSCRIPTION_FILTER_VALUE=A.SUBSCRIPTION_FILTER_CONDITION=A.SUBSCRIPTION_FILTER=A.SUBSCRIPTION_FIELD_CONDITION=A.SUBSCRIPTION=A.SUBJECTS=A.SUBJECT=A.STRING_SCALAR=A.STRING=A.STREAM_NAME=A.STREAM_CONFIGURATION=A.SPECIFIED_BY=A.SHAREABLE=A.SERVICE_FIELD=A.SERVICE_OBJECT=A.SEMANTIC_NON_NULL=A.SELECTION_REPRESENTATION=A.SECURITY=A.SCOPE_SCALAR=A.SCOPES=A.SCHEMA_UPPER=A.SCHEMA=A.SCALAR_UPPER=A.SCALAR=A.RESOLVABLE=A.REQUIRES_SCOPES=A.REQUIRES=A.REQUIRE_FETCH_REASONS=A.REQUEST=A.REASON=A.QUOTATION_JOIN=A.QUERY_UPPER=A.QUERY=A.PUBLISH=A.PROVIDES=A.PROVIDER_ID=A.PERIOD=A.PARENT_EXTENSION_DATA_MAP=A.PARENT_DEFINITION_DATA_MAP=A.PARENT_DEFINITION_DATA=A.OVERRIDE=A.OR_UPPER=A.OBJECT_UPPER=A.OBJECT=void 0;A.NON_REPEATABLE_PERSISTED_DIRECTIVES=A.OUTPUT_NODE_KINDS=A.INPUT_NODE_KINDS=A.IGNORED_FIELDS=A.INHERITABLE_DIRECTIVE_NAMES=A.PERSISTED_CLIENT_DIRECTIVES=A.AUTHORIZATION_DIRECTIVES=A.ROOT_TYPE_NAMES=A.EXECUTABLE_DIRECTIVE_LOCATIONS=A.VARIABLE_DEFINITION_UPPER=A.VALUES=A.URL_LOWER=A.UNION_UPPER=A.UNION=void 0;var cu=De();A.AS="as";A.AND_UPPER="AND";A.ANY_SCALAR="_Any";A.ARGUMENT="argument";A.AUTHENTICATED="authenticated";A.ARGUMENT_DEFINITION_UPPER="ARGUMENT_DEFINITION";A.BOOLEAN="boolean";A.BOOLEAN_SCALAR="Boolean";A.CHANNEL="channel";A.CHANNELS="channels";A.COMPOSE_DIRECTIVE="composeDirective";A.CONDITION="condition";A.CONFIGURE_DESCRIPTION="openfed__configureDescription";A.CONFIGURE_CHILD_DESCRIPTIONS="openfed__configureChildDescriptions";A.CONSUMER_INACTIVE_THRESHOLD="consumerInactiveThreshold";A.CONSUMER_NAME="consumerName";A.DEFAULT="default";A.DEFAULT_EDFS_PROVIDER_ID="default";A.DEFAULT_MUTATION="Mutation";A.DEFAULT_QUERY="Query";A.DEFAULT_SUBSCRIPTION="Subscription";A.DEPRECATED="deprecated";A.DEPRECATED_DEFAULT_ARGUMENT_VALUE="No longer supported";A.DESCRIPTION_OVERRIDE="descriptionOverride";A.DIRECTIVE_DEFINITION="directive definition";A.EDFS_KAFKA_PUBLISH="edfs__kafkaPublish";A.EDFS_KAFKA_SUBSCRIBE="edfs__kafkaSubscribe";A.EDFS_NATS_PUBLISH="edfs__natsPublish";A.EDFS_NATS_REQUEST="edfs__natsRequest";A.EDFS_NATS_SUBSCRIBE="edfs__natsSubscribe";A.EDFS_PUBLISH_RESULT="edfs__PublishResult";A.EDFS_NATS_STREAM_CONFIGURATION="edfs__NatsStreamConfiguration";A.EDFS_REDIS_PUBLISH="edfs__redisPublish";A.EDFS_REDIS_SUBSCRIBE="edfs__redisSubscribe";A.ENTITIES="entities";A.ENTITIES_FIELD="_entities";A.ENTITY_UNION="_Entity";A.ENUM="Enum";A.ENUM_UPPER="ENUM";A.ENUM_VALUE="Enum Value";A.ENUM_VALUE_UPPER="ENUM_VALUE";A.EXECUTION="EXECUTION";A.EXTERNAL="external";A.EXTENDS="extends";A.EXTENSIONS="extensions";A.FIELD="field";A.FIELD_PATH="fieldPath";A.FIELD_UPPER="FIELD";A.FIELD_SET_SCALAR="openfed__FieldSet";A.FIELDS="fields";A.FIELD_DEFINITION_UPPER="FIELD_DEFINITION";A.FIRST_ORDINAL="1st";A.FLOAT_SCALAR="Float";A.FOR="for";A.FRAGMENT_DEFINITION_UPPER="FRAGMENT_DEFINITION";A.FRAGMENT_SPREAD_UPPER="FRAGMENT_SPREAD";A.FROM="from";A.HYPHEN_JOIN=` -`;A.ID_SCALAR="ID";A.IMPORT="import";A.IN_UPPER="IN";A.INACCESSIBLE="inaccessible";A.INLINE_FRAGMENT="inlineFragment";A.INLINE_FRAGMENT_UPPER="INLINE_FRAGMENT";A.INPUT="Input";A.INPUT_FIELD="Input field";A.INPUT_FIELD_DEFINITION_UPPER="INPUT_FIELD_DEFINITION";A.INPUT_OBJECT="Input Object";A.INPUT_OBJECT_UPPER="INPUT_OBJECT";A.INPUT_VALUE="Input Value";A.INT_SCALAR="Int";A.INTERFACE="Interface";A.INTERFACE_UPPER="INTERFACE";A.INTERFACE_OBJECT="interfaceObject";A.KEY="key";A.LEFT_PARENTHESIS="(";A.LEVELS="levels";A.LINK="link";A.LINK_IMPORT="link__Import";A.LINK_PURPOSE="link__Purpose";A.LIST="list";A.LITERAL_SPACE=" ";A.LITERAL_NEW_LINE=` `;A.NUMBER="number";A.MUTATION="Mutation";A.MUTATION_UPPER="MUTATION";A.PROPAGATE="propagate";A.PROVIDER_TYPE_KAFKA="kafka";A.PROVIDER_TYPE_NATS="nats";A.PROVIDER_TYPE_REDIS="redis";A.NOT_APPLICABLE="N/A";A.NAME="name";A.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT="edfs__PublishResult!";A.NON_NULLABLE_BOOLEAN="Boolean!";A.NON_NULLABLE_INT="Int!";A.NON_NULLABLE_STRING="String!";A.NOT_UPPER="NOT";A.NULL="Null";A.ONE_OF="oneOf";A.OPERATION_TO_DEFAULT="operationTypeNodeToDefaultType";A.OBJECT="Object";A.OBJECT_UPPER="OBJECT";A.OR_UPPER="OR";A.OVERRIDE="override";A.PARENT_DEFINITION_DATA="parentDefinitionDataByTypeName";A.PARENT_DEFINITION_DATA_MAP="parentDefinitionDataByParentTypeName";A.PARENT_EXTENSION_DATA_MAP="parentExtensionDataByParentTypeName";A.PERIOD=".";A.PROVIDER_ID="providerId";A.PROVIDES="provides";A.PUBLISH="publish";A.QUERY="Query";A.QUERY_UPPER="QUERY";A.QUOTATION_JOIN='", "';A.REASON="reason";A.REQUEST="request";A.REQUIRE_FETCH_REASONS="openfed__requireFetchReasons";A.REQUIRES="requires";A.REQUIRES_SCOPES="requiresScopes";A.RESOLVABLE="resolvable";A.SCALAR="Scalar";A.SCALAR_UPPER="SCALAR";A.SCHEMA="schema";A.SCHEMA_UPPER="SCHEMA";A.SCOPES="scopes";A.SCOPE_SCALAR="openfed__Scope";A.SECURITY="SECURITY";A.SELECTION_REPRESENTATION=" { ... }";A.SEMANTIC_NON_NULL="semanticNonNull";A.SERVICE_OBJECT="_Service";A.SERVICE_FIELD="_service";A.SHAREABLE="shareable";A.SPECIFIED_BY="specifiedBy";A.STREAM_CONFIGURATION="streamConfiguration";A.STREAM_NAME="streamName";A.STRING="string";A.STRING_SCALAR="String";A.SUBJECT="subject";A.SUBJECTS="subjects";A.SUBSCRIPTION="Subscription";A.SUBSCRIPTION_FIELD_CONDITION="openfed__SubscriptionFieldCondition";A.SUBSCRIPTION_FILTER="openfed__subscriptionFilter";A.SUBSCRIPTION_FILTER_CONDITION="openfed__SubscriptionFilterCondition";A.SUBSCRIPTION_FILTER_VALUE="openfed__SubscriptionFilterValue";A.SUBSCRIBE="subscribe";A.SUBSCRIPTION_UPPER="SUBSCRIPTION";A.SUCCESS="success";A.TAG="tag";A.TOPIC="topic";A.TOPICS="topics";A.UNION="Union";A.UNION_UPPER="UNION";A.URL_LOWER="url";A.VALUES="values";A.VARIABLE_DEFINITION_UPPER="VARIABLE_DEFINITION";A.EXECUTABLE_DIRECTIVE_LOCATIONS=new Set([A.FIELD_UPPER,A.FRAGMENT_DEFINITION_UPPER,A.FRAGMENT_SPREAD_UPPER,A.INLINE_FRAGMENT_UPPER,A.MUTATION_UPPER,A.QUERY_UPPER,A.SUBSCRIPTION_UPPER]);A.ROOT_TYPE_NAMES=new Set([A.MUTATION,A.QUERY,A.SUBSCRIPTION]);A.AUTHORIZATION_DIRECTIVES=new Set([A.AUTHENTICATED,A.REQUIRES_SCOPES]);A.PERSISTED_CLIENT_DIRECTIVES=new Set([A.DEPRECATED,A.ONE_OF,A.SEMANTIC_NON_NULL]);A.INHERITABLE_DIRECTIVE_NAMES=new Set([A.EXTERNAL,A.REQUIRE_FETCH_REASONS,A.SHAREABLE]);A.IGNORED_FIELDS=new Set([A.ENTITIES_FIELD,A.SERVICE_FIELD]);A.INPUT_NODE_KINDS=new Set([cu.Kind.ENUM_TYPE_DEFINITION,cu.Kind.INPUT_OBJECT_TYPE_DEFINITION,cu.Kind.SCALAR_TYPE_DEFINITION]);A.OUTPUT_NODE_KINDS=new Set([cu.Kind.ENUM_TYPE_DEFINITION,cu.Kind.INTERFACE_TYPE_DEFINITION,cu.Kind.OBJECT_TYPE_DEFINITION,cu.Kind.SCALAR_TYPE_DEFINITION,cu.Kind.UNION_TYPE_DEFINITION]);A.NON_REPEATABLE_PERSISTED_DIRECTIVES=new Set([A.INACCESSIBLE,A.ONE_OF,A.SEMANTIC_NON_NULL])});var Hr=w(Yn=>{"use strict";m();T();N();Object.defineProperty(Yn,"__esModule",{value:!0});Yn.operationTypeNodeToDefaultType=void 0;Yn.isObjectLikeNodeEntity=v9;Yn.isNodeInterfaceObject=S9;Yn.stringToNameNode=kN;Yn.stringArrayToNameNodeArray=O9;Yn.setToNameNodeArray=D9;Yn.stringToNamedTypeNode=RC;Yn.setToNamedTypeNodeArray=b9;Yn.nodeKindToDirectiveLocation=A9;Yn.isKindAbstract=R9;Yn.extractExecutableDirectiveLocations=P9;Yn.formatDescription=F9;Yn.lexicographicallySortArgumentNodes=PC;Yn.lexicographicallySortSelectionSetNode=UN;Yn.lexicographicallySortDocumentNode=w9;Yn.parse=FC;Yn.safeParse=L9;var xt=De(),Sn=vr();function v9(e){var t;if(!((t=e.directives)!=null&&t.length))return!1;for(let n of e.directives)if(n.name.value===Sn.KEY)return!0;return!1}function S9(e){var t;if(!((t=e.directives)!=null&&t.length))return!1;for(let n of e.directives)if(n.name.value===Sn.INTERFACE_OBJECT)return!0;return!1}function kN(e){return{kind:xt.Kind.NAME,value:e}}function O9(e){let t=[];for(let n of e)t.push(kN(n));return t}function D9(e){let t=[];for(let n of e)t.push(kN(n));return t}function RC(e){return{kind:xt.Kind.NAMED_TYPE,name:kN(e)}}function b9(e){let t=[];for(let n of e)t.push(RC(n));return t}function A9(e){switch(e){case xt.Kind.ARGUMENT:return Sn.ARGUMENT_DEFINITION_UPPER;case xt.Kind.ENUM_TYPE_DEFINITION:case xt.Kind.ENUM_TYPE_EXTENSION:return Sn.ENUM_UPPER;case xt.Kind.ENUM_VALUE_DEFINITION:return Sn.ENUM_VALUE_UPPER;case xt.Kind.FIELD_DEFINITION:return Sn.FIELD_DEFINITION_UPPER;case xt.Kind.FRAGMENT_DEFINITION:return Sn.FRAGMENT_DEFINITION_UPPER;case xt.Kind.FRAGMENT_SPREAD:return Sn.FRAGMENT_SPREAD_UPPER;case xt.Kind.INLINE_FRAGMENT:return Sn.INLINE_FRAGMENT_UPPER;case xt.Kind.INPUT_VALUE_DEFINITION:return Sn.INPUT_FIELD_DEFINITION_UPPER;case xt.Kind.INPUT_OBJECT_TYPE_DEFINITION:case xt.Kind.INPUT_OBJECT_TYPE_EXTENSION:return Sn.INPUT_OBJECT_UPPER;case xt.Kind.INTERFACE_TYPE_DEFINITION:case xt.Kind.INTERFACE_TYPE_EXTENSION:return Sn.INTERFACE_UPPER;case xt.Kind.OBJECT_TYPE_DEFINITION:case xt.Kind.OBJECT_TYPE_EXTENSION:return Sn.OBJECT_UPPER;case xt.Kind.SCALAR_TYPE_DEFINITION:case xt.Kind.SCALAR_TYPE_EXTENSION:return Sn.SCALAR_UPPER;case xt.Kind.SCHEMA_DEFINITION:case xt.Kind.SCHEMA_EXTENSION:return Sn.SCHEMA_UPPER;case xt.Kind.UNION_TYPE_DEFINITION:case xt.Kind.UNION_TYPE_EXTENSION:return Sn.UNION_UPPER;default:return e}}Yn.operationTypeNodeToDefaultType=new Map([[xt.OperationTypeNode.MUTATION,Sn.MUTATION],[xt.OperationTypeNode.QUERY,Sn.QUERY],[xt.OperationTypeNode.SUBSCRIPTION,Sn.SUBSCRIPTION]]);function R9(e){return e===xt.Kind.INTERFACE_TYPE_DEFINITION||e===xt.Kind.UNION_TYPE_DEFINITION}function P9(e,t){for(let n of e){let r=n.value;Sn.EXECUTABLE_DIRECTIVE_LOCATIONS.has(r)&&t.add(r)}return t}function F9(e){if(!e)return e;let t=e.value;if(e.block){let n=t.split(` `);n.length>1&&(t=n.map(r=>r.trimStart()).join(` -`))}return Q(x({},e),{value:t,block:!0})}function PC(e){return e.arguments?e.arguments.sort((n,r)=>n.name.value.localeCompare(r.name.value)):e.arguments}function UN(e){let t=e.selections;return Q(x({},e),{selections:t.sort((n,r)=>{var a,o,c,l;return Sn.NAME in n?Sn.NAME in r?n.name.value.localeCompare(r.name.value):-1:Sn.NAME in r?1:((o=(a=n.typeCondition)==null?void 0:a.name.value)!=null?o:"").localeCompare((l=(c=r.typeCondition)==null?void 0:c.name.value)!=null?l:"")}).map(n=>{switch(n.kind){case xt.Kind.FIELD:return Q(x({},n),{arguments:PC(n),selectionSet:n.selectionSet?UN(n.selectionSet):n.selectionSet});case xt.Kind.FRAGMENT_SPREAD:return n;case xt.Kind.INLINE_FRAGMENT:return Q(x({},n),{selectionSet:UN(n.selectionSet)})}})})}function w9(e){return Q(x({},e),{definitions:e.definitions.map(t=>t.kind!==xt.Kind.OPERATION_DEFINITION?t:Q(x({},t),{selectionSet:UN(t.selectionSet)}))})}function FC(e,t=!0){return(0,xt.parse)(e,{noLocation:t})}function L9(e,t=!0){try{return{documentNode:FC(e,t)}}catch(n){return{error:n}}}});var CC=w(Il=>{"use strict";m();T();N();Object.defineProperty(Il,"__esModule",{value:!0});Il.AccumulatorMap=void 0;Il.mapValue=yl;Il.extendSchemaImpl=C9;var Ue=De(),vs=class extends Map{get[Symbol.toStringTag](){return"AccumulatorMap"}add(t,n){let r=this.get(t);r===void 0?this.set(t,[n]):r.push(n)}};Il.AccumulatorMap=vs;function yl(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}function C9(e,t,n){var be,ve,Ce,vt;let r=[],i=new vs,a=new vs,o=new vs,c=new vs,l=new vs,d=new vs,p=[],y,I=[],v=!1;for(let Y of t.definitions){switch(Y.kind){case Ue.Kind.SCHEMA_DEFINITION:y=Y;break;case Ue.Kind.SCHEMA_EXTENSION:I.push(Y);break;case Ue.Kind.DIRECTIVE_DEFINITION:p.push(Y);break;case Ue.Kind.SCALAR_TYPE_DEFINITION:case Ue.Kind.OBJECT_TYPE_DEFINITION:case Ue.Kind.INTERFACE_TYPE_DEFINITION:case Ue.Kind.UNION_TYPE_DEFINITION:case Ue.Kind.ENUM_TYPE_DEFINITION:case Ue.Kind.INPUT_OBJECT_TYPE_DEFINITION:r.push(Y);break;case Ue.Kind.SCALAR_TYPE_EXTENSION:i.add(Y.name.value,Y);break;case Ue.Kind.OBJECT_TYPE_EXTENSION:a.add(Y.name.value,Y);break;case Ue.Kind.INTERFACE_TYPE_EXTENSION:o.add(Y.name.value,Y);break;case Ue.Kind.UNION_TYPE_EXTENSION:c.add(Y.name.value,Y);break;case Ue.Kind.ENUM_TYPE_EXTENSION:l.add(Y.name.value,Y);break;case Ue.Kind.INPUT_OBJECT_TYPE_EXTENSION:d.add(Y.name.value,Y);break;default:continue}v=!0}if(!v)return e;let F=new Map;for(let Y of e.types){let oe=ie(Y);oe&&F.set(Y.name,oe)}for(let Y of r){let oe=Y.name.value;F.set(oe,(be=wC.get(oe))!=null?be:ue(Y))}for(let[Y,oe]of a)F.set(Y,new Ue.GraphQLObjectType({name:Y,interfaces:()=>zt(oe),fields:()=>mn(oe),extensionASTNodes:oe}));if(n!=null&&n.addInvalidExtensionOrphans){for(let[Y,oe]of o)F.set(Y,new Ue.GraphQLInterfaceType({name:Y,interfaces:()=>zt(oe),fields:()=>mn(oe),extensionASTNodes:oe}));for(let[Y,oe]of l)F.set(Y,new Ue.GraphQLEnumType({name:Y,values:kn(oe),extensionASTNodes:oe}));for(let[Y,oe]of c)F.set(Y,new Ue.GraphQLUnionType({name:Y,types:()=>Rn(oe),extensionASTNodes:oe}));for(let[Y,oe]of i)F.set(Y,new Ue.GraphQLScalarType({name:Y,extensionASTNodes:oe}));for(let[Y,oe]of d)F.set(Y,new Ue.GraphQLInputObjectType({name:Y,fields:()=>Fr(oe),extensionASTNodes:oe}))}let k=x(x({query:e.query&&J(e.query),mutation:e.mutation&&J(e.mutation),subscription:e.subscription&&J(e.subscription)},y&&en([y])),en(I));return Q(x({description:(Ce=(ve=y==null?void 0:y.description)==null?void 0:ve.value)!=null?Ce:e.description},k),{types:Array.from(F.values()),directives:[...e.directives.map(se),...p.map(Qt)],extensions:e.extensions,astNode:y!=null?y:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(I),assumeValid:(vt=n==null?void 0:n.assumeValid)!=null?vt:!1});function K(Y){return(0,Ue.isListType)(Y)?new Ue.GraphQLList(K(Y.ofType)):(0,Ue.isNonNullType)(Y)?new Ue.GraphQLNonNull(K(Y.ofType)):J(Y)}function J(Y){return F.get(Y.name)}function se(Y){if((0,Ue.isSpecifiedDirective)(Y))return Y;let oe=Y.toConfig();return new Ue.GraphQLDirective(Q(x({},oe),{args:yl(oe.args,_t)}))}function ie(Y){if((0,Ue.isIntrospectionType)(Y)||(0,Ue.isSpecifiedScalarType)(Y))return Y;if((0,Ue.isScalarType)(Y))return Re(Y);if((0,Ue.isObjectType)(Y))return xe(Y);if((0,Ue.isInterfaceType)(Y))return tt(Y);if((0,Ue.isUnionType)(Y))return ee(Y);if((0,Ue.isEnumType)(Y))return de(Y);if((0,Ue.isInputObjectType)(Y))return Te(Y)}function Te(Y){var Ye;let oe=Y.toConfig(),qe=(Ye=d.get(oe.name))!=null?Ye:[];return new Ue.GraphQLInputObjectType(Q(x({},oe),{fields:()=>x(x({},yl(oe.fields,Ut=>Q(x({},Ut),{type:K(Ut.type)}))),Fr(qe)),extensionASTNodes:oe.extensionASTNodes.concat(qe)}))}function de(Y){var Ye;let oe=Y.toConfig(),qe=(Ye=l.get(Y.name))!=null?Ye:[];return new Ue.GraphQLEnumType(Q(x({},oe),{values:x(x({},oe.values),kn(qe)),extensionASTNodes:oe.extensionASTNodes.concat(qe)}))}function Re(Y){var Ut,nt;let oe=Y.toConfig(),qe=(Ut=i.get(oe.name))!=null?Ut:[],Ye=oe.specifiedByURL;for(let Rt of qe)Ye=(nt=LC(Rt))!=null?nt:Ye;return new Ue.GraphQLScalarType(Q(x({},oe),{specifiedByURL:Ye,extensionASTNodes:oe.extensionASTNodes.concat(qe)}))}function xe(Y){var Ye;let oe=Y.toConfig(),qe=(Ye=a.get(oe.name))!=null?Ye:[];return new Ue.GraphQLObjectType(Q(x({},oe),{interfaces:()=>[...Y.getInterfaces().map(J),...zt(qe)],fields:()=>x(x({},yl(oe.fields,Se)),mn(qe)),extensionASTNodes:oe.extensionASTNodes.concat(qe)}))}function tt(Y){var Ye;let oe=Y.toConfig(),qe=(Ye=o.get(oe.name))!=null?Ye:[];return new Ue.GraphQLInterfaceType(Q(x({},oe),{interfaces:()=>[...Y.getInterfaces().map(J),...zt(qe)],fields:()=>x(x({},yl(oe.fields,Se)),mn(qe)),extensionASTNodes:oe.extensionASTNodes.concat(qe)}))}function ee(Y){var Ye;let oe=Y.toConfig(),qe=(Ye=c.get(oe.name))!=null?Ye:[];return new Ue.GraphQLUnionType(Q(x({},oe),{types:()=>[...Y.getTypes().map(J),...Rn(qe)],extensionASTNodes:oe.extensionASTNodes.concat(qe)}))}function Se(Y){return Q(x({},Y),{type:K(Y.type),args:Y.args&&yl(Y.args,_t)})}function _t(Y){return Q(x({},Y),{type:K(Y.type)})}function en(Y){var qe;let oe={};for(let Ye of Y){let Ut=(qe=Ye.operationTypes)!=null?qe:[];for(let nt of Ut)oe[nt.operation]=tn(nt.type)}return oe}function tn(Y){var Ye;let oe=Y.name.value,qe=(Ye=wC.get(oe))!=null?Ye:F.get(oe);if(qe===void 0)throw new Error(`Unknown type: "${oe}".`);return qe}function An(Y){return Y.kind===Ue.Kind.LIST_TYPE?new Ue.GraphQLList(An(Y.type)):Y.kind===Ue.Kind.NON_NULL_TYPE?new Ue.GraphQLNonNull(An(Y.type)):tn(Y)}function Qt(Y){var oe;return new Ue.GraphQLDirective({name:Y.name.value,description:(oe=Y.description)==null?void 0:oe.value,locations:Y.locations.map(({value:qe})=>qe),isRepeatable:Y.repeatable,args:Pr(Y.arguments),astNode:Y})}function mn(Y){var qe,Ye;let oe=Object.create(null);for(let Ut of Y){let nt=(qe=Ut.fields)!=null?qe:[];for(let Rt of nt)oe[Rt.name.value]={type:An(Rt.type),description:(Ye=Rt.description)==null?void 0:Ye.value,args:Pr(Rt.arguments),deprecationReason:MN(Rt),astNode:Rt}}return oe}function Pr(Y){var Ye;let oe=Y!=null?Y:[],qe=Object.create(null);for(let Ut of oe){let nt=An(Ut.type);qe[Ut.name.value]={type:nt,description:(Ye=Ut.description)==null?void 0:Ye.value,defaultValue:(0,Ue.valueFromAST)(Ut.defaultValue,nt),deprecationReason:MN(Ut),astNode:Ut}}return qe}function Fr(Y){var qe,Ye;let oe=Object.create(null);for(let Ut of Y){let nt=(qe=Ut.fields)!=null?qe:[];for(let Rt of nt){let ns=An(Rt.type);oe[Rt.name.value]={type:ns,description:(Ye=Rt.description)==null?void 0:Ye.value,defaultValue:(0,Ue.valueFromAST)(Rt.defaultValue,ns),deprecationReason:MN(Rt),astNode:Rt}}}return oe}function kn(Y){var qe,Ye;let oe=Object.create(null);for(let Ut of Y){let nt=(qe=Ut.values)!=null?qe:[];for(let Rt of nt)oe[Rt.name.value]={description:(Ye=Rt.description)==null?void 0:Ye.value,deprecationReason:MN(Rt),astNode:Rt}}return oe}function zt(Y){return Y.flatMap(oe=>{var qe,Ye;return(Ye=(qe=oe.interfaces)==null?void 0:qe.map(tn))!=null?Ye:[]})}function Rn(Y){return Y.flatMap(oe=>{var qe,Ye;return(Ye=(qe=oe.types)==null?void 0:qe.map(tn))!=null?Ye:[]})}function ue(Y){var qe,Ye,Ut,nt,Rt,ns,Vr,rs,xc,ga,mr,ri;let oe=Y.name.value;switch(Y.kind){case Ue.Kind.OBJECT_TYPE_DEFINITION:{let Vt=(qe=a.get(oe))!=null?qe:[],Nr=[Y,...Vt];return a.delete(oe),new Ue.GraphQLObjectType({name:oe,description:(Ye=Y.description)==null?void 0:Ye.value,interfaces:()=>zt(Nr),fields:()=>mn(Nr),astNode:Y,extensionASTNodes:Vt})}case Ue.Kind.INTERFACE_TYPE_DEFINITION:{let Vt=(Ut=o.get(oe))!=null?Ut:[],Nr=[Y,...Vt];return o.delete(oe),new Ue.GraphQLInterfaceType({name:oe,description:(nt=Y.description)==null?void 0:nt.value,interfaces:()=>zt(Nr),fields:()=>mn(Nr),astNode:Y,extensionASTNodes:Vt})}case Ue.Kind.ENUM_TYPE_DEFINITION:{let Vt=(Rt=l.get(oe))!=null?Rt:[],Nr=[Y,...Vt];return l.delete(oe),new Ue.GraphQLEnumType({name:oe,description:(ns=Y.description)==null?void 0:ns.value,values:kn(Nr),astNode:Y,extensionASTNodes:Vt})}case Ue.Kind.UNION_TYPE_DEFINITION:{let Vt=(Vr=c.get(oe))!=null?Vr:[],Nr=[Y,...Vt];return c.delete(oe),new Ue.GraphQLUnionType({name:oe,description:(rs=Y.description)==null?void 0:rs.value,types:()=>Rn(Nr),astNode:Y,extensionASTNodes:Vt})}case Ue.Kind.SCALAR_TYPE_DEFINITION:{let Vt=(xc=i.get(oe))!=null?xc:[];return i.delete(oe),new Ue.GraphQLScalarType({name:oe,description:(ga=Y.description)==null?void 0:ga.value,specifiedByURL:LC(Y),astNode:Y,extensionASTNodes:Vt})}case Ue.Kind.INPUT_OBJECT_TYPE_DEFINITION:{let Vt=(mr=d.get(oe))!=null?mr:[],Nr=[Y,...Vt];return d.delete(oe),new Ue.GraphQLInputObjectType({name:oe,description:(ri=Y.description)==null?void 0:ri.value,fields:()=>Fr(Nr),astNode:Y,extensionASTNodes:Vt})}}}}var wC=new Map([...Ue.specifiedScalarTypes,...Ue.introspectionTypes].map(e=>[e.name,e]));function MN(e){let t=(0,Ue.getDirectiveValues)(Ue.GraphQLDeprecatedDirective,e);return t==null?void 0:t.reason}function LC(e){let t=(0,Ue.getDirectiveValues)(Ue.GraphQLSpecifiedByDirective,e);return t==null?void 0:t.url}});var bv=w(Dv=>{"use strict";m();T();N();Object.defineProperty(Dv,"__esModule",{value:!0});Dv.buildASTSchema=k9;var BC=De(),B9=Tl(),U9=CC();function k9(e,t){(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,B9.assertValidSDL)(e);let n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},r=(0,U9.extendSchemaImpl)(n,e,t);if(r.astNode==null)for(let a of r.types)switch(a.name){case"Query":r.query=a;break;case"Mutation":r.mutation=a;break;case"Subscription":r.subscription=a;break}let i=[...r.directives,...BC.specifiedDirectives.filter(a=>r.directives.every(o=>o.name!==a.name))];return new BC.GraphQLSchema(Q(x({},r),{directives:i}))}});var gl=w(lu=>{"use strict";m();T();N();Object.defineProperty(lu,"__esModule",{value:!0});lu.MAX_INT32=lu.MAX_SUBSCRIPTION_FILTER_DEPTH=lu.MAXIMUM_TYPE_NESTING=void 0;lu.MAXIMUM_TYPE_NESTING=30;lu.MAX_SUBSCRIPTION_FILTER_DEPTH=5;lu.MAX_INT32=un(2,31)-1});var Sr=w(cr=>{"use strict";m();T();N();Object.defineProperty(cr,"__esModule",{value:!0});cr.getOrThrowError=x9;cr.getEntriesNotInHashSet=q9;cr.numberToOrdinal=V9;cr.addIterableValuesToSet=j9;cr.addSets=K9;cr.kindToNodeType=G9;cr.getValueOrDefault=$9;cr.add=Q9;cr.generateSimpleDirective=Y9;cr.generateRequiresScopesDirective=J9;cr.generateSemanticNonNullDirective=H9;cr.copyObjectValueMap=z9;cr.addNewObjectValueMapEntries=W9;cr.copyArrayValueMap=X9;cr.addMapEntries=Z9;cr.getFirstEntry=e7;var Kt=De(),ur=vr(),M9=xi(),Of=Hr();function x9(e,t,n){let r=e.get(t);if(r===void 0)throw(0,M9.invalidKeyFatalError)(t,n);return r}function q9(e,t){let n=[];for(let r of e)t.has(r)||n.push(r);return n}function V9(e){let t=e.toString();switch(t[t.length-1]){case"1":return`${t}st`;case"2":return`${t}nd`;case"3":return`${t}rd`;default:return`${t}th`}}function j9(e,t){for(let n of e)t.add(n)}function K9(e,t){let n=new Set(e);for(let r of t)n.add(r);return n}function G9(e){switch(e){case Kt.Kind.BOOLEAN:return ur.BOOLEAN_SCALAR;case Kt.Kind.ENUM:case Kt.Kind.ENUM_TYPE_DEFINITION:return ur.ENUM;case Kt.Kind.ENUM_TYPE_EXTENSION:return"Enum extension";case Kt.Kind.ENUM_VALUE_DEFINITION:return ur.ENUM_VALUE;case Kt.Kind.FIELD_DEFINITION:return ur.FIELD;case Kt.Kind.FLOAT:return ur.FLOAT_SCALAR;case Kt.Kind.INPUT_OBJECT_TYPE_DEFINITION:return ur.INPUT_OBJECT;case Kt.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"Input Object extension";case Kt.Kind.INPUT_VALUE_DEFINITION:return ur.INPUT_VALUE;case Kt.Kind.INT:return ur.INT_SCALAR;case Kt.Kind.INTERFACE_TYPE_DEFINITION:return ur.INTERFACE;case Kt.Kind.INTERFACE_TYPE_EXTENSION:return"Interface extension";case Kt.Kind.NULL:return ur.NULL;case Kt.Kind.OBJECT:case Kt.Kind.OBJECT_TYPE_DEFINITION:return ur.OBJECT;case Kt.Kind.OBJECT_TYPE_EXTENSION:return"Object extension";case Kt.Kind.STRING:return ur.STRING_SCALAR;case Kt.Kind.SCALAR_TYPE_DEFINITION:return ur.SCALAR;case Kt.Kind.SCALAR_TYPE_EXTENSION:return"Scalar extension";case Kt.Kind.UNION_TYPE_DEFINITION:return ur.UNION;case Kt.Kind.UNION_TYPE_EXTENSION:return"Union extension";default:return e}}function $9(e,t,n){let r=e.get(t);if(r)return r;let i=n();return e.set(t,i),i}function Q9(e,t){return e.has(t)?!1:(e.add(t),!0)}function Y9(e){return{kind:Kt.Kind.DIRECTIVE,name:(0,Of.stringToNameNode)(e)}}function J9(e){let t=[];for(let n of e){let r=[];for(let i of n)r.push({kind:Kt.Kind.STRING,value:i});t.push({kind:Kt.Kind.LIST,values:r})}return{kind:Kt.Kind.DIRECTIVE,name:(0,Of.stringToNameNode)(ur.REQUIRES_SCOPES),arguments:[{kind:Kt.Kind.ARGUMENT,name:(0,Of.stringToNameNode)(ur.SCOPES),value:{kind:Kt.Kind.LIST,values:t}}]}}function H9(e){let t=Array.from(e).sort((r,i)=>r-i),n=new Array;for(let r of t)n.push({kind:Kt.Kind.INT,value:r.toString()});return{kind:Kt.Kind.DIRECTIVE,name:(0,Of.stringToNameNode)(ur.SEMANTIC_NON_NULL),arguments:[{kind:Kt.Kind.ARGUMENT,name:(0,Of.stringToNameNode)(ur.LEVELS),value:{kind:Kt.Kind.LIST,values:n}}]}}function z9(e){let t=new Map;for(let[n,r]of e)t.set(n,x({},r));return t}function W9(e,t){for(let[n,r]of e)t.set(n,x({},r))}function X9(e){let t=new Map;for(let[n,r]of e)t.set(n,[...r]);return t}function Z9(e,t){for(let[n,r]of e)t.set(n,r)}function e7(e){let{value:t,done:n}=e.values().next();if(!n)return t}});var Df=w(xN=>{"use strict";m();T();N();Object.defineProperty(xN,"__esModule",{value:!0});xN.ExtensionType=void 0;var UC;(function(e){e[e.EXTENDS=0]="EXTENDS",e[e.NONE=1]="NONE",e[e.REAL=2]="REAL"})(UC||(xN.ExtensionType=UC={}))});var du=w(Dr=>{"use strict";m();T();N();Object.defineProperty(Dr,"__esModule",{value:!0});Dr.getMutableDirectiveDefinitionNode=n7;Dr.getMutableEnumNode=r7;Dr.getMutableEnumValueNode=i7;Dr.getMutableFieldNode=a7;Dr.getMutableInputObjectNode=s7;Dr.getMutableInputValueNode=o7;Dr.getMutableInterfaceNode=u7;Dr.getMutableObjectNode=c7;Dr.getMutableObjectExtensionNode=l7;Dr.getMutableScalarNode=d7;Dr.getMutableTypeNode=Av;Dr.getMutableUnionNode=f7;Dr.getTypeNodeNamedTypeName=Rv;Dr.getNamedTypeNode=MC;var Or=De(),_l=Hr(),kC=xi(),t7=gl();function n7(e){return{arguments:[],kind:e.kind,locations:[],name:x({},e.name),repeatable:e.repeatable,description:(0,_l.formatDescription)(e.description)}}function r7(e){return{kind:Or.Kind.ENUM_TYPE_DEFINITION,name:x({},e)}}function i7(e){return{directives:[],kind:e.kind,name:x({},e.name),description:(0,_l.formatDescription)(e.description)}}function a7(e,t,n){return{arguments:[],directives:[],kind:e.kind,name:x({},e.name),type:Av(e.type,t,n),description:(0,_l.formatDescription)(e.description)}}function s7(e){return{kind:Or.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:x({},e)}}function o7(e,t,n){return{directives:[],kind:e.kind,name:x({},e.name),type:Av(e.type,t,n),defaultValue:e.defaultValue,description:(0,_l.formatDescription)(e.description)}}function u7(e){return{kind:Or.Kind.INTERFACE_TYPE_DEFINITION,name:x({},e)}}function c7(e){return{kind:Or.Kind.OBJECT_TYPE_DEFINITION,name:x({},e)}}function l7(e){let t=e.kind===Or.Kind.OBJECT_TYPE_DEFINITION?e.description:void 0;return{kind:Or.Kind.OBJECT_TYPE_EXTENSION,name:x({},e.name),description:(0,_l.formatDescription)(t)}}function d7(e){return{kind:Or.Kind.SCALAR_TYPE_DEFINITION,name:x({},e)}}function Av(e,t,n){let r={kind:e.kind},i=r;for(let a=0;a{"use strict";m();T();N();Object.defineProperty(qN,"__esModule",{value:!0});qN.DEFAULT_CONSUMER_INACTIVE_THRESHOLD=void 0;qN.DEFAULT_CONSUMER_INACTIVE_THRESHOLD=30});var Ss=w(X=>{"use strict";m();T();N();Object.defineProperty(X,"__esModule",{value:!0});X.MAX_OR_SCOPES=X.EDFS_ARGS_REGEXP=X.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION=X.CONFIGURE_DESCRIPTION_DEFINITION=X.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION=X.SCOPE_SCALAR_DEFINITION=X.FIELD_SET_SCALAR_DEFINITION=X.VERSION_TWO_DIRECTIVE_DEFINITIONS=X.EVENT_DRIVEN_DIRECTIVE_DEFINITIONS_BY_DIRECTIVE_NAME=X.BASE_DIRECTIVE_DEFINITIONS=X.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=X.SUBSCRIPTION_FIELD_CONDITION_DEFINITION=X.SUBSCRIPTION_FILTER_VALUE_DEFINITION=X.SUBSCRIPTION_FILTER_CONDITION_DEFINITION=X.SUBSCRIPTION_FILTER_DEFINITION=X.SHAREABLE_DEFINITION=X.SEMANTIC_NON_NULL_DEFINITION=X.REQUIRES_SCOPES_DEFINITION=X.REQUIRE_FETCH_REASONS_DEFINITION=X.OVERRIDE_DEFINITION=X.ONE_OF_DEFINITION=X.LINK_DEFINITION=X.LINK_PURPOSE_DEFINITION=X.LINK_IMPORT_DEFINITION=X.INTERFACE_OBJECT_DEFINITION=X.INACCESSIBLE_DEFINITION=X.COMPOSE_DIRECTIVE_DEFINITION=X.AUTHENTICATED_DEFINITION=X.ALL_IN_BUILT_DIRECTIVE_NAMES=X.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=X.EDFS_REDIS_SUBSCRIBE_DEFINITION=X.EDFS_REDIS_PUBLISH_DEFINITION=X.TAG_DEFINITION=X.SPECIFIED_BY_DEFINITION=X.REQUIRES_DEFINITION=X.PROVIDES_DEFINITION=X.KEY_DEFINITION=X.REQUIRED_FIELDSET_TYPE_NODE=X.EDFS_NATS_SUBSCRIBE_DEFINITION=X.EDFS_NATS_REQUEST_DEFINITION=X.EDFS_NATS_PUBLISH_DEFINITION=X.EDFS_KAFKA_SUBSCRIBE_DEFINITION=X.EDFS_KAFKA_PUBLISH_DEFINITION=X.EXTERNAL_DEFINITION=X.EXTENDS_DEFINITION=X.DEPRECATED_DEFINITION=X.BASE_SCALARS=X.REQUIRED_STRING_TYPE_NODE=void 0;var ae=De(),re=Hr(),p7=Pv(),U=vr();X.REQUIRED_STRING_TYPE_NODE={kind:ae.Kind.NON_NULL_TYPE,type:(0,re.stringToNamedTypeNode)(U.STRING_SCALAR)};X.BASE_SCALARS=new Set(["_Any","_Entities",U.BOOLEAN_SCALAR,U.FLOAT_SCALAR,U.ID_SCALAR,U.INT_SCALAR,U.FIELD_SET_SCALAR,U.SCOPE_SCALAR,U.STRING_SCALAR]);X.DEPRECATED_DEFINITION={arguments:[{directives:[],kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.REASON),type:(0,re.stringToNamedTypeNode)(U.STRING_SCALAR),defaultValue:{kind:ae.Kind.STRING,value:ae.DEFAULT_DEPRECATION_REASON}}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:(0,re.stringArrayToNameNodeArray)([U.ARGUMENT_DEFINITION_UPPER,U.ENUM_VALUE_UPPER,U.FIELD_DEFINITION_UPPER,U.INPUT_FIELD_DEFINITION_UPPER]),name:(0,re.stringToNameNode)(U.DEPRECATED),repeatable:!1};X.EXTENDS_DEFINITION={kind:ae.Kind.DIRECTIVE_DEFINITION,locations:(0,re.stringArrayToNameNodeArray)([U.INTERFACE_UPPER,U.OBJECT_UPPER]),name:(0,re.stringToNameNode)(U.EXTENDS),repeatable:!1};X.EXTERNAL_DEFINITION={kind:ae.Kind.DIRECTIVE_DEFINITION,locations:(0,re.stringArrayToNameNodeArray)([U.FIELD_DEFINITION_UPPER,U.OBJECT_UPPER]),name:(0,re.stringToNameNode)(U.EXTERNAL),repeatable:!1};X.EDFS_KAFKA_PUBLISH_DEFINITION={arguments:[{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.TOPIC),type:X.REQUIRED_STRING_TYPE_NODE},{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.PROVIDER_ID),type:X.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ae.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:[(0,re.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,re.stringToNameNode)(U.EDFS_KAFKA_PUBLISH),repeatable:!1};X.EDFS_KAFKA_SUBSCRIBE_DEFINITION={arguments:[{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.TOPICS),type:{kind:ae.Kind.NON_NULL_TYPE,type:{kind:ae.Kind.LIST_TYPE,type:X.REQUIRED_STRING_TYPE_NODE}}},{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.PROVIDER_ID),type:X.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ae.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:[(0,re.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,re.stringToNameNode)(U.EDFS_KAFKA_SUBSCRIBE),repeatable:!1};X.EDFS_NATS_PUBLISH_DEFINITION={arguments:[{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.SUBJECT),type:X.REQUIRED_STRING_TYPE_NODE},{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.PROVIDER_ID),type:{kind:ae.Kind.NON_NULL_TYPE,type:(0,re.stringToNamedTypeNode)(U.STRING_SCALAR)},defaultValue:{kind:ae.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:[(0,re.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,re.stringToNameNode)(U.EDFS_NATS_PUBLISH),repeatable:!1};X.EDFS_NATS_REQUEST_DEFINITION={arguments:[{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.SUBJECT),type:{kind:ae.Kind.NON_NULL_TYPE,type:(0,re.stringToNamedTypeNode)(U.STRING_SCALAR)}},{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.PROVIDER_ID),type:{kind:ae.Kind.NON_NULL_TYPE,type:(0,re.stringToNamedTypeNode)(U.STRING_SCALAR)},defaultValue:{kind:ae.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:[(0,re.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,re.stringToNameNode)(U.EDFS_NATS_REQUEST),repeatable:!1};X.EDFS_NATS_SUBSCRIBE_DEFINITION={arguments:[{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.SUBJECTS),type:{kind:ae.Kind.NON_NULL_TYPE,type:{kind:ae.Kind.LIST_TYPE,type:X.REQUIRED_STRING_TYPE_NODE}}},{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.PROVIDER_ID),type:X.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ae.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}},{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.STREAM_CONFIGURATION),type:(0,re.stringToNamedTypeNode)(U.EDFS_NATS_STREAM_CONFIGURATION)}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:[(0,re.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,re.stringToNameNode)(U.EDFS_NATS_SUBSCRIBE),repeatable:!1};X.REQUIRED_FIELDSET_TYPE_NODE={kind:ae.Kind.NON_NULL_TYPE,type:(0,re.stringToNamedTypeNode)(U.FIELD_SET_SCALAR)};X.KEY_DEFINITION={arguments:[{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.FIELDS),type:X.REQUIRED_FIELDSET_TYPE_NODE},{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.RESOLVABLE),type:(0,re.stringToNamedTypeNode)(U.BOOLEAN_SCALAR),defaultValue:{kind:ae.Kind.BOOLEAN,value:!0}}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:(0,re.stringArrayToNameNodeArray)([U.INTERFACE_UPPER,U.OBJECT_UPPER]),name:(0,re.stringToNameNode)(U.KEY),repeatable:!0};X.PROVIDES_DEFINITION={arguments:[{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.FIELDS),type:X.REQUIRED_FIELDSET_TYPE_NODE}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:[(0,re.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,re.stringToNameNode)(U.PROVIDES),repeatable:!1};X.REQUIRES_DEFINITION={arguments:[{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.FIELDS),type:{kind:ae.Kind.NON_NULL_TYPE,type:(0,re.stringToNamedTypeNode)(U.FIELD_SET_SCALAR)}}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:[(0,re.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,re.stringToNameNode)(U.REQUIRES),repeatable:!1};X.SPECIFIED_BY_DEFINITION={arguments:[{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.URL_LOWER),type:X.REQUIRED_STRING_TYPE_NODE}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:(0,re.stringArrayToNameNodeArray)([U.SCALAR_UPPER]),name:(0,re.stringToNameNode)(U.SPECIFIED_BY),repeatable:!1};X.TAG_DEFINITION={arguments:[{directives:[],kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.NAME),type:{kind:ae.Kind.NON_NULL_TYPE,type:(0,re.stringToNamedTypeNode)(U.STRING_SCALAR)}}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:(0,re.stringArrayToNameNodeArray)([U.ARGUMENT_DEFINITION_UPPER,U.ENUM_UPPER,U.ENUM_VALUE_UPPER,U.FIELD_DEFINITION_UPPER,U.INPUT_FIELD_DEFINITION_UPPER,U.INPUT_OBJECT_UPPER,U.INTERFACE_UPPER,U.OBJECT_UPPER,U.SCALAR_UPPER,U.UNION_UPPER]),name:(0,re.stringToNameNode)(U.TAG),repeatable:!0};X.EDFS_REDIS_PUBLISH_DEFINITION={arguments:[{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.CHANNEL),type:X.REQUIRED_STRING_TYPE_NODE},{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.PROVIDER_ID),type:X.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ae.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:[(0,re.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,re.stringToNameNode)(U.EDFS_REDIS_PUBLISH),repeatable:!1};X.EDFS_REDIS_SUBSCRIBE_DEFINITION={arguments:[{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.CHANNELS),type:{kind:ae.Kind.NON_NULL_TYPE,type:{kind:ae.Kind.LIST_TYPE,type:X.REQUIRED_STRING_TYPE_NODE}}},{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.PROVIDER_ID),type:X.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ae.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:[(0,re.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,re.stringToNameNode)(U.EDFS_REDIS_SUBSCRIBE),repeatable:!1};X.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=new Map([[U.DEPRECATED,X.DEPRECATED_DEFINITION],[U.EXTENDS,X.EXTENDS_DEFINITION],[U.EXTERNAL,X.EXTERNAL_DEFINITION],[U.EDFS_KAFKA_PUBLISH,X.EDFS_KAFKA_PUBLISH_DEFINITION],[U.EDFS_KAFKA_SUBSCRIBE,X.EDFS_KAFKA_SUBSCRIBE_DEFINITION],[U.EDFS_NATS_PUBLISH,X.EDFS_NATS_PUBLISH_DEFINITION],[U.EDFS_NATS_REQUEST,X.EDFS_NATS_REQUEST_DEFINITION],[U.EDFS_NATS_SUBSCRIBE,X.EDFS_NATS_SUBSCRIBE_DEFINITION],[U.EDFS_REDIS_PUBLISH,X.EDFS_REDIS_PUBLISH_DEFINITION],[U.EDFS_REDIS_SUBSCRIBE,X.EDFS_REDIS_SUBSCRIBE_DEFINITION],[U.KEY,X.KEY_DEFINITION],[U.PROVIDES,X.PROVIDES_DEFINITION],[U.REQUIRES,X.REQUIRES_DEFINITION],[U.SPECIFIED_BY,X.SPECIFIED_BY_DEFINITION],[U.TAG,X.TAG_DEFINITION]]);X.ALL_IN_BUILT_DIRECTIVE_NAMES=new Set([U.AUTHENTICATED,U.COMPOSE_DIRECTIVE,U.CONFIGURE_DESCRIPTION,U.CONFIGURE_CHILD_DESCRIPTIONS,U.DEPRECATED,U.EDFS_NATS_PUBLISH,U.EDFS_NATS_REQUEST,U.EDFS_NATS_SUBSCRIBE,U.EDFS_KAFKA_PUBLISH,U.EDFS_KAFKA_SUBSCRIBE,U.EDFS_REDIS_PUBLISH,U.EDFS_REDIS_SUBSCRIBE,U.EXTENDS,U.EXTERNAL,U.INACCESSIBLE,U.INTERFACE_OBJECT,U.KEY,U.LINK,U.ONE_OF,U.OVERRIDE,U.PROVIDES,U.REQUIRE_FETCH_REASONS,U.REQUIRES,U.REQUIRES_SCOPES,U.SEMANTIC_NON_NULL,U.SHAREABLE,U.SPECIFIED_BY,U.SUBSCRIPTION_FILTER,U.TAG]);X.AUTHENTICATED_DEFINITION={arguments:[],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:(0,re.stringArrayToNameNodeArray)([U.ENUM_UPPER,U.FIELD_DEFINITION_UPPER,U.INTERFACE_UPPER,U.OBJECT_UPPER,U.SCALAR_UPPER]),name:(0,re.stringToNameNode)(U.AUTHENTICATED),repeatable:!1};X.COMPOSE_DIRECTIVE_DEFINITION={arguments:[{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.NAME),type:X.REQUIRED_STRING_TYPE_NODE}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:(0,re.stringArrayToNameNodeArray)([U.SCHEMA_UPPER]),name:(0,re.stringToNameNode)(U.COMPOSE_DIRECTIVE),repeatable:!0};X.INACCESSIBLE_DEFINITION={arguments:[],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:(0,re.stringArrayToNameNodeArray)([U.ARGUMENT_DEFINITION_UPPER,U.ENUM_UPPER,U.ENUM_VALUE_UPPER,U.FIELD_DEFINITION_UPPER,U.INPUT_FIELD_DEFINITION_UPPER,U.INPUT_OBJECT_UPPER,U.INTERFACE_UPPER,U.OBJECT_UPPER,U.SCALAR_UPPER,U.UNION_UPPER]),name:(0,re.stringToNameNode)(U.INACCESSIBLE),repeatable:!1};X.INTERFACE_OBJECT_DEFINITION={kind:ae.Kind.DIRECTIVE_DEFINITION,locations:(0,re.stringArrayToNameNodeArray)([U.OBJECT_UPPER]),name:(0,re.stringToNameNode)(U.INTERFACE_OBJECT),repeatable:!1};X.LINK_IMPORT_DEFINITION={kind:ae.Kind.SCALAR_TYPE_DEFINITION,name:(0,re.stringToNameNode)(U.LINK_IMPORT)};X.LINK_PURPOSE_DEFINITION={kind:ae.Kind.ENUM_TYPE_DEFINITION,name:(0,re.stringToNameNode)(U.LINK_PURPOSE),values:[{directives:[],kind:ae.Kind.ENUM_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.EXECUTION)},{directives:[],kind:ae.Kind.ENUM_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.SECURITY)}]};X.LINK_DEFINITION={arguments:[{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.URL_LOWER),type:{kind:ae.Kind.NON_NULL_TYPE,type:(0,re.stringToNamedTypeNode)(U.STRING_SCALAR)}},{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.AS),type:(0,re.stringToNamedTypeNode)(U.STRING_SCALAR)},{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.FOR),type:(0,re.stringToNamedTypeNode)(U.LINK_PURPOSE)},{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.IMPORT),type:{kind:ae.Kind.LIST_TYPE,type:(0,re.stringToNamedTypeNode)(U.LINK_IMPORT)}}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:(0,re.stringArrayToNameNodeArray)([U.SCHEMA_UPPER]),name:(0,re.stringToNameNode)(U.LINK),repeatable:!0};X.ONE_OF_DEFINITION={kind:ae.Kind.DIRECTIVE_DEFINITION,locations:(0,re.stringArrayToNameNodeArray)([U.INPUT_OBJECT_UPPER]),name:(0,re.stringToNameNode)(U.ONE_OF),repeatable:!1};X.OVERRIDE_DEFINITION={arguments:[{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.FROM),type:{kind:ae.Kind.NON_NULL_TYPE,type:(0,re.stringToNamedTypeNode)(U.STRING_SCALAR)}}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:(0,re.stringArrayToNameNodeArray)([U.FIELD_DEFINITION_UPPER]),name:(0,re.stringToNameNode)(U.OVERRIDE),repeatable:!1};X.REQUIRE_FETCH_REASONS_DEFINITION={kind:ae.Kind.DIRECTIVE_DEFINITION,locations:(0,re.stringArrayToNameNodeArray)([U.FIELD_DEFINITION_UPPER,U.INTERFACE_UPPER,U.OBJECT_UPPER]),name:(0,re.stringToNameNode)(U.REQUIRE_FETCH_REASONS),repeatable:!0};X.REQUIRES_SCOPES_DEFINITION={arguments:[{directives:[],kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.SCOPES),type:{kind:ae.Kind.NON_NULL_TYPE,type:{kind:ae.Kind.LIST_TYPE,type:{kind:ae.Kind.NON_NULL_TYPE,type:{kind:ae.Kind.LIST_TYPE,type:{kind:ae.Kind.NON_NULL_TYPE,type:(0,re.stringToNamedTypeNode)(U.SCOPE_SCALAR)}}}}}}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:(0,re.stringArrayToNameNodeArray)([U.ENUM_UPPER,U.FIELD_DEFINITION_UPPER,U.INTERFACE_UPPER,U.OBJECT_UPPER,U.SCALAR_UPPER]),name:(0,re.stringToNameNode)(U.REQUIRES_SCOPES),repeatable:!1};X.SEMANTIC_NON_NULL_DEFINITION={arguments:[{directives:[],kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.LEVELS),type:{kind:ae.Kind.NON_NULL_TYPE,type:{kind:ae.Kind.LIST_TYPE,type:{kind:ae.Kind.NON_NULL_TYPE,type:(0,re.stringToNamedTypeNode)(U.INT_SCALAR)}}},defaultValue:{kind:ae.Kind.LIST,values:[{kind:ae.Kind.INT,value:"0"}]}}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:[(0,re.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,re.stringToNameNode)(U.SEMANTIC_NON_NULL),repeatable:!1};X.SHAREABLE_DEFINITION={kind:ae.Kind.DIRECTIVE_DEFINITION,locations:(0,re.stringArrayToNameNodeArray)([U.FIELD_DEFINITION_UPPER,U.OBJECT_UPPER]),name:(0,re.stringToNameNode)(U.SHAREABLE),repeatable:!0};X.SUBSCRIPTION_FILTER_DEFINITION={arguments:[{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.CONDITION),type:{kind:ae.Kind.NON_NULL_TYPE,type:(0,re.stringToNamedTypeNode)(U.SUBSCRIPTION_FILTER_CONDITION)}}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:(0,re.stringArrayToNameNodeArray)([U.FIELD_DEFINITION_UPPER]),name:(0,re.stringToNameNode)(U.SUBSCRIPTION_FILTER),repeatable:!1};X.SUBSCRIPTION_FILTER_CONDITION_DEFINITION={fields:[{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.AND_UPPER),type:{kind:ae.Kind.LIST_TYPE,type:{kind:ae.Kind.NON_NULL_TYPE,type:(0,re.stringToNamedTypeNode)(U.SUBSCRIPTION_FILTER_CONDITION)}}},{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.IN_UPPER),type:(0,re.stringToNamedTypeNode)(U.SUBSCRIPTION_FIELD_CONDITION)},{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.OR_UPPER),type:{kind:ae.Kind.LIST_TYPE,type:{kind:ae.Kind.NON_NULL_TYPE,type:(0,re.stringToNamedTypeNode)(U.SUBSCRIPTION_FILTER_CONDITION)}}},{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.NOT_UPPER),type:(0,re.stringToNamedTypeNode)(U.SUBSCRIPTION_FILTER_CONDITION)}],kind:ae.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,re.stringToNameNode)(U.SUBSCRIPTION_FILTER_CONDITION)};X.SUBSCRIPTION_FILTER_VALUE_DEFINITION={kind:ae.Kind.SCALAR_TYPE_DEFINITION,name:(0,re.stringToNameNode)(U.SUBSCRIPTION_FILTER_VALUE)};X.SUBSCRIPTION_FIELD_CONDITION_DEFINITION={fields:[{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.FIELD_PATH),type:{kind:ae.Kind.NON_NULL_TYPE,type:(0,re.stringToNamedTypeNode)(U.STRING_SCALAR)}},{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.VALUES),type:{kind:ae.Kind.NON_NULL_TYPE,type:{kind:ae.Kind.LIST_TYPE,type:(0,re.stringToNamedTypeNode)(U.SUBSCRIPTION_FILTER_VALUE)}}}],kind:ae.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,re.stringToNameNode)(U.SUBSCRIPTION_FIELD_CONDITION)};X.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=new Map([[U.AUTHENTICATED,X.AUTHENTICATED_DEFINITION],[U.COMPOSE_DIRECTIVE,X.COMPOSE_DIRECTIVE_DEFINITION],[U.INACCESSIBLE,X.INACCESSIBLE_DEFINITION],[U.INTERFACE_OBJECT,X.INTERFACE_OBJECT_DEFINITION],[U.LINK,X.LINK_DEFINITION],[U.OVERRIDE,X.OVERRIDE_DEFINITION],[U.REQUIRES_SCOPES,X.REQUIRES_SCOPES_DEFINITION],[U.SHAREABLE,X.SHAREABLE_DEFINITION]]);X.BASE_DIRECTIVE_DEFINITIONS=[X.DEPRECATED_DEFINITION,X.EXTENDS_DEFINITION,X.EXTERNAL_DEFINITION,X.KEY_DEFINITION,X.PROVIDES_DEFINITION,X.REQUIRES_DEFINITION,X.SPECIFIED_BY_DEFINITION,X.TAG_DEFINITION];X.EVENT_DRIVEN_DIRECTIVE_DEFINITIONS_BY_DIRECTIVE_NAME=new Map([[U.EDFS_KAFKA_PUBLISH,X.EDFS_KAFKA_PUBLISH_DEFINITION],[U.EDFS_KAFKA_SUBSCRIBE,X.EDFS_KAFKA_SUBSCRIBE_DEFINITION],[U.EDFS_NATS_PUBLISH,X.EDFS_NATS_PUBLISH_DEFINITION],[U.EDFS_NATS_REQUEST,X.EDFS_NATS_REQUEST_DEFINITION],[U.EDFS_NATS_SUBSCRIBE,X.EDFS_NATS_SUBSCRIBE_DEFINITION],[U.EDFS_REDIS_PUBLISH,X.EDFS_REDIS_PUBLISH_DEFINITION],[U.EDFS_REDIS_SUBSCRIBE,X.EDFS_REDIS_SUBSCRIBE_DEFINITION]]);X.VERSION_TWO_DIRECTIVE_DEFINITIONS=[X.AUTHENTICATED_DEFINITION,X.COMPOSE_DIRECTIVE_DEFINITION,X.INACCESSIBLE_DEFINITION,X.INTERFACE_OBJECT_DEFINITION,X.OVERRIDE_DEFINITION,X.REQUIRES_SCOPES_DEFINITION,X.SHAREABLE_DEFINITION];X.FIELD_SET_SCALAR_DEFINITION={kind:ae.Kind.SCALAR_TYPE_DEFINITION,name:(0,re.stringToNameNode)(U.FIELD_SET_SCALAR)};X.SCOPE_SCALAR_DEFINITION={kind:ae.Kind.SCALAR_TYPE_DEFINITION,name:(0,re.stringToNameNode)(U.SCOPE_SCALAR)};X.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION={kind:ae.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,re.stringToNameNode)(U.EDFS_NATS_STREAM_CONFIGURATION),fields:[{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.CONSUMER_NAME),type:{kind:ae.Kind.NON_NULL_TYPE,type:(0,re.stringToNamedTypeNode)(U.STRING_SCALAR)}},{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.STREAM_NAME),type:{kind:ae.Kind.NON_NULL_TYPE,type:(0,re.stringToNamedTypeNode)(U.STRING_SCALAR)}},{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.CONSUMER_INACTIVE_THRESHOLD),type:{kind:ae.Kind.NON_NULL_TYPE,type:(0,re.stringToNamedTypeNode)(U.INT_SCALAR)},defaultValue:{kind:ae.Kind.INT,value:p7.DEFAULT_CONSUMER_INACTIVE_THRESHOLD.toString()}}]};X.CONFIGURE_DESCRIPTION_DEFINITION={arguments:[{directives:[],kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.PROPAGATE),type:{kind:ae.Kind.NON_NULL_TYPE,type:(0,re.stringToNamedTypeNode)(U.BOOLEAN_SCALAR)},defaultValue:{kind:ae.Kind.BOOLEAN,value:!0}},{directives:[],kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.DESCRIPTION_OVERRIDE),type:(0,re.stringToNamedTypeNode)(U.STRING_SCALAR)}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:(0,re.stringArrayToNameNodeArray)([U.ARGUMENT_DEFINITION_UPPER,U.ENUM_UPPER,U.ENUM_VALUE_UPPER,U.FIELD_DEFINITION_UPPER,U.INTERFACE_UPPER,U.INPUT_OBJECT_UPPER,U.INPUT_FIELD_DEFINITION_UPPER,U.OBJECT_UPPER,U.SCALAR_UPPER,U.SCHEMA_UPPER,U.UNION_UPPER]),name:(0,re.stringToNameNode)(U.CONFIGURE_DESCRIPTION),repeatable:!1};X.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION={arguments:[{directives:[],kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.PROPAGATE),type:{kind:ae.Kind.NON_NULL_TYPE,type:(0,re.stringToNamedTypeNode)(U.BOOLEAN_SCALAR)},defaultValue:{kind:ae.Kind.BOOLEAN,value:!0}}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:(0,re.stringArrayToNameNodeArray)([U.ENUM_UPPER,U.INPUT_OBJECT_UPPER,U.INTERFACE_UPPER,U.OBJECT_UPPER]),name:(0,re.stringToNameNode)(U.CONFIGURE_CHILD_DESCRIPTIONS),repeatable:!1};X.EDFS_ARGS_REGEXP=/{{\s*args\.([a-zA-Z0-9_]+)\s*}}/g;X.MAX_OR_SCOPES=16});var VN=w(sc=>{"use strict";m();T();N();Object.defineProperty(sc,"__esModule",{value:!0});sc.newParentTagData=E7;sc.newChildTagData=h7;sc.validateImplicitFieldSets=y7;sc.newContractTagOptionsFromArrays=I7;sc.getDescriptionFromString=g7;var zr=De(),m7=du(),N7=Ss(),T7=Hr(),xC=Sr();function E7(e){return{childTagDataByChildName:new Map,tagNames:new Set,typeName:e}}function h7(e){return{name:e,tagNames:new Set,tagNamesByArgumentName:new Map}}function y7({conditionalFieldDataByCoords:e,currentSubgraphName:t,entityData:n,implicitKeys:r,objectData:i,parentDefinitionDataByTypeName:a,graphNode:o}){let c=(0,xC.getValueOrDefault)(n.keyFieldSetDatasBySubgraphName,t,()=>new Map);for(let[l,d]of n.documentNodeByKeyFieldSet){if(c.has(l))continue;let p=[i],y=[],I=[],v=-1,F=!0,k=!0;(0,zr.visit)(d,{Argument:{enter(){return k=!1,zr.BREAK}},Field:{enter(K){let J=p[v];if(F)return k=!1,zr.BREAK;let se=K.name.value,ie=J.fieldDataByName.get(se);if(!ie||ie.argumentDataByName.size||y[v].has(se))return k=!1,zr.BREAK;let{isUnconditionallyProvided:Te}=(0,xC.getOrThrowError)(ie.externalFieldDataBySubgraphName,t,`${ie.originalParentTypeName}.${se}.externalFieldDataBySubgraphName`),de=e.get(`${ie.renamedParentTypeName}.${se}`);if(de){if(de.providedBy.length>0)I.push(...de.providedBy);else if(de.requiredBy.length>0)return k=!1,zr.BREAK}else if(!Te)return k=!1,zr.BREAK;y[v].add(se);let Re=(0,m7.getTypeNodeNamedTypeName)(ie.node.type);if(N7.BASE_SCALARS.has(Re))return;let xe=a.get(Re);if(!xe)return k=!1,zr.BREAK;if(xe.kind===zr.Kind.OBJECT_TYPE_DEFINITION){F=!0,p.push(xe);return}if((0,T7.isKindAbstract)(xe.kind))return k=!1,zr.BREAK}},InlineFragment:{enter(){return k=!1,zr.BREAK}},SelectionSet:{enter(){if(!F||(v+=1,F=!1,v<0||v>=p.length))return k=!1,zr.BREAK;y.push(new Set)},leave(){if(F)return k=!1,zr.BREAK;v-=1,p.pop(),y.pop()}}}),k&&(r.push(Q(x({fieldName:"",selectionSet:l},I.length>0?{conditions:I}:{}),{disableEntityResolver:!0})),o&&o.satisfiedFieldSets.add(l))}}function I7(e,t){return{tagNamesToExclude:new Set(e),tagNamesToInclude:new Set(t)}}function g7(e){if(e)return{block:!0,kind:zr.Kind.STRING,value:e}}});var Sl=w(mt=>{"use strict";m();T();N();Object.defineProperty(mt,"__esModule",{value:!0});mt.MergeMethod=void 0;mt.newPersistedDirectivesData=v7;mt.isNodeExternalOrShareable=S7;mt.isTypeRequired=O7;mt.areDefaultValuesCompatible=VC;mt.compareAndValidateInputValueDefaultValues=D7;mt.setMutualExecutableLocations=b7;mt.isTypeNameRootType=A7;mt.getRenamedRootTypeName=R7;mt.childMapToValueArray=F7;mt.setLongestDescription=w7;mt.isParentDataRootType=jC;mt.isInterfaceDefinitionData=L7;mt.setParentDataExtensionType=C7;mt.extractPersistedDirectives=k7;mt.propagateAuthDirectives=M7;mt.propagateFieldAuthDirectives=x7;mt.generateDeprecatedDirective=Cv;mt.getClientPersistedDirectiveNodes=wv;mt.getNodeForRouterSchemaByData=V7;mt.getClientSchemaFieldNodeByFieldData=j7;mt.getNodeWithPersistedDirectivesByInputValueData=GC;mt.addValidPersistedDirectiveDefinitionNodeByData=G7;mt.newInvalidFieldNames=$7;mt.validateExternalAndShareable=Q7;mt.isTypeValidImplementation=jN;mt.isNodeDataInaccessible=$C;mt.isLeafKind=Y7;mt.getSubscriptionFilterValue=J7;mt.getParentTypeName=H7;mt.newConditionalFieldData=z7;mt.getDefinitionDataCoords=W7;mt.isParentDataCompositeOutputType=X7;mt.newExternalFieldData=Z7;mt.getInitialFederatedDescription=eZ;mt.areKindsEqual=tZ;mt.isFieldData=Bv;mt.isInputNodeKind=nZ;mt.isOutputNodeKind=rZ;var st=De(),Fv=Df(),vl=Hr(),Lv=xi(),Ct=vr(),oc=Sr(),_7=VN();function v7(){return{deprecatedReason:"",directivesByDirectiveName:new Map,isDeprecated:!1,tagDirectiveByName:new Map}}function S7(e,t,n){var i;let r={isExternal:n.has(Ct.EXTERNAL),isShareable:t||n.has(Ct.SHAREABLE)};if(!((i=e.directives)!=null&&i.length))return r;for(let a of e.directives){let o=a.name.value;if(o===Ct.EXTERNAL){r.isExternal=!0;continue}o===Ct.SHAREABLE&&(r.isShareable=!0)}return r}function O7(e){return e.kind===st.Kind.NON_NULL_TYPE}function VC(e,t){switch(e.kind){case st.Kind.LIST_TYPE:return t.kind===st.Kind.LIST||t.kind===st.Kind.NULL;case st.Kind.NAMED_TYPE:if(t.kind===st.Kind.NULL)return!0;switch(e.name.value){case Ct.BOOLEAN_SCALAR:return t.kind===st.Kind.BOOLEAN;case Ct.FLOAT_SCALAR:return t.kind===st.Kind.INT||t.kind===st.Kind.FLOAT;case Ct.INT_SCALAR:return t.kind===st.Kind.INT;case Ct.STRING_SCALAR:return t.kind===st.Kind.STRING;default:return!0}case st.Kind.NON_NULL_TYPE:return t.kind===st.Kind.NULL?!1:VC(e.type,t)}}function D7(e,t,n){if(!e.defaultValue)return;if(!t.defaultValue){e.includeDefaultValue=!1;return}let r=(0,st.print)(e.defaultValue),i=(0,st.print)(t.defaultValue);if(r!==i){n.push((0,Lv.incompatibleInputValueDefaultValuesError)(`${e.isArgument?Ct.ARGUMENT:Ct.INPUT_FIELD} "${e.name}"`,e.originalCoords,[...t.subgraphNames],r,i));return}}function b7(e,t){let n=new Set;for(let r of t)e.executableLocations.has(r)&&n.add(r);e.executableLocations=n}function A7(e,t){return Ct.ROOT_TYPE_NAMES.has(e)||t.has(e)}function R7(e,t){let n=t.get(e);if(!n)return e;switch(n){case st.OperationTypeNode.MUTATION:return Ct.MUTATION;case st.OperationTypeNode.SUBSCRIPTION:return Ct.SUBSCRIPTION;default:return Ct.QUERY}}function P7(e){for(let t of e.argumentDataByName.values()){for(let n of t.directivesByDirectiveName.values())t.node.directives.push(...n);e.node.arguments.push(t.node)}}function F7(e){let t=[];for(let n of e.values()){Bv(n)&&P7(n);for(let r of n.directivesByDirectiveName.values())n.node.directives.push(...r);t.push(n.node)}return t}function w7(e,t){if(t.description){if("configureDescriptionDataBySubgraphName"in t){for(let{propagate:n}of t.configureDescriptionDataBySubgraphName.values())if(!n)return}(!e.description||e.description.value.length0&&e.persistedDirectivesData.directivesByDirectiveName.set(Ct.REQUIRES_SCOPES,[(0,oc.generateRequiresScopesDirective)(t.requiredScopes)]))}function x7(e,t){if(!t)return;let n=t.fieldAuthDataByFieldName.get(e.name);n&&(n.originalData.requiresAuthentication&&e.persistedDirectivesData.directivesByDirectiveName.set(Ct.AUTHENTICATED,[(0,oc.generateSimpleDirective)(Ct.AUTHENTICATED)]),n.originalData.requiredScopes.length>0&&e.persistedDirectivesData.directivesByDirectiveName.set(Ct.REQUIRES_SCOPES,[(0,oc.generateRequiresScopesDirective)(n.originalData.requiredScopes)]))}function Cv(e){return{kind:st.Kind.DIRECTIVE,name:(0,vl.stringToNameNode)(Ct.DEPRECATED),arguments:[{kind:st.Kind.ARGUMENT,name:(0,vl.stringToNameNode)(Ct.REASON),value:{kind:st.Kind.STRING,value:e||Ct.DEPRECATED_DEFAULT_ARGUMENT_VALUE}}]}}function q7(e,t,n,r){let i=[];for(let[a,o]of e){let c=t.get(a);if(c){if(o.length<2){i.push(...o);continue}if(!c.repeatable){r.push((0,Lv.invalidRepeatedFederatedDirectiveErrorMessage)(a,n));continue}i.push(...o)}}return i}function KC(e,t,n){let r=[...e.persistedDirectivesData.tagDirectiveByName.values()];return e.persistedDirectivesData.isDeprecated&&r.push(Cv(e.persistedDirectivesData.deprecatedReason)),r.push(...q7(e.persistedDirectivesData.directivesByDirectiveName,t,e.name,n)),r}function wv(e){var n;let t=[];e.persistedDirectivesData.isDeprecated&&t.push(Cv(e.persistedDirectivesData.deprecatedReason));for(let[r,i]of e.persistedDirectivesData.directivesByDirectiveName){if(r===Ct.SEMANTIC_NON_NULL&&Bv(e)){t.push((0,oc.generateSemanticNonNullDirective)((n=(0,oc.getFirstEntry)(e.nullLevelsBySubgraphName))!=null?n:new Set([0])));continue}Ct.PERSISTED_CLIENT_DIRECTIVES.has(r)&&t.push(i[0])}return t}function V7(e,t,n){return e.node.name=(0,vl.stringToNameNode)(e.name),e.node.description=e.description,e.node.directives=KC(e,t,n),e.node}function j7(e){let t=wv(e),n=[];for(let r of e.argumentDataByName.values())$C(r)||n.push(Q(x({},r.node),{directives:wv(r)}));return Q(x({},e.node),{directives:t,arguments:n})}function GC(e,t,n){return e.node.name=(0,vl.stringToNameNode)(e.name),e.node.type=e.type,e.node.description=e.description,e.node.directives=KC(e,t,n),e.includeDefaultValue&&(e.node.defaultValue=e.defaultValue),e.node}function K7(e,t,n,r,i){let a=[];for(let[o,c]of t.argumentDataByName){let l=(0,oc.getEntriesNotInHashSet)(t.subgraphNames,c.subgraphNames);if(l.length>0){c.requiredSubgraphNames.size>0&&a.push({inputValueName:o,missingSubgraphs:l,requiredSubgraphs:[...c.requiredSubgraphNames]});continue}e.push(GC(c,n,r)),i&&i.add(o)}return a.length>0?(r.push((0,Lv.invalidRequiredInputValueError)(Ct.DIRECTIVE_DEFINITION,`@${t.name}`,a)),!1):!0}function G7(e,t,n,r){let i=[];K7(i,t,n,r)&&e.push({arguments:i,kind:st.Kind.DIRECTIVE_DEFINITION,locations:(0,vl.setToNameNodeArray)(t.executableLocations),name:(0,vl.stringToNameNode)(t.name),repeatable:t.repeatable,description:t.description})}function $7(){return{byShareable:new Set,subgraphNamesByExternalFieldName:new Map}}function Q7(e,t){let n=e.isShareableBySubgraphName.size,r=new Array,i=0;for(let[a,o]of e.isShareableBySubgraphName){let c=e.externalFieldDataBySubgraphName.get(a);if(c&&!c.isUnconditionallyProvided){r.push(a);continue}o||(i+=1)}switch(i){case 0:n===r.length&&t.subgraphNamesByExternalFieldName.set(e.name,r);return;case 1:if(n===1)return;n-r.length!==1&&t.byShareable.add(e.name);return;default:t.byShareable.add(e.name)}}var qC;(function(e){e[e.UNION=0]="UNION",e[e.INTERSECTION=1]="INTERSECTION",e[e.CONSISTENT=2]="CONSISTENT"})(qC||(mt.MergeMethod=qC={}));function jN(e,t,n){if(e.kind===st.Kind.NON_NULL_TYPE)return t.kind!==st.Kind.NON_NULL_TYPE?!1:jN(e.type,t.type,n);if(t.kind===st.Kind.NON_NULL_TYPE)return jN(e,t.type,n);switch(e.kind){case st.Kind.NAMED_TYPE:if(t.kind===st.Kind.NAMED_TYPE){let r=e.name.value,i=t.name.value;if(r===i)return!0;let a=n.get(r);return a?a.has(i):!1}return!1;default:return t.kind===st.Kind.LIST_TYPE?jN(e.type,t.type,n):!1}}function $C(e){return e.persistedDirectivesData.directivesByDirectiveName.has(Ct.INACCESSIBLE)||e.directivesByDirectiveName.has(Ct.INACCESSIBLE)}function Y7(e){return e===st.Kind.SCALAR_TYPE_DEFINITION||e===st.Kind.ENUM_TYPE_DEFINITION}function J7(e){switch(e.kind){case st.Kind.BOOLEAN:return e.value;case st.Kind.ENUM:case st.Kind.STRING:return e.value;case st.Kind.FLOAT:case st.Kind.INT:try{return parseFloat(e.value)}catch(t){return"NaN"}case st.Kind.NULL:return null}}function H7(e){return e.kind===st.Kind.OBJECT_TYPE_DEFINITION&&e.renamedTypeName||e.name}function z7(){return{providedBy:[],requiredBy:[]}}function W7(e,t){switch(e.kind){case st.Kind.ENUM_VALUE_DEFINITION:return`${e.parentTypeName}.${e.name}`;case st.Kind.FIELD_DEFINITION:return`${t?e.renamedParentTypeName:e.originalParentTypeName}.${e.name}`;case st.Kind.ARGUMENT:case st.Kind.INPUT_VALUE_DEFINITION:return t?e.federatedCoords:e.originalCoords;case st.Kind.OBJECT_TYPE_DEFINITION:return t?e.renamedTypeName:e.name;default:return e.name}}function X7(e){return e.kind===st.Kind.OBJECT_TYPE_DEFINITION||e.kind===st.Kind.INTERFACE_TYPE_DEFINITION}function Z7(e){return{isDefinedExternal:e,isUnconditionallyProvided:!e}}function eZ(e){let{value:t,done:n}=e.configureDescriptionDataBySubgraphName.values().next();if(n)return e.description;if(t.propagate)return(0,_7.getDescriptionFromString)(t.description)||e.description}function tZ(e,t){return e.kind===t.kind}function Bv(e){return e.kind===st.Kind.FIELD_DEFINITION}function nZ(e){return Ct.INPUT_NODE_KINDS.has(e)}function rZ(e){return Ct.OUTPUT_NODE_KINDS.has(e)}});var Mv={};fm(Mv,{__addDisposableResource:()=>fB,__assign:()=>KN,__asyncDelegator:()=>iB,__asyncGenerator:()=>rB,__asyncValues:()=>aB,__await:()=>Ol,__awaiter:()=>WC,__classPrivateFieldGet:()=>cB,__classPrivateFieldIn:()=>dB,__classPrivateFieldSet:()=>lB,__createBinding:()=>$N,__decorate:()=>JC,__disposeResources:()=>pB,__esDecorate:()=>iZ,__exportStar:()=>ZC,__extends:()=>QC,__generator:()=>XC,__importDefault:()=>uB,__importStar:()=>oB,__makeTemplateObject:()=>sB,__metadata:()=>zC,__param:()=>HC,__propKey:()=>sZ,__read:()=>kv,__rest:()=>YC,__runInitializers:()=>aZ,__setFunctionName:()=>oZ,__spread:()=>eB,__spreadArray:()=>nB,__spreadArrays:()=>tB,__values:()=>GN,default:()=>lZ});function QC(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Uv(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function YC(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function HC(e,t){return function(n,r){t(n,r,e)}}function iZ(e,t,n,r,i,a){function o(J){if(J!==void 0&&typeof J!="function")throw new TypeError("Function expected");return J}for(var c=r.kind,l=c==="getter"?"get":c==="setter"?"set":"value",d=!t&&e?r.static?e:e.prototype:null,p=t||(d?Object.getOwnPropertyDescriptor(d,r.name):{}),y,I=!1,v=n.length-1;v>=0;v--){var F={};for(var k in r)F[k]=k==="access"?{}:r[k];for(var k in r.access)F.access[k]=r.access[k];F.addInitializer=function(J){if(I)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o(J||null))};var K=(0,n[v])(c==="accessor"?{get:p.get,set:p.set}:p[l],F);if(c==="accessor"){if(K===void 0)continue;if(K===null||typeof K!="object")throw new TypeError("Object expected");(y=o(K.get))&&(p.get=y),(y=o(K.set))&&(p.set=y),(y=o(K.init))&&i.unshift(y)}else(y=o(K))&&(c==="field"?i.unshift(y):p[l]=y)}d&&Object.defineProperty(d,r.name,p),I=!0}function aZ(e,t,n){for(var r=arguments.length>2,i=0;i0&&a[a.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function kv(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function eB(){for(var e=[],t=0;t1||c(I,v)})})}function c(I,v){try{l(r[I](v))}catch(F){y(a[0][3],F)}}function l(I){I.value instanceof Ol?Promise.resolve(I.value.v).then(d,p):y(a[0][2],I)}function d(I){c("next",I)}function p(I){c("throw",I)}function y(I,v){I(v),a.shift(),a.length&&c(a[0][0],a[0][1])}}function iB(e){var t,n;return t={},r("next"),r("throw",function(i){throw i}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(i,a){t[i]=e[i]?function(o){return(n=!n)?{value:Ol(e[i](o)),done:!1}:a?a(o):o}:a}}function aB(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof GN=="function"?GN(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(a){n[a]=e[a]&&function(o){return new Promise(function(c,l){o=e[a](o),i(c,l,o.done,o.value)})}}function i(a,o,c,l){Promise.resolve(l).then(function(d){a({value:d,done:c})},o)}}function sB(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function oB(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&$N(t,e,n);return uZ(t,e),t}function uB(e){return e&&e.__esModule?e:{default:e}}function cB(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function lB(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n}function dB(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function fB(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if(typeof r!="function")throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}function pB(e){function t(r){e.error=e.hasError?new cZ(r,e.error,"An error was suppressed during disposal."):r,e.hasError=!0}function n(){for(;e.stack.length;){var r=e.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,function(a){return t(a),n()})}catch(a){t(a)}}if(e.hasError)throw e.error}return n()}var Uv,KN,$N,uZ,cZ,lZ,xv=ku(()=>{"use strict";m();T();N();Uv=function(e,t){return Uv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Uv(e,t)};KN=function(){return KN=Object.assign||function(t){for(var n,r=1,i=arguments.length;rCB,__assign:()=>QN,__asyncDelegator:()=>DB,__asyncGenerator:()=>OB,__asyncValues:()=>bB,__await:()=>Dl,__awaiter:()=>yB,__classPrivateFieldGet:()=>FB,__classPrivateFieldIn:()=>LB,__classPrivateFieldSet:()=>wB,__createBinding:()=>JN,__decorate:()=>TB,__disposeResources:()=>BB,__esDecorate:()=>dZ,__exportStar:()=>gB,__extends:()=>mB,__generator:()=>IB,__importDefault:()=>PB,__importStar:()=>RB,__makeTemplateObject:()=>AB,__metadata:()=>hB,__param:()=>EB,__propKey:()=>pZ,__read:()=>Vv,__rest:()=>NB,__runInitializers:()=>fZ,__setFunctionName:()=>mZ,__spread:()=>_B,__spreadArray:()=>SB,__spreadArrays:()=>vB,__values:()=>YN,default:()=>EZ});function mB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");qv(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function NB(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function EB(e,t){return function(n,r){t(n,r,e)}}function dZ(e,t,n,r,i,a){function o(J){if(J!==void 0&&typeof J!="function")throw new TypeError("Function expected");return J}for(var c=r.kind,l=c==="getter"?"get":c==="setter"?"set":"value",d=!t&&e?r.static?e:e.prototype:null,p=t||(d?Object.getOwnPropertyDescriptor(d,r.name):{}),y,I=!1,v=n.length-1;v>=0;v--){var F={};for(var k in r)F[k]=k==="access"?{}:r[k];for(var k in r.access)F.access[k]=r.access[k];F.addInitializer=function(J){if(I)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o(J||null))};var K=(0,n[v])(c==="accessor"?{get:p.get,set:p.set}:p[l],F);if(c==="accessor"){if(K===void 0)continue;if(K===null||typeof K!="object")throw new TypeError("Object expected");(y=o(K.get))&&(p.get=y),(y=o(K.set))&&(p.set=y),(y=o(K.init))&&i.unshift(y)}else(y=o(K))&&(c==="field"?i.unshift(y):p[l]=y)}d&&Object.defineProperty(d,r.name,p),I=!0}function fZ(e,t,n){for(var r=arguments.length>2,i=0;i0&&a[a.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Vv(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function _B(){for(var e=[],t=0;t1||c(I,v)})})}function c(I,v){try{l(r[I](v))}catch(F){y(a[0][3],F)}}function l(I){I.value instanceof Dl?Promise.resolve(I.value.v).then(d,p):y(a[0][2],I)}function d(I){c("next",I)}function p(I){c("throw",I)}function y(I,v){I(v),a.shift(),a.length&&c(a[0][0],a[0][1])}}function DB(e){var t,n;return t={},r("next"),r("throw",function(i){throw i}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(i,a){t[i]=e[i]?function(o){return(n=!n)?{value:Dl(e[i](o)),done:!1}:a?a(o):o}:a}}function bB(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof YN=="function"?YN(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(a){n[a]=e[a]&&function(o){return new Promise(function(c,l){o=e[a](o),i(c,l,o.done,o.value)})}}function i(a,o,c,l){Promise.resolve(l).then(function(d){a({value:d,done:c})},o)}}function AB(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function RB(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&JN(t,e,n);return NZ(t,e),t}function PB(e){return e&&e.__esModule?e:{default:e}}function FB(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function wB(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n}function LB(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function CB(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if(typeof r!="function")throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}function BB(e){function t(r){e.error=e.hasError?new TZ(r,e.error,"An error was suppressed during disposal."):r,e.hasError=!0}function n(){for(;e.stack.length;){var r=e.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,function(a){return t(a),n()})}catch(a){t(a)}}if(e.hasError)throw e.error}return n()}var qv,QN,JN,NZ,TZ,EZ,kB=ku(()=>{"use strict";m();T();N();qv=function(e,t){return qv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},qv(e,t)};QN=function(){return QN=Object.assign||function(t){for(var n,r=1,i=arguments.length;r{"use strict";m();T();N()});var bf=w(lr=>{"use strict";m();T();N();Object.defineProperty(lr,"__esModule",{value:!0});lr.assertSome=lr.isSome=lr.compareNodes=lr.nodeToString=lr.compareStrings=lr.isValidPath=lr.isDocumentString=lr.asArray=void 0;var hZ=De(),yZ=e=>Array.isArray(e)?e:e?[e]:[];lr.asArray=yZ;var IZ=/\.[a-z0-9]+$/i;function gZ(e){if(typeof e!="string"||IZ.test(e))return!1;try{return(0,hZ.parse)(e),!0}catch(t){}return!1}lr.isDocumentString=gZ;var _Z=/[‘“!%^<>`]/;function vZ(e){return typeof e=="string"&&!_Z.test(e)}lr.isValidPath=vZ;function xB(e,t){return String(e)String(t)?1:0}lr.compareStrings=xB;function jv(e){var n,r;let t;return"alias"in e&&(t=(n=e.alias)==null?void 0:n.value),t==null&&"name"in e&&(t=(r=e.name)==null?void 0:r.value),t==null&&(t=e.kind),t}lr.nodeToString=jv;function SZ(e,t,n){let r=jv(e),i=jv(t);return typeof n=="function"?n(r,i):xB(r,i)}lr.compareNodes=SZ;function OZ(e){return e!=null}lr.isSome=OZ;function DZ(e,t="Value should be something"){if(e==null)throw new Error(t)}lr.assertSome=DZ});var Af=w(zN=>{"use strict";m();T();N();Object.defineProperty(zN,"__esModule",{value:!0});zN.inspect=void 0;var jB=3;function bZ(e){return HN(e,[])}zN.inspect=bZ;function HN(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return AZ(e,t);default:return String(e)}}function qB(e){return(e.name="GraphQLError")?e.toString():`${e.name}: ${e.message}; +`))}return Q(x({},e),{value:t,block:!0})}function PC(e){return e.arguments?e.arguments.sort((n,r)=>n.name.value.localeCompare(r.name.value)):e.arguments}function UN(e){let t=e.selections;return Q(x({},e),{selections:t.sort((n,r)=>{var a,o,c,l;return Sn.NAME in n?Sn.NAME in r?n.name.value.localeCompare(r.name.value):-1:Sn.NAME in r?1:((o=(a=n.typeCondition)==null?void 0:a.name.value)!=null?o:"").localeCompare((l=(c=r.typeCondition)==null?void 0:c.name.value)!=null?l:"")}).map(n=>{switch(n.kind){case xt.Kind.FIELD:return Q(x({},n),{arguments:PC(n),selectionSet:n.selectionSet?UN(n.selectionSet):n.selectionSet});case xt.Kind.FRAGMENT_SPREAD:return n;case xt.Kind.INLINE_FRAGMENT:return Q(x({},n),{selectionSet:UN(n.selectionSet)})}})})}function w9(e){return Q(x({},e),{definitions:e.definitions.map(t=>t.kind!==xt.Kind.OPERATION_DEFINITION?t:Q(x({},t),{selectionSet:UN(t.selectionSet)}))})}function FC(e,t=!0){return(0,xt.parse)(e,{noLocation:t})}function L9(e,t=!0){try{return{documentNode:FC(e,t)}}catch(n){return{error:n}}}});var CC=w(Il=>{"use strict";m();T();N();Object.defineProperty(Il,"__esModule",{value:!0});Il.AccumulatorMap=void 0;Il.mapValue=yl;Il.extendSchemaImpl=C9;var Ue=De(),vs=class extends Map{get[Symbol.toStringTag](){return"AccumulatorMap"}add(t,n){let r=this.get(t);r===void 0?this.set(t,[n]):r.push(n)}};Il.AccumulatorMap=vs;function yl(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}function C9(e,t,n){var be,ve,Ce,vt;let r=[],i=new vs,a=new vs,o=new vs,c=new vs,l=new vs,d=new vs,p=[],y,I=[],v=!1;for(let Y of t.definitions){switch(Y.kind){case Ue.Kind.SCHEMA_DEFINITION:y=Y;break;case Ue.Kind.SCHEMA_EXTENSION:I.push(Y);break;case Ue.Kind.DIRECTIVE_DEFINITION:p.push(Y);break;case Ue.Kind.SCALAR_TYPE_DEFINITION:case Ue.Kind.OBJECT_TYPE_DEFINITION:case Ue.Kind.INTERFACE_TYPE_DEFINITION:case Ue.Kind.UNION_TYPE_DEFINITION:case Ue.Kind.ENUM_TYPE_DEFINITION:case Ue.Kind.INPUT_OBJECT_TYPE_DEFINITION:r.push(Y);break;case Ue.Kind.SCALAR_TYPE_EXTENSION:i.add(Y.name.value,Y);break;case Ue.Kind.OBJECT_TYPE_EXTENSION:a.add(Y.name.value,Y);break;case Ue.Kind.INTERFACE_TYPE_EXTENSION:o.add(Y.name.value,Y);break;case Ue.Kind.UNION_TYPE_EXTENSION:c.add(Y.name.value,Y);break;case Ue.Kind.ENUM_TYPE_EXTENSION:l.add(Y.name.value,Y);break;case Ue.Kind.INPUT_OBJECT_TYPE_EXTENSION:d.add(Y.name.value,Y);break;default:continue}v=!0}if(!v)return e;let F=new Map;for(let Y of e.types){let oe=ie(Y);oe&&F.set(Y.name,oe)}for(let Y of r){let oe=Y.name.value;F.set(oe,(be=wC.get(oe))!=null?be:ue(Y))}for(let[Y,oe]of a)F.set(Y,new Ue.GraphQLObjectType({name:Y,interfaces:()=>zt(oe),fields:()=>mn(oe),extensionASTNodes:oe}));if(n!=null&&n.addInvalidExtensionOrphans){for(let[Y,oe]of o)F.set(Y,new Ue.GraphQLInterfaceType({name:Y,interfaces:()=>zt(oe),fields:()=>mn(oe),extensionASTNodes:oe}));for(let[Y,oe]of l)F.set(Y,new Ue.GraphQLEnumType({name:Y,values:kn(oe),extensionASTNodes:oe}));for(let[Y,oe]of c)F.set(Y,new Ue.GraphQLUnionType({name:Y,types:()=>Rn(oe),extensionASTNodes:oe}));for(let[Y,oe]of i)F.set(Y,new Ue.GraphQLScalarType({name:Y,extensionASTNodes:oe}));for(let[Y,oe]of d)F.set(Y,new Ue.GraphQLInputObjectType({name:Y,fields:()=>Fr(oe),extensionASTNodes:oe}))}let k=x(x({query:e.query&&J(e.query),mutation:e.mutation&&J(e.mutation),subscription:e.subscription&&J(e.subscription)},y&&en([y])),en(I));return Q(x({description:(Ce=(ve=y==null?void 0:y.description)==null?void 0:ve.value)!=null?Ce:e.description},k),{types:Array.from(F.values()),directives:[...e.directives.map(se),...p.map(Qt)],extensions:e.extensions,astNode:y!=null?y:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(I),assumeValid:(vt=n==null?void 0:n.assumeValid)!=null?vt:!1});function K(Y){return(0,Ue.isListType)(Y)?new Ue.GraphQLList(K(Y.ofType)):(0,Ue.isNonNullType)(Y)?new Ue.GraphQLNonNull(K(Y.ofType)):J(Y)}function J(Y){return F.get(Y.name)}function se(Y){if((0,Ue.isSpecifiedDirective)(Y))return Y;let oe=Y.toConfig();return new Ue.GraphQLDirective(Q(x({},oe),{args:yl(oe.args,_t)}))}function ie(Y){if((0,Ue.isIntrospectionType)(Y)||(0,Ue.isSpecifiedScalarType)(Y))return Y;if((0,Ue.isScalarType)(Y))return Re(Y);if((0,Ue.isObjectType)(Y))return xe(Y);if((0,Ue.isInterfaceType)(Y))return tt(Y);if((0,Ue.isUnionType)(Y))return ee(Y);if((0,Ue.isEnumType)(Y))return de(Y);if((0,Ue.isInputObjectType)(Y))return Te(Y)}function Te(Y){var Ye;let oe=Y.toConfig(),qe=(Ye=d.get(oe.name))!=null?Ye:[];return new Ue.GraphQLInputObjectType(Q(x({},oe),{fields:()=>x(x({},yl(oe.fields,Ut=>Q(x({},Ut),{type:K(Ut.type)}))),Fr(qe)),extensionASTNodes:oe.extensionASTNodes.concat(qe)}))}function de(Y){var Ye;let oe=Y.toConfig(),qe=(Ye=l.get(Y.name))!=null?Ye:[];return new Ue.GraphQLEnumType(Q(x({},oe),{values:x(x({},oe.values),kn(qe)),extensionASTNodes:oe.extensionASTNodes.concat(qe)}))}function Re(Y){var Ut,nt;let oe=Y.toConfig(),qe=(Ut=i.get(oe.name))!=null?Ut:[],Ye=oe.specifiedByURL;for(let Rt of qe)Ye=(nt=LC(Rt))!=null?nt:Ye;return new Ue.GraphQLScalarType(Q(x({},oe),{specifiedByURL:Ye,extensionASTNodes:oe.extensionASTNodes.concat(qe)}))}function xe(Y){var Ye;let oe=Y.toConfig(),qe=(Ye=a.get(oe.name))!=null?Ye:[];return new Ue.GraphQLObjectType(Q(x({},oe),{interfaces:()=>[...Y.getInterfaces().map(J),...zt(qe)],fields:()=>x(x({},yl(oe.fields,Se)),mn(qe)),extensionASTNodes:oe.extensionASTNodes.concat(qe)}))}function tt(Y){var Ye;let oe=Y.toConfig(),qe=(Ye=o.get(oe.name))!=null?Ye:[];return new Ue.GraphQLInterfaceType(Q(x({},oe),{interfaces:()=>[...Y.getInterfaces().map(J),...zt(qe)],fields:()=>x(x({},yl(oe.fields,Se)),mn(qe)),extensionASTNodes:oe.extensionASTNodes.concat(qe)}))}function ee(Y){var Ye;let oe=Y.toConfig(),qe=(Ye=c.get(oe.name))!=null?Ye:[];return new Ue.GraphQLUnionType(Q(x({},oe),{types:()=>[...Y.getTypes().map(J),...Rn(qe)],extensionASTNodes:oe.extensionASTNodes.concat(qe)}))}function Se(Y){return Q(x({},Y),{type:K(Y.type),args:Y.args&&yl(Y.args,_t)})}function _t(Y){return Q(x({},Y),{type:K(Y.type)})}function en(Y){var qe;let oe={};for(let Ye of Y){let Ut=(qe=Ye.operationTypes)!=null?qe:[];for(let nt of Ut)oe[nt.operation]=tn(nt.type)}return oe}function tn(Y){var Ye;let oe=Y.name.value,qe=(Ye=wC.get(oe))!=null?Ye:F.get(oe);if(qe===void 0)throw new Error(`Unknown type: "${oe}".`);return qe}function An(Y){return Y.kind===Ue.Kind.LIST_TYPE?new Ue.GraphQLList(An(Y.type)):Y.kind===Ue.Kind.NON_NULL_TYPE?new Ue.GraphQLNonNull(An(Y.type)):tn(Y)}function Qt(Y){var oe;return new Ue.GraphQLDirective({name:Y.name.value,description:(oe=Y.description)==null?void 0:oe.value,locations:Y.locations.map(({value:qe})=>qe),isRepeatable:Y.repeatable,args:Pr(Y.arguments),astNode:Y})}function mn(Y){var qe,Ye;let oe=Object.create(null);for(let Ut of Y){let nt=(qe=Ut.fields)!=null?qe:[];for(let Rt of nt)oe[Rt.name.value]={type:An(Rt.type),description:(Ye=Rt.description)==null?void 0:Ye.value,args:Pr(Rt.arguments),deprecationReason:MN(Rt),astNode:Rt}}return oe}function Pr(Y){var Ye;let oe=Y!=null?Y:[],qe=Object.create(null);for(let Ut of oe){let nt=An(Ut.type);qe[Ut.name.value]={type:nt,description:(Ye=Ut.description)==null?void 0:Ye.value,defaultValue:(0,Ue.valueFromAST)(Ut.defaultValue,nt),deprecationReason:MN(Ut),astNode:Ut}}return qe}function Fr(Y){var qe,Ye;let oe=Object.create(null);for(let Ut of Y){let nt=(qe=Ut.fields)!=null?qe:[];for(let Rt of nt){let ns=An(Rt.type);oe[Rt.name.value]={type:ns,description:(Ye=Rt.description)==null?void 0:Ye.value,defaultValue:(0,Ue.valueFromAST)(Rt.defaultValue,ns),deprecationReason:MN(Rt),astNode:Rt}}}return oe}function kn(Y){var qe,Ye;let oe=Object.create(null);for(let Ut of Y){let nt=(qe=Ut.values)!=null?qe:[];for(let Rt of nt)oe[Rt.name.value]={description:(Ye=Rt.description)==null?void 0:Ye.value,deprecationReason:MN(Rt),astNode:Rt}}return oe}function zt(Y){return Y.flatMap(oe=>{var qe,Ye;return(Ye=(qe=oe.interfaces)==null?void 0:qe.map(tn))!=null?Ye:[]})}function Rn(Y){return Y.flatMap(oe=>{var qe,Ye;return(Ye=(qe=oe.types)==null?void 0:qe.map(tn))!=null?Ye:[]})}function ue(Y){var qe,Ye,Ut,nt,Rt,ns,Vr,rs,xc,ga,mr,ri;let oe=Y.name.value;switch(Y.kind){case Ue.Kind.OBJECT_TYPE_DEFINITION:{let Vt=(qe=a.get(oe))!=null?qe:[],Nr=[Y,...Vt];return a.delete(oe),new Ue.GraphQLObjectType({name:oe,description:(Ye=Y.description)==null?void 0:Ye.value,interfaces:()=>zt(Nr),fields:()=>mn(Nr),astNode:Y,extensionASTNodes:Vt})}case Ue.Kind.INTERFACE_TYPE_DEFINITION:{let Vt=(Ut=o.get(oe))!=null?Ut:[],Nr=[Y,...Vt];return o.delete(oe),new Ue.GraphQLInterfaceType({name:oe,description:(nt=Y.description)==null?void 0:nt.value,interfaces:()=>zt(Nr),fields:()=>mn(Nr),astNode:Y,extensionASTNodes:Vt})}case Ue.Kind.ENUM_TYPE_DEFINITION:{let Vt=(Rt=l.get(oe))!=null?Rt:[],Nr=[Y,...Vt];return l.delete(oe),new Ue.GraphQLEnumType({name:oe,description:(ns=Y.description)==null?void 0:ns.value,values:kn(Nr),astNode:Y,extensionASTNodes:Vt})}case Ue.Kind.UNION_TYPE_DEFINITION:{let Vt=(Vr=c.get(oe))!=null?Vr:[],Nr=[Y,...Vt];return c.delete(oe),new Ue.GraphQLUnionType({name:oe,description:(rs=Y.description)==null?void 0:rs.value,types:()=>Rn(Nr),astNode:Y,extensionASTNodes:Vt})}case Ue.Kind.SCALAR_TYPE_DEFINITION:{let Vt=(xc=i.get(oe))!=null?xc:[];return i.delete(oe),new Ue.GraphQLScalarType({name:oe,description:(ga=Y.description)==null?void 0:ga.value,specifiedByURL:LC(Y),astNode:Y,extensionASTNodes:Vt})}case Ue.Kind.INPUT_OBJECT_TYPE_DEFINITION:{let Vt=(mr=d.get(oe))!=null?mr:[],Nr=[Y,...Vt];return d.delete(oe),new Ue.GraphQLInputObjectType({name:oe,description:(ri=Y.description)==null?void 0:ri.value,fields:()=>Fr(Nr),astNode:Y,extensionASTNodes:Vt})}}}}var wC=new Map([...Ue.specifiedScalarTypes,...Ue.introspectionTypes].map(e=>[e.name,e]));function MN(e){let t=(0,Ue.getDirectiveValues)(Ue.GraphQLDeprecatedDirective,e);return t==null?void 0:t.reason}function LC(e){let t=(0,Ue.getDirectiveValues)(Ue.GraphQLSpecifiedByDirective,e);return t==null?void 0:t.url}});var bv=w(Dv=>{"use strict";m();T();N();Object.defineProperty(Dv,"__esModule",{value:!0});Dv.buildASTSchema=k9;var BC=De(),B9=Tl(),U9=CC();function k9(e,t){(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,B9.assertValidSDL)(e);let n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},r=(0,U9.extendSchemaImpl)(n,e,t);if(r.astNode==null)for(let a of r.types)switch(a.name){case"Query":r.query=a;break;case"Mutation":r.mutation=a;break;case"Subscription":r.subscription=a;break}let i=[...r.directives,...BC.specifiedDirectives.filter(a=>r.directives.every(o=>o.name!==a.name))];return new BC.GraphQLSchema(Q(x({},r),{directives:i}))}});var gl=w(lu=>{"use strict";m();T();N();Object.defineProperty(lu,"__esModule",{value:!0});lu.MAX_INT32=lu.MAX_SUBSCRIPTION_FILTER_DEPTH=lu.MAXIMUM_TYPE_NESTING=void 0;lu.MAXIMUM_TYPE_NESTING=30;lu.MAX_SUBSCRIPTION_FILTER_DEPTH=5;lu.MAX_INT32=un(2,31)-1});var Sr=w(cr=>{"use strict";m();T();N();Object.defineProperty(cr,"__esModule",{value:!0});cr.getOrThrowError=x9;cr.getEntriesNotInHashSet=q9;cr.numberToOrdinal=V9;cr.addIterableValuesToSet=j9;cr.addSets=K9;cr.kindToNodeType=G9;cr.getValueOrDefault=$9;cr.add=Q9;cr.generateSimpleDirective=Y9;cr.generateRequiresScopesDirective=J9;cr.generateSemanticNonNullDirective=H9;cr.copyObjectValueMap=z9;cr.addNewObjectValueMapEntries=W9;cr.copyArrayValueMap=X9;cr.addMapEntries=Z9;cr.getFirstEntry=e7;var Kt=De(),ur=vr(),M9=Mi(),Of=Hr();function x9(e,t,n){let r=e.get(t);if(r===void 0)throw(0,M9.invalidKeyFatalError)(t,n);return r}function q9(e,t){let n=[];for(let r of e)t.has(r)||n.push(r);return n}function V9(e){let t=e.toString();switch(t[t.length-1]){case"1":return`${t}st`;case"2":return`${t}nd`;case"3":return`${t}rd`;default:return`${t}th`}}function j9(e,t){for(let n of e)t.add(n)}function K9(e,t){let n=new Set(e);for(let r of t)n.add(r);return n}function G9(e){switch(e){case Kt.Kind.BOOLEAN:return ur.BOOLEAN_SCALAR;case Kt.Kind.ENUM:case Kt.Kind.ENUM_TYPE_DEFINITION:return ur.ENUM;case Kt.Kind.ENUM_TYPE_EXTENSION:return"Enum extension";case Kt.Kind.ENUM_VALUE_DEFINITION:return ur.ENUM_VALUE;case Kt.Kind.FIELD_DEFINITION:return ur.FIELD;case Kt.Kind.FLOAT:return ur.FLOAT_SCALAR;case Kt.Kind.INPUT_OBJECT_TYPE_DEFINITION:return ur.INPUT_OBJECT;case Kt.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"Input Object extension";case Kt.Kind.INPUT_VALUE_DEFINITION:return ur.INPUT_VALUE;case Kt.Kind.INT:return ur.INT_SCALAR;case Kt.Kind.INTERFACE_TYPE_DEFINITION:return ur.INTERFACE;case Kt.Kind.INTERFACE_TYPE_EXTENSION:return"Interface extension";case Kt.Kind.NULL:return ur.NULL;case Kt.Kind.OBJECT:case Kt.Kind.OBJECT_TYPE_DEFINITION:return ur.OBJECT;case Kt.Kind.OBJECT_TYPE_EXTENSION:return"Object extension";case Kt.Kind.STRING:return ur.STRING_SCALAR;case Kt.Kind.SCALAR_TYPE_DEFINITION:return ur.SCALAR;case Kt.Kind.SCALAR_TYPE_EXTENSION:return"Scalar extension";case Kt.Kind.UNION_TYPE_DEFINITION:return ur.UNION;case Kt.Kind.UNION_TYPE_EXTENSION:return"Union extension";default:return e}}function $9(e,t,n){let r=e.get(t);if(r)return r;let i=n();return e.set(t,i),i}function Q9(e,t){return e.has(t)?!1:(e.add(t),!0)}function Y9(e){return{kind:Kt.Kind.DIRECTIVE,name:(0,Of.stringToNameNode)(e)}}function J9(e){let t=[];for(let n of e){let r=[];for(let i of n)r.push({kind:Kt.Kind.STRING,value:i});t.push({kind:Kt.Kind.LIST,values:r})}return{kind:Kt.Kind.DIRECTIVE,name:(0,Of.stringToNameNode)(ur.REQUIRES_SCOPES),arguments:[{kind:Kt.Kind.ARGUMENT,name:(0,Of.stringToNameNode)(ur.SCOPES),value:{kind:Kt.Kind.LIST,values:t}}]}}function H9(e){let t=Array.from(e).sort((r,i)=>r-i),n=new Array;for(let r of t)n.push({kind:Kt.Kind.INT,value:r.toString()});return{kind:Kt.Kind.DIRECTIVE,name:(0,Of.stringToNameNode)(ur.SEMANTIC_NON_NULL),arguments:[{kind:Kt.Kind.ARGUMENT,name:(0,Of.stringToNameNode)(ur.LEVELS),value:{kind:Kt.Kind.LIST,values:n}}]}}function z9(e){let t=new Map;for(let[n,r]of e)t.set(n,x({},r));return t}function W9(e,t){for(let[n,r]of e)t.set(n,x({},r))}function X9(e){let t=new Map;for(let[n,r]of e)t.set(n,[...r]);return t}function Z9(e,t){for(let[n,r]of e)t.set(n,r)}function e7(e){let{value:t,done:n}=e.values().next();if(!n)return t}});var Df=w(xN=>{"use strict";m();T();N();Object.defineProperty(xN,"__esModule",{value:!0});xN.ExtensionType=void 0;var UC;(function(e){e[e.EXTENDS=0]="EXTENDS",e[e.NONE=1]="NONE",e[e.REAL=2]="REAL"})(UC||(xN.ExtensionType=UC={}))});var du=w(Dr=>{"use strict";m();T();N();Object.defineProperty(Dr,"__esModule",{value:!0});Dr.getMutableDirectiveDefinitionNode=n7;Dr.getMutableEnumNode=r7;Dr.getMutableEnumValueNode=i7;Dr.getMutableFieldNode=a7;Dr.getMutableInputObjectNode=s7;Dr.getMutableInputValueNode=o7;Dr.getMutableInterfaceNode=u7;Dr.getMutableObjectNode=c7;Dr.getMutableObjectExtensionNode=l7;Dr.getMutableScalarNode=d7;Dr.getMutableTypeNode=Av;Dr.getMutableUnionNode=f7;Dr.getTypeNodeNamedTypeName=Rv;Dr.getNamedTypeNode=MC;var Or=De(),_l=Hr(),kC=Mi(),t7=gl();function n7(e){return{arguments:[],kind:e.kind,locations:[],name:x({},e.name),repeatable:e.repeatable,description:(0,_l.formatDescription)(e.description)}}function r7(e){return{kind:Or.Kind.ENUM_TYPE_DEFINITION,name:x({},e)}}function i7(e){return{directives:[],kind:e.kind,name:x({},e.name),description:(0,_l.formatDescription)(e.description)}}function a7(e,t,n){return{arguments:[],directives:[],kind:e.kind,name:x({},e.name),type:Av(e.type,t,n),description:(0,_l.formatDescription)(e.description)}}function s7(e){return{kind:Or.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:x({},e)}}function o7(e,t,n){return{directives:[],kind:e.kind,name:x({},e.name),type:Av(e.type,t,n),defaultValue:e.defaultValue,description:(0,_l.formatDescription)(e.description)}}function u7(e){return{kind:Or.Kind.INTERFACE_TYPE_DEFINITION,name:x({},e)}}function c7(e){return{kind:Or.Kind.OBJECT_TYPE_DEFINITION,name:x({},e)}}function l7(e){let t=e.kind===Or.Kind.OBJECT_TYPE_DEFINITION?e.description:void 0;return{kind:Or.Kind.OBJECT_TYPE_EXTENSION,name:x({},e.name),description:(0,_l.formatDescription)(t)}}function d7(e){return{kind:Or.Kind.SCALAR_TYPE_DEFINITION,name:x({},e)}}function Av(e,t,n){let r={kind:e.kind},i=r;for(let a=0;a{"use strict";m();T();N();Object.defineProperty(qN,"__esModule",{value:!0});qN.DEFAULT_CONSUMER_INACTIVE_THRESHOLD=void 0;qN.DEFAULT_CONSUMER_INACTIVE_THRESHOLD=30});var Ss=w(X=>{"use strict";m();T();N();Object.defineProperty(X,"__esModule",{value:!0});X.MAX_OR_SCOPES=X.EDFS_ARGS_REGEXP=X.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION=X.CONFIGURE_DESCRIPTION_DEFINITION=X.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION=X.SCOPE_SCALAR_DEFINITION=X.FIELD_SET_SCALAR_DEFINITION=X.VERSION_TWO_DIRECTIVE_DEFINITIONS=X.EVENT_DRIVEN_DIRECTIVE_DEFINITIONS_BY_DIRECTIVE_NAME=X.BASE_DIRECTIVE_DEFINITIONS=X.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=X.SUBSCRIPTION_FIELD_CONDITION_DEFINITION=X.SUBSCRIPTION_FILTER_VALUE_DEFINITION=X.SUBSCRIPTION_FILTER_CONDITION_DEFINITION=X.SUBSCRIPTION_FILTER_DEFINITION=X.SHAREABLE_DEFINITION=X.SEMANTIC_NON_NULL_DEFINITION=X.REQUIRES_SCOPES_DEFINITION=X.REQUIRE_FETCH_REASONS_DEFINITION=X.OVERRIDE_DEFINITION=X.ONE_OF_DEFINITION=X.LINK_DEFINITION=X.LINK_PURPOSE_DEFINITION=X.LINK_IMPORT_DEFINITION=X.INTERFACE_OBJECT_DEFINITION=X.INACCESSIBLE_DEFINITION=X.COMPOSE_DIRECTIVE_DEFINITION=X.AUTHENTICATED_DEFINITION=X.ALL_IN_BUILT_DIRECTIVE_NAMES=X.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=X.EDFS_REDIS_SUBSCRIBE_DEFINITION=X.EDFS_REDIS_PUBLISH_DEFINITION=X.TAG_DEFINITION=X.SPECIFIED_BY_DEFINITION=X.REQUIRES_DEFINITION=X.PROVIDES_DEFINITION=X.KEY_DEFINITION=X.REQUIRED_FIELDSET_TYPE_NODE=X.EDFS_NATS_SUBSCRIBE_DEFINITION=X.EDFS_NATS_REQUEST_DEFINITION=X.EDFS_NATS_PUBLISH_DEFINITION=X.EDFS_KAFKA_SUBSCRIBE_DEFINITION=X.EDFS_KAFKA_PUBLISH_DEFINITION=X.EXTERNAL_DEFINITION=X.EXTENDS_DEFINITION=X.DEPRECATED_DEFINITION=X.BASE_SCALARS=X.REQUIRED_STRING_TYPE_NODE=void 0;var ae=De(),re=Hr(),p7=Pv(),U=vr();X.REQUIRED_STRING_TYPE_NODE={kind:ae.Kind.NON_NULL_TYPE,type:(0,re.stringToNamedTypeNode)(U.STRING_SCALAR)};X.BASE_SCALARS=new Set(["_Any","_Entities",U.BOOLEAN_SCALAR,U.FLOAT_SCALAR,U.ID_SCALAR,U.INT_SCALAR,U.FIELD_SET_SCALAR,U.SCOPE_SCALAR,U.STRING_SCALAR]);X.DEPRECATED_DEFINITION={arguments:[{directives:[],kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.REASON),type:(0,re.stringToNamedTypeNode)(U.STRING_SCALAR),defaultValue:{kind:ae.Kind.STRING,value:ae.DEFAULT_DEPRECATION_REASON}}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:(0,re.stringArrayToNameNodeArray)([U.ARGUMENT_DEFINITION_UPPER,U.ENUM_VALUE_UPPER,U.FIELD_DEFINITION_UPPER,U.INPUT_FIELD_DEFINITION_UPPER]),name:(0,re.stringToNameNode)(U.DEPRECATED),repeatable:!1};X.EXTENDS_DEFINITION={kind:ae.Kind.DIRECTIVE_DEFINITION,locations:(0,re.stringArrayToNameNodeArray)([U.INTERFACE_UPPER,U.OBJECT_UPPER]),name:(0,re.stringToNameNode)(U.EXTENDS),repeatable:!1};X.EXTERNAL_DEFINITION={kind:ae.Kind.DIRECTIVE_DEFINITION,locations:(0,re.stringArrayToNameNodeArray)([U.FIELD_DEFINITION_UPPER,U.OBJECT_UPPER]),name:(0,re.stringToNameNode)(U.EXTERNAL),repeatable:!1};X.EDFS_KAFKA_PUBLISH_DEFINITION={arguments:[{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.TOPIC),type:X.REQUIRED_STRING_TYPE_NODE},{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.PROVIDER_ID),type:X.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ae.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:[(0,re.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,re.stringToNameNode)(U.EDFS_KAFKA_PUBLISH),repeatable:!1};X.EDFS_KAFKA_SUBSCRIBE_DEFINITION={arguments:[{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.TOPICS),type:{kind:ae.Kind.NON_NULL_TYPE,type:{kind:ae.Kind.LIST_TYPE,type:X.REQUIRED_STRING_TYPE_NODE}}},{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.PROVIDER_ID),type:X.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ae.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:[(0,re.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,re.stringToNameNode)(U.EDFS_KAFKA_SUBSCRIBE),repeatable:!1};X.EDFS_NATS_PUBLISH_DEFINITION={arguments:[{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.SUBJECT),type:X.REQUIRED_STRING_TYPE_NODE},{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.PROVIDER_ID),type:{kind:ae.Kind.NON_NULL_TYPE,type:(0,re.stringToNamedTypeNode)(U.STRING_SCALAR)},defaultValue:{kind:ae.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:[(0,re.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,re.stringToNameNode)(U.EDFS_NATS_PUBLISH),repeatable:!1};X.EDFS_NATS_REQUEST_DEFINITION={arguments:[{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.SUBJECT),type:{kind:ae.Kind.NON_NULL_TYPE,type:(0,re.stringToNamedTypeNode)(U.STRING_SCALAR)}},{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.PROVIDER_ID),type:{kind:ae.Kind.NON_NULL_TYPE,type:(0,re.stringToNamedTypeNode)(U.STRING_SCALAR)},defaultValue:{kind:ae.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:[(0,re.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,re.stringToNameNode)(U.EDFS_NATS_REQUEST),repeatable:!1};X.EDFS_NATS_SUBSCRIBE_DEFINITION={arguments:[{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.SUBJECTS),type:{kind:ae.Kind.NON_NULL_TYPE,type:{kind:ae.Kind.LIST_TYPE,type:X.REQUIRED_STRING_TYPE_NODE}}},{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.PROVIDER_ID),type:X.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ae.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}},{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.STREAM_CONFIGURATION),type:(0,re.stringToNamedTypeNode)(U.EDFS_NATS_STREAM_CONFIGURATION)}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:[(0,re.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,re.stringToNameNode)(U.EDFS_NATS_SUBSCRIBE),repeatable:!1};X.REQUIRED_FIELDSET_TYPE_NODE={kind:ae.Kind.NON_NULL_TYPE,type:(0,re.stringToNamedTypeNode)(U.FIELD_SET_SCALAR)};X.KEY_DEFINITION={arguments:[{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.FIELDS),type:X.REQUIRED_FIELDSET_TYPE_NODE},{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.RESOLVABLE),type:(0,re.stringToNamedTypeNode)(U.BOOLEAN_SCALAR),defaultValue:{kind:ae.Kind.BOOLEAN,value:!0}}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:(0,re.stringArrayToNameNodeArray)([U.INTERFACE_UPPER,U.OBJECT_UPPER]),name:(0,re.stringToNameNode)(U.KEY),repeatable:!0};X.PROVIDES_DEFINITION={arguments:[{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.FIELDS),type:X.REQUIRED_FIELDSET_TYPE_NODE}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:[(0,re.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,re.stringToNameNode)(U.PROVIDES),repeatable:!1};X.REQUIRES_DEFINITION={arguments:[{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.FIELDS),type:{kind:ae.Kind.NON_NULL_TYPE,type:(0,re.stringToNamedTypeNode)(U.FIELD_SET_SCALAR)}}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:[(0,re.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,re.stringToNameNode)(U.REQUIRES),repeatable:!1};X.SPECIFIED_BY_DEFINITION={arguments:[{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.URL_LOWER),type:X.REQUIRED_STRING_TYPE_NODE}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:(0,re.stringArrayToNameNodeArray)([U.SCALAR_UPPER]),name:(0,re.stringToNameNode)(U.SPECIFIED_BY),repeatable:!1};X.TAG_DEFINITION={arguments:[{directives:[],kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.NAME),type:{kind:ae.Kind.NON_NULL_TYPE,type:(0,re.stringToNamedTypeNode)(U.STRING_SCALAR)}}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:(0,re.stringArrayToNameNodeArray)([U.ARGUMENT_DEFINITION_UPPER,U.ENUM_UPPER,U.ENUM_VALUE_UPPER,U.FIELD_DEFINITION_UPPER,U.INPUT_FIELD_DEFINITION_UPPER,U.INPUT_OBJECT_UPPER,U.INTERFACE_UPPER,U.OBJECT_UPPER,U.SCALAR_UPPER,U.UNION_UPPER]),name:(0,re.stringToNameNode)(U.TAG),repeatable:!0};X.EDFS_REDIS_PUBLISH_DEFINITION={arguments:[{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.CHANNEL),type:X.REQUIRED_STRING_TYPE_NODE},{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.PROVIDER_ID),type:X.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ae.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:[(0,re.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,re.stringToNameNode)(U.EDFS_REDIS_PUBLISH),repeatable:!1};X.EDFS_REDIS_SUBSCRIBE_DEFINITION={arguments:[{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.CHANNELS),type:{kind:ae.Kind.NON_NULL_TYPE,type:{kind:ae.Kind.LIST_TYPE,type:X.REQUIRED_STRING_TYPE_NODE}}},{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.PROVIDER_ID),type:X.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ae.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:[(0,re.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,re.stringToNameNode)(U.EDFS_REDIS_SUBSCRIBE),repeatable:!1};X.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=new Map([[U.DEPRECATED,X.DEPRECATED_DEFINITION],[U.EXTENDS,X.EXTENDS_DEFINITION],[U.EXTERNAL,X.EXTERNAL_DEFINITION],[U.EDFS_KAFKA_PUBLISH,X.EDFS_KAFKA_PUBLISH_DEFINITION],[U.EDFS_KAFKA_SUBSCRIBE,X.EDFS_KAFKA_SUBSCRIBE_DEFINITION],[U.EDFS_NATS_PUBLISH,X.EDFS_NATS_PUBLISH_DEFINITION],[U.EDFS_NATS_REQUEST,X.EDFS_NATS_REQUEST_DEFINITION],[U.EDFS_NATS_SUBSCRIBE,X.EDFS_NATS_SUBSCRIBE_DEFINITION],[U.EDFS_REDIS_PUBLISH,X.EDFS_REDIS_PUBLISH_DEFINITION],[U.EDFS_REDIS_SUBSCRIBE,X.EDFS_REDIS_SUBSCRIBE_DEFINITION],[U.KEY,X.KEY_DEFINITION],[U.PROVIDES,X.PROVIDES_DEFINITION],[U.REQUIRES,X.REQUIRES_DEFINITION],[U.SPECIFIED_BY,X.SPECIFIED_BY_DEFINITION],[U.TAG,X.TAG_DEFINITION]]);X.ALL_IN_BUILT_DIRECTIVE_NAMES=new Set([U.AUTHENTICATED,U.COMPOSE_DIRECTIVE,U.CONFIGURE_DESCRIPTION,U.CONFIGURE_CHILD_DESCRIPTIONS,U.DEPRECATED,U.EDFS_NATS_PUBLISH,U.EDFS_NATS_REQUEST,U.EDFS_NATS_SUBSCRIBE,U.EDFS_KAFKA_PUBLISH,U.EDFS_KAFKA_SUBSCRIBE,U.EDFS_REDIS_PUBLISH,U.EDFS_REDIS_SUBSCRIBE,U.EXTENDS,U.EXTERNAL,U.INACCESSIBLE,U.INTERFACE_OBJECT,U.KEY,U.LINK,U.ONE_OF,U.OVERRIDE,U.PROVIDES,U.REQUIRE_FETCH_REASONS,U.REQUIRES,U.REQUIRES_SCOPES,U.SEMANTIC_NON_NULL,U.SHAREABLE,U.SPECIFIED_BY,U.SUBSCRIPTION_FILTER,U.TAG]);X.AUTHENTICATED_DEFINITION={arguments:[],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:(0,re.stringArrayToNameNodeArray)([U.ENUM_UPPER,U.FIELD_DEFINITION_UPPER,U.INTERFACE_UPPER,U.OBJECT_UPPER,U.SCALAR_UPPER]),name:(0,re.stringToNameNode)(U.AUTHENTICATED),repeatable:!1};X.COMPOSE_DIRECTIVE_DEFINITION={arguments:[{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.NAME),type:X.REQUIRED_STRING_TYPE_NODE}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:(0,re.stringArrayToNameNodeArray)([U.SCHEMA_UPPER]),name:(0,re.stringToNameNode)(U.COMPOSE_DIRECTIVE),repeatable:!0};X.INACCESSIBLE_DEFINITION={arguments:[],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:(0,re.stringArrayToNameNodeArray)([U.ARGUMENT_DEFINITION_UPPER,U.ENUM_UPPER,U.ENUM_VALUE_UPPER,U.FIELD_DEFINITION_UPPER,U.INPUT_FIELD_DEFINITION_UPPER,U.INPUT_OBJECT_UPPER,U.INTERFACE_UPPER,U.OBJECT_UPPER,U.SCALAR_UPPER,U.UNION_UPPER]),name:(0,re.stringToNameNode)(U.INACCESSIBLE),repeatable:!1};X.INTERFACE_OBJECT_DEFINITION={kind:ae.Kind.DIRECTIVE_DEFINITION,locations:(0,re.stringArrayToNameNodeArray)([U.OBJECT_UPPER]),name:(0,re.stringToNameNode)(U.INTERFACE_OBJECT),repeatable:!1};X.LINK_IMPORT_DEFINITION={kind:ae.Kind.SCALAR_TYPE_DEFINITION,name:(0,re.stringToNameNode)(U.LINK_IMPORT)};X.LINK_PURPOSE_DEFINITION={kind:ae.Kind.ENUM_TYPE_DEFINITION,name:(0,re.stringToNameNode)(U.LINK_PURPOSE),values:[{directives:[],kind:ae.Kind.ENUM_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.EXECUTION)},{directives:[],kind:ae.Kind.ENUM_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.SECURITY)}]};X.LINK_DEFINITION={arguments:[{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.URL_LOWER),type:{kind:ae.Kind.NON_NULL_TYPE,type:(0,re.stringToNamedTypeNode)(U.STRING_SCALAR)}},{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.AS),type:(0,re.stringToNamedTypeNode)(U.STRING_SCALAR)},{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.FOR),type:(0,re.stringToNamedTypeNode)(U.LINK_PURPOSE)},{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.IMPORT),type:{kind:ae.Kind.LIST_TYPE,type:(0,re.stringToNamedTypeNode)(U.LINK_IMPORT)}}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:(0,re.stringArrayToNameNodeArray)([U.SCHEMA_UPPER]),name:(0,re.stringToNameNode)(U.LINK),repeatable:!0};X.ONE_OF_DEFINITION={kind:ae.Kind.DIRECTIVE_DEFINITION,locations:(0,re.stringArrayToNameNodeArray)([U.INPUT_OBJECT_UPPER]),name:(0,re.stringToNameNode)(U.ONE_OF),repeatable:!1};X.OVERRIDE_DEFINITION={arguments:[{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.FROM),type:{kind:ae.Kind.NON_NULL_TYPE,type:(0,re.stringToNamedTypeNode)(U.STRING_SCALAR)}}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:(0,re.stringArrayToNameNodeArray)([U.FIELD_DEFINITION_UPPER]),name:(0,re.stringToNameNode)(U.OVERRIDE),repeatable:!1};X.REQUIRE_FETCH_REASONS_DEFINITION={kind:ae.Kind.DIRECTIVE_DEFINITION,locations:(0,re.stringArrayToNameNodeArray)([U.FIELD_DEFINITION_UPPER,U.INTERFACE_UPPER,U.OBJECT_UPPER]),name:(0,re.stringToNameNode)(U.REQUIRE_FETCH_REASONS),repeatable:!0};X.REQUIRES_SCOPES_DEFINITION={arguments:[{directives:[],kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.SCOPES),type:{kind:ae.Kind.NON_NULL_TYPE,type:{kind:ae.Kind.LIST_TYPE,type:{kind:ae.Kind.NON_NULL_TYPE,type:{kind:ae.Kind.LIST_TYPE,type:{kind:ae.Kind.NON_NULL_TYPE,type:(0,re.stringToNamedTypeNode)(U.SCOPE_SCALAR)}}}}}}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:(0,re.stringArrayToNameNodeArray)([U.ENUM_UPPER,U.FIELD_DEFINITION_UPPER,U.INTERFACE_UPPER,U.OBJECT_UPPER,U.SCALAR_UPPER]),name:(0,re.stringToNameNode)(U.REQUIRES_SCOPES),repeatable:!1};X.SEMANTIC_NON_NULL_DEFINITION={arguments:[{directives:[],kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.LEVELS),type:{kind:ae.Kind.NON_NULL_TYPE,type:{kind:ae.Kind.LIST_TYPE,type:{kind:ae.Kind.NON_NULL_TYPE,type:(0,re.stringToNamedTypeNode)(U.INT_SCALAR)}}},defaultValue:{kind:ae.Kind.LIST,values:[{kind:ae.Kind.INT,value:"0"}]}}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:[(0,re.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,re.stringToNameNode)(U.SEMANTIC_NON_NULL),repeatable:!1};X.SHAREABLE_DEFINITION={kind:ae.Kind.DIRECTIVE_DEFINITION,locations:(0,re.stringArrayToNameNodeArray)([U.FIELD_DEFINITION_UPPER,U.OBJECT_UPPER]),name:(0,re.stringToNameNode)(U.SHAREABLE),repeatable:!0};X.SUBSCRIPTION_FILTER_DEFINITION={arguments:[{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.CONDITION),type:{kind:ae.Kind.NON_NULL_TYPE,type:(0,re.stringToNamedTypeNode)(U.SUBSCRIPTION_FILTER_CONDITION)}}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:(0,re.stringArrayToNameNodeArray)([U.FIELD_DEFINITION_UPPER]),name:(0,re.stringToNameNode)(U.SUBSCRIPTION_FILTER),repeatable:!1};X.SUBSCRIPTION_FILTER_CONDITION_DEFINITION={fields:[{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.AND_UPPER),type:{kind:ae.Kind.LIST_TYPE,type:{kind:ae.Kind.NON_NULL_TYPE,type:(0,re.stringToNamedTypeNode)(U.SUBSCRIPTION_FILTER_CONDITION)}}},{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.IN_UPPER),type:(0,re.stringToNamedTypeNode)(U.SUBSCRIPTION_FIELD_CONDITION)},{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.OR_UPPER),type:{kind:ae.Kind.LIST_TYPE,type:{kind:ae.Kind.NON_NULL_TYPE,type:(0,re.stringToNamedTypeNode)(U.SUBSCRIPTION_FILTER_CONDITION)}}},{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.NOT_UPPER),type:(0,re.stringToNamedTypeNode)(U.SUBSCRIPTION_FILTER_CONDITION)}],kind:ae.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,re.stringToNameNode)(U.SUBSCRIPTION_FILTER_CONDITION)};X.SUBSCRIPTION_FILTER_VALUE_DEFINITION={kind:ae.Kind.SCALAR_TYPE_DEFINITION,name:(0,re.stringToNameNode)(U.SUBSCRIPTION_FILTER_VALUE)};X.SUBSCRIPTION_FIELD_CONDITION_DEFINITION={fields:[{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.FIELD_PATH),type:{kind:ae.Kind.NON_NULL_TYPE,type:(0,re.stringToNamedTypeNode)(U.STRING_SCALAR)}},{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.VALUES),type:{kind:ae.Kind.NON_NULL_TYPE,type:{kind:ae.Kind.LIST_TYPE,type:(0,re.stringToNamedTypeNode)(U.SUBSCRIPTION_FILTER_VALUE)}}}],kind:ae.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,re.stringToNameNode)(U.SUBSCRIPTION_FIELD_CONDITION)};X.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=new Map([[U.AUTHENTICATED,X.AUTHENTICATED_DEFINITION],[U.COMPOSE_DIRECTIVE,X.COMPOSE_DIRECTIVE_DEFINITION],[U.INACCESSIBLE,X.INACCESSIBLE_DEFINITION],[U.INTERFACE_OBJECT,X.INTERFACE_OBJECT_DEFINITION],[U.LINK,X.LINK_DEFINITION],[U.OVERRIDE,X.OVERRIDE_DEFINITION],[U.REQUIRES_SCOPES,X.REQUIRES_SCOPES_DEFINITION],[U.SHAREABLE,X.SHAREABLE_DEFINITION]]);X.BASE_DIRECTIVE_DEFINITIONS=[X.DEPRECATED_DEFINITION,X.EXTENDS_DEFINITION,X.EXTERNAL_DEFINITION,X.KEY_DEFINITION,X.PROVIDES_DEFINITION,X.REQUIRES_DEFINITION,X.SPECIFIED_BY_DEFINITION,X.TAG_DEFINITION];X.EVENT_DRIVEN_DIRECTIVE_DEFINITIONS_BY_DIRECTIVE_NAME=new Map([[U.EDFS_KAFKA_PUBLISH,X.EDFS_KAFKA_PUBLISH_DEFINITION],[U.EDFS_KAFKA_SUBSCRIBE,X.EDFS_KAFKA_SUBSCRIBE_DEFINITION],[U.EDFS_NATS_PUBLISH,X.EDFS_NATS_PUBLISH_DEFINITION],[U.EDFS_NATS_REQUEST,X.EDFS_NATS_REQUEST_DEFINITION],[U.EDFS_NATS_SUBSCRIBE,X.EDFS_NATS_SUBSCRIBE_DEFINITION],[U.EDFS_REDIS_PUBLISH,X.EDFS_REDIS_PUBLISH_DEFINITION],[U.EDFS_REDIS_SUBSCRIBE,X.EDFS_REDIS_SUBSCRIBE_DEFINITION]]);X.VERSION_TWO_DIRECTIVE_DEFINITIONS=[X.AUTHENTICATED_DEFINITION,X.COMPOSE_DIRECTIVE_DEFINITION,X.INACCESSIBLE_DEFINITION,X.INTERFACE_OBJECT_DEFINITION,X.OVERRIDE_DEFINITION,X.REQUIRES_SCOPES_DEFINITION,X.SHAREABLE_DEFINITION];X.FIELD_SET_SCALAR_DEFINITION={kind:ae.Kind.SCALAR_TYPE_DEFINITION,name:(0,re.stringToNameNode)(U.FIELD_SET_SCALAR)};X.SCOPE_SCALAR_DEFINITION={kind:ae.Kind.SCALAR_TYPE_DEFINITION,name:(0,re.stringToNameNode)(U.SCOPE_SCALAR)};X.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION={kind:ae.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,re.stringToNameNode)(U.EDFS_NATS_STREAM_CONFIGURATION),fields:[{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.CONSUMER_NAME),type:{kind:ae.Kind.NON_NULL_TYPE,type:(0,re.stringToNamedTypeNode)(U.STRING_SCALAR)}},{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.STREAM_NAME),type:{kind:ae.Kind.NON_NULL_TYPE,type:(0,re.stringToNamedTypeNode)(U.STRING_SCALAR)}},{kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.CONSUMER_INACTIVE_THRESHOLD),type:{kind:ae.Kind.NON_NULL_TYPE,type:(0,re.stringToNamedTypeNode)(U.INT_SCALAR)},defaultValue:{kind:ae.Kind.INT,value:p7.DEFAULT_CONSUMER_INACTIVE_THRESHOLD.toString()}}]};X.CONFIGURE_DESCRIPTION_DEFINITION={arguments:[{directives:[],kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.PROPAGATE),type:{kind:ae.Kind.NON_NULL_TYPE,type:(0,re.stringToNamedTypeNode)(U.BOOLEAN_SCALAR)},defaultValue:{kind:ae.Kind.BOOLEAN,value:!0}},{directives:[],kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.DESCRIPTION_OVERRIDE),type:(0,re.stringToNamedTypeNode)(U.STRING_SCALAR)}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:(0,re.stringArrayToNameNodeArray)([U.ARGUMENT_DEFINITION_UPPER,U.ENUM_UPPER,U.ENUM_VALUE_UPPER,U.FIELD_DEFINITION_UPPER,U.INTERFACE_UPPER,U.INPUT_OBJECT_UPPER,U.INPUT_FIELD_DEFINITION_UPPER,U.OBJECT_UPPER,U.SCALAR_UPPER,U.SCHEMA_UPPER,U.UNION_UPPER]),name:(0,re.stringToNameNode)(U.CONFIGURE_DESCRIPTION),repeatable:!1};X.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION={arguments:[{directives:[],kind:ae.Kind.INPUT_VALUE_DEFINITION,name:(0,re.stringToNameNode)(U.PROPAGATE),type:{kind:ae.Kind.NON_NULL_TYPE,type:(0,re.stringToNamedTypeNode)(U.BOOLEAN_SCALAR)},defaultValue:{kind:ae.Kind.BOOLEAN,value:!0}}],kind:ae.Kind.DIRECTIVE_DEFINITION,locations:(0,re.stringArrayToNameNodeArray)([U.ENUM_UPPER,U.INPUT_OBJECT_UPPER,U.INTERFACE_UPPER,U.OBJECT_UPPER]),name:(0,re.stringToNameNode)(U.CONFIGURE_CHILD_DESCRIPTIONS),repeatable:!1};X.EDFS_ARGS_REGEXP=/{{\s*args\.([a-zA-Z0-9_]+)\s*}}/g;X.MAX_OR_SCOPES=16});var VN=w(sc=>{"use strict";m();T();N();Object.defineProperty(sc,"__esModule",{value:!0});sc.newParentTagData=E7;sc.newChildTagData=h7;sc.validateImplicitFieldSets=y7;sc.newContractTagOptionsFromArrays=I7;sc.getDescriptionFromString=g7;var zr=De(),m7=du(),N7=Ss(),T7=Hr(),xC=Sr();function E7(e){return{childTagDataByChildName:new Map,tagNames:new Set,typeName:e}}function h7(e){return{name:e,tagNames:new Set,tagNamesByArgumentName:new Map}}function y7({conditionalFieldDataByCoords:e,currentSubgraphName:t,entityData:n,implicitKeys:r,objectData:i,parentDefinitionDataByTypeName:a,graphNode:o}){let c=(0,xC.getValueOrDefault)(n.keyFieldSetDatasBySubgraphName,t,()=>new Map);for(let[l,d]of n.documentNodeByKeyFieldSet){if(c.has(l))continue;let p=[i],y=[],I=[],v=-1,F=!0,k=!0;(0,zr.visit)(d,{Argument:{enter(){return k=!1,zr.BREAK}},Field:{enter(K){let J=p[v];if(F)return k=!1,zr.BREAK;let se=K.name.value,ie=J.fieldDataByName.get(se);if(!ie||ie.argumentDataByName.size||y[v].has(se))return k=!1,zr.BREAK;let{isUnconditionallyProvided:Te}=(0,xC.getOrThrowError)(ie.externalFieldDataBySubgraphName,t,`${ie.originalParentTypeName}.${se}.externalFieldDataBySubgraphName`),de=e.get(`${ie.renamedParentTypeName}.${se}`);if(de){if(de.providedBy.length>0)I.push(...de.providedBy);else if(de.requiredBy.length>0)return k=!1,zr.BREAK}else if(!Te)return k=!1,zr.BREAK;y[v].add(se);let Re=(0,m7.getTypeNodeNamedTypeName)(ie.node.type);if(N7.BASE_SCALARS.has(Re))return;let xe=a.get(Re);if(!xe)return k=!1,zr.BREAK;if(xe.kind===zr.Kind.OBJECT_TYPE_DEFINITION){F=!0,p.push(xe);return}if((0,T7.isKindAbstract)(xe.kind))return k=!1,zr.BREAK}},InlineFragment:{enter(){return k=!1,zr.BREAK}},SelectionSet:{enter(){if(!F||(v+=1,F=!1,v<0||v>=p.length))return k=!1,zr.BREAK;y.push(new Set)},leave(){if(F)return k=!1,zr.BREAK;v-=1,p.pop(),y.pop()}}}),k&&(r.push(Q(x({fieldName:"",selectionSet:l},I.length>0?{conditions:I}:{}),{disableEntityResolver:!0})),o&&o.satisfiedFieldSets.add(l))}}function I7(e,t){return{tagNamesToExclude:new Set(e),tagNamesToInclude:new Set(t)}}function g7(e){if(e)return{block:!0,kind:zr.Kind.STRING,value:e}}});var Sl=w(mt=>{"use strict";m();T();N();Object.defineProperty(mt,"__esModule",{value:!0});mt.MergeMethod=void 0;mt.newPersistedDirectivesData=v7;mt.isNodeExternalOrShareable=S7;mt.isTypeRequired=O7;mt.areDefaultValuesCompatible=VC;mt.compareAndValidateInputValueDefaultValues=D7;mt.setMutualExecutableLocations=b7;mt.isTypeNameRootType=A7;mt.getRenamedRootTypeName=R7;mt.childMapToValueArray=F7;mt.setLongestDescription=w7;mt.isParentDataRootType=jC;mt.isInterfaceDefinitionData=L7;mt.setParentDataExtensionType=C7;mt.extractPersistedDirectives=k7;mt.propagateAuthDirectives=M7;mt.propagateFieldAuthDirectives=x7;mt.generateDeprecatedDirective=Cv;mt.getClientPersistedDirectiveNodes=wv;mt.getNodeForRouterSchemaByData=V7;mt.getClientSchemaFieldNodeByFieldData=j7;mt.getNodeWithPersistedDirectivesByInputValueData=GC;mt.addValidPersistedDirectiveDefinitionNodeByData=G7;mt.newInvalidFieldNames=$7;mt.validateExternalAndShareable=Q7;mt.isTypeValidImplementation=jN;mt.isNodeDataInaccessible=$C;mt.isLeafKind=Y7;mt.getSubscriptionFilterValue=J7;mt.getParentTypeName=H7;mt.newConditionalFieldData=z7;mt.getDefinitionDataCoords=W7;mt.isParentDataCompositeOutputType=X7;mt.newExternalFieldData=Z7;mt.getInitialFederatedDescription=eZ;mt.areKindsEqual=tZ;mt.isFieldData=Bv;mt.isInputNodeKind=nZ;mt.isOutputNodeKind=rZ;var st=De(),Fv=Df(),vl=Hr(),Lv=Mi(),Ct=vr(),oc=Sr(),_7=VN();function v7(){return{deprecatedReason:"",directivesByDirectiveName:new Map,isDeprecated:!1,tagDirectiveByName:new Map}}function S7(e,t,n){var i;let r={isExternal:n.has(Ct.EXTERNAL),isShareable:t||n.has(Ct.SHAREABLE)};if(!((i=e.directives)!=null&&i.length))return r;for(let a of e.directives){let o=a.name.value;if(o===Ct.EXTERNAL){r.isExternal=!0;continue}o===Ct.SHAREABLE&&(r.isShareable=!0)}return r}function O7(e){return e.kind===st.Kind.NON_NULL_TYPE}function VC(e,t){switch(e.kind){case st.Kind.LIST_TYPE:return t.kind===st.Kind.LIST||t.kind===st.Kind.NULL;case st.Kind.NAMED_TYPE:if(t.kind===st.Kind.NULL)return!0;switch(e.name.value){case Ct.BOOLEAN_SCALAR:return t.kind===st.Kind.BOOLEAN;case Ct.FLOAT_SCALAR:return t.kind===st.Kind.INT||t.kind===st.Kind.FLOAT;case Ct.INT_SCALAR:return t.kind===st.Kind.INT;case Ct.STRING_SCALAR:return t.kind===st.Kind.STRING;default:return!0}case st.Kind.NON_NULL_TYPE:return t.kind===st.Kind.NULL?!1:VC(e.type,t)}}function D7(e,t,n){if(!e.defaultValue)return;if(!t.defaultValue){e.includeDefaultValue=!1;return}let r=(0,st.print)(e.defaultValue),i=(0,st.print)(t.defaultValue);if(r!==i){n.push((0,Lv.incompatibleInputValueDefaultValuesError)(`${e.isArgument?Ct.ARGUMENT:Ct.INPUT_FIELD} "${e.name}"`,e.originalCoords,[...t.subgraphNames],r,i));return}}function b7(e,t){let n=new Set;for(let r of t)e.executableLocations.has(r)&&n.add(r);e.executableLocations=n}function A7(e,t){return Ct.ROOT_TYPE_NAMES.has(e)||t.has(e)}function R7(e,t){let n=t.get(e);if(!n)return e;switch(n){case st.OperationTypeNode.MUTATION:return Ct.MUTATION;case st.OperationTypeNode.SUBSCRIPTION:return Ct.SUBSCRIPTION;default:return Ct.QUERY}}function P7(e){for(let t of e.argumentDataByName.values()){for(let n of t.directivesByDirectiveName.values())t.node.directives.push(...n);e.node.arguments.push(t.node)}}function F7(e){let t=[];for(let n of e.values()){Bv(n)&&P7(n);for(let r of n.directivesByDirectiveName.values())n.node.directives.push(...r);t.push(n.node)}return t}function w7(e,t){if(t.description){if("configureDescriptionDataBySubgraphName"in t){for(let{propagate:n}of t.configureDescriptionDataBySubgraphName.values())if(!n)return}(!e.description||e.description.value.length0&&e.persistedDirectivesData.directivesByDirectiveName.set(Ct.REQUIRES_SCOPES,[(0,oc.generateRequiresScopesDirective)(t.requiredScopes)]))}function x7(e,t){if(!t)return;let n=t.fieldAuthDataByFieldName.get(e.name);n&&(n.originalData.requiresAuthentication&&e.persistedDirectivesData.directivesByDirectiveName.set(Ct.AUTHENTICATED,[(0,oc.generateSimpleDirective)(Ct.AUTHENTICATED)]),n.originalData.requiredScopes.length>0&&e.persistedDirectivesData.directivesByDirectiveName.set(Ct.REQUIRES_SCOPES,[(0,oc.generateRequiresScopesDirective)(n.originalData.requiredScopes)]))}function Cv(e){return{kind:st.Kind.DIRECTIVE,name:(0,vl.stringToNameNode)(Ct.DEPRECATED),arguments:[{kind:st.Kind.ARGUMENT,name:(0,vl.stringToNameNode)(Ct.REASON),value:{kind:st.Kind.STRING,value:e||Ct.DEPRECATED_DEFAULT_ARGUMENT_VALUE}}]}}function q7(e,t,n,r){let i=[];for(let[a,o]of e){let c=t.get(a);if(c){if(o.length<2){i.push(...o);continue}if(!c.repeatable){r.push((0,Lv.invalidRepeatedFederatedDirectiveErrorMessage)(a,n));continue}i.push(...o)}}return i}function KC(e,t,n){let r=[...e.persistedDirectivesData.tagDirectiveByName.values()];return e.persistedDirectivesData.isDeprecated&&r.push(Cv(e.persistedDirectivesData.deprecatedReason)),r.push(...q7(e.persistedDirectivesData.directivesByDirectiveName,t,e.name,n)),r}function wv(e){var n;let t=[];e.persistedDirectivesData.isDeprecated&&t.push(Cv(e.persistedDirectivesData.deprecatedReason));for(let[r,i]of e.persistedDirectivesData.directivesByDirectiveName){if(r===Ct.SEMANTIC_NON_NULL&&Bv(e)){t.push((0,oc.generateSemanticNonNullDirective)((n=(0,oc.getFirstEntry)(e.nullLevelsBySubgraphName))!=null?n:new Set([0])));continue}Ct.PERSISTED_CLIENT_DIRECTIVES.has(r)&&t.push(i[0])}return t}function V7(e,t,n){return e.node.name=(0,vl.stringToNameNode)(e.name),e.node.description=e.description,e.node.directives=KC(e,t,n),e.node}function j7(e){let t=wv(e),n=[];for(let r of e.argumentDataByName.values())$C(r)||n.push(Q(x({},r.node),{directives:wv(r)}));return Q(x({},e.node),{directives:t,arguments:n})}function GC(e,t,n){return e.node.name=(0,vl.stringToNameNode)(e.name),e.node.type=e.type,e.node.description=e.description,e.node.directives=KC(e,t,n),e.includeDefaultValue&&(e.node.defaultValue=e.defaultValue),e.node}function K7(e,t,n,r,i){let a=[];for(let[o,c]of t.argumentDataByName){let l=(0,oc.getEntriesNotInHashSet)(t.subgraphNames,c.subgraphNames);if(l.length>0){c.requiredSubgraphNames.size>0&&a.push({inputValueName:o,missingSubgraphs:l,requiredSubgraphs:[...c.requiredSubgraphNames]});continue}e.push(GC(c,n,r)),i&&i.add(o)}return a.length>0?(r.push((0,Lv.invalidRequiredInputValueError)(Ct.DIRECTIVE_DEFINITION,`@${t.name}`,a)),!1):!0}function G7(e,t,n,r){let i=[];K7(i,t,n,r)&&e.push({arguments:i,kind:st.Kind.DIRECTIVE_DEFINITION,locations:(0,vl.setToNameNodeArray)(t.executableLocations),name:(0,vl.stringToNameNode)(t.name),repeatable:t.repeatable,description:t.description})}function $7(){return{byShareable:new Set,subgraphNamesByExternalFieldName:new Map}}function Q7(e,t){let n=e.isShareableBySubgraphName.size,r=new Array,i=0;for(let[a,o]of e.isShareableBySubgraphName){let c=e.externalFieldDataBySubgraphName.get(a);if(c&&!c.isUnconditionallyProvided){r.push(a);continue}o||(i+=1)}switch(i){case 0:n===r.length&&t.subgraphNamesByExternalFieldName.set(e.name,r);return;case 1:if(n===1)return;n-r.length!==1&&t.byShareable.add(e.name);return;default:t.byShareable.add(e.name)}}var qC;(function(e){e[e.UNION=0]="UNION",e[e.INTERSECTION=1]="INTERSECTION",e[e.CONSISTENT=2]="CONSISTENT"})(qC||(mt.MergeMethod=qC={}));function jN(e,t,n){if(e.kind===st.Kind.NON_NULL_TYPE)return t.kind!==st.Kind.NON_NULL_TYPE?!1:jN(e.type,t.type,n);if(t.kind===st.Kind.NON_NULL_TYPE)return jN(e,t.type,n);switch(e.kind){case st.Kind.NAMED_TYPE:if(t.kind===st.Kind.NAMED_TYPE){let r=e.name.value,i=t.name.value;if(r===i)return!0;let a=n.get(r);return a?a.has(i):!1}return!1;default:return t.kind===st.Kind.LIST_TYPE?jN(e.type,t.type,n):!1}}function $C(e){return e.persistedDirectivesData.directivesByDirectiveName.has(Ct.INACCESSIBLE)||e.directivesByDirectiveName.has(Ct.INACCESSIBLE)}function Y7(e){return e===st.Kind.SCALAR_TYPE_DEFINITION||e===st.Kind.ENUM_TYPE_DEFINITION}function J7(e){switch(e.kind){case st.Kind.BOOLEAN:return e.value;case st.Kind.ENUM:case st.Kind.STRING:return e.value;case st.Kind.FLOAT:case st.Kind.INT:try{return parseFloat(e.value)}catch(t){return"NaN"}case st.Kind.NULL:return null}}function H7(e){return e.kind===st.Kind.OBJECT_TYPE_DEFINITION&&e.renamedTypeName||e.name}function z7(){return{providedBy:[],requiredBy:[]}}function W7(e,t){switch(e.kind){case st.Kind.ENUM_VALUE_DEFINITION:return`${e.parentTypeName}.${e.name}`;case st.Kind.FIELD_DEFINITION:return`${t?e.renamedParentTypeName:e.originalParentTypeName}.${e.name}`;case st.Kind.ARGUMENT:case st.Kind.INPUT_VALUE_DEFINITION:return t?e.federatedCoords:e.originalCoords;case st.Kind.OBJECT_TYPE_DEFINITION:return t?e.renamedTypeName:e.name;default:return e.name}}function X7(e){return e.kind===st.Kind.OBJECT_TYPE_DEFINITION||e.kind===st.Kind.INTERFACE_TYPE_DEFINITION}function Z7(e){return{isDefinedExternal:e,isUnconditionallyProvided:!e}}function eZ(e){let{value:t,done:n}=e.configureDescriptionDataBySubgraphName.values().next();if(n)return e.description;if(t.propagate)return(0,_7.getDescriptionFromString)(t.description)||e.description}function tZ(e,t){return e.kind===t.kind}function Bv(e){return e.kind===st.Kind.FIELD_DEFINITION}function nZ(e){return Ct.INPUT_NODE_KINDS.has(e)}function rZ(e){return Ct.OUTPUT_NODE_KINDS.has(e)}});var Mv={};fm(Mv,{__addDisposableResource:()=>fB,__assign:()=>KN,__asyncDelegator:()=>iB,__asyncGenerator:()=>rB,__asyncValues:()=>aB,__await:()=>Ol,__awaiter:()=>WC,__classPrivateFieldGet:()=>cB,__classPrivateFieldIn:()=>dB,__classPrivateFieldSet:()=>lB,__createBinding:()=>$N,__decorate:()=>JC,__disposeResources:()=>pB,__esDecorate:()=>iZ,__exportStar:()=>ZC,__extends:()=>QC,__generator:()=>XC,__importDefault:()=>uB,__importStar:()=>oB,__makeTemplateObject:()=>sB,__metadata:()=>zC,__param:()=>HC,__propKey:()=>sZ,__read:()=>kv,__rest:()=>YC,__runInitializers:()=>aZ,__setFunctionName:()=>oZ,__spread:()=>eB,__spreadArray:()=>nB,__spreadArrays:()=>tB,__values:()=>GN,default:()=>lZ});function QC(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Uv(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function YC(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function HC(e,t){return function(n,r){t(n,r,e)}}function iZ(e,t,n,r,i,a){function o(J){if(J!==void 0&&typeof J!="function")throw new TypeError("Function expected");return J}for(var c=r.kind,l=c==="getter"?"get":c==="setter"?"set":"value",d=!t&&e?r.static?e:e.prototype:null,p=t||(d?Object.getOwnPropertyDescriptor(d,r.name):{}),y,I=!1,v=n.length-1;v>=0;v--){var F={};for(var k in r)F[k]=k==="access"?{}:r[k];for(var k in r.access)F.access[k]=r.access[k];F.addInitializer=function(J){if(I)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o(J||null))};var K=(0,n[v])(c==="accessor"?{get:p.get,set:p.set}:p[l],F);if(c==="accessor"){if(K===void 0)continue;if(K===null||typeof K!="object")throw new TypeError("Object expected");(y=o(K.get))&&(p.get=y),(y=o(K.set))&&(p.set=y),(y=o(K.init))&&i.unshift(y)}else(y=o(K))&&(c==="field"?i.unshift(y):p[l]=y)}d&&Object.defineProperty(d,r.name,p),I=!0}function aZ(e,t,n){for(var r=arguments.length>2,i=0;i0&&a[a.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function kv(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function eB(){for(var e=[],t=0;t1||c(I,v)})})}function c(I,v){try{l(r[I](v))}catch(F){y(a[0][3],F)}}function l(I){I.value instanceof Ol?Promise.resolve(I.value.v).then(d,p):y(a[0][2],I)}function d(I){c("next",I)}function p(I){c("throw",I)}function y(I,v){I(v),a.shift(),a.length&&c(a[0][0],a[0][1])}}function iB(e){var t,n;return t={},r("next"),r("throw",function(i){throw i}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(i,a){t[i]=e[i]?function(o){return(n=!n)?{value:Ol(e[i](o)),done:!1}:a?a(o):o}:a}}function aB(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof GN=="function"?GN(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(a){n[a]=e[a]&&function(o){return new Promise(function(c,l){o=e[a](o),i(c,l,o.done,o.value)})}}function i(a,o,c,l){Promise.resolve(l).then(function(d){a({value:d,done:c})},o)}}function sB(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function oB(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&$N(t,e,n);return uZ(t,e),t}function uB(e){return e&&e.__esModule?e:{default:e}}function cB(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function lB(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n}function dB(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function fB(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if(typeof r!="function")throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}function pB(e){function t(r){e.error=e.hasError?new cZ(r,e.error,"An error was suppressed during disposal."):r,e.hasError=!0}function n(){for(;e.stack.length;){var r=e.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,function(a){return t(a),n()})}catch(a){t(a)}}if(e.hasError)throw e.error}return n()}var Uv,KN,$N,uZ,cZ,lZ,xv=ku(()=>{"use strict";m();T();N();Uv=function(e,t){return Uv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Uv(e,t)};KN=function(){return KN=Object.assign||function(t){for(var n,r=1,i=arguments.length;rCB,__assign:()=>QN,__asyncDelegator:()=>DB,__asyncGenerator:()=>OB,__asyncValues:()=>bB,__await:()=>Dl,__awaiter:()=>yB,__classPrivateFieldGet:()=>FB,__classPrivateFieldIn:()=>LB,__classPrivateFieldSet:()=>wB,__createBinding:()=>JN,__decorate:()=>TB,__disposeResources:()=>BB,__esDecorate:()=>dZ,__exportStar:()=>gB,__extends:()=>mB,__generator:()=>IB,__importDefault:()=>PB,__importStar:()=>RB,__makeTemplateObject:()=>AB,__metadata:()=>hB,__param:()=>EB,__propKey:()=>pZ,__read:()=>Vv,__rest:()=>NB,__runInitializers:()=>fZ,__setFunctionName:()=>mZ,__spread:()=>_B,__spreadArray:()=>SB,__spreadArrays:()=>vB,__values:()=>YN,default:()=>EZ});function mB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");qv(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function NB(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function EB(e,t){return function(n,r){t(n,r,e)}}function dZ(e,t,n,r,i,a){function o(J){if(J!==void 0&&typeof J!="function")throw new TypeError("Function expected");return J}for(var c=r.kind,l=c==="getter"?"get":c==="setter"?"set":"value",d=!t&&e?r.static?e:e.prototype:null,p=t||(d?Object.getOwnPropertyDescriptor(d,r.name):{}),y,I=!1,v=n.length-1;v>=0;v--){var F={};for(var k in r)F[k]=k==="access"?{}:r[k];for(var k in r.access)F.access[k]=r.access[k];F.addInitializer=function(J){if(I)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o(J||null))};var K=(0,n[v])(c==="accessor"?{get:p.get,set:p.set}:p[l],F);if(c==="accessor"){if(K===void 0)continue;if(K===null||typeof K!="object")throw new TypeError("Object expected");(y=o(K.get))&&(p.get=y),(y=o(K.set))&&(p.set=y),(y=o(K.init))&&i.unshift(y)}else(y=o(K))&&(c==="field"?i.unshift(y):p[l]=y)}d&&Object.defineProperty(d,r.name,p),I=!0}function fZ(e,t,n){for(var r=arguments.length>2,i=0;i0&&a[a.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Vv(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function _B(){for(var e=[],t=0;t1||c(I,v)})})}function c(I,v){try{l(r[I](v))}catch(F){y(a[0][3],F)}}function l(I){I.value instanceof Dl?Promise.resolve(I.value.v).then(d,p):y(a[0][2],I)}function d(I){c("next",I)}function p(I){c("throw",I)}function y(I,v){I(v),a.shift(),a.length&&c(a[0][0],a[0][1])}}function DB(e){var t,n;return t={},r("next"),r("throw",function(i){throw i}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(i,a){t[i]=e[i]?function(o){return(n=!n)?{value:Dl(e[i](o)),done:!1}:a?a(o):o}:a}}function bB(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof YN=="function"?YN(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(a){n[a]=e[a]&&function(o){return new Promise(function(c,l){o=e[a](o),i(c,l,o.done,o.value)})}}function i(a,o,c,l){Promise.resolve(l).then(function(d){a({value:d,done:c})},o)}}function AB(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function RB(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&JN(t,e,n);return NZ(t,e),t}function PB(e){return e&&e.__esModule?e:{default:e}}function FB(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function wB(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n}function LB(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function CB(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if(typeof r!="function")throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}function BB(e){function t(r){e.error=e.hasError?new TZ(r,e.error,"An error was suppressed during disposal."):r,e.hasError=!0}function n(){for(;e.stack.length;){var r=e.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,function(a){return t(a),n()})}catch(a){t(a)}}if(e.hasError)throw e.error}return n()}var qv,QN,JN,NZ,TZ,EZ,kB=ku(()=>{"use strict";m();T();N();qv=function(e,t){return qv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},qv(e,t)};QN=function(){return QN=Object.assign||function(t){for(var n,r=1,i=arguments.length;r{"use strict";m();T();N()});var bf=w(lr=>{"use strict";m();T();N();Object.defineProperty(lr,"__esModule",{value:!0});lr.assertSome=lr.isSome=lr.compareNodes=lr.nodeToString=lr.compareStrings=lr.isValidPath=lr.isDocumentString=lr.asArray=void 0;var hZ=De(),yZ=e=>Array.isArray(e)?e:e?[e]:[];lr.asArray=yZ;var IZ=/\.[a-z0-9]+$/i;function gZ(e){if(typeof e!="string"||IZ.test(e))return!1;try{return(0,hZ.parse)(e),!0}catch(t){}return!1}lr.isDocumentString=gZ;var _Z=/[‘“!%^<>`]/;function vZ(e){return typeof e=="string"&&!_Z.test(e)}lr.isValidPath=vZ;function xB(e,t){return String(e)String(t)?1:0}lr.compareStrings=xB;function jv(e){var n,r;let t;return"alias"in e&&(t=(n=e.alias)==null?void 0:n.value),t==null&&"name"in e&&(t=(r=e.name)==null?void 0:r.value),t==null&&(t=e.kind),t}lr.nodeToString=jv;function SZ(e,t,n){let r=jv(e),i=jv(t);return typeof n=="function"?n(r,i):xB(r,i)}lr.compareNodes=SZ;function OZ(e){return e!=null}lr.isSome=OZ;function DZ(e,t="Value should be something"){if(e==null)throw new Error(t)}lr.assertSome=DZ});var Af=w(zN=>{"use strict";m();T();N();Object.defineProperty(zN,"__esModule",{value:!0});zN.inspect=void 0;var jB=3;function bZ(e){return HN(e,[])}zN.inspect=bZ;function HN(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return AZ(e,t);default:return String(e)}}function qB(e){return(e.name="GraphQLError")?e.toString():`${e.name}: ${e.message}; ${e.stack}`}function AZ(e,t){if(e===null)return"null";if(e instanceof Error)return e.name==="AggregateError"?qB(e)+` -`+VB(e.errors,t):qB(e);if(t.includes(e))return"[Circular]";let n=[...t,e];if(RZ(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:HN(r,n)}else if(Array.isArray(e))return VB(e,n);return PZ(e,n)}function RZ(e){return typeof e.toJSON=="function"}function PZ(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>jB?"["+FZ(e)+"]":"{ "+n.map(([i,a])=>i+": "+HN(a,t)).join(", ")+" }"}function VB(e,t){if(e.length===0)return"[]";if(t.length>jB)return"[Array]";let n=e.length,r=[];for(let i=0;i{"use strict";m();T();N();Object.defineProperty(bl,"__esModule",{value:!0});bl.relocatedError=bl.createGraphQLError=void 0;var Kv=De(),wZ=["message","locations","path","nodes","source","positions","originalError","name","stack","extensions"];function LZ(e){return e!=null&&typeof e=="object"&&Object.keys(e).every(t=>wZ.includes(t))}function Gv(e,t){return t!=null&&t.originalError&&!(t.originalError instanceof Error)&&LZ(t.originalError)&&(t.originalError=Gv(t.originalError.message,t.originalError)),Kv.versionInfo.major>=17?new Kv.GraphQLError(e,t):new Kv.GraphQLError(e,t==null?void 0:t.nodes,t==null?void 0:t.source,t==null?void 0:t.positions,t==null?void 0:t.path,t==null?void 0:t.originalError,t==null?void 0:t.extensions)}bl.createGraphQLError=Gv;function CZ(e,t){return Gv(e.message,{nodes:e.nodes,source:e.source,positions:e.positions,path:t==null?e.path:t,originalError:e,extensions:e.extensions})}bl.relocatedError=CZ});var Rf=w(qi=>{"use strict";m();T();N();Object.defineProperty(qi,"__esModule",{value:!0});qi.hasOwnProperty=qi.promiseReduce=qi.isPromise=qi.isObjectLike=qi.isIterableObject=void 0;function BZ(e){return e!=null&&typeof e=="object"&&Symbol.iterator in e}qi.isIterableObject=BZ;function UZ(e){return typeof e=="object"&&e!==null}qi.isObjectLike=UZ;function KB(e){return(e==null?void 0:e.then)!=null}qi.isPromise=KB;function kZ(e,t,n){let r=n;for(let i of e)r=KB(r)?r.then(a=>t(a,i)):t(r,i);return r}qi.promiseReduce=kZ;function MZ(e,t){return Object.prototype.hasOwnProperty.call(e,t)}qi.hasOwnProperty=MZ});var Qv=w(ZN=>{"use strict";m();T();N();Object.defineProperty(ZN,"__esModule",{value:!0});ZN.getArgumentValues=void 0;var $v=Af(),uc=De(),XN=WN(),xZ=Rf();function qZ(e,t,n={}){var o;let r={},a=((o=t.arguments)!=null?o:[]).reduce((c,l)=>Q(x({},c),{[l.name.value]:l}),{});for(let{name:c,type:l,defaultValue:d}of e.args){let p=a[c];if(!p){if(d!==void 0)r[c]=d;else if((0,uc.isNonNullType)(l))throw(0,XN.createGraphQLError)(`Argument "${c}" of required type "${(0,$v.inspect)(l)}" was not provided.`,{nodes:[t]});continue}let y=p.value,I=y.kind===uc.Kind.NULL;if(y.kind===uc.Kind.VARIABLE){let F=y.name.value;if(n==null||!(0,xZ.hasOwnProperty)(n,F)){if(d!==void 0)r[c]=d;else if((0,uc.isNonNullType)(l))throw(0,XN.createGraphQLError)(`Argument "${c}" of required type "${(0,$v.inspect)(l)}" was provided the variable "$${F}" which was not provided a runtime value.`,{nodes:[y]});continue}I=n[F]==null}if(I&&(0,uc.isNonNullType)(l))throw(0,XN.createGraphQLError)(`Argument "${c}" of non-null type "${(0,$v.inspect)(l)}" must not be null.`,{nodes:[y]});let v=(0,uc.valueFromAST)(y,l,n);if(v===void 0)throw(0,XN.createGraphQLError)(`Argument "${c}" has invalid value ${(0,uc.print)(y)}.`,{nodes:[y]});r[c]=v}return r}ZN.getArgumentValues=qZ});var Yv=w(Ma=>{"use strict";m();T();N();Object.defineProperty(Ma,"__esModule",{value:!0});Ma.getDirective=Ma.getDirectives=Ma.getDirectiveInExtensions=Ma.getDirectivesInExtensions=void 0;var $B=Qv();function QB(e,t=["directives"]){return t.reduce((n,r)=>n==null?n:n[r],e==null?void 0:e.extensions)}Ma.getDirectivesInExtensions=QB;function GB(e,t){let n=e.filter(r=>r.name===t);if(n.length)return n.map(r=>{var i;return(i=r.args)!=null?i:{}})}function YB(e,t,n=["directives"]){let r=n.reduce((a,o)=>a==null?a:a[o],e==null?void 0:e.extensions);if(r===void 0)return;if(Array.isArray(r))return GB(r,t);let i=[];for(let[a,o]of Object.entries(r))if(Array.isArray(o))for(let c of o)i.push({name:a,args:c});else i.push({name:a,args:o});return GB(i,t)}Ma.getDirectiveInExtensions=YB;function VZ(e,t,n=["directives"]){let r=QB(t,n);if(r!=null&&r.length>0)return r;let a=(e&&e.getDirectives?e.getDirectives():[]).reduce((l,d)=>(l[d.name]=d,l),{}),o=[];t.astNode&&o.push(t.astNode),"extensionASTNodes"in t&&t.extensionASTNodes&&(o=[...o,...t.extensionASTNodes]);let c=[];for(let l of o)if(l.directives)for(let d of l.directives){let p=a[d.name.value];p&&c.push({name:d.name.value,args:(0,$B.getArgumentValues)(p,d)})}return c}Ma.getDirectives=VZ;function jZ(e,t,n,r=["directives"]){let i=YB(t,n,r);if(i!=null)return i;let a=e&&e.getDirective?e.getDirective(n):void 0;if(a==null)return;let o=[];t.astNode&&o.push(t.astNode),"extensionASTNodes"in t&&t.extensionASTNodes&&(o=[...o,...t.extensionASTNodes]);let c=[];for(let l of o)if(l.directives)for(let d of l.directives)d.name.value===n&&c.push((0,$B.getArgumentValues)(a,d));if(c.length)return c}Ma.getDirective=jZ});var Jv=w(eT=>{"use strict";m();T();N();Object.defineProperty(eT,"__esModule",{value:!0});eT.getFieldsWithDirectives=void 0;var KZ=De();function GZ(e,t={}){let n={},r=["ObjectTypeDefinition","ObjectTypeExtension"];t.includeInputTypes&&(r=[...r,"InputObjectTypeDefinition","InputObjectTypeExtension"]);let i=e.definitions.filter(a=>r.includes(a.kind));for(let a of i){let o=a.name.value;if(a.fields!=null){for(let c of a.fields)if(c.directives&&c.directives.length>0){let l=c.name.value,d=`${o}.${l}`,p=c.directives.map(y=>({name:y.name.value,args:(y.arguments||[]).reduce((I,v)=>Q(x({},I),{[v.name.value]:(0,KZ.valueFromASTUntyped)(v.value)}),{})}));n[d]=p}}}return n}eT.getFieldsWithDirectives=GZ});var JB=w(tT=>{"use strict";m();T();N();Object.defineProperty(tT,"__esModule",{value:!0});tT.getArgumentsWithDirectives=void 0;var Hv=De();function $Z(e){return e.kind===Hv.Kind.OBJECT_TYPE_DEFINITION||e.kind===Hv.Kind.OBJECT_TYPE_EXTENSION}function QZ(e){var r;let t={},n=e.definitions.filter($Z);for(let i of n)if(i.fields!=null)for(let a of i.fields){let o=(r=a.arguments)==null?void 0:r.filter(l=>{var d;return(d=l.directives)==null?void 0:d.length});if(!(o!=null&&o.length))continue;let c=t[`${i.name.value}.${a.name.value}`]={};for(let l of o){let d=l.directives.map(p=>({name:p.name.value,args:(p.arguments||[]).reduce((y,I)=>Q(x({},y),{[I.name.value]:(0,Hv.valueFromASTUntyped)(I.value)}),{})}));c[l.name.value]=d}}return t}tT.getArgumentsWithDirectives=QZ});var zv=w(nT=>{"use strict";m();T();N();Object.defineProperty(nT,"__esModule",{value:!0});nT.getImplementingTypes=void 0;var YZ=De();function JZ(e,t){let n=t.getTypeMap(),r=[];for(let i in n){let a=n[i];(0,YZ.isObjectType)(a)&&a.getInterfaces().find(c=>c.name===e)&&r.push(a.name)}return r}nT.getImplementingTypes=JZ});var Xv=w(rT=>{"use strict";m();T();N();Object.defineProperty(rT,"__esModule",{value:!0});rT.astFromType=void 0;var HZ=Af(),cc=De();function Wv(e){if((0,cc.isNonNullType)(e)){let t=Wv(e.ofType);if(t.kind===cc.Kind.NON_NULL_TYPE)throw new Error(`Invalid type node ${(0,HZ.inspect)(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:cc.Kind.NON_NULL_TYPE,type:t}}else if((0,cc.isListType)(e))return{kind:cc.Kind.LIST_TYPE,type:Wv(e.ofType)};return{kind:cc.Kind.NAMED_TYPE,name:{kind:cc.Kind.NAME,value:e.name}}}rT.astFromType=Wv});var aT=w(iT=>{"use strict";m();T();N();Object.defineProperty(iT,"__esModule",{value:!0});iT.astFromValueUntyped=void 0;var xa=De();function Zv(e){if(e===null)return{kind:xa.Kind.NULL};if(e===void 0)return null;if(Array.isArray(e)){let t=[];for(let n of e){let r=Zv(n);r!=null&&t.push(r)}return{kind:xa.Kind.LIST,values:t}}if(typeof e=="object"){let t=[];for(let n in e){let r=e[n],i=Zv(r);i&&t.push({kind:xa.Kind.OBJECT_FIELD,name:{kind:xa.Kind.NAME,value:n},value:i})}return{kind:xa.Kind.OBJECT,fields:t}}if(typeof e=="boolean")return{kind:xa.Kind.BOOLEAN,value:e};if(typeof e=="bigint")return{kind:xa.Kind.INT,value:String(e)};if(typeof e=="number"&&isFinite(e)){let t=String(e);return zZ.test(t)?{kind:xa.Kind.INT,value:t}:{kind:xa.Kind.FLOAT,value:t}}if(typeof e=="string")return{kind:xa.Kind.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${e}.`)}iT.astFromValueUntyped=Zv;var zZ=/^-?(?:0|[1-9][0-9]*)$/});var zB=w(sT=>{"use strict";m();T();N();Object.defineProperty(sT,"__esModule",{value:!0});sT.astFromValue=void 0;var WZ=Af(),pi=De(),XZ=aT(),HB=Rf();function Pf(e,t){if((0,pi.isNonNullType)(t)){let n=Pf(e,t.ofType);return(n==null?void 0:n.kind)===pi.Kind.NULL?null:n}if(e===null)return{kind:pi.Kind.NULL};if(e===void 0)return null;if((0,pi.isListType)(t)){let n=t.ofType;if((0,HB.isIterableObject)(e)){let r=[];for(let i of e){let a=Pf(i,n);a!=null&&r.push(a)}return{kind:pi.Kind.LIST,values:r}}return Pf(e,n)}if((0,pi.isInputObjectType)(t)){if(!(0,HB.isObjectLike)(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=Pf(e[r.name],r.type);i&&n.push({kind:pi.Kind.OBJECT_FIELD,name:{kind:pi.Kind.NAME,value:r.name},value:i})}return{kind:pi.Kind.OBJECT,fields:n}}if((0,pi.isLeafType)(t)){let n=t.serialize(e);return n==null?null:(0,pi.isEnumType)(t)?{kind:pi.Kind.ENUM,value:n}:t.name==="ID"&&typeof n=="string"&&ZZ.test(n)?{kind:pi.Kind.INT,value:n}:(0,XZ.astFromValueUntyped)(n)}console.assert(!1,"Unexpected input type: "+(0,WZ.inspect)(t))}sT.astFromValue=Pf;var ZZ=/^-?(?:0|[1-9][0-9]*)$/});var WB=w(oT=>{"use strict";m();T();N();Object.defineProperty(oT,"__esModule",{value:!0});oT.getDescriptionNode=void 0;var eee=De();function tee(e){var t;if((t=e.astNode)!=null&&t.description)return Q(x({},e.astNode.description),{block:!0});if(e.description)return{kind:eee.Kind.STRING,value:e.description,block:!0}}oT.getDescriptionNode=tee});var Al=w(br=>{"use strict";m();T();N();Object.defineProperty(br,"__esModule",{value:!0});br.memoize2of5=br.memoize2of4=br.memoize5=br.memoize4=br.memoize3=br.memoize2=br.memoize1=void 0;function nee(e){let t=new WeakMap;return function(r){let i=t.get(r);if(i===void 0){let a=e(r);return t.set(r,a),a}return i}}br.memoize1=nee;function ree(e){let t=new WeakMap;return function(r,i){let a=t.get(r);if(!a){a=new WeakMap,t.set(r,a);let c=e(r,i);return a.set(i,c),c}let o=a.get(i);if(o===void 0){let c=e(r,i);return a.set(i,c),c}return o}}br.memoize2=ree;function iee(e){let t=new WeakMap;return function(r,i,a){let o=t.get(r);if(!o){o=new WeakMap,t.set(r,o);let d=new WeakMap;o.set(i,d);let p=e(r,i,a);return d.set(a,p),p}let c=o.get(i);if(!c){c=new WeakMap,o.set(i,c);let d=e(r,i,a);return c.set(a,d),d}let l=c.get(a);if(l===void 0){let d=e(r,i,a);return c.set(a,d),d}return l}}br.memoize3=iee;function aee(e){let t=new WeakMap;return function(r,i,a,o){let c=t.get(r);if(!c){c=new WeakMap,t.set(r,c);let y=new WeakMap;c.set(i,y);let I=new WeakMap;y.set(a,I);let v=e(r,i,a,o);return I.set(o,v),v}let l=c.get(i);if(!l){l=new WeakMap,c.set(i,l);let y=new WeakMap;l.set(a,y);let I=e(r,i,a,o);return y.set(o,I),I}let d=l.get(a);if(!d){let y=new WeakMap;l.set(a,y);let I=e(r,i,a,o);return y.set(o,I),I}let p=d.get(o);if(p===void 0){let y=e(r,i,a,o);return d.set(o,y),y}return p}}br.memoize4=aee;function see(e){let t=new WeakMap;return function(r,i,a,o,c){let l=t.get(r);if(!l){l=new WeakMap,t.set(r,l);let v=new WeakMap;l.set(i,v);let F=new WeakMap;v.set(a,F);let k=new WeakMap;F.set(o,k);let K=e(r,i,a,o,c);return k.set(c,K),K}let d=l.get(i);if(!d){d=new WeakMap,l.set(i,d);let v=new WeakMap;d.set(a,v);let F=new WeakMap;v.set(o,F);let k=e(r,i,a,o,c);return F.set(c,k),k}let p=d.get(a);if(!p){p=new WeakMap,d.set(a,p);let v=new WeakMap;p.set(o,v);let F=e(r,i,a,o,c);return v.set(c,F),F}let y=p.get(o);if(!y){y=new WeakMap,p.set(o,y);let v=e(r,i,a,o,c);return y.set(c,v),v}let I=y.get(c);if(I===void 0){let v=e(r,i,a,o,c);return y.set(c,v),v}return I}}br.memoize5=see;function oee(e){let t=new WeakMap;return function(r,i,a,o){let c=t.get(r);if(!c){c=new WeakMap,t.set(r,c);let d=e(r,i,a,o);return c.set(i,d),d}let l=c.get(i);if(l===void 0){let d=e(r,i,a,o);return c.set(i,d),d}return l}}br.memoize2of4=oee;function uee(e){let t=new WeakMap;return function(r,i,a,o,c){let l=t.get(r);if(!l){l=new WeakMap,t.set(r,l);let p=e(r,i,a,o,c);return l.set(i,p),p}let d=l.get(i);if(d===void 0){let p=e(r,i,a,o,c);return l.set(i,p),p}return d}}br.memoize2of5=uee});var Ff=w(mi=>{"use strict";m();T();N();Object.defineProperty(mi,"__esModule",{value:!0});mi.getRootTypeMap=mi.getRootTypes=mi.getRootTypeNames=mi.getDefinedRootType=void 0;var cee=WN(),eS=Al();function lee(e,t,n){let i=(0,mi.getRootTypeMap)(e).get(t);if(i==null)throw(0,cee.createGraphQLError)(`Schema is not configured to execute ${t} operation.`,{nodes:n});return i}mi.getDefinedRootType=lee;mi.getRootTypeNames=(0,eS.memoize1)(function(t){let n=(0,mi.getRootTypes)(t);return new Set([...n].map(r=>r.name))});mi.getRootTypes=(0,eS.memoize1)(function(t){let n=(0,mi.getRootTypeMap)(t);return new Set(n.values())});mi.getRootTypeMap=(0,eS.memoize1)(function(t){let n=new Map,r=t.getQueryType();r&&n.set("query",r);let i=t.getMutationType();i&&n.set("mutation",i);let a=t.getSubscriptionType();return a&&n.set("subscription",a),n})});var aS=w(ht=>{"use strict";m();T();N();Object.defineProperty(ht,"__esModule",{value:!0});ht.makeDirectiveNodes=ht.makeDirectiveNode=ht.makeDeprecatedDirective=ht.astFromEnumValue=ht.astFromInputField=ht.astFromField=ht.astFromScalarType=ht.astFromEnumType=ht.astFromInputObjectType=ht.astFromUnionType=ht.astFromInterfaceType=ht.astFromObjectType=ht.astFromArg=ht.getDeprecatableDirectiveNodes=ht.getDirectiveNodes=ht.astFromDirective=ht.astFromSchema=ht.printSchemaWithDirectives=ht.getDocumentNodeFromSchema=void 0;var ct=De(),lc=Xv(),tS=zB(),dee=aT(),Vi=WB(),nS=Yv(),fee=bf(),pee=Ff();function XB(e,t={}){let n=t.pathToDirectivesInExtensions,r=e.getTypeMap(),i=ZB(e,n),a=i!=null?[i]:[],o=e.getDirectives();for(let c of o)(0,ct.isSpecifiedDirective)(c)||a.push(eU(c,e,n));for(let c in r){let l=r[c],d=(0,ct.isSpecifiedScalarType)(l),p=(0,ct.isIntrospectionType)(l);if(!(d||p))if((0,ct.isObjectType)(l))a.push(tU(l,e,n));else if((0,ct.isInterfaceType)(l))a.push(nU(l,e,n));else if((0,ct.isUnionType)(l))a.push(rU(l,e,n));else if((0,ct.isInputObjectType)(l))a.push(iU(l,e,n));else if((0,ct.isEnumType)(l))a.push(aU(l,e,n));else if((0,ct.isScalarType)(l))a.push(sU(l,e,n));else throw new Error(`Unknown type ${l}.`)}return{kind:ct.Kind.DOCUMENT,definitions:a}}ht.getDocumentNodeFromSchema=XB;function mee(e,t={}){let n=XB(e,t);return(0,ct.print)(n)}ht.printSchemaWithDirectives=mee;function ZB(e,t){let n=new Map([["query",void 0],["mutation",void 0],["subscription",void 0]]),r=[];if(e.astNode!=null&&r.push(e.astNode),e.extensionASTNodes!=null)for(let d of e.extensionASTNodes)r.push(d);for(let d of r)if(d.operationTypes)for(let p of d.operationTypes)n.set(p.operation,p);let i=(0,pee.getRootTypeMap)(e);for(let[d,p]of n){let y=i.get(d);if(y!=null){let I=(0,lc.astFromType)(y);p!=null?p.type=I:n.set(d,{kind:ct.Kind.OPERATION_TYPE_DEFINITION,operation:d,type:I})}}let a=[...n.values()].filter(fee.isSome),o=dc(e,e,t);if(!a.length&&!o.length)return null;let c={kind:a!=null?ct.Kind.SCHEMA_DEFINITION:ct.Kind.SCHEMA_EXTENSION,operationTypes:a,directives:o},l=(0,Vi.getDescriptionNode)(e);return l&&(c.description=l),c}ht.astFromSchema=ZB;function eU(e,t,n){var r,i;return{kind:ct.Kind.DIRECTIVE_DEFINITION,description:(0,Vi.getDescriptionNode)(e),name:{kind:ct.Kind.NAME,value:e.name},arguments:(r=e.args)==null?void 0:r.map(a=>rS(a,t,n)),repeatable:e.isRepeatable,locations:((i=e.locations)==null?void 0:i.map(a=>({kind:ct.Kind.NAME,value:a})))||[]}}ht.astFromDirective=eU;function dc(e,t,n){let r=(0,nS.getDirectivesInExtensions)(e,n),i=[];e.astNode!=null&&i.push(e.astNode),"extensionASTNodes"in e&&e.extensionASTNodes!=null&&(i=i.concat(e.extensionASTNodes));let a;if(r!=null)a=uT(t,r);else{a=[];for(let o of i)o.directives&&a.push(...o.directives)}return a}ht.getDirectiveNodes=dc;function Lf(e,t,n){var c,l;let r=[],i=null,a=(0,nS.getDirectivesInExtensions)(e,n),o;return a!=null?o=uT(t,a):o=(c=e.astNode)==null?void 0:c.directives,o!=null&&(r=o.filter(d=>d.name.value!=="deprecated"),e.deprecationReason!=null&&(i=(l=o.filter(d=>d.name.value==="deprecated"))==null?void 0:l[0])),e.deprecationReason!=null&&i==null&&(i=cU(e.deprecationReason)),i==null?r:[i].concat(r)}ht.getDeprecatableDirectiveNodes=Lf;function rS(e,t,n){var r;return{kind:ct.Kind.INPUT_VALUE_DEFINITION,description:(0,Vi.getDescriptionNode)(e),name:{kind:ct.Kind.NAME,value:e.name},type:(0,lc.astFromType)(e.type),defaultValue:e.defaultValue!==void 0&&(r=(0,tS.astFromValue)(e.defaultValue,e.type))!=null?r:void 0,directives:Lf(e,t,n)}}ht.astFromArg=rS;function tU(e,t,n){return{kind:ct.Kind.OBJECT_TYPE_DEFINITION,description:(0,Vi.getDescriptionNode)(e),name:{kind:ct.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(r=>iS(r,t,n)),interfaces:Object.values(e.getInterfaces()).map(r=>(0,lc.astFromType)(r)),directives:dc(e,t,n)}}ht.astFromObjectType=tU;function nU(e,t,n){let r={kind:ct.Kind.INTERFACE_TYPE_DEFINITION,description:(0,Vi.getDescriptionNode)(e),name:{kind:ct.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(i=>iS(i,t,n)),directives:dc(e,t,n)};return"getInterfaces"in e&&(r.interfaces=Object.values(e.getInterfaces()).map(i=>(0,lc.astFromType)(i))),r}ht.astFromInterfaceType=nU;function rU(e,t,n){return{kind:ct.Kind.UNION_TYPE_DEFINITION,description:(0,Vi.getDescriptionNode)(e),name:{kind:ct.Kind.NAME,value:e.name},directives:dc(e,t,n),types:e.getTypes().map(r=>(0,lc.astFromType)(r))}}ht.astFromUnionType=rU;function iU(e,t,n){return{kind:ct.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:(0,Vi.getDescriptionNode)(e),name:{kind:ct.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(r=>oU(r,t,n)),directives:dc(e,t,n)}}ht.astFromInputObjectType=iU;function aU(e,t,n){return{kind:ct.Kind.ENUM_TYPE_DEFINITION,description:(0,Vi.getDescriptionNode)(e),name:{kind:ct.Kind.NAME,value:e.name},values:Object.values(e.getValues()).map(r=>uU(r,t,n)),directives:dc(e,t,n)}}ht.astFromEnumType=aU;function sU(e,t,n){var o;let r=(0,nS.getDirectivesInExtensions)(e,n),i=r?uT(t,r):((o=e.astNode)==null?void 0:o.directives)||[],a=e.specifiedByUrl||e.specifiedByURL;if(a&&!i.some(c=>c.name.value==="specifiedBy")){let c={url:a};i.push(wf("specifiedBy",c))}return{kind:ct.Kind.SCALAR_TYPE_DEFINITION,description:(0,Vi.getDescriptionNode)(e),name:{kind:ct.Kind.NAME,value:e.name},directives:i}}ht.astFromScalarType=sU;function iS(e,t,n){return{kind:ct.Kind.FIELD_DEFINITION,description:(0,Vi.getDescriptionNode)(e),name:{kind:ct.Kind.NAME,value:e.name},arguments:e.args.map(r=>rS(r,t,n)),type:(0,lc.astFromType)(e.type),directives:Lf(e,t,n)}}ht.astFromField=iS;function oU(e,t,n){var r;return{kind:ct.Kind.INPUT_VALUE_DEFINITION,description:(0,Vi.getDescriptionNode)(e),name:{kind:ct.Kind.NAME,value:e.name},type:(0,lc.astFromType)(e.type),directives:Lf(e,t,n),defaultValue:(r=(0,tS.astFromValue)(e.defaultValue,e.type))!=null?r:void 0}}ht.astFromInputField=oU;function uU(e,t,n){return{kind:ct.Kind.ENUM_VALUE_DEFINITION,description:(0,Vi.getDescriptionNode)(e),name:{kind:ct.Kind.NAME,value:e.name},directives:Lf(e,t,n)}}ht.astFromEnumValue=uU;function cU(e){return wf("deprecated",{reason:e},ct.GraphQLDeprecatedDirective)}ht.makeDeprecatedDirective=cU;function wf(e,t,n){let r=[];if(n!=null)for(let i of n.args){let a=i.name,o=t[a];if(o!==void 0){let c=(0,tS.astFromValue)(o,i.type);c&&r.push({kind:ct.Kind.ARGUMENT,name:{kind:ct.Kind.NAME,value:a},value:c})}}else for(let i in t){let a=t[i],o=(0,dee.astFromValueUntyped)(a);o&&r.push({kind:ct.Kind.ARGUMENT,name:{kind:ct.Kind.NAME,value:i},value:o})}return{kind:ct.Kind.DIRECTIVE,name:{kind:ct.Kind.NAME,value:e},arguments:r}}ht.makeDirectiveNode=wf;function uT(e,t){let n=[];for(let r in t){let i=t[r],a=e==null?void 0:e.getDirective(r);if(Array.isArray(i))for(let o of i)n.push(wf(r,o,a));else n.push(wf(r,i,a))}return n}ht.makeDirectiveNodes=uT});var dU=w(Rl=>{"use strict";m();T();N();Object.defineProperty(Rl,"__esModule",{value:!0});Rl.createDefaultRules=Rl.validateGraphQlDocuments=void 0;var Cf=De();function Nee(e,t,n=lU()){var c;let r=new Set,i=new Map;for(let l of t)for(let d of l.definitions)d.kind===Cf.Kind.FRAGMENT_DEFINITION?i.set(d.name.value,d):r.add(d);let a={kind:Cf.Kind.DOCUMENT,definitions:Array.from([...r,...i.values()])},o=(0,Cf.validate)(e,a,n);for(let l of o)if(l.stack=l.message,l.locations)for(let d of l.locations)l.stack+=` +`+VB(e.errors,t):qB(e);if(t.includes(e))return"[Circular]";let n=[...t,e];if(RZ(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:HN(r,n)}else if(Array.isArray(e))return VB(e,n);return PZ(e,n)}function RZ(e){return typeof e.toJSON=="function"}function PZ(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>jB?"["+FZ(e)+"]":"{ "+n.map(([i,a])=>i+": "+HN(a,t)).join(", ")+" }"}function VB(e,t){if(e.length===0)return"[]";if(t.length>jB)return"[Array]";let n=e.length,r=[];for(let i=0;i{"use strict";m();T();N();Object.defineProperty(bl,"__esModule",{value:!0});bl.relocatedError=bl.createGraphQLError=void 0;var Kv=De(),wZ=["message","locations","path","nodes","source","positions","originalError","name","stack","extensions"];function LZ(e){return e!=null&&typeof e=="object"&&Object.keys(e).every(t=>wZ.includes(t))}function Gv(e,t){return t!=null&&t.originalError&&!(t.originalError instanceof Error)&&LZ(t.originalError)&&(t.originalError=Gv(t.originalError.message,t.originalError)),Kv.versionInfo.major>=17?new Kv.GraphQLError(e,t):new Kv.GraphQLError(e,t==null?void 0:t.nodes,t==null?void 0:t.source,t==null?void 0:t.positions,t==null?void 0:t.path,t==null?void 0:t.originalError,t==null?void 0:t.extensions)}bl.createGraphQLError=Gv;function CZ(e,t){return Gv(e.message,{nodes:e.nodes,source:e.source,positions:e.positions,path:t==null?e.path:t,originalError:e,extensions:e.extensions})}bl.relocatedError=CZ});var Rf=w(xi=>{"use strict";m();T();N();Object.defineProperty(xi,"__esModule",{value:!0});xi.hasOwnProperty=xi.promiseReduce=xi.isPromise=xi.isObjectLike=xi.isIterableObject=void 0;function BZ(e){return e!=null&&typeof e=="object"&&Symbol.iterator in e}xi.isIterableObject=BZ;function UZ(e){return typeof e=="object"&&e!==null}xi.isObjectLike=UZ;function KB(e){return(e==null?void 0:e.then)!=null}xi.isPromise=KB;function kZ(e,t,n){let r=n;for(let i of e)r=KB(r)?r.then(a=>t(a,i)):t(r,i);return r}xi.promiseReduce=kZ;function MZ(e,t){return Object.prototype.hasOwnProperty.call(e,t)}xi.hasOwnProperty=MZ});var Qv=w(ZN=>{"use strict";m();T();N();Object.defineProperty(ZN,"__esModule",{value:!0});ZN.getArgumentValues=void 0;var $v=Af(),uc=De(),XN=WN(),xZ=Rf();function qZ(e,t,n={}){var o;let r={},a=((o=t.arguments)!=null?o:[]).reduce((c,l)=>Q(x({},c),{[l.name.value]:l}),{});for(let{name:c,type:l,defaultValue:d}of e.args){let p=a[c];if(!p){if(d!==void 0)r[c]=d;else if((0,uc.isNonNullType)(l))throw(0,XN.createGraphQLError)(`Argument "${c}" of required type "${(0,$v.inspect)(l)}" was not provided.`,{nodes:[t]});continue}let y=p.value,I=y.kind===uc.Kind.NULL;if(y.kind===uc.Kind.VARIABLE){let F=y.name.value;if(n==null||!(0,xZ.hasOwnProperty)(n,F)){if(d!==void 0)r[c]=d;else if((0,uc.isNonNullType)(l))throw(0,XN.createGraphQLError)(`Argument "${c}" of required type "${(0,$v.inspect)(l)}" was provided the variable "$${F}" which was not provided a runtime value.`,{nodes:[y]});continue}I=n[F]==null}if(I&&(0,uc.isNonNullType)(l))throw(0,XN.createGraphQLError)(`Argument "${c}" of non-null type "${(0,$v.inspect)(l)}" must not be null.`,{nodes:[y]});let v=(0,uc.valueFromAST)(y,l,n);if(v===void 0)throw(0,XN.createGraphQLError)(`Argument "${c}" has invalid value ${(0,uc.print)(y)}.`,{nodes:[y]});r[c]=v}return r}ZN.getArgumentValues=qZ});var Yv=w(Ma=>{"use strict";m();T();N();Object.defineProperty(Ma,"__esModule",{value:!0});Ma.getDirective=Ma.getDirectives=Ma.getDirectiveInExtensions=Ma.getDirectivesInExtensions=void 0;var $B=Qv();function QB(e,t=["directives"]){return t.reduce((n,r)=>n==null?n:n[r],e==null?void 0:e.extensions)}Ma.getDirectivesInExtensions=QB;function GB(e,t){let n=e.filter(r=>r.name===t);if(n.length)return n.map(r=>{var i;return(i=r.args)!=null?i:{}})}function YB(e,t,n=["directives"]){let r=n.reduce((a,o)=>a==null?a:a[o],e==null?void 0:e.extensions);if(r===void 0)return;if(Array.isArray(r))return GB(r,t);let i=[];for(let[a,o]of Object.entries(r))if(Array.isArray(o))for(let c of o)i.push({name:a,args:c});else i.push({name:a,args:o});return GB(i,t)}Ma.getDirectiveInExtensions=YB;function VZ(e,t,n=["directives"]){let r=QB(t,n);if(r!=null&&r.length>0)return r;let a=(e&&e.getDirectives?e.getDirectives():[]).reduce((l,d)=>(l[d.name]=d,l),{}),o=[];t.astNode&&o.push(t.astNode),"extensionASTNodes"in t&&t.extensionASTNodes&&(o=[...o,...t.extensionASTNodes]);let c=[];for(let l of o)if(l.directives)for(let d of l.directives){let p=a[d.name.value];p&&c.push({name:d.name.value,args:(0,$B.getArgumentValues)(p,d)})}return c}Ma.getDirectives=VZ;function jZ(e,t,n,r=["directives"]){let i=YB(t,n,r);if(i!=null)return i;let a=e&&e.getDirective?e.getDirective(n):void 0;if(a==null)return;let o=[];t.astNode&&o.push(t.astNode),"extensionASTNodes"in t&&t.extensionASTNodes&&(o=[...o,...t.extensionASTNodes]);let c=[];for(let l of o)if(l.directives)for(let d of l.directives)d.name.value===n&&c.push((0,$B.getArgumentValues)(a,d));if(c.length)return c}Ma.getDirective=jZ});var Jv=w(eT=>{"use strict";m();T();N();Object.defineProperty(eT,"__esModule",{value:!0});eT.getFieldsWithDirectives=void 0;var KZ=De();function GZ(e,t={}){let n={},r=["ObjectTypeDefinition","ObjectTypeExtension"];t.includeInputTypes&&(r=[...r,"InputObjectTypeDefinition","InputObjectTypeExtension"]);let i=e.definitions.filter(a=>r.includes(a.kind));for(let a of i){let o=a.name.value;if(a.fields!=null){for(let c of a.fields)if(c.directives&&c.directives.length>0){let l=c.name.value,d=`${o}.${l}`,p=c.directives.map(y=>({name:y.name.value,args:(y.arguments||[]).reduce((I,v)=>Q(x({},I),{[v.name.value]:(0,KZ.valueFromASTUntyped)(v.value)}),{})}));n[d]=p}}}return n}eT.getFieldsWithDirectives=GZ});var JB=w(tT=>{"use strict";m();T();N();Object.defineProperty(tT,"__esModule",{value:!0});tT.getArgumentsWithDirectives=void 0;var Hv=De();function $Z(e){return e.kind===Hv.Kind.OBJECT_TYPE_DEFINITION||e.kind===Hv.Kind.OBJECT_TYPE_EXTENSION}function QZ(e){var r;let t={},n=e.definitions.filter($Z);for(let i of n)if(i.fields!=null)for(let a of i.fields){let o=(r=a.arguments)==null?void 0:r.filter(l=>{var d;return(d=l.directives)==null?void 0:d.length});if(!(o!=null&&o.length))continue;let c=t[`${i.name.value}.${a.name.value}`]={};for(let l of o){let d=l.directives.map(p=>({name:p.name.value,args:(p.arguments||[]).reduce((y,I)=>Q(x({},y),{[I.name.value]:(0,Hv.valueFromASTUntyped)(I.value)}),{})}));c[l.name.value]=d}}return t}tT.getArgumentsWithDirectives=QZ});var zv=w(nT=>{"use strict";m();T();N();Object.defineProperty(nT,"__esModule",{value:!0});nT.getImplementingTypes=void 0;var YZ=De();function JZ(e,t){let n=t.getTypeMap(),r=[];for(let i in n){let a=n[i];(0,YZ.isObjectType)(a)&&a.getInterfaces().find(c=>c.name===e)&&r.push(a.name)}return r}nT.getImplementingTypes=JZ});var Xv=w(rT=>{"use strict";m();T();N();Object.defineProperty(rT,"__esModule",{value:!0});rT.astFromType=void 0;var HZ=Af(),cc=De();function Wv(e){if((0,cc.isNonNullType)(e)){let t=Wv(e.ofType);if(t.kind===cc.Kind.NON_NULL_TYPE)throw new Error(`Invalid type node ${(0,HZ.inspect)(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:cc.Kind.NON_NULL_TYPE,type:t}}else if((0,cc.isListType)(e))return{kind:cc.Kind.LIST_TYPE,type:Wv(e.ofType)};return{kind:cc.Kind.NAMED_TYPE,name:{kind:cc.Kind.NAME,value:e.name}}}rT.astFromType=Wv});var aT=w(iT=>{"use strict";m();T();N();Object.defineProperty(iT,"__esModule",{value:!0});iT.astFromValueUntyped=void 0;var xa=De();function Zv(e){if(e===null)return{kind:xa.Kind.NULL};if(e===void 0)return null;if(Array.isArray(e)){let t=[];for(let n of e){let r=Zv(n);r!=null&&t.push(r)}return{kind:xa.Kind.LIST,values:t}}if(typeof e=="object"){let t=[];for(let n in e){let r=e[n],i=Zv(r);i&&t.push({kind:xa.Kind.OBJECT_FIELD,name:{kind:xa.Kind.NAME,value:n},value:i})}return{kind:xa.Kind.OBJECT,fields:t}}if(typeof e=="boolean")return{kind:xa.Kind.BOOLEAN,value:e};if(typeof e=="bigint")return{kind:xa.Kind.INT,value:String(e)};if(typeof e=="number"&&isFinite(e)){let t=String(e);return zZ.test(t)?{kind:xa.Kind.INT,value:t}:{kind:xa.Kind.FLOAT,value:t}}if(typeof e=="string")return{kind:xa.Kind.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${e}.`)}iT.astFromValueUntyped=Zv;var zZ=/^-?(?:0|[1-9][0-9]*)$/});var zB=w(sT=>{"use strict";m();T();N();Object.defineProperty(sT,"__esModule",{value:!0});sT.astFromValue=void 0;var WZ=Af(),pi=De(),XZ=aT(),HB=Rf();function Pf(e,t){if((0,pi.isNonNullType)(t)){let n=Pf(e,t.ofType);return(n==null?void 0:n.kind)===pi.Kind.NULL?null:n}if(e===null)return{kind:pi.Kind.NULL};if(e===void 0)return null;if((0,pi.isListType)(t)){let n=t.ofType;if((0,HB.isIterableObject)(e)){let r=[];for(let i of e){let a=Pf(i,n);a!=null&&r.push(a)}return{kind:pi.Kind.LIST,values:r}}return Pf(e,n)}if((0,pi.isInputObjectType)(t)){if(!(0,HB.isObjectLike)(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=Pf(e[r.name],r.type);i&&n.push({kind:pi.Kind.OBJECT_FIELD,name:{kind:pi.Kind.NAME,value:r.name},value:i})}return{kind:pi.Kind.OBJECT,fields:n}}if((0,pi.isLeafType)(t)){let n=t.serialize(e);return n==null?null:(0,pi.isEnumType)(t)?{kind:pi.Kind.ENUM,value:n}:t.name==="ID"&&typeof n=="string"&&ZZ.test(n)?{kind:pi.Kind.INT,value:n}:(0,XZ.astFromValueUntyped)(n)}console.assert(!1,"Unexpected input type: "+(0,WZ.inspect)(t))}sT.astFromValue=Pf;var ZZ=/^-?(?:0|[1-9][0-9]*)$/});var WB=w(oT=>{"use strict";m();T();N();Object.defineProperty(oT,"__esModule",{value:!0});oT.getDescriptionNode=void 0;var eee=De();function tee(e){var t;if((t=e.astNode)!=null&&t.description)return Q(x({},e.astNode.description),{block:!0});if(e.description)return{kind:eee.Kind.STRING,value:e.description,block:!0}}oT.getDescriptionNode=tee});var Al=w(br=>{"use strict";m();T();N();Object.defineProperty(br,"__esModule",{value:!0});br.memoize2of5=br.memoize2of4=br.memoize5=br.memoize4=br.memoize3=br.memoize2=br.memoize1=void 0;function nee(e){let t=new WeakMap;return function(r){let i=t.get(r);if(i===void 0){let a=e(r);return t.set(r,a),a}return i}}br.memoize1=nee;function ree(e){let t=new WeakMap;return function(r,i){let a=t.get(r);if(!a){a=new WeakMap,t.set(r,a);let c=e(r,i);return a.set(i,c),c}let o=a.get(i);if(o===void 0){let c=e(r,i);return a.set(i,c),c}return o}}br.memoize2=ree;function iee(e){let t=new WeakMap;return function(r,i,a){let o=t.get(r);if(!o){o=new WeakMap,t.set(r,o);let d=new WeakMap;o.set(i,d);let p=e(r,i,a);return d.set(a,p),p}let c=o.get(i);if(!c){c=new WeakMap,o.set(i,c);let d=e(r,i,a);return c.set(a,d),d}let l=c.get(a);if(l===void 0){let d=e(r,i,a);return c.set(a,d),d}return l}}br.memoize3=iee;function aee(e){let t=new WeakMap;return function(r,i,a,o){let c=t.get(r);if(!c){c=new WeakMap,t.set(r,c);let y=new WeakMap;c.set(i,y);let I=new WeakMap;y.set(a,I);let v=e(r,i,a,o);return I.set(o,v),v}let l=c.get(i);if(!l){l=new WeakMap,c.set(i,l);let y=new WeakMap;l.set(a,y);let I=e(r,i,a,o);return y.set(o,I),I}let d=l.get(a);if(!d){let y=new WeakMap;l.set(a,y);let I=e(r,i,a,o);return y.set(o,I),I}let p=d.get(o);if(p===void 0){let y=e(r,i,a,o);return d.set(o,y),y}return p}}br.memoize4=aee;function see(e){let t=new WeakMap;return function(r,i,a,o,c){let l=t.get(r);if(!l){l=new WeakMap,t.set(r,l);let v=new WeakMap;l.set(i,v);let F=new WeakMap;v.set(a,F);let k=new WeakMap;F.set(o,k);let K=e(r,i,a,o,c);return k.set(c,K),K}let d=l.get(i);if(!d){d=new WeakMap,l.set(i,d);let v=new WeakMap;d.set(a,v);let F=new WeakMap;v.set(o,F);let k=e(r,i,a,o,c);return F.set(c,k),k}let p=d.get(a);if(!p){p=new WeakMap,d.set(a,p);let v=new WeakMap;p.set(o,v);let F=e(r,i,a,o,c);return v.set(c,F),F}let y=p.get(o);if(!y){y=new WeakMap,p.set(o,y);let v=e(r,i,a,o,c);return y.set(c,v),v}let I=y.get(c);if(I===void 0){let v=e(r,i,a,o,c);return y.set(c,v),v}return I}}br.memoize5=see;function oee(e){let t=new WeakMap;return function(r,i,a,o){let c=t.get(r);if(!c){c=new WeakMap,t.set(r,c);let d=e(r,i,a,o);return c.set(i,d),d}let l=c.get(i);if(l===void 0){let d=e(r,i,a,o);return c.set(i,d),d}return l}}br.memoize2of4=oee;function uee(e){let t=new WeakMap;return function(r,i,a,o,c){let l=t.get(r);if(!l){l=new WeakMap,t.set(r,l);let p=e(r,i,a,o,c);return l.set(i,p),p}let d=l.get(i);if(d===void 0){let p=e(r,i,a,o,c);return l.set(i,p),p}return d}}br.memoize2of5=uee});var Ff=w(mi=>{"use strict";m();T();N();Object.defineProperty(mi,"__esModule",{value:!0});mi.getRootTypeMap=mi.getRootTypes=mi.getRootTypeNames=mi.getDefinedRootType=void 0;var cee=WN(),eS=Al();function lee(e,t,n){let i=(0,mi.getRootTypeMap)(e).get(t);if(i==null)throw(0,cee.createGraphQLError)(`Schema is not configured to execute ${t} operation.`,{nodes:n});return i}mi.getDefinedRootType=lee;mi.getRootTypeNames=(0,eS.memoize1)(function(t){let n=(0,mi.getRootTypes)(t);return new Set([...n].map(r=>r.name))});mi.getRootTypes=(0,eS.memoize1)(function(t){let n=(0,mi.getRootTypeMap)(t);return new Set(n.values())});mi.getRootTypeMap=(0,eS.memoize1)(function(t){let n=new Map,r=t.getQueryType();r&&n.set("query",r);let i=t.getMutationType();i&&n.set("mutation",i);let a=t.getSubscriptionType();return a&&n.set("subscription",a),n})});var aS=w(ht=>{"use strict";m();T();N();Object.defineProperty(ht,"__esModule",{value:!0});ht.makeDirectiveNodes=ht.makeDirectiveNode=ht.makeDeprecatedDirective=ht.astFromEnumValue=ht.astFromInputField=ht.astFromField=ht.astFromScalarType=ht.astFromEnumType=ht.astFromInputObjectType=ht.astFromUnionType=ht.astFromInterfaceType=ht.astFromObjectType=ht.astFromArg=ht.getDeprecatableDirectiveNodes=ht.getDirectiveNodes=ht.astFromDirective=ht.astFromSchema=ht.printSchemaWithDirectives=ht.getDocumentNodeFromSchema=void 0;var ct=De(),lc=Xv(),tS=zB(),dee=aT(),qi=WB(),nS=Yv(),fee=bf(),pee=Ff();function XB(e,t={}){let n=t.pathToDirectivesInExtensions,r=e.getTypeMap(),i=ZB(e,n),a=i!=null?[i]:[],o=e.getDirectives();for(let c of o)(0,ct.isSpecifiedDirective)(c)||a.push(eU(c,e,n));for(let c in r){let l=r[c],d=(0,ct.isSpecifiedScalarType)(l),p=(0,ct.isIntrospectionType)(l);if(!(d||p))if((0,ct.isObjectType)(l))a.push(tU(l,e,n));else if((0,ct.isInterfaceType)(l))a.push(nU(l,e,n));else if((0,ct.isUnionType)(l))a.push(rU(l,e,n));else if((0,ct.isInputObjectType)(l))a.push(iU(l,e,n));else if((0,ct.isEnumType)(l))a.push(aU(l,e,n));else if((0,ct.isScalarType)(l))a.push(sU(l,e,n));else throw new Error(`Unknown type ${l}.`)}return{kind:ct.Kind.DOCUMENT,definitions:a}}ht.getDocumentNodeFromSchema=XB;function mee(e,t={}){let n=XB(e,t);return(0,ct.print)(n)}ht.printSchemaWithDirectives=mee;function ZB(e,t){let n=new Map([["query",void 0],["mutation",void 0],["subscription",void 0]]),r=[];if(e.astNode!=null&&r.push(e.astNode),e.extensionASTNodes!=null)for(let d of e.extensionASTNodes)r.push(d);for(let d of r)if(d.operationTypes)for(let p of d.operationTypes)n.set(p.operation,p);let i=(0,pee.getRootTypeMap)(e);for(let[d,p]of n){let y=i.get(d);if(y!=null){let I=(0,lc.astFromType)(y);p!=null?p.type=I:n.set(d,{kind:ct.Kind.OPERATION_TYPE_DEFINITION,operation:d,type:I})}}let a=[...n.values()].filter(fee.isSome),o=dc(e,e,t);if(!a.length&&!o.length)return null;let c={kind:a!=null?ct.Kind.SCHEMA_DEFINITION:ct.Kind.SCHEMA_EXTENSION,operationTypes:a,directives:o},l=(0,qi.getDescriptionNode)(e);return l&&(c.description=l),c}ht.astFromSchema=ZB;function eU(e,t,n){var r,i;return{kind:ct.Kind.DIRECTIVE_DEFINITION,description:(0,qi.getDescriptionNode)(e),name:{kind:ct.Kind.NAME,value:e.name},arguments:(r=e.args)==null?void 0:r.map(a=>rS(a,t,n)),repeatable:e.isRepeatable,locations:((i=e.locations)==null?void 0:i.map(a=>({kind:ct.Kind.NAME,value:a})))||[]}}ht.astFromDirective=eU;function dc(e,t,n){let r=(0,nS.getDirectivesInExtensions)(e,n),i=[];e.astNode!=null&&i.push(e.astNode),"extensionASTNodes"in e&&e.extensionASTNodes!=null&&(i=i.concat(e.extensionASTNodes));let a;if(r!=null)a=uT(t,r);else{a=[];for(let o of i)o.directives&&a.push(...o.directives)}return a}ht.getDirectiveNodes=dc;function Lf(e,t,n){var c,l;let r=[],i=null,a=(0,nS.getDirectivesInExtensions)(e,n),o;return a!=null?o=uT(t,a):o=(c=e.astNode)==null?void 0:c.directives,o!=null&&(r=o.filter(d=>d.name.value!=="deprecated"),e.deprecationReason!=null&&(i=(l=o.filter(d=>d.name.value==="deprecated"))==null?void 0:l[0])),e.deprecationReason!=null&&i==null&&(i=cU(e.deprecationReason)),i==null?r:[i].concat(r)}ht.getDeprecatableDirectiveNodes=Lf;function rS(e,t,n){var r;return{kind:ct.Kind.INPUT_VALUE_DEFINITION,description:(0,qi.getDescriptionNode)(e),name:{kind:ct.Kind.NAME,value:e.name},type:(0,lc.astFromType)(e.type),defaultValue:e.defaultValue!==void 0&&(r=(0,tS.astFromValue)(e.defaultValue,e.type))!=null?r:void 0,directives:Lf(e,t,n)}}ht.astFromArg=rS;function tU(e,t,n){return{kind:ct.Kind.OBJECT_TYPE_DEFINITION,description:(0,qi.getDescriptionNode)(e),name:{kind:ct.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(r=>iS(r,t,n)),interfaces:Object.values(e.getInterfaces()).map(r=>(0,lc.astFromType)(r)),directives:dc(e,t,n)}}ht.astFromObjectType=tU;function nU(e,t,n){let r={kind:ct.Kind.INTERFACE_TYPE_DEFINITION,description:(0,qi.getDescriptionNode)(e),name:{kind:ct.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(i=>iS(i,t,n)),directives:dc(e,t,n)};return"getInterfaces"in e&&(r.interfaces=Object.values(e.getInterfaces()).map(i=>(0,lc.astFromType)(i))),r}ht.astFromInterfaceType=nU;function rU(e,t,n){return{kind:ct.Kind.UNION_TYPE_DEFINITION,description:(0,qi.getDescriptionNode)(e),name:{kind:ct.Kind.NAME,value:e.name},directives:dc(e,t,n),types:e.getTypes().map(r=>(0,lc.astFromType)(r))}}ht.astFromUnionType=rU;function iU(e,t,n){return{kind:ct.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:(0,qi.getDescriptionNode)(e),name:{kind:ct.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(r=>oU(r,t,n)),directives:dc(e,t,n)}}ht.astFromInputObjectType=iU;function aU(e,t,n){return{kind:ct.Kind.ENUM_TYPE_DEFINITION,description:(0,qi.getDescriptionNode)(e),name:{kind:ct.Kind.NAME,value:e.name},values:Object.values(e.getValues()).map(r=>uU(r,t,n)),directives:dc(e,t,n)}}ht.astFromEnumType=aU;function sU(e,t,n){var o;let r=(0,nS.getDirectivesInExtensions)(e,n),i=r?uT(t,r):((o=e.astNode)==null?void 0:o.directives)||[],a=e.specifiedByUrl||e.specifiedByURL;if(a&&!i.some(c=>c.name.value==="specifiedBy")){let c={url:a};i.push(wf("specifiedBy",c))}return{kind:ct.Kind.SCALAR_TYPE_DEFINITION,description:(0,qi.getDescriptionNode)(e),name:{kind:ct.Kind.NAME,value:e.name},directives:i}}ht.astFromScalarType=sU;function iS(e,t,n){return{kind:ct.Kind.FIELD_DEFINITION,description:(0,qi.getDescriptionNode)(e),name:{kind:ct.Kind.NAME,value:e.name},arguments:e.args.map(r=>rS(r,t,n)),type:(0,lc.astFromType)(e.type),directives:Lf(e,t,n)}}ht.astFromField=iS;function oU(e,t,n){var r;return{kind:ct.Kind.INPUT_VALUE_DEFINITION,description:(0,qi.getDescriptionNode)(e),name:{kind:ct.Kind.NAME,value:e.name},type:(0,lc.astFromType)(e.type),directives:Lf(e,t,n),defaultValue:(r=(0,tS.astFromValue)(e.defaultValue,e.type))!=null?r:void 0}}ht.astFromInputField=oU;function uU(e,t,n){return{kind:ct.Kind.ENUM_VALUE_DEFINITION,description:(0,qi.getDescriptionNode)(e),name:{kind:ct.Kind.NAME,value:e.name},directives:Lf(e,t,n)}}ht.astFromEnumValue=uU;function cU(e){return wf("deprecated",{reason:e},ct.GraphQLDeprecatedDirective)}ht.makeDeprecatedDirective=cU;function wf(e,t,n){let r=[];if(n!=null)for(let i of n.args){let a=i.name,o=t[a];if(o!==void 0){let c=(0,tS.astFromValue)(o,i.type);c&&r.push({kind:ct.Kind.ARGUMENT,name:{kind:ct.Kind.NAME,value:a},value:c})}}else for(let i in t){let a=t[i],o=(0,dee.astFromValueUntyped)(a);o&&r.push({kind:ct.Kind.ARGUMENT,name:{kind:ct.Kind.NAME,value:i},value:o})}return{kind:ct.Kind.DIRECTIVE,name:{kind:ct.Kind.NAME,value:e},arguments:r}}ht.makeDirectiveNode=wf;function uT(e,t){let n=[];for(let r in t){let i=t[r],a=e==null?void 0:e.getDirective(r);if(Array.isArray(i))for(let o of i)n.push(wf(r,o,a));else n.push(wf(r,i,a))}return n}ht.makeDirectiveNodes=uT});var dU=w(Rl=>{"use strict";m();T();N();Object.defineProperty(Rl,"__esModule",{value:!0});Rl.createDefaultRules=Rl.validateGraphQlDocuments=void 0;var Cf=De();function Nee(e,t,n=lU()){var c;let r=new Set,i=new Map;for(let l of t)for(let d of l.definitions)d.kind===Cf.Kind.FRAGMENT_DEFINITION?i.set(d.name.value,d):r.add(d);let a={kind:Cf.Kind.DOCUMENT,definitions:Array.from([...r,...i.values()])},o=(0,Cf.validate)(e,a,n);for(let l of o)if(l.stack=l.message,l.locations)for(let d of l.locations)l.stack+=` at ${(c=l.source)==null?void 0:c.name}:${d.line}:${d.column}`;return o}Rl.validateGraphQlDocuments=Nee;function lU(){let e=["NoUnusedFragmentsRule","NoUnusedVariablesRule","KnownDirectivesRule"];return Cf.versionInfo.major<15&&(e=e.map(t=>t.replace(/Rule$/,""))),Cf.specifiedRules.filter(t=>!e.includes(t.name))}Rl.createDefaultRules=lU});var fU=w(cT=>{"use strict";m();T();N();Object.defineProperty(cT,"__esModule",{value:!0});cT.parseGraphQLJSON=void 0;var Tee=De();function Eee(e){return e=e.toString(),e.charCodeAt(0)===65279&&(e=e.slice(1)),e}function hee(e){return JSON.parse(Eee(e))}function yee(e,t,n){let r=hee(t);if(r.data&&(r=r.data),r.kind==="Document")return{location:e,document:r};if(r.__schema){let i=(0,Tee.buildClientSchema)(r,n);return{location:e,schema:i}}else if(typeof r=="string")return{location:e,rawSDL:r};throw new Error("Not valid JSON content")}cT.parseGraphQLJSON=yee});var oS=w(Bn=>{"use strict";m();T();N();Object.defineProperty(Bn,"__esModule",{value:!0});Bn.getBlockStringIndentation=Bn.dedentBlockStringValue=Bn.getLeadingCommentBlock=Bn.getComment=Bn.getDescription=Bn.printWithComments=Bn.printComment=Bn.pushComment=Bn.collectComment=Bn.resetComments=void 0;var TU=De(),Iee=80,Pl={};function gee(){Pl={}}Bn.resetComments=gee;function _ee(e){var n;let t=(n=e.name)==null?void 0:n.value;if(t!=null)switch(Bf(e,t),e.kind){case"EnumTypeDefinition":if(e.values)for(let r of e.values)Bf(r,t,r.name.value);break;case"ObjectTypeDefinition":case"InputObjectTypeDefinition":case"InterfaceTypeDefinition":if(e.fields){for(let r of e.fields)if(Bf(r,t,r.name.value),bee(r)&&r.arguments)for(let i of r.arguments)Bf(i,t,r.name.value,i.name.value)}break}}Bn.collectComment=_ee;function Bf(e,t,n,r){let i=sS(e);if(typeof i!="string"||i.length===0)return;let a=[t];n&&(a.push(n),r&&a.push(r));let o=a.join(".");Pl[o]||(Pl[o]=[]),Pl[o].push(i)}Bn.pushComment=Bf;function EU(e){return` # `+e.replace(/\n/g,` # `)}Bn.printComment=EU;function Me(e,t){return e?e.filter(n=>n).join(t||""):""}function pU(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(` @@ -224,14 +224,14 @@ ${t?n:Uf(n)} )`):On("(",Me(t,", "),")"))+(n?" repeatable":"")+" on "+Me(r," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Me(["extend schema",Me(e," "),ca(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Me(["extend scalar",e,Me(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Me(["extend type",e,On("implements ",Me(t," & ")),Me(n," "),ca(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Me(["extend interface",e,On("implements ",Me(t," & ")),Me(n," "),ca(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Me(["extend union",e,Me(t," "),On("= ",Me(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Me(["extend enum",e,Me(t," "),ca(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Me(["extend input",e,Me(t," "),ca(n)]," ")}},Oee=Object.keys(mU).reduce((e,t)=>Q(x({},e),{[t]:{leave:vee(mU[t].leave)}}),{});function Dee(e){return(0,TU.visit)(e,Oee)}Bn.printWithComments=Dee;function bee(e){return e.kind==="FieldDefinition"}function Aee(e,t){if(e.description!=null)return e.description.value;if(t!=null&&t.commentDescriptions)return sS(e)}Bn.getDescription=Aee;function sS(e){let t=hU(e);if(t!==void 0)return yU(` ${t}`)}Bn.getComment=sS;function hU(e){let t=e.loc;if(!t)return;let n=[],r=t.startToken.prev;for(;r!=null&&r.kind===TU.TokenKind.COMMENT&&r.next!=null&&r.prev!=null&&r.line+1===r.next.line&&r.line!==r.prev.line;){let i=String(r.value);n.push(i),r=r.prev}return n.length>0?n.reverse().join(` `):void 0}Bn.getLeadingCommentBlock=hU;function yU(e){let t=e.split(/\r\n|[\n\r]/g),n=IU(t);if(n!==0)for(let r=1;r0&&NU(t[0]);)t.shift();for(;t.length>0&&NU(t[t.length-1]);)t.pop();return t.join(` -`)}Bn.dedentBlockStringValue=yU;function IU(e){let t=null;for(let n=1;n{"use strict";m();T();N();Object.defineProperty(fu,"__esModule",{value:!0});fu.isDescribable=fu.transformCommentsToDescriptions=fu.parseGraphQLSDL=void 0;var ji=De(),_U=oS();function Ree(e,t,n={}){let r;try{n.commentDescriptions&&t.includes("#")?(r=vU(t,n),n.noLocation&&(r=(0,ji.parse)((0,ji.print)(r),n))):r=(0,ji.parse)(new ji.Source(t,e),n)}catch(i){if(i.message.includes("EOF")&&t.replace(/(\#[^*]*)/g,"").trim()==="")r={kind:ji.Kind.DOCUMENT,definitions:[]};else throw i}return{location:e,document:r}}fu.parseGraphQLSDL=Ree;function vU(e,t={}){let n=(0,ji.parse)(e,Q(x({},t),{noLocation:!1}));return(0,ji.visit)(n,{leave:i=>{if(SU(i)){let a=(0,_U.getLeadingCommentBlock)(i);if(a!==void 0){let o=(0,_U.dedentBlockStringValue)(` +`)}Bn.dedentBlockStringValue=yU;function IU(e){let t=null;for(let n=1;n{"use strict";m();T();N();Object.defineProperty(fu,"__esModule",{value:!0});fu.isDescribable=fu.transformCommentsToDescriptions=fu.parseGraphQLSDL=void 0;var Vi=De(),_U=oS();function Ree(e,t,n={}){let r;try{n.commentDescriptions&&t.includes("#")?(r=vU(t,n),n.noLocation&&(r=(0,Vi.parse)((0,Vi.print)(r),n))):r=(0,Vi.parse)(new Vi.Source(t,e),n)}catch(i){if(i.message.includes("EOF")&&t.replace(/(\#[^*]*)/g,"").trim()==="")r={kind:Vi.Kind.DOCUMENT,definitions:[]};else throw i}return{location:e,document:r}}fu.parseGraphQLSDL=Ree;function vU(e,t={}){let n=(0,Vi.parse)(e,Q(x({},t),{noLocation:!1}));return(0,Vi.visit)(n,{leave:i=>{if(SU(i)){let a=(0,_U.getLeadingCommentBlock)(i);if(a!==void 0){let o=(0,_U.dedentBlockStringValue)(` `+a),c=o.includes(` `);return i.description?Q(x({},i),{description:Q(x({},i.description),{value:i.description.value+` -`+o,block:!0})}):Q(x({},i),{description:{kind:ji.Kind.STRING,value:o,block:c}})}}}})}fu.transformCommentsToDescriptions=vU;function SU(e){return(0,ji.isTypeSystemDefinitionNode)(e)||e.kind===ji.Kind.FIELD_DEFINITION||e.kind===ji.Kind.INPUT_VALUE_DEFINITION||e.kind===ji.Kind.ENUM_VALUE_DEFINITION}fu.isDescribable=SU});var LU=w(dT=>{"use strict";m();T();N();Object.defineProperty(dT,"__esModule",{value:!0});dT.buildOperationNodeForField=void 0;var lt=De(),RU=Ff(),lS=[],lT=new Map;function PU(e){lS.push(e)}function DU(){lS=[]}function bU(){lT=new Map}function Pee({schema:e,kind:t,field:n,models:r,ignore:i=[],depthLimit:a,circularReferenceDepth:o,argNames:c,selectedFields:l=!0}){DU(),bU();let d=(0,RU.getRootTypeNames)(e),p=Fee({schema:e,fieldName:n,kind:t,models:r||[],ignore:i,depthLimit:a||1/0,circularReferenceDepth:o||1,argNames:c,selectedFields:l,rootTypeNames:d});return p.variableDefinitions=[...lS],DU(),bU(),p}dT.buildOperationNodeForField=Pee;function Fee({schema:e,fieldName:t,kind:n,models:r,ignore:i,depthLimit:a,circularReferenceDepth:o,argNames:c,selectedFields:l,rootTypeNames:d}){let p=(0,RU.getDefinedRootType)(e,n),y=p.getFields()[t],I=`${t}_${n}`;if(y.args)for(let v of y.args){let F=v.name;(!c||c.includes(F))&&PU(FU(v,F))}return{kind:lt.Kind.OPERATION_DEFINITION,operation:n,name:{kind:lt.Kind.NAME,value:I},variableDefinitions:[],selectionSet:{kind:lt.Kind.SELECTION_SET,selections:[wU({type:p,field:y,models:r,firstCall:!0,path:[],ancestors:[],ignore:i,depthLimit:a,circularReferenceDepth:o,schema:e,depth:0,argNames:c,selectedFields:l,rootTypeNames:d})]}}}function cS({parent:e,type:t,models:n,firstCall:r,path:i,ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:d,depth:p,argNames:y,selectedFields:I,rootTypeNames:v}){if(!(typeof I=="boolean"&&p>c)){if((0,lt.isUnionType)(t)){let F=t.getTypes();return{kind:lt.Kind.SELECTION_SET,selections:F.filter(k=>!uS([...a,k],{depth:l})).map(k=>({kind:lt.Kind.INLINE_FRAGMENT,typeCondition:{kind:lt.Kind.NAMED_TYPE,name:{kind:lt.Kind.NAME,value:k.name}},selectionSet:cS({parent:t,type:k,models:n,path:i,ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:d,depth:p,argNames:y,selectedFields:I,rootTypeNames:v})})).filter(k=>{var K,J;return((J=(K=k==null?void 0:k.selectionSet)==null?void 0:K.selections)==null?void 0:J.length)>0})}}if((0,lt.isInterfaceType)(t)){let F=Object.values(d.getTypeMap()).filter(k=>(0,lt.isObjectType)(k)&&k.getInterfaces().includes(t));return{kind:lt.Kind.SELECTION_SET,selections:F.filter(k=>!uS([...a,k],{depth:l})).map(k=>({kind:lt.Kind.INLINE_FRAGMENT,typeCondition:{kind:lt.Kind.NAMED_TYPE,name:{kind:lt.Kind.NAME,value:k.name}},selectionSet:cS({parent:t,type:k,models:n,path:i,ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:d,depth:p,argNames:y,selectedFields:I,rootTypeNames:v})})).filter(k=>{var K,J;return((J=(K=k==null?void 0:k.selectionSet)==null?void 0:K.selections)==null?void 0:J.length)>0})}}if((0,lt.isObjectType)(t)&&!v.has(t.name)){let F=o.includes(t.name)||o.includes(`${e.name}.${i[i.length-1]}`),k=n.includes(t.name);if(!r&&k&&!F)return{kind:lt.Kind.SELECTION_SET,selections:[{kind:lt.Kind.FIELD,name:{kind:lt.Kind.NAME,value:"id"}}]};let K=t.getFields();return{kind:lt.Kind.SELECTION_SET,selections:Object.keys(K).filter(J=>!uS([...a,(0,lt.getNamedType)(K[J].type)],{depth:l})).map(J=>{let se=typeof I=="object"?I[J]:!0;return se?wU({type:t,field:K[J],models:n,path:[...i,J],ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:d,depth:p,argNames:y,selectedFields:se,rootTypeNames:v}):null}).filter(J=>{var se,ie;return J==null?!1:"selectionSet"in J?!!((ie=(se=J.selectionSet)==null?void 0:se.selections)!=null&&ie.length):!0})}}}}function FU(e,t){function n(r){return(0,lt.isListType)(r)?{kind:lt.Kind.LIST_TYPE,type:n(r.ofType)}:(0,lt.isNonNullType)(r)?{kind:lt.Kind.NON_NULL_TYPE,type:n(r.ofType)}:{kind:lt.Kind.NAMED_TYPE,name:{kind:lt.Kind.NAME,value:r.name}}}return{kind:lt.Kind.VARIABLE_DEFINITION,variable:{kind:lt.Kind.VARIABLE,name:{kind:lt.Kind.NAME,value:t||e.name}},type:n(e.type)}}function AU(e,t){return[...t,e].join("_")}function wU({type:e,field:t,models:n,firstCall:r,path:i,ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:d,depth:p,argNames:y,selectedFields:I,rootTypeNames:v}){let F=(0,lt.getNamedType)(t.type),k=[],K=!1;if(t.args&&t.args.length&&(k=t.args.map(Te=>{let de=AU(Te.name,i);return y&&!y.includes(de)?((0,lt.isNonNullType)(Te.type)&&(K=!0),null):(r||PU(FU(Te,de)),{kind:lt.Kind.ARGUMENT,name:{kind:lt.Kind.NAME,value:Te.name},value:{kind:lt.Kind.VARIABLE,name:{kind:lt.Kind.NAME,value:AU(Te.name,i)}}})}).filter(Boolean)),K)return null;let J=[...i,t.name],se=J.join("."),ie=t.name;return lT.has(se)&&lT.get(se)!==t.type.toString()&&(ie+=t.type.toString().replace("!","NonNull").replace("[","List").replace("]","")),lT.set(se,t.type.toString()),!(0,lt.isScalarType)(F)&&!(0,lt.isEnumType)(F)?Q(x({kind:lt.Kind.FIELD,name:{kind:lt.Kind.NAME,value:t.name}},ie!==t.name&&{alias:{kind:lt.Kind.NAME,value:ie}}),{selectionSet:cS({parent:e,type:F,models:n,firstCall:r,path:J,ancestors:[...a,e],ignore:o,depthLimit:c,circularReferenceDepth:l,schema:d,depth:p+1,argNames:y,selectedFields:I,rootTypeNames:v})||void 0,arguments:k}):Q(x({kind:lt.Kind.FIELD,name:{kind:lt.Kind.NAME,value:t.name}},ie!==t.name&&{alias:{kind:lt.Kind.NAME,value:ie}}),{arguments:k})}function uS(e,t={depth:1}){let n=e[e.length-1];return(0,lt.isScalarType)(n)?!1:e.filter(i=>i.name===n.name).length>t.depth}});var BU=w(fT=>{"use strict";m();T();N();Object.defineProperty(fT,"__esModule",{value:!0});fT.DirectiveLocation=void 0;var CU;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(CU||(fT.DirectiveLocation=CU={}))});var fc=w(pT=>{"use strict";m();T();N();Object.defineProperty(pT,"__esModule",{value:!0});pT.MapperKind=void 0;var UU;(function(e){e.TYPE="MapperKind.TYPE",e.SCALAR_TYPE="MapperKind.SCALAR_TYPE",e.ENUM_TYPE="MapperKind.ENUM_TYPE",e.COMPOSITE_TYPE="MapperKind.COMPOSITE_TYPE",e.OBJECT_TYPE="MapperKind.OBJECT_TYPE",e.INPUT_OBJECT_TYPE="MapperKind.INPUT_OBJECT_TYPE",e.ABSTRACT_TYPE="MapperKind.ABSTRACT_TYPE",e.UNION_TYPE="MapperKind.UNION_TYPE",e.INTERFACE_TYPE="MapperKind.INTERFACE_TYPE",e.ROOT_OBJECT="MapperKind.ROOT_OBJECT",e.QUERY="MapperKind.QUERY",e.MUTATION="MapperKind.MUTATION",e.SUBSCRIPTION="MapperKind.SUBSCRIPTION",e.DIRECTIVE="MapperKind.DIRECTIVE",e.FIELD="MapperKind.FIELD",e.COMPOSITE_FIELD="MapperKind.COMPOSITE_FIELD",e.OBJECT_FIELD="MapperKind.OBJECT_FIELD",e.ROOT_FIELD="MapperKind.ROOT_FIELD",e.QUERY_ROOT_FIELD="MapperKind.QUERY_ROOT_FIELD",e.MUTATION_ROOT_FIELD="MapperKind.MUTATION_ROOT_FIELD",e.SUBSCRIPTION_ROOT_FIELD="MapperKind.SUBSCRIPTION_ROOT_FIELD",e.INTERFACE_FIELD="MapperKind.INTERFACE_FIELD",e.INPUT_OBJECT_FIELD="MapperKind.INPUT_OBJECT_FIELD",e.ARGUMENT="MapperKind.ARGUMENT",e.ENUM_VALUE="MapperKind.ENUM_VALUE"})(UU||(pT.MapperKind=UU={}))});var dS=w(mT=>{"use strict";m();T();N();Object.defineProperty(mT,"__esModule",{value:!0});mT.getObjectTypeFromTypeMap=void 0;var wee=De();function Lee(e,t){if(t){let n=e[t.name];if((0,wee.isObjectType)(n))return n}}mT.getObjectTypeFromTypeMap=Lee});var mS=w(qa=>{"use strict";m();T();N();Object.defineProperty(qa,"__esModule",{value:!0});qa.getBuiltInForStub=qa.isNamedStub=qa.createStub=qa.createNamedStub=void 0;var dr=De();function fS(e,t){let n;return t==="object"?n=dr.GraphQLObjectType:t==="interface"?n=dr.GraphQLInterfaceType:n=dr.GraphQLInputObjectType,new n({name:e,fields:{_fake:{type:dr.GraphQLString}}})}qa.createNamedStub=fS;function pS(e,t){switch(e.kind){case dr.Kind.LIST_TYPE:return new dr.GraphQLList(pS(e.type,t));case dr.Kind.NON_NULL_TYPE:return new dr.GraphQLNonNull(pS(e.type,t));default:return t==="output"?fS(e.name.value,"object"):fS(e.name.value,"input")}}qa.createStub=pS;function Cee(e){if("getFields"in e){let t=e.getFields();for(let n in t)return t[n].name==="_fake"}return!1}qa.isNamedStub=Cee;function Bee(e){switch(e.name){case dr.GraphQLInt.name:return dr.GraphQLInt;case dr.GraphQLFloat.name:return dr.GraphQLFloat;case dr.GraphQLString.name:return dr.GraphQLString;case dr.GraphQLBoolean.name:return dr.GraphQLBoolean;case dr.GraphQLID.name:return dr.GraphQLID;default:return e}}qa.getBuiltInForStub=Bee});var TT=w(NT=>{"use strict";m();T();N();Object.defineProperty(NT,"__esModule",{value:!0});NT.rewireTypes=void 0;var Jn=De(),kU=mS();function Uee(e,t){let n=Object.create(null);for(let I in e)n[I]=e[I];let r=Object.create(null);for(let I in n){let v=n[I];if(v==null||I.startsWith("__"))continue;let F=v.name;if(!F.startsWith("__")){if(r[F]!=null){console.warn(`Duplicate schema type name ${F} found; keeping the existing one found in the schema`);continue}r[F]=v}}for(let I in r)r[I]=c(r[I]);let i=t.map(I=>a(I));return{typeMap:r,directives:i};function a(I){if((0,Jn.isSpecifiedDirective)(I))return I;let v=I.toConfig();return v.args=o(v.args),new Jn.GraphQLDirective(v)}function o(I){let v={};for(let F in I){let k=I[F],K=y(k.type);K!=null&&(k.type=K,v[F]=k)}return v}function c(I){if((0,Jn.isObjectType)(I)){let v=I.toConfig(),F=Q(x({},v),{fields:()=>l(v.fields),interfaces:()=>p(v.interfaces)});return new Jn.GraphQLObjectType(F)}else if((0,Jn.isInterfaceType)(I)){let v=I.toConfig(),F=Q(x({},v),{fields:()=>l(v.fields)});return"interfaces"in F&&(F.interfaces=()=>p(v.interfaces)),new Jn.GraphQLInterfaceType(F)}else if((0,Jn.isUnionType)(I)){let v=I.toConfig(),F=Q(x({},v),{types:()=>p(v.types)});return new Jn.GraphQLUnionType(F)}else if((0,Jn.isInputObjectType)(I)){let v=I.toConfig(),F=Q(x({},v),{fields:()=>d(v.fields)});return new Jn.GraphQLInputObjectType(F)}else if((0,Jn.isEnumType)(I)){let v=I.toConfig();return new Jn.GraphQLEnumType(v)}else if((0,Jn.isScalarType)(I)){if((0,Jn.isSpecifiedScalarType)(I))return I;let v=I.toConfig();return new Jn.GraphQLScalarType(v)}throw new Error(`Unexpected schema type: ${I}`)}function l(I){let v={};for(let F in I){let k=I[F],K=y(k.type);K!=null&&k.args&&(k.type=K,k.args=o(k.args),v[F]=k)}return v}function d(I){let v={};for(let F in I){let k=I[F],K=y(k.type);K!=null&&(k.type=K,v[F]=k)}return v}function p(I){let v=[];for(let F of I){let k=y(F);k!=null&&v.push(k)}return v}function y(I){if((0,Jn.isListType)(I)){let v=y(I.ofType);return v!=null?new Jn.GraphQLList(v):null}else if((0,Jn.isNonNullType)(I)){let v=y(I.ofType);return v!=null?new Jn.GraphQLNonNull(v):null}else if((0,Jn.isNamedType)(I)){let v=n[I.name];return v===void 0&&(v=(0,kU.isNamedStub)(I)?(0,kU.getBuiltInForStub)(I):c(I),r[v.name]=n[I.name]=v),v!=null?r[v.name]:null}return null}}NT.rewireTypes=Uee});var NS=w(Va=>{"use strict";m();T();N();Object.defineProperty(Va,"__esModule",{value:!0});Va.parseInputValueLiteral=Va.parseInputValue=Va.serializeInputValue=Va.transformInputValue=void 0;var ET=De(),kee=bf();function Fl(e,t,n=null,r=null){if(t==null)return t;let i=(0,ET.getNullableType)(e);if((0,ET.isLeafType)(i))return n!=null?n(i,t):t;if((0,ET.isListType)(i))return(0,kee.asArray)(t).map(a=>Fl(i.ofType,a,n,r));if((0,ET.isInputObjectType)(i)){let a=i.getFields(),o={};for(let c in t){let l=a[c];l!=null&&(o[c]=Fl(l.type,t[c],n,r))}return r!=null?r(i,o):o}}Va.transformInputValue=Fl;function Mee(e,t){return Fl(e,t,(n,r)=>{try{return n.serialize(r)}catch(i){return r}})}Va.serializeInputValue=Mee;function xee(e,t){return Fl(e,t,(n,r)=>{try{return n.parseValue(r)}catch(i){return r}})}Va.parseInputValue=xee;function qee(e,t){return Fl(e,t,(n,r)=>n.parseLiteral(r,{}))}Va.parseInputValueLiteral=qee});var Cl=w(Ll=>{"use strict";m();T();N();Object.defineProperty(Ll,"__esModule",{value:!0});Ll.correctASTNodes=Ll.mapSchema=void 0;var it=De(),wl=dS(),bt=fc(),Vee=TT(),MU=NS();function jee(e,t={}){let n=VU(qU(TS(xU(Kee(TS(xU(e.getTypeMap(),e,MU.serializeInputValue),e,t,c=>(0,it.isLeafType)(c)),e,t),e,MU.parseInputValue),e,t,c=>!(0,it.isLeafType)(c)),e,t),e,t),r=e.getDirectives(),i=Gee(r,e,t),{typeMap:a,directives:o}=(0,Vee.rewireTypes)(n,i);return new it.GraphQLSchema(Q(x({},e.toConfig()),{query:(0,wl.getObjectTypeFromTypeMap)(a,(0,wl.getObjectTypeFromTypeMap)(n,e.getQueryType())),mutation:(0,wl.getObjectTypeFromTypeMap)(a,(0,wl.getObjectTypeFromTypeMap)(n,e.getMutationType())),subscription:(0,wl.getObjectTypeFromTypeMap)(a,(0,wl.getObjectTypeFromTypeMap)(n,e.getSubscriptionType())),types:Object.values(a),directives:o}))}Ll.mapSchema=jee;function TS(e,t,n,r=()=>!0){let i={};for(let a in e)if(!a.startsWith("__")){let o=e[a];if(o==null||!r(o)){i[a]=o;continue}let c=Qee(t,n,a);if(c==null){i[a]=o;continue}let l=c(o,t);if(l===void 0){i[a]=o;continue}i[a]=l}return i}function Kee(e,t,n){let r=Wee(n);return r?TS(e,t,{[bt.MapperKind.ENUM_TYPE]:i=>{let a=i.toConfig(),o=a.values,c={};for(let l in o){let d=o[l],p=r(d,i.name,t,l);if(p===void 0)c[l]=d;else if(Array.isArray(p)){let[y,I]=p;c[y]=I===void 0?d:I}else p!==null&&(c[l]=p)}return kf(new it.GraphQLEnumType(Q(x({},a),{values:c})))}},i=>(0,it.isEnumType)(i)):e}function xU(e,t,n){let r=VU(e,t,{[bt.MapperKind.ARGUMENT]:i=>{if(i.defaultValue===void 0)return i;let a=hT(e,i.type);if(a!=null)return Q(x({},i),{defaultValue:n(a,i.defaultValue)})}});return qU(r,t,{[bt.MapperKind.INPUT_OBJECT_FIELD]:i=>{if(i.defaultValue===void 0)return i;let a=hT(r,i.type);if(a!=null)return Q(x({},i),{defaultValue:n(a,i.defaultValue)})}})}function hT(e,t){if((0,it.isListType)(t)){let n=hT(e,t.ofType);return n!=null?new it.GraphQLList(n):null}else if((0,it.isNonNullType)(t)){let n=hT(e,t.ofType);return n!=null?new it.GraphQLNonNull(n):null}else if((0,it.isNamedType)(t)){let n=e[t.name];return n!=null?n:null}return null}function qU(e,t,n){let r={};for(let i in e)if(!i.startsWith("__")){let a=e[i];if(!(0,it.isObjectType)(a)&&!(0,it.isInterfaceType)(a)&&!(0,it.isInputObjectType)(a)){r[i]=a;continue}let o=Jee(t,n,i);if(o==null){r[i]=a;continue}let c=a.toConfig(),l=c.fields,d={};for(let p in l){let y=l[p],I=o(y,p,i,t);if(I===void 0)d[p]=y;else if(Array.isArray(I)){let[v,F]=I;F.astNode!=null&&(F.astNode=Q(x({},F.astNode),{name:Q(x({},F.astNode.name),{value:v})})),d[v]=F===void 0?y:F}else I!==null&&(d[p]=I)}(0,it.isObjectType)(a)?r[i]=kf(new it.GraphQLObjectType(Q(x({},c),{fields:d}))):(0,it.isInterfaceType)(a)?r[i]=kf(new it.GraphQLInterfaceType(Q(x({},c),{fields:d}))):r[i]=kf(new it.GraphQLInputObjectType(Q(x({},c),{fields:d})))}return r}function VU(e,t,n){let r={};for(let i in e)if(!i.startsWith("__")){let a=e[i];if(!(0,it.isObjectType)(a)&&!(0,it.isInterfaceType)(a)){r[i]=a;continue}let o=Hee(n);if(o==null){r[i]=a;continue}let c=a.toConfig(),l=c.fields,d={};for(let p in l){let y=l[p],I=y.args;if(I==null){d[p]=y;continue}let v=Object.keys(I);if(!v.length){d[p]=y;continue}let F={};for(let k of v){let K=I[k],J=o(K,p,i,t);if(J===void 0)F[k]=K;else if(Array.isArray(J)){let[se,ie]=J;F[se]=ie}else J!==null&&(F[k]=J)}d[p]=Q(x({},y),{args:F})}(0,it.isObjectType)(a)?r[i]=new it.GraphQLObjectType(Q(x({},c),{fields:d})):(0,it.isInterfaceType)(a)?r[i]=new it.GraphQLInterfaceType(Q(x({},c),{fields:d})):r[i]=new it.GraphQLInputObjectType(Q(x({},c),{fields:d}))}return r}function Gee(e,t,n){let r=zee(n);if(r==null)return e.slice();let i=[];for(let a of e){let o=r(a,t);o===void 0?i.push(a):o!==null&&i.push(o)}return i}function $ee(e,t){var i,a,o;let n=e.getType(t),r=[bt.MapperKind.TYPE];return(0,it.isObjectType)(n)?(r.push(bt.MapperKind.COMPOSITE_TYPE,bt.MapperKind.OBJECT_TYPE),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(bt.MapperKind.ROOT_OBJECT,bt.MapperKind.QUERY):t===((a=e.getMutationType())==null?void 0:a.name)?r.push(bt.MapperKind.ROOT_OBJECT,bt.MapperKind.MUTATION):t===((o=e.getSubscriptionType())==null?void 0:o.name)&&r.push(bt.MapperKind.ROOT_OBJECT,bt.MapperKind.SUBSCRIPTION)):(0,it.isInputObjectType)(n)?r.push(bt.MapperKind.INPUT_OBJECT_TYPE):(0,it.isInterfaceType)(n)?r.push(bt.MapperKind.COMPOSITE_TYPE,bt.MapperKind.ABSTRACT_TYPE,bt.MapperKind.INTERFACE_TYPE):(0,it.isUnionType)(n)?r.push(bt.MapperKind.COMPOSITE_TYPE,bt.MapperKind.ABSTRACT_TYPE,bt.MapperKind.UNION_TYPE):(0,it.isEnumType)(n)?r.push(bt.MapperKind.ENUM_TYPE):(0,it.isScalarType)(n)&&r.push(bt.MapperKind.SCALAR_TYPE),r}function Qee(e,t,n){let r=$ee(e,n),i,a=[...r];for(;!i&&a.length>0;){let o=a.pop();i=t[o]}return i!=null?i:null}function Yee(e,t){var i,a,o;let n=e.getType(t),r=[bt.MapperKind.FIELD];return(0,it.isObjectType)(n)?(r.push(bt.MapperKind.COMPOSITE_FIELD,bt.MapperKind.OBJECT_FIELD),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(bt.MapperKind.ROOT_FIELD,bt.MapperKind.QUERY_ROOT_FIELD):t===((a=e.getMutationType())==null?void 0:a.name)?r.push(bt.MapperKind.ROOT_FIELD,bt.MapperKind.MUTATION_ROOT_FIELD):t===((o=e.getSubscriptionType())==null?void 0:o.name)&&r.push(bt.MapperKind.ROOT_FIELD,bt.MapperKind.SUBSCRIPTION_ROOT_FIELD)):(0,it.isInterfaceType)(n)?r.push(bt.MapperKind.COMPOSITE_FIELD,bt.MapperKind.INTERFACE_FIELD):(0,it.isInputObjectType)(n)&&r.push(bt.MapperKind.INPUT_OBJECT_FIELD),r}function Jee(e,t,n){let r=Yee(e,n),i,a=[...r];for(;!i&&a.length>0;){let o=a.pop();i=t[o]}return i!=null?i:null}function Hee(e){let t=e[bt.MapperKind.ARGUMENT];return t!=null?t:null}function zee(e){let t=e[bt.MapperKind.DIRECTIVE];return t!=null?t:null}function Wee(e){let t=e[bt.MapperKind.ENUM_VALUE];return t!=null?t:null}function kf(e){if((0,it.isObjectType)(e)){let t=e.toConfig();if(t.astNode!=null){let n=[];for(let r in t.fields){let i=t.fields[r];i.astNode!=null&&n.push(i.astNode)}t.astNode=Q(x({},t.astNode),{kind:it.Kind.OBJECT_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>Q(x({},n),{kind:it.Kind.OBJECT_TYPE_EXTENSION,fields:void 0}))),new it.GraphQLObjectType(t)}else if((0,it.isInterfaceType)(e)){let t=e.toConfig();if(t.astNode!=null){let n=[];for(let r in t.fields){let i=t.fields[r];i.astNode!=null&&n.push(i.astNode)}t.astNode=Q(x({},t.astNode),{kind:it.Kind.INTERFACE_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>Q(x({},n),{kind:it.Kind.INTERFACE_TYPE_EXTENSION,fields:void 0}))),new it.GraphQLInterfaceType(t)}else if((0,it.isInputObjectType)(e)){let t=e.toConfig();if(t.astNode!=null){let n=[];for(let r in t.fields){let i=t.fields[r];i.astNode!=null&&n.push(i.astNode)}t.astNode=Q(x({},t.astNode),{kind:it.Kind.INPUT_OBJECT_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>Q(x({},n),{kind:it.Kind.INPUT_OBJECT_TYPE_EXTENSION,fields:void 0}))),new it.GraphQLInputObjectType(t)}else if((0,it.isEnumType)(e)){let t=e.toConfig();if(t.astNode!=null){let n=[];for(let r in t.values){let i=t.values[r];i.astNode!=null&&n.push(i.astNode)}t.astNode=Q(x({},t.astNode),{values:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>Q(x({},n),{values:void 0}))),new it.GraphQLEnumType(t)}else return e}Ll.correctASTNodes=kf});var jU=w(IT=>{"use strict";m();T();N();Object.defineProperty(IT,"__esModule",{value:!0});IT.filterSchema=void 0;var yT=De(),Os=fc(),Xee=Cl();function Zee({schema:e,typeFilter:t=()=>!0,fieldFilter:n=void 0,rootFieldFilter:r=void 0,objectFieldFilter:i=void 0,interfaceFieldFilter:a=void 0,inputObjectFieldFilter:o=void 0,argumentFilter:c=void 0}){return(0,Xee.mapSchema)(e,{[Os.MapperKind.QUERY]:d=>ES(d,"Query",r,c),[Os.MapperKind.MUTATION]:d=>ES(d,"Mutation",r,c),[Os.MapperKind.SUBSCRIPTION]:d=>ES(d,"Subscription",r,c),[Os.MapperKind.OBJECT_TYPE]:d=>t(d.name,d)?hS(yT.GraphQLObjectType,d,i||n,c):null,[Os.MapperKind.INTERFACE_TYPE]:d=>t(d.name,d)?hS(yT.GraphQLInterfaceType,d,a||n,c):null,[Os.MapperKind.INPUT_OBJECT_TYPE]:d=>t(d.name,d)?hS(yT.GraphQLInputObjectType,d,o||n):null,[Os.MapperKind.UNION_TYPE]:d=>t(d.name,d)?void 0:null,[Os.MapperKind.ENUM_TYPE]:d=>t(d.name,d)?void 0:null,[Os.MapperKind.SCALAR_TYPE]:d=>t(d.name,d)?void 0:null})}IT.filterSchema=Zee;function ES(e,t,n,r){if(n||r){let i=e.toConfig();for(let a in i.fields){let o=i.fields[a];if(n&&!n(t,a,i.fields[a]))delete i.fields[a];else if(r&&o.args)for(let c in o.args)r(t,a,c,o.args[c])||delete o.args[c]}return new yT.GraphQLObjectType(i)}return e}function hS(e,t,n,r){if(n||r){let i=t.toConfig();for(let a in i.fields){let o=i.fields[a];if(n&&!n(t.name,a,i.fields[a]))delete i.fields[a];else if(r&&"args"in o)for(let c in o.args)r(t.name,a,c,o.args[c])||delete o.args[c]}return new e(i)}}});var GU=w(Bl=>{"use strict";m();T();N();Object.defineProperty(Bl,"__esModule",{value:!0});Bl.healTypes=Bl.healSchema=void 0;var ja=De();function ete(e){return KU(e.getTypeMap(),e.getDirectives()),e}Bl.healSchema=ete;function KU(e,t){let n=Object.create(null);for(let d in e){let p=e[d];if(p==null||d.startsWith("__"))continue;let y=p.name;if(!y.startsWith("__")){if(n[y]!=null){console.warn(`Duplicate schema type name ${y} found; keeping the existing one found in the schema`);continue}n[y]=p}}for(let d in n){let p=n[d];e[d]=p}for(let d of t)d.args=d.args.filter(p=>(p.type=l(p.type),p.type!==null));for(let d in e){let p=e[d];!d.startsWith("__")&&d in n&&p!=null&&r(p)}for(let d in e)!d.startsWith("__")&&!(d in n)&&delete e[d];function r(d){if((0,ja.isObjectType)(d)){i(d),a(d);return}else if((0,ja.isInterfaceType)(d)){i(d),"getInterfaces"in d&&a(d);return}else if((0,ja.isUnionType)(d)){c(d);return}else if((0,ja.isInputObjectType)(d)){o(d);return}else if((0,ja.isLeafType)(d))return;throw new Error(`Unexpected schema type: ${d}`)}function i(d){let p=d.getFields();for(let[y,I]of Object.entries(p))I.args.map(v=>(v.type=l(v.type),v.type===null?null:v)).filter(Boolean),I.type=l(I.type),I.type===null&&delete p[y]}function a(d){if("getInterfaces"in d){let p=d.getInterfaces();p.push(...p.splice(0).map(y=>l(y)).filter(Boolean))}}function o(d){let p=d.getFields();for(let[y,I]of Object.entries(p))I.type=l(I.type),I.type===null&&delete p[y]}function c(d){let p=d.getTypes();p.push(...p.splice(0).map(y=>l(y)).filter(Boolean))}function l(d){if((0,ja.isListType)(d)){let p=l(d.ofType);return p!=null?new ja.GraphQLList(p):null}else if((0,ja.isNonNullType)(d)){let p=l(d.ofType);return p!=null?new ja.GraphQLNonNull(p):null}else if((0,ja.isNamedType)(d)){let p=e[d.name];if(p&&d!==p)return p}return d}}Bl.healTypes=KU});var $U=w(gT=>{"use strict";m();T();N();Object.defineProperty(gT,"__esModule",{value:!0});gT.getResolversFromSchema=void 0;var pc=De();function tte(e,t){var i,a;let n=Object.create(null),r=e.getTypeMap();for(let o in r)if(!o.startsWith("__")){let c=r[o];if((0,pc.isScalarType)(c)){if(!(0,pc.isSpecifiedScalarType)(c)){let l=c.toConfig();delete l.astNode,n[o]=new pc.GraphQLScalarType(l)}}else if((0,pc.isEnumType)(c)){n[o]={};let l=c.getValues();for(let d of l)n[o][d.name]=d.value}else if((0,pc.isInterfaceType)(c))c.resolveType!=null&&(n[o]={__resolveType:c.resolveType});else if((0,pc.isUnionType)(c))c.resolveType!=null&&(n[o]={__resolveType:c.resolveType});else if((0,pc.isObjectType)(c)){n[o]={},c.isTypeOf!=null&&(n[o].__isTypeOf=c.isTypeOf);let l=c.getFields();for(let d in l){let p=l[d];if(p.subscribe!=null&&(n[o][d]=n[o][d]||{},n[o][d].subscribe=p.subscribe),p.resolve!=null&&((i=p.resolve)==null?void 0:i.name)!=="defaultFieldResolver"){switch((a=p.resolve)==null?void 0:a.name){case"defaultMergedResolver":if(!t)continue;break;case"defaultFieldResolver":continue}n[o][d]=n[o][d]||{},n[o][d].resolve=p.resolve}}}}return n}gT.getResolversFromSchema=tte});var YU=w(_T=>{"use strict";m();T();N();Object.defineProperty(_T,"__esModule",{value:!0});_T.forEachField=void 0;var QU=De();function nte(e,t){let n=e.getTypeMap();for(let r in n){let i=n[r];if(!(0,QU.getNamedType)(i).name.startsWith("__")&&(0,QU.isObjectType)(i)){let a=i.getFields();for(let o in a){let c=a[o];t(c,r,o)}}}}_T.forEachField=nte});var JU=w(vT=>{"use strict";m();T();N();Object.defineProperty(vT,"__esModule",{value:!0});vT.forEachDefaultValue=void 0;var yS=De();function rte(e,t){let n=e.getTypeMap();for(let r in n){let i=n[r];if(!(0,yS.getNamedType)(i).name.startsWith("__")){if((0,yS.isObjectType)(i)){let a=i.getFields();for(let o in a){let c=a[o];for(let l of c.args)l.defaultValue=t(l.type,l.defaultValue)}}else if((0,yS.isInputObjectType)(i)){let a=i.getFields();for(let o in a){let c=a[o];c.defaultValue=t(c.type,c.defaultValue)}}}}}vT.forEachDefaultValue=rte});var _S=w(ST=>{"use strict";m();T();N();Object.defineProperty(ST,"__esModule",{value:!0});ST.addTypes=void 0;var IS=De(),gS=dS(),ite=TT();function ate(e,t){let n=e.toConfig(),r={};for(let c of n.types)r[c.name]=c;let i={};for(let c of n.directives)i[c.name]=c;for(let c of t)(0,IS.isNamedType)(c)?r[c.name]=c:(0,IS.isDirective)(c)&&(i[c.name]=c);let{typeMap:a,directives:o}=(0,ite.rewireTypes)(r,Object.values(i));return new IS.GraphQLSchema(Q(x({},n),{query:(0,gS.getObjectTypeFromTypeMap)(a,e.getQueryType()),mutation:(0,gS.getObjectTypeFromTypeMap)(a,e.getMutationType()),subscription:(0,gS.getObjectTypeFromTypeMap)(a,e.getSubscriptionType()),types:Object.values(a),directives:o}))}ST.addTypes=ate});var zU=w(DT=>{"use strict";m();T();N();Object.defineProperty(DT,"__esModule",{value:!0});DT.pruneSchema=void 0;var tr=De(),ste=zv(),ote=fc(),ute=Cl(),cte=Ff();function lte(e,t={}){let{skipEmptyCompositeTypePruning:n,skipEmptyUnionPruning:r,skipPruning:i,skipUnimplementedInterfacesPruning:a,skipUnusedTypesPruning:o}=t,c=[],l=e;do{let d=dte(l);if(i){let p=[];for(let y in l.getTypeMap()){if(y.startsWith("__"))continue;let I=l.getType(y);I&&i(I)&&p.push(y)}d=HU(p,l,d)}c=[],l=(0,ute.mapSchema)(l,{[ote.MapperKind.TYPE]:p=>!d.has(p.name)&&!(0,tr.isSpecifiedScalarType)(p)?((0,tr.isUnionType)(p)||(0,tr.isInputObjectType)(p)||(0,tr.isInterfaceType)(p)||(0,tr.isObjectType)(p)||(0,tr.isScalarType)(p))&&(o||(0,tr.isUnionType)(p)&&r&&!Object.keys(p.getTypes()).length||((0,tr.isInputObjectType)(p)||(0,tr.isInterfaceType)(p)||(0,tr.isObjectType)(p))&&n&&!Object.keys(p.getFields()).length||(0,tr.isInterfaceType)(p)&&a)?p:(c.push(p.name),d.delete(p.name),null):p})}while(c.length);return l}DT.pruneSchema=lte;function dte(e){let t=[];for(let n of(0,cte.getRootTypes)(e))t.push(n.name);return HU(t,e)}function HU(e,t,n=new Set){let r=new Map;for(;e.length;){let i=e.pop();if(n.has(i)&&r[i]!==!0)continue;let a=t.getType(i);if(a){if((0,tr.isUnionType)(a)&&e.push(...a.getTypes().map(o=>o.name)),(0,tr.isInterfaceType)(a)&&r[i]===!0&&(e.push(...(0,ste.getImplementingTypes)(a.name,t)),r[i]=!1),(0,tr.isEnumType)(a)&&e.push(...a.getValues().flatMap(o=>o.astNode?OT(t,o.astNode):[])),"getInterfaces"in a&&e.push(...a.getInterfaces().map(o=>o.name)),"getFields"in a){let o=a.getFields(),c=Object.entries(o);if(!c.length)continue;for(let[,l]of c){(0,tr.isObjectType)(a)&&e.push(...l.args.flatMap(p=>{let y=[(0,tr.getNamedType)(p.type).name];return p.astNode&&y.push(...OT(t,p.astNode)),y}));let d=(0,tr.getNamedType)(l.type);e.push(d.name),l.astNode&&e.push(...OT(t,l.astNode)),(0,tr.isInterfaceType)(d)&&!(d.name in r)&&(r[d.name]=!0)}}a.astNode&&e.push(...OT(t,a.astNode)),n.add(i)}}return n}function OT(e,t){var n;return((n=t.directives)!=null?n:[]).flatMap(r=>{var i,a;return(a=(i=e.getDirective(r.name.value))==null?void 0:i.args.map(o=>(0,tr.getNamedType)(o.type).name))!=null?a:[]})}});var XU=w(bT=>{"use strict";m();T();N();Object.defineProperty(bT,"__esModule",{value:!0});bT.mergeDeep=void 0;var fte=bf();function WU(e,t=!1,n=!1){let r=e[0]||{},i={};t&&Object.setPrototypeOf(i,Object.create(Object.getPrototypeOf(r)));for(let a of e)if(vS(r)&&vS(a)){if(t){let o=Object.getPrototypeOf(i),c=Object.getPrototypeOf(a);if(c)for(let l of Object.getOwnPropertyNames(c)){let d=Object.getOwnPropertyDescriptor(c,l);(0,fte.isSome)(d)&&Object.defineProperty(o,l,d)}}for(let o in a)vS(a[o])?o in i?i[o]=WU([i[o],a[o]],t,n):Object.assign(i,{[o]:a[o]}):n&&Array.isArray(i[o])?Array.isArray(a[o])?i[o].push(...a[o]):i[o].push(a[o]):Object.assign(i,{[o]:a[o]})}else if(n&&Array.isArray(r))Array.isArray(a)?r.push(...a):r.push(a);else if(n&&Array.isArray(a))return[r,...a];return i}bT.mergeDeep=WU;function vS(e){return e&&typeof e=="object"&&!Array.isArray(e)}});var ZU=w(AT=>{"use strict";m();T();N();Object.defineProperty(AT,"__esModule",{value:!0});AT.parseSelectionSet=void 0;var pte=De();function mte(e,t){return(0,pte.parse)(e,t).definitions[0].selectionSet}AT.parseSelectionSet=mte});var ek=w(RT=>{"use strict";m();T();N();Object.defineProperty(RT,"__esModule",{value:!0});RT.getResponseKeyFromInfo=void 0;function Nte(e){return e.fieldNodes[0].alias!=null?e.fieldNodes[0].alias.value:e.fieldName}RT.getResponseKeyFromInfo=Nte});var tk=w(Ka=>{"use strict";m();T();N();Object.defineProperty(Ka,"__esModule",{value:!0});Ka.modifyObjectFields=Ka.selectObjectFields=Ka.removeObjectFields=Ka.appendObjectFields=void 0;var PT=De(),Tte=_S(),FT=fc(),mc=Cl();function Ete(e,t,n){return e.getType(t)==null?(0,Tte.addTypes)(e,[new PT.GraphQLObjectType({name:t,fields:n})]):(0,mc.mapSchema)(e,{[FT.MapperKind.OBJECT_TYPE]:r=>{if(r.name===t){let i=r.toConfig(),a=i.fields,o={};for(let c in a)o[c]=a[c];for(let c in n)o[c]=n[c];return(0,mc.correctASTNodes)(new PT.GraphQLObjectType(Q(x({},i),{fields:o})))}}})}Ka.appendObjectFields=Ete;function hte(e,t,n){let r={};return[(0,mc.mapSchema)(e,{[FT.MapperKind.OBJECT_TYPE]:a=>{if(a.name===t){let o=a.toConfig(),c=o.fields,l={};for(let d in c){let p=c[d];n(d,p)?r[d]=p:l[d]=p}return(0,mc.correctASTNodes)(new PT.GraphQLObjectType(Q(x({},o),{fields:l})))}}}),r]}Ka.removeObjectFields=hte;function yte(e,t,n){let r={};return(0,mc.mapSchema)(e,{[FT.MapperKind.OBJECT_TYPE]:i=>{if(i.name===t){let o=i.toConfig().fields;for(let c in o){let l=o[c];n(c,l)&&(r[c]=l)}}}}),r}Ka.selectObjectFields=yte;function Ite(e,t,n,r){let i={};return[(0,mc.mapSchema)(e,{[FT.MapperKind.OBJECT_TYPE]:o=>{if(o.name===t){let c=o.toConfig(),l=c.fields,d={};for(let p in l){let y=l[p];n(p,y)?i[p]=y:d[p]=y}for(let p in r){let y=r[p];d[p]=y}return(0,mc.correctASTNodes)(new PT.GraphQLObjectType(Q(x({},c),{fields:d})))}}}),i]}Ka.modifyObjectFields=Ite});var nk=w(wT=>{"use strict";m();T();N();Object.defineProperty(wT,"__esModule",{value:!0});wT.renameType=void 0;var Ki=De();function gte(e,t){if((0,Ki.isObjectType)(e))return new Ki.GraphQLObjectType(Q(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Q(x({},e.astNode),{name:Q(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Q(x({},n),{name:Q(x({},n.name),{value:t})}))}));if((0,Ki.isInterfaceType)(e))return new Ki.GraphQLInterfaceType(Q(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Q(x({},e.astNode),{name:Q(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Q(x({},n),{name:Q(x({},n.name),{value:t})}))}));if((0,Ki.isUnionType)(e))return new Ki.GraphQLUnionType(Q(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Q(x({},e.astNode),{name:Q(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Q(x({},n),{name:Q(x({},n.name),{value:t})}))}));if((0,Ki.isInputObjectType)(e))return new Ki.GraphQLInputObjectType(Q(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Q(x({},e.astNode),{name:Q(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Q(x({},n),{name:Q(x({},n.name),{value:t})}))}));if((0,Ki.isEnumType)(e))return new Ki.GraphQLEnumType(Q(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Q(x({},e.astNode),{name:Q(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Q(x({},n),{name:Q(x({},n.name),{value:t})}))}));if((0,Ki.isScalarType)(e))return new Ki.GraphQLScalarType(Q(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Q(x({},e.astNode),{name:Q(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Q(x({},n),{name:Q(x({},n.name),{value:t})}))}));throw new Error(`Unknown type ${e}.`)}wT.renameType=gte});var ak=w(LT=>{"use strict";m();T();N();Object.defineProperty(LT,"__esModule",{value:!0});LT.mapAsyncIterator=void 0;var _te=Rf();function vte(e,t,n,r){let i,a,o;r&&(o=d=>{let p=r();return(0,_te.isPromise)(p)?p.then(()=>d):d}),typeof e.return=="function"&&(i=e.return,a=d=>{let p=()=>Promise.reject(d);return i.call(e).then(p,p)});function c(d){return d.done?o?o(d):d:rk(d.value,t).then(ik,a)}let l;if(n){let d=n;l=p=>rk(p,d).then(ik,a)}return{next(){return e.next().then(c,l)},return(){let d=i?i.call(e).then(c,l):Promise.resolve({value:void 0,done:!0});return o?d.then(o):d},throw(d){return typeof e.throw=="function"?e.throw(d).then(c,l):Promise.reject(d).catch(a)},[Symbol.asyncIterator](){return this}}}LT.mapAsyncIterator=vte;function rk(e,t){return new Promise(n=>n(t(e)))}function ik(e){return{value:e,done:!1}}});var sk=w(Ul=>{"use strict";m();T();N();Object.defineProperty(Ul,"__esModule",{value:!0});Ul.createVariableNameGenerator=Ul.updateArgument=void 0;var Nc=De(),Ste=Xv();function Ote(e,t,n,r,i,a,o){if(e[r]={kind:Nc.Kind.ARGUMENT,name:{kind:Nc.Kind.NAME,value:r},value:{kind:Nc.Kind.VARIABLE,name:{kind:Nc.Kind.NAME,value:i}}},t[i]={kind:Nc.Kind.VARIABLE_DEFINITION,variable:{kind:Nc.Kind.VARIABLE,name:{kind:Nc.Kind.NAME,value:i}},type:(0,Ste.astFromType)(a)},o!==void 0){n[i]=o;return}i in n&&delete n[i]}Ul.updateArgument=Ote;function Dte(e){let t=0;return n=>{let r;do r=`_v${(t++).toString()}_${n}`;while(r in e);return r}}Ul.createVariableNameGenerator=Dte});var ok=w(CT=>{"use strict";m();T();N();Object.defineProperty(CT,"__esModule",{value:!0});CT.implementsAbstractType=void 0;var SS=De();function bte(e,t,n){return n==null||t==null?!1:t===n?!0:(0,SS.isCompositeType)(t)&&(0,SS.isCompositeType)(n)?(0,SS.doTypesOverlap)(e,t,n):!1}CT.implementsAbstractType=bte});var uk=w(BT=>{"use strict";m();T();N();Object.defineProperty(BT,"__esModule",{value:!0});BT.observableToAsyncIterable=void 0;function Ate(e){let t=[],n=[],r=!0,i=p=>{t.length!==0?t.shift()({value:p,done:!1}):n.push({value:p,done:!1})},a=p=>{t.length!==0?t.shift()({value:{errors:[p]},done:!1}):n.push({value:{errors:[p]},done:!1})},o=()=>{t.length!==0?t.shift()({done:!0}):n.push({done:!0})},c=()=>new Promise(p=>{if(n.length!==0){let y=n.shift();p(y)}else t.push(p)}),l=e.subscribe({next(p){i(p)},error(p){a(p)},complete(){o()}}),d=()=>{if(r){r=!1,l.unsubscribe();for(let p of t)p({value:void 0,done:!0});t.length=0,n.length=0}};return{next(){return r?c():this.return()},return(){return d(),Promise.resolve({value:void 0,done:!0})},throw(p){return d(),Promise.reject(p)},[Symbol.asyncIterator](){return this}}}BT.observableToAsyncIterable=Ate});var ck=w(UT=>{"use strict";m();T();N();Object.defineProperty(UT,"__esModule",{value:!0});UT.AccumulatorMap=void 0;var OS=class extends Map{get[Symbol.toStringTag](){return"AccumulatorMap"}add(t,n){let r=this.get(t);r===void 0?this.set(t,[n]):r.push(n)}};UT.AccumulatorMap=OS});var DS=w(kl=>{"use strict";m();T();N();Object.defineProperty(kl,"__esModule",{value:!0});kl.GraphQLStreamDirective=kl.GraphQLDeferDirective=void 0;var Gi=De();kl.GraphQLDeferDirective=new Gi.GraphQLDirective({name:"defer",description:"Directs the executor to defer this fragment when the `if` argument is true or undefined.",locations:[Gi.DirectiveLocation.FRAGMENT_SPREAD,Gi.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new Gi.GraphQLNonNull(Gi.GraphQLBoolean),description:"Deferred when true or undefined.",defaultValue:!0},label:{type:Gi.GraphQLString,description:"Unique name"}}});kl.GraphQLStreamDirective=new Gi.GraphQLDirective({name:"stream",description:"Directs the executor to stream plural fields when the `if` argument is true or undefined.",locations:[Gi.DirectiveLocation.FIELD],args:{if:{type:new Gi.GraphQLNonNull(Gi.GraphQLBoolean),description:"Stream when true or undefined.",defaultValue:!0},label:{type:Gi.GraphQLString,description:"Unique name"},initialCount:{defaultValue:0,type:Gi.GraphQLInt,description:"Number of items to return immediately"}}})});var RS=w(Wr=>{"use strict";m();T();N();Object.defineProperty(Wr,"__esModule",{value:!0});Wr.collectSubFields=Wr.getDeferValues=Wr.getFieldEntryKey=Wr.doesFragmentConditionMatch=Wr.shouldIncludeNode=Wr.collectFields=void 0;var Ga=De(),MT=ck(),Rte=DS(),Pte=Al();function Ml(e,t,n,r,i,a,o,c){for(let l of i.selections)switch(l.kind){case Ga.Kind.FIELD:{if(!kT(n,l))continue;a.add(lk(l),l);break}case Ga.Kind.INLINE_FRAGMENT:{if(!kT(n,l)||!bS(e,l,r))continue;let d=AS(n,l);if(d){let p=new MT.AccumulatorMap;Ml(e,t,n,r,l.selectionSet,p,o,c),o.push({label:d.label,fields:p})}else Ml(e,t,n,r,l.selectionSet,a,o,c);break}case Ga.Kind.FRAGMENT_SPREAD:{let d=l.name.value;if(!kT(n,l))continue;let p=AS(n,l);if(c.has(d)&&!p)continue;let y=t[d];if(!y||!bS(e,y,r))continue;if(p||c.add(d),p){let I=new MT.AccumulatorMap;Ml(e,t,n,r,y.selectionSet,I,o,c),o.push({label:p.label,fields:I})}else Ml(e,t,n,r,y.selectionSet,a,o,c);break}}}function Fte(e,t,n,r,i){let a=new MT.AccumulatorMap,o=[];return Ml(e,t,n,r,i,a,o,new Set),{fields:a,patches:o}}Wr.collectFields=Fte;function kT(e,t){let n=(0,Ga.getDirectiveValues)(Ga.GraphQLSkipDirective,t,e);if((n==null?void 0:n.if)===!0)return!1;let r=(0,Ga.getDirectiveValues)(Ga.GraphQLIncludeDirective,t,e);return(r==null?void 0:r.if)!==!1}Wr.shouldIncludeNode=kT;function bS(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=(0,Ga.typeFromAST)(e,r);return i===n?!0:(0,Ga.isAbstractType)(i)?e.getPossibleTypes(i).includes(n):!1}Wr.doesFragmentConditionMatch=bS;function lk(e){return e.alias?e.alias.value:e.name.value}Wr.getFieldEntryKey=lk;function AS(e,t){let n=(0,Ga.getDirectiveValues)(Rte.GraphQLDeferDirective,t,e);if(n&&n.if!==!1)return{label:typeof n.label=="string"?n.label:void 0}}Wr.getDeferValues=AS;Wr.collectSubFields=(0,Pte.memoize5)(function(t,n,r,i,a){let o=new MT.AccumulatorMap,c=new Set,l=[],d={fields:o,patches:l};for(let p of a)p.selectionSet&&Ml(t,n,r,i,p.selectionSet,o,l,c);return d})});var PS=w(xl=>{"use strict";m();T();N();Object.defineProperty(xl,"__esModule",{value:!0});xl.getOperationASTFromRequest=xl.getOperationASTFromDocument=void 0;var wte=De(),Lte=Al();function dk(e,t){let n=(0,wte.getOperationAST)(e,t);if(!n)throw new Error(`Cannot infer operation ${t||""}`);return n}xl.getOperationASTFromDocument=dk;xl.getOperationASTFromRequest=(0,Lte.memoize1)(function(t){return dk(t.document,t.operationName)})});var mk=w(mu=>{"use strict";m();T();N();Object.defineProperty(mu,"__esModule",{value:!0});mu.visitResult=mu.visitErrors=mu.visitData=void 0;var pu=De(),FS=RS(),Cte=PS();function wS(e,t,n){if(Array.isArray(e))return e.map(r=>wS(r,t,n));if(typeof e=="object"){let r=t!=null?t(e):e;if(r!=null)for(let i in r){let a=r[i];Object.defineProperty(r,i,{value:wS(a,t,n)})}return n!=null?n(r):r}return e}mu.visitData=wS;function Bte(e,t){return e.map(n=>t(n))}mu.visitErrors=Bte;function Ute(e,t,n,r,i){let a=t.document.definitions.reduce((I,v)=>(v.kind===pu.Kind.FRAGMENT_DEFINITION&&(I[v.name.value]=v),I),{}),o=t.variables||{},c={segmentInfoMap:new Map,unpathedErrors:new Set},l=e.data,d=e.errors,p=d!=null&&i!=null,y=(0,Cte.getOperationASTFromRequest)(t);return l!=null&&y!=null&&(e.data=xte(l,y,n,a,o,r,p?d:void 0,c)),d!=null&&i&&(e.errors=kte(d,i,c)),e}mu.visitResult=Ute;function kte(e,t,n){let r=n.segmentInfoMap,i=n.unpathedErrors,a=t.__unpathed;return e.map(o=>{let c=r.get(o),l=c==null?o:c.reduceRight((d,p)=>{let y=p.type.name,I=t[y];if(I==null)return d;let v=I[p.fieldName];return v==null?d:v(d,p.pathIndex)},o);return a&&i.has(o)?a(l):l})}function Mte(e,t){switch(t.operation){case"query":return e.getQueryType();case"mutation":return e.getMutationType();case"subscription":return e.getSubscriptionType()}}function xte(e,t,n,r,i,a,o,c){let l=Mte(n,t),{fields:d}=(0,FS.collectFields)(n,r,i,l,t.selectionSet);return LS(e,l,d,n,r,i,a,0,o,c)}function LS(e,t,n,r,i,a,o,c,l,d){var se;let p=t.getFields(),y=o==null?void 0:o[t.name],I=y==null?void 0:y.__enter,v=I!=null?I(e):e,F,k=null;if(l!=null){F=Vte(l,c),k=F.errorMap;for(let ie of F.unpathedErrors)d.unpathedErrors.add(ie)}for(let[ie,Te]of n){let de=Te[0].name.value,Re=(se=p[de])==null?void 0:se.type;if(Re==null)switch(de){case"__typename":Re=pu.TypeNameMetaFieldDef.type;break;case"__schema":Re=pu.SchemaMetaFieldDef.type;break;case"__type":Re=pu.TypeMetaFieldDef.type;break}let xe=c+1,tt;k&&(tt=k[ie],tt!=null&&delete k[ie],jte(t,de,xe,tt,d));let ee=pk(e[ie],Re,Te,r,i,a,o,xe,tt,d);fk(v,ie,ee,y,de)}let K=v.__typename;if(K!=null&&fk(v,"__typename",K,y,"__typename"),k)for(let ie in k){let Te=k[ie];for(let de of Te)d.unpathedErrors.add(de)}let J=y==null?void 0:y.__leave;return J!=null?J(v):v}function fk(e,t,n,r,i){if(r==null){e[t]=n;return}let a=r[i];if(a==null){e[t]=n;return}let o=a(n);if(o===void 0){delete e[t];return}e[t]=o}function qte(e,t,n,r,i,a,o,c,l,d){return e.map(p=>pk(p,t,n,r,i,a,o,c+1,l,d))}function pk(e,t,n,r,i,a,o,c,l=[],d){if(e==null)return e;let p=(0,pu.getNullableType)(t);if((0,pu.isListType)(p))return qte(e,p.ofType,n,r,i,a,o,c,l,d);if((0,pu.isAbstractType)(p)){let v=r.getType(e.__typename),{fields:F}=(0,FS.collectSubFields)(r,i,a,v,n);return LS(e,v,F,r,i,a,o,c,l,d)}else if((0,pu.isObjectType)(p)){let{fields:v}=(0,FS.collectSubFields)(r,i,a,p,n);return LS(e,p,v,r,i,a,o,c,l,d)}let y=o==null?void 0:o[p.name];if(y==null)return e;let I=y(e);return I===void 0?e:I}function Vte(e,t){var i;let n=Object.create(null),r=new Set;for(let a of e){let o=(i=a.path)==null?void 0:i[t];if(o==null){r.add(a);continue}o in n?n[o].push(a):n[o]=[a]}return{errorMap:n,unpathedErrors:r}}function jte(e,t,n,r=[],i){for(let a of r){let o={type:e,fieldName:t,pathIndex:n},c=i.segmentInfoMap.get(a);c==null?i.segmentInfoMap.set(a,[o]):c.push(o)}}});var Nk=w(xT=>{"use strict";m();T();N();Object.defineProperty(xT,"__esModule",{value:!0});xT.valueMatchesCriteria=void 0;function CS(e,t){return e==null?e===t:Array.isArray(e)?Array.isArray(t)&&e.every((n,r)=>CS(n,t[r])):typeof e=="object"?typeof t=="object"&&t&&Object.keys(t).every(n=>CS(e[n],t[n])):t instanceof RegExp?t.test(e):e===t}xT.valueMatchesCriteria=CS});var Tk=w(qT=>{"use strict";m();T();N();Object.defineProperty(qT,"__esModule",{value:!0});qT.isAsyncIterable=void 0;function Kte(e){return(e==null?void 0:e[Symbol.asyncIterator])!=null}qT.isAsyncIterable=Kte});var Ek=w(VT=>{"use strict";m();T();N();Object.defineProperty(VT,"__esModule",{value:!0});VT.isDocumentNode=void 0;var Gte=De();function $te(e){return e&&typeof e=="object"&&"kind"in e&&e.kind===Gte.Kind.DOCUMENT}VT.isDocumentNode=$te});var hk=w(()=>{"use strict";m();T();N()});var _k=w(Nu=>{"use strict";m();T();N();Object.defineProperty(Nu,"__esModule",{value:!0});Nu.withCancel=Nu.getAsyncIterableWithCancel=Nu.getAsyncIteratorWithCancel=void 0;var Qte=Al();function Yte(e){return bi(this,null,function*(){return{value:e,done:!0}})}var yk=(0,Qte.memoize2)(function(t,n){return function(...i){return Reflect.apply(n,t,i)}});function Ik(e,t){return new Proxy(e,{has(n,r){return r==="return"?!0:Reflect.has(n,r)},get(n,r,i){let a=Reflect.get(n,r,i);if(r==="return"){let o=a||Yte;return function(l){return bi(this,null,function*(){let d=yield t(l);return Reflect.apply(o,n,[d])})}}else if(typeof a=="function")return yk(n,a);return a}})}Nu.getAsyncIteratorWithCancel=Ik;function gk(e,t){return new Proxy(e,{get(n,r,i){let a=Reflect.get(n,r,i);return Symbol.asyncIterator===r?function(){let c=Reflect.apply(a,n,[]);return Ik(c,t)}:typeof a=="function"?yk(n,a):a}})}Nu.getAsyncIterableWithCancel=gk;Nu.withCancel=gk});var vk=w(jT=>{"use strict";m();T();N();Object.defineProperty(jT,"__esModule",{value:!0});jT.fixSchemaAst=void 0;var Jte=De(),Hte=aS();function zte(e,t){let n=(0,Hte.getDocumentNodeFromSchema)(e);return(0,Jte.buildASTSchema)(n,x({},t||{}))}function Wte(e,t){let n;return(!e.astNode||!e.extensionASTNodes)&&(n=zte(e,t)),!e.astNode&&(n!=null&&n.astNode)&&(e.astNode=n.astNode),!e.extensionASTNodes&&(n!=null&&n.astNode)&&(e.extensionASTNodes=n.extensionASTNodes),e}jT.fixSchemaAst=Wte});var Sk=w(KT=>{"use strict";m();T();N();Object.defineProperty(KT,"__esModule",{value:!0});KT.extractExtensionsFromSchema=void 0;var Ds=fc(),Xte=Cl();function la(e={}){let t=x({},e),n=t.directives;if(n!=null)for(let r in n){let i=n[r];Array.isArray(i)||(n[r]=[i])}return t}function Zte(e){let t={schemaExtensions:la(e.extensions),types:{}};return(0,Xte.mapSchema)(e,{[Ds.MapperKind.OBJECT_TYPE]:n=>(t.types[n.name]={fields:{},type:"object",extensions:la(n.extensions)},n),[Ds.MapperKind.INTERFACE_TYPE]:n=>(t.types[n.name]={fields:{},type:"interface",extensions:la(n.extensions)},n),[Ds.MapperKind.FIELD]:(n,r,i)=>{t.types[i].fields[r]={arguments:{},extensions:la(n.extensions)};let a=n.args;if(a!=null)for(let o in a)t.types[i].fields[r].arguments[o]=la(a[o].extensions);return n},[Ds.MapperKind.ENUM_TYPE]:n=>(t.types[n.name]={values:{},type:"enum",extensions:la(n.extensions)},n),[Ds.MapperKind.ENUM_VALUE]:(n,r,i,a)=>(t.types[r].values[a]=la(n.extensions),n),[Ds.MapperKind.SCALAR_TYPE]:n=>(t.types[n.name]={type:"scalar",extensions:la(n.extensions)},n),[Ds.MapperKind.UNION_TYPE]:n=>(t.types[n.name]={type:"union",extensions:la(n.extensions)},n),[Ds.MapperKind.INPUT_OBJECT_TYPE]:n=>(t.types[n.name]={fields:{},type:"input",extensions:la(n.extensions)},n),[Ds.MapperKind.INPUT_OBJECT_FIELD]:(n,r,i)=>(t.types[i].fields[r]={extensions:la(n.extensions)},n)}),t}KT.extractExtensionsFromSchema=Zte});var Ok=w(Tu=>{"use strict";m();T();N();Object.defineProperty(Tu,"__esModule",{value:!0});Tu.printPathArray=Tu.pathToArray=Tu.addPath=void 0;function ene(e,t,n){return{prev:e,key:t,typename:n}}Tu.addPath=ene;function tne(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}Tu.pathToArray=tne;function nne(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}Tu.printPathArray=nne});var Dk=w(BS=>{"use strict";m();T();N();function GT(e,t,n){if(typeof e=="object"&&typeof t=="object"){if(Array.isArray(e)&&Array.isArray(t))for(n=0;n{"use strict";m();T();N();Object.defineProperty($T,"__esModule",{value:!0});$T.mergeIncrementalResult=void 0;var US=Dk();function bk({incrementalResult:e,executionResult:t}){var r;let n=["data",...(r=e.path)!=null?r:[]];if(e.items)for(let i of e.items)(0,US.dset)(t,n,i),n[n.length-1]++;e.data&&(0,US.dset)(t,n,e.data),e.errors&&(t.errors=t.errors||[],t.errors.push(...e.errors)),e.extensions&&(0,US.dset)(t,"extensions",e.extensions),e.incremental&&e.incremental.forEach(i=>{bk({incrementalResult:i,executionResult:t})})}$T.mergeIncrementalResult=bk});var Pk=w(ql=>{"use strict";m();T();N();Object.defineProperty(ql,"__esModule",{value:!0});ql.debugTimerEnd=ql.debugTimerStart=void 0;var Rk=new Set;function ine(e){let t=(globalThis==null?void 0:globalThis.process.env.DEBUG)||globalThis.DEBUG;(t==="1"||t!=null&&t.includes(e))&&(Rk.add(e),console.time(e))}ql.debugTimerStart=ine;function ane(e){Rk.has(e)&&console.timeEnd(e)}ql.debugTimerEnd=ane});var da=w(Qe=>{"use strict";m();T();N();Object.defineProperty(Qe,"__esModule",{value:!0});Qe.inspect=void 0;var Je=(kB(),pm(UB));Je.__exportStar(MB(),Qe);Je.__exportStar(bf(),Qe);Je.__exportStar(Yv(),Qe);Je.__exportStar(Jv(),Qe);Je.__exportStar(JB(),Qe);Je.__exportStar(zv(),Qe);Je.__exportStar(aS(),Qe);Je.__exportStar(Jv(),Qe);Je.__exportStar(dU(),Qe);Je.__exportStar(fU(),Qe);Je.__exportStar(OU(),Qe);Je.__exportStar(LU(),Qe);Je.__exportStar(BU(),Qe);Je.__exportStar(jU(),Qe);Je.__exportStar(GU(),Qe);Je.__exportStar($U(),Qe);Je.__exportStar(YU(),Qe);Je.__exportStar(JU(),Qe);Je.__exportStar(Cl(),Qe);Je.__exportStar(_S(),Qe);Je.__exportStar(TT(),Qe);Je.__exportStar(zU(),Qe);Je.__exportStar(XU(),Qe);Je.__exportStar(fc(),Qe);Je.__exportStar(mS(),Qe);Je.__exportStar(ZU(),Qe);Je.__exportStar(ek(),Qe);Je.__exportStar(tk(),Qe);Je.__exportStar(nk(),Qe);Je.__exportStar(NS(),Qe);Je.__exportStar(ak(),Qe);Je.__exportStar(sk(),Qe);Je.__exportStar(ok(),Qe);Je.__exportStar(WN(),Qe);Je.__exportStar(uk(),Qe);Je.__exportStar(mk(),Qe);Je.__exportStar(Qv(),Qe);Je.__exportStar(Nk(),Qe);Je.__exportStar(Tk(),Qe);Je.__exportStar(Ek(),Qe);Je.__exportStar(aT(),Qe);Je.__exportStar(hk(),Qe);Je.__exportStar(_k(),Qe);Je.__exportStar(Ff(),Qe);Je.__exportStar(oS(),Qe);Je.__exportStar(RS(),Qe);var sne=Af();Object.defineProperty(Qe,"inspect",{enumerable:!0,get:function(){return sne.inspect}});Je.__exportStar(Al(),Qe);Je.__exportStar(vk(),Qe);Je.__exportStar(PS(),Qe);Je.__exportStar(Sk(),Qe);Je.__exportStar(Ok(),Qe);Je.__exportStar(Rf(),Qe);Je.__exportStar(DS(),Qe);Je.__exportStar(Ak(),Qe);Je.__exportStar(Pk(),Qe)});var wk=w(QT=>{"use strict";m();T();N();Object.defineProperty(QT,"__esModule",{value:!0});QT.mergeResolvers=void 0;var one=da();function Fk(e,t){if(!e||Array.isArray(e)&&e.length===0)return{};if(!Array.isArray(e))return e;if(e.length===1)return e[0]||{};let n=new Array;for(let i of e)Array.isArray(i)&&(i=Fk(i)),typeof i=="object"&&i&&n.push(i);let r=(0,one.mergeDeep)(n,!0);if(t!=null&&t.exclusions)for(let i of t.exclusions){let[a,o]=i.split(".");!o||o==="*"?delete r[a]:r[a]&&delete r[a][o]}return r}QT.mergeResolvers=Fk});var kS=w(YT=>{"use strict";m();T();N();Object.defineProperty(YT,"__esModule",{value:!0});YT.mergeArguments=void 0;var Lk=da();function une(e,t,n){let r=cne([...t,...e].filter(Lk.isSome),n);return n&&n.sort&&r.sort(Lk.compareNodes),r}YT.mergeArguments=une;function cne(e,t){return e.reduce((n,r)=>{let i=n.findIndex(a=>a.name.value===r.name.value);return i===-1?n.concat([r]):(t!=null&&t.reverseArguments||(n[i]=r),n)},[])}});var $i=w(Vl=>{"use strict";m();T();N();Object.defineProperty(Vl,"__esModule",{value:!0});Vl.mergeDirective=Vl.mergeDirectives=void 0;var Ck=De(),lne=da();function dne(e,t){return!!e.find(n=>n.name.value===t.name.value)}function Bk(e,t){var n;return!!((n=t==null?void 0:t[e.name.value])!=null&&n.repeatable)}function fne(e,t){return t.some(({value:n})=>n===e.value)}function Uk(e,t){let n=[...t];for(let r of e){let i=n.findIndex(a=>a.name.value===r.name.value);if(i>-1){let a=n[i];if(a.value.kind==="ListValue"){let o=a.value.values,c=r.value.values;a.value.values=Ene(o,c,(l,d)=>{let p=l.value;return!p||!d.some(y=>y.value===p)})}else a.value=r.value}else n.push(r)}return n}function pne(e,t){return e.map((n,r,i)=>{let a=i.findIndex(o=>o.name.value===n.name.value);if(a!==r&&!Bk(n,t)){let o=i[a];return n.arguments=Uk(n.arguments,o.arguments),null}return n}).filter(lne.isSome)}function mne(e=[],t=[],n,r){let i=n&&n.reverseDirectives,a=i?e:t,o=i?t:e,c=pne([...a],r);for(let l of o)if(dne(c,l)&&!Bk(l,r)){let d=c.findIndex(y=>y.name.value===l.name.value),p=c[d];c[d].arguments=Uk(l.arguments||[],p.arguments||[])}else c.push(l);return c}Vl.mergeDirectives=mne;function Nne(e,t){let n=(0,Ck.print)(Q(x({},e),{description:void 0})),r=(0,Ck.print)(Q(x({},t),{description:void 0})),i=new RegExp("(directive @w*d*)|( on .*$)","g");if(!(n.replace(i,"")===r.replace(i,"")))throw new Error(`Unable to merge GraphQL directive "${e.name.value}". +`+o,block:!0})}):Q(x({},i),{description:{kind:Vi.Kind.STRING,value:o,block:c}})}}}})}fu.transformCommentsToDescriptions=vU;function SU(e){return(0,Vi.isTypeSystemDefinitionNode)(e)||e.kind===Vi.Kind.FIELD_DEFINITION||e.kind===Vi.Kind.INPUT_VALUE_DEFINITION||e.kind===Vi.Kind.ENUM_VALUE_DEFINITION}fu.isDescribable=SU});var LU=w(dT=>{"use strict";m();T();N();Object.defineProperty(dT,"__esModule",{value:!0});dT.buildOperationNodeForField=void 0;var lt=De(),RU=Ff(),lS=[],lT=new Map;function PU(e){lS.push(e)}function DU(){lS=[]}function bU(){lT=new Map}function Pee({schema:e,kind:t,field:n,models:r,ignore:i=[],depthLimit:a,circularReferenceDepth:o,argNames:c,selectedFields:l=!0}){DU(),bU();let d=(0,RU.getRootTypeNames)(e),p=Fee({schema:e,fieldName:n,kind:t,models:r||[],ignore:i,depthLimit:a||1/0,circularReferenceDepth:o||1,argNames:c,selectedFields:l,rootTypeNames:d});return p.variableDefinitions=[...lS],DU(),bU(),p}dT.buildOperationNodeForField=Pee;function Fee({schema:e,fieldName:t,kind:n,models:r,ignore:i,depthLimit:a,circularReferenceDepth:o,argNames:c,selectedFields:l,rootTypeNames:d}){let p=(0,RU.getDefinedRootType)(e,n),y=p.getFields()[t],I=`${t}_${n}`;if(y.args)for(let v of y.args){let F=v.name;(!c||c.includes(F))&&PU(FU(v,F))}return{kind:lt.Kind.OPERATION_DEFINITION,operation:n,name:{kind:lt.Kind.NAME,value:I},variableDefinitions:[],selectionSet:{kind:lt.Kind.SELECTION_SET,selections:[wU({type:p,field:y,models:r,firstCall:!0,path:[],ancestors:[],ignore:i,depthLimit:a,circularReferenceDepth:o,schema:e,depth:0,argNames:c,selectedFields:l,rootTypeNames:d})]}}}function cS({parent:e,type:t,models:n,firstCall:r,path:i,ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:d,depth:p,argNames:y,selectedFields:I,rootTypeNames:v}){if(!(typeof I=="boolean"&&p>c)){if((0,lt.isUnionType)(t)){let F=t.getTypes();return{kind:lt.Kind.SELECTION_SET,selections:F.filter(k=>!uS([...a,k],{depth:l})).map(k=>({kind:lt.Kind.INLINE_FRAGMENT,typeCondition:{kind:lt.Kind.NAMED_TYPE,name:{kind:lt.Kind.NAME,value:k.name}},selectionSet:cS({parent:t,type:k,models:n,path:i,ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:d,depth:p,argNames:y,selectedFields:I,rootTypeNames:v})})).filter(k=>{var K,J;return((J=(K=k==null?void 0:k.selectionSet)==null?void 0:K.selections)==null?void 0:J.length)>0})}}if((0,lt.isInterfaceType)(t)){let F=Object.values(d.getTypeMap()).filter(k=>(0,lt.isObjectType)(k)&&k.getInterfaces().includes(t));return{kind:lt.Kind.SELECTION_SET,selections:F.filter(k=>!uS([...a,k],{depth:l})).map(k=>({kind:lt.Kind.INLINE_FRAGMENT,typeCondition:{kind:lt.Kind.NAMED_TYPE,name:{kind:lt.Kind.NAME,value:k.name}},selectionSet:cS({parent:t,type:k,models:n,path:i,ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:d,depth:p,argNames:y,selectedFields:I,rootTypeNames:v})})).filter(k=>{var K,J;return((J=(K=k==null?void 0:k.selectionSet)==null?void 0:K.selections)==null?void 0:J.length)>0})}}if((0,lt.isObjectType)(t)&&!v.has(t.name)){let F=o.includes(t.name)||o.includes(`${e.name}.${i[i.length-1]}`),k=n.includes(t.name);if(!r&&k&&!F)return{kind:lt.Kind.SELECTION_SET,selections:[{kind:lt.Kind.FIELD,name:{kind:lt.Kind.NAME,value:"id"}}]};let K=t.getFields();return{kind:lt.Kind.SELECTION_SET,selections:Object.keys(K).filter(J=>!uS([...a,(0,lt.getNamedType)(K[J].type)],{depth:l})).map(J=>{let se=typeof I=="object"?I[J]:!0;return se?wU({type:t,field:K[J],models:n,path:[...i,J],ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:d,depth:p,argNames:y,selectedFields:se,rootTypeNames:v}):null}).filter(J=>{var se,ie;return J==null?!1:"selectionSet"in J?!!((ie=(se=J.selectionSet)==null?void 0:se.selections)!=null&&ie.length):!0})}}}}function FU(e,t){function n(r){return(0,lt.isListType)(r)?{kind:lt.Kind.LIST_TYPE,type:n(r.ofType)}:(0,lt.isNonNullType)(r)?{kind:lt.Kind.NON_NULL_TYPE,type:n(r.ofType)}:{kind:lt.Kind.NAMED_TYPE,name:{kind:lt.Kind.NAME,value:r.name}}}return{kind:lt.Kind.VARIABLE_DEFINITION,variable:{kind:lt.Kind.VARIABLE,name:{kind:lt.Kind.NAME,value:t||e.name}},type:n(e.type)}}function AU(e,t){return[...t,e].join("_")}function wU({type:e,field:t,models:n,firstCall:r,path:i,ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:d,depth:p,argNames:y,selectedFields:I,rootTypeNames:v}){let F=(0,lt.getNamedType)(t.type),k=[],K=!1;if(t.args&&t.args.length&&(k=t.args.map(Te=>{let de=AU(Te.name,i);return y&&!y.includes(de)?((0,lt.isNonNullType)(Te.type)&&(K=!0),null):(r||PU(FU(Te,de)),{kind:lt.Kind.ARGUMENT,name:{kind:lt.Kind.NAME,value:Te.name},value:{kind:lt.Kind.VARIABLE,name:{kind:lt.Kind.NAME,value:AU(Te.name,i)}}})}).filter(Boolean)),K)return null;let J=[...i,t.name],se=J.join("."),ie=t.name;return lT.has(se)&&lT.get(se)!==t.type.toString()&&(ie+=t.type.toString().replace("!","NonNull").replace("[","List").replace("]","")),lT.set(se,t.type.toString()),!(0,lt.isScalarType)(F)&&!(0,lt.isEnumType)(F)?Q(x({kind:lt.Kind.FIELD,name:{kind:lt.Kind.NAME,value:t.name}},ie!==t.name&&{alias:{kind:lt.Kind.NAME,value:ie}}),{selectionSet:cS({parent:e,type:F,models:n,firstCall:r,path:J,ancestors:[...a,e],ignore:o,depthLimit:c,circularReferenceDepth:l,schema:d,depth:p+1,argNames:y,selectedFields:I,rootTypeNames:v})||void 0,arguments:k}):Q(x({kind:lt.Kind.FIELD,name:{kind:lt.Kind.NAME,value:t.name}},ie!==t.name&&{alias:{kind:lt.Kind.NAME,value:ie}}),{arguments:k})}function uS(e,t={depth:1}){let n=e[e.length-1];return(0,lt.isScalarType)(n)?!1:e.filter(i=>i.name===n.name).length>t.depth}});var BU=w(fT=>{"use strict";m();T();N();Object.defineProperty(fT,"__esModule",{value:!0});fT.DirectiveLocation=void 0;var CU;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(CU||(fT.DirectiveLocation=CU={}))});var fc=w(pT=>{"use strict";m();T();N();Object.defineProperty(pT,"__esModule",{value:!0});pT.MapperKind=void 0;var UU;(function(e){e.TYPE="MapperKind.TYPE",e.SCALAR_TYPE="MapperKind.SCALAR_TYPE",e.ENUM_TYPE="MapperKind.ENUM_TYPE",e.COMPOSITE_TYPE="MapperKind.COMPOSITE_TYPE",e.OBJECT_TYPE="MapperKind.OBJECT_TYPE",e.INPUT_OBJECT_TYPE="MapperKind.INPUT_OBJECT_TYPE",e.ABSTRACT_TYPE="MapperKind.ABSTRACT_TYPE",e.UNION_TYPE="MapperKind.UNION_TYPE",e.INTERFACE_TYPE="MapperKind.INTERFACE_TYPE",e.ROOT_OBJECT="MapperKind.ROOT_OBJECT",e.QUERY="MapperKind.QUERY",e.MUTATION="MapperKind.MUTATION",e.SUBSCRIPTION="MapperKind.SUBSCRIPTION",e.DIRECTIVE="MapperKind.DIRECTIVE",e.FIELD="MapperKind.FIELD",e.COMPOSITE_FIELD="MapperKind.COMPOSITE_FIELD",e.OBJECT_FIELD="MapperKind.OBJECT_FIELD",e.ROOT_FIELD="MapperKind.ROOT_FIELD",e.QUERY_ROOT_FIELD="MapperKind.QUERY_ROOT_FIELD",e.MUTATION_ROOT_FIELD="MapperKind.MUTATION_ROOT_FIELD",e.SUBSCRIPTION_ROOT_FIELD="MapperKind.SUBSCRIPTION_ROOT_FIELD",e.INTERFACE_FIELD="MapperKind.INTERFACE_FIELD",e.INPUT_OBJECT_FIELD="MapperKind.INPUT_OBJECT_FIELD",e.ARGUMENT="MapperKind.ARGUMENT",e.ENUM_VALUE="MapperKind.ENUM_VALUE"})(UU||(pT.MapperKind=UU={}))});var dS=w(mT=>{"use strict";m();T();N();Object.defineProperty(mT,"__esModule",{value:!0});mT.getObjectTypeFromTypeMap=void 0;var wee=De();function Lee(e,t){if(t){let n=e[t.name];if((0,wee.isObjectType)(n))return n}}mT.getObjectTypeFromTypeMap=Lee});var mS=w(qa=>{"use strict";m();T();N();Object.defineProperty(qa,"__esModule",{value:!0});qa.getBuiltInForStub=qa.isNamedStub=qa.createStub=qa.createNamedStub=void 0;var dr=De();function fS(e,t){let n;return t==="object"?n=dr.GraphQLObjectType:t==="interface"?n=dr.GraphQLInterfaceType:n=dr.GraphQLInputObjectType,new n({name:e,fields:{_fake:{type:dr.GraphQLString}}})}qa.createNamedStub=fS;function pS(e,t){switch(e.kind){case dr.Kind.LIST_TYPE:return new dr.GraphQLList(pS(e.type,t));case dr.Kind.NON_NULL_TYPE:return new dr.GraphQLNonNull(pS(e.type,t));default:return t==="output"?fS(e.name.value,"object"):fS(e.name.value,"input")}}qa.createStub=pS;function Cee(e){if("getFields"in e){let t=e.getFields();for(let n in t)return t[n].name==="_fake"}return!1}qa.isNamedStub=Cee;function Bee(e){switch(e.name){case dr.GraphQLInt.name:return dr.GraphQLInt;case dr.GraphQLFloat.name:return dr.GraphQLFloat;case dr.GraphQLString.name:return dr.GraphQLString;case dr.GraphQLBoolean.name:return dr.GraphQLBoolean;case dr.GraphQLID.name:return dr.GraphQLID;default:return e}}qa.getBuiltInForStub=Bee});var TT=w(NT=>{"use strict";m();T();N();Object.defineProperty(NT,"__esModule",{value:!0});NT.rewireTypes=void 0;var Jn=De(),kU=mS();function Uee(e,t){let n=Object.create(null);for(let I in e)n[I]=e[I];let r=Object.create(null);for(let I in n){let v=n[I];if(v==null||I.startsWith("__"))continue;let F=v.name;if(!F.startsWith("__")){if(r[F]!=null){console.warn(`Duplicate schema type name ${F} found; keeping the existing one found in the schema`);continue}r[F]=v}}for(let I in r)r[I]=c(r[I]);let i=t.map(I=>a(I));return{typeMap:r,directives:i};function a(I){if((0,Jn.isSpecifiedDirective)(I))return I;let v=I.toConfig();return v.args=o(v.args),new Jn.GraphQLDirective(v)}function o(I){let v={};for(let F in I){let k=I[F],K=y(k.type);K!=null&&(k.type=K,v[F]=k)}return v}function c(I){if((0,Jn.isObjectType)(I)){let v=I.toConfig(),F=Q(x({},v),{fields:()=>l(v.fields),interfaces:()=>p(v.interfaces)});return new Jn.GraphQLObjectType(F)}else if((0,Jn.isInterfaceType)(I)){let v=I.toConfig(),F=Q(x({},v),{fields:()=>l(v.fields)});return"interfaces"in F&&(F.interfaces=()=>p(v.interfaces)),new Jn.GraphQLInterfaceType(F)}else if((0,Jn.isUnionType)(I)){let v=I.toConfig(),F=Q(x({},v),{types:()=>p(v.types)});return new Jn.GraphQLUnionType(F)}else if((0,Jn.isInputObjectType)(I)){let v=I.toConfig(),F=Q(x({},v),{fields:()=>d(v.fields)});return new Jn.GraphQLInputObjectType(F)}else if((0,Jn.isEnumType)(I)){let v=I.toConfig();return new Jn.GraphQLEnumType(v)}else if((0,Jn.isScalarType)(I)){if((0,Jn.isSpecifiedScalarType)(I))return I;let v=I.toConfig();return new Jn.GraphQLScalarType(v)}throw new Error(`Unexpected schema type: ${I}`)}function l(I){let v={};for(let F in I){let k=I[F],K=y(k.type);K!=null&&k.args&&(k.type=K,k.args=o(k.args),v[F]=k)}return v}function d(I){let v={};for(let F in I){let k=I[F],K=y(k.type);K!=null&&(k.type=K,v[F]=k)}return v}function p(I){let v=[];for(let F of I){let k=y(F);k!=null&&v.push(k)}return v}function y(I){if((0,Jn.isListType)(I)){let v=y(I.ofType);return v!=null?new Jn.GraphQLList(v):null}else if((0,Jn.isNonNullType)(I)){let v=y(I.ofType);return v!=null?new Jn.GraphQLNonNull(v):null}else if((0,Jn.isNamedType)(I)){let v=n[I.name];return v===void 0&&(v=(0,kU.isNamedStub)(I)?(0,kU.getBuiltInForStub)(I):c(I),r[v.name]=n[I.name]=v),v!=null?r[v.name]:null}return null}}NT.rewireTypes=Uee});var NS=w(Va=>{"use strict";m();T();N();Object.defineProperty(Va,"__esModule",{value:!0});Va.parseInputValueLiteral=Va.parseInputValue=Va.serializeInputValue=Va.transformInputValue=void 0;var ET=De(),kee=bf();function Fl(e,t,n=null,r=null){if(t==null)return t;let i=(0,ET.getNullableType)(e);if((0,ET.isLeafType)(i))return n!=null?n(i,t):t;if((0,ET.isListType)(i))return(0,kee.asArray)(t).map(a=>Fl(i.ofType,a,n,r));if((0,ET.isInputObjectType)(i)){let a=i.getFields(),o={};for(let c in t){let l=a[c];l!=null&&(o[c]=Fl(l.type,t[c],n,r))}return r!=null?r(i,o):o}}Va.transformInputValue=Fl;function Mee(e,t){return Fl(e,t,(n,r)=>{try{return n.serialize(r)}catch(i){return r}})}Va.serializeInputValue=Mee;function xee(e,t){return Fl(e,t,(n,r)=>{try{return n.parseValue(r)}catch(i){return r}})}Va.parseInputValue=xee;function qee(e,t){return Fl(e,t,(n,r)=>n.parseLiteral(r,{}))}Va.parseInputValueLiteral=qee});var Cl=w(Ll=>{"use strict";m();T();N();Object.defineProperty(Ll,"__esModule",{value:!0});Ll.correctASTNodes=Ll.mapSchema=void 0;var it=De(),wl=dS(),bt=fc(),Vee=TT(),MU=NS();function jee(e,t={}){let n=VU(qU(TS(xU(Kee(TS(xU(e.getTypeMap(),e,MU.serializeInputValue),e,t,c=>(0,it.isLeafType)(c)),e,t),e,MU.parseInputValue),e,t,c=>!(0,it.isLeafType)(c)),e,t),e,t),r=e.getDirectives(),i=Gee(r,e,t),{typeMap:a,directives:o}=(0,Vee.rewireTypes)(n,i);return new it.GraphQLSchema(Q(x({},e.toConfig()),{query:(0,wl.getObjectTypeFromTypeMap)(a,(0,wl.getObjectTypeFromTypeMap)(n,e.getQueryType())),mutation:(0,wl.getObjectTypeFromTypeMap)(a,(0,wl.getObjectTypeFromTypeMap)(n,e.getMutationType())),subscription:(0,wl.getObjectTypeFromTypeMap)(a,(0,wl.getObjectTypeFromTypeMap)(n,e.getSubscriptionType())),types:Object.values(a),directives:o}))}Ll.mapSchema=jee;function TS(e,t,n,r=()=>!0){let i={};for(let a in e)if(!a.startsWith("__")){let o=e[a];if(o==null||!r(o)){i[a]=o;continue}let c=Qee(t,n,a);if(c==null){i[a]=o;continue}let l=c(o,t);if(l===void 0){i[a]=o;continue}i[a]=l}return i}function Kee(e,t,n){let r=Wee(n);return r?TS(e,t,{[bt.MapperKind.ENUM_TYPE]:i=>{let a=i.toConfig(),o=a.values,c={};for(let l in o){let d=o[l],p=r(d,i.name,t,l);if(p===void 0)c[l]=d;else if(Array.isArray(p)){let[y,I]=p;c[y]=I===void 0?d:I}else p!==null&&(c[l]=p)}return kf(new it.GraphQLEnumType(Q(x({},a),{values:c})))}},i=>(0,it.isEnumType)(i)):e}function xU(e,t,n){let r=VU(e,t,{[bt.MapperKind.ARGUMENT]:i=>{if(i.defaultValue===void 0)return i;let a=hT(e,i.type);if(a!=null)return Q(x({},i),{defaultValue:n(a,i.defaultValue)})}});return qU(r,t,{[bt.MapperKind.INPUT_OBJECT_FIELD]:i=>{if(i.defaultValue===void 0)return i;let a=hT(r,i.type);if(a!=null)return Q(x({},i),{defaultValue:n(a,i.defaultValue)})}})}function hT(e,t){if((0,it.isListType)(t)){let n=hT(e,t.ofType);return n!=null?new it.GraphQLList(n):null}else if((0,it.isNonNullType)(t)){let n=hT(e,t.ofType);return n!=null?new it.GraphQLNonNull(n):null}else if((0,it.isNamedType)(t)){let n=e[t.name];return n!=null?n:null}return null}function qU(e,t,n){let r={};for(let i in e)if(!i.startsWith("__")){let a=e[i];if(!(0,it.isObjectType)(a)&&!(0,it.isInterfaceType)(a)&&!(0,it.isInputObjectType)(a)){r[i]=a;continue}let o=Jee(t,n,i);if(o==null){r[i]=a;continue}let c=a.toConfig(),l=c.fields,d={};for(let p in l){let y=l[p],I=o(y,p,i,t);if(I===void 0)d[p]=y;else if(Array.isArray(I)){let[v,F]=I;F.astNode!=null&&(F.astNode=Q(x({},F.astNode),{name:Q(x({},F.astNode.name),{value:v})})),d[v]=F===void 0?y:F}else I!==null&&(d[p]=I)}(0,it.isObjectType)(a)?r[i]=kf(new it.GraphQLObjectType(Q(x({},c),{fields:d}))):(0,it.isInterfaceType)(a)?r[i]=kf(new it.GraphQLInterfaceType(Q(x({},c),{fields:d}))):r[i]=kf(new it.GraphQLInputObjectType(Q(x({},c),{fields:d})))}return r}function VU(e,t,n){let r={};for(let i in e)if(!i.startsWith("__")){let a=e[i];if(!(0,it.isObjectType)(a)&&!(0,it.isInterfaceType)(a)){r[i]=a;continue}let o=Hee(n);if(o==null){r[i]=a;continue}let c=a.toConfig(),l=c.fields,d={};for(let p in l){let y=l[p],I=y.args;if(I==null){d[p]=y;continue}let v=Object.keys(I);if(!v.length){d[p]=y;continue}let F={};for(let k of v){let K=I[k],J=o(K,p,i,t);if(J===void 0)F[k]=K;else if(Array.isArray(J)){let[se,ie]=J;F[se]=ie}else J!==null&&(F[k]=J)}d[p]=Q(x({},y),{args:F})}(0,it.isObjectType)(a)?r[i]=new it.GraphQLObjectType(Q(x({},c),{fields:d})):(0,it.isInterfaceType)(a)?r[i]=new it.GraphQLInterfaceType(Q(x({},c),{fields:d})):r[i]=new it.GraphQLInputObjectType(Q(x({},c),{fields:d}))}return r}function Gee(e,t,n){let r=zee(n);if(r==null)return e.slice();let i=[];for(let a of e){let o=r(a,t);o===void 0?i.push(a):o!==null&&i.push(o)}return i}function $ee(e,t){var i,a,o;let n=e.getType(t),r=[bt.MapperKind.TYPE];return(0,it.isObjectType)(n)?(r.push(bt.MapperKind.COMPOSITE_TYPE,bt.MapperKind.OBJECT_TYPE),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(bt.MapperKind.ROOT_OBJECT,bt.MapperKind.QUERY):t===((a=e.getMutationType())==null?void 0:a.name)?r.push(bt.MapperKind.ROOT_OBJECT,bt.MapperKind.MUTATION):t===((o=e.getSubscriptionType())==null?void 0:o.name)&&r.push(bt.MapperKind.ROOT_OBJECT,bt.MapperKind.SUBSCRIPTION)):(0,it.isInputObjectType)(n)?r.push(bt.MapperKind.INPUT_OBJECT_TYPE):(0,it.isInterfaceType)(n)?r.push(bt.MapperKind.COMPOSITE_TYPE,bt.MapperKind.ABSTRACT_TYPE,bt.MapperKind.INTERFACE_TYPE):(0,it.isUnionType)(n)?r.push(bt.MapperKind.COMPOSITE_TYPE,bt.MapperKind.ABSTRACT_TYPE,bt.MapperKind.UNION_TYPE):(0,it.isEnumType)(n)?r.push(bt.MapperKind.ENUM_TYPE):(0,it.isScalarType)(n)&&r.push(bt.MapperKind.SCALAR_TYPE),r}function Qee(e,t,n){let r=$ee(e,n),i,a=[...r];for(;!i&&a.length>0;){let o=a.pop();i=t[o]}return i!=null?i:null}function Yee(e,t){var i,a,o;let n=e.getType(t),r=[bt.MapperKind.FIELD];return(0,it.isObjectType)(n)?(r.push(bt.MapperKind.COMPOSITE_FIELD,bt.MapperKind.OBJECT_FIELD),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(bt.MapperKind.ROOT_FIELD,bt.MapperKind.QUERY_ROOT_FIELD):t===((a=e.getMutationType())==null?void 0:a.name)?r.push(bt.MapperKind.ROOT_FIELD,bt.MapperKind.MUTATION_ROOT_FIELD):t===((o=e.getSubscriptionType())==null?void 0:o.name)&&r.push(bt.MapperKind.ROOT_FIELD,bt.MapperKind.SUBSCRIPTION_ROOT_FIELD)):(0,it.isInterfaceType)(n)?r.push(bt.MapperKind.COMPOSITE_FIELD,bt.MapperKind.INTERFACE_FIELD):(0,it.isInputObjectType)(n)&&r.push(bt.MapperKind.INPUT_OBJECT_FIELD),r}function Jee(e,t,n){let r=Yee(e,n),i,a=[...r];for(;!i&&a.length>0;){let o=a.pop();i=t[o]}return i!=null?i:null}function Hee(e){let t=e[bt.MapperKind.ARGUMENT];return t!=null?t:null}function zee(e){let t=e[bt.MapperKind.DIRECTIVE];return t!=null?t:null}function Wee(e){let t=e[bt.MapperKind.ENUM_VALUE];return t!=null?t:null}function kf(e){if((0,it.isObjectType)(e)){let t=e.toConfig();if(t.astNode!=null){let n=[];for(let r in t.fields){let i=t.fields[r];i.astNode!=null&&n.push(i.astNode)}t.astNode=Q(x({},t.astNode),{kind:it.Kind.OBJECT_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>Q(x({},n),{kind:it.Kind.OBJECT_TYPE_EXTENSION,fields:void 0}))),new it.GraphQLObjectType(t)}else if((0,it.isInterfaceType)(e)){let t=e.toConfig();if(t.astNode!=null){let n=[];for(let r in t.fields){let i=t.fields[r];i.astNode!=null&&n.push(i.astNode)}t.astNode=Q(x({},t.astNode),{kind:it.Kind.INTERFACE_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>Q(x({},n),{kind:it.Kind.INTERFACE_TYPE_EXTENSION,fields:void 0}))),new it.GraphQLInterfaceType(t)}else if((0,it.isInputObjectType)(e)){let t=e.toConfig();if(t.astNode!=null){let n=[];for(let r in t.fields){let i=t.fields[r];i.astNode!=null&&n.push(i.astNode)}t.astNode=Q(x({},t.astNode),{kind:it.Kind.INPUT_OBJECT_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>Q(x({},n),{kind:it.Kind.INPUT_OBJECT_TYPE_EXTENSION,fields:void 0}))),new it.GraphQLInputObjectType(t)}else if((0,it.isEnumType)(e)){let t=e.toConfig();if(t.astNode!=null){let n=[];for(let r in t.values){let i=t.values[r];i.astNode!=null&&n.push(i.astNode)}t.astNode=Q(x({},t.astNode),{values:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>Q(x({},n),{values:void 0}))),new it.GraphQLEnumType(t)}else return e}Ll.correctASTNodes=kf});var jU=w(IT=>{"use strict";m();T();N();Object.defineProperty(IT,"__esModule",{value:!0});IT.filterSchema=void 0;var yT=De(),Os=fc(),Xee=Cl();function Zee({schema:e,typeFilter:t=()=>!0,fieldFilter:n=void 0,rootFieldFilter:r=void 0,objectFieldFilter:i=void 0,interfaceFieldFilter:a=void 0,inputObjectFieldFilter:o=void 0,argumentFilter:c=void 0}){return(0,Xee.mapSchema)(e,{[Os.MapperKind.QUERY]:d=>ES(d,"Query",r,c),[Os.MapperKind.MUTATION]:d=>ES(d,"Mutation",r,c),[Os.MapperKind.SUBSCRIPTION]:d=>ES(d,"Subscription",r,c),[Os.MapperKind.OBJECT_TYPE]:d=>t(d.name,d)?hS(yT.GraphQLObjectType,d,i||n,c):null,[Os.MapperKind.INTERFACE_TYPE]:d=>t(d.name,d)?hS(yT.GraphQLInterfaceType,d,a||n,c):null,[Os.MapperKind.INPUT_OBJECT_TYPE]:d=>t(d.name,d)?hS(yT.GraphQLInputObjectType,d,o||n):null,[Os.MapperKind.UNION_TYPE]:d=>t(d.name,d)?void 0:null,[Os.MapperKind.ENUM_TYPE]:d=>t(d.name,d)?void 0:null,[Os.MapperKind.SCALAR_TYPE]:d=>t(d.name,d)?void 0:null})}IT.filterSchema=Zee;function ES(e,t,n,r){if(n||r){let i=e.toConfig();for(let a in i.fields){let o=i.fields[a];if(n&&!n(t,a,i.fields[a]))delete i.fields[a];else if(r&&o.args)for(let c in o.args)r(t,a,c,o.args[c])||delete o.args[c]}return new yT.GraphQLObjectType(i)}return e}function hS(e,t,n,r){if(n||r){let i=t.toConfig();for(let a in i.fields){let o=i.fields[a];if(n&&!n(t.name,a,i.fields[a]))delete i.fields[a];else if(r&&"args"in o)for(let c in o.args)r(t.name,a,c,o.args[c])||delete o.args[c]}return new e(i)}}});var GU=w(Bl=>{"use strict";m();T();N();Object.defineProperty(Bl,"__esModule",{value:!0});Bl.healTypes=Bl.healSchema=void 0;var ja=De();function ete(e){return KU(e.getTypeMap(),e.getDirectives()),e}Bl.healSchema=ete;function KU(e,t){let n=Object.create(null);for(let d in e){let p=e[d];if(p==null||d.startsWith("__"))continue;let y=p.name;if(!y.startsWith("__")){if(n[y]!=null){console.warn(`Duplicate schema type name ${y} found; keeping the existing one found in the schema`);continue}n[y]=p}}for(let d in n){let p=n[d];e[d]=p}for(let d of t)d.args=d.args.filter(p=>(p.type=l(p.type),p.type!==null));for(let d in e){let p=e[d];!d.startsWith("__")&&d in n&&p!=null&&r(p)}for(let d in e)!d.startsWith("__")&&!(d in n)&&delete e[d];function r(d){if((0,ja.isObjectType)(d)){i(d),a(d);return}else if((0,ja.isInterfaceType)(d)){i(d),"getInterfaces"in d&&a(d);return}else if((0,ja.isUnionType)(d)){c(d);return}else if((0,ja.isInputObjectType)(d)){o(d);return}else if((0,ja.isLeafType)(d))return;throw new Error(`Unexpected schema type: ${d}`)}function i(d){let p=d.getFields();for(let[y,I]of Object.entries(p))I.args.map(v=>(v.type=l(v.type),v.type===null?null:v)).filter(Boolean),I.type=l(I.type),I.type===null&&delete p[y]}function a(d){if("getInterfaces"in d){let p=d.getInterfaces();p.push(...p.splice(0).map(y=>l(y)).filter(Boolean))}}function o(d){let p=d.getFields();for(let[y,I]of Object.entries(p))I.type=l(I.type),I.type===null&&delete p[y]}function c(d){let p=d.getTypes();p.push(...p.splice(0).map(y=>l(y)).filter(Boolean))}function l(d){if((0,ja.isListType)(d)){let p=l(d.ofType);return p!=null?new ja.GraphQLList(p):null}else if((0,ja.isNonNullType)(d)){let p=l(d.ofType);return p!=null?new ja.GraphQLNonNull(p):null}else if((0,ja.isNamedType)(d)){let p=e[d.name];if(p&&d!==p)return p}return d}}Bl.healTypes=KU});var $U=w(gT=>{"use strict";m();T();N();Object.defineProperty(gT,"__esModule",{value:!0});gT.getResolversFromSchema=void 0;var pc=De();function tte(e,t){var i,a;let n=Object.create(null),r=e.getTypeMap();for(let o in r)if(!o.startsWith("__")){let c=r[o];if((0,pc.isScalarType)(c)){if(!(0,pc.isSpecifiedScalarType)(c)){let l=c.toConfig();delete l.astNode,n[o]=new pc.GraphQLScalarType(l)}}else if((0,pc.isEnumType)(c)){n[o]={};let l=c.getValues();for(let d of l)n[o][d.name]=d.value}else if((0,pc.isInterfaceType)(c))c.resolveType!=null&&(n[o]={__resolveType:c.resolveType});else if((0,pc.isUnionType)(c))c.resolveType!=null&&(n[o]={__resolveType:c.resolveType});else if((0,pc.isObjectType)(c)){n[o]={},c.isTypeOf!=null&&(n[o].__isTypeOf=c.isTypeOf);let l=c.getFields();for(let d in l){let p=l[d];if(p.subscribe!=null&&(n[o][d]=n[o][d]||{},n[o][d].subscribe=p.subscribe),p.resolve!=null&&((i=p.resolve)==null?void 0:i.name)!=="defaultFieldResolver"){switch((a=p.resolve)==null?void 0:a.name){case"defaultMergedResolver":if(!t)continue;break;case"defaultFieldResolver":continue}n[o][d]=n[o][d]||{},n[o][d].resolve=p.resolve}}}}return n}gT.getResolversFromSchema=tte});var YU=w(_T=>{"use strict";m();T();N();Object.defineProperty(_T,"__esModule",{value:!0});_T.forEachField=void 0;var QU=De();function nte(e,t){let n=e.getTypeMap();for(let r in n){let i=n[r];if(!(0,QU.getNamedType)(i).name.startsWith("__")&&(0,QU.isObjectType)(i)){let a=i.getFields();for(let o in a){let c=a[o];t(c,r,o)}}}}_T.forEachField=nte});var JU=w(vT=>{"use strict";m();T();N();Object.defineProperty(vT,"__esModule",{value:!0});vT.forEachDefaultValue=void 0;var yS=De();function rte(e,t){let n=e.getTypeMap();for(let r in n){let i=n[r];if(!(0,yS.getNamedType)(i).name.startsWith("__")){if((0,yS.isObjectType)(i)){let a=i.getFields();for(let o in a){let c=a[o];for(let l of c.args)l.defaultValue=t(l.type,l.defaultValue)}}else if((0,yS.isInputObjectType)(i)){let a=i.getFields();for(let o in a){let c=a[o];c.defaultValue=t(c.type,c.defaultValue)}}}}}vT.forEachDefaultValue=rte});var _S=w(ST=>{"use strict";m();T();N();Object.defineProperty(ST,"__esModule",{value:!0});ST.addTypes=void 0;var IS=De(),gS=dS(),ite=TT();function ate(e,t){let n=e.toConfig(),r={};for(let c of n.types)r[c.name]=c;let i={};for(let c of n.directives)i[c.name]=c;for(let c of t)(0,IS.isNamedType)(c)?r[c.name]=c:(0,IS.isDirective)(c)&&(i[c.name]=c);let{typeMap:a,directives:o}=(0,ite.rewireTypes)(r,Object.values(i));return new IS.GraphQLSchema(Q(x({},n),{query:(0,gS.getObjectTypeFromTypeMap)(a,e.getQueryType()),mutation:(0,gS.getObjectTypeFromTypeMap)(a,e.getMutationType()),subscription:(0,gS.getObjectTypeFromTypeMap)(a,e.getSubscriptionType()),types:Object.values(a),directives:o}))}ST.addTypes=ate});var zU=w(DT=>{"use strict";m();T();N();Object.defineProperty(DT,"__esModule",{value:!0});DT.pruneSchema=void 0;var tr=De(),ste=zv(),ote=fc(),ute=Cl(),cte=Ff();function lte(e,t={}){let{skipEmptyCompositeTypePruning:n,skipEmptyUnionPruning:r,skipPruning:i,skipUnimplementedInterfacesPruning:a,skipUnusedTypesPruning:o}=t,c=[],l=e;do{let d=dte(l);if(i){let p=[];for(let y in l.getTypeMap()){if(y.startsWith("__"))continue;let I=l.getType(y);I&&i(I)&&p.push(y)}d=HU(p,l,d)}c=[],l=(0,ute.mapSchema)(l,{[ote.MapperKind.TYPE]:p=>!d.has(p.name)&&!(0,tr.isSpecifiedScalarType)(p)?((0,tr.isUnionType)(p)||(0,tr.isInputObjectType)(p)||(0,tr.isInterfaceType)(p)||(0,tr.isObjectType)(p)||(0,tr.isScalarType)(p))&&(o||(0,tr.isUnionType)(p)&&r&&!Object.keys(p.getTypes()).length||((0,tr.isInputObjectType)(p)||(0,tr.isInterfaceType)(p)||(0,tr.isObjectType)(p))&&n&&!Object.keys(p.getFields()).length||(0,tr.isInterfaceType)(p)&&a)?p:(c.push(p.name),d.delete(p.name),null):p})}while(c.length);return l}DT.pruneSchema=lte;function dte(e){let t=[];for(let n of(0,cte.getRootTypes)(e))t.push(n.name);return HU(t,e)}function HU(e,t,n=new Set){let r=new Map;for(;e.length;){let i=e.pop();if(n.has(i)&&r[i]!==!0)continue;let a=t.getType(i);if(a){if((0,tr.isUnionType)(a)&&e.push(...a.getTypes().map(o=>o.name)),(0,tr.isInterfaceType)(a)&&r[i]===!0&&(e.push(...(0,ste.getImplementingTypes)(a.name,t)),r[i]=!1),(0,tr.isEnumType)(a)&&e.push(...a.getValues().flatMap(o=>o.astNode?OT(t,o.astNode):[])),"getInterfaces"in a&&e.push(...a.getInterfaces().map(o=>o.name)),"getFields"in a){let o=a.getFields(),c=Object.entries(o);if(!c.length)continue;for(let[,l]of c){(0,tr.isObjectType)(a)&&e.push(...l.args.flatMap(p=>{let y=[(0,tr.getNamedType)(p.type).name];return p.astNode&&y.push(...OT(t,p.astNode)),y}));let d=(0,tr.getNamedType)(l.type);e.push(d.name),l.astNode&&e.push(...OT(t,l.astNode)),(0,tr.isInterfaceType)(d)&&!(d.name in r)&&(r[d.name]=!0)}}a.astNode&&e.push(...OT(t,a.astNode)),n.add(i)}}return n}function OT(e,t){var n;return((n=t.directives)!=null?n:[]).flatMap(r=>{var i,a;return(a=(i=e.getDirective(r.name.value))==null?void 0:i.args.map(o=>(0,tr.getNamedType)(o.type).name))!=null?a:[]})}});var XU=w(bT=>{"use strict";m();T();N();Object.defineProperty(bT,"__esModule",{value:!0});bT.mergeDeep=void 0;var fte=bf();function WU(e,t=!1,n=!1){let r=e[0]||{},i={};t&&Object.setPrototypeOf(i,Object.create(Object.getPrototypeOf(r)));for(let a of e)if(vS(r)&&vS(a)){if(t){let o=Object.getPrototypeOf(i),c=Object.getPrototypeOf(a);if(c)for(let l of Object.getOwnPropertyNames(c)){let d=Object.getOwnPropertyDescriptor(c,l);(0,fte.isSome)(d)&&Object.defineProperty(o,l,d)}}for(let o in a)vS(a[o])?o in i?i[o]=WU([i[o],a[o]],t,n):Object.assign(i,{[o]:a[o]}):n&&Array.isArray(i[o])?Array.isArray(a[o])?i[o].push(...a[o]):i[o].push(a[o]):Object.assign(i,{[o]:a[o]})}else if(n&&Array.isArray(r))Array.isArray(a)?r.push(...a):r.push(a);else if(n&&Array.isArray(a))return[r,...a];return i}bT.mergeDeep=WU;function vS(e){return e&&typeof e=="object"&&!Array.isArray(e)}});var ZU=w(AT=>{"use strict";m();T();N();Object.defineProperty(AT,"__esModule",{value:!0});AT.parseSelectionSet=void 0;var pte=De();function mte(e,t){return(0,pte.parse)(e,t).definitions[0].selectionSet}AT.parseSelectionSet=mte});var ek=w(RT=>{"use strict";m();T();N();Object.defineProperty(RT,"__esModule",{value:!0});RT.getResponseKeyFromInfo=void 0;function Nte(e){return e.fieldNodes[0].alias!=null?e.fieldNodes[0].alias.value:e.fieldName}RT.getResponseKeyFromInfo=Nte});var tk=w(Ka=>{"use strict";m();T();N();Object.defineProperty(Ka,"__esModule",{value:!0});Ka.modifyObjectFields=Ka.selectObjectFields=Ka.removeObjectFields=Ka.appendObjectFields=void 0;var PT=De(),Tte=_S(),FT=fc(),mc=Cl();function Ete(e,t,n){return e.getType(t)==null?(0,Tte.addTypes)(e,[new PT.GraphQLObjectType({name:t,fields:n})]):(0,mc.mapSchema)(e,{[FT.MapperKind.OBJECT_TYPE]:r=>{if(r.name===t){let i=r.toConfig(),a=i.fields,o={};for(let c in a)o[c]=a[c];for(let c in n)o[c]=n[c];return(0,mc.correctASTNodes)(new PT.GraphQLObjectType(Q(x({},i),{fields:o})))}}})}Ka.appendObjectFields=Ete;function hte(e,t,n){let r={};return[(0,mc.mapSchema)(e,{[FT.MapperKind.OBJECT_TYPE]:a=>{if(a.name===t){let o=a.toConfig(),c=o.fields,l={};for(let d in c){let p=c[d];n(d,p)?r[d]=p:l[d]=p}return(0,mc.correctASTNodes)(new PT.GraphQLObjectType(Q(x({},o),{fields:l})))}}}),r]}Ka.removeObjectFields=hte;function yte(e,t,n){let r={};return(0,mc.mapSchema)(e,{[FT.MapperKind.OBJECT_TYPE]:i=>{if(i.name===t){let o=i.toConfig().fields;for(let c in o){let l=o[c];n(c,l)&&(r[c]=l)}}}}),r}Ka.selectObjectFields=yte;function Ite(e,t,n,r){let i={};return[(0,mc.mapSchema)(e,{[FT.MapperKind.OBJECT_TYPE]:o=>{if(o.name===t){let c=o.toConfig(),l=c.fields,d={};for(let p in l){let y=l[p];n(p,y)?i[p]=y:d[p]=y}for(let p in r){let y=r[p];d[p]=y}return(0,mc.correctASTNodes)(new PT.GraphQLObjectType(Q(x({},c),{fields:d})))}}}),i]}Ka.modifyObjectFields=Ite});var nk=w(wT=>{"use strict";m();T();N();Object.defineProperty(wT,"__esModule",{value:!0});wT.renameType=void 0;var ji=De();function gte(e,t){if((0,ji.isObjectType)(e))return new ji.GraphQLObjectType(Q(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Q(x({},e.astNode),{name:Q(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Q(x({},n),{name:Q(x({},n.name),{value:t})}))}));if((0,ji.isInterfaceType)(e))return new ji.GraphQLInterfaceType(Q(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Q(x({},e.astNode),{name:Q(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Q(x({},n),{name:Q(x({},n.name),{value:t})}))}));if((0,ji.isUnionType)(e))return new ji.GraphQLUnionType(Q(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Q(x({},e.astNode),{name:Q(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Q(x({},n),{name:Q(x({},n.name),{value:t})}))}));if((0,ji.isInputObjectType)(e))return new ji.GraphQLInputObjectType(Q(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Q(x({},e.astNode),{name:Q(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Q(x({},n),{name:Q(x({},n.name),{value:t})}))}));if((0,ji.isEnumType)(e))return new ji.GraphQLEnumType(Q(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Q(x({},e.astNode),{name:Q(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Q(x({},n),{name:Q(x({},n.name),{value:t})}))}));if((0,ji.isScalarType)(e))return new ji.GraphQLScalarType(Q(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Q(x({},e.astNode),{name:Q(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Q(x({},n),{name:Q(x({},n.name),{value:t})}))}));throw new Error(`Unknown type ${e}.`)}wT.renameType=gte});var ak=w(LT=>{"use strict";m();T();N();Object.defineProperty(LT,"__esModule",{value:!0});LT.mapAsyncIterator=void 0;var _te=Rf();function vte(e,t,n,r){let i,a,o;r&&(o=d=>{let p=r();return(0,_te.isPromise)(p)?p.then(()=>d):d}),typeof e.return=="function"&&(i=e.return,a=d=>{let p=()=>Promise.reject(d);return i.call(e).then(p,p)});function c(d){return d.done?o?o(d):d:rk(d.value,t).then(ik,a)}let l;if(n){let d=n;l=p=>rk(p,d).then(ik,a)}return{next(){return e.next().then(c,l)},return(){let d=i?i.call(e).then(c,l):Promise.resolve({value:void 0,done:!0});return o?d.then(o):d},throw(d){return typeof e.throw=="function"?e.throw(d).then(c,l):Promise.reject(d).catch(a)},[Symbol.asyncIterator](){return this}}}LT.mapAsyncIterator=vte;function rk(e,t){return new Promise(n=>n(t(e)))}function ik(e){return{value:e,done:!1}}});var sk=w(Ul=>{"use strict";m();T();N();Object.defineProperty(Ul,"__esModule",{value:!0});Ul.createVariableNameGenerator=Ul.updateArgument=void 0;var Nc=De(),Ste=Xv();function Ote(e,t,n,r,i,a,o){if(e[r]={kind:Nc.Kind.ARGUMENT,name:{kind:Nc.Kind.NAME,value:r},value:{kind:Nc.Kind.VARIABLE,name:{kind:Nc.Kind.NAME,value:i}}},t[i]={kind:Nc.Kind.VARIABLE_DEFINITION,variable:{kind:Nc.Kind.VARIABLE,name:{kind:Nc.Kind.NAME,value:i}},type:(0,Ste.astFromType)(a)},o!==void 0){n[i]=o;return}i in n&&delete n[i]}Ul.updateArgument=Ote;function Dte(e){let t=0;return n=>{let r;do r=`_v${(t++).toString()}_${n}`;while(r in e);return r}}Ul.createVariableNameGenerator=Dte});var ok=w(CT=>{"use strict";m();T();N();Object.defineProperty(CT,"__esModule",{value:!0});CT.implementsAbstractType=void 0;var SS=De();function bte(e,t,n){return n==null||t==null?!1:t===n?!0:(0,SS.isCompositeType)(t)&&(0,SS.isCompositeType)(n)?(0,SS.doTypesOverlap)(e,t,n):!1}CT.implementsAbstractType=bte});var uk=w(BT=>{"use strict";m();T();N();Object.defineProperty(BT,"__esModule",{value:!0});BT.observableToAsyncIterable=void 0;function Ate(e){let t=[],n=[],r=!0,i=p=>{t.length!==0?t.shift()({value:p,done:!1}):n.push({value:p,done:!1})},a=p=>{t.length!==0?t.shift()({value:{errors:[p]},done:!1}):n.push({value:{errors:[p]},done:!1})},o=()=>{t.length!==0?t.shift()({done:!0}):n.push({done:!0})},c=()=>new Promise(p=>{if(n.length!==0){let y=n.shift();p(y)}else t.push(p)}),l=e.subscribe({next(p){i(p)},error(p){a(p)},complete(){o()}}),d=()=>{if(r){r=!1,l.unsubscribe();for(let p of t)p({value:void 0,done:!0});t.length=0,n.length=0}};return{next(){return r?c():this.return()},return(){return d(),Promise.resolve({value:void 0,done:!0})},throw(p){return d(),Promise.reject(p)},[Symbol.asyncIterator](){return this}}}BT.observableToAsyncIterable=Ate});var ck=w(UT=>{"use strict";m();T();N();Object.defineProperty(UT,"__esModule",{value:!0});UT.AccumulatorMap=void 0;var OS=class extends Map{get[Symbol.toStringTag](){return"AccumulatorMap"}add(t,n){let r=this.get(t);r===void 0?this.set(t,[n]):r.push(n)}};UT.AccumulatorMap=OS});var DS=w(kl=>{"use strict";m();T();N();Object.defineProperty(kl,"__esModule",{value:!0});kl.GraphQLStreamDirective=kl.GraphQLDeferDirective=void 0;var Ki=De();kl.GraphQLDeferDirective=new Ki.GraphQLDirective({name:"defer",description:"Directs the executor to defer this fragment when the `if` argument is true or undefined.",locations:[Ki.DirectiveLocation.FRAGMENT_SPREAD,Ki.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new Ki.GraphQLNonNull(Ki.GraphQLBoolean),description:"Deferred when true or undefined.",defaultValue:!0},label:{type:Ki.GraphQLString,description:"Unique name"}}});kl.GraphQLStreamDirective=new Ki.GraphQLDirective({name:"stream",description:"Directs the executor to stream plural fields when the `if` argument is true or undefined.",locations:[Ki.DirectiveLocation.FIELD],args:{if:{type:new Ki.GraphQLNonNull(Ki.GraphQLBoolean),description:"Stream when true or undefined.",defaultValue:!0},label:{type:Ki.GraphQLString,description:"Unique name"},initialCount:{defaultValue:0,type:Ki.GraphQLInt,description:"Number of items to return immediately"}}})});var RS=w(Wr=>{"use strict";m();T();N();Object.defineProperty(Wr,"__esModule",{value:!0});Wr.collectSubFields=Wr.getDeferValues=Wr.getFieldEntryKey=Wr.doesFragmentConditionMatch=Wr.shouldIncludeNode=Wr.collectFields=void 0;var Ga=De(),MT=ck(),Rte=DS(),Pte=Al();function Ml(e,t,n,r,i,a,o,c){for(let l of i.selections)switch(l.kind){case Ga.Kind.FIELD:{if(!kT(n,l))continue;a.add(lk(l),l);break}case Ga.Kind.INLINE_FRAGMENT:{if(!kT(n,l)||!bS(e,l,r))continue;let d=AS(n,l);if(d){let p=new MT.AccumulatorMap;Ml(e,t,n,r,l.selectionSet,p,o,c),o.push({label:d.label,fields:p})}else Ml(e,t,n,r,l.selectionSet,a,o,c);break}case Ga.Kind.FRAGMENT_SPREAD:{let d=l.name.value;if(!kT(n,l))continue;let p=AS(n,l);if(c.has(d)&&!p)continue;let y=t[d];if(!y||!bS(e,y,r))continue;if(p||c.add(d),p){let I=new MT.AccumulatorMap;Ml(e,t,n,r,y.selectionSet,I,o,c),o.push({label:p.label,fields:I})}else Ml(e,t,n,r,y.selectionSet,a,o,c);break}}}function Fte(e,t,n,r,i){let a=new MT.AccumulatorMap,o=[];return Ml(e,t,n,r,i,a,o,new Set),{fields:a,patches:o}}Wr.collectFields=Fte;function kT(e,t){let n=(0,Ga.getDirectiveValues)(Ga.GraphQLSkipDirective,t,e);if((n==null?void 0:n.if)===!0)return!1;let r=(0,Ga.getDirectiveValues)(Ga.GraphQLIncludeDirective,t,e);return(r==null?void 0:r.if)!==!1}Wr.shouldIncludeNode=kT;function bS(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=(0,Ga.typeFromAST)(e,r);return i===n?!0:(0,Ga.isAbstractType)(i)?e.getPossibleTypes(i).includes(n):!1}Wr.doesFragmentConditionMatch=bS;function lk(e){return e.alias?e.alias.value:e.name.value}Wr.getFieldEntryKey=lk;function AS(e,t){let n=(0,Ga.getDirectiveValues)(Rte.GraphQLDeferDirective,t,e);if(n&&n.if!==!1)return{label:typeof n.label=="string"?n.label:void 0}}Wr.getDeferValues=AS;Wr.collectSubFields=(0,Pte.memoize5)(function(t,n,r,i,a){let o=new MT.AccumulatorMap,c=new Set,l=[],d={fields:o,patches:l};for(let p of a)p.selectionSet&&Ml(t,n,r,i,p.selectionSet,o,l,c);return d})});var PS=w(xl=>{"use strict";m();T();N();Object.defineProperty(xl,"__esModule",{value:!0});xl.getOperationASTFromRequest=xl.getOperationASTFromDocument=void 0;var wte=De(),Lte=Al();function dk(e,t){let n=(0,wte.getOperationAST)(e,t);if(!n)throw new Error(`Cannot infer operation ${t||""}`);return n}xl.getOperationASTFromDocument=dk;xl.getOperationASTFromRequest=(0,Lte.memoize1)(function(t){return dk(t.document,t.operationName)})});var mk=w(mu=>{"use strict";m();T();N();Object.defineProperty(mu,"__esModule",{value:!0});mu.visitResult=mu.visitErrors=mu.visitData=void 0;var pu=De(),FS=RS(),Cte=PS();function wS(e,t,n){if(Array.isArray(e))return e.map(r=>wS(r,t,n));if(typeof e=="object"){let r=t!=null?t(e):e;if(r!=null)for(let i in r){let a=r[i];Object.defineProperty(r,i,{value:wS(a,t,n)})}return n!=null?n(r):r}return e}mu.visitData=wS;function Bte(e,t){return e.map(n=>t(n))}mu.visitErrors=Bte;function Ute(e,t,n,r,i){let a=t.document.definitions.reduce((I,v)=>(v.kind===pu.Kind.FRAGMENT_DEFINITION&&(I[v.name.value]=v),I),{}),o=t.variables||{},c={segmentInfoMap:new Map,unpathedErrors:new Set},l=e.data,d=e.errors,p=d!=null&&i!=null,y=(0,Cte.getOperationASTFromRequest)(t);return l!=null&&y!=null&&(e.data=xte(l,y,n,a,o,r,p?d:void 0,c)),d!=null&&i&&(e.errors=kte(d,i,c)),e}mu.visitResult=Ute;function kte(e,t,n){let r=n.segmentInfoMap,i=n.unpathedErrors,a=t.__unpathed;return e.map(o=>{let c=r.get(o),l=c==null?o:c.reduceRight((d,p)=>{let y=p.type.name,I=t[y];if(I==null)return d;let v=I[p.fieldName];return v==null?d:v(d,p.pathIndex)},o);return a&&i.has(o)?a(l):l})}function Mte(e,t){switch(t.operation){case"query":return e.getQueryType();case"mutation":return e.getMutationType();case"subscription":return e.getSubscriptionType()}}function xte(e,t,n,r,i,a,o,c){let l=Mte(n,t),{fields:d}=(0,FS.collectFields)(n,r,i,l,t.selectionSet);return LS(e,l,d,n,r,i,a,0,o,c)}function LS(e,t,n,r,i,a,o,c,l,d){var se;let p=t.getFields(),y=o==null?void 0:o[t.name],I=y==null?void 0:y.__enter,v=I!=null?I(e):e,F,k=null;if(l!=null){F=Vte(l,c),k=F.errorMap;for(let ie of F.unpathedErrors)d.unpathedErrors.add(ie)}for(let[ie,Te]of n){let de=Te[0].name.value,Re=(se=p[de])==null?void 0:se.type;if(Re==null)switch(de){case"__typename":Re=pu.TypeNameMetaFieldDef.type;break;case"__schema":Re=pu.SchemaMetaFieldDef.type;break;case"__type":Re=pu.TypeMetaFieldDef.type;break}let xe=c+1,tt;k&&(tt=k[ie],tt!=null&&delete k[ie],jte(t,de,xe,tt,d));let ee=pk(e[ie],Re,Te,r,i,a,o,xe,tt,d);fk(v,ie,ee,y,de)}let K=v.__typename;if(K!=null&&fk(v,"__typename",K,y,"__typename"),k)for(let ie in k){let Te=k[ie];for(let de of Te)d.unpathedErrors.add(de)}let J=y==null?void 0:y.__leave;return J!=null?J(v):v}function fk(e,t,n,r,i){if(r==null){e[t]=n;return}let a=r[i];if(a==null){e[t]=n;return}let o=a(n);if(o===void 0){delete e[t];return}e[t]=o}function qte(e,t,n,r,i,a,o,c,l,d){return e.map(p=>pk(p,t,n,r,i,a,o,c+1,l,d))}function pk(e,t,n,r,i,a,o,c,l=[],d){if(e==null)return e;let p=(0,pu.getNullableType)(t);if((0,pu.isListType)(p))return qte(e,p.ofType,n,r,i,a,o,c,l,d);if((0,pu.isAbstractType)(p)){let v=r.getType(e.__typename),{fields:F}=(0,FS.collectSubFields)(r,i,a,v,n);return LS(e,v,F,r,i,a,o,c,l,d)}else if((0,pu.isObjectType)(p)){let{fields:v}=(0,FS.collectSubFields)(r,i,a,p,n);return LS(e,p,v,r,i,a,o,c,l,d)}let y=o==null?void 0:o[p.name];if(y==null)return e;let I=y(e);return I===void 0?e:I}function Vte(e,t){var i;let n=Object.create(null),r=new Set;for(let a of e){let o=(i=a.path)==null?void 0:i[t];if(o==null){r.add(a);continue}o in n?n[o].push(a):n[o]=[a]}return{errorMap:n,unpathedErrors:r}}function jte(e,t,n,r=[],i){for(let a of r){let o={type:e,fieldName:t,pathIndex:n},c=i.segmentInfoMap.get(a);c==null?i.segmentInfoMap.set(a,[o]):c.push(o)}}});var Nk=w(xT=>{"use strict";m();T();N();Object.defineProperty(xT,"__esModule",{value:!0});xT.valueMatchesCriteria=void 0;function CS(e,t){return e==null?e===t:Array.isArray(e)?Array.isArray(t)&&e.every((n,r)=>CS(n,t[r])):typeof e=="object"?typeof t=="object"&&t&&Object.keys(t).every(n=>CS(e[n],t[n])):t instanceof RegExp?t.test(e):e===t}xT.valueMatchesCriteria=CS});var Tk=w(qT=>{"use strict";m();T();N();Object.defineProperty(qT,"__esModule",{value:!0});qT.isAsyncIterable=void 0;function Kte(e){return(e==null?void 0:e[Symbol.asyncIterator])!=null}qT.isAsyncIterable=Kte});var Ek=w(VT=>{"use strict";m();T();N();Object.defineProperty(VT,"__esModule",{value:!0});VT.isDocumentNode=void 0;var Gte=De();function $te(e){return e&&typeof e=="object"&&"kind"in e&&e.kind===Gte.Kind.DOCUMENT}VT.isDocumentNode=$te});var hk=w(()=>{"use strict";m();T();N()});var _k=w(Nu=>{"use strict";m();T();N();Object.defineProperty(Nu,"__esModule",{value:!0});Nu.withCancel=Nu.getAsyncIterableWithCancel=Nu.getAsyncIteratorWithCancel=void 0;var Qte=Al();function Yte(e){return Di(this,null,function*(){return{value:e,done:!0}})}var yk=(0,Qte.memoize2)(function(t,n){return function(...i){return Reflect.apply(n,t,i)}});function Ik(e,t){return new Proxy(e,{has(n,r){return r==="return"?!0:Reflect.has(n,r)},get(n,r,i){let a=Reflect.get(n,r,i);if(r==="return"){let o=a||Yte;return function(l){return Di(this,null,function*(){let d=yield t(l);return Reflect.apply(o,n,[d])})}}else if(typeof a=="function")return yk(n,a);return a}})}Nu.getAsyncIteratorWithCancel=Ik;function gk(e,t){return new Proxy(e,{get(n,r,i){let a=Reflect.get(n,r,i);return Symbol.asyncIterator===r?function(){let c=Reflect.apply(a,n,[]);return Ik(c,t)}:typeof a=="function"?yk(n,a):a}})}Nu.getAsyncIterableWithCancel=gk;Nu.withCancel=gk});var vk=w(jT=>{"use strict";m();T();N();Object.defineProperty(jT,"__esModule",{value:!0});jT.fixSchemaAst=void 0;var Jte=De(),Hte=aS();function zte(e,t){let n=(0,Hte.getDocumentNodeFromSchema)(e);return(0,Jte.buildASTSchema)(n,x({},t||{}))}function Wte(e,t){let n;return(!e.astNode||!e.extensionASTNodes)&&(n=zte(e,t)),!e.astNode&&(n!=null&&n.astNode)&&(e.astNode=n.astNode),!e.extensionASTNodes&&(n!=null&&n.astNode)&&(e.extensionASTNodes=n.extensionASTNodes),e}jT.fixSchemaAst=Wte});var Sk=w(KT=>{"use strict";m();T();N();Object.defineProperty(KT,"__esModule",{value:!0});KT.extractExtensionsFromSchema=void 0;var Ds=fc(),Xte=Cl();function la(e={}){let t=x({},e),n=t.directives;if(n!=null)for(let r in n){let i=n[r];Array.isArray(i)||(n[r]=[i])}return t}function Zte(e){let t={schemaExtensions:la(e.extensions),types:{}};return(0,Xte.mapSchema)(e,{[Ds.MapperKind.OBJECT_TYPE]:n=>(t.types[n.name]={fields:{},type:"object",extensions:la(n.extensions)},n),[Ds.MapperKind.INTERFACE_TYPE]:n=>(t.types[n.name]={fields:{},type:"interface",extensions:la(n.extensions)},n),[Ds.MapperKind.FIELD]:(n,r,i)=>{t.types[i].fields[r]={arguments:{},extensions:la(n.extensions)};let a=n.args;if(a!=null)for(let o in a)t.types[i].fields[r].arguments[o]=la(a[o].extensions);return n},[Ds.MapperKind.ENUM_TYPE]:n=>(t.types[n.name]={values:{},type:"enum",extensions:la(n.extensions)},n),[Ds.MapperKind.ENUM_VALUE]:(n,r,i,a)=>(t.types[r].values[a]=la(n.extensions),n),[Ds.MapperKind.SCALAR_TYPE]:n=>(t.types[n.name]={type:"scalar",extensions:la(n.extensions)},n),[Ds.MapperKind.UNION_TYPE]:n=>(t.types[n.name]={type:"union",extensions:la(n.extensions)},n),[Ds.MapperKind.INPUT_OBJECT_TYPE]:n=>(t.types[n.name]={fields:{},type:"input",extensions:la(n.extensions)},n),[Ds.MapperKind.INPUT_OBJECT_FIELD]:(n,r,i)=>(t.types[i].fields[r]={extensions:la(n.extensions)},n)}),t}KT.extractExtensionsFromSchema=Zte});var Ok=w(Tu=>{"use strict";m();T();N();Object.defineProperty(Tu,"__esModule",{value:!0});Tu.printPathArray=Tu.pathToArray=Tu.addPath=void 0;function ene(e,t,n){return{prev:e,key:t,typename:n}}Tu.addPath=ene;function tne(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}Tu.pathToArray=tne;function nne(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}Tu.printPathArray=nne});var Dk=w(BS=>{"use strict";m();T();N();function GT(e,t,n){if(typeof e=="object"&&typeof t=="object"){if(Array.isArray(e)&&Array.isArray(t))for(n=0;n{"use strict";m();T();N();Object.defineProperty($T,"__esModule",{value:!0});$T.mergeIncrementalResult=void 0;var US=Dk();function bk({incrementalResult:e,executionResult:t}){var r;let n=["data",...(r=e.path)!=null?r:[]];if(e.items)for(let i of e.items)(0,US.dset)(t,n,i),n[n.length-1]++;e.data&&(0,US.dset)(t,n,e.data),e.errors&&(t.errors=t.errors||[],t.errors.push(...e.errors)),e.extensions&&(0,US.dset)(t,"extensions",e.extensions),e.incremental&&e.incremental.forEach(i=>{bk({incrementalResult:i,executionResult:t})})}$T.mergeIncrementalResult=bk});var Pk=w(ql=>{"use strict";m();T();N();Object.defineProperty(ql,"__esModule",{value:!0});ql.debugTimerEnd=ql.debugTimerStart=void 0;var Rk=new Set;function ine(e){let t=(globalThis==null?void 0:globalThis.process.env.DEBUG)||globalThis.DEBUG;(t==="1"||t!=null&&t.includes(e))&&(Rk.add(e),console.time(e))}ql.debugTimerStart=ine;function ane(e){Rk.has(e)&&console.timeEnd(e)}ql.debugTimerEnd=ane});var da=w(Qe=>{"use strict";m();T();N();Object.defineProperty(Qe,"__esModule",{value:!0});Qe.inspect=void 0;var Je=(kB(),pm(UB));Je.__exportStar(MB(),Qe);Je.__exportStar(bf(),Qe);Je.__exportStar(Yv(),Qe);Je.__exportStar(Jv(),Qe);Je.__exportStar(JB(),Qe);Je.__exportStar(zv(),Qe);Je.__exportStar(aS(),Qe);Je.__exportStar(Jv(),Qe);Je.__exportStar(dU(),Qe);Je.__exportStar(fU(),Qe);Je.__exportStar(OU(),Qe);Je.__exportStar(LU(),Qe);Je.__exportStar(BU(),Qe);Je.__exportStar(jU(),Qe);Je.__exportStar(GU(),Qe);Je.__exportStar($U(),Qe);Je.__exportStar(YU(),Qe);Je.__exportStar(JU(),Qe);Je.__exportStar(Cl(),Qe);Je.__exportStar(_S(),Qe);Je.__exportStar(TT(),Qe);Je.__exportStar(zU(),Qe);Je.__exportStar(XU(),Qe);Je.__exportStar(fc(),Qe);Je.__exportStar(mS(),Qe);Je.__exportStar(ZU(),Qe);Je.__exportStar(ek(),Qe);Je.__exportStar(tk(),Qe);Je.__exportStar(nk(),Qe);Je.__exportStar(NS(),Qe);Je.__exportStar(ak(),Qe);Je.__exportStar(sk(),Qe);Je.__exportStar(ok(),Qe);Je.__exportStar(WN(),Qe);Je.__exportStar(uk(),Qe);Je.__exportStar(mk(),Qe);Je.__exportStar(Qv(),Qe);Je.__exportStar(Nk(),Qe);Je.__exportStar(Tk(),Qe);Je.__exportStar(Ek(),Qe);Je.__exportStar(aT(),Qe);Je.__exportStar(hk(),Qe);Je.__exportStar(_k(),Qe);Je.__exportStar(Ff(),Qe);Je.__exportStar(oS(),Qe);Je.__exportStar(RS(),Qe);var sne=Af();Object.defineProperty(Qe,"inspect",{enumerable:!0,get:function(){return sne.inspect}});Je.__exportStar(Al(),Qe);Je.__exportStar(vk(),Qe);Je.__exportStar(PS(),Qe);Je.__exportStar(Sk(),Qe);Je.__exportStar(Ok(),Qe);Je.__exportStar(Rf(),Qe);Je.__exportStar(DS(),Qe);Je.__exportStar(Ak(),Qe);Je.__exportStar(Pk(),Qe)});var wk=w(QT=>{"use strict";m();T();N();Object.defineProperty(QT,"__esModule",{value:!0});QT.mergeResolvers=void 0;var one=da();function Fk(e,t){if(!e||Array.isArray(e)&&e.length===0)return{};if(!Array.isArray(e))return e;if(e.length===1)return e[0]||{};let n=new Array;for(let i of e)Array.isArray(i)&&(i=Fk(i)),typeof i=="object"&&i&&n.push(i);let r=(0,one.mergeDeep)(n,!0);if(t!=null&&t.exclusions)for(let i of t.exclusions){let[a,o]=i.split(".");!o||o==="*"?delete r[a]:r[a]&&delete r[a][o]}return r}QT.mergeResolvers=Fk});var kS=w(YT=>{"use strict";m();T();N();Object.defineProperty(YT,"__esModule",{value:!0});YT.mergeArguments=void 0;var Lk=da();function une(e,t,n){let r=cne([...t,...e].filter(Lk.isSome),n);return n&&n.sort&&r.sort(Lk.compareNodes),r}YT.mergeArguments=une;function cne(e,t){return e.reduce((n,r)=>{let i=n.findIndex(a=>a.name.value===r.name.value);return i===-1?n.concat([r]):(t!=null&&t.reverseArguments||(n[i]=r),n)},[])}});var Gi=w(Vl=>{"use strict";m();T();N();Object.defineProperty(Vl,"__esModule",{value:!0});Vl.mergeDirective=Vl.mergeDirectives=void 0;var Ck=De(),lne=da();function dne(e,t){return!!e.find(n=>n.name.value===t.name.value)}function Bk(e,t){var n;return!!((n=t==null?void 0:t[e.name.value])!=null&&n.repeatable)}function fne(e,t){return t.some(({value:n})=>n===e.value)}function Uk(e,t){let n=[...t];for(let r of e){let i=n.findIndex(a=>a.name.value===r.name.value);if(i>-1){let a=n[i];if(a.value.kind==="ListValue"){let o=a.value.values,c=r.value.values;a.value.values=Ene(o,c,(l,d)=>{let p=l.value;return!p||!d.some(y=>y.value===p)})}else a.value=r.value}else n.push(r)}return n}function pne(e,t){return e.map((n,r,i)=>{let a=i.findIndex(o=>o.name.value===n.name.value);if(a!==r&&!Bk(n,t)){let o=i[a];return n.arguments=Uk(n.arguments,o.arguments),null}return n}).filter(lne.isSome)}function mne(e=[],t=[],n,r){let i=n&&n.reverseDirectives,a=i?e:t,o=i?t:e,c=pne([...a],r);for(let l of o)if(dne(c,l)&&!Bk(l,r)){let d=c.findIndex(y=>y.name.value===l.name.value),p=c[d];c[d].arguments=Uk(l.arguments||[],p.arguments||[])}else c.push(l);return c}Vl.mergeDirectives=mne;function Nne(e,t){let n=(0,Ck.print)(Q(x({},e),{description:void 0})),r=(0,Ck.print)(Q(x({},t),{description:void 0})),i=new RegExp("(directive @w*d*)|( on .*$)","g");if(!(n.replace(i,"")===r.replace(i,"")))throw new Error(`Unable to merge GraphQL directive "${e.name.value}". Existing directive: ${r} Received directive: - ${n}`)}function Tne(e,t){return t?(Nne(e,t),Q(x({},e),{locations:[...t.locations,...e.locations.filter(n=>!fne(n,t.locations))]})):e}Vl.mergeDirective=Tne;function Ene(e,t,n){return e.concat(t.filter(r=>n(r,e)))}});var MS=w(JT=>{"use strict";m();T();N();Object.defineProperty(JT,"__esModule",{value:!0});JT.mergeEnumValues=void 0;var hne=$i(),yne=da();function Ine(e,t,n,r){if(n!=null&&n.consistentEnumMerge){let o=[];e&&o.push(...e),e=t,t=o}let i=new Map;if(e)for(let o of e)i.set(o.name.value,o);if(t)for(let o of t){let c=o.name.value;if(i.has(c)){let l=i.get(c);l.description=o.description||l.description,l.directives=(0,hne.mergeDirectives)(o.directives,l.directives,r)}else i.set(c,o)}let a=[...i.values()];return n&&n.sort&&a.sort(yne.compareNodes),a}JT.mergeEnumValues=Ine});var xS=w(HT=>{"use strict";m();T();N();Object.defineProperty(HT,"__esModule",{value:!0});HT.mergeEnum=void 0;var gne=De(),_ne=$i(),vne=MS();function Sne(e,t,n,r){return t?{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="EnumTypeDefinition"||t.kind==="EnumTypeDefinition"?"EnumTypeDefinition":"EnumTypeExtension",loc:e.loc,directives:(0,_ne.mergeDirectives)(e.directives,t.directives,n,r),values:(0,vne.mergeEnumValues)(e.values,t.values,n)}:n!=null&&n.convertExtensions?Q(x({},e),{kind:gne.Kind.ENUM_TYPE_DEFINITION}):e}HT.mergeEnum=Sne});var zT=w(Vn=>{"use strict";m();T();N();Object.defineProperty(Vn,"__esModule",{value:!0});Vn.defaultStringComparator=Vn.CompareVal=Vn.printTypeNode=Vn.isNonNullTypeNode=Vn.isListTypeNode=Vn.isWrappingTypeNode=Vn.extractType=Vn.isSourceTypes=Vn.isStringTypes=void 0;var Mf=De();function One(e){return typeof e=="string"}Vn.isStringTypes=One;function Dne(e){return e instanceof Mf.Source}Vn.isSourceTypes=Dne;function bne(e){let t=e;for(;t.kind===Mf.Kind.LIST_TYPE||t.kind==="NonNullType";)t=t.type;return t}Vn.extractType=bne;function Ane(e){return e.kind!==Mf.Kind.NAMED_TYPE}Vn.isWrappingTypeNode=Ane;function kk(e){return e.kind===Mf.Kind.LIST_TYPE}Vn.isListTypeNode=kk;function Mk(e){return e.kind===Mf.Kind.NON_NULL_TYPE}Vn.isNonNullTypeNode=Mk;function qS(e){return kk(e)?`[${qS(e.type)}]`:Mk(e)?`${qS(e.type)}!`:e.name.value}Vn.printTypeNode=qS;var Tc;(function(e){e[e.A_SMALLER_THAN_B=-1]="A_SMALLER_THAN_B",e[e.A_EQUALS_B=0]="A_EQUALS_B",e[e.A_GREATER_THAN_B=1]="A_GREATER_THAN_B"})(Tc=Vn.CompareVal||(Vn.CompareVal={}));function Rne(e,t){return e==null&&t==null?Tc.A_EQUALS_B:e==null?Tc.A_SMALLER_THAN_B:t==null?Tc.A_GREATER_THAN_B:et?Tc.A_GREATER_THAN_B:Tc.A_EQUALS_B}Vn.defaultStringComparator=Rne});var qf=w(WT=>{"use strict";m();T();N();Object.defineProperty(WT,"__esModule",{value:!0});WT.mergeFields=void 0;var Xr=zT(),Pne=$i(),Fne=da(),wne=kS();function Lne(e,t){let n=e.findIndex(r=>r.name.value===t.name.value);return[n>-1?e[n]:null,n]}function Cne(e,t,n,r,i){let a=[];if(n!=null&&a.push(...n),t!=null)for(let o of t){let[c,l]=Lne(a,o);if(c&&!(r!=null&&r.ignoreFieldConflicts)){let d=(r==null?void 0:r.onFieldTypeConflict)&&r.onFieldTypeConflict(c,o,e,r==null?void 0:r.throwOnConflict)||Bne(e,c,o,r==null?void 0:r.throwOnConflict);d.arguments=(0,wne.mergeArguments)(o.arguments||[],c.arguments||[],r),d.directives=(0,Pne.mergeDirectives)(o.directives,c.directives,r,i),d.description=o.description||c.description,a[l]=d}else a.push(o)}if(r&&r.sort&&a.sort(Fne.compareNodes),r&&r.exclusions){let o=r.exclusions;return a.filter(c=>!o.includes(`${e.name.value}.${c.name.value}`))}return a}WT.mergeFields=Cne;function Bne(e,t,n,r=!1){let i=(0,Xr.printTypeNode)(t.type),a=(0,Xr.printTypeNode)(n.type);if(i!==a){let o=(0,Xr.extractType)(t.type),c=(0,Xr.extractType)(n.type);if(o.name.value!==c.name.value)throw new Error(`Field "${n.name.value}" already defined with a different type. Declared as "${o.name.value}", but you tried to override with "${c.name.value}"`);if(!xf(t.type,n.type,!r))throw new Error(`Field '${e.name.value}.${t.name.value}' changed type from '${i}' to '${a}'`)}return(0,Xr.isNonNullTypeNode)(n.type)&&!(0,Xr.isNonNullTypeNode)(t.type)&&(t.type=n.type),t}function xf(e,t,n=!1){if(!(0,Xr.isWrappingTypeNode)(e)&&!(0,Xr.isWrappingTypeNode)(t))return e.toString()===t.toString();if((0,Xr.isNonNullTypeNode)(t)){let r=(0,Xr.isNonNullTypeNode)(e)?e.type:e;return xf(r,t.type)}return(0,Xr.isNonNullTypeNode)(e)?xf(t,e,n):(0,Xr.isListTypeNode)(e)?(0,Xr.isListTypeNode)(t)&&xf(e.type,t.type)||(0,Xr.isNonNullTypeNode)(t)&&xf(e,t.type):!1}});var VS=w(XT=>{"use strict";m();T();N();Object.defineProperty(XT,"__esModule",{value:!0});XT.mergeInputType=void 0;var Une=De(),kne=qf(),Mne=$i();function xne(e,t,n,r){if(t)try{return{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="InputObjectTypeDefinition"||t.kind==="InputObjectTypeDefinition"?"InputObjectTypeDefinition":"InputObjectTypeExtension",loc:e.loc,fields:(0,kne.mergeFields)(e,e.fields,t.fields,n),directives:(0,Mne.mergeDirectives)(e.directives,t.directives,n,r)}}catch(i){throw new Error(`Unable to merge GraphQL input type "${e.name.value}": ${i.message}`)}return n!=null&&n.convertExtensions?Q(x({},e),{kind:Une.Kind.INPUT_OBJECT_TYPE_DEFINITION}):e}XT.mergeInputType=xne});var Vf=w(ZT=>{"use strict";m();T();N();Object.defineProperty(ZT,"__esModule",{value:!0});ZT.mergeNamedTypeArray=void 0;var qne=da();function Vne(e,t){return!!e.find(n=>n.name.value===t.name.value)}function jne(e=[],t=[],n={}){let r=[...t,...e.filter(i=>!Vne(t,i))];return n&&n.sort&&r.sort(qne.compareNodes),r}ZT.mergeNamedTypeArray=jne});var jS=w(eE=>{"use strict";m();T();N();Object.defineProperty(eE,"__esModule",{value:!0});eE.mergeInterface=void 0;var Kne=De(),Gne=qf(),$ne=$i(),Qne=Vf();function Yne(e,t,n,r){if(t)try{return{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="InterfaceTypeDefinition"||t.kind==="InterfaceTypeDefinition"?"InterfaceTypeDefinition":"InterfaceTypeExtension",loc:e.loc,fields:(0,Gne.mergeFields)(e,e.fields,t.fields,n),directives:(0,$ne.mergeDirectives)(e.directives,t.directives,n,r),interfaces:e.interfaces?(0,Qne.mergeNamedTypeArray)(e.interfaces,t.interfaces,n):void 0}}catch(i){throw new Error(`Unable to merge GraphQL interface "${e.name.value}": ${i.message}`)}return n!=null&&n.convertExtensions?Q(x({},e),{kind:Kne.Kind.INTERFACE_TYPE_DEFINITION}):e}eE.mergeInterface=Yne});var KS=w(tE=>{"use strict";m();T();N();Object.defineProperty(tE,"__esModule",{value:!0});tE.mergeType=void 0;var Jne=De(),Hne=qf(),zne=$i(),Wne=Vf();function Xne(e,t,n,r){if(t)try{return{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="ObjectTypeDefinition"||t.kind==="ObjectTypeDefinition"?"ObjectTypeDefinition":"ObjectTypeExtension",loc:e.loc,fields:(0,Hne.mergeFields)(e,e.fields,t.fields,n),directives:(0,zne.mergeDirectives)(e.directives,t.directives,n,r),interfaces:(0,Wne.mergeNamedTypeArray)(e.interfaces,t.interfaces,n)}}catch(i){throw new Error(`Unable to merge GraphQL type "${e.name.value}": ${i.message}`)}return n!=null&&n.convertExtensions?Q(x({},e),{kind:Jne.Kind.OBJECT_TYPE_DEFINITION}):e}tE.mergeType=Xne});var GS=w(nE=>{"use strict";m();T();N();Object.defineProperty(nE,"__esModule",{value:!0});nE.mergeScalar=void 0;var Zne=De(),ere=$i();function tre(e,t,n,r){return t?{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="ScalarTypeDefinition"||t.kind==="ScalarTypeDefinition"?"ScalarTypeDefinition":"ScalarTypeExtension",loc:e.loc,directives:(0,ere.mergeDirectives)(e.directives,t.directives,n,r)}:n!=null&&n.convertExtensions?Q(x({},e),{kind:Zne.Kind.SCALAR_TYPE_DEFINITION}):e}nE.mergeScalar=tre});var QS=w(rE=>{"use strict";m();T();N();Object.defineProperty(rE,"__esModule",{value:!0});rE.mergeUnion=void 0;var $S=De(),nre=$i(),rre=Vf();function ire(e,t,n,r){return t?{name:e.name,description:e.description||t.description,directives:(0,nre.mergeDirectives)(e.directives,t.directives,n,r),kind:n!=null&&n.convertExtensions||e.kind==="UnionTypeDefinition"||t.kind==="UnionTypeDefinition"?$S.Kind.UNION_TYPE_DEFINITION:$S.Kind.UNION_TYPE_EXTENSION,loc:e.loc,types:(0,rre.mergeNamedTypeArray)(e.types,t.types,n)}:n!=null&&n.convertExtensions?Q(x({},e),{kind:$S.Kind.UNION_TYPE_DEFINITION}):e}rE.mergeUnion=ire});var YS=w(Ec=>{"use strict";m();T();N();Object.defineProperty(Ec,"__esModule",{value:!0});Ec.mergeSchemaDefs=Ec.DEFAULT_OPERATION_TYPE_NAME_MAP=void 0;var jf=De(),are=$i();Ec.DEFAULT_OPERATION_TYPE_NAME_MAP={query:"Query",mutation:"Mutation",subscription:"Subscription"};function sre(e=[],t=[]){let n=[];for(let r in Ec.DEFAULT_OPERATION_TYPE_NAME_MAP){let i=e.find(a=>a.operation===r)||t.find(a=>a.operation===r);i&&n.push(i)}return n}function ore(e,t,n,r){return t?{kind:e.kind===jf.Kind.SCHEMA_DEFINITION||t.kind===jf.Kind.SCHEMA_DEFINITION?jf.Kind.SCHEMA_DEFINITION:jf.Kind.SCHEMA_EXTENSION,description:e.description||t.description,directives:(0,are.mergeDirectives)(e.directives,t.directives,n,r),operationTypes:sre(e.operationTypes,t.operationTypes)}:n!=null&&n.convertExtensions?Q(x({},e),{kind:jf.Kind.SCHEMA_DEFINITION}):e}Ec.mergeSchemaDefs=ore});var JS=w($a=>{"use strict";m();T();N();Object.defineProperty($a,"__esModule",{value:!0});$a.mergeGraphQLNodes=$a.isNamedDefinitionNode=$a.schemaDefSymbol=void 0;var kr=De(),ure=KS(),cre=xS(),lre=GS(),dre=QS(),fre=VS(),pre=jS(),mre=$i(),Nre=YS(),Tre=da();$a.schemaDefSymbol="SCHEMA_DEF_SYMBOL";function xk(e){return"name"in e}$a.isNamedDefinitionNode=xk;function Ere(e,t,n={}){var i,a,o;let r=n;for(let c of e)if(xk(c)){let l=(i=c.name)==null?void 0:i.value;if(t!=null&&t.commentDescriptions&&(0,Tre.collectComment)(c),l==null)continue;if((a=t==null?void 0:t.exclusions)!=null&&a.includes(l+".*")||(o=t==null?void 0:t.exclusions)!=null&&o.includes(l))delete r[l];else switch(c.kind){case kr.Kind.OBJECT_TYPE_DEFINITION:case kr.Kind.OBJECT_TYPE_EXTENSION:r[l]=(0,ure.mergeType)(c,r[l],t,n);break;case kr.Kind.ENUM_TYPE_DEFINITION:case kr.Kind.ENUM_TYPE_EXTENSION:r[l]=(0,cre.mergeEnum)(c,r[l],t,n);break;case kr.Kind.UNION_TYPE_DEFINITION:case kr.Kind.UNION_TYPE_EXTENSION:r[l]=(0,dre.mergeUnion)(c,r[l],t,n);break;case kr.Kind.SCALAR_TYPE_DEFINITION:case kr.Kind.SCALAR_TYPE_EXTENSION:r[l]=(0,lre.mergeScalar)(c,r[l],t,n);break;case kr.Kind.INPUT_OBJECT_TYPE_DEFINITION:case kr.Kind.INPUT_OBJECT_TYPE_EXTENSION:r[l]=(0,fre.mergeInputType)(c,r[l],t,n);break;case kr.Kind.INTERFACE_TYPE_DEFINITION:case kr.Kind.INTERFACE_TYPE_EXTENSION:r[l]=(0,pre.mergeInterface)(c,r[l],t,n);break;case kr.Kind.DIRECTIVE_DEFINITION:r[l]=(0,mre.mergeDirective)(c,r[l]);break}}else(c.kind===kr.Kind.SCHEMA_DEFINITION||c.kind===kr.Kind.SCHEMA_EXTENSION)&&(r[$a.schemaDefSymbol]=(0,Nre.mergeSchemaDefs)(c,r[$a.schemaDefSymbol],t));return r}$a.mergeGraphQLNodes=Ere});var jk=w($l=>{"use strict";m();T();N();Object.defineProperty($l,"__esModule",{value:!0});$l.mergeGraphQLTypes=$l.mergeTypeDefs=void 0;var Qi=De(),HS=zT(),jl=JS(),Gl=da(),qk=YS();function hre(e,t){(0,Gl.resetComments)();let n={kind:Qi.Kind.DOCUMENT,definitions:Vk(e,x({useSchemaDefinition:!0,forceSchemaDefinition:!1,throwOnConflict:!1,commentDescriptions:!1},t))},r;return t!=null&&t.commentDescriptions?r=(0,Gl.printWithComments)(n):r=n,(0,Gl.resetComments)(),r}$l.mergeTypeDefs=hre;function Kl(e,t,n=[],r=[],i=new Set){if(e&&!i.has(e))if(i.add(e),typeof e=="function")Kl(e(),t,n,r,i);else if(Array.isArray(e))for(let a of e)Kl(a,t,n,r,i);else if((0,Qi.isSchema)(e)){let a=(0,Gl.getDocumentNodeFromSchema)(e,t);Kl(a.definitions,t,n,r,i)}else if((0,HS.isStringTypes)(e)||(0,HS.isSourceTypes)(e)){let a=(0,Qi.parse)(e,t);Kl(a.definitions,t,n,r,i)}else if(typeof e=="object"&&(0,Qi.isDefinitionNode)(e))e.kind===Qi.Kind.DIRECTIVE_DEFINITION?n.push(e):r.push(e);else if((0,Gl.isDocumentNode)(e))Kl(e.definitions,t,n,r,i);else throw new Error(`typeDefs must contain only strings, documents, schemas, or functions, got ${typeof e}`);return{allDirectives:n,allNodes:r}}function Vk(e,t){var c,l,d;(0,Gl.resetComments)();let{allDirectives:n,allNodes:r}=Kl(e,t),i=(0,jl.mergeGraphQLNodes)(n,t),a=(0,jl.mergeGraphQLNodes)(r,t,i);if(t!=null&&t.useSchemaDefinition){let p=a[jl.schemaDefSymbol]||{kind:Qi.Kind.SCHEMA_DEFINITION,operationTypes:[]},y=p.operationTypes;for(let I in qk.DEFAULT_OPERATION_TYPE_NAME_MAP)if(!y.find(F=>F.operation===I)){let F=qk.DEFAULT_OPERATION_TYPE_NAME_MAP[I],k=a[F];k!=null&&k.name!=null&&y.push({kind:Qi.Kind.OPERATION_TYPE_DEFINITION,type:{kind:Qi.Kind.NAMED_TYPE,name:k.name},operation:I})}((c=p==null?void 0:p.operationTypes)==null?void 0:c.length)!=null&&p.operationTypes.length>0&&(a[jl.schemaDefSymbol]=p)}t!=null&&t.forceSchemaDefinition&&!((d=(l=a[jl.schemaDefSymbol])==null?void 0:l.operationTypes)!=null&&d.length)&&(a[jl.schemaDefSymbol]={kind:Qi.Kind.SCHEMA_DEFINITION,operationTypes:[{kind:Qi.Kind.OPERATION_TYPE_DEFINITION,operation:"query",type:{kind:Qi.Kind.NAMED_TYPE,name:{kind:Qi.Kind.NAME,value:"Query"}}}]});let o=Object.values(a);if(t!=null&&t.sort){let p=typeof t.sort=="function"?t.sort:HS.defaultStringComparator;o.sort((y,I)=>{var v,F;return p((v=y.name)==null?void 0:v.value,(F=I.name)==null?void 0:F.value)})}return o}$l.mergeGraphQLTypes=Vk});var Kk=w(Ar=>{"use strict";m();T();N();Object.defineProperty(Ar,"__esModule",{value:!0});var Zr=(xv(),pm(Mv));Zr.__exportStar(kS(),Ar);Zr.__exportStar($i(),Ar);Zr.__exportStar(MS(),Ar);Zr.__exportStar(xS(),Ar);Zr.__exportStar(qf(),Ar);Zr.__exportStar(VS(),Ar);Zr.__exportStar(jS(),Ar);Zr.__exportStar(Vf(),Ar);Zr.__exportStar(JS(),Ar);Zr.__exportStar(jk(),Ar);Zr.__exportStar(GS(),Ar);Zr.__exportStar(KS(),Ar);Zr.__exportStar(QS(),Ar);Zr.__exportStar(zT(),Ar)});var $k=w(Eu=>{"use strict";m();T();N();Object.defineProperty(Eu,"__esModule",{value:!0});Eu.applyExtensions=Eu.mergeExtensions=Eu.extractExtensionsFromSchema=void 0;var Gk=da(),yre=da();Object.defineProperty(Eu,"extractExtensionsFromSchema",{enumerable:!0,get:function(){return yre.extractExtensionsFromSchema}});function Ire(e){return(0,Gk.mergeDeep)(e)}Eu.mergeExtensions=Ire;function Ql(e,t){e&&(e.extensions=(0,Gk.mergeDeep)([e.extensions||{},t||{}]))}function gre(e,t){Ql(e,t.schemaExtensions);for(let[n,r]of Object.entries(t.types||{})){let i=e.getType(n);if(i){if(Ql(i,r.extensions),r.type==="object"||r.type==="interface")for(let[a,o]of Object.entries(r.fields)){let c=i.getFields()[a];if(c){Ql(c,o.extensions);for(let[l,d]of Object.entries(o.arguments))Ql(c.args.find(p=>p.name===l),d)}}else if(r.type==="input")for(let[a,o]of Object.entries(r.fields)){let c=i.getFields()[a];Ql(c,o.extensions)}else if(r.type==="enum")for(let[a,o]of Object.entries(r.values)){let c=i.getValue(a);Ql(c,o)}}}return e}Eu.applyExtensions=gre});var iE=w(Kf=>{"use strict";m();T();N();Object.defineProperty(Kf,"__esModule",{value:!0});var zS=(xv(),pm(Mv));zS.__exportStar(wk(),Kf);zS.__exportStar(Kk(),Kf);zS.__exportStar($k(),Kf)});var xi=w(W=>{"use strict";m();T();N();Object.defineProperty(W,"__esModule",{value:!0});W.semanticNonNullArgumentErrorMessage=W.invalidEventProviderIdErrorMessage=W.invalidNatsStreamConfigurationDefinitionErrorMessage=W.invalidEdfsPublishResultObjectErrorMessage=W.invalidNatsStreamInputErrorMessage=W.inlineFragmentInFieldSetErrorMessage=W.inaccessibleQueryRootTypeError=W.subgraphValidationFailureError=W.minimumSubgraphRequirementError=void 0;W.multipleNamedTypeDefinitionError=Sre;W.incompatibleInputValueDefaultValueTypeError=Ore;W.incompatibleMergedTypesError=Dre;W.incompatibleInputValueDefaultValuesError=bre;W.incompatibleSharedEnumError=Are;W.invalidSubgraphNamesError=Rre;W.duplicateDirectiveDefinitionError=Pre;W.duplicateEnumValueDefinitionError=Fre;W.duplicateFieldDefinitionError=wre;W.duplicateInputFieldDefinitionError=Lre;W.duplicateImplementedInterfaceError=Cre;W.duplicateUnionMemberDefinitionError=Bre;W.duplicateTypeDefinitionError=Ure;W.duplicateOperationTypeDefinitionError=kre;W.noBaseDefinitionForExtensionError=Mre;W.noBaseScalarDefinitionError=xre;W.noDefinedUnionMembersError=qre;W.noDefinedEnumValuesError=Vre;W.operationDefinitionError=jre;W.invalidFieldShareabilityError=Kre;W.undefinedDirectiveError=Gre;W.undefinedTypeError=$re;W.invalidRepeatedDirectiveErrorMessage=Qre;W.invalidDirectiveError=Yre;W.invalidRepeatedFederatedDirectiveErrorMessage=Jre;W.invalidDirectiveLocationErrorMessage=Hre;W.undefinedRequiredArgumentsErrorMessage=zre;W.unexpectedDirectiveArgumentErrorMessage=Wre;W.duplicateDirectiveArgumentDefinitionsErrorMessage=Xre;W.invalidArgumentValueErrorMessage=Zre;W.maximumTypeNestingExceededError=eie;W.unexpectedKindFatalError=tie;W.incompatibleParentKindFatalError=nie;W.unexpectedEdgeFatalError=rie;W.incompatibleParentTypeMergeError=aie;W.unexpectedTypeNodeKindFatalError=sie;W.invalidKeyFatalError=oie;W.unexpectedParentKindForChildError=uie;W.subgraphValidationError=cie;W.invalidSubgraphNameErrorMessage=lie;W.invalidOperationTypeDefinitionError=die;W.invalidRootTypeDefinitionError=fie;W.subgraphInvalidSyntaxError=pie;W.invalidInterfaceImplementationError=mie;W.invalidRequiredInputValueError=Nie;W.duplicateArgumentsError=Tie;W.noQueryRootTypeError=Eie;W.expectedEntityError=hie;W.abstractTypeInKeyFieldSetErrorMessage=yie;W.unknownTypeInFieldSetErrorMessage=Iie;W.invalidSelectionSetErrorMessage=gie;W.invalidSelectionSetDefinitionErrorMessage=_ie;W.undefinedFieldInFieldSetErrorMessage=vie;W.unparsableFieldSetErrorMessage=Sie;W.unparsableFieldSetSelectionErrorMessage=Oie;W.undefinedCompositeOutputTypeError=Die;W.unexpectedArgumentErrorMessage=bie;W.argumentsInKeyFieldSetErrorMessage=Aie;W.invalidProvidesOrRequiresDirectivesError=Rie;W.duplicateFieldInFieldSetErrorMessage=Pie;W.invalidConfigurationDataErrorMessage=Fie;W.incompatibleTypeWithProvidesErrorMessage=wie;W.invalidInlineFragmentTypeErrorMessage=Lie;W.inlineFragmentWithoutTypeConditionErrorMessage=Cie;W.unknownInlineFragmentTypeConditionErrorMessage=Bie;W.invalidInlineFragmentTypeConditionTypeErrorMessage=Uie;W.invalidInlineFragmentTypeConditionErrorMessage=kie;W.invalidSelectionOnUnionErrorMessage=Mie;W.duplicateOverriddenFieldErrorMessage=xie;W.duplicateOverriddenFieldsError=qie;W.noFieldDefinitionsError=Vie;W.noInputValueDefinitionsError=jie;W.allChildDefinitionsAreInaccessibleError=Kie;W.equivalentSourceAndTargetOverrideErrorMessage=Gie;W.undefinedEntityInterfaceImplementationsError=$ie;W.orScopesLimitError=Qie;W.invalidEventDrivenGraphError=Yie;W.invalidRootTypeFieldEventsDirectivesErrorMessage=Jie;W.invalidEventDrivenMutationResponseTypeErrorMessage=Hie;W.invalidRootTypeFieldResponseTypesEventDrivenErrorMessage=zie;W.invalidNatsStreamInputFieldsErrorMessage=Wie;W.invalidKeyFieldSetsEventDrivenErrorMessage=Xie;W.nonExternalKeyFieldNamesEventDrivenErrorMessage=Zie;W.nonKeyFieldNamesEventDrivenErrorMessage=eae;W.nonEntityObjectExtensionsEventDrivenErrorMessage=tae;W.nonKeyComposingObjectTypeNamesEventDrivenErrorMessage=nae;W.invalidEdfsDirectiveName=rae;W.invalidImplementedTypeError=iae;W.selfImplementationError=aae;W.invalidEventSubjectErrorMessage=sae;W.invalidEventSubjectsErrorMessage=oae;W.invalidEventSubjectsItemErrorMessage=uae;W.invalidEventSubjectsArgumentErrorMessage=cae;W.undefinedEventSubjectsArgumentErrorMessage=lae;W.invalidEventDirectiveError=dae;W.invalidReferencesOfInaccessibleTypeError=fae;W.inaccessibleRequiredInputValueError=pae;W.invalidUnionMemberTypeError=mae;W.invalidRootTypeError=Nae;W.invalidSubscriptionFilterLocationError=Tae;W.invalidSubscriptionFilterDirectiveError=Eae;W.subscriptionFilterNamedTypeErrorMessage=hae;W.subscriptionFilterConditionDepthExceededErrorMessage=yae;W.subscriptionFilterConditionInvalidInputFieldNumberErrorMessage=Iae;W.subscriptionFilterConditionInvalidInputFieldErrorMessage=gae;W.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage=_ae;W.subscriptionFilterArrayConditionInvalidItemTypeErrorMessage=vae;W.subscriptionFilterArrayConditionInvalidLengthErrorMessage=Sae;W.invalidInputFieldTypeErrorMessage=Oae;W.subscriptionFieldConditionInvalidInputFieldErrorMessage=Dae;W.subscriptionFieldConditionInvalidValuesArrayErrorMessage=bae;W.subscriptionFieldConditionEmptyValuesArrayErrorMessage=Aae;W.unknownFieldSubgraphNameError=Rae;W.invalidSubscriptionFieldConditionFieldPathErrorMessage=Pae;W.invalidSubscriptionFieldConditionFieldPathParentErrorMessage=Fae;W.undefinedSubscriptionFieldConditionFieldPathFieldErrorMessage=wae;W.invalidSubscriptionFieldConditionFieldPathFieldErrorMessage=Lae;W.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage=Cae;W.nonLeafSubscriptionFieldConditionFieldPathFinalFieldErrorMessage=Bae;W.unresolvablePathError=Uae;W.allExternalFieldInstancesError=kae;W.externalInterfaceFieldsError=Mae;W.nonExternalConditionalFieldError=xae;W.incompatibleFederatedFieldNamedTypeError=qae;W.unknownNamedTypeErrorMessage=Wk;W.unknownNamedTypeError=Vae;W.unknownFieldDataError=jae;W.unexpectedNonCompositeOutputTypeError=Kae;W.invalidExternalDirectiveError=Gae;W.configureDescriptionNoDescriptionError=$ae;W.configureDescriptionPropagationError=Qae;W.duplicateDirectiveDefinitionArgumentErrorMessage=Yae;W.duplicateDirectiveDefinitionLocationErrorMessage=Jae;W.invalidDirectiveDefinitionLocationErrorMessage=Hae;W.invalidDirectiveDefinitionError=zae;W.fieldAlreadyProvidedErrorMessage=Wae;W.invalidInterfaceObjectImplementationDefinitionsError=Xae;W.invalidNamedTypeError=Zae;W.semanticNonNullLevelsNaNIndexErrorMessage=ese;W.semanticNonNullLevelsIndexOutOfBoundsErrorMessage=tse;W.semanticNonNullLevelsNonNullErrorMessage=nse;W.semanticNonNullInconsistentLevelsError=rse;W.oneOfRequiredFieldsError=ise;var Qk=De(),He=vr(),Yk=gl(),hc=Sr(),_re=Sl(),vre=iE();W.minimumSubgraphRequirementError=new Error("At least one subgraph is required for federation.");function Sre(e,t,n){return new Error(`The named type "${e}" is defined as both types "${t}" and "${n}". + ${n}`)}function Tne(e,t){return t?(Nne(e,t),Q(x({},e),{locations:[...t.locations,...e.locations.filter(n=>!fne(n,t.locations))]})):e}Vl.mergeDirective=Tne;function Ene(e,t,n){return e.concat(t.filter(r=>n(r,e)))}});var MS=w(JT=>{"use strict";m();T();N();Object.defineProperty(JT,"__esModule",{value:!0});JT.mergeEnumValues=void 0;var hne=Gi(),yne=da();function Ine(e,t,n,r){if(n!=null&&n.consistentEnumMerge){let o=[];e&&o.push(...e),e=t,t=o}let i=new Map;if(e)for(let o of e)i.set(o.name.value,o);if(t)for(let o of t){let c=o.name.value;if(i.has(c)){let l=i.get(c);l.description=o.description||l.description,l.directives=(0,hne.mergeDirectives)(o.directives,l.directives,r)}else i.set(c,o)}let a=[...i.values()];return n&&n.sort&&a.sort(yne.compareNodes),a}JT.mergeEnumValues=Ine});var xS=w(HT=>{"use strict";m();T();N();Object.defineProperty(HT,"__esModule",{value:!0});HT.mergeEnum=void 0;var gne=De(),_ne=Gi(),vne=MS();function Sne(e,t,n,r){return t?{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="EnumTypeDefinition"||t.kind==="EnumTypeDefinition"?"EnumTypeDefinition":"EnumTypeExtension",loc:e.loc,directives:(0,_ne.mergeDirectives)(e.directives,t.directives,n,r),values:(0,vne.mergeEnumValues)(e.values,t.values,n)}:n!=null&&n.convertExtensions?Q(x({},e),{kind:gne.Kind.ENUM_TYPE_DEFINITION}):e}HT.mergeEnum=Sne});var zT=w(Vn=>{"use strict";m();T();N();Object.defineProperty(Vn,"__esModule",{value:!0});Vn.defaultStringComparator=Vn.CompareVal=Vn.printTypeNode=Vn.isNonNullTypeNode=Vn.isListTypeNode=Vn.isWrappingTypeNode=Vn.extractType=Vn.isSourceTypes=Vn.isStringTypes=void 0;var Mf=De();function One(e){return typeof e=="string"}Vn.isStringTypes=One;function Dne(e){return e instanceof Mf.Source}Vn.isSourceTypes=Dne;function bne(e){let t=e;for(;t.kind===Mf.Kind.LIST_TYPE||t.kind==="NonNullType";)t=t.type;return t}Vn.extractType=bne;function Ane(e){return e.kind!==Mf.Kind.NAMED_TYPE}Vn.isWrappingTypeNode=Ane;function kk(e){return e.kind===Mf.Kind.LIST_TYPE}Vn.isListTypeNode=kk;function Mk(e){return e.kind===Mf.Kind.NON_NULL_TYPE}Vn.isNonNullTypeNode=Mk;function qS(e){return kk(e)?`[${qS(e.type)}]`:Mk(e)?`${qS(e.type)}!`:e.name.value}Vn.printTypeNode=qS;var Tc;(function(e){e[e.A_SMALLER_THAN_B=-1]="A_SMALLER_THAN_B",e[e.A_EQUALS_B=0]="A_EQUALS_B",e[e.A_GREATER_THAN_B=1]="A_GREATER_THAN_B"})(Tc=Vn.CompareVal||(Vn.CompareVal={}));function Rne(e,t){return e==null&&t==null?Tc.A_EQUALS_B:e==null?Tc.A_SMALLER_THAN_B:t==null?Tc.A_GREATER_THAN_B:et?Tc.A_GREATER_THAN_B:Tc.A_EQUALS_B}Vn.defaultStringComparator=Rne});var qf=w(WT=>{"use strict";m();T();N();Object.defineProperty(WT,"__esModule",{value:!0});WT.mergeFields=void 0;var Xr=zT(),Pne=Gi(),Fne=da(),wne=kS();function Lne(e,t){let n=e.findIndex(r=>r.name.value===t.name.value);return[n>-1?e[n]:null,n]}function Cne(e,t,n,r,i){let a=[];if(n!=null&&a.push(...n),t!=null)for(let o of t){let[c,l]=Lne(a,o);if(c&&!(r!=null&&r.ignoreFieldConflicts)){let d=(r==null?void 0:r.onFieldTypeConflict)&&r.onFieldTypeConflict(c,o,e,r==null?void 0:r.throwOnConflict)||Bne(e,c,o,r==null?void 0:r.throwOnConflict);d.arguments=(0,wne.mergeArguments)(o.arguments||[],c.arguments||[],r),d.directives=(0,Pne.mergeDirectives)(o.directives,c.directives,r,i),d.description=o.description||c.description,a[l]=d}else a.push(o)}if(r&&r.sort&&a.sort(Fne.compareNodes),r&&r.exclusions){let o=r.exclusions;return a.filter(c=>!o.includes(`${e.name.value}.${c.name.value}`))}return a}WT.mergeFields=Cne;function Bne(e,t,n,r=!1){let i=(0,Xr.printTypeNode)(t.type),a=(0,Xr.printTypeNode)(n.type);if(i!==a){let o=(0,Xr.extractType)(t.type),c=(0,Xr.extractType)(n.type);if(o.name.value!==c.name.value)throw new Error(`Field "${n.name.value}" already defined with a different type. Declared as "${o.name.value}", but you tried to override with "${c.name.value}"`);if(!xf(t.type,n.type,!r))throw new Error(`Field '${e.name.value}.${t.name.value}' changed type from '${i}' to '${a}'`)}return(0,Xr.isNonNullTypeNode)(n.type)&&!(0,Xr.isNonNullTypeNode)(t.type)&&(t.type=n.type),t}function xf(e,t,n=!1){if(!(0,Xr.isWrappingTypeNode)(e)&&!(0,Xr.isWrappingTypeNode)(t))return e.toString()===t.toString();if((0,Xr.isNonNullTypeNode)(t)){let r=(0,Xr.isNonNullTypeNode)(e)?e.type:e;return xf(r,t.type)}return(0,Xr.isNonNullTypeNode)(e)?xf(t,e,n):(0,Xr.isListTypeNode)(e)?(0,Xr.isListTypeNode)(t)&&xf(e.type,t.type)||(0,Xr.isNonNullTypeNode)(t)&&xf(e,t.type):!1}});var VS=w(XT=>{"use strict";m();T();N();Object.defineProperty(XT,"__esModule",{value:!0});XT.mergeInputType=void 0;var Une=De(),kne=qf(),Mne=Gi();function xne(e,t,n,r){if(t)try{return{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="InputObjectTypeDefinition"||t.kind==="InputObjectTypeDefinition"?"InputObjectTypeDefinition":"InputObjectTypeExtension",loc:e.loc,fields:(0,kne.mergeFields)(e,e.fields,t.fields,n),directives:(0,Mne.mergeDirectives)(e.directives,t.directives,n,r)}}catch(i){throw new Error(`Unable to merge GraphQL input type "${e.name.value}": ${i.message}`)}return n!=null&&n.convertExtensions?Q(x({},e),{kind:Une.Kind.INPUT_OBJECT_TYPE_DEFINITION}):e}XT.mergeInputType=xne});var Vf=w(ZT=>{"use strict";m();T();N();Object.defineProperty(ZT,"__esModule",{value:!0});ZT.mergeNamedTypeArray=void 0;var qne=da();function Vne(e,t){return!!e.find(n=>n.name.value===t.name.value)}function jne(e=[],t=[],n={}){let r=[...t,...e.filter(i=>!Vne(t,i))];return n&&n.sort&&r.sort(qne.compareNodes),r}ZT.mergeNamedTypeArray=jne});var jS=w(eE=>{"use strict";m();T();N();Object.defineProperty(eE,"__esModule",{value:!0});eE.mergeInterface=void 0;var Kne=De(),Gne=qf(),$ne=Gi(),Qne=Vf();function Yne(e,t,n,r){if(t)try{return{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="InterfaceTypeDefinition"||t.kind==="InterfaceTypeDefinition"?"InterfaceTypeDefinition":"InterfaceTypeExtension",loc:e.loc,fields:(0,Gne.mergeFields)(e,e.fields,t.fields,n),directives:(0,$ne.mergeDirectives)(e.directives,t.directives,n,r),interfaces:e.interfaces?(0,Qne.mergeNamedTypeArray)(e.interfaces,t.interfaces,n):void 0}}catch(i){throw new Error(`Unable to merge GraphQL interface "${e.name.value}": ${i.message}`)}return n!=null&&n.convertExtensions?Q(x({},e),{kind:Kne.Kind.INTERFACE_TYPE_DEFINITION}):e}eE.mergeInterface=Yne});var KS=w(tE=>{"use strict";m();T();N();Object.defineProperty(tE,"__esModule",{value:!0});tE.mergeType=void 0;var Jne=De(),Hne=qf(),zne=Gi(),Wne=Vf();function Xne(e,t,n,r){if(t)try{return{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="ObjectTypeDefinition"||t.kind==="ObjectTypeDefinition"?"ObjectTypeDefinition":"ObjectTypeExtension",loc:e.loc,fields:(0,Hne.mergeFields)(e,e.fields,t.fields,n),directives:(0,zne.mergeDirectives)(e.directives,t.directives,n,r),interfaces:(0,Wne.mergeNamedTypeArray)(e.interfaces,t.interfaces,n)}}catch(i){throw new Error(`Unable to merge GraphQL type "${e.name.value}": ${i.message}`)}return n!=null&&n.convertExtensions?Q(x({},e),{kind:Jne.Kind.OBJECT_TYPE_DEFINITION}):e}tE.mergeType=Xne});var GS=w(nE=>{"use strict";m();T();N();Object.defineProperty(nE,"__esModule",{value:!0});nE.mergeScalar=void 0;var Zne=De(),ere=Gi();function tre(e,t,n,r){return t?{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="ScalarTypeDefinition"||t.kind==="ScalarTypeDefinition"?"ScalarTypeDefinition":"ScalarTypeExtension",loc:e.loc,directives:(0,ere.mergeDirectives)(e.directives,t.directives,n,r)}:n!=null&&n.convertExtensions?Q(x({},e),{kind:Zne.Kind.SCALAR_TYPE_DEFINITION}):e}nE.mergeScalar=tre});var QS=w(rE=>{"use strict";m();T();N();Object.defineProperty(rE,"__esModule",{value:!0});rE.mergeUnion=void 0;var $S=De(),nre=Gi(),rre=Vf();function ire(e,t,n,r){return t?{name:e.name,description:e.description||t.description,directives:(0,nre.mergeDirectives)(e.directives,t.directives,n,r),kind:n!=null&&n.convertExtensions||e.kind==="UnionTypeDefinition"||t.kind==="UnionTypeDefinition"?$S.Kind.UNION_TYPE_DEFINITION:$S.Kind.UNION_TYPE_EXTENSION,loc:e.loc,types:(0,rre.mergeNamedTypeArray)(e.types,t.types,n)}:n!=null&&n.convertExtensions?Q(x({},e),{kind:$S.Kind.UNION_TYPE_DEFINITION}):e}rE.mergeUnion=ire});var YS=w(Ec=>{"use strict";m();T();N();Object.defineProperty(Ec,"__esModule",{value:!0});Ec.mergeSchemaDefs=Ec.DEFAULT_OPERATION_TYPE_NAME_MAP=void 0;var jf=De(),are=Gi();Ec.DEFAULT_OPERATION_TYPE_NAME_MAP={query:"Query",mutation:"Mutation",subscription:"Subscription"};function sre(e=[],t=[]){let n=[];for(let r in Ec.DEFAULT_OPERATION_TYPE_NAME_MAP){let i=e.find(a=>a.operation===r)||t.find(a=>a.operation===r);i&&n.push(i)}return n}function ore(e,t,n,r){return t?{kind:e.kind===jf.Kind.SCHEMA_DEFINITION||t.kind===jf.Kind.SCHEMA_DEFINITION?jf.Kind.SCHEMA_DEFINITION:jf.Kind.SCHEMA_EXTENSION,description:e.description||t.description,directives:(0,are.mergeDirectives)(e.directives,t.directives,n,r),operationTypes:sre(e.operationTypes,t.operationTypes)}:n!=null&&n.convertExtensions?Q(x({},e),{kind:jf.Kind.SCHEMA_DEFINITION}):e}Ec.mergeSchemaDefs=ore});var JS=w($a=>{"use strict";m();T();N();Object.defineProperty($a,"__esModule",{value:!0});$a.mergeGraphQLNodes=$a.isNamedDefinitionNode=$a.schemaDefSymbol=void 0;var kr=De(),ure=KS(),cre=xS(),lre=GS(),dre=QS(),fre=VS(),pre=jS(),mre=Gi(),Nre=YS(),Tre=da();$a.schemaDefSymbol="SCHEMA_DEF_SYMBOL";function xk(e){return"name"in e}$a.isNamedDefinitionNode=xk;function Ere(e,t,n={}){var i,a,o;let r=n;for(let c of e)if(xk(c)){let l=(i=c.name)==null?void 0:i.value;if(t!=null&&t.commentDescriptions&&(0,Tre.collectComment)(c),l==null)continue;if((a=t==null?void 0:t.exclusions)!=null&&a.includes(l+".*")||(o=t==null?void 0:t.exclusions)!=null&&o.includes(l))delete r[l];else switch(c.kind){case kr.Kind.OBJECT_TYPE_DEFINITION:case kr.Kind.OBJECT_TYPE_EXTENSION:r[l]=(0,ure.mergeType)(c,r[l],t,n);break;case kr.Kind.ENUM_TYPE_DEFINITION:case kr.Kind.ENUM_TYPE_EXTENSION:r[l]=(0,cre.mergeEnum)(c,r[l],t,n);break;case kr.Kind.UNION_TYPE_DEFINITION:case kr.Kind.UNION_TYPE_EXTENSION:r[l]=(0,dre.mergeUnion)(c,r[l],t,n);break;case kr.Kind.SCALAR_TYPE_DEFINITION:case kr.Kind.SCALAR_TYPE_EXTENSION:r[l]=(0,lre.mergeScalar)(c,r[l],t,n);break;case kr.Kind.INPUT_OBJECT_TYPE_DEFINITION:case kr.Kind.INPUT_OBJECT_TYPE_EXTENSION:r[l]=(0,fre.mergeInputType)(c,r[l],t,n);break;case kr.Kind.INTERFACE_TYPE_DEFINITION:case kr.Kind.INTERFACE_TYPE_EXTENSION:r[l]=(0,pre.mergeInterface)(c,r[l],t,n);break;case kr.Kind.DIRECTIVE_DEFINITION:r[l]=(0,mre.mergeDirective)(c,r[l]);break}}else(c.kind===kr.Kind.SCHEMA_DEFINITION||c.kind===kr.Kind.SCHEMA_EXTENSION)&&(r[$a.schemaDefSymbol]=(0,Nre.mergeSchemaDefs)(c,r[$a.schemaDefSymbol],t));return r}$a.mergeGraphQLNodes=Ere});var jk=w($l=>{"use strict";m();T();N();Object.defineProperty($l,"__esModule",{value:!0});$l.mergeGraphQLTypes=$l.mergeTypeDefs=void 0;var $i=De(),HS=zT(),jl=JS(),Gl=da(),qk=YS();function hre(e,t){(0,Gl.resetComments)();let n={kind:$i.Kind.DOCUMENT,definitions:Vk(e,x({useSchemaDefinition:!0,forceSchemaDefinition:!1,throwOnConflict:!1,commentDescriptions:!1},t))},r;return t!=null&&t.commentDescriptions?r=(0,Gl.printWithComments)(n):r=n,(0,Gl.resetComments)(),r}$l.mergeTypeDefs=hre;function Kl(e,t,n=[],r=[],i=new Set){if(e&&!i.has(e))if(i.add(e),typeof e=="function")Kl(e(),t,n,r,i);else if(Array.isArray(e))for(let a of e)Kl(a,t,n,r,i);else if((0,$i.isSchema)(e)){let a=(0,Gl.getDocumentNodeFromSchema)(e,t);Kl(a.definitions,t,n,r,i)}else if((0,HS.isStringTypes)(e)||(0,HS.isSourceTypes)(e)){let a=(0,$i.parse)(e,t);Kl(a.definitions,t,n,r,i)}else if(typeof e=="object"&&(0,$i.isDefinitionNode)(e))e.kind===$i.Kind.DIRECTIVE_DEFINITION?n.push(e):r.push(e);else if((0,Gl.isDocumentNode)(e))Kl(e.definitions,t,n,r,i);else throw new Error(`typeDefs must contain only strings, documents, schemas, or functions, got ${typeof e}`);return{allDirectives:n,allNodes:r}}function Vk(e,t){var c,l,d;(0,Gl.resetComments)();let{allDirectives:n,allNodes:r}=Kl(e,t),i=(0,jl.mergeGraphQLNodes)(n,t),a=(0,jl.mergeGraphQLNodes)(r,t,i);if(t!=null&&t.useSchemaDefinition){let p=a[jl.schemaDefSymbol]||{kind:$i.Kind.SCHEMA_DEFINITION,operationTypes:[]},y=p.operationTypes;for(let I in qk.DEFAULT_OPERATION_TYPE_NAME_MAP)if(!y.find(F=>F.operation===I)){let F=qk.DEFAULT_OPERATION_TYPE_NAME_MAP[I],k=a[F];k!=null&&k.name!=null&&y.push({kind:$i.Kind.OPERATION_TYPE_DEFINITION,type:{kind:$i.Kind.NAMED_TYPE,name:k.name},operation:I})}((c=p==null?void 0:p.operationTypes)==null?void 0:c.length)!=null&&p.operationTypes.length>0&&(a[jl.schemaDefSymbol]=p)}t!=null&&t.forceSchemaDefinition&&!((d=(l=a[jl.schemaDefSymbol])==null?void 0:l.operationTypes)!=null&&d.length)&&(a[jl.schemaDefSymbol]={kind:$i.Kind.SCHEMA_DEFINITION,operationTypes:[{kind:$i.Kind.OPERATION_TYPE_DEFINITION,operation:"query",type:{kind:$i.Kind.NAMED_TYPE,name:{kind:$i.Kind.NAME,value:"Query"}}}]});let o=Object.values(a);if(t!=null&&t.sort){let p=typeof t.sort=="function"?t.sort:HS.defaultStringComparator;o.sort((y,I)=>{var v,F;return p((v=y.name)==null?void 0:v.value,(F=I.name)==null?void 0:F.value)})}return o}$l.mergeGraphQLTypes=Vk});var Kk=w(Ar=>{"use strict";m();T();N();Object.defineProperty(Ar,"__esModule",{value:!0});var Zr=(xv(),pm(Mv));Zr.__exportStar(kS(),Ar);Zr.__exportStar(Gi(),Ar);Zr.__exportStar(MS(),Ar);Zr.__exportStar(xS(),Ar);Zr.__exportStar(qf(),Ar);Zr.__exportStar(VS(),Ar);Zr.__exportStar(jS(),Ar);Zr.__exportStar(Vf(),Ar);Zr.__exportStar(JS(),Ar);Zr.__exportStar(jk(),Ar);Zr.__exportStar(GS(),Ar);Zr.__exportStar(KS(),Ar);Zr.__exportStar(QS(),Ar);Zr.__exportStar(zT(),Ar)});var $k=w(Eu=>{"use strict";m();T();N();Object.defineProperty(Eu,"__esModule",{value:!0});Eu.applyExtensions=Eu.mergeExtensions=Eu.extractExtensionsFromSchema=void 0;var Gk=da(),yre=da();Object.defineProperty(Eu,"extractExtensionsFromSchema",{enumerable:!0,get:function(){return yre.extractExtensionsFromSchema}});function Ire(e){return(0,Gk.mergeDeep)(e)}Eu.mergeExtensions=Ire;function Ql(e,t){e&&(e.extensions=(0,Gk.mergeDeep)([e.extensions||{},t||{}]))}function gre(e,t){Ql(e,t.schemaExtensions);for(let[n,r]of Object.entries(t.types||{})){let i=e.getType(n);if(i){if(Ql(i,r.extensions),r.type==="object"||r.type==="interface")for(let[a,o]of Object.entries(r.fields)){let c=i.getFields()[a];if(c){Ql(c,o.extensions);for(let[l,d]of Object.entries(o.arguments))Ql(c.args.find(p=>p.name===l),d)}}else if(r.type==="input")for(let[a,o]of Object.entries(r.fields)){let c=i.getFields()[a];Ql(c,o.extensions)}else if(r.type==="enum")for(let[a,o]of Object.entries(r.values)){let c=i.getValue(a);Ql(c,o)}}}return e}Eu.applyExtensions=gre});var iE=w(Kf=>{"use strict";m();T();N();Object.defineProperty(Kf,"__esModule",{value:!0});var zS=(xv(),pm(Mv));zS.__exportStar(wk(),Kf);zS.__exportStar(Kk(),Kf);zS.__exportStar($k(),Kf)});var Mi=w(W=>{"use strict";m();T();N();Object.defineProperty(W,"__esModule",{value:!0});W.semanticNonNullArgumentErrorMessage=W.invalidEventProviderIdErrorMessage=W.invalidNatsStreamConfigurationDefinitionErrorMessage=W.invalidEdfsPublishResultObjectErrorMessage=W.invalidNatsStreamInputErrorMessage=W.inlineFragmentInFieldSetErrorMessage=W.inaccessibleQueryRootTypeError=W.subgraphValidationFailureError=W.minimumSubgraphRequirementError=void 0;W.multipleNamedTypeDefinitionError=Sre;W.incompatibleInputValueDefaultValueTypeError=Ore;W.incompatibleMergedTypesError=Dre;W.incompatibleInputValueDefaultValuesError=bre;W.incompatibleSharedEnumError=Are;W.invalidSubgraphNamesError=Rre;W.duplicateDirectiveDefinitionError=Pre;W.duplicateEnumValueDefinitionError=Fre;W.duplicateFieldDefinitionError=wre;W.duplicateInputFieldDefinitionError=Lre;W.duplicateImplementedInterfaceError=Cre;W.duplicateUnionMemberDefinitionError=Bre;W.duplicateTypeDefinitionError=Ure;W.duplicateOperationTypeDefinitionError=kre;W.noBaseDefinitionForExtensionError=Mre;W.noBaseScalarDefinitionError=xre;W.noDefinedUnionMembersError=qre;W.noDefinedEnumValuesError=Vre;W.operationDefinitionError=jre;W.invalidFieldShareabilityError=Kre;W.undefinedDirectiveError=Gre;W.undefinedTypeError=$re;W.invalidRepeatedDirectiveErrorMessage=Qre;W.invalidDirectiveError=Yre;W.invalidRepeatedFederatedDirectiveErrorMessage=Jre;W.invalidDirectiveLocationErrorMessage=Hre;W.undefinedRequiredArgumentsErrorMessage=zre;W.unexpectedDirectiveArgumentErrorMessage=Wre;W.duplicateDirectiveArgumentDefinitionsErrorMessage=Xre;W.invalidArgumentValueErrorMessage=Zre;W.maximumTypeNestingExceededError=eie;W.unexpectedKindFatalError=tie;W.incompatibleParentKindFatalError=nie;W.unexpectedEdgeFatalError=rie;W.incompatibleParentTypeMergeError=aie;W.unexpectedTypeNodeKindFatalError=sie;W.invalidKeyFatalError=oie;W.unexpectedParentKindForChildError=uie;W.subgraphValidationError=cie;W.invalidSubgraphNameErrorMessage=lie;W.invalidOperationTypeDefinitionError=die;W.invalidRootTypeDefinitionError=fie;W.subgraphInvalidSyntaxError=pie;W.invalidInterfaceImplementationError=mie;W.invalidRequiredInputValueError=Nie;W.duplicateArgumentsError=Tie;W.noQueryRootTypeError=Eie;W.expectedEntityError=hie;W.abstractTypeInKeyFieldSetErrorMessage=yie;W.unknownTypeInFieldSetErrorMessage=Iie;W.invalidSelectionSetErrorMessage=gie;W.invalidSelectionSetDefinitionErrorMessage=_ie;W.undefinedFieldInFieldSetErrorMessage=vie;W.unparsableFieldSetErrorMessage=Sie;W.unparsableFieldSetSelectionErrorMessage=Oie;W.undefinedCompositeOutputTypeError=Die;W.unexpectedArgumentErrorMessage=bie;W.argumentsInKeyFieldSetErrorMessage=Aie;W.invalidProvidesOrRequiresDirectivesError=Rie;W.duplicateFieldInFieldSetErrorMessage=Pie;W.invalidConfigurationDataErrorMessage=Fie;W.incompatibleTypeWithProvidesErrorMessage=wie;W.invalidInlineFragmentTypeErrorMessage=Lie;W.inlineFragmentWithoutTypeConditionErrorMessage=Cie;W.unknownInlineFragmentTypeConditionErrorMessage=Bie;W.invalidInlineFragmentTypeConditionTypeErrorMessage=Uie;W.invalidInlineFragmentTypeConditionErrorMessage=kie;W.invalidSelectionOnUnionErrorMessage=Mie;W.duplicateOverriddenFieldErrorMessage=xie;W.duplicateOverriddenFieldsError=qie;W.noFieldDefinitionsError=Vie;W.noInputValueDefinitionsError=jie;W.allChildDefinitionsAreInaccessibleError=Kie;W.equivalentSourceAndTargetOverrideErrorMessage=Gie;W.undefinedEntityInterfaceImplementationsError=$ie;W.orScopesLimitError=Qie;W.invalidEventDrivenGraphError=Yie;W.invalidRootTypeFieldEventsDirectivesErrorMessage=Jie;W.invalidEventDrivenMutationResponseTypeErrorMessage=Hie;W.invalidRootTypeFieldResponseTypesEventDrivenErrorMessage=zie;W.invalidNatsStreamInputFieldsErrorMessage=Wie;W.invalidKeyFieldSetsEventDrivenErrorMessage=Xie;W.nonExternalKeyFieldNamesEventDrivenErrorMessage=Zie;W.nonKeyFieldNamesEventDrivenErrorMessage=eae;W.nonEntityObjectExtensionsEventDrivenErrorMessage=tae;W.nonKeyComposingObjectTypeNamesEventDrivenErrorMessage=nae;W.invalidEdfsDirectiveName=rae;W.invalidImplementedTypeError=iae;W.selfImplementationError=aae;W.invalidEventSubjectErrorMessage=sae;W.invalidEventSubjectsErrorMessage=oae;W.invalidEventSubjectsItemErrorMessage=uae;W.invalidEventSubjectsArgumentErrorMessage=cae;W.undefinedEventSubjectsArgumentErrorMessage=lae;W.invalidEventDirectiveError=dae;W.invalidReferencesOfInaccessibleTypeError=fae;W.inaccessibleRequiredInputValueError=pae;W.invalidUnionMemberTypeError=mae;W.invalidRootTypeError=Nae;W.invalidSubscriptionFilterLocationError=Tae;W.invalidSubscriptionFilterDirectiveError=Eae;W.subscriptionFilterNamedTypeErrorMessage=hae;W.subscriptionFilterConditionDepthExceededErrorMessage=yae;W.subscriptionFilterConditionInvalidInputFieldNumberErrorMessage=Iae;W.subscriptionFilterConditionInvalidInputFieldErrorMessage=gae;W.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage=_ae;W.subscriptionFilterArrayConditionInvalidItemTypeErrorMessage=vae;W.subscriptionFilterArrayConditionInvalidLengthErrorMessage=Sae;W.invalidInputFieldTypeErrorMessage=Oae;W.subscriptionFieldConditionInvalidInputFieldErrorMessage=Dae;W.subscriptionFieldConditionInvalidValuesArrayErrorMessage=bae;W.subscriptionFieldConditionEmptyValuesArrayErrorMessage=Aae;W.unknownFieldSubgraphNameError=Rae;W.invalidSubscriptionFieldConditionFieldPathErrorMessage=Pae;W.invalidSubscriptionFieldConditionFieldPathParentErrorMessage=Fae;W.undefinedSubscriptionFieldConditionFieldPathFieldErrorMessage=wae;W.invalidSubscriptionFieldConditionFieldPathFieldErrorMessage=Lae;W.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage=Cae;W.nonLeafSubscriptionFieldConditionFieldPathFinalFieldErrorMessage=Bae;W.unresolvablePathError=Uae;W.allExternalFieldInstancesError=kae;W.externalInterfaceFieldsError=Mae;W.nonExternalConditionalFieldError=xae;W.incompatibleFederatedFieldNamedTypeError=qae;W.unknownNamedTypeErrorMessage=Wk;W.unknownNamedTypeError=Vae;W.unknownFieldDataError=jae;W.unexpectedNonCompositeOutputTypeError=Kae;W.invalidExternalDirectiveError=Gae;W.configureDescriptionNoDescriptionError=$ae;W.configureDescriptionPropagationError=Qae;W.duplicateDirectiveDefinitionArgumentErrorMessage=Yae;W.duplicateDirectiveDefinitionLocationErrorMessage=Jae;W.invalidDirectiveDefinitionLocationErrorMessage=Hae;W.invalidDirectiveDefinitionError=zae;W.fieldAlreadyProvidedErrorMessage=Wae;W.invalidInterfaceObjectImplementationDefinitionsError=Xae;W.invalidNamedTypeError=Zae;W.semanticNonNullLevelsNaNIndexErrorMessage=ese;W.semanticNonNullLevelsIndexOutOfBoundsErrorMessage=tse;W.semanticNonNullLevelsNonNullErrorMessage=nse;W.semanticNonNullInconsistentLevelsError=rse;W.oneOfRequiredFieldsError=ise;var Qk=De(),He=vr(),Yk=gl(),hc=Sr(),_re=Sl(),vre=iE();W.minimumSubgraphRequirementError=new Error("At least one subgraph is required for federation.");function Sre(e,t,n){return new Error(`The named type "${e}" is defined as both types "${t}" and "${n}". However, there must be only one type named "${e}".`)}function Ore(e,t,n,r){return new Error(`The ${e} of type "${n}" defined on path "${t}" is incompatible with the default value of "${r}".`)}function Dre({actualType:e,coords:t,expectedType:n,isArgument:r}){return new Error(`Incompatible types when merging two instances of ${r?"field argument":He.FIELD} "${t}": Expected type "${n}" but received "${e}".`)}function bre(e,t,n,r,i){return new Error(`Expected the ${e} defined on path "${t}" to define the default value "${r}". "However, the default value "${i}" is defined in the following subgraph`+(n.length>1?"s":"")+`: @@ -430,7 +430,7 @@ A federated graph only supports a single description; consequently, only one sub `+t.join(He.LITERAL_NEW_LINE)+'"')}function Wae(e,t,n){return` The field "${e}" is unconditionally provided by subgraph "${t}" and should not form part of any "@${n}" field set. Although "${e}" is declared "@external", it is part of a "@key" directive on an extension type. Such fields are only declared "@external" for legacy syntactical reasons and are not internally considered "@external".`}function Xae(e,t,n){return new Error(`The subgraph that defines an entity Interface Object (using "@interfaceObject") must not define any implementation types of that interface. However, the subgraph "${t}" defines the entity Interface "${e}" as an Interface Object alongside the following implementation type`+(n.length>1?"s":"")+` of "${e}": "`+n.join(He.QUOTATION_JOIN)+'"')}function Zae({data:e,namedTypeData:t,nodeType:n}){let r=(0,_re.isFieldData)(e),i=r?`${e.originalParentTypeName}.${e.name}`:e.originalCoords;return new Error(`The ${n} "${i}" is invalid because it defines type `+(0,vre.printTypeNode)(e.type)+`; however, ${(0,hc.kindToNodeType)(t.kind)} "${t.name}" is not a valid `+(r?"output":"input")+" type.")}function ese(e){return`Index "${e}" is not a valid integer.`}function tse({maxIndex:e,typeString:t,value:n}){return`Index "${n}" is out of bounds for type ${t}; `+(e>0?`valid indices are 0-${e} inclusive.`:"the only valid index is 0.")}function nse({typeString:e,value:t}){return`Index "${t}" of type ${e} is non-null but must be nullable.`}W.semanticNonNullArgumentErrorMessage=`Argument "${He.LEVELS}" validation error.`;function rse(e){let t=`${e.renamedParentTypeName}.${e.name}`,n=`The "@semanticNonNull" directive defined on field "${t}" is invalid due to inconsistent values provided to the "levels" argument across the following subgraphs: `;for(let[r,i]of e.nullLevelsBySubgraphName)n+=` Subgraph "${r}" defines levels ${Array.from(i).sort((a,o)=>a-o)}. -`;return n+=`The list value provided to the "levels" argument must be consistently defined across all subgraphs that define "@semanticNonNull" on field "${t}".`,new Error(n)}function ise({requiredFieldNames:e,typeName:t}){return new Error(`The "@oneOf" directive defined on Input Object "${t}" is invalid because all Input fields must be optional (nullable); however, the following Input field`+(e.length>1?"s are":" is")+' required (non-nullable): "'+e.join(He.QUOTATION_JOIN)+'".')}});var Zk=w(Xk=>{"use strict";m();T();N();Object.defineProperty(Xk,"__esModule",{value:!0})});var Yl=w(ei=>{"use strict";m();T();N();Object.defineProperty(ei,"__esModule",{value:!0});ei.COMPOSITE_OUTPUT_NODE_KINDS=ei.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES=ei.SUBSCRIPTION_FILTER_INPUT_NAMES=ei.STREAM_CONFIGURATION_FIELD_NAMES=ei.EVENT_DIRECTIVE_NAMES=ei.TYPE_SYSTEM_DIRECTIVE_LOCATIONS=void 0;var pn=vr(),sE=De();ei.TYPE_SYSTEM_DIRECTIVE_LOCATIONS=new Set([pn.ARGUMENT_DEFINITION_UPPER,pn.ENUM_UPPER,pn.ENUM_VALUE_UPPER,pn.FIELD_DEFINITION_UPPER,pn.INPUT_FIELD_DEFINITION_UPPER,pn.INPUT_OBJECT_UPPER,pn.INTERFACE_UPPER,pn.OBJECT_UPPER,pn.SCALAR_UPPER,pn.SCHEMA_UPPER,pn.UNION_UPPER]);ei.EVENT_DIRECTIVE_NAMES=new Set([pn.EDFS_KAFKA_PUBLISH,pn.EDFS_KAFKA_SUBSCRIBE,pn.EDFS_NATS_PUBLISH,pn.EDFS_NATS_REQUEST,pn.EDFS_NATS_SUBSCRIBE,pn.EDFS_REDIS_PUBLISH,pn.EDFS_REDIS_SUBSCRIBE]);ei.STREAM_CONFIGURATION_FIELD_NAMES=new Set([pn.CONSUMER_INACTIVE_THRESHOLD,pn.CONSUMER_NAME,pn.STREAM_NAME]);ei.SUBSCRIPTION_FILTER_INPUT_NAMES=new Set([pn.AND_UPPER,pn.IN_UPPER,pn.NOT_UPPER,pn.OR_UPPER]);ei.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES=new Set([pn.AND_UPPER,pn.OR_UPPER]);ei.COMPOSITE_OUTPUT_NODE_KINDS=new Set([sE.Kind.INTERFACE_TYPE_DEFINITION,sE.Kind.INTERFACE_TYPE_EXTENSION,sE.Kind.OBJECT_TYPE_DEFINITION,sE.Kind.OBJECT_TYPE_EXTENSION])});var Yi=w((XS,eM)=>{"use strict";m();T();N();var Gf=function(e){return e&&e.Math===Math&&e};eM.exports=Gf(typeof globalThis=="object"&&globalThis)||Gf(typeof window=="object"&&window)||Gf(typeof self=="object"&&self)||Gf(typeof global=="object"&&global)||Gf(typeof XS=="object"&&XS)||function(){return this}()||Function("return this")()});var bs=w((GAe,tM)=>{"use strict";m();T();N();tM.exports=function(e){try{return!!e()}catch(t){return!0}}});var hu=w((JAe,nM)=>{"use strict";m();T();N();var ase=bs();nM.exports=!ase(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var ZS=w((XAe,rM)=>{"use strict";m();T();N();var sse=bs();rM.exports=!sse(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var yc=w((nRe,iM)=>{"use strict";m();T();N();var ose=ZS(),oE=Function.prototype.call;iM.exports=ose?oE.bind(oE):function(){return oE.apply(oE,arguments)}});var uM=w(oM=>{"use strict";m();T();N();var aM={}.propertyIsEnumerable,sM=Object.getOwnPropertyDescriptor,use=sM&&!aM.call({1:2},1);oM.f=use?function(t){var n=sM(this,t);return!!n&&n.enumerable}:aM});var eO=w((lRe,cM)=>{"use strict";m();T();N();cM.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var Ni=w((mRe,fM)=>{"use strict";m();T();N();var lM=ZS(),dM=Function.prototype,tO=dM.call,cse=lM&&dM.bind.bind(tO,tO);fM.exports=lM?cse:function(e){return function(){return tO.apply(e,arguments)}}});var NM=w((hRe,mM)=>{"use strict";m();T();N();var pM=Ni(),lse=pM({}.toString),dse=pM("".slice);mM.exports=function(e){return dse(lse(e),8,-1)}});var EM=w((_Re,TM)=>{"use strict";m();T();N();var fse=Ni(),pse=bs(),mse=NM(),nO=Object,Nse=fse("".split);TM.exports=pse(function(){return!nO("z").propertyIsEnumerable(0)})?function(e){return mse(e)==="String"?Nse(e,""):nO(e)}:nO});var rO=w((DRe,hM)=>{"use strict";m();T();N();hM.exports=function(e){return e==null}});var iO=w((PRe,yM)=>{"use strict";m();T();N();var Tse=rO(),Ese=TypeError;yM.exports=function(e){if(Tse(e))throw new Ese("Can't call method on "+e);return e}});var uE=w((CRe,IM)=>{"use strict";m();T();N();var hse=EM(),yse=iO();IM.exports=function(e){return hse(yse(e))}});var fa=w((MRe,gM)=>{"use strict";m();T();N();var aO=typeof document=="object"&&document.all;gM.exports=typeof aO=="undefined"&&aO!==void 0?function(e){return typeof e=="function"||e===aO}:function(e){return typeof e=="function"}});var Jl=w((jRe,_M)=>{"use strict";m();T();N();var Ise=fa();_M.exports=function(e){return typeof e=="object"?e!==null:Ise(e)}});var cE=w((QRe,vM)=>{"use strict";m();T();N();var sO=Yi(),gse=fa(),_se=function(e){return gse(e)?e:void 0};vM.exports=function(e,t){return arguments.length<2?_se(sO[e]):sO[e]&&sO[e][t]}});var OM=w((zRe,SM)=>{"use strict";m();T();N();var vse=Ni();SM.exports=vse({}.isPrototypeOf)});var RM=w((ePe,AM)=>{"use strict";m();T();N();var Sse=Yi(),DM=Sse.navigator,bM=DM&&DM.userAgent;AM.exports=bM?String(bM):""});var UM=w((iPe,BM)=>{"use strict";m();T();N();var CM=Yi(),oO=RM(),PM=CM.process,FM=CM.Deno,wM=PM&&PM.versions||FM&&FM.version,LM=wM&&wM.v8,pa,lE;LM&&(pa=LM.split("."),lE=pa[0]>0&&pa[0]<4?1:+(pa[0]+pa[1]));!lE&&oO&&(pa=oO.match(/Edge\/(\d+)/),(!pa||pa[1]>=74)&&(pa=oO.match(/Chrome\/(\d+)/),pa&&(lE=+pa[1])));BM.exports=lE});var uO=w((uPe,MM)=>{"use strict";m();T();N();var kM=UM(),Ose=bs(),Dse=Yi(),bse=Dse.String;MM.exports=!!Object.getOwnPropertySymbols&&!Ose(function(){var e=Symbol("symbol detection");return!bse(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&kM&&kM<41})});var cO=w((fPe,xM)=>{"use strict";m();T();N();var Ase=uO();xM.exports=Ase&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var lO=w((TPe,qM)=>{"use strict";m();T();N();var Rse=cE(),Pse=fa(),Fse=OM(),wse=cO(),Lse=Object;qM.exports=wse?function(e){return typeof e=="symbol"}:function(e){var t=Rse("Symbol");return Pse(t)&&Fse(t.prototype,Lse(e))}});var jM=w((IPe,VM)=>{"use strict";m();T();N();var Cse=String;VM.exports=function(e){try{return Cse(e)}catch(t){return"Object"}}});var dE=w((SPe,KM)=>{"use strict";m();T();N();var Bse=fa(),Use=jM(),kse=TypeError;KM.exports=function(e){if(Bse(e))return e;throw new kse(Use(e)+" is not a function")}});var dO=w((APe,GM)=>{"use strict";m();T();N();var Mse=dE(),xse=rO();GM.exports=function(e,t){var n=e[t];return xse(n)?void 0:Mse(n)}});var QM=w((wPe,$M)=>{"use strict";m();T();N();var fO=yc(),pO=fa(),mO=Jl(),qse=TypeError;$M.exports=function(e,t){var n,r;if(t==="string"&&pO(n=e.toString)&&!mO(r=fO(n,e))||pO(n=e.valueOf)&&!mO(r=fO(n,e))||t!=="string"&&pO(n=e.toString)&&!mO(r=fO(n,e)))return r;throw new qse("Can't convert object to primitive value")}});var JM=w((UPe,YM)=>{"use strict";m();T();N();YM.exports=!1});var fE=w((qPe,zM)=>{"use strict";m();T();N();var HM=Yi(),Vse=Object.defineProperty;zM.exports=function(e,t){try{Vse(HM,e,{value:t,configurable:!0,writable:!0})}catch(n){HM[e]=t}return t}});var pE=w((GPe,ZM)=>{"use strict";m();T();N();var jse=JM(),Kse=Yi(),Gse=fE(),WM="__core-js_shared__",XM=ZM.exports=Kse[WM]||Gse(WM,{});(XM.versions||(XM.versions=[])).push({version:"3.41.0",mode:jse?"pure":"global",copyright:"\xA9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var NO=w((JPe,tx)=>{"use strict";m();T();N();var ex=pE();tx.exports=function(e,t){return ex[e]||(ex[e]=t||{})}});var rx=w((XPe,nx)=>{"use strict";m();T();N();var $se=iO(),Qse=Object;nx.exports=function(e){return Qse($se(e))}});var yu=w((nFe,ix)=>{"use strict";m();T();N();var Yse=Ni(),Jse=rx(),Hse=Yse({}.hasOwnProperty);ix.exports=Object.hasOwn||function(t,n){return Hse(Jse(t),n)}});var TO=w((sFe,ax)=>{"use strict";m();T();N();var zse=Ni(),Wse=0,Xse=Math.random(),Zse=zse(1 .toString);ax.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Zse(++Wse+Xse,36)}});var ux=w((lFe,ox)=>{"use strict";m();T();N();var eoe=Yi(),toe=NO(),sx=yu(),noe=TO(),roe=uO(),ioe=cO(),Hl=eoe.Symbol,EO=toe("wks"),aoe=ioe?Hl.for||Hl:Hl&&Hl.withoutSetter||noe;ox.exports=function(e){return sx(EO,e)||(EO[e]=roe&&sx(Hl,e)?Hl[e]:aoe("Symbol."+e)),EO[e]}});var fx=w((mFe,dx)=>{"use strict";m();T();N();var soe=yc(),cx=Jl(),lx=lO(),ooe=dO(),uoe=QM(),coe=ux(),loe=TypeError,doe=coe("toPrimitive");dx.exports=function(e,t){if(!cx(e)||lx(e))return e;var n=ooe(e,doe),r;if(n){if(t===void 0&&(t="default"),r=soe(n,e,t),!cx(r)||lx(r))return r;throw new loe("Can't convert object to primitive value")}return t===void 0&&(t="number"),uoe(e,t)}});var hO=w((hFe,px)=>{"use strict";m();T();N();var foe=fx(),poe=lO();px.exports=function(e){var t=foe(e,"string");return poe(t)?t:t+""}});var Tx=w((_Fe,Nx)=>{"use strict";m();T();N();var moe=Yi(),mx=Jl(),yO=moe.document,Noe=mx(yO)&&mx(yO.createElement);Nx.exports=function(e){return Noe?yO.createElement(e):{}}});var IO=w((DFe,Ex)=>{"use strict";m();T();N();var Toe=hu(),Eoe=bs(),hoe=Tx();Ex.exports=!Toe&&!Eoe(function(){return Object.defineProperty(hoe("div"),"a",{get:function(){return 7}}).a!==7})});var gO=w(yx=>{"use strict";m();T();N();var yoe=hu(),Ioe=yc(),goe=uM(),_oe=eO(),voe=uE(),Soe=hO(),Ooe=yu(),Doe=IO(),hx=Object.getOwnPropertyDescriptor;yx.f=yoe?hx:function(t,n){if(t=voe(t),n=Soe(n),Doe)try{return hx(t,n)}catch(r){}if(Ooe(t,n))return _oe(!Ioe(goe.f,t,n),t[n])}});var gx=w((CFe,Ix)=>{"use strict";m();T();N();var boe=hu(),Aoe=bs();Ix.exports=boe&&Aoe(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var $f=w((MFe,_x)=>{"use strict";m();T();N();var Roe=Jl(),Poe=String,Foe=TypeError;_x.exports=function(e){if(Roe(e))return e;throw new Foe(Poe(e)+" is not an object")}});var NE=w(Sx=>{"use strict";m();T();N();var woe=hu(),Loe=IO(),Coe=gx(),mE=$f(),vx=hO(),Boe=TypeError,_O=Object.defineProperty,Uoe=Object.getOwnPropertyDescriptor,vO="enumerable",SO="configurable",OO="writable";Sx.f=woe?Coe?function(t,n,r){if(mE(t),n=vx(n),mE(r),typeof t=="function"&&n==="prototype"&&"value"in r&&OO in r&&!r[OO]){var i=Uoe(t,n);i&&i[OO]&&(t[n]=r.value,r={configurable:SO in r?r[SO]:i[SO],enumerable:vO in r?r[vO]:i[vO],writable:!1})}return _O(t,n,r)}:_O:function(t,n,r){if(mE(t),n=vx(n),mE(r),Loe)try{return _O(t,n,r)}catch(i){}if("get"in r||"set"in r)throw new Boe("Accessors not supported");return"value"in r&&(t[n]=r.value),t}});var DO=w((QFe,Ox)=>{"use strict";m();T();N();var koe=hu(),Moe=NE(),xoe=eO();Ox.exports=koe?function(e,t,n){return Moe.f(e,t,xoe(1,n))}:function(e,t,n){return e[t]=n,e}});var Ax=w((zFe,bx)=>{"use strict";m();T();N();var bO=hu(),qoe=yu(),Dx=Function.prototype,Voe=bO&&Object.getOwnPropertyDescriptor,AO=qoe(Dx,"name"),joe=AO&&function(){}.name==="something",Koe=AO&&(!bO||bO&&Voe(Dx,"name").configurable);bx.exports={EXISTS:AO,PROPER:joe,CONFIGURABLE:Koe}});var Px=w((ewe,Rx)=>{"use strict";m();T();N();var Goe=Ni(),$oe=fa(),RO=pE(),Qoe=Goe(Function.toString);$oe(RO.inspectSource)||(RO.inspectSource=function(e){return Qoe(e)});Rx.exports=RO.inspectSource});var Lx=w((iwe,wx)=>{"use strict";m();T();N();var Yoe=Yi(),Joe=fa(),Fx=Yoe.WeakMap;wx.exports=Joe(Fx)&&/native code/.test(String(Fx))});var Ux=w((uwe,Bx)=>{"use strict";m();T();N();var Hoe=NO(),zoe=TO(),Cx=Hoe("keys");Bx.exports=function(e){return Cx[e]||(Cx[e]=zoe(e))}});var PO=w((fwe,kx)=>{"use strict";m();T();N();kx.exports={}});var Vx=w((Twe,qx)=>{"use strict";m();T();N();var Woe=Lx(),xx=Yi(),Xoe=Jl(),Zoe=DO(),FO=yu(),wO=pE(),eue=Ux(),tue=PO(),Mx="Object already initialized",LO=xx.TypeError,nue=xx.WeakMap,TE,Qf,EE,rue=function(e){return EE(e)?Qf(e):TE(e,{})},iue=function(e){return function(t){var n;if(!Xoe(t)||(n=Qf(t)).type!==e)throw new LO("Incompatible receiver, "+e+" required");return n}};Woe||wO.state?(ma=wO.state||(wO.state=new nue),ma.get=ma.get,ma.has=ma.has,ma.set=ma.set,TE=function(e,t){if(ma.has(e))throw new LO(Mx);return t.facade=e,ma.set(e,t),t},Qf=function(e){return ma.get(e)||{}},EE=function(e){return ma.has(e)}):(Ic=eue("state"),tue[Ic]=!0,TE=function(e,t){if(FO(e,Ic))throw new LO(Mx);return t.facade=e,Zoe(e,Ic,t),t},Qf=function(e){return FO(e,Ic)?e[Ic]:{}},EE=function(e){return FO(e,Ic)});var ma,Ic;qx.exports={set:TE,get:Qf,has:EE,enforce:rue,getterFor:iue}});var $x=w((Iwe,Gx)=>{"use strict";m();T();N();var BO=Ni(),aue=bs(),sue=fa(),hE=yu(),CO=hu(),oue=Ax().CONFIGURABLE,uue=Px(),Kx=Vx(),cue=Kx.enforce,lue=Kx.get,jx=String,yE=Object.defineProperty,due=BO("".slice),fue=BO("".replace),pue=BO([].join),mue=CO&&!aue(function(){return yE(function(){},"length",{value:8}).length!==8}),Nue=String(String).split("String"),Tue=Gx.exports=function(e,t,n){due(jx(t),0,7)==="Symbol("&&(t="["+fue(jx(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!hE(e,"name")||oue&&e.name!==t)&&(CO?yE(e,"name",{value:t,configurable:!0}):e.name=t),mue&&n&&hE(n,"arity")&&e.length!==n.arity&&yE(e,"length",{value:n.arity});try{n&&hE(n,"constructor")&&n.constructor?CO&&yE(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var r=cue(e);return hE(r,"source")||(r.source=pue(Nue,typeof t=="string"?t:"")),e};Function.prototype.toString=Tue(function(){return sue(this)&&lue(this).source||uue(this)},"toString")});var Yx=w((Swe,Qx)=>{"use strict";m();T();N();var Eue=fa(),hue=NE(),yue=$x(),Iue=fE();Qx.exports=function(e,t,n,r){r||(r={});var i=r.enumerable,a=r.name!==void 0?r.name:t;if(Eue(n)&&yue(n,a,r),r.global)i?e[t]=n:Iue(t,n);else{try{r.unsafe?e[t]&&(i=!0):delete e[t]}catch(o){}i?e[t]=n:hue.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e}});var Hx=w((Awe,Jx)=>{"use strict";m();T();N();var gue=Math.ceil,_ue=Math.floor;Jx.exports=Math.trunc||function(t){var n=+t;return(n>0?_ue:gue)(n)}});var IE=w((wwe,zx)=>{"use strict";m();T();N();var vue=Hx();zx.exports=function(e){var t=+e;return t!==t||t===0?0:vue(t)}});var Xx=w((Uwe,Wx)=>{"use strict";m();T();N();var Sue=IE(),Oue=Math.max,Due=Math.min;Wx.exports=function(e,t){var n=Sue(e);return n<0?Oue(n+t,0):Due(n,t)}});var eq=w((qwe,Zx)=>{"use strict";m();T();N();var bue=IE(),Aue=Math.min;Zx.exports=function(e){var t=bue(e);return t>0?Aue(t,9007199254740991):0}});var nq=w((Gwe,tq)=>{"use strict";m();T();N();var Rue=eq();tq.exports=function(e){return Rue(e.length)}});var aq=w((Jwe,iq)=>{"use strict";m();T();N();var Pue=uE(),Fue=Xx(),wue=nq(),rq=function(e){return function(t,n,r){var i=Pue(t),a=wue(i);if(a===0)return!e&&-1;var o=Fue(r,a),c;if(e&&n!==n){for(;a>o;)if(c=i[o++],c!==c)return!0}else for(;a>o;o++)if((e||o in i)&&i[o]===n)return e||o||0;return!e&&-1}};iq.exports={includes:rq(!0),indexOf:rq(!1)}});var uq=w((Xwe,oq)=>{"use strict";m();T();N();var Lue=Ni(),UO=yu(),Cue=uE(),Bue=aq().indexOf,Uue=PO(),sq=Lue([].push);oq.exports=function(e,t){var n=Cue(e),r=0,i=[],a;for(a in n)!UO(Uue,a)&&UO(n,a)&&sq(i,a);for(;t.length>r;)UO(n,a=t[r++])&&(~Bue(i,a)||sq(i,a));return i}});var lq=w((nLe,cq)=>{"use strict";m();T();N();cq.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var fq=w(dq=>{"use strict";m();T();N();var kue=uq(),Mue=lq(),xue=Mue.concat("length","prototype");dq.f=Object.getOwnPropertyNames||function(t){return kue(t,xue)}});var mq=w(pq=>{"use strict";m();T();N();pq.f=Object.getOwnPropertySymbols});var Tq=w((mLe,Nq)=>{"use strict";m();T();N();var que=cE(),Vue=Ni(),jue=fq(),Kue=mq(),Gue=$f(),$ue=Vue([].concat);Nq.exports=que("Reflect","ownKeys")||function(t){var n=jue.f(Gue(t)),r=Kue.f;return r?$ue(n,r(t)):n}});var yq=w((hLe,hq)=>{"use strict";m();T();N();var Eq=yu(),Que=Tq(),Yue=gO(),Jue=NE();hq.exports=function(e,t,n){for(var r=Que(t),i=Jue.f,a=Yue.f,o=0;o{"use strict";m();T();N();var Hue=bs(),zue=fa(),Wue=/#|\.prototype\./,Yf=function(e,t){var n=Zue[Xue(e)];return n===tce?!0:n===ece?!1:zue(t)?Hue(t):!!t},Xue=Yf.normalize=function(e){return String(e).replace(Wue,".").toLowerCase()},Zue=Yf.data={},ece=Yf.NATIVE="N",tce=Yf.POLYFILL="P";Iq.exports=Yf});var kO=w((DLe,_q)=>{"use strict";m();T();N();var gE=Yi(),nce=gO().f,rce=DO(),ice=Yx(),ace=fE(),sce=yq(),oce=gq();_q.exports=function(e,t){var n=e.target,r=e.global,i=e.stat,a,o,c,l,d,p;if(r?o=gE:i?o=gE[n]||ace(n,{}):o=gE[n]&&gE[n].prototype,o)for(c in t){if(d=t[c],e.dontCallGetSet?(p=nce(o,c),l=p&&p.value):l=o[c],a=oce(r?c:n+(i?".":"#")+c,e.forced),!a&&l!==void 0){if(typeof d==typeof l)continue;sce(d,l)}(e.sham||l&&l.sham)&&rce(d,"sham",!0),ice(o,c,d,e)}}});var Jf=w((PLe,vq)=>{"use strict";m();T();N();var MO=Ni(),_E=Set.prototype;vq.exports={Set,add:MO(_E.add),has:MO(_E.has),remove:MO(_E.delete),proto:_E}});var xO=w((CLe,Sq)=>{"use strict";m();T();N();var uce=Jf().has;Sq.exports=function(e){return uce(e),e}});var Dq=w((MLe,Oq)=>{"use strict";m();T();N();var cce=Ni(),lce=dE();Oq.exports=function(e,t,n){try{return cce(lce(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(r){}}});var qO=w((jLe,bq)=>{"use strict";m();T();N();var dce=Dq(),fce=Jf();bq.exports=dce(fce.proto,"size","get")||function(e){return e.size}});var VO=w((QLe,Aq)=>{"use strict";m();T();N();var pce=yc();Aq.exports=function(e,t,n){for(var r=n?e:e.iterator,i=e.next,a,o;!(a=pce(i,r)).done;)if(o=t(a.value),o!==void 0)return o}});var Cq=w((zLe,Lq)=>{"use strict";m();T();N();var Rq=Ni(),mce=VO(),Pq=Jf(),Nce=Pq.Set,Fq=Pq.proto,Tce=Rq(Fq.forEach),wq=Rq(Fq.keys),Ece=wq(new Nce).next;Lq.exports=function(e,t,n){return n?mce({iterator:wq(e),next:Ece},t):Tce(e,t)}});var Uq=w((eCe,Bq)=>{"use strict";m();T();N();Bq.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var jO=w((iCe,jq)=>{"use strict";m();T();N();var kq=dE(),qq=$f(),Mq=yc(),hce=IE(),yce=Uq(),xq="Invalid size",Ice=RangeError,gce=TypeError,_ce=Math.max,Vq=function(e,t){this.set=e,this.size=_ce(t,0),this.has=kq(e.has),this.keys=kq(e.keys)};Vq.prototype={getIterator:function(){return yce(qq(Mq(this.keys,this.set)))},includes:function(e){return Mq(this.has,this.set,e)}};jq.exports=function(e){qq(e);var t=+e.size;if(t!==t)throw new gce(xq);var n=hce(t);if(n<0)throw new Ice(xq);return new Vq(e,n)}});var Gq=w((uCe,Kq)=>{"use strict";m();T();N();var vce=xO(),Sce=qO(),Oce=Cq(),Dce=jO();Kq.exports=function(t){var n=vce(this),r=Dce(t);return Sce(n)>r.size?!1:Oce(n,function(i){if(!r.includes(i))return!1},!0)!==!1}});var KO=w((fCe,Yq)=>{"use strict";m();T();N();var bce=cE(),$q=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},Qq=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};Yq.exports=function(e,t){var n=bce("Set");try{new n()[e]($q(0));try{return new n()[e]($q(-1)),!1}catch(i){if(!t)return!0;try{return new n()[e](Qq(-1/0)),!1}catch(a){var r=new n;return r.add(1),r.add(2),t(r[e](Qq(1/0)))}}}catch(i){return!1}}});var Jq=w(()=>{"use strict";m();T();N();var Ace=kO(),Rce=Gq(),Pce=KO(),Fce=!Pce("isSubsetOf",function(e){return e});Ace({target:"Set",proto:!0,real:!0,forced:Fce},{isSubsetOf:Rce})});var Hq=w(()=>{"use strict";m();T();N();Jq()});var Xq=w((DCe,Wq)=>{"use strict";m();T();N();var wce=yc(),zq=$f(),Lce=dO();Wq.exports=function(e,t,n){var r,i;zq(e);try{if(r=Lce(e,"return"),!r){if(t==="throw")throw n;return n}r=wce(r,e)}catch(a){i=!0,r=a}if(t==="throw")throw n;if(i)throw r;return zq(r),n}});var eV=w((PCe,Zq)=>{"use strict";m();T();N();var Cce=xO(),Bce=Jf().has,Uce=qO(),kce=jO(),Mce=VO(),xce=Xq();Zq.exports=function(t){var n=Cce(this),r=kce(t);if(Uce(n){"use strict";m();T();N();var qce=kO(),Vce=eV(),jce=KO(),Kce=!jce("isSupersetOf",function(e){return!e});qce({target:"Set",proto:!0,real:!0,forced:Kce},{isSupersetOf:Vce})});var nV=w(()=>{"use strict";m();T();N();tV()});var Hf=w(Dn=>{"use strict";m();T();N();Object.defineProperty(Dn,"__esModule",{value:!0});Dn.subtractSet=$ce;Dn.mapToArrayOfValues=Qce;Dn.kindToConvertedTypeString=Yce;Dn.fieldDatasToSimpleFieldDatas=Jce;Dn.isNodeLeaf=Hce;Dn.newEntityInterfaceFederationData=zce;Dn.upsertEntityInterfaceFederationData=Wce;Dn.upsertEntityData=Zce;Dn.updateEntityData=rV;Dn.newFieldAuthorizationData=ele;Dn.newAuthorizationData=tle;Dn.addScopes=GO;Dn.mergeRequiredScopesByAND=OE;Dn.mergeRequiredScopesByOR=$O;Dn.upsertFieldAuthorizationData=iV;Dn.upsertAuthorizationData=ile;Dn.upsertAuthorizationConfiguration=ale;Dn.isObjectNodeKind=sle;Dn.isCompositeOutputNodeKind=ole;Dn.isObjectDefinitionData=ule;Dn.getNodeCoords=cle;var Gt=De(),ti=vr(),vE=Sr(),SE=Ss();Hq();nV();var Gce=Yl();function $ce(e,t){for(let n of e)t.delete(n)}function Qce(e){let t=[];for(let n of e.values())t.push(n);return t}function Yce(e){switch(e){case Gt.Kind.BOOLEAN:return ti.BOOLEAN_SCALAR;case Gt.Kind.ENUM:case Gt.Kind.ENUM_TYPE_DEFINITION:case Gt.Kind.ENUM_TYPE_EXTENSION:return ti.ENUM;case Gt.Kind.ENUM_VALUE_DEFINITION:return ti.ENUM_VALUE;case Gt.Kind.FIELD_DEFINITION:return ti.FIELD;case Gt.Kind.FLOAT:return ti.FLOAT_SCALAR;case Gt.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Gt.Kind.INPUT_OBJECT_TYPE_EXTENSION:return ti.INPUT_OBJECT;case Gt.Kind.INPUT_VALUE_DEFINITION:return ti.INPUT_VALUE;case Gt.Kind.INT:return ti.INT_SCALAR;case Gt.Kind.INTERFACE_TYPE_DEFINITION:case Gt.Kind.INTERFACE_TYPE_EXTENSION:return ti.INTERFACE;case Gt.Kind.NULL:return ti.NULL;case Gt.Kind.OBJECT:case Gt.Kind.OBJECT_TYPE_DEFINITION:case Gt.Kind.OBJECT_TYPE_EXTENSION:return ti.OBJECT;case Gt.Kind.STRING:return ti.STRING_SCALAR;case Gt.Kind.SCALAR_TYPE_DEFINITION:case Gt.Kind.SCALAR_TYPE_EXTENSION:return ti.SCALAR;case Gt.Kind.UNION_TYPE_DEFINITION:case Gt.Kind.UNION_TYPE_EXTENSION:return ti.UNION;default:return e}}function Jce(e){let t=[];for(let{name:n,namedTypeName:r}of e)t.push({name:n,namedTypeName:r});return t}function Hce(e){if(!e)return!0;switch(e){case Gt.Kind.OBJECT_TYPE_DEFINITION:case Gt.Kind.INTERFACE_TYPE_DEFINITION:case Gt.Kind.UNION_TYPE_DEFINITION:return!1;default:return!0}}function zce(e,t){return{concreteTypeNames:new Set(e.concreteTypeNames),fieldDatasBySubgraphName:new Map([[t,e.fieldDatas]]),interfaceFieldNames:new Set(e.interfaceFieldNames),interfaceObjectFieldNames:new Set(e.interfaceObjectFieldNames),interfaceObjectSubgraphNames:new Set(e.isInterfaceObject?[t]:[]),subgraphDataByTypeName:new Map([[t,e]]),typeName:e.typeName}}function Wce(e,t,n){(0,vE.addIterableValuesToSet)(t.concreteTypeNames,e.concreteTypeNames),e.subgraphDataByTypeName.set(n,t),e.fieldDatasBySubgraphName.set(n,t.fieldDatas),(0,vE.addIterableValuesToSet)(t.interfaceFieldNames,e.interfaceFieldNames),(0,vE.addIterableValuesToSet)(t.interfaceObjectFieldNames,e.interfaceObjectFieldNames),t.isInterfaceObject&&e.interfaceObjectSubgraphNames.add(n)}function Xce({keyFieldSetDataByFieldSet:e,subgraphName:t,typeName:n}){let r=new Map([[t,e]]),i=new Map;for(let[a,{documentNode:o,isUnresolvable:c}]of e)c||i.set(a,o);return{keyFieldSetDatasBySubgraphName:r,documentNodeByKeyFieldSet:i,keyFieldSets:new Set,subgraphNames:new Set([t]),typeName:n}}function Zce({entityDataByTypeName:e,keyFieldSetDataByFieldSet:t,subgraphName:n,typeName:r}){let i=e.get(r);i?rV({entityData:i,keyFieldSetDataByFieldSet:t,subgraphName:n}):e.set(r,Xce({keyFieldSetDataByFieldSet:t,subgraphName:n,typeName:r}))}function rV({entityData:e,keyFieldSetDataByFieldSet:t,subgraphName:n}){e.subgraphNames.add(n);let r=e.keyFieldSetDatasBySubgraphName.get(n);if(!r){e.keyFieldSetDatasBySubgraphName.set(n,t);for(let[i,{documentNode:a,isUnresolvable:o}]of t)o||e.documentNodeByKeyFieldSet.set(i,a);return}for(let[i,a]of t){a.isUnresolvable||e.documentNodeByKeyFieldSet.set(i,a.documentNode);let o=r.get(i);if(o){o.isUnresolvable||(o.isUnresolvable=a.isUnresolvable);continue}r.set(i,a)}}function ele(e){return{fieldName:e,inheritedData:{requiredScopes:[],requiredScopesByOR:[],requiresAuthentication:!1},originalData:{requiredScopes:[],requiresAuthentication:!1}}}function tle(e){return{fieldAuthDataByFieldName:new Map,requiredScopes:[],requiredScopesByOR:[],requiresAuthentication:!1,typeName:e}}function GO(e,t){for(let n=e.length-1;n>-1;n--){if(e[n].isSubsetOf(t))return;e[n].isSupersetOf(t)&&e.splice(n,1)}e.push(t)}function OE(e,t){if(e.length<1||t.length<1){for(let r of t)e.push(new Set(r));return e}let n=[];for(let r of t)for(let i of e){let a=(0,vE.addSets)(r,i);GO(n,a)}return n}function $O(e,t){for(let n of t)GO(e,n);return e.length<=SE.MAX_OR_SCOPES}function iV(e,t){var i,a;let n=t.fieldName,r=e.get(n);return r?((i=r.inheritedData).requiresAuthentication||(i.requiresAuthentication=t.inheritedData.requiresAuthentication),(a=r.originalData).requiresAuthentication||(a.requiresAuthentication=t.originalData.requiresAuthentication),!$O(r.inheritedData.requiredScopesByOR,t.inheritedData.requiredScopes)||r.inheritedData.requiredScopes.length*t.inheritedData.requiredScopes.length>SE.MAX_OR_SCOPES||r.originalData.requiredScopes.length*t.originalData.requiredScopes.length>SE.MAX_OR_SCOPES?!1:(r.inheritedData.requiredScopes=OE(r.inheritedData.requiredScopes,t.inheritedData.requiredScopes),r.originalData.requiredScopes=OE(r.originalData.requiredScopes,t.originalData.requiredScopes),!0)):(e.set(n,aV(t)),!0)}function nle(e){let t=new Map;for(let[n,r]of e)t.set(n,aV(r));return t}function aV(e){return{fieldName:e.fieldName,inheritedData:{requiredScopes:[...e.inheritedData.requiredScopes],requiredScopesByOR:[...e.inheritedData.requiredScopes],requiresAuthentication:e.inheritedData.requiresAuthentication},originalData:{requiredScopes:[...e.originalData.requiredScopes],requiresAuthentication:e.originalData.requiresAuthentication}}}function rle(e){return{fieldAuthDataByFieldName:nle(e.fieldAuthDataByFieldName),requiredScopes:[...e.requiredScopes],requiredScopesByOR:[...e.requiredScopes],requiresAuthentication:e.requiresAuthentication,typeName:e.typeName}}function ile(e,t,n){let r=e.get(t.typeName);if(!r){e.set(t.typeName,rle(t));return}r.requiresAuthentication||(r.requiresAuthentication=t.requiresAuthentication),!$O(r.requiredScopesByOR,t.requiredScopes)||r.requiredScopes.length*t.requiredScopes.length>SE.MAX_OR_SCOPES?n.add(t.typeName):r.requiredScopes=OE(r.requiredScopes,t.requiredScopes);for(let[i,a]of t.fieldAuthDataByFieldName)iV(r.fieldAuthDataByFieldName,a)||n.add(`${t.typeName}.${i}`)}function ale(e,t){let n=t.typeName;for(let[r,i]of t.fieldAuthDataByFieldName){let a=`${n}.${r}`,o=e.get(a);o?(o.requiresAuthentication=i.inheritedData.requiresAuthentication,o.requiredScopes=i.inheritedData.requiredScopes.map(c=>[...c]),o.requiredScopesByOR=i.inheritedData.requiredScopesByOR.map(c=>[...c])):e.set(a,{argumentNames:[],typeName:n,fieldName:r,requiresAuthentication:i.inheritedData.requiresAuthentication,requiredScopes:i.inheritedData.requiredScopes.map(c=>[...c]),requiredScopesByOR:i.inheritedData.requiredScopesByOR.map(c=>[...c])})}}function sle(e){return e===Gt.Kind.OBJECT_TYPE_DEFINITION||e===Gt.Kind.OBJECT_TYPE_EXTENSION}function ole(e){return Gce.COMPOSITE_OUTPUT_NODE_KINDS.has(e)}function ule(e){return e?e.kind===Gt.Kind.OBJECT_TYPE_DEFINITION:!1}function cle(e){switch(e.kind){case Gt.Kind.ARGUMENT:case Gt.Kind.FIELD_DEFINITION:case Gt.Kind.INPUT_VALUE_DEFINITION:case Gt.Kind.ENUM_VALUE_DEFINITION:return e.federatedCoords;default:return e.name}}});var QO=w($e=>{"use strict";m();T();N();Object.defineProperty($e,"__esModule",{value:!0});$e.TAG_DEFINITION_DATA=$e.SUBSCRIPTION_FILTER_DEFINITION_DATA=$e.SHAREABLE_DEFINITION_DATA=$e.SPECIFIED_BY_DEFINITION_DATA=$e.SEMANTIC_NON_NULL_DATA=$e.REQUIRES_SCOPES_DEFINITION_DATA=$e.REQUIRE_FETCH_REASONS_DEFINITION_DATA=$e.REDIS_SUBSCRIBE_DEFINITION_DATA=$e.REDIS_PUBLISH_DEFINITION_DATA=$e.REQUIRES_DEFINITION_DATA=$e.PROVIDES_DEFINITION_DATA=$e.LINK_DEFINITION_DATA=$e.KEY_DEFINITION_DATA=$e.OVERRIDE_DEFINITION_DATA=$e.ONE_OF_DEFINITION_DATA=$e.NATS_SUBSCRIBE_DEFINITION_DATA=$e.NATS_REQUEST_DEFINITION_DATA=$e.NATS_PUBLISH_DEFINITION_DATA=$e.KAFKA_SUBSCRIBE_DEFINITION_DATA=$e.KAFKA_PUBLISH_DEFINITION_DATA=$e.INTERFACE_OBJECT_DEFINITION_DATA=$e.INACCESSIBLE_DEFINITION_DATA=$e.EXTERNAL_DEFINITION_DATA=$e.EXTENDS_DEFINITION_DATA=$e.DEPRECATED_DEFINITION_DATA=$e.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA=$e.CONFIGURE_DESCRIPTION_DEFINITION_DATA=$e.COMPOSE_DIRECTIVE_DEFINITION_DATA=$e.AUTHENTICATED_DEFINITION_DATA=void 0;var Xe=Ss(),Ji=Hr(),$t=De(),q=vr();$e.AUTHENTICATED_DEFINITION_DATA={argumentTypeNodeByName:new Map([]),isRepeatable:!1,locations:new Set([q.ENUM_UPPER,q.FIELD_DEFINITION_UPPER,q.INTERFACE_UPPER,q.OBJECT_UPPER,q.SCALAR_UPPER]),name:q.AUTHENTICATED,node:Xe.AUTHENTICATED_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};$e.COMPOSE_DIRECTIVE_DEFINITION_DATA={argumentTypeNodeByName:new Map([[q.NAME,{name:q.NAME,typeNode:Xe.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!0,locations:new Set([q.SCHEMA_UPPER]),name:q.COMPOSE_DIRECTIVE,node:Xe.COMPOSE_DIRECTIVE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.NAME])};$e.CONFIGURE_DESCRIPTION_DEFINITION_DATA={argumentTypeNodeByName:new Map([[q.PROPAGATE,{name:q.PROPAGATE,typeNode:{kind:$t.Kind.NON_NULL_TYPE,type:(0,Ji.stringToNamedTypeNode)(q.BOOLEAN_SCALAR)},defaultValue:{kind:$t.Kind.BOOLEAN,value:!0}}],[q.DESCRIPTION_OVERRIDE,{name:q.DESCRIPTION_OVERRIDE,typeNode:(0,Ji.stringToNamedTypeNode)(q.STRING_SCALAR)}]]),isRepeatable:!1,locations:new Set([q.ARGUMENT_DEFINITION_UPPER,q.ENUM_UPPER,q.ENUM_VALUE_UPPER,q.FIELD_DEFINITION_UPPER,q.INTERFACE_UPPER,q.INPUT_OBJECT_UPPER,q.INPUT_FIELD_DEFINITION_UPPER,q.OBJECT_UPPER,q.SCALAR_UPPER,q.SCHEMA_UPPER,q.UNION_UPPER]),name:q.CONFIGURE_DESCRIPTION,node:Xe.CONFIGURE_DESCRIPTION_DEFINITION,optionalArgumentNames:new Set([q.PROPAGATE,q.DESCRIPTION_OVERRIDE]),requiredArgumentNames:new Set};$e.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA={argumentTypeNodeByName:new Map([[q.PROPAGATE,{name:q.PROPAGATE,typeNode:{kind:$t.Kind.NON_NULL_TYPE,type:(0,Ji.stringToNamedTypeNode)(q.BOOLEAN_SCALAR)},defaultValue:{kind:$t.Kind.BOOLEAN,value:!0}}]]),isRepeatable:!1,locations:new Set([q.ENUM_UPPER,q.INPUT_OBJECT_UPPER,q.INTERFACE_UPPER,q.OBJECT_UPPER]),name:q.CONFIGURE_CHILD_DESCRIPTIONS,node:Xe.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION,optionalArgumentNames:new Set([q.PROPAGATE]),requiredArgumentNames:new Set};$e.DEPRECATED_DEFINITION_DATA={argumentTypeNodeByName:new Map([[q.REASON,{name:q.REASON,typeNode:(0,Ji.stringToNamedTypeNode)(q.STRING_SCALAR),defaultValue:{kind:$t.Kind.STRING,value:$t.DEFAULT_DEPRECATION_REASON}}]]),isRepeatable:!1,locations:new Set([q.ARGUMENT_DEFINITION_UPPER,q.ENUM_VALUE_UPPER,q.FIELD_DEFINITION_UPPER,q.INPUT_FIELD_DEFINITION_UPPER]),name:q.DEPRECATED,node:Xe.DEPRECATED_DEFINITION,optionalArgumentNames:new Set([q.REASON]),requiredArgumentNames:new Set};$e.EXTENDS_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!1,locations:new Set([q.INTERFACE_UPPER,q.OBJECT_UPPER]),name:q.EXTENDS,node:Xe.EXTENDS_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};$e.EXTERNAL_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER,q.OBJECT_UPPER]),name:q.EXTERNAL,node:Xe.EXTERNAL_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};$e.INACCESSIBLE_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!1,locations:new Set([q.ARGUMENT_DEFINITION_UPPER,q.ENUM_UPPER,q.ENUM_VALUE_UPPER,q.FIELD_DEFINITION_UPPER,q.INPUT_FIELD_DEFINITION_UPPER,q.INPUT_OBJECT_UPPER,q.INTERFACE_UPPER,q.OBJECT_UPPER,q.SCALAR_UPPER,q.UNION_UPPER]),name:q.INACCESSIBLE,node:Xe.INACCESSIBLE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};$e.INTERFACE_OBJECT_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!1,locations:new Set([q.OBJECT_UPPER]),name:q.INTERFACE_OBJECT,node:Xe.INTERFACE_OBJECT_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};$e.KAFKA_PUBLISH_DEFINITION_DATA={argumentTypeNodeByName:new Map([[q.TOPIC,{name:q.TOPIC,typeNode:Xe.REQUIRED_STRING_TYPE_NODE}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:Xe.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:$t.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_KAFKA_PUBLISH,node:Xe.EDFS_KAFKA_PUBLISH_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.TOPIC])};$e.KAFKA_SUBSCRIBE_DEFINITION_DATA={argumentTypeNodeByName:new Map([[q.TOPICS,{name:q.TOPICS,typeNode:{kind:$t.Kind.NON_NULL_TYPE,type:{kind:$t.Kind.LIST_TYPE,type:Xe.REQUIRED_STRING_TYPE_NODE}}}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:Xe.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:$t.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_KAFKA_SUBSCRIBE,node:Xe.EDFS_KAFKA_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.TOPICS])};$e.NATS_PUBLISH_DEFINITION_DATA={argumentTypeNodeByName:new Map([[q.SUBJECT,{name:q.SUBJECT,typeNode:Xe.REQUIRED_STRING_TYPE_NODE}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:Xe.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:$t.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_NATS_PUBLISH,node:Xe.EDFS_NATS_PUBLISH_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.SUBJECT])};$e.NATS_REQUEST_DEFINITION_DATA={argumentTypeNodeByName:new Map([[q.SUBJECT,{name:q.SUBJECT,typeNode:Xe.REQUIRED_STRING_TYPE_NODE}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:Xe.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:$t.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_NATS_REQUEST,node:Xe.EDFS_NATS_REQUEST_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.SUBJECT])};$e.NATS_SUBSCRIBE_DEFINITION_DATA={argumentTypeNodeByName:new Map([[q.SUBJECTS,{name:q.SUBJECTS,typeNode:{kind:$t.Kind.NON_NULL_TYPE,type:{kind:$t.Kind.LIST_TYPE,type:Xe.REQUIRED_STRING_TYPE_NODE}}}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:Xe.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:$t.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}],[q.STREAM_CONFIGURATION,{name:q.STREAM_CONFIGURATION,typeNode:(0,Ji.stringToNamedTypeNode)(q.EDFS_NATS_STREAM_CONFIGURATION)}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_NATS_SUBSCRIBE,node:Xe.EDFS_NATS_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.SUBJECTS])};$e.ONE_OF_DEFINITION_DATA={argumentTypeNodeByName:new Map([]),isRepeatable:!1,locations:new Set([q.INPUT_OBJECT_UPPER]),name:q.ONE_OF,node:Xe.ONE_OF_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};$e.OVERRIDE_DEFINITION_DATA={argumentTypeNodeByName:new Map([[q.FROM,{name:q.FROM,typeNode:Xe.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.OVERRIDE,node:Xe.OVERRIDE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.FROM])};$e.KEY_DEFINITION_DATA={argumentTypeNodeByName:new Map([[q.FIELDS,{name:q.FIELDS,typeNode:Xe.REQUIRED_FIELDSET_TYPE_NODE}],[q.RESOLVABLE,{name:q.RESOLVABLE,typeNode:(0,Ji.stringToNamedTypeNode)(q.BOOLEAN_SCALAR),defaultValue:{kind:$t.Kind.BOOLEAN,value:!0}}]]),isRepeatable:!0,locations:new Set([q.INTERFACE_UPPER,q.OBJECT_UPPER]),name:q.KEY,node:Xe.KEY_DEFINITION,optionalArgumentNames:new Set([q.RESOLVABLE]),requiredArgumentNames:new Set([q.FIELDS])};$e.LINK_DEFINITION_DATA={argumentTypeNodeByName:new Map([[q.URL_LOWER,{name:q.URL_LOWER,typeNode:Xe.REQUIRED_STRING_TYPE_NODE}],[q.AS,{name:q.AS,typeNode:(0,Ji.stringToNamedTypeNode)(q.STRING_SCALAR)}],[q.FOR,{name:q.FOR,typeNode:(0,Ji.stringToNamedTypeNode)(q.LINK_PURPOSE)}],[q.IMPORT,{name:q.IMPORT,typeNode:{kind:$t.Kind.LIST_TYPE,type:(0,Ji.stringToNamedTypeNode)(q.LINK_IMPORT)}}]]),isRepeatable:!0,locations:new Set([q.SCHEMA_UPPER]),name:q.LINK,node:Xe.LINK_DEFINITION,optionalArgumentNames:new Set([q.AS,q.FOR,q.IMPORT]),requiredArgumentNames:new Set([q.URL_LOWER])};$e.PROVIDES_DEFINITION_DATA={argumentTypeNodeByName:new Map([[q.FIELDS,{name:q.FIELDS,typeNode:Xe.REQUIRED_FIELDSET_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.PROVIDES,node:Xe.PROVIDES_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.FIELDS])};$e.REQUIRES_DEFINITION_DATA={argumentTypeNodeByName:new Map([[q.FIELDS,{name:q.FIELDS,typeNode:Xe.REQUIRED_FIELDSET_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.REQUIRES,node:Xe.REQUIRES_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.FIELDS])};$e.REDIS_PUBLISH_DEFINITION_DATA={argumentTypeNodeByName:new Map([[q.CHANNEL,{name:q.CHANNEL,typeNode:Xe.REQUIRED_STRING_TYPE_NODE}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:Xe.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:$t.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_REDIS_PUBLISH,node:Xe.EDFS_REDIS_PUBLISH_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.CHANNEL])};$e.REDIS_SUBSCRIBE_DEFINITION_DATA={argumentTypeNodeByName:new Map([[q.CHANNELS,{name:q.CHANNELS,typeNode:{kind:$t.Kind.NON_NULL_TYPE,type:{kind:$t.Kind.LIST_TYPE,type:Xe.REQUIRED_STRING_TYPE_NODE}}}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:Xe.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:$t.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_REDIS_SUBSCRIBE,node:Xe.EDFS_REDIS_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.CHANNELS])};$e.REQUIRE_FETCH_REASONS_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!0,locations:new Set([q.FIELD_DEFINITION_UPPER,q.INTERFACE_UPPER,q.OBJECT_UPPER]),name:q.REQUIRE_FETCH_REASONS,node:Xe.REQUIRE_FETCH_REASONS_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};$e.REQUIRES_SCOPES_DEFINITION_DATA={argumentTypeNodeByName:new Map([[q.SCOPES,{name:q.SCOPES,typeNode:{kind:$t.Kind.NON_NULL_TYPE,type:{kind:$t.Kind.LIST_TYPE,type:{kind:$t.Kind.NON_NULL_TYPE,type:{kind:$t.Kind.LIST_TYPE,type:{kind:$t.Kind.NON_NULL_TYPE,type:(0,Ji.stringToNamedTypeNode)(q.SCOPE_SCALAR)}}}}}}]]),isRepeatable:!1,locations:new Set([q.ENUM_UPPER,q.FIELD_DEFINITION_UPPER,q.INTERFACE_UPPER,q.OBJECT_UPPER,q.SCALAR_UPPER]),name:q.REQUIRES_SCOPES,node:Xe.REQUIRES_SCOPES_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.SCOPES])};$e.SEMANTIC_NON_NULL_DATA={argumentTypeNodeByName:new Map([[q.LEVELS,{name:q.LEVELS,typeNode:{kind:$t.Kind.NON_NULL_TYPE,type:{kind:$t.Kind.LIST_TYPE,type:{kind:$t.Kind.NON_NULL_TYPE,type:(0,Ji.stringToNamedTypeNode)(q.INT_SCALAR)}}},defaultValue:{kind:$t.Kind.LIST,values:[{kind:$t.Kind.INT,value:"0"}]}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.SEMANTIC_NON_NULL,node:Xe.SEMANTIC_NON_NULL_DEFINITION,optionalArgumentNames:new Set([q.LEVELS]),requiredArgumentNames:new Set};$e.SPECIFIED_BY_DEFINITION_DATA={argumentTypeNodeByName:new Map([[q.URL_LOWER,{name:q.URL_LOWER,typeNode:Xe.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([q.SCALAR_UPPER]),name:q.SPECIFIED_BY,node:Xe.SPECIFIED_BY_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.URL_LOWER])};$e.SHAREABLE_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!0,locations:new Set([q.FIELD_DEFINITION_UPPER,q.OBJECT_UPPER]),name:q.SHAREABLE,node:Xe.SHAREABLE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};$e.SUBSCRIPTION_FILTER_DEFINITION_DATA={argumentTypeNodeByName:new Map([[q.CONDITION,{name:q.CONDITION,typeNode:{kind:$t.Kind.NON_NULL_TYPE,type:(0,Ji.stringToNamedTypeNode)(q.SUBSCRIPTION_FILTER_CONDITION)}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.SUBSCRIPTION_FILTER,node:Xe.SUBSCRIPTION_FILTER_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.CONDITION])};$e.TAG_DEFINITION_DATA={argumentTypeNodeByName:new Map([[q.NAME,{name:q.NAME,typeNode:Xe.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!0,locations:new Set([q.ARGUMENT_DEFINITION_UPPER,q.ENUM_UPPER,q.ENUM_VALUE_UPPER,q.FIELD_DEFINITION_UPPER,q.INPUT_FIELD_DEFINITION_UPPER,q.INPUT_OBJECT_UPPER,q.INTERFACE_UPPER,q.OBJECT_UPPER,q.SCALAR_UPPER,q.UNION_UPPER]),name:q.TAG,node:Xe.TAG_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.NAME])}});var zf=w(Na=>{"use strict";m();T();N();Object.defineProperty(Na,"__esModule",{value:!0});Na.newFieldSetData=lle;Na.extractFieldSetValue=dle;Na.getNormalizedFieldSet=fle;Na.getInitialFieldCoordsPath=ple;Na.validateKeyFieldSets=mle;Na.getConditionalFieldSetDirectiveName=Nle;Na.isNodeQuery=Tle;Na.validateArgumentTemplateReferences=Ele;Na.initializeDirectiveDefinitionDatas=hle;var nr=De(),sV=Hr(),Rr=xi(),oV=Ss(),YO=du(),an=QO(),At=vr(),Iu=Sr();function lle(){return{provides:new Map,requires:new Map}}function dle(e,t,n){if(!n||n.length>1)return;let r=n[0].arguments;if(!r||r.length!==1)return;let i=r[0];i.name.value!==At.FIELDS||i.value.kind!==nr.Kind.STRING||t.set(e,i.value.value)}function fle(e){return(0,nr.print)((0,sV.lexicographicallySortDocumentNode)(e)).replaceAll(/\s+/g," ").slice(2,-2)}function ple(e,t){return e?[t]:[]}function mle(e,t,n){let r=e.entityInterfaceDataByTypeName.get(t.name),i=t.name,a=[],o=[],c=r?void 0:e.internalGraph.addEntityDataNode(t.name),l=e.internalGraph.addOrUpdateNode(t.name),d=0;for(let[p,{documentNode:y,isUnresolvable:I,rawFieldSet:v}]of n){r&&(r.resolvable||(r.resolvable=!I)),d+=1;let F=[],k=[t],K=[],J=[],se=new Set,ie=-1,Te=!0,de="";if((0,nr.visit)(y,{Argument:{enter(Re){return F.push((0,Rr.unexpectedArgumentErrorMessage)(v,`${k[ie].name}.${de}`,Re.name.value)),nr.BREAK}},Field:{enter(Re){let xe=k[ie],tt=xe.name;if(Te){let An=`${tt}.${de}`,Qt=xe.fieldDataByName.get(de);if(!Qt)return F.push((0,Rr.undefinedFieldInFieldSetErrorMessage)(v,An,de)),nr.BREAK;let mn=(0,YO.getTypeNodeNamedTypeName)(Qt.node.type),Pr=e.parentDefinitionDataByTypeName.get(mn),Fr=Pr?Pr.kind:nr.Kind.SCALAR_TYPE_DEFINITION;return F.push((0,Rr.invalidSelectionSetErrorMessage)(v,[An],mn,(0,Iu.kindToNodeType)(Fr))),nr.BREAK}let ee=Re.name.value,Se=`${tt}.${ee}`;de=ee;let _t=xe.fieldDataByName.get(ee);if(!_t)return F.push((0,Rr.undefinedFieldInFieldSetErrorMessage)(v,tt,ee)),nr.BREAK;if(_t.argumentDataByName.size)return F.push((0,Rr.argumentsInKeyFieldSetErrorMessage)(v,Se)),nr.BREAK;if(K[ie].has(ee))return F.push((0,Rr.duplicateFieldInFieldSetErrorMessage)(v,Se)),nr.BREAK;(0,Iu.getValueOrDefault)((0,Iu.getValueOrDefault)(e.keyFieldSetsByEntityTypeNameByFieldCoords,Se,()=>new Map),i,()=>new Set).add(p),J.push(ee),_t.isShareableBySubgraphName.set(e.subgraphName,!0),K[ie].add(ee),(0,Iu.getValueOrDefault)(e.keyFieldNamesByParentTypeName,tt,()=>new Set).add(ee);let en=(0,YO.getTypeNodeNamedTypeName)(_t.node.type);if(oV.BASE_SCALARS.has(en)){se.add(J.join(At.PERIOD)),J.pop();return}let tn=e.parentDefinitionDataByTypeName.get(en);if(!tn)return F.push((0,Rr.unknownTypeInFieldSetErrorMessage)(v,Se,en)),nr.BREAK;if(tn.kind===nr.Kind.OBJECT_TYPE_DEFINITION){Te=!0,k.push(tn);return}if((0,sV.isKindAbstract)(tn.kind))return F.push((0,Rr.abstractTypeInKeyFieldSetErrorMessage)(v,Se,en,(0,Iu.kindToNodeType)(tn.kind))),nr.BREAK;se.add(J.join(At.PERIOD)),J.pop()}},InlineFragment:{enter(){return F.push(Rr.inlineFragmentInFieldSetErrorMessage),nr.BREAK}},SelectionSet:{enter(){if(!Te){let Re=k[ie],tt=`${Re.name}.${de}`,ee=Re.fieldDataByName.get(de);if(!ee)return F.push((0,Rr.undefinedFieldInFieldSetErrorMessage)(v,tt,de)),nr.BREAK;let Se=(0,YO.getTypeNodeNamedTypeName)(ee.node.type),_t=e.parentDefinitionDataByTypeName.get(Se),en=_t?_t.kind:nr.Kind.SCALAR_TYPE_DEFINITION;return F.push((0,Rr.invalidSelectionSetDefinitionErrorMessage)(v,[tt],Se,(0,Iu.kindToNodeType)(en))),nr.BREAK}if(ie+=1,Te=!1,ie<0||ie>=k.length)return F.push((0,Rr.unparsableFieldSetSelectionErrorMessage)(v,de)),nr.BREAK;K.push(new Set)},leave(){if(Te){let xe=k[ie].name,tt=k[ie+1],ee=`${xe}.${de}`;F.push((0,Rr.invalidSelectionSetErrorMessage)(v,[ee],tt.name,(0,Iu.kindToNodeType)(tt.kind))),Te=!1}ie-=1,k.pop(),K.pop()}}}),F.length>0){e.errors.push((0,Rr.invalidDirectiveError)(At.KEY,i,(0,Iu.numberToOrdinal)(d),F));continue}a.push(x({fieldName:"",selectionSet:p},I?{disableEntityResolver:!0}:{})),l.satisfiedFieldSets.add(p),!I&&(c==null||c.addTargetSubgraphByFieldSet(p,e.subgraphName),o.push(se))}if(a.length>0)return a}function Nle(e){return e?At.PROVIDES:At.REQUIRES}function Tle(e,t){return e===At.QUERY||t===nr.OperationTypeNode.QUERY}function Ele(e,t,n){let r=e.matchAll(oV.EDFS_ARGS_REGEXP),i=new Set,a=new Set;for(let o of r){if(o.length<2){a.add(o[0]);continue}t.has(o[1])||i.add(o[1])}for(let o of i)n.push((0,Rr.undefinedEventSubjectsArgumentErrorMessage)(o));for(let o of a)n.push((0,Rr.invalidEventSubjectsArgumentErrorMessage)(o))}function hle(){return new Map([[At.AUTHENTICATED,an.AUTHENTICATED_DEFINITION_DATA],[At.COMPOSE_DIRECTIVE,an.COMPOSE_DIRECTIVE_DEFINITION_DATA],[At.CONFIGURE_DESCRIPTION,an.CONFIGURE_DESCRIPTION_DEFINITION_DATA],[At.CONFIGURE_CHILD_DESCRIPTIONS,an.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA],[At.DEPRECATED,an.DEPRECATED_DEFINITION_DATA],[At.EDFS_KAFKA_PUBLISH,an.KAFKA_PUBLISH_DEFINITION_DATA],[At.EDFS_KAFKA_SUBSCRIBE,an.KAFKA_SUBSCRIBE_DEFINITION_DATA],[At.EDFS_NATS_PUBLISH,an.NATS_PUBLISH_DEFINITION_DATA],[At.EDFS_NATS_REQUEST,an.NATS_REQUEST_DEFINITION_DATA],[At.EDFS_NATS_SUBSCRIBE,an.NATS_SUBSCRIBE_DEFINITION_DATA],[At.EDFS_REDIS_PUBLISH,an.REDIS_PUBLISH_DEFINITION_DATA],[At.EDFS_REDIS_SUBSCRIBE,an.REDIS_SUBSCRIBE_DEFINITION_DATA],[At.EXTENDS,an.EXTENDS_DEFINITION_DATA],[At.EXTERNAL,an.EXTERNAL_DEFINITION_DATA],[At.INACCESSIBLE,an.INACCESSIBLE_DEFINITION_DATA],[At.INTERFACE_OBJECT,an.INTERFACE_OBJECT_DEFINITION_DATA],[At.KEY,an.KEY_DEFINITION_DATA],[At.LINK,an.LINK_DEFINITION_DATA],[At.ONE_OF,an.ONE_OF_DEFINITION_DATA],[At.OVERRIDE,an.OVERRIDE_DEFINITION_DATA],[At.PROVIDES,an.PROVIDES_DEFINITION_DATA],[At.REQUIRE_FETCH_REASONS,an.REQUIRE_FETCH_REASONS_DEFINITION_DATA],[At.REQUIRES,an.REQUIRES_DEFINITION_DATA],[At.REQUIRES_SCOPES,an.REQUIRES_SCOPES_DEFINITION_DATA],[At.SEMANTIC_NON_NULL,an.SEMANTIC_NON_NULL_DATA],[At.SHAREABLE,an.SHAREABLE_DEFINITION_DATA],[At.SPECIFIED_BY,an.SPECIFIED_BY_DEFINITION_DATA],[At.SUBSCRIPTION_FILTER,an.SUBSCRIPTION_FILTER_DEFINITION_DATA],[At.TAG,an.TAG_DEFINITION_DATA]])}});var HO=w(JO=>{"use strict";m();T();N();Object.defineProperty(JO,"__esModule",{value:!0});JO.recordSubgraphName=yle;function yle(e,t,n){if(!t.has(e)){t.add(e);return}n.add(e)}});var WO=w(DE=>{"use strict";m();T();N();Object.defineProperty(DE,"__esModule",{value:!0});DE.Warning=void 0;var zO=class extends Error{constructor(n){super(n.message);_(this,"subgraph");this.name="Warning",this.subgraph=n.subgraph}};DE.Warning=zO});var Wf=w(Ti=>{"use strict";m();T();N();Object.defineProperty(Ti,"__esModule",{value:!0});Ti.invalidOverrideTargetSubgraphNameWarning=Ile;Ti.externalInterfaceFieldsWarning=gle;Ti.nonExternalConditionalFieldWarning=_le;Ti.unimplementedInterfaceOutputTypeWarning=vle;Ti.invalidExternalFieldWarning=Sle;Ti.requiresDefinedOnNonEntityFieldWarning=Ole;Ti.consumerInactiveThresholdInvalidValueWarning=Dle;Ti.externalEntityExtensionKeyFieldWarning=ble;Ti.fieldAlreadyProvidedWarning=Ale;Ti.singleSubgraphInputFieldOneOfWarning=Rle;Ti.singleFederatedInputFieldOneOfWarning=Ple;var Ta=WO(),XO=vr();function Ile(e,t,n,r){return new Ta.Warning({message:`The Object type "${t}" defines the directive "@override(from: "${e}")" on the following field`+(n.length>1?"s":"")+': "'+n.join(XO.QUOTATION_JOIN)+`". +`;return n+=`The list value provided to the "levels" argument must be consistently defined across all subgraphs that define "@semanticNonNull" on field "${t}".`,new Error(n)}function ise({requiredFieldNames:e,typeName:t}){return new Error(`The "@oneOf" directive defined on Input Object "${t}" is invalid because all Input fields must be optional (nullable); however, the following Input field`+(e.length>1?"s are":" is")+' required (non-nullable): "'+e.join(He.QUOTATION_JOIN)+'".')}});var Zk=w(Xk=>{"use strict";m();T();N();Object.defineProperty(Xk,"__esModule",{value:!0})});var Yl=w(ei=>{"use strict";m();T();N();Object.defineProperty(ei,"__esModule",{value:!0});ei.COMPOSITE_OUTPUT_NODE_KINDS=ei.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES=ei.SUBSCRIPTION_FILTER_INPUT_NAMES=ei.STREAM_CONFIGURATION_FIELD_NAMES=ei.EVENT_DIRECTIVE_NAMES=ei.TYPE_SYSTEM_DIRECTIVE_LOCATIONS=void 0;var pn=vr(),sE=De();ei.TYPE_SYSTEM_DIRECTIVE_LOCATIONS=new Set([pn.ARGUMENT_DEFINITION_UPPER,pn.ENUM_UPPER,pn.ENUM_VALUE_UPPER,pn.FIELD_DEFINITION_UPPER,pn.INPUT_FIELD_DEFINITION_UPPER,pn.INPUT_OBJECT_UPPER,pn.INTERFACE_UPPER,pn.OBJECT_UPPER,pn.SCALAR_UPPER,pn.SCHEMA_UPPER,pn.UNION_UPPER]);ei.EVENT_DIRECTIVE_NAMES=new Set([pn.EDFS_KAFKA_PUBLISH,pn.EDFS_KAFKA_SUBSCRIBE,pn.EDFS_NATS_PUBLISH,pn.EDFS_NATS_REQUEST,pn.EDFS_NATS_SUBSCRIBE,pn.EDFS_REDIS_PUBLISH,pn.EDFS_REDIS_SUBSCRIBE]);ei.STREAM_CONFIGURATION_FIELD_NAMES=new Set([pn.CONSUMER_INACTIVE_THRESHOLD,pn.CONSUMER_NAME,pn.STREAM_NAME]);ei.SUBSCRIPTION_FILTER_INPUT_NAMES=new Set([pn.AND_UPPER,pn.IN_UPPER,pn.NOT_UPPER,pn.OR_UPPER]);ei.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES=new Set([pn.AND_UPPER,pn.OR_UPPER]);ei.COMPOSITE_OUTPUT_NODE_KINDS=new Set([sE.Kind.INTERFACE_TYPE_DEFINITION,sE.Kind.INTERFACE_TYPE_EXTENSION,sE.Kind.OBJECT_TYPE_DEFINITION,sE.Kind.OBJECT_TYPE_EXTENSION])});var Qi=w((XS,eM)=>{"use strict";m();T();N();var Gf=function(e){return e&&e.Math===Math&&e};eM.exports=Gf(typeof globalThis=="object"&&globalThis)||Gf(typeof window=="object"&&window)||Gf(typeof self=="object"&&self)||Gf(typeof global=="object"&&global)||Gf(typeof XS=="object"&&XS)||function(){return this}()||Function("return this")()});var bs=w((GAe,tM)=>{"use strict";m();T();N();tM.exports=function(e){try{return!!e()}catch(t){return!0}}});var hu=w((JAe,nM)=>{"use strict";m();T();N();var ase=bs();nM.exports=!ase(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var ZS=w((XAe,rM)=>{"use strict";m();T();N();var sse=bs();rM.exports=!sse(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var yc=w((nRe,iM)=>{"use strict";m();T();N();var ose=ZS(),oE=Function.prototype.call;iM.exports=ose?oE.bind(oE):function(){return oE.apply(oE,arguments)}});var uM=w(oM=>{"use strict";m();T();N();var aM={}.propertyIsEnumerable,sM=Object.getOwnPropertyDescriptor,use=sM&&!aM.call({1:2},1);oM.f=use?function(t){var n=sM(this,t);return!!n&&n.enumerable}:aM});var eO=w((lRe,cM)=>{"use strict";m();T();N();cM.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var Ni=w((mRe,fM)=>{"use strict";m();T();N();var lM=ZS(),dM=Function.prototype,tO=dM.call,cse=lM&&dM.bind.bind(tO,tO);fM.exports=lM?cse:function(e){return function(){return tO.apply(e,arguments)}}});var NM=w((hRe,mM)=>{"use strict";m();T();N();var pM=Ni(),lse=pM({}.toString),dse=pM("".slice);mM.exports=function(e){return dse(lse(e),8,-1)}});var EM=w((_Re,TM)=>{"use strict";m();T();N();var fse=Ni(),pse=bs(),mse=NM(),nO=Object,Nse=fse("".split);TM.exports=pse(function(){return!nO("z").propertyIsEnumerable(0)})?function(e){return mse(e)==="String"?Nse(e,""):nO(e)}:nO});var rO=w((DRe,hM)=>{"use strict";m();T();N();hM.exports=function(e){return e==null}});var iO=w((PRe,yM)=>{"use strict";m();T();N();var Tse=rO(),Ese=TypeError;yM.exports=function(e){if(Tse(e))throw new Ese("Can't call method on "+e);return e}});var uE=w((CRe,IM)=>{"use strict";m();T();N();var hse=EM(),yse=iO();IM.exports=function(e){return hse(yse(e))}});var fa=w((MRe,gM)=>{"use strict";m();T();N();var aO=typeof document=="object"&&document.all;gM.exports=typeof aO=="undefined"&&aO!==void 0?function(e){return typeof e=="function"||e===aO}:function(e){return typeof e=="function"}});var Jl=w((jRe,_M)=>{"use strict";m();T();N();var Ise=fa();_M.exports=function(e){return typeof e=="object"?e!==null:Ise(e)}});var cE=w((QRe,vM)=>{"use strict";m();T();N();var sO=Qi(),gse=fa(),_se=function(e){return gse(e)?e:void 0};vM.exports=function(e,t){return arguments.length<2?_se(sO[e]):sO[e]&&sO[e][t]}});var OM=w((zRe,SM)=>{"use strict";m();T();N();var vse=Ni();SM.exports=vse({}.isPrototypeOf)});var RM=w((ePe,AM)=>{"use strict";m();T();N();var Sse=Qi(),DM=Sse.navigator,bM=DM&&DM.userAgent;AM.exports=bM?String(bM):""});var UM=w((iPe,BM)=>{"use strict";m();T();N();var CM=Qi(),oO=RM(),PM=CM.process,FM=CM.Deno,wM=PM&&PM.versions||FM&&FM.version,LM=wM&&wM.v8,pa,lE;LM&&(pa=LM.split("."),lE=pa[0]>0&&pa[0]<4?1:+(pa[0]+pa[1]));!lE&&oO&&(pa=oO.match(/Edge\/(\d+)/),(!pa||pa[1]>=74)&&(pa=oO.match(/Chrome\/(\d+)/),pa&&(lE=+pa[1])));BM.exports=lE});var uO=w((uPe,MM)=>{"use strict";m();T();N();var kM=UM(),Ose=bs(),Dse=Qi(),bse=Dse.String;MM.exports=!!Object.getOwnPropertySymbols&&!Ose(function(){var e=Symbol("symbol detection");return!bse(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&kM&&kM<41})});var cO=w((fPe,xM)=>{"use strict";m();T();N();var Ase=uO();xM.exports=Ase&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var lO=w((TPe,qM)=>{"use strict";m();T();N();var Rse=cE(),Pse=fa(),Fse=OM(),wse=cO(),Lse=Object;qM.exports=wse?function(e){return typeof e=="symbol"}:function(e){var t=Rse("Symbol");return Pse(t)&&Fse(t.prototype,Lse(e))}});var jM=w((IPe,VM)=>{"use strict";m();T();N();var Cse=String;VM.exports=function(e){try{return Cse(e)}catch(t){return"Object"}}});var dE=w((SPe,KM)=>{"use strict";m();T();N();var Bse=fa(),Use=jM(),kse=TypeError;KM.exports=function(e){if(Bse(e))return e;throw new kse(Use(e)+" is not a function")}});var dO=w((APe,GM)=>{"use strict";m();T();N();var Mse=dE(),xse=rO();GM.exports=function(e,t){var n=e[t];return xse(n)?void 0:Mse(n)}});var QM=w((wPe,$M)=>{"use strict";m();T();N();var fO=yc(),pO=fa(),mO=Jl(),qse=TypeError;$M.exports=function(e,t){var n,r;if(t==="string"&&pO(n=e.toString)&&!mO(r=fO(n,e))||pO(n=e.valueOf)&&!mO(r=fO(n,e))||t!=="string"&&pO(n=e.toString)&&!mO(r=fO(n,e)))return r;throw new qse("Can't convert object to primitive value")}});var JM=w((UPe,YM)=>{"use strict";m();T();N();YM.exports=!1});var fE=w((qPe,zM)=>{"use strict";m();T();N();var HM=Qi(),Vse=Object.defineProperty;zM.exports=function(e,t){try{Vse(HM,e,{value:t,configurable:!0,writable:!0})}catch(n){HM[e]=t}return t}});var pE=w((GPe,ZM)=>{"use strict";m();T();N();var jse=JM(),Kse=Qi(),Gse=fE(),WM="__core-js_shared__",XM=ZM.exports=Kse[WM]||Gse(WM,{});(XM.versions||(XM.versions=[])).push({version:"3.41.0",mode:jse?"pure":"global",copyright:"\xA9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var NO=w((JPe,tx)=>{"use strict";m();T();N();var ex=pE();tx.exports=function(e,t){return ex[e]||(ex[e]=t||{})}});var rx=w((XPe,nx)=>{"use strict";m();T();N();var $se=iO(),Qse=Object;nx.exports=function(e){return Qse($se(e))}});var yu=w((nFe,ix)=>{"use strict";m();T();N();var Yse=Ni(),Jse=rx(),Hse=Yse({}.hasOwnProperty);ix.exports=Object.hasOwn||function(t,n){return Hse(Jse(t),n)}});var TO=w((sFe,ax)=>{"use strict";m();T();N();var zse=Ni(),Wse=0,Xse=Math.random(),Zse=zse(1 .toString);ax.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Zse(++Wse+Xse,36)}});var ux=w((lFe,ox)=>{"use strict";m();T();N();var eoe=Qi(),toe=NO(),sx=yu(),noe=TO(),roe=uO(),ioe=cO(),Hl=eoe.Symbol,EO=toe("wks"),aoe=ioe?Hl.for||Hl:Hl&&Hl.withoutSetter||noe;ox.exports=function(e){return sx(EO,e)||(EO[e]=roe&&sx(Hl,e)?Hl[e]:aoe("Symbol."+e)),EO[e]}});var fx=w((mFe,dx)=>{"use strict";m();T();N();var soe=yc(),cx=Jl(),lx=lO(),ooe=dO(),uoe=QM(),coe=ux(),loe=TypeError,doe=coe("toPrimitive");dx.exports=function(e,t){if(!cx(e)||lx(e))return e;var n=ooe(e,doe),r;if(n){if(t===void 0&&(t="default"),r=soe(n,e,t),!cx(r)||lx(r))return r;throw new loe("Can't convert object to primitive value")}return t===void 0&&(t="number"),uoe(e,t)}});var hO=w((hFe,px)=>{"use strict";m();T();N();var foe=fx(),poe=lO();px.exports=function(e){var t=foe(e,"string");return poe(t)?t:t+""}});var Tx=w((_Fe,Nx)=>{"use strict";m();T();N();var moe=Qi(),mx=Jl(),yO=moe.document,Noe=mx(yO)&&mx(yO.createElement);Nx.exports=function(e){return Noe?yO.createElement(e):{}}});var IO=w((DFe,Ex)=>{"use strict";m();T();N();var Toe=hu(),Eoe=bs(),hoe=Tx();Ex.exports=!Toe&&!Eoe(function(){return Object.defineProperty(hoe("div"),"a",{get:function(){return 7}}).a!==7})});var gO=w(yx=>{"use strict";m();T();N();var yoe=hu(),Ioe=yc(),goe=uM(),_oe=eO(),voe=uE(),Soe=hO(),Ooe=yu(),Doe=IO(),hx=Object.getOwnPropertyDescriptor;yx.f=yoe?hx:function(t,n){if(t=voe(t),n=Soe(n),Doe)try{return hx(t,n)}catch(r){}if(Ooe(t,n))return _oe(!Ioe(goe.f,t,n),t[n])}});var gx=w((CFe,Ix)=>{"use strict";m();T();N();var boe=hu(),Aoe=bs();Ix.exports=boe&&Aoe(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var $f=w((MFe,_x)=>{"use strict";m();T();N();var Roe=Jl(),Poe=String,Foe=TypeError;_x.exports=function(e){if(Roe(e))return e;throw new Foe(Poe(e)+" is not an object")}});var NE=w(Sx=>{"use strict";m();T();N();var woe=hu(),Loe=IO(),Coe=gx(),mE=$f(),vx=hO(),Boe=TypeError,_O=Object.defineProperty,Uoe=Object.getOwnPropertyDescriptor,vO="enumerable",SO="configurable",OO="writable";Sx.f=woe?Coe?function(t,n,r){if(mE(t),n=vx(n),mE(r),typeof t=="function"&&n==="prototype"&&"value"in r&&OO in r&&!r[OO]){var i=Uoe(t,n);i&&i[OO]&&(t[n]=r.value,r={configurable:SO in r?r[SO]:i[SO],enumerable:vO in r?r[vO]:i[vO],writable:!1})}return _O(t,n,r)}:_O:function(t,n,r){if(mE(t),n=vx(n),mE(r),Loe)try{return _O(t,n,r)}catch(i){}if("get"in r||"set"in r)throw new Boe("Accessors not supported");return"value"in r&&(t[n]=r.value),t}});var DO=w((QFe,Ox)=>{"use strict";m();T();N();var koe=hu(),Moe=NE(),xoe=eO();Ox.exports=koe?function(e,t,n){return Moe.f(e,t,xoe(1,n))}:function(e,t,n){return e[t]=n,e}});var Ax=w((zFe,bx)=>{"use strict";m();T();N();var bO=hu(),qoe=yu(),Dx=Function.prototype,Voe=bO&&Object.getOwnPropertyDescriptor,AO=qoe(Dx,"name"),joe=AO&&function(){}.name==="something",Koe=AO&&(!bO||bO&&Voe(Dx,"name").configurable);bx.exports={EXISTS:AO,PROPER:joe,CONFIGURABLE:Koe}});var Px=w((ewe,Rx)=>{"use strict";m();T();N();var Goe=Ni(),$oe=fa(),RO=pE(),Qoe=Goe(Function.toString);$oe(RO.inspectSource)||(RO.inspectSource=function(e){return Qoe(e)});Rx.exports=RO.inspectSource});var Lx=w((iwe,wx)=>{"use strict";m();T();N();var Yoe=Qi(),Joe=fa(),Fx=Yoe.WeakMap;wx.exports=Joe(Fx)&&/native code/.test(String(Fx))});var Ux=w((uwe,Bx)=>{"use strict";m();T();N();var Hoe=NO(),zoe=TO(),Cx=Hoe("keys");Bx.exports=function(e){return Cx[e]||(Cx[e]=zoe(e))}});var PO=w((fwe,kx)=>{"use strict";m();T();N();kx.exports={}});var Vx=w((Twe,qx)=>{"use strict";m();T();N();var Woe=Lx(),xx=Qi(),Xoe=Jl(),Zoe=DO(),FO=yu(),wO=pE(),eue=Ux(),tue=PO(),Mx="Object already initialized",LO=xx.TypeError,nue=xx.WeakMap,TE,Qf,EE,rue=function(e){return EE(e)?Qf(e):TE(e,{})},iue=function(e){return function(t){var n;if(!Xoe(t)||(n=Qf(t)).type!==e)throw new LO("Incompatible receiver, "+e+" required");return n}};Woe||wO.state?(ma=wO.state||(wO.state=new nue),ma.get=ma.get,ma.has=ma.has,ma.set=ma.set,TE=function(e,t){if(ma.has(e))throw new LO(Mx);return t.facade=e,ma.set(e,t),t},Qf=function(e){return ma.get(e)||{}},EE=function(e){return ma.has(e)}):(Ic=eue("state"),tue[Ic]=!0,TE=function(e,t){if(FO(e,Ic))throw new LO(Mx);return t.facade=e,Zoe(e,Ic,t),t},Qf=function(e){return FO(e,Ic)?e[Ic]:{}},EE=function(e){return FO(e,Ic)});var ma,Ic;qx.exports={set:TE,get:Qf,has:EE,enforce:rue,getterFor:iue}});var $x=w((Iwe,Gx)=>{"use strict";m();T();N();var BO=Ni(),aue=bs(),sue=fa(),hE=yu(),CO=hu(),oue=Ax().CONFIGURABLE,uue=Px(),Kx=Vx(),cue=Kx.enforce,lue=Kx.get,jx=String,yE=Object.defineProperty,due=BO("".slice),fue=BO("".replace),pue=BO([].join),mue=CO&&!aue(function(){return yE(function(){},"length",{value:8}).length!==8}),Nue=String(String).split("String"),Tue=Gx.exports=function(e,t,n){due(jx(t),0,7)==="Symbol("&&(t="["+fue(jx(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!hE(e,"name")||oue&&e.name!==t)&&(CO?yE(e,"name",{value:t,configurable:!0}):e.name=t),mue&&n&&hE(n,"arity")&&e.length!==n.arity&&yE(e,"length",{value:n.arity});try{n&&hE(n,"constructor")&&n.constructor?CO&&yE(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var r=cue(e);return hE(r,"source")||(r.source=pue(Nue,typeof t=="string"?t:"")),e};Function.prototype.toString=Tue(function(){return sue(this)&&lue(this).source||uue(this)},"toString")});var Yx=w((Swe,Qx)=>{"use strict";m();T();N();var Eue=fa(),hue=NE(),yue=$x(),Iue=fE();Qx.exports=function(e,t,n,r){r||(r={});var i=r.enumerable,a=r.name!==void 0?r.name:t;if(Eue(n)&&yue(n,a,r),r.global)i?e[t]=n:Iue(t,n);else{try{r.unsafe?e[t]&&(i=!0):delete e[t]}catch(o){}i?e[t]=n:hue.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e}});var Hx=w((Awe,Jx)=>{"use strict";m();T();N();var gue=Math.ceil,_ue=Math.floor;Jx.exports=Math.trunc||function(t){var n=+t;return(n>0?_ue:gue)(n)}});var IE=w((wwe,zx)=>{"use strict";m();T();N();var vue=Hx();zx.exports=function(e){var t=+e;return t!==t||t===0?0:vue(t)}});var Xx=w((Uwe,Wx)=>{"use strict";m();T();N();var Sue=IE(),Oue=Math.max,Due=Math.min;Wx.exports=function(e,t){var n=Sue(e);return n<0?Oue(n+t,0):Due(n,t)}});var eq=w((qwe,Zx)=>{"use strict";m();T();N();var bue=IE(),Aue=Math.min;Zx.exports=function(e){var t=bue(e);return t>0?Aue(t,9007199254740991):0}});var nq=w((Gwe,tq)=>{"use strict";m();T();N();var Rue=eq();tq.exports=function(e){return Rue(e.length)}});var aq=w((Jwe,iq)=>{"use strict";m();T();N();var Pue=uE(),Fue=Xx(),wue=nq(),rq=function(e){return function(t,n,r){var i=Pue(t),a=wue(i);if(a===0)return!e&&-1;var o=Fue(r,a),c;if(e&&n!==n){for(;a>o;)if(c=i[o++],c!==c)return!0}else for(;a>o;o++)if((e||o in i)&&i[o]===n)return e||o||0;return!e&&-1}};iq.exports={includes:rq(!0),indexOf:rq(!1)}});var uq=w((Xwe,oq)=>{"use strict";m();T();N();var Lue=Ni(),UO=yu(),Cue=uE(),Bue=aq().indexOf,Uue=PO(),sq=Lue([].push);oq.exports=function(e,t){var n=Cue(e),r=0,i=[],a;for(a in n)!UO(Uue,a)&&UO(n,a)&&sq(i,a);for(;t.length>r;)UO(n,a=t[r++])&&(~Bue(i,a)||sq(i,a));return i}});var lq=w((nLe,cq)=>{"use strict";m();T();N();cq.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var fq=w(dq=>{"use strict";m();T();N();var kue=uq(),Mue=lq(),xue=Mue.concat("length","prototype");dq.f=Object.getOwnPropertyNames||function(t){return kue(t,xue)}});var mq=w(pq=>{"use strict";m();T();N();pq.f=Object.getOwnPropertySymbols});var Tq=w((mLe,Nq)=>{"use strict";m();T();N();var que=cE(),Vue=Ni(),jue=fq(),Kue=mq(),Gue=$f(),$ue=Vue([].concat);Nq.exports=que("Reflect","ownKeys")||function(t){var n=jue.f(Gue(t)),r=Kue.f;return r?$ue(n,r(t)):n}});var yq=w((hLe,hq)=>{"use strict";m();T();N();var Eq=yu(),Que=Tq(),Yue=gO(),Jue=NE();hq.exports=function(e,t,n){for(var r=Que(t),i=Jue.f,a=Yue.f,o=0;o{"use strict";m();T();N();var Hue=bs(),zue=fa(),Wue=/#|\.prototype\./,Yf=function(e,t){var n=Zue[Xue(e)];return n===tce?!0:n===ece?!1:zue(t)?Hue(t):!!t},Xue=Yf.normalize=function(e){return String(e).replace(Wue,".").toLowerCase()},Zue=Yf.data={},ece=Yf.NATIVE="N",tce=Yf.POLYFILL="P";Iq.exports=Yf});var kO=w((DLe,_q)=>{"use strict";m();T();N();var gE=Qi(),nce=gO().f,rce=DO(),ice=Yx(),ace=fE(),sce=yq(),oce=gq();_q.exports=function(e,t){var n=e.target,r=e.global,i=e.stat,a,o,c,l,d,p;if(r?o=gE:i?o=gE[n]||ace(n,{}):o=gE[n]&&gE[n].prototype,o)for(c in t){if(d=t[c],e.dontCallGetSet?(p=nce(o,c),l=p&&p.value):l=o[c],a=oce(r?c:n+(i?".":"#")+c,e.forced),!a&&l!==void 0){if(typeof d==typeof l)continue;sce(d,l)}(e.sham||l&&l.sham)&&rce(d,"sham",!0),ice(o,c,d,e)}}});var Jf=w((PLe,vq)=>{"use strict";m();T();N();var MO=Ni(),_E=Set.prototype;vq.exports={Set,add:MO(_E.add),has:MO(_E.has),remove:MO(_E.delete),proto:_E}});var xO=w((CLe,Sq)=>{"use strict";m();T();N();var uce=Jf().has;Sq.exports=function(e){return uce(e),e}});var Dq=w((MLe,Oq)=>{"use strict";m();T();N();var cce=Ni(),lce=dE();Oq.exports=function(e,t,n){try{return cce(lce(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(r){}}});var qO=w((jLe,bq)=>{"use strict";m();T();N();var dce=Dq(),fce=Jf();bq.exports=dce(fce.proto,"size","get")||function(e){return e.size}});var VO=w((QLe,Aq)=>{"use strict";m();T();N();var pce=yc();Aq.exports=function(e,t,n){for(var r=n?e:e.iterator,i=e.next,a,o;!(a=pce(i,r)).done;)if(o=t(a.value),o!==void 0)return o}});var Cq=w((zLe,Lq)=>{"use strict";m();T();N();var Rq=Ni(),mce=VO(),Pq=Jf(),Nce=Pq.Set,Fq=Pq.proto,Tce=Rq(Fq.forEach),wq=Rq(Fq.keys),Ece=wq(new Nce).next;Lq.exports=function(e,t,n){return n?mce({iterator:wq(e),next:Ece},t):Tce(e,t)}});var Uq=w((eCe,Bq)=>{"use strict";m();T();N();Bq.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var jO=w((iCe,jq)=>{"use strict";m();T();N();var kq=dE(),qq=$f(),Mq=yc(),hce=IE(),yce=Uq(),xq="Invalid size",Ice=RangeError,gce=TypeError,_ce=Math.max,Vq=function(e,t){this.set=e,this.size=_ce(t,0),this.has=kq(e.has),this.keys=kq(e.keys)};Vq.prototype={getIterator:function(){return yce(qq(Mq(this.keys,this.set)))},includes:function(e){return Mq(this.has,this.set,e)}};jq.exports=function(e){qq(e);var t=+e.size;if(t!==t)throw new gce(xq);var n=hce(t);if(n<0)throw new Ice(xq);return new Vq(e,n)}});var Gq=w((uCe,Kq)=>{"use strict";m();T();N();var vce=xO(),Sce=qO(),Oce=Cq(),Dce=jO();Kq.exports=function(t){var n=vce(this),r=Dce(t);return Sce(n)>r.size?!1:Oce(n,function(i){if(!r.includes(i))return!1},!0)!==!1}});var KO=w((fCe,Yq)=>{"use strict";m();T();N();var bce=cE(),$q=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},Qq=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};Yq.exports=function(e,t){var n=bce("Set");try{new n()[e]($q(0));try{return new n()[e]($q(-1)),!1}catch(i){if(!t)return!0;try{return new n()[e](Qq(-1/0)),!1}catch(a){var r=new n;return r.add(1),r.add(2),t(r[e](Qq(1/0)))}}}catch(i){return!1}}});var Jq=w(()=>{"use strict";m();T();N();var Ace=kO(),Rce=Gq(),Pce=KO(),Fce=!Pce("isSubsetOf",function(e){return e});Ace({target:"Set",proto:!0,real:!0,forced:Fce},{isSubsetOf:Rce})});var Hq=w(()=>{"use strict";m();T();N();Jq()});var Xq=w((DCe,Wq)=>{"use strict";m();T();N();var wce=yc(),zq=$f(),Lce=dO();Wq.exports=function(e,t,n){var r,i;zq(e);try{if(r=Lce(e,"return"),!r){if(t==="throw")throw n;return n}r=wce(r,e)}catch(a){i=!0,r=a}if(t==="throw")throw n;if(i)throw r;return zq(r),n}});var eV=w((PCe,Zq)=>{"use strict";m();T();N();var Cce=xO(),Bce=Jf().has,Uce=qO(),kce=jO(),Mce=VO(),xce=Xq();Zq.exports=function(t){var n=Cce(this),r=kce(t);if(Uce(n){"use strict";m();T();N();var qce=kO(),Vce=eV(),jce=KO(),Kce=!jce("isSupersetOf",function(e){return!e});qce({target:"Set",proto:!0,real:!0,forced:Kce},{isSupersetOf:Vce})});var nV=w(()=>{"use strict";m();T();N();tV()});var Hf=w(Dn=>{"use strict";m();T();N();Object.defineProperty(Dn,"__esModule",{value:!0});Dn.subtractSet=$ce;Dn.mapToArrayOfValues=Qce;Dn.kindToConvertedTypeString=Yce;Dn.fieldDatasToSimpleFieldDatas=Jce;Dn.isNodeLeaf=Hce;Dn.newEntityInterfaceFederationData=zce;Dn.upsertEntityInterfaceFederationData=Wce;Dn.upsertEntityData=Zce;Dn.updateEntityData=rV;Dn.newFieldAuthorizationData=ele;Dn.newAuthorizationData=tle;Dn.addScopes=GO;Dn.mergeRequiredScopesByAND=OE;Dn.mergeRequiredScopesByOR=$O;Dn.upsertFieldAuthorizationData=iV;Dn.upsertAuthorizationData=ile;Dn.upsertAuthorizationConfiguration=ale;Dn.isObjectNodeKind=sle;Dn.isCompositeOutputNodeKind=ole;Dn.isObjectDefinitionData=ule;Dn.getNodeCoords=cle;var Gt=De(),ti=vr(),vE=Sr(),SE=Ss();Hq();nV();var Gce=Yl();function $ce(e,t){for(let n of e)t.delete(n)}function Qce(e){let t=[];for(let n of e.values())t.push(n);return t}function Yce(e){switch(e){case Gt.Kind.BOOLEAN:return ti.BOOLEAN_SCALAR;case Gt.Kind.ENUM:case Gt.Kind.ENUM_TYPE_DEFINITION:case Gt.Kind.ENUM_TYPE_EXTENSION:return ti.ENUM;case Gt.Kind.ENUM_VALUE_DEFINITION:return ti.ENUM_VALUE;case Gt.Kind.FIELD_DEFINITION:return ti.FIELD;case Gt.Kind.FLOAT:return ti.FLOAT_SCALAR;case Gt.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Gt.Kind.INPUT_OBJECT_TYPE_EXTENSION:return ti.INPUT_OBJECT;case Gt.Kind.INPUT_VALUE_DEFINITION:return ti.INPUT_VALUE;case Gt.Kind.INT:return ti.INT_SCALAR;case Gt.Kind.INTERFACE_TYPE_DEFINITION:case Gt.Kind.INTERFACE_TYPE_EXTENSION:return ti.INTERFACE;case Gt.Kind.NULL:return ti.NULL;case Gt.Kind.OBJECT:case Gt.Kind.OBJECT_TYPE_DEFINITION:case Gt.Kind.OBJECT_TYPE_EXTENSION:return ti.OBJECT;case Gt.Kind.STRING:return ti.STRING_SCALAR;case Gt.Kind.SCALAR_TYPE_DEFINITION:case Gt.Kind.SCALAR_TYPE_EXTENSION:return ti.SCALAR;case Gt.Kind.UNION_TYPE_DEFINITION:case Gt.Kind.UNION_TYPE_EXTENSION:return ti.UNION;default:return e}}function Jce(e){let t=[];for(let{name:n,namedTypeName:r}of e)t.push({name:n,namedTypeName:r});return t}function Hce(e){if(!e)return!0;switch(e){case Gt.Kind.OBJECT_TYPE_DEFINITION:case Gt.Kind.INTERFACE_TYPE_DEFINITION:case Gt.Kind.UNION_TYPE_DEFINITION:return!1;default:return!0}}function zce(e,t){return{concreteTypeNames:new Set(e.concreteTypeNames),fieldDatasBySubgraphName:new Map([[t,e.fieldDatas]]),interfaceFieldNames:new Set(e.interfaceFieldNames),interfaceObjectFieldNames:new Set(e.interfaceObjectFieldNames),interfaceObjectSubgraphNames:new Set(e.isInterfaceObject?[t]:[]),subgraphDataByTypeName:new Map([[t,e]]),typeName:e.typeName}}function Wce(e,t,n){(0,vE.addIterableValuesToSet)(t.concreteTypeNames,e.concreteTypeNames),e.subgraphDataByTypeName.set(n,t),e.fieldDatasBySubgraphName.set(n,t.fieldDatas),(0,vE.addIterableValuesToSet)(t.interfaceFieldNames,e.interfaceFieldNames),(0,vE.addIterableValuesToSet)(t.interfaceObjectFieldNames,e.interfaceObjectFieldNames),t.isInterfaceObject&&e.interfaceObjectSubgraphNames.add(n)}function Xce({keyFieldSetDataByFieldSet:e,subgraphName:t,typeName:n}){let r=new Map([[t,e]]),i=new Map;for(let[a,{documentNode:o,isUnresolvable:c}]of e)c||i.set(a,o);return{keyFieldSetDatasBySubgraphName:r,documentNodeByKeyFieldSet:i,keyFieldSets:new Set,subgraphNames:new Set([t]),typeName:n}}function Zce({entityDataByTypeName:e,keyFieldSetDataByFieldSet:t,subgraphName:n,typeName:r}){let i=e.get(r);i?rV({entityData:i,keyFieldSetDataByFieldSet:t,subgraphName:n}):e.set(r,Xce({keyFieldSetDataByFieldSet:t,subgraphName:n,typeName:r}))}function rV({entityData:e,keyFieldSetDataByFieldSet:t,subgraphName:n}){e.subgraphNames.add(n);let r=e.keyFieldSetDatasBySubgraphName.get(n);if(!r){e.keyFieldSetDatasBySubgraphName.set(n,t);for(let[i,{documentNode:a,isUnresolvable:o}]of t)o||e.documentNodeByKeyFieldSet.set(i,a);return}for(let[i,a]of t){a.isUnresolvable||e.documentNodeByKeyFieldSet.set(i,a.documentNode);let o=r.get(i);if(o){o.isUnresolvable||(o.isUnresolvable=a.isUnresolvable);continue}r.set(i,a)}}function ele(e){return{fieldName:e,inheritedData:{requiredScopes:[],requiredScopesByOR:[],requiresAuthentication:!1},originalData:{requiredScopes:[],requiresAuthentication:!1}}}function tle(e){return{fieldAuthDataByFieldName:new Map,requiredScopes:[],requiredScopesByOR:[],requiresAuthentication:!1,typeName:e}}function GO(e,t){for(let n=e.length-1;n>-1;n--){if(e[n].isSubsetOf(t))return;e[n].isSupersetOf(t)&&e.splice(n,1)}e.push(t)}function OE(e,t){if(e.length<1||t.length<1){for(let r of t)e.push(new Set(r));return e}let n=[];for(let r of t)for(let i of e){let a=(0,vE.addSets)(r,i);GO(n,a)}return n}function $O(e,t){for(let n of t)GO(e,n);return e.length<=SE.MAX_OR_SCOPES}function iV(e,t){var i,a;let n=t.fieldName,r=e.get(n);return r?((i=r.inheritedData).requiresAuthentication||(i.requiresAuthentication=t.inheritedData.requiresAuthentication),(a=r.originalData).requiresAuthentication||(a.requiresAuthentication=t.originalData.requiresAuthentication),!$O(r.inheritedData.requiredScopesByOR,t.inheritedData.requiredScopes)||r.inheritedData.requiredScopes.length*t.inheritedData.requiredScopes.length>SE.MAX_OR_SCOPES||r.originalData.requiredScopes.length*t.originalData.requiredScopes.length>SE.MAX_OR_SCOPES?!1:(r.inheritedData.requiredScopes=OE(r.inheritedData.requiredScopes,t.inheritedData.requiredScopes),r.originalData.requiredScopes=OE(r.originalData.requiredScopes,t.originalData.requiredScopes),!0)):(e.set(n,aV(t)),!0)}function nle(e){let t=new Map;for(let[n,r]of e)t.set(n,aV(r));return t}function aV(e){return{fieldName:e.fieldName,inheritedData:{requiredScopes:[...e.inheritedData.requiredScopes],requiredScopesByOR:[...e.inheritedData.requiredScopes],requiresAuthentication:e.inheritedData.requiresAuthentication},originalData:{requiredScopes:[...e.originalData.requiredScopes],requiresAuthentication:e.originalData.requiresAuthentication}}}function rle(e){return{fieldAuthDataByFieldName:nle(e.fieldAuthDataByFieldName),requiredScopes:[...e.requiredScopes],requiredScopesByOR:[...e.requiredScopes],requiresAuthentication:e.requiresAuthentication,typeName:e.typeName}}function ile(e,t,n){let r=e.get(t.typeName);if(!r){e.set(t.typeName,rle(t));return}r.requiresAuthentication||(r.requiresAuthentication=t.requiresAuthentication),!$O(r.requiredScopesByOR,t.requiredScopes)||r.requiredScopes.length*t.requiredScopes.length>SE.MAX_OR_SCOPES?n.add(t.typeName):r.requiredScopes=OE(r.requiredScopes,t.requiredScopes);for(let[i,a]of t.fieldAuthDataByFieldName)iV(r.fieldAuthDataByFieldName,a)||n.add(`${t.typeName}.${i}`)}function ale(e,t){let n=t.typeName;for(let[r,i]of t.fieldAuthDataByFieldName){let a=`${n}.${r}`,o=e.get(a);o?(o.requiresAuthentication=i.inheritedData.requiresAuthentication,o.requiredScopes=i.inheritedData.requiredScopes.map(c=>[...c]),o.requiredScopesByOR=i.inheritedData.requiredScopesByOR.map(c=>[...c])):e.set(a,{argumentNames:[],typeName:n,fieldName:r,requiresAuthentication:i.inheritedData.requiresAuthentication,requiredScopes:i.inheritedData.requiredScopes.map(c=>[...c]),requiredScopesByOR:i.inheritedData.requiredScopesByOR.map(c=>[...c])})}}function sle(e){return e===Gt.Kind.OBJECT_TYPE_DEFINITION||e===Gt.Kind.OBJECT_TYPE_EXTENSION}function ole(e){return Gce.COMPOSITE_OUTPUT_NODE_KINDS.has(e)}function ule(e){return e?e.kind===Gt.Kind.OBJECT_TYPE_DEFINITION:!1}function cle(e){switch(e.kind){case Gt.Kind.ARGUMENT:case Gt.Kind.FIELD_DEFINITION:case Gt.Kind.INPUT_VALUE_DEFINITION:case Gt.Kind.ENUM_VALUE_DEFINITION:return e.federatedCoords;default:return e.name}}});var QO=w($e=>{"use strict";m();T();N();Object.defineProperty($e,"__esModule",{value:!0});$e.TAG_DEFINITION_DATA=$e.SUBSCRIPTION_FILTER_DEFINITION_DATA=$e.SHAREABLE_DEFINITION_DATA=$e.SPECIFIED_BY_DEFINITION_DATA=$e.SEMANTIC_NON_NULL_DATA=$e.REQUIRES_SCOPES_DEFINITION_DATA=$e.REQUIRE_FETCH_REASONS_DEFINITION_DATA=$e.REDIS_SUBSCRIBE_DEFINITION_DATA=$e.REDIS_PUBLISH_DEFINITION_DATA=$e.REQUIRES_DEFINITION_DATA=$e.PROVIDES_DEFINITION_DATA=$e.LINK_DEFINITION_DATA=$e.KEY_DEFINITION_DATA=$e.OVERRIDE_DEFINITION_DATA=$e.ONE_OF_DEFINITION_DATA=$e.NATS_SUBSCRIBE_DEFINITION_DATA=$e.NATS_REQUEST_DEFINITION_DATA=$e.NATS_PUBLISH_DEFINITION_DATA=$e.KAFKA_SUBSCRIBE_DEFINITION_DATA=$e.KAFKA_PUBLISH_DEFINITION_DATA=$e.INTERFACE_OBJECT_DEFINITION_DATA=$e.INACCESSIBLE_DEFINITION_DATA=$e.EXTERNAL_DEFINITION_DATA=$e.EXTENDS_DEFINITION_DATA=$e.DEPRECATED_DEFINITION_DATA=$e.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA=$e.CONFIGURE_DESCRIPTION_DEFINITION_DATA=$e.COMPOSE_DIRECTIVE_DEFINITION_DATA=$e.AUTHENTICATED_DEFINITION_DATA=void 0;var Xe=Ss(),Yi=Hr(),$t=De(),q=vr();$e.AUTHENTICATED_DEFINITION_DATA={argumentTypeNodeByName:new Map([]),isRepeatable:!1,locations:new Set([q.ENUM_UPPER,q.FIELD_DEFINITION_UPPER,q.INTERFACE_UPPER,q.OBJECT_UPPER,q.SCALAR_UPPER]),name:q.AUTHENTICATED,node:Xe.AUTHENTICATED_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};$e.COMPOSE_DIRECTIVE_DEFINITION_DATA={argumentTypeNodeByName:new Map([[q.NAME,{name:q.NAME,typeNode:Xe.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!0,locations:new Set([q.SCHEMA_UPPER]),name:q.COMPOSE_DIRECTIVE,node:Xe.COMPOSE_DIRECTIVE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.NAME])};$e.CONFIGURE_DESCRIPTION_DEFINITION_DATA={argumentTypeNodeByName:new Map([[q.PROPAGATE,{name:q.PROPAGATE,typeNode:{kind:$t.Kind.NON_NULL_TYPE,type:(0,Yi.stringToNamedTypeNode)(q.BOOLEAN_SCALAR)},defaultValue:{kind:$t.Kind.BOOLEAN,value:!0}}],[q.DESCRIPTION_OVERRIDE,{name:q.DESCRIPTION_OVERRIDE,typeNode:(0,Yi.stringToNamedTypeNode)(q.STRING_SCALAR)}]]),isRepeatable:!1,locations:new Set([q.ARGUMENT_DEFINITION_UPPER,q.ENUM_UPPER,q.ENUM_VALUE_UPPER,q.FIELD_DEFINITION_UPPER,q.INTERFACE_UPPER,q.INPUT_OBJECT_UPPER,q.INPUT_FIELD_DEFINITION_UPPER,q.OBJECT_UPPER,q.SCALAR_UPPER,q.SCHEMA_UPPER,q.UNION_UPPER]),name:q.CONFIGURE_DESCRIPTION,node:Xe.CONFIGURE_DESCRIPTION_DEFINITION,optionalArgumentNames:new Set([q.PROPAGATE,q.DESCRIPTION_OVERRIDE]),requiredArgumentNames:new Set};$e.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA={argumentTypeNodeByName:new Map([[q.PROPAGATE,{name:q.PROPAGATE,typeNode:{kind:$t.Kind.NON_NULL_TYPE,type:(0,Yi.stringToNamedTypeNode)(q.BOOLEAN_SCALAR)},defaultValue:{kind:$t.Kind.BOOLEAN,value:!0}}]]),isRepeatable:!1,locations:new Set([q.ENUM_UPPER,q.INPUT_OBJECT_UPPER,q.INTERFACE_UPPER,q.OBJECT_UPPER]),name:q.CONFIGURE_CHILD_DESCRIPTIONS,node:Xe.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION,optionalArgumentNames:new Set([q.PROPAGATE]),requiredArgumentNames:new Set};$e.DEPRECATED_DEFINITION_DATA={argumentTypeNodeByName:new Map([[q.REASON,{name:q.REASON,typeNode:(0,Yi.stringToNamedTypeNode)(q.STRING_SCALAR),defaultValue:{kind:$t.Kind.STRING,value:$t.DEFAULT_DEPRECATION_REASON}}]]),isRepeatable:!1,locations:new Set([q.ARGUMENT_DEFINITION_UPPER,q.ENUM_VALUE_UPPER,q.FIELD_DEFINITION_UPPER,q.INPUT_FIELD_DEFINITION_UPPER]),name:q.DEPRECATED,node:Xe.DEPRECATED_DEFINITION,optionalArgumentNames:new Set([q.REASON]),requiredArgumentNames:new Set};$e.EXTENDS_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!1,locations:new Set([q.INTERFACE_UPPER,q.OBJECT_UPPER]),name:q.EXTENDS,node:Xe.EXTENDS_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};$e.EXTERNAL_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER,q.OBJECT_UPPER]),name:q.EXTERNAL,node:Xe.EXTERNAL_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};$e.INACCESSIBLE_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!1,locations:new Set([q.ARGUMENT_DEFINITION_UPPER,q.ENUM_UPPER,q.ENUM_VALUE_UPPER,q.FIELD_DEFINITION_UPPER,q.INPUT_FIELD_DEFINITION_UPPER,q.INPUT_OBJECT_UPPER,q.INTERFACE_UPPER,q.OBJECT_UPPER,q.SCALAR_UPPER,q.UNION_UPPER]),name:q.INACCESSIBLE,node:Xe.INACCESSIBLE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};$e.INTERFACE_OBJECT_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!1,locations:new Set([q.OBJECT_UPPER]),name:q.INTERFACE_OBJECT,node:Xe.INTERFACE_OBJECT_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};$e.KAFKA_PUBLISH_DEFINITION_DATA={argumentTypeNodeByName:new Map([[q.TOPIC,{name:q.TOPIC,typeNode:Xe.REQUIRED_STRING_TYPE_NODE}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:Xe.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:$t.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_KAFKA_PUBLISH,node:Xe.EDFS_KAFKA_PUBLISH_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.TOPIC])};$e.KAFKA_SUBSCRIBE_DEFINITION_DATA={argumentTypeNodeByName:new Map([[q.TOPICS,{name:q.TOPICS,typeNode:{kind:$t.Kind.NON_NULL_TYPE,type:{kind:$t.Kind.LIST_TYPE,type:Xe.REQUIRED_STRING_TYPE_NODE}}}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:Xe.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:$t.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_KAFKA_SUBSCRIBE,node:Xe.EDFS_KAFKA_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.TOPICS])};$e.NATS_PUBLISH_DEFINITION_DATA={argumentTypeNodeByName:new Map([[q.SUBJECT,{name:q.SUBJECT,typeNode:Xe.REQUIRED_STRING_TYPE_NODE}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:Xe.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:$t.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_NATS_PUBLISH,node:Xe.EDFS_NATS_PUBLISH_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.SUBJECT])};$e.NATS_REQUEST_DEFINITION_DATA={argumentTypeNodeByName:new Map([[q.SUBJECT,{name:q.SUBJECT,typeNode:Xe.REQUIRED_STRING_TYPE_NODE}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:Xe.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:$t.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_NATS_REQUEST,node:Xe.EDFS_NATS_REQUEST_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.SUBJECT])};$e.NATS_SUBSCRIBE_DEFINITION_DATA={argumentTypeNodeByName:new Map([[q.SUBJECTS,{name:q.SUBJECTS,typeNode:{kind:$t.Kind.NON_NULL_TYPE,type:{kind:$t.Kind.LIST_TYPE,type:Xe.REQUIRED_STRING_TYPE_NODE}}}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:Xe.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:$t.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}],[q.STREAM_CONFIGURATION,{name:q.STREAM_CONFIGURATION,typeNode:(0,Yi.stringToNamedTypeNode)(q.EDFS_NATS_STREAM_CONFIGURATION)}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_NATS_SUBSCRIBE,node:Xe.EDFS_NATS_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.SUBJECTS])};$e.ONE_OF_DEFINITION_DATA={argumentTypeNodeByName:new Map([]),isRepeatable:!1,locations:new Set([q.INPUT_OBJECT_UPPER]),name:q.ONE_OF,node:Xe.ONE_OF_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};$e.OVERRIDE_DEFINITION_DATA={argumentTypeNodeByName:new Map([[q.FROM,{name:q.FROM,typeNode:Xe.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.OVERRIDE,node:Xe.OVERRIDE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.FROM])};$e.KEY_DEFINITION_DATA={argumentTypeNodeByName:new Map([[q.FIELDS,{name:q.FIELDS,typeNode:Xe.REQUIRED_FIELDSET_TYPE_NODE}],[q.RESOLVABLE,{name:q.RESOLVABLE,typeNode:(0,Yi.stringToNamedTypeNode)(q.BOOLEAN_SCALAR),defaultValue:{kind:$t.Kind.BOOLEAN,value:!0}}]]),isRepeatable:!0,locations:new Set([q.INTERFACE_UPPER,q.OBJECT_UPPER]),name:q.KEY,node:Xe.KEY_DEFINITION,optionalArgumentNames:new Set([q.RESOLVABLE]),requiredArgumentNames:new Set([q.FIELDS])};$e.LINK_DEFINITION_DATA={argumentTypeNodeByName:new Map([[q.URL_LOWER,{name:q.URL_LOWER,typeNode:Xe.REQUIRED_STRING_TYPE_NODE}],[q.AS,{name:q.AS,typeNode:(0,Yi.stringToNamedTypeNode)(q.STRING_SCALAR)}],[q.FOR,{name:q.FOR,typeNode:(0,Yi.stringToNamedTypeNode)(q.LINK_PURPOSE)}],[q.IMPORT,{name:q.IMPORT,typeNode:{kind:$t.Kind.LIST_TYPE,type:(0,Yi.stringToNamedTypeNode)(q.LINK_IMPORT)}}]]),isRepeatable:!0,locations:new Set([q.SCHEMA_UPPER]),name:q.LINK,node:Xe.LINK_DEFINITION,optionalArgumentNames:new Set([q.AS,q.FOR,q.IMPORT]),requiredArgumentNames:new Set([q.URL_LOWER])};$e.PROVIDES_DEFINITION_DATA={argumentTypeNodeByName:new Map([[q.FIELDS,{name:q.FIELDS,typeNode:Xe.REQUIRED_FIELDSET_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.PROVIDES,node:Xe.PROVIDES_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.FIELDS])};$e.REQUIRES_DEFINITION_DATA={argumentTypeNodeByName:new Map([[q.FIELDS,{name:q.FIELDS,typeNode:Xe.REQUIRED_FIELDSET_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.REQUIRES,node:Xe.REQUIRES_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.FIELDS])};$e.REDIS_PUBLISH_DEFINITION_DATA={argumentTypeNodeByName:new Map([[q.CHANNEL,{name:q.CHANNEL,typeNode:Xe.REQUIRED_STRING_TYPE_NODE}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:Xe.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:$t.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_REDIS_PUBLISH,node:Xe.EDFS_REDIS_PUBLISH_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.CHANNEL])};$e.REDIS_SUBSCRIBE_DEFINITION_DATA={argumentTypeNodeByName:new Map([[q.CHANNELS,{name:q.CHANNELS,typeNode:{kind:$t.Kind.NON_NULL_TYPE,type:{kind:$t.Kind.LIST_TYPE,type:Xe.REQUIRED_STRING_TYPE_NODE}}}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:Xe.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:$t.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_REDIS_SUBSCRIBE,node:Xe.EDFS_REDIS_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.CHANNELS])};$e.REQUIRE_FETCH_REASONS_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!0,locations:new Set([q.FIELD_DEFINITION_UPPER,q.INTERFACE_UPPER,q.OBJECT_UPPER]),name:q.REQUIRE_FETCH_REASONS,node:Xe.REQUIRE_FETCH_REASONS_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};$e.REQUIRES_SCOPES_DEFINITION_DATA={argumentTypeNodeByName:new Map([[q.SCOPES,{name:q.SCOPES,typeNode:{kind:$t.Kind.NON_NULL_TYPE,type:{kind:$t.Kind.LIST_TYPE,type:{kind:$t.Kind.NON_NULL_TYPE,type:{kind:$t.Kind.LIST_TYPE,type:{kind:$t.Kind.NON_NULL_TYPE,type:(0,Yi.stringToNamedTypeNode)(q.SCOPE_SCALAR)}}}}}}]]),isRepeatable:!1,locations:new Set([q.ENUM_UPPER,q.FIELD_DEFINITION_UPPER,q.INTERFACE_UPPER,q.OBJECT_UPPER,q.SCALAR_UPPER]),name:q.REQUIRES_SCOPES,node:Xe.REQUIRES_SCOPES_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.SCOPES])};$e.SEMANTIC_NON_NULL_DATA={argumentTypeNodeByName:new Map([[q.LEVELS,{name:q.LEVELS,typeNode:{kind:$t.Kind.NON_NULL_TYPE,type:{kind:$t.Kind.LIST_TYPE,type:{kind:$t.Kind.NON_NULL_TYPE,type:(0,Yi.stringToNamedTypeNode)(q.INT_SCALAR)}}},defaultValue:{kind:$t.Kind.LIST,values:[{kind:$t.Kind.INT,value:"0"}]}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.SEMANTIC_NON_NULL,node:Xe.SEMANTIC_NON_NULL_DEFINITION,optionalArgumentNames:new Set([q.LEVELS]),requiredArgumentNames:new Set};$e.SPECIFIED_BY_DEFINITION_DATA={argumentTypeNodeByName:new Map([[q.URL_LOWER,{name:q.URL_LOWER,typeNode:Xe.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([q.SCALAR_UPPER]),name:q.SPECIFIED_BY,node:Xe.SPECIFIED_BY_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.URL_LOWER])};$e.SHAREABLE_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!0,locations:new Set([q.FIELD_DEFINITION_UPPER,q.OBJECT_UPPER]),name:q.SHAREABLE,node:Xe.SHAREABLE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};$e.SUBSCRIPTION_FILTER_DEFINITION_DATA={argumentTypeNodeByName:new Map([[q.CONDITION,{name:q.CONDITION,typeNode:{kind:$t.Kind.NON_NULL_TYPE,type:(0,Yi.stringToNamedTypeNode)(q.SUBSCRIPTION_FILTER_CONDITION)}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.SUBSCRIPTION_FILTER,node:Xe.SUBSCRIPTION_FILTER_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.CONDITION])};$e.TAG_DEFINITION_DATA={argumentTypeNodeByName:new Map([[q.NAME,{name:q.NAME,typeNode:Xe.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!0,locations:new Set([q.ARGUMENT_DEFINITION_UPPER,q.ENUM_UPPER,q.ENUM_VALUE_UPPER,q.FIELD_DEFINITION_UPPER,q.INPUT_FIELD_DEFINITION_UPPER,q.INPUT_OBJECT_UPPER,q.INTERFACE_UPPER,q.OBJECT_UPPER,q.SCALAR_UPPER,q.UNION_UPPER]),name:q.TAG,node:Xe.TAG_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.NAME])}});var zf=w(Na=>{"use strict";m();T();N();Object.defineProperty(Na,"__esModule",{value:!0});Na.newFieldSetData=lle;Na.extractFieldSetValue=dle;Na.getNormalizedFieldSet=fle;Na.getInitialFieldCoordsPath=ple;Na.validateKeyFieldSets=mle;Na.getConditionalFieldSetDirectiveName=Nle;Na.isNodeQuery=Tle;Na.validateArgumentTemplateReferences=Ele;Na.initializeDirectiveDefinitionDatas=hle;var nr=De(),sV=Hr(),Rr=Mi(),oV=Ss(),YO=du(),an=QO(),At=vr(),Iu=Sr();function lle(){return{provides:new Map,requires:new Map}}function dle(e,t,n){if(!n||n.length>1)return;let r=n[0].arguments;if(!r||r.length!==1)return;let i=r[0];i.name.value!==At.FIELDS||i.value.kind!==nr.Kind.STRING||t.set(e,i.value.value)}function fle(e){return(0,nr.print)((0,sV.lexicographicallySortDocumentNode)(e)).replaceAll(/\s+/g," ").slice(2,-2)}function ple(e,t){return e?[t]:[]}function mle(e,t,n){let r=e.entityInterfaceDataByTypeName.get(t.name),i=t.name,a=[],o=[],c=r?void 0:e.internalGraph.addEntityDataNode(t.name),l=e.internalGraph.addOrUpdateNode(t.name),d=0;for(let[p,{documentNode:y,isUnresolvable:I,rawFieldSet:v}]of n){r&&(r.resolvable||(r.resolvable=!I)),d+=1;let F=[],k=[t],K=[],J=[],se=new Set,ie=-1,Te=!0,de="";if((0,nr.visit)(y,{Argument:{enter(Re){return F.push((0,Rr.unexpectedArgumentErrorMessage)(v,`${k[ie].name}.${de}`,Re.name.value)),nr.BREAK}},Field:{enter(Re){let xe=k[ie],tt=xe.name;if(Te){let An=`${tt}.${de}`,Qt=xe.fieldDataByName.get(de);if(!Qt)return F.push((0,Rr.undefinedFieldInFieldSetErrorMessage)(v,An,de)),nr.BREAK;let mn=(0,YO.getTypeNodeNamedTypeName)(Qt.node.type),Pr=e.parentDefinitionDataByTypeName.get(mn),Fr=Pr?Pr.kind:nr.Kind.SCALAR_TYPE_DEFINITION;return F.push((0,Rr.invalidSelectionSetErrorMessage)(v,[An],mn,(0,Iu.kindToNodeType)(Fr))),nr.BREAK}let ee=Re.name.value,Se=`${tt}.${ee}`;de=ee;let _t=xe.fieldDataByName.get(ee);if(!_t)return F.push((0,Rr.undefinedFieldInFieldSetErrorMessage)(v,tt,ee)),nr.BREAK;if(_t.argumentDataByName.size)return F.push((0,Rr.argumentsInKeyFieldSetErrorMessage)(v,Se)),nr.BREAK;if(K[ie].has(ee))return F.push((0,Rr.duplicateFieldInFieldSetErrorMessage)(v,Se)),nr.BREAK;(0,Iu.getValueOrDefault)((0,Iu.getValueOrDefault)(e.keyFieldSetsByEntityTypeNameByFieldCoords,Se,()=>new Map),i,()=>new Set).add(p),J.push(ee),_t.isShareableBySubgraphName.set(e.subgraphName,!0),K[ie].add(ee),(0,Iu.getValueOrDefault)(e.keyFieldNamesByParentTypeName,tt,()=>new Set).add(ee);let en=(0,YO.getTypeNodeNamedTypeName)(_t.node.type);if(oV.BASE_SCALARS.has(en)){se.add(J.join(At.PERIOD)),J.pop();return}let tn=e.parentDefinitionDataByTypeName.get(en);if(!tn)return F.push((0,Rr.unknownTypeInFieldSetErrorMessage)(v,Se,en)),nr.BREAK;if(tn.kind===nr.Kind.OBJECT_TYPE_DEFINITION){Te=!0,k.push(tn);return}if((0,sV.isKindAbstract)(tn.kind))return F.push((0,Rr.abstractTypeInKeyFieldSetErrorMessage)(v,Se,en,(0,Iu.kindToNodeType)(tn.kind))),nr.BREAK;se.add(J.join(At.PERIOD)),J.pop()}},InlineFragment:{enter(){return F.push(Rr.inlineFragmentInFieldSetErrorMessage),nr.BREAK}},SelectionSet:{enter(){if(!Te){let Re=k[ie],tt=`${Re.name}.${de}`,ee=Re.fieldDataByName.get(de);if(!ee)return F.push((0,Rr.undefinedFieldInFieldSetErrorMessage)(v,tt,de)),nr.BREAK;let Se=(0,YO.getTypeNodeNamedTypeName)(ee.node.type),_t=e.parentDefinitionDataByTypeName.get(Se),en=_t?_t.kind:nr.Kind.SCALAR_TYPE_DEFINITION;return F.push((0,Rr.invalidSelectionSetDefinitionErrorMessage)(v,[tt],Se,(0,Iu.kindToNodeType)(en))),nr.BREAK}if(ie+=1,Te=!1,ie<0||ie>=k.length)return F.push((0,Rr.unparsableFieldSetSelectionErrorMessage)(v,de)),nr.BREAK;K.push(new Set)},leave(){if(Te){let xe=k[ie].name,tt=k[ie+1],ee=`${xe}.${de}`;F.push((0,Rr.invalidSelectionSetErrorMessage)(v,[ee],tt.name,(0,Iu.kindToNodeType)(tt.kind))),Te=!1}ie-=1,k.pop(),K.pop()}}}),F.length>0){e.errors.push((0,Rr.invalidDirectiveError)(At.KEY,i,(0,Iu.numberToOrdinal)(d),F));continue}a.push(x({fieldName:"",selectionSet:p},I?{disableEntityResolver:!0}:{})),l.satisfiedFieldSets.add(p),!I&&(c==null||c.addTargetSubgraphByFieldSet(p,e.subgraphName),o.push(se))}if(a.length>0)return a}function Nle(e){return e?At.PROVIDES:At.REQUIRES}function Tle(e,t){return e===At.QUERY||t===nr.OperationTypeNode.QUERY}function Ele(e,t,n){let r=e.matchAll(oV.EDFS_ARGS_REGEXP),i=new Set,a=new Set;for(let o of r){if(o.length<2){a.add(o[0]);continue}t.has(o[1])||i.add(o[1])}for(let o of i)n.push((0,Rr.undefinedEventSubjectsArgumentErrorMessage)(o));for(let o of a)n.push((0,Rr.invalidEventSubjectsArgumentErrorMessage)(o))}function hle(){return new Map([[At.AUTHENTICATED,an.AUTHENTICATED_DEFINITION_DATA],[At.COMPOSE_DIRECTIVE,an.COMPOSE_DIRECTIVE_DEFINITION_DATA],[At.CONFIGURE_DESCRIPTION,an.CONFIGURE_DESCRIPTION_DEFINITION_DATA],[At.CONFIGURE_CHILD_DESCRIPTIONS,an.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA],[At.DEPRECATED,an.DEPRECATED_DEFINITION_DATA],[At.EDFS_KAFKA_PUBLISH,an.KAFKA_PUBLISH_DEFINITION_DATA],[At.EDFS_KAFKA_SUBSCRIBE,an.KAFKA_SUBSCRIBE_DEFINITION_DATA],[At.EDFS_NATS_PUBLISH,an.NATS_PUBLISH_DEFINITION_DATA],[At.EDFS_NATS_REQUEST,an.NATS_REQUEST_DEFINITION_DATA],[At.EDFS_NATS_SUBSCRIBE,an.NATS_SUBSCRIBE_DEFINITION_DATA],[At.EDFS_REDIS_PUBLISH,an.REDIS_PUBLISH_DEFINITION_DATA],[At.EDFS_REDIS_SUBSCRIBE,an.REDIS_SUBSCRIBE_DEFINITION_DATA],[At.EXTENDS,an.EXTENDS_DEFINITION_DATA],[At.EXTERNAL,an.EXTERNAL_DEFINITION_DATA],[At.INACCESSIBLE,an.INACCESSIBLE_DEFINITION_DATA],[At.INTERFACE_OBJECT,an.INTERFACE_OBJECT_DEFINITION_DATA],[At.KEY,an.KEY_DEFINITION_DATA],[At.LINK,an.LINK_DEFINITION_DATA],[At.ONE_OF,an.ONE_OF_DEFINITION_DATA],[At.OVERRIDE,an.OVERRIDE_DEFINITION_DATA],[At.PROVIDES,an.PROVIDES_DEFINITION_DATA],[At.REQUIRE_FETCH_REASONS,an.REQUIRE_FETCH_REASONS_DEFINITION_DATA],[At.REQUIRES,an.REQUIRES_DEFINITION_DATA],[At.REQUIRES_SCOPES,an.REQUIRES_SCOPES_DEFINITION_DATA],[At.SEMANTIC_NON_NULL,an.SEMANTIC_NON_NULL_DATA],[At.SHAREABLE,an.SHAREABLE_DEFINITION_DATA],[At.SPECIFIED_BY,an.SPECIFIED_BY_DEFINITION_DATA],[At.SUBSCRIPTION_FILTER,an.SUBSCRIPTION_FILTER_DEFINITION_DATA],[At.TAG,an.TAG_DEFINITION_DATA]])}});var HO=w(JO=>{"use strict";m();T();N();Object.defineProperty(JO,"__esModule",{value:!0});JO.recordSubgraphName=yle;function yle(e,t,n){if(!t.has(e)){t.add(e);return}n.add(e)}});var WO=w(DE=>{"use strict";m();T();N();Object.defineProperty(DE,"__esModule",{value:!0});DE.Warning=void 0;var zO=class extends Error{constructor(n){super(n.message);_(this,"subgraph");this.name="Warning",this.subgraph=n.subgraph}};DE.Warning=zO});var Wf=w(Ti=>{"use strict";m();T();N();Object.defineProperty(Ti,"__esModule",{value:!0});Ti.invalidOverrideTargetSubgraphNameWarning=Ile;Ti.externalInterfaceFieldsWarning=gle;Ti.nonExternalConditionalFieldWarning=_le;Ti.unimplementedInterfaceOutputTypeWarning=vle;Ti.invalidExternalFieldWarning=Sle;Ti.requiresDefinedOnNonEntityFieldWarning=Ole;Ti.consumerInactiveThresholdInvalidValueWarning=Dle;Ti.externalEntityExtensionKeyFieldWarning=ble;Ti.fieldAlreadyProvidedWarning=Ale;Ti.singleSubgraphInputFieldOneOfWarning=Rle;Ti.singleFederatedInputFieldOneOfWarning=Ple;var Ta=WO(),XO=vr();function Ile(e,t,n,r){return new Ta.Warning({message:`The Object type "${t}" defines the directive "@override(from: "${e}")" on the following field`+(n.length>1?"s":"")+': "'+n.join(XO.QUOTATION_JOIN)+`". The required "from" argument of type "String!" should be provided with an existing subgraph name. However, a subgraph by the name of "${e}" does not exist. If this subgraph has been recently deleted, remember to clean up unused "@override" directives that reference this subgraph.`,subgraph:{name:r}})}function bE(e){return`The subgraph "${e}" is currently a "version one" subgraph, but if it were updated to "version two" in its current state, composition would be unsuccessful due to the following warning that would instead propagate as an error: @@ -445,16 +445,16 @@ The following field coordinates that form part of that field set are declared "@ "`+n.join(XO.QUOTATION_JOIN)+`" Please note fields that form part of entity extension "@key" field sets are always provided in that subgraph. Any such "@external" declarations are unnecessary relics of Federation Version 1 syntax and are effectively ignored.`,subgraph:{name:r}})}function Ale(e,t,n,r){return new Ta.Warning({message:bE(r)+`The field "${e}" is unconditionally provided by subgraph "${r}" and should not form part of any "@${t}" field set. However, "${e}" forms part of the "@${t}" field set defined "${n}". -Although "${e}" is declared "@external", it is part of a "@key" directive on an extension type. Such fields are only declared "@external" for legacy syntactical reasons and are not internally considered "@external".`,subgraph:{name:r}})}function Rle({fieldName:e,subgraphName:t,typeName:n}){return new Ta.Warning({message:`The directive "@oneOf" is defined on Input Object "${n}", but only one optional Input field, "${e}", is defined. Consider removing "@oneOf" and changing "${e}" to a required type instead.`,subgraph:{name:t}})}function Ple({fieldName:e,typeName:t}){return new Ta.Warning({message:`The directive "@oneOf" is defined on Input Object "${t}", but only one optional Input field, "${e}", is propagated to the federated graph. Consider removing "@oneOf", changing "${e}" to a required type, and removing any other remaining optional Input fields instead.`,subgraph:{name:""}})}});var eD=w(RE=>{"use strict";m();T();N();Object.defineProperty(RE,"__esModule",{value:!0});RE.upsertDirectiveSchemaAndEntityDefinitions=Lle;RE.upsertParentsAndChildren=Cle;var jn=De(),gu=xi(),gc=Ss(),AE=Hf(),Wl=Hr(),ZO=zf(),Fle=Yl(),zl=Sl(),Xf=du(),wle=Wf(),fr=vr(),pr=Sr();function Lle(e,t){(0,jn.visit)(t,{Directive:{enter(n){let r=n.name.value;if(Fle.EVENT_DIRECTIVE_NAMES.has(r)&&e.edfsDirectiveReferences.add(r),gc.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(r))return e.isSubgraphVersionTwo=!0,!1;if(gc.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(r))return!1;switch(r){case fr.SUBSCRIPTION_FILTER:{e.directiveDefinitionByDirectiveName.set(fr.SUBSCRIPTION_FILTER,gc.SUBSCRIPTION_FILTER_DEFINITION);break}case fr.CONFIGURE_DESCRIPTION:{e.directiveDefinitionByDirectiveName.set(fr.CONFIGURE_DESCRIPTION,gc.CONFIGURE_DESCRIPTION_DEFINITION);break}case fr.CONFIGURE_CHILD_DESCRIPTIONS:{e.directiveDefinitionByDirectiveName.set(fr.CONFIGURE_CHILD_DESCRIPTIONS,gc.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION);break}}e.referencedDirectiveNames.add(r)}},DirectiveDefinition:{enter(n){return e.addDirectiveDefinitionDataByNode(n)&&e.customDirectiveDefinitions.set(n.name.value,n),!1}},InterfaceTypeDefinition:{enter(n){let r=n.name.value;if(e.internalGraph.addOrUpdateNode(r,{isAbstract:!0}),!(0,Wl.isObjectLikeNodeEntity)(n))return;let i=(0,pr.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,AE.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:r}),(0,pr.getValueOrDefault)(e.entityInterfaceDataByTypeName,r,()=>({concreteTypeNames:new Set,fieldDatas:[],interfaceFieldNames:new Set,interfaceObjectFieldNames:new Set,isInterfaceObject:!1,resolvable:!1,typeName:r}))}},InterfaceTypeExtension:{enter(n){let r=n.name.value;if(e.internalGraph.addOrUpdateNode(r,{isAbstract:!0}),!(0,Wl.isObjectLikeNodeEntity)(n))return;let i=(0,pr.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,AE.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:r}),(0,pr.getValueOrDefault)(e.entityInterfaceDataByTypeName,r,()=>({concreteTypeNames:new Set,fieldDatas:[],interfaceFieldNames:new Set,interfaceObjectFieldNames:new Set,isInterfaceObject:!1,resolvable:!1,typeName:r}))}},ObjectTypeDefinition:{enter(n){if(!(0,Wl.isObjectLikeNodeEntity)(n))return;let r=n.name.value;(0,Wl.isNodeInterfaceObject)(n)&&(e.entityInterfaceDataByTypeName.set(r,{concreteTypeNames:new Set,fieldDatas:[],interfaceObjectFieldNames:new Set,interfaceFieldNames:new Set,isInterfaceObject:!0,resolvable:!1,typeName:r}),e.internalGraph.addOrUpdateNode(r,{isAbstract:!0}));let i=(0,pr.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,AE.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:r})}},ObjectTypeExtension:{enter(n){if(!(0,Wl.isObjectLikeNodeEntity)(n))return;let r=n.name.value,i=(0,pr.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,AE.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:r})}},OperationTypeDefinition:{enter(n){let r=n.operation,i=e.schemaData.operationTypes.get(r),a=(0,Xf.getTypeNodeNamedTypeName)(n.type);if(i)return(0,gu.duplicateOperationTypeDefinitionError)(r,a,(0,Xf.getTypeNodeNamedTypeName)(i.type)),!1;let o=e.operationTypeNodeByTypeName.get(a);return o?(e.errors.push((0,gu.invalidOperationTypeDefinitionError)(o,a,r)),!1):(e.operationTypeNodeByTypeName.set(a,r),e.schemaData.operationTypes.set(r,n),!1)}},SchemaDefinition:{enter(n){e.schemaData.description=n.description,e.extractDirectives(n,e.schemaData.directivesByDirectiveName)}},SchemaExtension:{enter(n){e.extractDirectives(n,e.schemaData.directivesByDirectiveName)}}})}function Cle(e,t){let n=!1,r;(0,jn.visit)(t,{EnumTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertEnumDataByNode(i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=jn.Kind.NULL}},EnumTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertEnumDataByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=jn.Kind.NULL}},EnumValueDefinition:{enter(i){let a=i.name.value;e.lastChildNodeKind=i.kind;let o=(0,pr.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,fr.PARENT_DEFINITION_DATA);if(o.kind!==jn.Kind.ENUM_TYPE_DEFINITION){e.errors.push((0,gu.unexpectedParentKindForChildError)(e.originalParentTypeName,"Enum or Enum extension",(0,pr.kindToNodeType)(o.kind),a,(0,pr.kindToNodeType)(i.kind)));return}if(o.enumValueDataByName.has(a)){e.errors.push((0,gu.duplicateEnumValueDefinitionError)(e.originalParentTypeName,a));return}o.enumValueDataByName.set(a,{appearances:1,configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:e.extractDirectives(i,new Map),federatedCoords:`${e.originalParentTypeName}.${a}`,kind:jn.Kind.ENUM_VALUE_DEFINITION,name:a,node:(0,Xf.getMutableEnumValueNode)(i),parentTypeName:e.originalParentTypeName,persistedDirectivesData:(0,zl.newPersistedDirectivesData)(),subgraphNames:new Set([e.subgraphName]),description:(0,Wl.formatDescription)(i.description)})},leave(){e.lastChildNodeKind=jn.Kind.NULL}},FieldDefinition:{enter(i){let a=i.name.value;if(n&&fr.IGNORED_FIELDS.has(a))return!1;e.edfsDirectiveReferences.size>0&&e.validateSubscriptionFilterDirectiveLocation(i),e.lastChildNodeKind=i.kind;let o=(0,Xf.getTypeNodeNamedTypeName)(i.type);(0,pr.getValueOrDefault)(e.fieldCoordsByNamedTypeName,o,()=>new Set).add(`${e.renamedParentTypeName||e.originalParentTypeName}.${a}`),r&&!r.isAbstract&&e.internalGraph.addEdge(r,e.internalGraph.addOrUpdateNode(o),a),gc.BASE_SCALARS.has(o)||e.referencedTypeNames.add(o);let c=(0,pr.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,fr.PARENT_DEFINITION_DATA);if(!(0,zl.isParentDataCompositeOutputType)(c)){e.errors.push((0,gu.unexpectedParentKindForChildError)(e.originalParentTypeName,'"Object" or "Interface"',(0,pr.kindToNodeType)(c.kind),a,(0,pr.kindToNodeType)(i.kind)));return}if(c.fieldDataByName.has(a)){e.errors.push((0,gu.duplicateFieldDefinitionError)((0,pr.kindToNodeType)(c.kind),c.name,a));return}let l=e.extractArguments(new Map,i),d=e.extractDirectives(i,new Map),p=new Set;e.handleFieldInheritableDirectives({directivesByDirectiveName:d,fieldName:a,inheritedDirectiveNames:p,parentData:c});let y=e.addFieldDataByNode(c.fieldDataByName,i,l,d,p);n&&e.extractEventDirectivesToConfiguration(i,l);let I=y.directivesByDirectiveName.get(fr.PROVIDES),v=y.directivesByDirectiveName.get(fr.REQUIRES);if(!v&&!I)return;let F=e.entityDataByTypeName.get(e.originalParentTypeName),k=(0,pr.getValueOrDefault)(e.fieldSetDataByTypeName,e.originalParentTypeName,ZO.newFieldSetData);I&&(0,ZO.extractFieldSetValue)(a,k.provides,I),v&&(F||e.warnings.push((0,wle.requiresDefinedOnNonEntityFieldWarning)(`${e.originalParentTypeName}.${a}`,e.subgraphName)),(0,ZO.extractFieldSetValue)(a,k.requires,v))},leave(){e.lastChildNodeKind=jn.Kind.NULL}},InputObjectTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInputObjectByNode(i)},leave(){e.lastParentNodeKind=jn.Kind.NULL,e.originalParentTypeName=""}},InputObjectTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInputObjectByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=jn.Kind.NULL}},InputValueDefinition:{enter(i){let a=i.name.value;if(e.lastParentNodeKind!==jn.Kind.INPUT_OBJECT_TYPE_DEFINITION&&e.lastParentNodeKind!==jn.Kind.INPUT_OBJECT_TYPE_EXTENSION){e.argumentName=a;return}e.lastChildNodeKind=i.kind;let o=(0,Xf.getTypeNodeNamedTypeName)(i.type);gc.BASE_SCALARS.has(o)||e.referencedTypeNames.add(o);let c=(0,pr.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,fr.PARENT_DEFINITION_DATA);if(c.kind!==jn.Kind.INPUT_OBJECT_TYPE_DEFINITION)return e.errors.push((0,gu.unexpectedParentKindForChildError)(e.originalParentTypeName,"input object or input object extension",(0,pr.kindToNodeType)(c.kind),a,(0,pr.kindToNodeType)(i.kind))),!1;if(c.inputValueDataByName.has(a)){e.errors.push((0,gu.duplicateInputFieldDefinitionError)(e.originalParentTypeName,a));return}e.addInputValueDataByNode({inputValueDataByName:c.inputValueDataByName,isArgument:!1,node:i,originalParentTypeName:e.originalParentTypeName})},leave(){e.argumentName="",e.lastChildNodeKind===jn.Kind.INPUT_VALUE_DEFINITION&&(e.lastChildNodeKind=jn.Kind.NULL)}},InterfaceTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInterfaceDataByNode(i)},leave(){e.doesParentRequireFetchReasons=!1,e.originalParentTypeName="",e.lastParentNodeKind=jn.Kind.NULL}},InterfaceTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInterfaceDataByNode(i,!0)},leave(){e.doesParentRequireFetchReasons=!1,e.originalParentTypeName="",e.lastParentNodeKind=jn.Kind.NULL}},ObjectTypeDefinition:{enter(i){if(i.name.value===fr.SERVICE_OBJECT)return!1;e.originalParentTypeName=i.name.value,n=(0,zl.isTypeNameRootType)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.renamedParentTypeName=(0,zl.getRenamedRootTypeName)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.originalTypeNameByRenamedTypeName.set(e.renamedParentTypeName,e.originalParentTypeName),r=n?e.internalGraph.getRootNode(e.renamedParentTypeName):e.internalGraph.addOrUpdateNode(e.renamedParentTypeName),e.lastParentNodeKind=i.kind,e.upsertObjectDataByNode(i)},leave(){r=void 0,n=!1,e.originalParentTypeName="",e.renamedParentTypeName="",e.lastParentNodeKind=jn.Kind.NULL,e.isParentObjectExternal=!1,e.doesParentRequireFetchReasons=!1,e.isParentObjectShareable=!1}},ObjectTypeExtension:{enter(i){if(i.name.value===fr.SERVICE_OBJECT)return!1;e.originalParentTypeName=i.name.value,n=(0,zl.isTypeNameRootType)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.renamedParentTypeName=(0,zl.getRenamedRootTypeName)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.originalTypeNameByRenamedTypeName.set(e.renamedParentTypeName,e.originalParentTypeName),r=n?e.internalGraph.getRootNode(e.renamedParentTypeName):e.internalGraph.addOrUpdateNode(e.renamedParentTypeName),e.lastParentNodeKind=i.kind,e.upsertObjectDataByNode(i,!0)},leave(){r=void 0,n=!1,e.originalParentTypeName="",e.renamedParentTypeName="",e.lastParentNodeKind=jn.Kind.NULL,e.isParentObjectExternal=!1,e.doesParentRequireFetchReasons=!1,e.isParentObjectShareable=!1}},ScalarTypeDefinition:{enter(i){if(i.name.value===fr.ANY_SCALAR)return!1;e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertScalarByNode(i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=jn.Kind.NULL}},ScalarTypeExtension:{enter(i){if(i.name.value===fr.ANY_SCALAR)return!1;e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertScalarByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=jn.Kind.NULL}},UnionTypeDefinition:{enter(i){i.name.value!==fr.ENTITY_UNION&&e.upsertUnionByNode(i)}},UnionTypeExtension:{enter(i){if(i.name.value===fr.ENTITY_UNION)return!1;e.upsertUnionByNode(i,!0)}}})}});var aD=w(Qa=>{"use strict";m();T();N();Object.defineProperty(Qa,"__esModule",{value:!0});Qa.EntityDataNode=Qa.RootNode=Qa.GraphNode=Qa.Edge=void 0;var PE=Sr(),tD=class{constructor(t,n,r,i=!1){_(this,"edgeName");_(this,"id");_(this,"isAbstractEdge");_(this,"isInaccessible",!1);_(this,"node");_(this,"visitedIndices",new Set);this.edgeName=i?`... on ${r}`:r,this.id=t,this.isAbstractEdge=i,this.node=n}};Qa.Edge=tD;var nD=class{constructor(t,n,r){_(this,"fieldDataByName",new Map);_(this,"headToTailEdges",new Map);_(this,"entityEdges",new Array);_(this,"nodeName");_(this,"hasEntitySiblings",!1);_(this,"isAbstract");_(this,"isInaccessible",!1);_(this,"isLeaf",!1);_(this,"isRootNode",!1);_(this,"satisfiedFieldSets",new Set);_(this,"subgraphName");_(this,"typeName");this.isAbstract=!!(r!=null&&r.isAbstract),this.isLeaf=!!(r!=null&&r.isLeaf),this.nodeName=`${t}.${n}`,this.subgraphName=t,this.typeName=n}handleInaccessibleEdges(){if(this.isAbstract)return;let t=(0,PE.getEntriesNotInHashSet)(this.headToTailEdges.keys(),this.fieldDataByName);for(let n of t){let r=this.headToTailEdges.get(n);r&&(r.isInaccessible=!0)}}getAllAccessibleEntityNodeNames(){let t=new Set([this.nodeName]);return this.getAccessibleEntityNodeNames(this,t),t.delete(this.nodeName),t}getAccessibleEntityNodeNames(t,n){for(let r of t.entityEdges)(0,PE.add)(n,r.node.nodeName)&&this.getAccessibleEntityNodeNames(r.node,n)}};Qa.GraphNode=nD;var rD=class{constructor(t){_(this,"fieldDataByName",new Map);_(this,"headToSharedTailEdges",new Map);_(this,"isAbstract",!1);_(this,"isRootNode",!0);_(this,"typeName");this.typeName=t}removeInaccessibleEdges(t){for(let[n,r]of this.headToSharedTailEdges)if(!t.has(n))for(let i of r)i.isInaccessible=!0}};Qa.RootNode=rD;var iD=class{constructor(t){_(this,"fieldSetsByTargetSubgraphName",new Map);_(this,"targetSubgraphNamesByFieldSet",new Map);_(this,"typeName");this.typeName=t}addTargetSubgraphByFieldSet(t,n){(0,PE.getValueOrDefault)(this.targetSubgraphNamesByFieldSet,t,()=>new Set).add(n),(0,PE.getValueOrDefault)(this.fieldSetsByTargetSubgraphName,n,()=>new Set).add(t)}};Qa.EntityDataNode=iD});var sD=w(Kn=>{"use strict";m();T();N();Object.defineProperty(Kn,"__esModule",{value:!0});Kn.ROOT_TYPE_NAMES=Kn.QUOTATION_JOIN=Kn.NOT_APPLICABLE=Kn.LITERAL_SPACE=Kn.LITERAL_PERIOD=Kn.SUBSCRIPTION=Kn.QUERY=Kn.MUTATION=void 0;Kn.MUTATION="Mutation";Kn.QUERY="Query";Kn.SUBSCRIPTION="Subscription";Kn.LITERAL_PERIOD=".";Kn.LITERAL_SPACE=" ";Kn.NOT_APPLICABLE="N/A";Kn.QUOTATION_JOIN='", "';Kn.ROOT_TYPE_NAMES=new Set([Kn.MUTATION,Kn.QUERY,Kn.SUBSCRIPTION])});var lD=w(Ea=>{"use strict";m();T();N();Object.defineProperty(Ea,"__esModule",{value:!0});Ea.newRootFieldData=Ble;Ea.generateResolvabilityErrorReasons=cD;Ea.generateSharedResolvabilityErrorReasons=uV;Ea.generateSelectionSetSegments=FE;Ea.renderSelectionSet=wE;Ea.generateRootResolvabilityErrors=kle;Ea.generateEntityResolvabilityErrors=Mle;Ea.generateSharedEntityResolvabilityErrors=xle;Ea.getMultipliedRelativeOriginPaths=qle;var oD=xi(),uD=Sr(),Ya=sD();function Ble(e,t,n){return{coords:`${e}.${t}`,message:`The root type field "${e}.${t}" is defined in the following subgraph`+(n.size>1?"s":"")+`: "${[...n].join(Ya.QUOTATION_JOIN)}".`,subgraphNames:n}}function Ule(e,t){return e.isLeaf?e.name+` <-- +Although "${e}" is declared "@external", it is part of a "@key" directive on an extension type. Such fields are only declared "@external" for legacy syntactical reasons and are not internally considered "@external".`,subgraph:{name:r}})}function Rle({fieldName:e,subgraphName:t,typeName:n}){return new Ta.Warning({message:`The directive "@oneOf" is defined on Input Object "${n}", but only one optional Input field, "${e}", is defined. Consider removing "@oneOf" and changing "${e}" to a required type instead.`,subgraph:{name:t}})}function Ple({fieldName:e,typeName:t}){return new Ta.Warning({message:`The directive "@oneOf" is defined on Input Object "${t}", but only one optional Input field, "${e}", is propagated to the federated graph. Consider removing "@oneOf", changing "${e}" to a required type, and removing any other remaining optional Input fields instead.`,subgraph:{name:""}})}});var eD=w(RE=>{"use strict";m();T();N();Object.defineProperty(RE,"__esModule",{value:!0});RE.upsertDirectiveSchemaAndEntityDefinitions=Lle;RE.upsertParentsAndChildren=Cle;var jn=De(),gu=Mi(),gc=Ss(),AE=Hf(),Wl=Hr(),ZO=zf(),Fle=Yl(),zl=Sl(),Xf=du(),wle=Wf(),fr=vr(),pr=Sr();function Lle(e,t){(0,jn.visit)(t,{Directive:{enter(n){let r=n.name.value;if(Fle.EVENT_DIRECTIVE_NAMES.has(r)&&e.edfsDirectiveReferences.add(r),gc.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(r))return e.isSubgraphVersionTwo=!0,!1;if(gc.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(r))return!1;switch(r){case fr.SUBSCRIPTION_FILTER:{e.directiveDefinitionByDirectiveName.set(fr.SUBSCRIPTION_FILTER,gc.SUBSCRIPTION_FILTER_DEFINITION);break}case fr.CONFIGURE_DESCRIPTION:{e.directiveDefinitionByDirectiveName.set(fr.CONFIGURE_DESCRIPTION,gc.CONFIGURE_DESCRIPTION_DEFINITION);break}case fr.CONFIGURE_CHILD_DESCRIPTIONS:{e.directiveDefinitionByDirectiveName.set(fr.CONFIGURE_CHILD_DESCRIPTIONS,gc.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION);break}}e.referencedDirectiveNames.add(r)}},DirectiveDefinition:{enter(n){return e.addDirectiveDefinitionDataByNode(n)&&e.customDirectiveDefinitions.set(n.name.value,n),!1}},InterfaceTypeDefinition:{enter(n){let r=n.name.value;if(e.internalGraph.addOrUpdateNode(r,{isAbstract:!0}),!(0,Wl.isObjectLikeNodeEntity)(n))return;let i=(0,pr.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,AE.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:r}),(0,pr.getValueOrDefault)(e.entityInterfaceDataByTypeName,r,()=>({concreteTypeNames:new Set,fieldDatas:[],interfaceFieldNames:new Set,interfaceObjectFieldNames:new Set,isInterfaceObject:!1,resolvable:!1,typeName:r}))}},InterfaceTypeExtension:{enter(n){let r=n.name.value;if(e.internalGraph.addOrUpdateNode(r,{isAbstract:!0}),!(0,Wl.isObjectLikeNodeEntity)(n))return;let i=(0,pr.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,AE.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:r}),(0,pr.getValueOrDefault)(e.entityInterfaceDataByTypeName,r,()=>({concreteTypeNames:new Set,fieldDatas:[],interfaceFieldNames:new Set,interfaceObjectFieldNames:new Set,isInterfaceObject:!1,resolvable:!1,typeName:r}))}},ObjectTypeDefinition:{enter(n){if(!(0,Wl.isObjectLikeNodeEntity)(n))return;let r=n.name.value;(0,Wl.isNodeInterfaceObject)(n)&&(e.entityInterfaceDataByTypeName.set(r,{concreteTypeNames:new Set,fieldDatas:[],interfaceObjectFieldNames:new Set,interfaceFieldNames:new Set,isInterfaceObject:!0,resolvable:!1,typeName:r}),e.internalGraph.addOrUpdateNode(r,{isAbstract:!0}));let i=(0,pr.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,AE.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:r})}},ObjectTypeExtension:{enter(n){if(!(0,Wl.isObjectLikeNodeEntity)(n))return;let r=n.name.value,i=(0,pr.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,AE.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:r})}},OperationTypeDefinition:{enter(n){let r=n.operation,i=e.schemaData.operationTypes.get(r),a=(0,Xf.getTypeNodeNamedTypeName)(n.type);if(i)return(0,gu.duplicateOperationTypeDefinitionError)(r,a,(0,Xf.getTypeNodeNamedTypeName)(i.type)),!1;let o=e.operationTypeNodeByTypeName.get(a);return o?(e.errors.push((0,gu.invalidOperationTypeDefinitionError)(o,a,r)),!1):(e.operationTypeNodeByTypeName.set(a,r),e.schemaData.operationTypes.set(r,n),!1)}},SchemaDefinition:{enter(n){e.schemaData.description=n.description,e.extractDirectives(n,e.schemaData.directivesByDirectiveName)}},SchemaExtension:{enter(n){e.extractDirectives(n,e.schemaData.directivesByDirectiveName)}}})}function Cle(e,t){let n=!1,r;(0,jn.visit)(t,{EnumTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertEnumDataByNode(i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=jn.Kind.NULL}},EnumTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertEnumDataByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=jn.Kind.NULL}},EnumValueDefinition:{enter(i){let a=i.name.value;e.lastChildNodeKind=i.kind;let o=(0,pr.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,fr.PARENT_DEFINITION_DATA);if(o.kind!==jn.Kind.ENUM_TYPE_DEFINITION){e.errors.push((0,gu.unexpectedParentKindForChildError)(e.originalParentTypeName,"Enum or Enum extension",(0,pr.kindToNodeType)(o.kind),a,(0,pr.kindToNodeType)(i.kind)));return}if(o.enumValueDataByName.has(a)){e.errors.push((0,gu.duplicateEnumValueDefinitionError)(e.originalParentTypeName,a));return}o.enumValueDataByName.set(a,{appearances:1,configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:e.extractDirectives(i,new Map),federatedCoords:`${e.originalParentTypeName}.${a}`,kind:jn.Kind.ENUM_VALUE_DEFINITION,name:a,node:(0,Xf.getMutableEnumValueNode)(i),parentTypeName:e.originalParentTypeName,persistedDirectivesData:(0,zl.newPersistedDirectivesData)(),subgraphNames:new Set([e.subgraphName]),description:(0,Wl.formatDescription)(i.description)})},leave(){e.lastChildNodeKind=jn.Kind.NULL}},FieldDefinition:{enter(i){let a=i.name.value;if(n&&fr.IGNORED_FIELDS.has(a))return!1;e.edfsDirectiveReferences.size>0&&e.validateSubscriptionFilterDirectiveLocation(i),e.lastChildNodeKind=i.kind;let o=(0,Xf.getTypeNodeNamedTypeName)(i.type);(0,pr.getValueOrDefault)(e.fieldCoordsByNamedTypeName,o,()=>new Set).add(`${e.renamedParentTypeName||e.originalParentTypeName}.${a}`),r&&!r.isAbstract&&e.internalGraph.addEdge(r,e.internalGraph.addOrUpdateNode(o),a),gc.BASE_SCALARS.has(o)||e.referencedTypeNames.add(o);let c=(0,pr.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,fr.PARENT_DEFINITION_DATA);if(!(0,zl.isParentDataCompositeOutputType)(c)){e.errors.push((0,gu.unexpectedParentKindForChildError)(e.originalParentTypeName,'"Object" or "Interface"',(0,pr.kindToNodeType)(c.kind),a,(0,pr.kindToNodeType)(i.kind)));return}if(c.fieldDataByName.has(a)){e.errors.push((0,gu.duplicateFieldDefinitionError)((0,pr.kindToNodeType)(c.kind),c.name,a));return}let l=e.extractArguments(new Map,i),d=e.extractDirectives(i,new Map),p=new Set;e.handleFieldInheritableDirectives({directivesByDirectiveName:d,fieldName:a,inheritedDirectiveNames:p,parentData:c});let y=e.addFieldDataByNode(c.fieldDataByName,i,l,d,p);n&&e.extractEventDirectivesToConfiguration(i,l);let I=y.directivesByDirectiveName.get(fr.PROVIDES),v=y.directivesByDirectiveName.get(fr.REQUIRES);if(!v&&!I)return;let F=e.entityDataByTypeName.get(e.originalParentTypeName),k=(0,pr.getValueOrDefault)(e.fieldSetDataByTypeName,e.originalParentTypeName,ZO.newFieldSetData);I&&(0,ZO.extractFieldSetValue)(a,k.provides,I),v&&(F||e.warnings.push((0,wle.requiresDefinedOnNonEntityFieldWarning)(`${e.originalParentTypeName}.${a}`,e.subgraphName)),(0,ZO.extractFieldSetValue)(a,k.requires,v))},leave(){e.lastChildNodeKind=jn.Kind.NULL}},InputObjectTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInputObjectByNode(i)},leave(){e.lastParentNodeKind=jn.Kind.NULL,e.originalParentTypeName=""}},InputObjectTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInputObjectByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=jn.Kind.NULL}},InputValueDefinition:{enter(i){let a=i.name.value;if(e.lastParentNodeKind!==jn.Kind.INPUT_OBJECT_TYPE_DEFINITION&&e.lastParentNodeKind!==jn.Kind.INPUT_OBJECT_TYPE_EXTENSION){e.argumentName=a;return}e.lastChildNodeKind=i.kind;let o=(0,Xf.getTypeNodeNamedTypeName)(i.type);gc.BASE_SCALARS.has(o)||e.referencedTypeNames.add(o);let c=(0,pr.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,fr.PARENT_DEFINITION_DATA);if(c.kind!==jn.Kind.INPUT_OBJECT_TYPE_DEFINITION)return e.errors.push((0,gu.unexpectedParentKindForChildError)(e.originalParentTypeName,"input object or input object extension",(0,pr.kindToNodeType)(c.kind),a,(0,pr.kindToNodeType)(i.kind))),!1;if(c.inputValueDataByName.has(a)){e.errors.push((0,gu.duplicateInputFieldDefinitionError)(e.originalParentTypeName,a));return}e.addInputValueDataByNode({inputValueDataByName:c.inputValueDataByName,isArgument:!1,node:i,originalParentTypeName:e.originalParentTypeName})},leave(){e.argumentName="",e.lastChildNodeKind===jn.Kind.INPUT_VALUE_DEFINITION&&(e.lastChildNodeKind=jn.Kind.NULL)}},InterfaceTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInterfaceDataByNode(i)},leave(){e.doesParentRequireFetchReasons=!1,e.originalParentTypeName="",e.lastParentNodeKind=jn.Kind.NULL}},InterfaceTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInterfaceDataByNode(i,!0)},leave(){e.doesParentRequireFetchReasons=!1,e.originalParentTypeName="",e.lastParentNodeKind=jn.Kind.NULL}},ObjectTypeDefinition:{enter(i){if(i.name.value===fr.SERVICE_OBJECT)return!1;e.originalParentTypeName=i.name.value,n=(0,zl.isTypeNameRootType)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.renamedParentTypeName=(0,zl.getRenamedRootTypeName)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.originalTypeNameByRenamedTypeName.set(e.renamedParentTypeName,e.originalParentTypeName),r=n?e.internalGraph.getRootNode(e.renamedParentTypeName):e.internalGraph.addOrUpdateNode(e.renamedParentTypeName),e.lastParentNodeKind=i.kind,e.upsertObjectDataByNode(i)},leave(){r=void 0,n=!1,e.originalParentTypeName="",e.renamedParentTypeName="",e.lastParentNodeKind=jn.Kind.NULL,e.isParentObjectExternal=!1,e.doesParentRequireFetchReasons=!1,e.isParentObjectShareable=!1}},ObjectTypeExtension:{enter(i){if(i.name.value===fr.SERVICE_OBJECT)return!1;e.originalParentTypeName=i.name.value,n=(0,zl.isTypeNameRootType)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.renamedParentTypeName=(0,zl.getRenamedRootTypeName)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.originalTypeNameByRenamedTypeName.set(e.renamedParentTypeName,e.originalParentTypeName),r=n?e.internalGraph.getRootNode(e.renamedParentTypeName):e.internalGraph.addOrUpdateNode(e.renamedParentTypeName),e.lastParentNodeKind=i.kind,e.upsertObjectDataByNode(i,!0)},leave(){r=void 0,n=!1,e.originalParentTypeName="",e.renamedParentTypeName="",e.lastParentNodeKind=jn.Kind.NULL,e.isParentObjectExternal=!1,e.doesParentRequireFetchReasons=!1,e.isParentObjectShareable=!1}},ScalarTypeDefinition:{enter(i){if(i.name.value===fr.ANY_SCALAR)return!1;e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertScalarByNode(i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=jn.Kind.NULL}},ScalarTypeExtension:{enter(i){if(i.name.value===fr.ANY_SCALAR)return!1;e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertScalarByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=jn.Kind.NULL}},UnionTypeDefinition:{enter(i){i.name.value!==fr.ENTITY_UNION&&e.upsertUnionByNode(i)}},UnionTypeExtension:{enter(i){if(i.name.value===fr.ENTITY_UNION)return!1;e.upsertUnionByNode(i,!0)}}})}});var aD=w(Qa=>{"use strict";m();T();N();Object.defineProperty(Qa,"__esModule",{value:!0});Qa.EntityDataNode=Qa.RootNode=Qa.GraphNode=Qa.Edge=void 0;var PE=Sr(),tD=class{constructor(t,n,r,i=!1){_(this,"edgeName");_(this,"id");_(this,"isAbstractEdge");_(this,"isInaccessible",!1);_(this,"node");_(this,"visitedIndices",new Set);this.edgeName=i?`... on ${r}`:r,this.id=t,this.isAbstractEdge=i,this.node=n}};Qa.Edge=tD;var nD=class{constructor(t,n,r){_(this,"fieldDataByName",new Map);_(this,"headToTailEdges",new Map);_(this,"entityEdges",new Array);_(this,"nodeName");_(this,"hasEntitySiblings",!1);_(this,"isAbstract");_(this,"isInaccessible",!1);_(this,"isLeaf",!1);_(this,"isRootNode",!1);_(this,"satisfiedFieldSets",new Set);_(this,"subgraphName");_(this,"typeName");this.isAbstract=!!(r!=null&&r.isAbstract),this.isLeaf=!!(r!=null&&r.isLeaf),this.nodeName=`${t}.${n}`,this.subgraphName=t,this.typeName=n}handleInaccessibleEdges(){if(this.isAbstract)return;let t=(0,PE.getEntriesNotInHashSet)(this.headToTailEdges.keys(),this.fieldDataByName);for(let n of t){let r=this.headToTailEdges.get(n);r&&(r.isInaccessible=!0)}}getAllAccessibleEntityNodeNames(){let t=new Set([this.nodeName]);return this.getAccessibleEntityNodeNames(this,t),t.delete(this.nodeName),t}getAccessibleEntityNodeNames(t,n){for(let r of t.entityEdges)(0,PE.add)(n,r.node.nodeName)&&this.getAccessibleEntityNodeNames(r.node,n)}};Qa.GraphNode=nD;var rD=class{constructor(t){_(this,"fieldDataByName",new Map);_(this,"headToSharedTailEdges",new Map);_(this,"isAbstract",!1);_(this,"isRootNode",!0);_(this,"typeName");this.typeName=t}removeInaccessibleEdges(t){for(let[n,r]of this.headToSharedTailEdges)if(!t.has(n))for(let i of r)i.isInaccessible=!0}};Qa.RootNode=rD;var iD=class{constructor(t){_(this,"fieldSetsByTargetSubgraphName",new Map);_(this,"targetSubgraphNamesByFieldSet",new Map);_(this,"typeName");this.typeName=t}addTargetSubgraphByFieldSet(t,n){(0,PE.getValueOrDefault)(this.targetSubgraphNamesByFieldSet,t,()=>new Set).add(n),(0,PE.getValueOrDefault)(this.fieldSetsByTargetSubgraphName,n,()=>new Set).add(t)}};Qa.EntityDataNode=iD});var sD=w(Kn=>{"use strict";m();T();N();Object.defineProperty(Kn,"__esModule",{value:!0});Kn.ROOT_TYPE_NAMES=Kn.QUOTATION_JOIN=Kn.NOT_APPLICABLE=Kn.LITERAL_SPACE=Kn.LITERAL_PERIOD=Kn.SUBSCRIPTION=Kn.QUERY=Kn.MUTATION=void 0;Kn.MUTATION="Mutation";Kn.QUERY="Query";Kn.SUBSCRIPTION="Subscription";Kn.LITERAL_PERIOD=".";Kn.LITERAL_SPACE=" ";Kn.NOT_APPLICABLE="N/A";Kn.QUOTATION_JOIN='", "';Kn.ROOT_TYPE_NAMES=new Set([Kn.MUTATION,Kn.QUERY,Kn.SUBSCRIPTION])});var lD=w(Ea=>{"use strict";m();T();N();Object.defineProperty(Ea,"__esModule",{value:!0});Ea.newRootFieldData=Ble;Ea.generateResolvabilityErrorReasons=cD;Ea.generateSharedResolvabilityErrorReasons=uV;Ea.generateSelectionSetSegments=FE;Ea.renderSelectionSet=wE;Ea.generateRootResolvabilityErrors=kle;Ea.generateEntityResolvabilityErrors=Mle;Ea.generateSharedEntityResolvabilityErrors=xle;Ea.getMultipliedRelativeOriginPaths=qle;var oD=Mi(),uD=Sr(),Ya=sD();function Ble(e,t,n){return{coords:`${e}.${t}`,message:`The root type field "${e}.${t}" is defined in the following subgraph`+(n.size>1?"s":"")+`: "${[...n].join(Ya.QUOTATION_JOIN)}".`,subgraphNames:n}}function Ule(e,t){return e.isLeaf?e.name+` <-- `:e.name+` { <-- `+Ya.LITERAL_SPACE.repeat(t+3)+`... `+Ya.LITERAL_SPACE.repeat(t+2)+`} `}function cD({entityAncestorData:e,rootFieldData:t,unresolvableFieldData:n}){let{fieldName:r,typeName:i,subgraphNames:a}=n,o=[t.message,`The field "${i}.${r}" is defined in the following subgraph`+(a.size>1?"s":"")+`: "${[...a].join(Ya.QUOTATION_JOIN)}".`];if(e){let c=!1;for(let[l,d]of e.fieldSetsByTargetSubgraphName)if(a.has(l)){c=!0;for(let p of d)o.push(`The entity ancestor "${e.typeName}" in subgraph "${e.subgraphName}" does not satisfy the key field set "${p}" to access subgraph "${l}".`)}c||o.push(`The entity ancestor "${e.typeName}" in subgraph "${e.subgraphName}" has no accessible target entities (resolvable @key directives) in the subgraphs where "${i}.${r}" is defined.`),o.push(`The type "${i}" is not a descendant of any other entity ancestors that can provide a shared route to access "${r}".`)}else t.subgraphNames.size>1&&o.push(`None of the subgraphs that shares the same root type field "${t.coords}" can provide a route to access "${r}".`),o.push(`The type "${i}" is not a descendant of an entity ancestor that can provide a shared route to access "${r}".`);return i!==(e==null?void 0:e.typeName)&&o.push(`The type "${i}" has no accessible target entities (resolvable @key directives) in any other subgraph, so accessing other subgraphs is not possible.`),o}function uV({entityAncestors:e,rootFieldData:t,unresolvableFieldData:n}){let{fieldName:r,typeName:i,subgraphNames:a}=n,o=[t.message,`The field "${i}.${r}" is defined in the following subgraph`+(a.size>1?"s":"")+`: "${[...a].join(Ya.QUOTATION_JOIN)}".`],c=!1;for(let[l,d]of e.fieldSetsByTargetSubgraphName){if(!a.has(l))continue;let p=e.subgraphNames.filter(I=>I!==l),y=p.length>1;c=!0;for(let I of d)o.push(`The entity ancestor "${e.typeName}" in subgraph${y?"s":""} "${p.join(Ya.QUOTATION_JOIN)}" do${y?"":"es"} not satisfy the key field set "${I}" to access subgraph "${l}".`)}if(!c){let l=e.subgraphNames.length>1;o.push(`The entity ancestor "${e.typeName}" in subgraph${l?"s":""} "${e.subgraphNames.join(Ya.QUOTATION_JOIN)}" ha${l?"ve":"s"} no accessible target entities (resolvable @key directives) in the subgraphs where "${i}.${r}" is defined.`)}return o.push(`The type "${i}" is not a descendant of any other entity ancestors that can provide a shared route to access "${r}".`),i!==e.typeName&&o.push(`The type "${i}" has no accessible target entities (resolvable @key directives) in any other subgraph, so accessing other subgraphs is not possible.`),o}function FE(e){let t=e.split(new RegExp("(?<=\\w)\\.")),n="",r="";for(let i=0;i{"use strict";m();T();N();Object.defineProperty(LE,"__esModule",{value:!0});LE.NodeResolutionData=void 0;var Vle=xi(),_c,fD=class fD{constructor({fieldDataByName:t,isResolved:n=!1,resolvedDescendantNames:r,resolvedFieldNames:i,typeName:a}){tR(this,_c,!1);_(this,"fieldDataByName");_(this,"resolvedDescendantNames");_(this,"resolvedFieldNames");_(this,"typeName");Uy(this,_c,n),this.fieldDataByName=t,this.resolvedDescendantNames=new Set(r),this.resolvedFieldNames=new Set(i),this.typeName=a}addData(t){for(let n of t.resolvedFieldNames)this.addResolvedFieldName(n);for(let n of t.resolvedDescendantNames)this.resolvedDescendantNames.add(n)}addResolvedFieldName(t){if(!this.fieldDataByName.has(t))throw(0,Vle.unexpectedEdgeFatalError)(this.typeName,[t]);this.resolvedFieldNames.add(t)}copy(){return new fD({fieldDataByName:this.fieldDataByName,isResolved:By(this,_c),resolvedDescendantNames:this.resolvedDescendantNames,resolvedFieldNames:this.resolvedFieldNames,typeName:this.typeName})}areDescendantsResolved(){return this.fieldDataByName.size===this.resolvedDescendantNames.size}isResolved(){if(By(this,_c))return!0;if(this.fieldDataByName.size!==this.resolvedFieldNames.size)return!1;for(let t of this.fieldDataByName.keys())if(!this.resolvedFieldNames.has(t))return!1;return Uy(this,_c,!0),!0}};_c=new WeakMap;var dD=fD;LE.NodeResolutionData=dD});var lV=w(BE=>{"use strict";m();T();N();Object.defineProperty(BE,"__esModule",{value:!0});BE.EntityWalker=void 0;var jle=CE(),Ja=Sr(),pD=class{constructor({encounteredEntityNodeNames:t,index:n,relativeOriginPaths:r,resDataByNodeName:i,resDataByRelativeOriginPath:a,subgraphNameByUnresolvablePath:o,visitedEntities:c}){_(this,"encounteredEntityNodeNames");_(this,"index");_(this,"resDataByNodeName");_(this,"resDataByRelativeOriginPath");_(this,"selectionPathByEntityNodeName",new Map);_(this,"subgraphNameByUnresolvablePath");_(this,"visitedEntities");_(this,"relativeOriginPaths");this.encounteredEntityNodeNames=t,this.index=n,this.relativeOriginPaths=r,this.resDataByNodeName=i,this.resDataByRelativeOriginPath=a,this.visitedEntities=c,this.subgraphNameByUnresolvablePath=o}getNodeResolutionData({node:{fieldDataByName:t,nodeName:n,typeName:r},selectionPath:i}){let a=(0,Ja.getValueOrDefault)(this.resDataByNodeName,n,()=>new jle.NodeResolutionData({fieldDataByName:t,typeName:r}));if(!this.relativeOriginPaths||this.relativeOriginPaths.size<1)return(0,Ja.getValueOrDefault)(this.resDataByRelativeOriginPath,i,()=>a.copy());let o;for(let c of this.relativeOriginPaths){let l=(0,Ja.getValueOrDefault)(this.resDataByRelativeOriginPath,`${c}${i}`,()=>a.copy());o!=null||(o=l)}return o}visitEntityDescendantEdge({edge:t,selectionPath:n}){return t.isInaccessible||t.node.isInaccessible?{visited:!1,areDescendantsResolved:!1}:t.node.isLeaf?{visited:!0,areDescendantsResolved:!0}:(0,Ja.add)(t.visitedIndices,this.index)?t.node.hasEntitySiblings?this.visitedEntities.has(t.node.nodeName)||this.encounteredEntityNodeNames.has(t.node.nodeName)?{visited:!0,areDescendantsResolved:!0}:(this.encounteredEntityNodeNames.add(t.node.nodeName),(0,Ja.getValueOrDefault)(this.selectionPathByEntityNodeName,t.node.nodeName,()=>`${n}.${t.edgeName}`),{visited:!0,areDescendantsResolved:!1}):t.node.isAbstract?this.visitEntityDescendantAbstractNode({node:t.node,selectionPath:`${n}.${t.edgeName}`}):this.visitEntityDescendantConcreteNode({node:t.node,selectionPath:`${n}.${t.edgeName}`}):(this.removeUnresolvablePaths({selectionPath:`${n}.${t.edgeName}`,removeDescendantPaths:!0}),{visited:!0,areDescendantsResolved:!0,isRevisitedNode:!0})}visitEntityDescendantConcreteNode({node:t,selectionPath:n}){if(t.headToTailEdges.size<1)return t.isLeaf=!0,{visited:!0,areDescendantsResolved:!0};let r=this.getNodeResolutionData({node:t,selectionPath:n});if(r.isResolved()&&r.areDescendantsResolved())return{visited:!0,areDescendantsResolved:!0};let i;for(let[a,o]of t.headToTailEdges){let{visited:c,areDescendantsResolved:l,isRevisitedNode:d}=this.visitEntityDescendantEdge({edge:o,selectionPath:n});i!=null||(i=d),this.propagateVisitedField({areDescendantsResolved:l,fieldName:a,data:r,nodeName:t.nodeName,selectionPath:n,visited:c})}return r.isResolved()?this.removeUnresolvablePaths({removeDescendantPaths:i,selectionPath:n}):this.addUnresolvablePaths({selectionPath:n,subgraphName:t.subgraphName}),{visited:!0,areDescendantsResolved:r.areDescendantsResolved()}}visitEntityDescendantAbstractNode({node:t,selectionPath:n}){if(t.headToTailEdges.size<1)return{visited:!0,areDescendantsResolved:!0};let r=0;for(let i of t.headToTailEdges.values())this.visitEntityDescendantEdge({edge:i,selectionPath:n}).areDescendantsResolved&&(r+=1);return{visited:!0,areDescendantsResolved:r===t.headToTailEdges.size}}propagateVisitedField({areDescendantsResolved:t,data:n,fieldName:r,nodeName:i,selectionPath:a,visited:o}){if(!o)return;let c=(0,Ja.getValueOrDefault)(this.resDataByNodeName,i,()=>n.copy());if(n.addResolvedFieldName(r),c.addResolvedFieldName(r),t&&n.resolvedDescendantNames.add(r),this.relativeOriginPaths){for(let d of this.relativeOriginPaths){let p=(0,Ja.getValueOrDefault)(this.resDataByRelativeOriginPath,`${d}${a}`,()=>n.copy());p.addResolvedFieldName(r),t&&p.resolvedDescendantNames.add(r)}return}let l=(0,Ja.getValueOrDefault)(this.resDataByRelativeOriginPath,a,()=>n.copy());l.addResolvedFieldName(r),t&&l.resolvedDescendantNames.add(r)}addUnresolvablePaths({selectionPath:t,subgraphName:n}){if(!this.relativeOriginPaths){(0,Ja.getValueOrDefault)(this.subgraphNameByUnresolvablePath,t,()=>n);return}for(let r of this.relativeOriginPaths)(0,Ja.getValueOrDefault)(this.subgraphNameByUnresolvablePath,`${r}${t}`,()=>n)}removeUnresolvablePaths({selectionPath:t,removeDescendantPaths:n}){if(!this.relativeOriginPaths){if(this.subgraphNameByUnresolvablePath.delete(t),n)for(let r of this.subgraphNameByUnresolvablePath.keys())r.startsWith(t)&&this.subgraphNameByUnresolvablePath.delete(r);return}for(let r of this.relativeOriginPaths){let i=`${r}${t}`;if(this.subgraphNameByUnresolvablePath.delete(i),n)for(let a of this.subgraphNameByUnresolvablePath.keys())a.startsWith(i)&&this.subgraphNameByUnresolvablePath.delete(a)}}};BE.EntityWalker=pD});var dV=w(kE=>{"use strict";m();T();N();Object.defineProperty(kE,"__esModule",{value:!0});kE.RootFieldWalker=void 0;var Ha=Sr(),UE=CE(),mD=class{constructor({index:t,nodeResolutionDataByNodeName:n}){_(this,"index");_(this,"resDataByNodeName");_(this,"resDataByPath",new Map);_(this,"entityNodeNamesByPath",new Map);_(this,"pathsByEntityNodeName",new Map);_(this,"unresolvablePaths",new Set);this.index=t,this.resDataByNodeName=n}visitEdge({edge:t,selectionPath:n}){return t.isInaccessible||t.node.isInaccessible?{visited:!1,areDescendantsResolved:!0}:t.node.isLeaf?{visited:!0,areDescendantsResolved:!0}:(0,Ha.add)(t.visitedIndices,this.index)?t.node.hasEntitySiblings?this.resDataByNodeName.has(t.node.nodeName)?{visited:!0,areDescendantsResolved:!0}:((0,Ha.getValueOrDefault)(this.pathsByEntityNodeName,t.node.nodeName,()=>new Set).add(`${n}.${t.edgeName}`),{visited:!0,areDescendantsResolved:!1}):t.node.isAbstract?this.visitAbstractNode({node:t.node,selectionPath:`${n}.${t.edgeName}`}):this.visitConcreteNode({node:t.node,selectionPath:`${n}.${t.edgeName}`}):{visited:!0,areDescendantsResolved:!0}}visitAbstractNode({node:t,selectionPath:n}){if(t.headToTailEdges.size<1)return{visited:!0,areDescendantsResolved:!0};let r=0;for(let i of t.headToTailEdges.values())this.visitEdge({edge:i,selectionPath:n}).areDescendantsResolved&&(r+=1);return{visited:!0,areDescendantsResolved:r===t.headToTailEdges.size}}visitConcreteNode({node:t,selectionPath:n}){if(t.headToTailEdges.size<1)return t.isLeaf=!0,{visited:!0,areDescendantsResolved:!0};let r=this.resDataByNodeName.get(t.nodeName);if(r)return{visited:!0,areDescendantsResolved:r.areDescendantsResolved()};let i=this.getNodeResolutionData({node:t,selectionPath:n});if(i.isResolved()&&i.areDescendantsResolved())return{visited:!0,areDescendantsResolved:!0};for(let[a,o]of t.headToTailEdges){let{visited:c,areDescendantsResolved:l}=this.visitEdge({edge:o,selectionPath:n});this.propagateVisitedField({areDescendantsResolved:l,fieldName:a,data:i,node:t,selectionPath:n,visited:c})}return i.isResolved()?this.unresolvablePaths.delete(n):this.unresolvablePaths.add(n),{visited:!0,areDescendantsResolved:i.areDescendantsResolved()}}visitSharedEdge({edge:t,selectionPath:n}){return t.isInaccessible||t.node.isInaccessible?{visited:!1,areDescendantsResolved:!0}:t.node.isLeaf?{visited:!0,areDescendantsResolved:!0}:(0,Ha.add)(t.visitedIndices,this.index)?(t.node.hasEntitySiblings&&(0,Ha.getValueOrDefault)(this.entityNodeNamesByPath,`${n}.${t.edgeName}`,()=>new Set).add(t.node.nodeName),t.node.isAbstract?this.visitSharedAbstractNode({node:t.node,selectionPath:`${n}.${t.edgeName}`}):this.visitSharedConcreteNode({node:t.node,selectionPath:`${n}.${t.edgeName}`})):{visited:!0,areDescendantsResolved:!0}}visitSharedAbstractNode({node:t,selectionPath:n}){if(t.headToTailEdges.size<1)return{visited:!0,areDescendantsResolved:!0};let r=0;for(let i of t.headToTailEdges.values())this.visitSharedEdge({edge:i,selectionPath:n}).areDescendantsResolved&&(r+=1);return{visited:!0,areDescendantsResolved:r===t.headToTailEdges.size}}visitSharedConcreteNode({node:t,selectionPath:n}){if(t.headToTailEdges.size<1)return t.isLeaf=!0,{visited:!0,areDescendantsResolved:!0};let r=this.getSharedNodeResolutionData({node:t,selectionPath:n});if(r.isResolved()&&r.areDescendantsResolved())return{visited:!0,areDescendantsResolved:!0};for(let[i,a]of t.headToTailEdges){let{visited:o,areDescendantsResolved:c}=this.visitSharedEdge({edge:a,selectionPath:n});this.propagateSharedVisitedField({areDescendantsResolved:c,data:r,fieldName:i,node:t,visited:o})}return r.isResolved()?this.unresolvablePaths.delete(n):this.unresolvablePaths.add(n),{visited:!0,areDescendantsResolved:r.areDescendantsResolved()}}getNodeResolutionData({node:t,selectionPath:n}){let r=(0,Ha.getValueOrDefault)(this.resDataByNodeName,t.nodeName,()=>new UE.NodeResolutionData({fieldDataByName:t.fieldDataByName,typeName:t.typeName}));return(0,Ha.getValueOrDefault)(this.resDataByPath,n,()=>r.copy()),r}getSharedNodeResolutionData({node:t,selectionPath:n}){let r=(0,Ha.getValueOrDefault)(this.resDataByNodeName,t.nodeName,()=>new UE.NodeResolutionData({fieldDataByName:t.fieldDataByName,typeName:t.typeName}));return(0,Ha.getValueOrDefault)(this.resDataByPath,n,()=>r.copy())}propagateVisitedField({areDescendantsResolved:t,data:n,fieldName:r,node:i,selectionPath:a,visited:o}){if(!o)return;n.addResolvedFieldName(r);let c=(0,Ha.getValueOrDefault)(this.resDataByPath,a,()=>new UE.NodeResolutionData({fieldDataByName:i.fieldDataByName,typeName:i.typeName}));c.addResolvedFieldName(r),t&&(n.resolvedDescendantNames.add(r),c.resolvedDescendantNames.add(r))}propagateSharedVisitedField({areDescendantsResolved:t,data:n,fieldName:r,node:i,visited:a}){if(!a)return;n.addResolvedFieldName(r);let o=(0,Ha.getValueOrDefault)(this.resDataByNodeName,i.nodeName,()=>new UE.NodeResolutionData({fieldDataByName:i.fieldDataByName,typeName:i.typeName}));o.addResolvedFieldName(r),t&&(n.resolvedDescendantNames.add(r),o.resolvedDescendantNames.add(r))}visitRootFieldEdges({edges:t,rootTypeName:n}){let r=t.length>1;for(let i of t){if(i.isInaccessible)return{visited:!1,areDescendantsResolved:!1};let a=r?this.visitSharedEdge({edge:i,selectionPath:n}):this.visitEdge({edge:i,selectionPath:n});if(a.areDescendantsResolved)return a}return{visited:!0,areDescendantsResolved:!1}}};kE.RootFieldWalker=mD});var TD=w(xE=>{"use strict";m();T();N();Object.defineProperty(xE,"__esModule",{value:!0});xE.Graph=void 0;var Xl=aD(),vc=lD(),Ei=Sr(),ME=sD(),Kle=lV(),Gle=dV(),ND=class{constructor(){_(this,"edgeId",-1);_(this,"entityDataNodeByTypeName",new Map);_(this,"nodeByNodeName",new Map);_(this,"nodesByTypeName",new Map);_(this,"resolvedRootFieldNodeNames",new Set);_(this,"rootNodeByTypeName",new Map);_(this,"subgraphName",ME.NOT_APPLICABLE);_(this,"resDataByNodeName",new Map);_(this,"resDataByRelativePathByEntity",new Map);_(this,"visitedEntitiesByOriginEntity",new Map);_(this,"walkerIndex",-1)}getRootNode(t){return(0,Ei.getValueOrDefault)(this.rootNodeByTypeName,t,()=>new Xl.RootNode(t))}addOrUpdateNode(t,n){let r=`${this.subgraphName}.${t}`,i=this.nodeByNodeName.get(r);if(i)return i.isAbstract||(i.isAbstract=!!(n!=null&&n.isAbstract)),!i.isLeaf&&(n!=null&&n.isLeaf)&&(i.isLeaf=!0),i;let a=new Xl.GraphNode(this.subgraphName,t,n);return this.nodeByNodeName.set(r,a),(0,Ei.getValueOrDefault)(this.nodesByTypeName,t,()=>[]).push(a),a}addEdge(t,n,r,i=!1){if(t.isRootNode){let c=new Xl.Edge(this.getNextEdgeId(),n,r);return(0,Ei.getValueOrDefault)(t.headToSharedTailEdges,r,()=>[]).push(c),c}let a=t,o=new Xl.Edge(this.getNextEdgeId(),n,i?n.typeName:r,i);return a.headToTailEdges.set(r,o),o}addEntityDataNode(t){let n=this.entityDataNodeByTypeName.get(t);if(n)return n;let r=new Xl.EntityDataNode(t);return this.entityDataNodeByTypeName.set(t,r),r}getNextEdgeId(){return this.edgeId+=1}getNextWalkerIndex(){return this.walkerIndex+=1}setNodeInaccessible(t){let n=this.nodesByTypeName.get(t);if(n)for(let r of n)r.isInaccessible=!0}initializeNode(t,n){let r=this.entityDataNodeByTypeName.get(t);if(ME.ROOT_TYPE_NAMES.has(t)){let a=this.getRootNode(t);a.removeInaccessibleEdges(n),a.fieldDataByName=n;return}let i=this.nodesByTypeName.get(t);if(i){for(let a of i)if(a.fieldDataByName=n,a.handleInaccessibleEdges(),a.isLeaf=!1,!!r){a.hasEntitySiblings=!0;for(let o of a.satisfiedFieldSets){let c=r.targetSubgraphNamesByFieldSet.get(o);for(let l of c!=null?c:[]){if(l===a.subgraphName)continue;let d=this.nodeByNodeName.get(`${l}.${a.typeName}`);d&&a.entityEdges.push(new Xl.Edge(this.getNextEdgeId(),d,""))}}}}}setSubgraphName(t){this.subgraphName=t}visitEntity({encounteredEntityNodeNames:t,entityNodeName:n,relativeOriginPaths:r,resDataByRelativeOriginPath:i,subgraphNameByUnresolvablePath:a,visitedEntities:o}){let c=this.nodeByNodeName.get(n);if(!c)throw new Error(`Fatal: Could not find entity node for "${n}".`);o.add(n);let l=this.nodesByTypeName.get(c.typeName);if(!(l!=null&&l.length))throw new Error(`Fatal: Could not find any nodes for "${n}".`);let d=new Kle.EntityWalker({encounteredEntityNodeNames:t,index:this.getNextWalkerIndex(),relativeOriginPaths:r,resDataByNodeName:this.resDataByNodeName,resDataByRelativeOriginPath:i,subgraphNameByUnresolvablePath:a,visitedEntities:o}),p=c.getAllAccessibleEntityNodeNames();for(let y of l){if(y.nodeName!==c.nodeName&&!p.has(y.nodeName))continue;let{areDescendantsResolved:I}=d.visitEntityDescendantConcreteNode({node:y,selectionPath:""});if(I)return}for(let[y,I]of d.selectionPathByEntityNodeName)this.visitEntity({encounteredEntityNodeNames:t,entityNodeName:y,relativeOriginPaths:(0,vc.getMultipliedRelativeOriginPaths)({relativeOriginPaths:r,selectionPath:I}),resDataByRelativeOriginPath:i,subgraphNameByUnresolvablePath:a,visitedEntities:o})}validate(){for(let t of this.rootNodeByTypeName.values())for(let[n,r]of t.headToSharedTailEdges){let i=r.length>1;if(!i){let p=r[0].node.nodeName;if(this.resolvedRootFieldNodeNames.has(p))continue;this.resolvedRootFieldNodeNames.add(p)}let a=new Gle.RootFieldWalker({index:this.getNextWalkerIndex(),nodeResolutionDataByNodeName:this.resDataByNodeName});if(a.visitRootFieldEdges({edges:r,rootTypeName:t.typeName.toLowerCase()}).areDescendantsResolved)continue;let o=i?a.entityNodeNamesByPath.size>0:a.pathsByEntityNodeName.size>0;if(a.unresolvablePaths.size<1&&!o)continue;let c=(0,Ei.getOrThrowError)(t.fieldDataByName,n,"fieldDataByName"),l=(0,vc.newRootFieldData)(t.typeName,n,c.subgraphNames);if(!o)return{errors:(0,vc.generateRootResolvabilityErrors)({unresolvablePaths:a.unresolvablePaths,resDataByPath:a.resDataByPath,rootFieldData:l}),success:!1};let d=this.validateEntities({isSharedRootField:i,rootFieldData:l,walker:a});if(!d.success)return d}return{success:!0}}consolidateUnresolvableRootWithEntityPaths({pathFromRoot:t,resDataByRelativeOriginPath:n,subgraphNameByUnresolvablePath:r,walker:i}){for(let a of i.unresolvablePaths){if(!a.startsWith(t))continue;let o=a.slice(t.length),c=(0,Ei.getOrThrowError)(i.resDataByPath,a,"rootFieldWalker.unresolvablePaths"),l=n.get(o);if(l){if(c.addData(l),l.addData(c),!c.isResolved()){i.unresolvablePaths.delete(a);continue}i.unresolvablePaths.delete(a),r.delete(o)}}}consolidateUnresolvableEntityWithRootPaths({pathFromRoot:t,resDataByRelativeOriginPath:n,subgraphNameByUnresolvablePath:r,walker:i}){for(let a of r.keys()){let o=(0,Ei.getOrThrowError)(n,a,"resDataByRelativeOriginPath"),c=`${t}${a}`,l=(0,Ei.getOrThrowError)(i.resDataByPath,c,"rootFieldWalker.resDataByPath");o.addData(l),l.addData(o),o.isResolved()&&r.delete(a)}}validateSharedRootFieldEntities({rootFieldData:t,walker:n}){for(let[r,i]of n.entityNodeNamesByPath){let a=new Map,o=new Map;for(let l of i)this.visitEntity({encounteredEntityNodeNames:new Set,entityNodeName:l,resDataByRelativeOriginPath:o,subgraphNameByUnresolvablePath:a,visitedEntities:new Set});if(this.consolidateUnresolvableRootWithEntityPaths({pathFromRoot:r,resDataByRelativeOriginPath:o,subgraphNameByUnresolvablePath:a,walker:n}),a.size<1)continue;this.consolidateUnresolvableEntityWithRootPaths({pathFromRoot:r,resDataByRelativeOriginPath:o,subgraphNameByUnresolvablePath:a,walker:n});let c=new Array;if(a.size>0&&c.push(...this.getSharedEntityResolvabilityErrors({entityNodeNames:i,resDataByPath:o,pathFromRoot:r,rootFieldData:t,subgraphNameByUnresolvablePath:a})),n.unresolvablePaths.size>0&&c.push(...(0,vc.generateRootResolvabilityErrors)({unresolvablePaths:n.unresolvablePaths,resDataByPath:n.resDataByPath,rootFieldData:t})),!(c.length<1))return{errors:c,success:!1}}return n.unresolvablePaths.size>0?{errors:(0,vc.generateRootResolvabilityErrors)({resDataByPath:n.resDataByPath,rootFieldData:t,unresolvablePaths:n.unresolvablePaths}),success:!1}:{success:!0}}validateRootFieldEntities({rootFieldData:t,walker:n}){var r;for(let[i,a]of n.pathsByEntityNodeName){let o=new Map;if(this.resDataByNodeName.has(i))continue;let c=(0,Ei.getValueOrDefault)(this.resDataByRelativePathByEntity,i,()=>new Map);if(this.visitEntity({encounteredEntityNodeNames:new Set,entityNodeName:i,resDataByRelativeOriginPath:c,subgraphNameByUnresolvablePath:o,visitedEntities:(0,Ei.getValueOrDefault)(this.visitedEntitiesByOriginEntity,i,()=>new Set)}),!(o.size<1))return{errors:this.getEntityResolvabilityErrors({entityNodeName:i,pathFromRoot:(r=(0,Ei.getFirstEntry)(a))!=null?r:"",rootFieldData:t,subgraphNameByUnresolvablePath:o}),success:!1}}return{success:!0}}validateEntities(t){return t.isSharedRootField?this.validateSharedRootFieldEntities(t):this.validateRootFieldEntities(t)}getEntityResolvabilityErrors({entityNodeName:t,pathFromRoot:n,rootFieldData:r,subgraphNameByUnresolvablePath:i}){let a=(0,Ei.getOrThrowError)(this.resDataByRelativePathByEntity,t,"resDataByRelativePathByEntity"),o=t.split(ME.LITERAL_PERIOD)[1],{fieldSetsByTargetSubgraphName:c}=(0,Ei.getOrThrowError)(this.entityDataNodeByTypeName,o,"entityDataNodeByTypeName");return(0,vc.generateEntityResolvabilityErrors)({entityAncestorData:{fieldSetsByTargetSubgraphName:c,subgraphName:"",typeName:o},pathFromRoot:n,resDataByPath:a,rootFieldData:r,subgraphNameByUnresolvablePath:i})}getSharedEntityResolvabilityErrors({entityNodeNames:t,pathFromRoot:n,rootFieldData:r,resDataByPath:i,subgraphNameByUnresolvablePath:a}){let o,c=new Array;for(let d of t){let p=d.split(ME.LITERAL_PERIOD);o!=null||(o=p[1]),c.push(p[0])}let{fieldSetsByTargetSubgraphName:l}=(0,Ei.getOrThrowError)(this.entityDataNodeByTypeName,o,"entityDataNodeByTypeName");return(0,vc.generateSharedEntityResolvabilityErrors)({entityAncestors:{fieldSetsByTargetSubgraphName:l,subgraphNames:c,typeName:o},pathFromRoot:n,resDataByPath:i,rootFieldData:r,subgraphNameByUnresolvablePath:a})}};xE.Graph=ND});var ED=w(qE=>{"use strict";m();T();N();Object.defineProperty(qE,"__esModule",{value:!0});qE.newFieldSetConditionData=$le;qE.newConfigurationData=Qle;function $le({fieldCoordinatesPath:e,fieldPath:t}){return{fieldCoordinatesPath:e,fieldPath:t}}function Qle(e,t){return{fieldNames:new Set,isRootNode:e,typeName:t}}});var yD=w(Sc=>{"use strict";m();T();N();Object.defineProperty(Sc,"__esModule",{value:!0});Sc.NormalizationFactory=void 0;Sc.normalizeSubgraphFromString=zle;Sc.normalizeSubgraph=pV;Sc.batchNormalize=Wle;var Z=De(),bn=Hr(),ni=zf(),qt=Ss(),Gn=Hf(),le=xi(),VE=Yl(),Yle=bv(),hi=iE(),Jle=HO(),Wa=Wf(),fV=eD(),za=Df(),sn=Sl(),rr=du(),hD=TD(),jE=Pv(),z=vr(),Hle=gl(),je=Sr(),Zf=ED();function zle(e,t=!0){let{error:n,documentNode:r}=(0,bn.safeParse)(e,t);return n||!r?{errors:[(0,le.subgraphInvalidSyntaxError)(n)],success:!1,warnings:[]}:new ep(new hD.Graph).normalize(r)}function pV(e,t,n){return new ep(n||new hD.Graph,t).normalize(e)}var ep=class{constructor(t,n){_(this,"argumentName","");_(this,"authorizationDataByParentTypeName",new Map);_(this,"concreteTypeNamesByAbstractTypeName",new Map);_(this,"conditionalFieldDataByCoords",new Map);_(this,"configurationDataByTypeName",new Map);_(this,"customDirectiveDefinitions",new Map);_(this,"definedDirectiveNames",new Set);_(this,"directiveDefinitionByDirectiveName",new Map);_(this,"directiveDefinitionDataByDirectiveName",(0,ni.initializeDirectiveDefinitionDatas)());_(this,"doesParentRequireFetchReasons",!1);_(this,"edfsDirectiveReferences",new Set);_(this,"errors",new Array);_(this,"entityDataByTypeName",new Map);_(this,"entityInterfaceDataByTypeName",new Map);_(this,"eventsConfigurations",new Map);_(this,"fieldSetDataByTypeName",new Map);_(this,"internalGraph");_(this,"invalidConfigureDescriptionNodeDatas",[]);_(this,"invalidORScopesCoords",new Set);_(this,"invalidRepeatedDirectiveNameByCoords",new Map);_(this,"isParentObjectExternal",!1);_(this,"isParentObjectShareable",!1);_(this,"isSubgraphEventDrivenGraph",!1);_(this,"isSubgraphVersionTwo",!1);_(this,"keyFieldSetDatasByTypeName",new Map);_(this,"lastParentNodeKind",Z.Kind.NULL);_(this,"lastChildNodeKind",Z.Kind.NULL);_(this,"parentTypeNamesWithAuthDirectives",new Set);_(this,"keyFieldSetsByEntityTypeNameByFieldCoords",new Map);_(this,"keyFieldNamesByParentTypeName",new Map);_(this,"fieldCoordsByNamedTypeName",new Map);_(this,"operationTypeNodeByTypeName",new Map);_(this,"originalParentTypeName","");_(this,"originalTypeNameByRenamedTypeName",new Map);_(this,"overridesByTargetSubgraphName",new Map);_(this,"parentDefinitionDataByTypeName",new Map);_(this,"schemaData");_(this,"referencedDirectiveNames",new Set);_(this,"referencedTypeNames",new Set);_(this,"renamedParentTypeName","");_(this,"subgraphName");_(this,"unvalidatedExternalFieldCoords",new Set);_(this,"usesEdfsNatsStreamConfiguration",!1);_(this,"warnings",[]);for(let[r,i]of qt.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME)this.directiveDefinitionByDirectiveName.set(r,i);this.subgraphName=n||z.NOT_APPLICABLE,this.internalGraph=t,this.internalGraph.setSubgraphName(this.subgraphName),this.schemaData={directivesByDirectiveName:new Map,kind:Z.Kind.SCHEMA_DEFINITION,name:z.SCHEMA,operationTypes:new Map}}validateArguments(t,n){for(let r of t.argumentDataByName.values()){let i=(0,rr.getTypeNodeNamedTypeName)(r.type);if(qt.BASE_SCALARS.has(i)){r.namedTypeKind=Z.Kind.SCALAR_TYPE_DEFINITION;continue}let a=this.parentDefinitionDataByTypeName.get(i);if(a){if((0,sn.isInputNodeKind)(a.kind)){r.namedTypeKind=a.kind;continue}this.errors.push((0,le.invalidNamedTypeError)({data:r,namedTypeData:a,nodeType:`${(0,je.kindToNodeType)(n)} field argument`}))}}}isTypeNameRootType(t){return z.ROOT_TYPE_NAMES.has(t)||this.operationTypeNodeByTypeName.has(t)}isArgumentValueValid(t,n){if(n.kind===Z.Kind.NULL)return t.kind!==Z.Kind.NON_NULL_TYPE;switch(t.kind){case Z.Kind.LIST_TYPE:{if(n.kind!==Z.Kind.LIST)return this.isArgumentValueValid((0,rr.getNamedTypeNode)(t.type),n);for(let r of n.values)if(!this.isArgumentValueValid(t.type,r))return!1;return!0}case Z.Kind.NAMED_TYPE:switch(t.name.value){case z.BOOLEAN_SCALAR:return n.kind===Z.Kind.BOOLEAN;case z.FLOAT_SCALAR:return n.kind===Z.Kind.FLOAT||n.kind===Z.Kind.INT;case z.ID_SCALAR:return n.kind===Z.Kind.STRING||n.kind===Z.Kind.INT;case z.INT_SCALAR:return n.kind===Z.Kind.INT;case z.FIELD_SET_SCALAR:case z.SCOPE_SCALAR:case z.STRING_SCALAR:return n.kind===Z.Kind.STRING;case z.LINK_IMPORT:return!0;case z.LINK_PURPOSE:return n.kind!==Z.Kind.ENUM?!1:n.value===z.SECURITY||n.value===z.EXECUTION;case z.SUBSCRIPTION_FIELD_CONDITION:case z.SUBSCRIPTION_FILTER_CONDITION:return n.kind===Z.Kind.OBJECT;default:{let r=this.parentDefinitionDataByTypeName.get(t.name.value);if(!r)return!1;if(r.kind===Z.Kind.SCALAR_TYPE_DEFINITION)return!0;if(r.kind===Z.Kind.ENUM_TYPE_DEFINITION){if(n.kind!==Z.Kind.ENUM)return!1;let i=r.enumValueDataByName.get(n.value);return i?!i.directivesByDirectiveName.has(z.INACCESSIBLE):!1}return r.kind!==Z.Kind.INPUT_OBJECT_TYPE_DEFINITION?!1:n.kind===Z.Kind.OBJECT}}default:return this.isArgumentValueValid(t.type,n)}}handleFieldInheritableDirectives({directivesByDirectiveName:t,fieldName:n,inheritedDirectiveNames:r,parentData:i}){this.doesParentRequireFetchReasons&&!t.has(z.REQUIRE_FETCH_REASONS)&&(t.set(z.REQUIRE_FETCH_REASONS,[(0,je.generateSimpleDirective)(z.REQUIRE_FETCH_REASONS)]),r.add(z.REQUIRE_FETCH_REASONS)),(this.doesParentRequireFetchReasons||t.has(z.REQUIRE_FETCH_REASONS))&&i.requireFetchReasonsFieldNames.add(n),(0,Gn.isObjectDefinitionData)(i)&&(this.isParentObjectExternal&&!t.has(z.EXTERNAL)&&(t.set(z.EXTERNAL,[(0,je.generateSimpleDirective)(z.EXTERNAL)]),r.add(z.EXTERNAL)),t.has(z.EXTERNAL)&&this.unvalidatedExternalFieldCoords.add(`${i.name}.${n}`),this.isParentObjectShareable&&!t.has(z.SHAREABLE)&&(t.set(z.SHAREABLE,[(0,je.generateSimpleDirective)(z.SHAREABLE)]),r.add(z.SHAREABLE)))}extractDirectives(t,n){if(!t.directives)return n;let r=(0,Gn.isCompositeOutputNodeKind)(t.kind),i=(0,Gn.isObjectNodeKind)(t.kind);for(let a of t.directives){let o=a.name.value;o===z.SHAREABLE?(0,je.getValueOrDefault)(n,o,()=>[a]):(0,je.getValueOrDefault)(n,o,()=>[]).push(a),r&&(this.doesParentRequireFetchReasons||(this.doesParentRequireFetchReasons=o===z.REQUIRE_FETCH_REASONS),i&&(this.isParentObjectExternal||(this.isParentObjectExternal=o===z.EXTERNAL),this.isParentObjectShareable||(this.isParentObjectShareable=o===z.SHAREABLE)))}return n}validateDirective({data:t,definitionData:n,directiveCoords:r,directiveNode:i,errorMessages:a,requiredArgumentNames:o}){let c=i.name.value,l=t.kind===Z.Kind.FIELD_DEFINITION?t.renamedParentTypeName||t.originalParentTypeName:t.name,d=c===z.AUTHENTICATED,p=(0,sn.isFieldData)(t),y=c===z.OVERRIDE,I=c===z.REQUIRES_SCOPES,v=c===z.SEMANTIC_NON_NULL;if(!i.arguments||i.arguments.length<1)return n.requiredArgumentNames.size>0&&a.push((0,le.undefinedRequiredArgumentsErrorMessage)(c,o,[])),d&&this.handleAuthenticatedDirective(t,l),v&&p&&((0,sn.isTypeRequired)(t.type)?a.push((0,le.semanticNonNullLevelsNonNullErrorMessage)({typeString:(0,hi.printTypeNode)(t.type),value:"0"})):t.nullLevelsBySubgraphName.set(this.subgraphName,new Set([0]))),a;let F=new Set,k=new Set,K=new Set,J=[];for(let Te of i.arguments){let de=Te.name.value;if(F.has(de)){k.add(de);continue}F.add(de);let Re=n.argumentTypeNodeByName.get(de);if(!Re){K.add(de);continue}if(!this.isArgumentValueValid(Re.typeNode,Te.value)){a.push((0,le.invalidArgumentValueErrorMessage)((0,Z.print)(Te.value),`@${c}`,de,(0,hi.printTypeNode)(Re.typeNode)));continue}if(y&&p){this.handleOverrideDirective({data:t,directiveCoords:r,errorMessages:a,targetSubgraphName:Te.value.value});continue}if(v&&p){this.handleSemanticNonNullDirective({data:t,directiveNode:i,errorMessages:a});continue}!I||de!==z.SCOPES||this.extractRequiredScopes({directiveCoords:r,orScopes:Te.value.values,requiredScopes:J})}k.size>0&&a.push((0,le.duplicateDirectiveArgumentDefinitionsErrorMessage)([...k])),K.size>0&&a.push((0,le.unexpectedDirectiveArgumentErrorMessage)(c,[...K]));let se=(0,je.getEntriesNotInHashSet)(o,F);if(se.length>0&&a.push((0,le.undefinedRequiredArgumentsErrorMessage)(c,o,se)),a.length>0||!I)return a;let ie=(0,je.getValueOrDefault)(this.authorizationDataByParentTypeName,l,()=>(0,Gn.newAuthorizationData)(l));if(t.kind!==Z.Kind.FIELD_DEFINITION)this.parentTypeNamesWithAuthDirectives.add(l),ie.requiredScopes.push(...J);else{let Te=(0,je.getValueOrDefault)(ie.fieldAuthDataByFieldName,t.name,()=>(0,Gn.newFieldAuthorizationData)(t.name));Te.inheritedData.requiredScopes.push(...J),Te.originalData.requiredScopes.push(...J)}return a}validateDirectives(t,n){let r=new Set;for(let[i,a]of t.directivesByDirectiveName){let o=this.directiveDefinitionDataByDirectiveName.get(i);if(!o){r.has(i)||(this.errors.push((0,le.undefinedDirectiveError)(i,n)),r.add(i));continue}let c=[],l=(0,bn.nodeKindToDirectiveLocation)(t.kind);if(o.locations.has(l)||c.push((0,le.invalidDirectiveLocationErrorMessage)(i,l)),a.length>1&&!o.isRepeatable){let p=(0,je.getValueOrDefault)(this.invalidRepeatedDirectiveNameByCoords,n,()=>new Set);p.has(i)||(p.add(i),c.push((0,le.invalidRepeatedDirectiveErrorMessage)(i)))}let d=[...o.requiredArgumentNames];for(let p=0;p0&&this.errors.push((0,le.invalidDirectiveError)(i,n,(0,je.numberToOrdinal)(p+1),y))}}switch(t.kind){case Z.Kind.ENUM_TYPE_DEFINITION:{for(let[i,a]of t.enumValueDataByName)this.validateDirectives(a,`${t.name}.${i}`);return}case Z.Kind.FIELD_DEFINITION:{for(let[i,a]of t.argumentDataByName)this.validateDirectives(a,`${t.originalParentTypeName}.${t.name}(${i}: ...)`);return}case Z.Kind.INPUT_OBJECT_TYPE_DEFINITION:{for(let[i,a]of t.inputValueDataByName)this.validateDirectives(a,`${t.name}.${i}`);return}case Z.Kind.INTERFACE_TYPE_DEFINITION:case Z.Kind.OBJECT_TYPE_DEFINITION:{for(let[i,a]of t.fieldDataByName)this.validateDirectives(a,`${t.name}.${i}`);return}default:return}}getNodeExtensionType(t,n,r=!1){return t?za.ExtensionType.REAL:r||!n.has(z.EXTENDS)?za.ExtensionType.NONE:za.ExtensionType.EXTENDS}setParentDataExtensionType(t,n){switch(t.extensionType){case za.ExtensionType.EXTENDS:case za.ExtensionType.NONE:{if(n===za.ExtensionType.REAL)return;this.errors.push((0,le.duplicateTypeDefinitionError)((0,je.kindToNodeType)(t.kind),t.name));return}default:t.extensionType=n}}extractConfigureDescriptionData(t,n){var i,a;if(!n.arguments||n.arguments.length<1){t.description||this.invalidConfigureDescriptionNodeDatas.push(t),t.configureDescriptionDataBySubgraphName.set(this.subgraphName,{propagate:!0,description:((i=t.description)==null?void 0:i.value)||""});return}let r={propagate:!0,description:((a=t.description)==null?void 0:a.value)||""};for(let o of n.arguments)switch(o.name.value){case z.PROPAGATE:{if(o.value.kind!=Z.Kind.BOOLEAN)return;r.propagate=o.value.value;break}case z.DESCRIPTION_OVERRIDE:{if(o.value.kind!=Z.Kind.STRING)return;r.description=o.value.value;break}default:return}!t.description&&!r.description&&this.invalidConfigureDescriptionNodeDatas.push(t),t.configureDescriptionDataBySubgraphName.set(this.subgraphName,r)}extractConfigureDescriptionsData(t){let n=t.directivesByDirectiveName.get(z.CONFIGURE_DESCRIPTION);n&&n.length==1&&this.extractConfigureDescriptionData(t,n[0])}extractImplementedInterfaceTypeNames(t,n){if(!t.interfaces)return n;let r=t.name.value;for(let i of t.interfaces){let a=i.name.value;if(n.has(a)){this.errors.push((0,le.duplicateImplementedInterfaceError)((0,Gn.kindToConvertedTypeString)(t.kind),r,a));continue}n.add(a)}return n}updateCompositeOutputDataByNode(t,n,r){this.setParentDataExtensionType(n,r),this.extractImplementedInterfaceTypeNames(t,n.implementedInterfaceTypeNames),n.description||(n.description=(0,bn.formatDescription)("description"in t?t.description:void 0)),this.extractConfigureDescriptionsData(n),n.isEntity||(n.isEntity=n.directivesByDirectiveName.has(z.KEY)),n.isInaccessible||(n.isInaccessible=n.directivesByDirectiveName.has(z.INACCESSIBLE)),n.subgraphNames.add(this.subgraphName)}addConcreteTypeNamesForImplementedInterfaces(t,n){for(let r of t)(0,je.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,r,()=>new Set).add(n),this.internalGraph.addEdge(this.internalGraph.addOrUpdateNode(r,{isAbstract:!0}),this.internalGraph.addOrUpdateNode(n),n,!0)}extractArguments(t,n){var o;if(!((o=n.arguments)!=null&&o.length))return t;let r=n.name.value,i=`${this.originalParentTypeName}.${r}`,a=new Set;for(let c of n.arguments){let l=c.name.value;if(t.has(l)){a.add(l);continue}this.addInputValueDataByNode({fieldName:r,inputValueDataByName:t,isArgument:!0,node:c,originalParentTypeName:this.originalParentTypeName,renamedParentTypeName:this.renamedParentTypeName})}return a.size>0&&this.errors.push((0,le.duplicateArgumentsError)(i,[...a])),t}addPersistedDirectiveDefinitionDataByNode(t,n,r){let i=n.name.value,a=`@${i}`,o=new Map;for(let c of n.arguments||[])this.addInputValueDataByNode({inputValueDataByName:o,isArgument:!0,node:c,originalParentTypeName:a});t.set(i,{argumentDataByName:o,executableLocations:r,name:i,repeatable:n.repeatable,subgraphNames:new Set([this.subgraphName]),description:(0,bn.formatDescription)(n.description)})}extractDirectiveLocations(t,n){let r=new Set,i=new Set;for(let a of t.locations){let o=a.value;if(!i.has(o)){if(!z.EXECUTABLE_DIRECTIVE_LOCATIONS.has(o)&&!VE.TYPE_SYSTEM_DIRECTIVE_LOCATIONS.has(o)){n.push((0,le.invalidDirectiveDefinitionLocationErrorMessage)(o)),i.add(o);continue}if(r.has(o)){n.push((0,le.duplicateDirectiveDefinitionLocationErrorMessage)(o)),i.add(o);continue}r.add(o)}}return r}extractArgumentData(t,n){let r=new Map,i=new Set,a=new Set,o={argumentTypeNodeByName:r,optionalArgumentNames:i,requiredArgumentNames:a};if(!t)return o;let c=new Set;for(let l of t){let d=l.name.value;if(r.has(d)){c.add(d);continue}l.defaultValue&&i.add(d),(0,sn.isTypeRequired)(l.type)&&!l.defaultValue&&a.add(d),r.set(d,{name:d,typeNode:l.type,defaultValue:l.defaultValue})}return c.size>0&&n.push((0,le.duplicateDirectiveDefinitionArgumentErrorMessage)([...c])),o}addDirectiveDefinitionDataByNode(t){let n=t.name.value;if(this.definedDirectiveNames.has(n))return this.errors.push((0,le.duplicateDirectiveDefinitionError)(n)),!1;if(this.definedDirectiveNames.add(n),this.directiveDefinitionByDirectiveName.set(n,t),qt.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(n))return this.isSubgraphVersionTwo=!0,!1;if(qt.ALL_IN_BUILT_DIRECTIVE_NAMES.has(n))return!1;let r=[],{argumentTypeNodeByName:i,optionalArgumentNames:a,requiredArgumentNames:o}=this.extractArgumentData(t.arguments,r);return this.directiveDefinitionDataByDirectiveName.set(n,{argumentTypeNodeByName:i,isRepeatable:t.repeatable,locations:this.extractDirectiveLocations(t,r),name:n,node:t,optionalArgumentNames:a,requiredArgumentNames:o}),r.length>0&&this.errors.push((0,le.invalidDirectiveDefinitionError)(n,r)),!0}addFieldDataByNode(t,n,r,i,a=new Set){let o=n.name.value,c=this.renamedParentTypeName||this.originalParentTypeName,l=`${this.originalParentTypeName}.${o}`,{isExternal:d,isShareable:p}=(0,sn.isNodeExternalOrShareable)(n,!this.isSubgraphVersionTwo,i),y=(0,rr.getTypeNodeNamedTypeName)(n.type),I={argumentDataByName:r,configureDescriptionDataBySubgraphName:new Map,externalFieldDataBySubgraphName:new Map([[this.subgraphName,(0,sn.newExternalFieldData)(d)]]),federatedCoords:`${c}.${o}`,inheritedDirectiveNames:a,isInaccessible:i.has(z.INACCESSIBLE),isShareableBySubgraphName:new Map([[this.subgraphName,p]]),kind:Z.Kind.FIELD_DEFINITION,name:o,namedTypeKind:qt.BASE_SCALARS.has(y)?Z.Kind.SCALAR_TYPE_DEFINITION:Z.Kind.NULL,namedTypeName:y,node:(0,rr.getMutableFieldNode)(n,l,this.errors),nullLevelsBySubgraphName:new Map,originalParentTypeName:this.originalParentTypeName,persistedDirectivesData:(0,sn.newPersistedDirectivesData)(),renamedParentTypeName:c,subgraphNames:new Set([this.subgraphName]),type:(0,rr.getMutableTypeNode)(n.type,l,this.errors),directivesByDirectiveName:i,description:(0,bn.formatDescription)(n.description)};return qt.BASE_SCALARS.has(I.namedTypeName)||this.referencedTypeNames.add(I.namedTypeName),this.extractConfigureDescriptionsData(I),t.set(o,I),I}addInputValueDataByNode({fieldName:t,inputValueDataByName:n,isArgument:r,node:i,originalParentTypeName:a,renamedParentTypeName:o}){let c=o||a,l=i.name.value,d=r?`${a}${t?`.${t}`:""}(${l}: ...)`:`${a}.${l}`;i.defaultValue&&!(0,sn.areDefaultValuesCompatible)(i.type,i.defaultValue)&&this.errors.push((0,le.incompatibleInputValueDefaultValueTypeError)((r?z.ARGUMENT:z.INPUT_FIELD)+` "${l}"`,d,(0,hi.printTypeNode)(i.type),(0,Z.print)(i.defaultValue)));let p=r?`${c}${t?`.${t}`:""}(${l}: ...)`:`${c}.${l}`,y=(0,rr.getTypeNodeNamedTypeName)(i.type),I={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:this.extractDirectives(i,new Map),federatedCoords:p,fieldName:t,includeDefaultValue:!!i.defaultValue,isArgument:r,kind:r?Z.Kind.ARGUMENT:Z.Kind.INPUT_VALUE_DEFINITION,name:l,namedTypeKind:qt.BASE_SCALARS.has(y)?Z.Kind.SCALAR_TYPE_DEFINITION:Z.Kind.NULL,namedTypeName:y,node:(0,rr.getMutableInputValueNode)(i,a,this.errors),originalCoords:d,originalParentTypeName:a,persistedDirectivesData:(0,sn.newPersistedDirectivesData)(),renamedParentTypeName:c,requiredSubgraphNames:new Set((0,sn.isTypeRequired)(i.type)?[this.subgraphName]:[]),subgraphNames:new Set([this.subgraphName]),type:(0,rr.getMutableTypeNode)(i.type,a,this.errors),defaultValue:i.defaultValue,description:(0,bn.formatDescription)(i.description)};this.extractConfigureDescriptionsData(I),n.set(l,I)}upsertInterfaceDataByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.getNodeExtensionType(n,a),c=this.entityInterfaceDataByTypeName.get(r);if(c&&t.fields)for(let d of t.fields)c.interfaceFieldNames.add(d.name.value);if(i){if(i.kind!==Z.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,le.multipleNamedTypeDefinitionError)(r,(0,je.kindToNodeType)(i.kind),(0,Gn.kindToConvertedTypeString)(t.kind)));return}this.updateCompositeOutputDataByNode(t,i,o);return}let l={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:o,fieldDataByName:new Map,implementedInterfaceTypeNames:this.extractImplementedInterfaceTypeNames(t,new Set),isEntity:a.has(z.KEY),isInaccessible:a.has(z.INACCESSIBLE),kind:Z.Kind.INTERFACE_TYPE_DEFINITION,name:r,node:(0,rr.getMutableInterfaceNode)(t.name),persistedDirectivesData:(0,sn.newPersistedDirectivesData)(),requireFetchReasonsFieldNames:new Set,subgraphNames:new Set([this.subgraphName]),description:(0,bn.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(l),this.parentDefinitionDataByTypeName.set(r,l)}getRenamedRootTypeName(t){let n=this.operationTypeNodeByTypeName.get(t);if(!n)return t;switch(n){case Z.OperationTypeNode.MUTATION:return z.MUTATION;case Z.OperationTypeNode.SUBSCRIPTION:return z.SUBSCRIPTION;default:return z.QUERY}}addInterfaceObjectFieldsByNode(t){let n=t.name.value,r=this.entityInterfaceDataByTypeName.get(n);if(!(!r||!r.isInterfaceObject||!t.fields))for(let i of t.fields)r.interfaceObjectFieldNames.add(i.name.value)}upsertObjectDataByNode(t,n=!1){var p;let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(p=i==null?void 0:i.directivesByDirectiveName)!=null?p:new Map),o=this.isTypeNameRootType(r),c=this.getNodeExtensionType(n,a,o);if(this.addInterfaceObjectFieldsByNode(t),i){if(i.kind!==Z.Kind.OBJECT_TYPE_DEFINITION){this.errors.push((0,le.multipleNamedTypeDefinitionError)(r,(0,je.kindToNodeType)(i.kind),(0,Gn.kindToConvertedTypeString)(t.kind)));return}this.updateCompositeOutputDataByNode(t,i,c),a.has(z.INTERFACE_OBJECT)||this.addConcreteTypeNamesForImplementedInterfaces(i.implementedInterfaceTypeNames,r);return}let l=this.extractImplementedInterfaceTypeNames(t,new Set);a.has(z.INTERFACE_OBJECT)||this.addConcreteTypeNamesForImplementedInterfaces(l,r);let d={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:c,fieldDataByName:new Map,implementedInterfaceTypeNames:l,isEntity:a.has(z.KEY),isInaccessible:a.has(z.INACCESSIBLE),isRootType:o,kind:Z.Kind.OBJECT_TYPE_DEFINITION,name:r,node:(0,rr.getMutableObjectNode)(t.name),persistedDirectivesData:(0,sn.newPersistedDirectivesData)(),requireFetchReasonsFieldNames:new Set,renamedTypeName:this.getRenamedRootTypeName(r),subgraphNames:new Set([this.subgraphName]),description:(0,bn.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(d),this.parentDefinitionDataByTypeName.set(r,d)}upsertEnumDataByNode(t,n=!1){let r=t.name.value;this.internalGraph.addOrUpdateNode(r,{isLeaf:!0});let i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.getNodeExtensionType(n,a);if(i){if(i.kind!==Z.Kind.ENUM_TYPE_DEFINITION){this.errors.push((0,le.multipleNamedTypeDefinitionError)(r,(0,je.kindToNodeType)(i.kind),(0,Gn.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.isInaccessible||(i.isInaccessible=a.has(z.INACCESSIBLE)),i.subgraphNames.add(this.subgraphName),i.description||(i.description=(0,bn.formatDescription)("description"in t?t.description:void 0)),this.extractConfigureDescriptionsData(i);return}let c={appearances:1,configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:o,enumValueDataByName:new Map,isInaccessible:a.has(z.INACCESSIBLE),kind:Z.Kind.ENUM_TYPE_DEFINITION,name:r,node:(0,rr.getMutableEnumNode)(t.name),persistedDirectivesData:(0,sn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,bn.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(c),this.parentDefinitionDataByTypeName.set(r,c)}upsertInputObjectByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.getNodeExtensionType(n,a);if(i){if(i.kind!==Z.Kind.INPUT_OBJECT_TYPE_DEFINITION){this.errors.push((0,le.multipleNamedTypeDefinitionError)(r,(0,je.kindToNodeType)(i.kind),(0,Gn.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.isInaccessible||(i.isInaccessible=a.has(z.INACCESSIBLE)),i.subgraphNames.add(this.subgraphName),i.description||(i.description=(0,bn.formatDescription)("description"in t?t.description:void 0)),this.extractConfigureDescriptionsData(i);return}let c={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:o,inputValueDataByName:new Map,isInaccessible:a.has(z.INACCESSIBLE),kind:Z.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:r,node:(0,rr.getMutableInputObjectNode)(t.name),persistedDirectivesData:(0,sn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,bn.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(c),this.parentDefinitionDataByTypeName.set(r,c)}upsertScalarByNode(t,n=!1){let r=t.name.value;this.internalGraph.addOrUpdateNode(r,{isLeaf:!0});let i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.getNodeExtensionType(n,a);if(i){if(i.kind!==Z.Kind.SCALAR_TYPE_DEFINITION){this.errors.push((0,le.multipleNamedTypeDefinitionError)(r,(0,je.kindToNodeType)(i.kind),(0,Gn.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.description||(i.description=(0,bn.formatDescription)("description"in t?t.description:void 0)),i.subgraphNames.add(this.subgraphName),this.extractConfigureDescriptionsData(i);return}let c={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:o,kind:Z.Kind.SCALAR_TYPE_DEFINITION,name:r,node:(0,rr.getMutableScalarNode)(t.name),persistedDirectivesData:(0,sn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,bn.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(c),this.parentDefinitionDataByTypeName.set(r,c)}extractUnionMembers(t,n){if(!t.types)return n;let r=t.name.value;for(let i of t.types){let a=i.name.value;if(n.has(a)){this.errors.push((0,le.duplicateUnionMemberDefinitionError)(r,a));continue}(0,je.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,r,()=>new Set).add(a),qt.BASE_SCALARS.has(a)||this.referencedTypeNames.add(a),n.set(a,i)}return n}upsertUnionByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.getNodeExtensionType(n,a);if(this.addConcreteTypeNamesForUnion(t),i){if(i.kind!==Z.Kind.UNION_TYPE_DEFINITION){this.errors.push((0,le.multipleNamedTypeDefinitionError)(r,(0,je.kindToNodeType)(i.kind),(0,Gn.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),this.extractUnionMembers(t,i.memberByMemberTypeName),i.description||(i.description=(0,bn.formatDescription)("description"in t?t.description:void 0)),i.subgraphNames.add(this.subgraphName),this.extractConfigureDescriptionsData(i);return}let c={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:o,kind:Z.Kind.UNION_TYPE_DEFINITION,memberByMemberTypeName:this.extractUnionMembers(t,new Map),name:r,node:(0,rr.getMutableUnionNode)(t.name),persistedDirectivesData:(0,sn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,bn.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(c),this.parentDefinitionDataByTypeName.set(r,c)}extractKeyFieldSets(t,n){var a;let r=t.name.value;if(!((a=t.directives)!=null&&a.length)){this.errors.push((0,le.expectedEntityError)(r));return}let i=0;for(let o of t.directives){if(o.name.value!==z.KEY||(i+=1,!o.arguments||o.arguments.length<1))continue;let c,l=!1;for(let v of o.arguments){if(v.name.value===z.RESOLVABLE){v.value.kind===Z.Kind.BOOLEAN&&!v.value.value&&(l=!0);continue}if(v.name.value!==z.FIELDS){c=void 0;break}if(v.value.kind!==Z.Kind.STRING){c=void 0;break}c=v.value.value}if(c===void 0)continue;let{error:d,documentNode:p}=(0,bn.safeParse)("{"+c+"}");if(d||!p){this.errors.push((0,le.invalidDirectiveError)(z.KEY,r,(0,je.numberToOrdinal)(i),[(0,le.unparsableFieldSetErrorMessage)(c,d)]));continue}let y=(0,ni.getNormalizedFieldSet)(p),I=n.get(y);I?I.isUnresolvable||(I.isUnresolvable=l):n.set(y,{documentNode:p,isUnresolvable:l,normalizedFieldSet:y,rawFieldSet:c})}}getFieldSetParent(t,n,r,i){if(!t)return{fieldSetParentData:n};let a=(0,je.getOrThrowError)(n.fieldDataByName,r,`${i}.fieldDataByFieldName`),o=(0,rr.getTypeNodeNamedTypeName)(a.node.type),c=this.parentDefinitionDataByTypeName.get(o);return c?c.kind!==Z.Kind.INTERFACE_TYPE_DEFINITION&&c.kind!==Z.Kind.OBJECT_TYPE_DEFINITION?{errorString:(0,le.incompatibleTypeWithProvidesErrorMessage)(`${i}.${r}`,o)}:{fieldSetParentData:c}:{errorString:(0,le.unknownNamedTypeErrorMessage)(`${i}.${r}`,o)}}validateConditionalFieldSet(t,n,r,i,a){let{error:o,documentNode:c}=(0,bn.safeParse)("{"+n+"}");if(o||!c)return{errorMessages:[(0,le.unparsableFieldSetErrorMessage)(n,o)]};let l=this,d=[t],p=(0,ni.getConditionalFieldSetDirectiveName)(i),y=[],I=`${a}.${r}`,v=(0,ni.getInitialFieldCoordsPath)(i,I),F=[r],k=new Set,K=[],J=-1,se=!0,ie=r,Te=!1;return(0,Z.visit)(c,{Argument:{enter(){return!1}},Field:{enter(de){let Re=d[J],xe=Re.name;if(Re.kind===Z.Kind.UNION_TYPE_DEFINITION)return K.push((0,le.invalidSelectionOnUnionErrorMessage)(n,v,xe)),Z.BREAK;let tt=de.name.value,ee=`${xe}.${tt}`;if(l.unvalidatedExternalFieldCoords.delete(ee),se)return K.push((0,le.invalidSelectionSetErrorMessage)(n,v,xe,(0,je.kindToNodeType)(Re.kind))),Z.BREAK;v.push(ee),F.push(tt),ie=tt;let Se=Re.fieldDataByName.get(tt);if(!Se)return K.push((0,le.undefinedFieldInFieldSetErrorMessage)(n,xe,tt)),Z.BREAK;if(y[J].has(tt))return K.push((0,le.duplicateFieldInFieldSetErrorMessage)(n,ee)),Z.BREAK;y[J].add(tt);let{isDefinedExternal:_t,isUnconditionallyProvided:en}=(0,je.getOrThrowError)(Se.externalFieldDataBySubgraphName,l.subgraphName,`${ee}.externalFieldDataBySubgraphName`),tn=_t&&!en;en||(Te=!0);let An=(0,rr.getTypeNodeNamedTypeName)(Se.node.type),Qt=l.parentDefinitionDataByTypeName.get(An);if(qt.BASE_SCALARS.has(An)||(Qt==null?void 0:Qt.kind)===Z.Kind.SCALAR_TYPE_DEFINITION||(Qt==null?void 0:Qt.kind)===Z.Kind.ENUM_TYPE_DEFINITION){if(k.size<1&&!_t){if(l.isSubgraphVersionTwo){l.errors.push((0,le.nonExternalConditionalFieldError)(I,l.subgraphName,ee,n,p));return}l.warnings.push((0,Wa.nonExternalConditionalFieldWarning)(I,l.subgraphName,ee,n,p));return}if(k.size<1&&en){l.isSubgraphVersionTwo?K.push((0,le.fieldAlreadyProvidedErrorMessage)(ee,l.subgraphName,p)):l.warnings.push((0,Wa.fieldAlreadyProvidedWarning)(ee,p,I,l.subgraphName));return}if(!tn&&!i)return;let mn=(0,je.getValueOrDefault)(l.conditionalFieldDataByCoords,ee,sn.newConditionalFieldData),Pr=(0,Zf.newFieldSetConditionData)({fieldCoordinatesPath:[...v],fieldPath:[...F]});i?mn.providedBy.push(Pr):mn.requiredBy.push(Pr);return}if(!Qt)return K.push((0,le.unknownTypeInFieldSetErrorMessage)(n,ee,An)),Z.BREAK;if(_t&&(i&&(0,je.getValueOrDefault)(l.conditionalFieldDataByCoords,ee,sn.newConditionalFieldData).providedBy.push((0,Zf.newFieldSetConditionData)({fieldCoordinatesPath:[...v],fieldPath:[...F]})),k.add(ee)),Qt.kind===Z.Kind.OBJECT_TYPE_DEFINITION||Qt.kind===Z.Kind.INTERFACE_TYPE_DEFINITION||Qt.kind===Z.Kind.UNION_TYPE_DEFINITION){se=!0,d.push(Qt);return}},leave(){k.delete(v.pop()||""),F.pop()}},InlineFragment:{enter(de){let Re=d[J],xe=Re.name,tt=v.length<1?t.name:v[v.length-1];if(!de.typeCondition)return K.push((0,le.inlineFragmentWithoutTypeConditionErrorMessage)(n,tt)),Z.BREAK;let ee=de.typeCondition.name.value;if(ee===xe){d.push(Re),se=!0;return}if(!(0,bn.isKindAbstract)(Re.kind))return K.push((0,le.invalidInlineFragmentTypeErrorMessage)(n,v,ee,xe)),Z.BREAK;let Se=l.parentDefinitionDataByTypeName.get(ee);if(!Se)return K.push((0,le.unknownInlineFragmentTypeConditionErrorMessage)(n,v,xe,ee)),Z.BREAK;switch(se=!0,Se.kind){case Z.Kind.INTERFACE_TYPE_DEFINITION:{if(!Se.implementedInterfaceTypeNames.has(xe))break;d.push(Se);return}case Z.Kind.OBJECT_TYPE_DEFINITION:{let _t=l.concreteTypeNamesByAbstractTypeName.get(xe);if(!_t||!_t.has(ee))break;d.push(Se);return}case Z.Kind.UNION_TYPE_DEFINITION:{d.push(Se);return}default:return K.push((0,le.invalidInlineFragmentTypeConditionTypeErrorMessage)(n,v,xe,ee,(0,je.kindToNodeType)(Se.kind))),Z.BREAK}return K.push((0,le.invalidInlineFragmentTypeConditionErrorMessage)(n,v,ee,(0,je.kindToNodeType)(Re.kind),xe)),Z.BREAK}},SelectionSet:{enter(){if(!se){let de=d[J];if(de.kind===Z.Kind.UNION_TYPE_DEFINITION)return K.push((0,le.unparsableFieldSetSelectionErrorMessage)(n,ie)),Z.BREAK;let Re=de.fieldDataByName.get(ie);if(!Re)return K.push((0,le.undefinedFieldInFieldSetErrorMessage)(n,de.name,ie)),Z.BREAK;let xe=(0,rr.getTypeNodeNamedTypeName)(Re.node.type),tt=l.parentDefinitionDataByTypeName.get(xe),ee=tt?tt.kind:Z.Kind.SCALAR_TYPE_DEFINITION;return K.push((0,le.invalidSelectionSetDefinitionErrorMessage)(n,v,xe,(0,je.kindToNodeType)(ee))),Z.BREAK}if(J+=1,se=!1,J<0||J>=d.length)return K.push((0,le.unparsableFieldSetSelectionErrorMessage)(n,ie)),Z.BREAK;y.push(new Set)},leave(){if(se){let de=d[J+1];K.push((0,le.invalidSelectionSetErrorMessage)(n,v,de.name,(0,je.kindToNodeType)(de.kind))),se=!1}J-=1,d.pop(),y.pop()}}}),K.length>0||!Te?{errorMessages:K}:{configuration:{fieldName:r,selectionSet:(0,ni.getNormalizedFieldSet)(c)},errorMessages:K}}validateProvidesOrRequires(t,n,r){let i=[],a=[],o=(0,sn.getParentTypeName)(t);for(let[c,l]of n){let{fieldSetParentData:d,errorString:p}=this.getFieldSetParent(r,t,c,o),y=`${o}.${c}`;if(p){i.push(p);continue}if(!d)continue;let{errorMessages:I,configuration:v}=this.validateConditionalFieldSet(d,l,c,r,o);if(I.length>0){i.push(` On field "${y}": - -`+I.join(z.HYPHEN_JOIN));continue}v&&a.push(v)}if(i.length>0){this.errors.push((0,le.invalidProvidesOrRequiresDirectivesError)((0,ni.getConditionalFieldSetDirectiveName)(r),i));return}if(a.length>0)return a}validateInterfaceImplementations(t){if(t.implementedInterfaceTypeNames.size<1)return;let n=t.directivesByDirectiveName.has(z.INACCESSIBLE),r=new Map,i=new Map,a=!1;for(let o of t.implementedInterfaceTypeNames){let c=this.parentDefinitionDataByTypeName.get(o);if(qt.BASE_SCALARS.has(o)&&this.referencedTypeNames.add(o),!c)continue;if(c.kind!==Z.Kind.INTERFACE_TYPE_DEFINITION){i.set(c.name,(0,je.kindToNodeType)(c.kind));continue}if(t.name===c.name){a=!0;continue}let l={invalidFieldImplementations:new Map,unimplementedFields:[]},d=!1;for(let[p,y]of c.fieldDataByName){this.unvalidatedExternalFieldCoords.delete(`${t.name}.${p}`);let I=!1,v=t.fieldDataByName.get(p);if(!v){d=!0,l.unimplementedFields.push(p);continue}let F={invalidAdditionalArguments:new Set,invalidImplementedArguments:[],isInaccessible:!1,originalResponseType:(0,hi.printTypeNode)(y.node.type),unimplementedArguments:new Set};(0,sn.isTypeValidImplementation)(y.node.type,v.node.type,this.concreteTypeNamesByAbstractTypeName)||(d=!0,I=!0,F.implementedResponseType=(0,hi.printTypeNode)(v.node.type));let k=new Set;for(let[K,J]of y.argumentDataByName){k.add(K);let se=v.argumentDataByName.get(K);if(!se){d=!0,I=!0,F.unimplementedArguments.add(K);continue}let ie=(0,hi.printTypeNode)(se.type),Te=(0,hi.printTypeNode)(J.type);Te!==ie&&(d=!0,I=!0,F.invalidImplementedArguments.push({actualType:ie,argumentName:K,expectedType:Te}))}for(let[K,J]of v.argumentDataByName)k.has(K)||J.type.kind===Z.Kind.NON_NULL_TYPE&&(d=!0,I=!0,F.invalidAdditionalArguments.add(K));!n&&v.isInaccessible&&!y.isInaccessible&&(d=!0,I=!0,F.isInaccessible=!0),I&&l.invalidFieldImplementations.set(p,F)}d&&r.set(o,l)}i.size>0&&this.errors.push((0,le.invalidImplementedTypeError)(t.name,i)),a&&this.errors.push((0,le.selfImplementationError)(t.name)),r.size>0&&this.errors.push((0,le.invalidInterfaceImplementationError)(t.name,(0,je.kindToNodeType)(t.kind),r))}handleAuthenticatedDirective(t,n){let r=(0,je.getValueOrDefault)(this.authorizationDataByParentTypeName,n,()=>(0,Gn.newAuthorizationData)(n));if(t.kind===Z.Kind.FIELD_DEFINITION){let i=(0,je.getValueOrDefault)(r.fieldAuthDataByFieldName,t.name,()=>(0,Gn.newFieldAuthorizationData)(t.name));i.inheritedData.requiresAuthentication=!0,i.originalData.requiresAuthentication=!0}else r.requiresAuthentication=!0,this.parentTypeNamesWithAuthDirectives.add(n)}handleOverrideDirective({data:t,directiveCoords:n,errorMessages:r,targetSubgraphName:i}){if(i===this.subgraphName){r.push((0,le.equivalentSourceAndTargetOverrideErrorMessage)(i,n));return}let a=(0,je.getValueOrDefault)(this.overridesByTargetSubgraphName,i,()=>new Map);(0,je.getValueOrDefault)(a,t.renamedParentTypeName,()=>new Set).add(t.name)}handleSemanticNonNullDirective({data:t,directiveNode:n,errorMessages:r}){var y;let i=new Set,a=t.node.type,o=0;for(;a;)switch(a.kind){case Z.Kind.LIST_TYPE:{o+=1,a=a.type;break}case Z.Kind.NON_NULL_TYPE:{i.add(o),a=a.type;break}default:{a=null;break}}let c=(y=n.arguments)==null?void 0:y.find(I=>I.name.value===z.LEVELS);if(!c||c.value.kind!==Z.Kind.LIST){r.push(le.semanticNonNullArgumentErrorMessage);return}let l=c.value.values,d=(0,hi.printTypeNode)(t.type),p=new Set;for(let{value:I}of l){let v=parseInt(I,10);if(Number.isNaN(v)){r.push((0,le.semanticNonNullLevelsNaNIndexErrorMessage)(I));continue}if(v<0||v>o){r.push((0,le.semanticNonNullLevelsIndexOutOfBoundsErrorMessage)({maxIndex:o,typeString:d,value:I}));continue}if(!i.has(v)){p.add(v);continue}r.push((0,le.semanticNonNullLevelsNonNullErrorMessage)({typeString:d,value:I}))}t.nullLevelsBySubgraphName.set(this.subgraphName,p)}extractRequiredScopes({directiveCoords:t,orScopes:n,requiredScopes:r}){if(n.length>qt.MAX_OR_SCOPES){this.invalidORScopesCoords.add(t);return}for(let i of n){let a=new Set;for(let o of i.values)a.add(o.value);a.size<1||(0,Gn.addScopes)(r,a)}}getKafkaPublishConfiguration(t,n,r,i){let a=[],o=z.DEFAULT_EDFS_PROVIDER_ID;for(let c of t.arguments||[])switch(c.name.value){case z.TOPIC:{if(c.value.kind!==Z.Kind.STRING||c.value.value.length<1){i.push((0,le.invalidEventSubjectErrorMessage)(z.TOPIC));continue}(0,ni.validateArgumentTemplateReferences)(c.value.value,n,i),a.push(c.value.value);break}case z.PROVIDER_ID:{if(c.value.kind!==Z.Kind.STRING||c.value.value.length<1){i.push(le.invalidEventProviderIdErrorMessage);continue}o=c.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:o,providerType:z.PROVIDER_TYPE_KAFKA,topics:a,type:z.PUBLISH}}getKafkaSubscribeConfiguration(t,n,r,i){let a=[],o=z.DEFAULT_EDFS_PROVIDER_ID;for(let c of t.arguments||[])switch(c.name.value){case z.TOPICS:{if(c.value.kind!==Z.Kind.LIST){i.push((0,le.invalidEventSubjectsErrorMessage)(z.TOPICS));continue}for(let l of c.value.values){if(l.kind!==Z.Kind.STRING||l.value.length<1){i.push((0,le.invalidEventSubjectsItemErrorMessage)(z.TOPICS));break}(0,ni.validateArgumentTemplateReferences)(l.value,n,i),a.push(l.value)}break}case z.PROVIDER_ID:{if(c.value.kind!==Z.Kind.STRING||c.value.value.length<1){i.push(le.invalidEventProviderIdErrorMessage);continue}o=c.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:o,providerType:z.PROVIDER_TYPE_KAFKA,topics:a,type:z.SUBSCRIBE}}getNatsPublishAndRequestConfiguration(t,n,r,i,a){let o=[],c=z.DEFAULT_EDFS_PROVIDER_ID;for(let l of n.arguments||[])switch(l.name.value){case z.SUBJECT:{if(l.value.kind!==Z.Kind.STRING||l.value.value.length<1){a.push((0,le.invalidEventSubjectErrorMessage)(z.SUBJECT));continue}(0,ni.validateArgumentTemplateReferences)(l.value.value,r,a),o.push(l.value.value);break}case z.PROVIDER_ID:{if(l.value.kind!==Z.Kind.STRING||l.value.value.length<1){a.push(le.invalidEventProviderIdErrorMessage);continue}c=l.value.value;break}}if(!(a.length>0))return{fieldName:i,providerId:c,providerType:z.PROVIDER_TYPE_NATS,subjects:o,type:t}}getNatsSubscribeConfiguration(t,n,r,i){let a=[],o=z.DEFAULT_EDFS_PROVIDER_ID,c=jE.DEFAULT_CONSUMER_INACTIVE_THRESHOLD,l="",d="";for(let p of t.arguments||[])switch(p.name.value){case z.SUBJECTS:{if(p.value.kind!==Z.Kind.LIST){i.push((0,le.invalidEventSubjectsErrorMessage)(z.SUBJECTS));continue}for(let y of p.value.values){if(y.kind!==Z.Kind.STRING||y.value.length<1){i.push((0,le.invalidEventSubjectsItemErrorMessage)(z.SUBJECTS));break}(0,ni.validateArgumentTemplateReferences)(y.value,n,i),a.push(y.value)}break}case z.PROVIDER_ID:{if(p.value.kind!==Z.Kind.STRING||p.value.value.length<1){i.push(le.invalidEventProviderIdErrorMessage);continue}o=p.value.value;break}case z.STREAM_CONFIGURATION:{if(this.usesEdfsNatsStreamConfiguration=!0,p.value.kind!==Z.Kind.OBJECT||p.value.fields.length<1){i.push(le.invalidNatsStreamInputErrorMessage);continue}let y=!0,I=new Set,v=new Set(VE.STREAM_CONFIGURATION_FIELD_NAMES),F=new Set([z.CONSUMER_NAME,z.STREAM_NAME]),k=new Set,K=new Set;for(let J of p.value.fields){let se=J.name.value;if(!VE.STREAM_CONFIGURATION_FIELD_NAMES.has(se)){I.add(se),y=!1;continue}if(v.has(se))v.delete(se);else{k.add(se),y=!1;continue}switch(F.has(se)&&F.delete(se),se){case z.CONSUMER_NAME:if(J.value.kind!=Z.Kind.STRING||J.value.value.length<1){K.add(se),y=!1;continue}l=J.value.value;break;case z.STREAM_NAME:if(J.value.kind!=Z.Kind.STRING||J.value.value.length<1){K.add(se),y=!1;continue}d=J.value.value;break;case z.CONSUMER_INACTIVE_THRESHOLD:if(J.value.kind!=Z.Kind.INT){i.push((0,le.invalidArgumentValueErrorMessage)((0,Z.print)(J.value),"edfs__NatsStreamConfiguration","consumerInactiveThreshold",z.INT_SCALAR)),y=!1;continue}try{c=parseInt(J.value.value,10)}catch(ie){i.push((0,le.invalidArgumentValueErrorMessage)((0,Z.print)(J.value),"edfs__NatsStreamConfiguration","consumerInactiveThreshold",z.INT_SCALAR)),y=!1}break}}(!y||F.size>0)&&i.push((0,le.invalidNatsStreamInputFieldsErrorMessage)([...F],[...k],[...K],[...I]))}}if(!(i.length>0))return c<0?(c=jE.DEFAULT_CONSUMER_INACTIVE_THRESHOLD,this.warnings.push((0,Wa.consumerInactiveThresholdInvalidValueWarning)(this.subgraphName,`The value has been set to ${jE.DEFAULT_CONSUMER_INACTIVE_THRESHOLD}.`))):c>Hle.MAX_INT32&&(c=0,this.warnings.push((0,Wa.consumerInactiveThresholdInvalidValueWarning)(this.subgraphName,"The value has been set to 0. This means the consumer will remain indefinitely active until its manual deletion."))),x({fieldName:r,providerId:o,providerType:z.PROVIDER_TYPE_NATS,subjects:a,type:z.SUBSCRIBE},l&&d?{streamConfiguration:{consumerInactiveThreshold:c,consumerName:l,streamName:d}}:{})}getRedisPublishConfiguration(t,n,r,i){let a=[],o=z.DEFAULT_EDFS_PROVIDER_ID;for(let c of t.arguments||[])switch(c.name.value){case z.CHANNEL:{if(c.value.kind!==Z.Kind.STRING||c.value.value.length<1){i.push((0,le.invalidEventSubjectErrorMessage)(z.CHANNEL));continue}(0,ni.validateArgumentTemplateReferences)(c.value.value,n,i),a.push(c.value.value);break}case z.PROVIDER_ID:{if(c.value.kind!==Z.Kind.STRING||c.value.value.length<1){i.push(le.invalidEventProviderIdErrorMessage);continue}o=c.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:o,providerType:z.PROVIDER_TYPE_REDIS,channels:a,type:z.PUBLISH}}getRedisSubscribeConfiguration(t,n,r,i){let a=[],o=z.DEFAULT_EDFS_PROVIDER_ID;for(let c of t.arguments||[])switch(c.name.value){case z.CHANNELS:{if(c.value.kind!==Z.Kind.LIST){i.push((0,le.invalidEventSubjectsErrorMessage)(z.CHANNELS));continue}for(let l of c.value.values){if(l.kind!==Z.Kind.STRING||l.value.length<1){i.push((0,le.invalidEventSubjectsItemErrorMessage)(z.CHANNELS));break}(0,ni.validateArgumentTemplateReferences)(l.value,n,i),a.push(l.value)}break}case z.PROVIDER_ID:{if(c.value.kind!==Z.Kind.STRING||c.value.value.length<1){i.push(le.invalidEventProviderIdErrorMessage);continue}o=c.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:o,providerType:z.PROVIDER_TYPE_REDIS,channels:a,type:z.SUBSCRIBE}}validateSubscriptionFilterDirectiveLocation(t){if(!t.directives)return;let n=this.renamedParentTypeName||this.originalParentTypeName,r=`${n}.${t.name.value}`,i=this.getOperationTypeNodeForRootTypeName(n)===Z.OperationTypeNode.SUBSCRIPTION;for(let a of t.directives)if(a.name.value===z.SUBSCRIPTION_FILTER&&!i){this.errors.push((0,le.invalidSubscriptionFilterLocationError)(r));return}}extractEventDirectivesToConfiguration(t,n){if(!t.directives)return;let r=t.name.value,i=`${this.renamedParentTypeName||this.originalParentTypeName}.${r}`;for(let a of t.directives){let o=[],c;switch(a.name.value){case z.EDFS_KAFKA_PUBLISH:c=this.getKafkaPublishConfiguration(a,n,r,o);break;case z.EDFS_KAFKA_SUBSCRIBE:c=this.getKafkaSubscribeConfiguration(a,n,r,o);break;case z.EDFS_NATS_PUBLISH:{c=this.getNatsPublishAndRequestConfiguration(z.PUBLISH,a,n,r,o);break}case z.EDFS_NATS_REQUEST:{c=this.getNatsPublishAndRequestConfiguration(z.REQUEST,a,n,r,o);break}case z.EDFS_NATS_SUBSCRIBE:{c=this.getNatsSubscribeConfiguration(a,n,r,o);break}case z.EDFS_REDIS_PUBLISH:{c=this.getRedisPublishConfiguration(a,n,r,o);break}case z.EDFS_REDIS_SUBSCRIBE:{c=this.getRedisSubscribeConfiguration(a,n,r,o);break}default:continue}if(o.length>0){this.errors.push((0,le.invalidEventDirectiveError)(a.name.value,i,o));continue}c&&(0,je.getValueOrDefault)(this.eventsConfigurations,this.renamedParentTypeName||this.originalParentTypeName,()=>[]).push(c)}}getValidEventsDirectiveNamesForOperationTypeNode(t){switch(t){case Z.OperationTypeNode.MUTATION:return new Set([z.EDFS_KAFKA_PUBLISH,z.EDFS_NATS_PUBLISH,z.EDFS_NATS_REQUEST,z.EDFS_REDIS_PUBLISH]);case Z.OperationTypeNode.QUERY:return new Set([z.EDFS_NATS_REQUEST]);case Z.OperationTypeNode.SUBSCRIPTION:return new Set([z.EDFS_KAFKA_SUBSCRIBE,z.EDFS_NATS_SUBSCRIBE,z.EDFS_REDIS_SUBSCRIBE])}}getOperationTypeNodeForRootTypeName(t){let n=this.operationTypeNodeByTypeName.get(t);if(n)return n;switch(t){case z.MUTATION:return Z.OperationTypeNode.MUTATION;case z.QUERY:return Z.OperationTypeNode.QUERY;case z.SUBSCRIPTION:return Z.OperationTypeNode.SUBSCRIPTION;default:return}}validateEventDrivenRootType(t,n,r,i){let a=this.getOperationTypeNodeForRootTypeName(t.name);if(!a){this.errors.push((0,le.invalidRootTypeError)(t.name));return}let o=this.getValidEventsDirectiveNamesForOperationTypeNode(a);for(let[c,l]of t.fieldDataByName){let d=`${l.originalParentTypeName}.${c}`,p=new Set;for(let K of VE.EVENT_DIRECTIVE_NAMES)l.directivesByDirectiveName.has(K)&&p.add(K);let y=new Set;for(let K of p)o.has(K)||y.add(K);if((p.size<1||y.size>0)&&n.set(d,{definesDirectives:p.size>0,invalidDirectiveNames:[...y]}),a===Z.OperationTypeNode.MUTATION){let K=(0,hi.printTypeNode)(l.type);K!==z.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT&&i.set(d,K);continue}let I=(0,hi.printTypeNode)(l.type),v=l.namedTypeName+"!",F=!1,k=this.concreteTypeNamesByAbstractTypeName.get(l.namedTypeName)||new Set([l.namedTypeName]);for(let K of k)if(F||(F=this.entityDataByTypeName.has(K)),F)break;(!F||I!==v)&&r.set(d,I)}}validateEventDrivenKeyDefinition(t,n){let r=this.keyFieldSetDatasByTypeName.get(t);if(r)for(let[i,{isUnresolvable:a}]of r)a||(0,je.getValueOrDefault)(n,t,()=>[]).push(i)}validateEventDrivenObjectFields(t,n,r,i){var a;for(let[o,c]of t){let l=`${c.originalParentTypeName}.${o}`;if(n.has(o)){(a=c.externalFieldDataBySubgraphName.get(this.subgraphName))!=null&&a.isDefinedExternal||r.set(l,o);continue}i.set(l,o)}}isEdfsPublishResultValid(){let t=this.parentDefinitionDataByTypeName.get(z.EDFS_PUBLISH_RESULT);if(!t)return!0;if(t.kind!==Z.Kind.OBJECT_TYPE_DEFINITION||t.fieldDataByName.size!=1)return!1;for(let[n,r]of t.fieldDataByName)if(r.argumentDataByName.size>0||n!==z.SUCCESS||(0,hi.printTypeNode)(r.type)!==z.NON_NULLABLE_BOOLEAN)return!1;return!0}isNatsStreamConfigurationInputObjectValid(t){if(t.kind!==Z.Kind.INPUT_OBJECT_TYPE_DEFINITION||t.inputValueDataByName.size!=3)return!1;for(let[n,r]of t.inputValueDataByName)switch(n){case z.CONSUMER_INACTIVE_THRESHOLD:{if((0,hi.printTypeNode)(r.type)!==z.NON_NULLABLE_INT||!r.defaultValue||r.defaultValue.kind!==Z.Kind.INT||r.defaultValue.value!==`${jE.DEFAULT_CONSUMER_INACTIVE_THRESHOLD}`)return!1;break}case z.CONSUMER_NAME:case z.STREAM_NAME:{if((0,hi.printTypeNode)(r.type)!==z.NON_NULLABLE_STRING)return!1;break}default:return!1}return!0}validateEventDrivenSubgraph(t){let n=[],r=new Map,i=new Map,a=new Map,o=new Map,c=new Map,l=new Map,d=new Set,p=new Set;for(let[y,I]of this.parentDefinitionDataByTypeName){if(y===z.EDFS_PUBLISH_RESULT||y===z.EDFS_NATS_STREAM_CONFIGURATION||I.kind!==Z.Kind.OBJECT_TYPE_DEFINITION)continue;if(I.isRootType){this.validateEventDrivenRootType(I,r,i,a);continue}let v=this.keyFieldNamesByParentTypeName.get(y);if(!v){p.add(y);continue}this.validateEventDrivenKeyDefinition(y,o),this.validateEventDrivenObjectFields(I.fieldDataByName,v,c,l)}if(this.isEdfsPublishResultValid()||n.push(le.invalidEdfsPublishResultObjectErrorMessage),this.edfsDirectiveReferences.has(z.EDFS_NATS_SUBSCRIBE)){let y=this.parentDefinitionDataByTypeName.get(z.EDFS_NATS_STREAM_CONFIGURATION);y&&this.usesEdfsNatsStreamConfiguration&&!this.isNatsStreamConfigurationInputObjectValid(y)&&n.push(le.invalidNatsStreamConfigurationDefinitionErrorMessage),this.parentDefinitionDataByTypeName.delete(z.EDFS_NATS_STREAM_CONFIGURATION),t.push(qt.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION)}r.size>0&&n.push((0,le.invalidRootTypeFieldEventsDirectivesErrorMessage)(r)),a.size>0&&n.push((0,le.invalidEventDrivenMutationResponseTypeErrorMessage)(a)),i.size>0&&n.push((0,le.invalidRootTypeFieldResponseTypesEventDrivenErrorMessage)(i)),o.size>0&&n.push((0,le.invalidKeyFieldSetsEventDrivenErrorMessage)(o)),c.size>0&&n.push((0,le.nonExternalKeyFieldNamesEventDrivenErrorMessage)(c)),l.size>0&&n.push((0,le.nonKeyFieldNamesEventDrivenErrorMessage)(l)),d.size>0&&n.push((0,le.nonEntityObjectExtensionsEventDrivenErrorMessage)([...d])),p.size>0&&n.push((0,le.nonKeyComposingObjectTypeNamesEventDrivenErrorMessage)([...p])),n.length>0&&this.errors.push((0,le.invalidEventDrivenGraphError)(n))}validateUnionMembers(t){if(t.memberByMemberTypeName.size<1){this.errors.push((0,le.noDefinedUnionMembersError)(t.name));return}let n=[];for(let r of t.memberByMemberTypeName.keys()){let i=this.parentDefinitionDataByTypeName.get(r);i&&i.kind!==Z.Kind.OBJECT_TYPE_DEFINITION&&n.push(`"${r}", which is type "${(0,je.kindToNodeType)(i.kind)}"`)}n.length>0&&this.errors.push((0,le.invalidUnionMemberTypeError)(t.name,n))}addConcreteTypeNamesForUnion(t){if(!t.types||t.types.length<1)return;let n=t.name.value;for(let r of t.types){let i=r.name.value;(0,je.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,n,()=>new Set).add(i),this.internalGraph.addEdge(this.internalGraph.addOrUpdateNode(n,{isAbstract:!0}),this.internalGraph.addOrUpdateNode(i),i,!0)}}addValidKeyFieldSetConfigurations(){for(let[t,n]of this.keyFieldSetDatasByTypeName){let r=this.parentDefinitionDataByTypeName.get(t);if(!r||r.kind!==Z.Kind.OBJECT_TYPE_DEFINITION&&r.kind!==Z.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,le.undefinedCompositeOutputTypeError)(t));continue}let i=(0,sn.getParentTypeName)(r),a=(0,je.getValueOrDefault)(this.configurationDataByTypeName,i,()=>(0,Zf.newConfigurationData)(!0,i)),o=(0,ni.validateKeyFieldSets)(this,r,n);o&&(a.keys=o)}}getValidFlattenedDirectiveArray(t,n,r=!1){let i=[];for(let[a,o]of t){if(r&&z.INHERITABLE_DIRECTIVE_NAMES.has(a))continue;let c=this.directiveDefinitionDataByDirectiveName.get(a);if(!c)continue;if(!c.isRepeatable&&o.length>1){let p=(0,je.getValueOrDefault)(this.invalidRepeatedDirectiveNameByCoords,n,()=>new Set);p.has(a)||(p.add(a),this.errors.push((0,le.invalidDirectiveError)(a,n,"1st",[(0,le.invalidRepeatedDirectiveErrorMessage)(a)])));continue}if(a!==z.KEY){i.push(...o);continue}let l=[],d=new Set;for(let p=0;pnew Set).add(k)),(0,je.getValueOrDefault)(a.keyFieldNamesByParentTypeName,v,()=>new Set).add(F);let se=(0,rr.getTypeNodeNamedTypeName)(K.node.type);if(qt.BASE_SCALARS.has(se))return;let ie=a.parentDefinitionDataByTypeName.get(se);if(!ie)return Z.BREAK;if(ie.kind===Z.Kind.OBJECT_TYPE_DEFINITION){p=!0,c.push(ie);return}if((0,bn.isKindAbstract)(ie.kind))return Z.BREAK}},InlineFragment:{enter(){return Z.BREAK}},SelectionSet:{enter(){if(!p||(d+=1,p=!1,d<0||d>=c.length))return Z.BREAK},leave(){p&&(p=!1),d-=1,c.pop()}}}),!(l.size<1))for(let[y,I]of l)this.warnings.push((0,Wa.externalEntityExtensionKeyFieldWarning)(i.name,y,[...I],this.subgraphName))}}for(let n of t)this.keyFieldSetDatasByTypeName.delete(n)}addValidConditionalFieldSetConfigurations(){for(let[t,n]of this.fieldSetDataByTypeName){let r=this.parentDefinitionDataByTypeName.get(t);if(!r||r.kind!==Z.Kind.OBJECT_TYPE_DEFINITION&&r.kind!==Z.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,le.undefinedCompositeOutputTypeError)(t));continue}let i=(0,sn.getParentTypeName)(r),a=(0,je.getValueOrDefault)(this.configurationDataByTypeName,i,()=>(0,Zf.newConfigurationData)(!1,i)),o=this.validateProvidesOrRequires(r,n.provides,!0);o&&(a.provides=o);let c=this.validateProvidesOrRequires(r,n.requires,!1);c&&(a.requires=c)}}addFieldNamesToConfigurationData(t,n){let r=new Set;for(let[i,a]of t){let o=a.externalFieldDataBySubgraphName.get(this.subgraphName);if(!o||o.isUnconditionallyProvided){n.fieldNames.add(i);continue}r.add(i),this.edfsDirectiveReferences.size>0&&n.fieldNames.add(i)}r.size>0&&(n.externalFieldNames=r)}validateOneOfDirective({data:t,requiredFieldNames:n}){var r,i;return t.directivesByDirectiveName.has(z.ONE_OF)?n.size>0?(this.errors.push((0,le.oneOfRequiredFieldsError)({requiredFieldNames:Array.from(n),typeName:t.name})),!1):(t.inputValueDataByName.size===1&&this.warnings.push((0,Wa.singleSubgraphInputFieldOneOfWarning)({fieldName:(i=(r=(0,je.getFirstEntry)(t.inputValueDataByName))==null?void 0:r.name)!=null?i:"unknown",subgraphName:this.subgraphName,typeName:t.name})),!0):!0}normalize(t){var a;(0,fV.upsertDirectiveSchemaAndEntityDefinitions)(this,t),(0,fV.upsertParentsAndChildren)(this,t),this.validateDirectives(this.schemaData,z.SCHEMA);for(let[o,c]of this.parentDefinitionDataByTypeName)this.validateDirectives(c,o);this.invalidORScopesCoords.size>0&&this.errors.push((0,le.orScopesLimitError)(qt.MAX_OR_SCOPES,[...this.invalidORScopesCoords]));let n=[];for(let o of qt.BASE_DIRECTIVE_DEFINITIONS)n.push(o);if(n.push(qt.FIELD_SET_SCALAR_DEFINITION),this.isSubgraphVersionTwo){for(let o of qt.VERSION_TWO_DIRECTIVE_DEFINITIONS)n.push(o),this.directiveDefinitionByDirectiveName.set(o.name.value,o);n.push(qt.SCOPE_SCALAR_DEFINITION)}for(let o of this.edfsDirectiveReferences){let c=qt.EVENT_DRIVEN_DIRECTIVE_DEFINITIONS_BY_DIRECTIVE_NAME.get(o);if(!c){this.errors.push((0,le.invalidEdfsDirectiveName)(o));continue}n.push(c)}this.edfsDirectiveReferences.size>0&&this.referencedDirectiveNames.has(z.SUBSCRIPTION_FILTER)&&(n.push(qt.SUBSCRIPTION_FILTER_DEFINITION),n.push(qt.SUBSCRIPTION_FILTER_CONDITION_DEFINITION),n.push(qt.SUBSCRIPTION_FIELD_CONDITION_DEFINITION),n.push(qt.SUBSCRIPTION_FILTER_VALUE_DEFINITION)),this.referencedDirectiveNames.has(z.CONFIGURE_DESCRIPTION)&&n.push(qt.CONFIGURE_DESCRIPTION_DEFINITION),this.referencedDirectiveNames.has(z.CONFIGURE_CHILD_DESCRIPTIONS)&&n.push(qt.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION),this.referencedDirectiveNames.has(z.LINK)&&(n.push(qt.LINK_DEFINITION),n.push(qt.LINK_IMPORT_DEFINITION),n.push(qt.LINK_PURPOSE_DEFINITION)),this.referencedDirectiveNames.has(z.ONE_OF)&&n.push(qt.ONE_OF_DEFINITION),this.referencedDirectiveNames.has(z.REQUIRE_FETCH_REASONS)&&n.push(qt.REQUIRE_FETCH_REASONS_DEFINITION),this.referencedDirectiveNames.has(z.SEMANTIC_NON_NULL)&&n.push(qt.SEMANTIC_NON_NULL_DEFINITION);for(let o of this.customDirectiveDefinitions.values())n.push(o);this.schemaData.operationTypes.size>0&&n.push(this.getSchemaNodeByData(this.schemaData));for(let o of this.invalidConfigureDescriptionNodeDatas)o.description||this.errors.push((0,le.configureDescriptionNoDescriptionError)((0,je.kindToNodeType)(o.kind),o.name));this.evaluateExternalKeyFields();for(let[o,c]of this.parentDefinitionDataByTypeName)switch(c.kind){case Z.Kind.ENUM_TYPE_DEFINITION:{if(c.enumValueDataByName.size<1){this.errors.push((0,le.noDefinedEnumValuesError)(o));break}n.push(this.getEnumNodeByData(c));break}case Z.Kind.INPUT_OBJECT_TYPE_DEFINITION:{if(c.inputValueDataByName.size<1){this.errors.push((0,le.noInputValueDefinitionsError)(o));break}let l=new Set;for(let d of c.inputValueDataByName.values()){if((0,sn.isTypeRequired)(d.type)&&l.add(d.name),d.namedTypeKind!==Z.Kind.NULL)continue;let p=this.parentDefinitionDataByTypeName.get(d.namedTypeName);if(p){if(!(0,sn.isInputNodeKind)(p.kind)){this.errors.push((0,le.invalidNamedTypeError)({data:d,namedTypeData:p,nodeType:`${(0,je.kindToNodeType)(c.kind)} field`}));continue}d.namedTypeKind=p.kind}}if(!this.validateOneOfDirective({data:c,requiredFieldNames:l}))break;n.push(this.getInputObjectNodeByData(c));break}case Z.Kind.INTERFACE_TYPE_DEFINITION:case Z.Kind.OBJECT_TYPE_DEFINITION:{let l=this.entityDataByTypeName.has(o),d=this.operationTypeNodeByTypeName.get(o),p=c.kind===Z.Kind.OBJECT_TYPE_DEFINITION;this.isSubgraphVersionTwo&&c.extensionType===za.ExtensionType.EXTENDS&&(c.extensionType=za.ExtensionType.NONE),d&&(c.fieldDataByName.delete(z.SERVICE_FIELD),c.fieldDataByName.delete(z.ENTITIES_FIELD));let y=[];for(let[K,J]of c.fieldDataByName){if(!p&&((a=J.externalFieldDataBySubgraphName.get(this.subgraphName))!=null&&a.isDefinedExternal)&&y.push(K),this.validateArguments(J,c.kind),J.namedTypeKind!==Z.Kind.NULL)continue;let se=this.parentDefinitionDataByTypeName.get(J.namedTypeName);if(se){if(!(0,sn.isOutputNodeKind)(se.kind)){this.errors.push((0,le.invalidNamedTypeError)({data:J,namedTypeData:se,nodeType:`${(0,je.kindToNodeType)(c.kind)} field`}));continue}J.namedTypeKind=this.entityInterfaceDataByTypeName.get(se.name)?Z.Kind.INTERFACE_TYPE_DEFINITION:se.kind}}y.length>0&&(this.isSubgraphVersionTwo?this.errors.push((0,le.externalInterfaceFieldsError)(o,y)):this.warnings.push((0,Wa.externalInterfaceFieldsWarning)(this.subgraphName,o,y)));let I=(0,sn.getParentTypeName)(c),v=(0,je.getValueOrDefault)(this.configurationDataByTypeName,I,()=>(0,Zf.newConfigurationData)(l,o)),F=this.entityInterfaceDataByTypeName.get(o);if(F){F.fieldDatas=(0,Gn.fieldDatasToSimpleFieldDatas)(c.fieldDataByName.values());let K=this.concreteTypeNamesByAbstractTypeName.get(o);K&&(0,je.addIterableValuesToSet)(K,F.concreteTypeNames),v.isInterfaceObject=F.isInterfaceObject,v.entityInterfaceConcreteTypeNames=F.concreteTypeNames}let k=this.eventsConfigurations.get(I);k&&(v.events=k),this.addFieldNamesToConfigurationData(c.fieldDataByName,v),this.validateInterfaceImplementations(c),n.push(this.getCompositeOutputNodeByData(c)),c.fieldDataByName.size<1&&!(0,ni.isNodeQuery)(o,d)&&this.errors.push((0,le.noFieldDefinitionsError)((0,je.kindToNodeType)(c.kind),o)),c.requireFetchReasonsFieldNames.size>0&&(v.requireFetchReasonsFieldNames=[...c.requireFetchReasonsFieldNames]);break}case Z.Kind.SCALAR_TYPE_DEFINITION:{if(c.extensionType===za.ExtensionType.REAL){this.errors.push((0,le.noBaseScalarDefinitionError)(o));break}n.push(this.getScalarNodeByData(c));break}case Z.Kind.UNION_TYPE_DEFINITION:{n.push(this.getUnionNodeByData(c)),this.validateUnionMembers(c);break}default:throw(0,le.unexpectedKindFatalError)(o)}this.addValidConditionalFieldSetConfigurations(),this.addValidKeyFieldSetConfigurations();for(let o of Object.values(Z.OperationTypeNode)){let c=this.schemaData.operationTypes.get(o),l=(0,je.getOrThrowError)(bn.operationTypeNodeToDefaultType,o,z.OPERATION_TO_DEFAULT),d=c?(0,rr.getTypeNodeNamedTypeName)(c.type):l;if(qt.BASE_SCALARS.has(d)&&this.referencedTypeNames.add(d),d!==l&&this.parentDefinitionDataByTypeName.has(l)){this.errors.push((0,le.invalidRootTypeDefinitionError)(o,d,l));continue}let p=this.parentDefinitionDataByTypeName.get(d);if(c){if(!p)continue;this.operationTypeNodeByTypeName.set(d,o)}if(!p)continue;let y=this.configurationDataByTypeName.get(l);y&&(y.isRootNode=!0,y.typeName=l),p.kind!==Z.Kind.OBJECT_TYPE_DEFINITION&&this.errors.push((0,le.operationDefinitionError)(d,o,p.kind))}for(let o of this.referencedTypeNames){let c=this.parentDefinitionDataByTypeName.get(o);if(!c){this.errors.push((0,le.undefinedTypeError)(o));continue}if(c.kind!==Z.Kind.INTERFACE_TYPE_DEFINITION)continue;let l=this.concreteTypeNamesByAbstractTypeName.get(o);(!l||l.size<1)&&this.warnings.push((0,Wa.unimplementedInterfaceOutputTypeWarning)(this.subgraphName,o))}let r=new Map;for(let o of this.directiveDefinitionByDirectiveName.values()){let c=(0,bn.extractExecutableDirectiveLocations)(o.locations,new Set);c.size<1||this.addPersistedDirectiveDefinitionDataByNode(r,o,c)}this.isSubgraphEventDrivenGraph=this.edfsDirectiveReferences.size>0,this.isSubgraphEventDrivenGraph&&this.validateEventDrivenSubgraph(n);for(let o of this.unvalidatedExternalFieldCoords)this.isSubgraphVersionTwo?this.errors.push((0,le.invalidExternalDirectiveError)(o)):this.warnings.push((0,Wa.invalidExternalFieldWarning)(o,this.subgraphName));if(this.errors.length>0)return{success:!1,errors:this.errors,warnings:this.warnings};let i={kind:Z.Kind.DOCUMENT,definitions:n};return{authorizationDataByParentTypeName:this.authorizationDataByParentTypeName,concreteTypeNamesByAbstractTypeName:this.concreteTypeNamesByAbstractTypeName,conditionalFieldDataByCoordinates:this.conditionalFieldDataByCoords,configurationDataByTypeName:this.configurationDataByTypeName,directiveDefinitionByDirectiveName:this.directiveDefinitionByDirectiveName,entityDataByTypeName:this.entityDataByTypeName,entityInterfaces:this.entityInterfaceDataByTypeName,fieldCoordsByNamedTypeName:this.fieldCoordsByNamedTypeName,isEventDrivenGraph:this.isSubgraphEventDrivenGraph,isVersionTwo:this.isSubgraphVersionTwo,keyFieldNamesByParentTypeName:this.keyFieldNamesByParentTypeName,keyFieldSetsByEntityTypeNameByKeyFieldCoords:this.keyFieldSetsByEntityTypeNameByFieldCoords,operationTypes:this.operationTypeNodeByTypeName,originalTypeNameByRenamedTypeName:this.originalTypeNameByRenamedTypeName,overridesByTargetSubgraphName:this.overridesByTargetSubgraphName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,persistedDirectiveDefinitionDataByDirectiveName:r,subgraphAST:i,subgraphString:(0,Z.print)(i),schema:(0,Yle.buildASTSchema)(i,{assumeValid:!0,assumeValidSDL:!0}),success:!0,warnings:this.warnings}}};Sc.NormalizationFactory=ep;function Wle(e){let t=new Map,n=new Map,r=new Map,i=new Map,a=new Map,o=new Map,c=new Set,l=new Map,d=new Set,p=new Set,y=[],I=new Set,v=new Map,F=[],k=[];for(let se of e)se.name&&(0,Jle.recordSubgraphName)(se.name,d,p);let K=new hD.Graph;for(let se=0;se0&&F.push(...de.warnings),!de.success){k.push((0,le.subgraphValidationError)(Te,de.errors));continue}if(!de){k.push((0,le.subgraphValidationError)(Te,[le.subgraphValidationFailureError]));continue}l.set(Te,de.parentDefinitionDataByTypeName);for(let Re of de.authorizationDataByParentTypeName.values())(0,Gn.upsertAuthorizationData)(t,Re,I);for(let[Re,xe]of de.fieldCoordsByNamedTypeName)(0,je.addIterableValuesToSet)(xe,(0,je.getValueOrDefault)(v,Re,()=>new Set));for(let[Re,xe]of de.concreteTypeNamesByAbstractTypeName){let tt=n.get(Re);if(!tt){n.set(Re,new Set(xe));continue}(0,je.addIterableValuesToSet)(xe,tt)}for(let[Re,xe]of de.entityDataByTypeName){let tt=xe.keyFieldSetDatasBySubgraphName.get(Te);tt&&(0,Gn.upsertEntityData)({entityDataByTypeName:r,keyFieldSetDataByFieldSet:tt,typeName:Re,subgraphName:Te})}if(ie.name&&i.set(Te,{conditionalFieldDataByCoordinates:de.conditionalFieldDataByCoordinates,configurationDataByTypeName:de.configurationDataByTypeName,definitions:de.subgraphAST,directiveDefinitionByDirectiveName:de.directiveDefinitionByDirectiveName,entityInterfaces:de.entityInterfaces,isVersionTwo:de.isVersionTwo,keyFieldNamesByParentTypeName:de.keyFieldNamesByParentTypeName,name:Te,operationTypes:de.operationTypes,overriddenFieldNamesByParentTypeName:new Map,parentDefinitionDataByTypeName:de.parentDefinitionDataByTypeName,persistedDirectiveDefinitionDataByDirectiveName:de.persistedDirectiveDefinitionDataByDirectiveName,schema:de.schema,url:ie.url}),!(de.overridesByTargetSubgraphName.size<1))for(let[Re,xe]of de.overridesByTargetSubgraphName){let tt=d.has(Re);for(let[ee,Se]of xe){let _t=de.originalTypeNameByRenamedTypeName.get(ee)||ee;if(!tt)F.push((0,Wa.invalidOverrideTargetSubgraphNameWarning)(Re,_t,[...Se],ie.name));else{let en=(0,je.getValueOrDefault)(a,Re,()=>new Map),tn=(0,je.getValueOrDefault)(en,ee,()=>new Set(Se));(0,je.addIterableValuesToSet)(Se,tn)}for(let en of Se){let tn=`${_t}.${en}`,An=o.get(tn);if(!An){o.set(tn,[Te]);continue}An.push(Te),c.add(tn)}}}}let J=[];if(I.size>0&&J.push((0,le.orScopesLimitError)(qt.MAX_OR_SCOPES,[...I])),(y.length>0||p.size>0)&&J.push((0,le.invalidSubgraphNamesError)([...p],y)),c.size>0){let se=[];for(let ie of c){let Te=(0,je.getOrThrowError)(o,ie,"overrideSourceSubgraphNamesByFieldPath");se.push((0,le.duplicateOverriddenFieldErrorMessage)(ie,Te))}J.push((0,le.duplicateOverriddenFieldsError)(se))}if(J.push(...k),J.length>0)return{errors:J,success:!1,warnings:F};for(let[se,ie]of a){let Te=(0,je.getOrThrowError)(i,se,"internalSubgraphBySubgraphName");Te.overriddenFieldNamesByParentTypeName=ie;for(let[de,Re]of ie){let xe=Te.configurationDataByTypeName.get(de);xe&&((0,Gn.subtractSet)(Re,xe.fieldNames),xe.fieldNames.size<1&&Te.configurationDataByTypeName.delete(de))}}return{authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,entityDataByTypeName:r,fieldCoordsByNamedTypeName:v,internalSubgraphBySubgraphName:i,internalGraph:K,success:!0,warnings:F}}});var KE=w(bc=>{"use strict";m();T();N();Object.defineProperty(bc,"__esModule",{value:!0});bc.DivergentType=void 0;bc.getLeastRestrictiveMergedTypeNode=Zle;bc.getMostRestrictiveMergedTypeNode=ede;bc.renameNamedTypeName=tde;var Oc=De(),NV=xi(),Xle=du(),mV=Hr(),TV=gl(),Dc;(function(e){e[e.NONE=0]="NONE",e[e.CURRENT=1]="CURRENT",e[e.OTHER=2]="OTHER"})(Dc||(bc.DivergentType=Dc={}));function EV(e,t,n,r,i){t=(0,Xle.getMutableTypeNode)(t,n,i);let a={kind:e.kind},o=Dc.NONE,c=a;for(let l=0;l{"use strict";m();T();N();Object.defineProperty(gD,"__esModule",{value:!0});gD.renameRootTypes=ide;var nde=De(),ID=Hr(),rde=KE(),_u=vr(),Ac=Sr();function ide(e,t){let n,r=!1,i;(0,nde.visit)(t.definitions,{FieldDefinition:{enter(a){let o=a.name.value;if(r&&(o===_u.SERVICE_FIELD||o===_u.ENTITIES_FIELD))return n.fieldDataByName.delete(o),!1;let c=n.name,l=(0,Ac.getOrThrowError)(n.fieldDataByName,o,`${c}.fieldDataByFieldName`),d=t.operationTypes.get(l.namedTypeName);if(d){let p=(0,Ac.getOrThrowError)(ID.operationTypeNodeToDefaultType,d,_u.OPERATION_TO_DEFAULT);l.namedTypeName!==p&&(0,rde.renameNamedTypeName)(l,p,e.errors)}return i!=null&&i.has(o)&&l.isShareableBySubgraphName.delete(t.name),!1}},InterfaceTypeDefinition:{enter(a){let o=a.name.value;if(!e.entityInterfaceFederationDataByTypeName.get(o))return!1;n=(0,Ac.getOrThrowError)(t.parentDefinitionDataByTypeName,o,_u.PARENT_DEFINITION_DATA)},leave(){n=void 0}},ObjectTypeDefinition:{enter(a){let o=a.name.value,c=t.operationTypes.get(o),l=c?(0,Ac.getOrThrowError)(ID.operationTypeNodeToDefaultType,c,_u.OPERATION_TO_DEFAULT):o;n=(0,Ac.getOrThrowError)(t.parentDefinitionDataByTypeName,o,_u.PARENT_DEFINITION_DATA),r=n.isRootType,!e.entityInterfaceFederationDataByTypeName.get(o)&&(e.addValidPrimaryKeyTargetsToEntityData(o),i=t.overriddenFieldNamesByParentTypeName.get(l),o!==l&&(n.name=l,t.parentDefinitionDataByTypeName.set(l,n),t.parentDefinitionDataByTypeName.delete(o)))},leave(){n=void 0,r=!1,i=void 0}},ObjectTypeExtension:{enter(a){let o=a.name.value,c=t.operationTypes.get(o),l=c?(0,Ac.getOrThrowError)(ID.operationTypeNodeToDefaultType,c,_u.OPERATION_TO_DEFAULT):o;n=(0,Ac.getOrThrowError)(t.parentDefinitionDataByTypeName,o,_u.PARENT_DEFINITION_DATA),r=n.isRootType,e.addValidPrimaryKeyTargetsToEntityData(o),i=t.overriddenFieldNamesByParentTypeName.get(o),o!==l&&(n.name=l,t.parentDefinitionDataByTypeName.set(l,n),t.parentDefinitionDataByTypeName.delete(o))},leave(){n=void 0,r=!1,i=void 0}}})}});var hV=w((Zl,tp)=>{"use strict";m();T();N();(function(){var e,t="4.17.21",n=200,r="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",a="Invalid `variable` option passed into `_.template`",o="__lodash_hash_undefined__",c=500,l="__lodash_placeholder__",d=1,p=2,y=4,I=1,v=2,F=1,k=2,K=4,J=8,se=16,ie=32,Te=64,de=128,Re=256,xe=512,tt=30,ee="...",Se=800,_t=16,en=1,tn=2,An=3,Qt=1/0,mn=9007199254740991,Pr=17976931348623157e292,Fr=NaN,kn=4294967295,zt=kn-1,Rn=kn>>>1,ue=[["ary",de],["bind",F],["bindKey",k],["curry",J],["curryRight",se],["flip",xe],["partial",ie],["partialRight",Te],["rearg",Re]],be="[object Arguments]",ve="[object Array]",Ce="[object AsyncFunction]",vt="[object Boolean]",Y="[object Date]",oe="[object DOMException]",qe="[object Error]",Ye="[object Function]",Ut="[object GeneratorFunction]",nt="[object Map]",Rt="[object Number]",ns="[object Null]",Vr="[object Object]",rs="[object Promise]",xc="[object Proxy]",ga="[object RegExp]",mr="[object Set]",ri="[object String]",Vt="[object Symbol]",Nr="[object Undefined]",Du="[object WeakMap]",_a="[object WeakSet]",bu="[object ArrayBuffer]",R="[object DataView]",h="[object Float32Array]",g="[object Float64Array]",C="[object Int8Array]",G="[object Int16Array]",te="[object Int32Array]",fe="[object Uint8Array]",pt="[object Uint8ClampedArray]",Nn="[object Uint16Array]",on="[object Uint32Array]",yn=/\b__p \+= '';/g,nn=/\b(__p \+=) '' \+/g,W1=/(__e\(.*?\)|\b__t\)) \+\n'';/g,_b=/&(?:amp|lt|gt|quot|#39);/g,vb=/[&<>"']/g,X1=RegExp(_b.source),Z1=RegExp(vb.source),ej=/<%-([\s\S]+?)%>/g,tj=/<%([\s\S]+?)%>/g,Sb=/<%=([\s\S]+?)%>/g,nj=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rj=/^\w*$/,ij=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_h=/[\\^$.*+?()[\]{}|]/g,aj=RegExp(_h.source),vh=/^\s+/,sj=/\s/,oj=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,uj=/\{\n\/\* \[wrapped with (.+)\] \*/,cj=/,? & /,lj=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,dj=/[()=,{}\[\]\/\s]/,fj=/\\(\\)?/g,pj=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ob=/\w*$/,mj=/^[-+]0x[0-9a-f]+$/i,Nj=/^0b[01]+$/i,Tj=/^\[object .+?Constructor\]$/,Ej=/^0o[0-7]+$/i,hj=/^(?:0|[1-9]\d*)$/,yj=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Sp=/($^)/,Ij=/['\n\r\u2028\u2029\\]/g,Op="\\ud800-\\udfff",gj="\\u0300-\\u036f",_j="\\ufe20-\\ufe2f",vj="\\u20d0-\\u20ff",Db=gj+_j+vj,bb="\\u2700-\\u27bf",Ab="a-z\\xdf-\\xf6\\xf8-\\xff",Sj="\\xac\\xb1\\xd7\\xf7",Oj="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Dj="\\u2000-\\u206f",bj=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Rb="A-Z\\xc0-\\xd6\\xd8-\\xde",Pb="\\ufe0e\\ufe0f",Fb=Sj+Oj+Dj+bj,Sh="['\u2019]",Aj="["+Op+"]",wb="["+Fb+"]",Dp="["+Db+"]",Lb="\\d+",Rj="["+bb+"]",Cb="["+Ab+"]",Bb="[^"+Op+Fb+Lb+bb+Ab+Rb+"]",Oh="\\ud83c[\\udffb-\\udfff]",Pj="(?:"+Dp+"|"+Oh+")",Ub="[^"+Op+"]",Dh="(?:\\ud83c[\\udde6-\\uddff]){2}",bh="[\\ud800-\\udbff][\\udc00-\\udfff]",qc="["+Rb+"]",kb="\\u200d",Mb="(?:"+Cb+"|"+Bb+")",Fj="(?:"+qc+"|"+Bb+")",xb="(?:"+Sh+"(?:d|ll|m|re|s|t|ve))?",qb="(?:"+Sh+"(?:D|LL|M|RE|S|T|VE))?",Vb=Pj+"?",jb="["+Pb+"]?",wj="(?:"+kb+"(?:"+[Ub,Dh,bh].join("|")+")"+jb+Vb+")*",Lj="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Cj="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Kb=jb+Vb+wj,Bj="(?:"+[Rj,Dh,bh].join("|")+")"+Kb,Uj="(?:"+[Ub+Dp+"?",Dp,Dh,bh,Aj].join("|")+")",kj=RegExp(Sh,"g"),Mj=RegExp(Dp,"g"),Ah=RegExp(Oh+"(?="+Oh+")|"+Uj+Kb,"g"),xj=RegExp([qc+"?"+Cb+"+"+xb+"(?="+[wb,qc,"$"].join("|")+")",Fj+"+"+qb+"(?="+[wb,qc+Mb,"$"].join("|")+")",qc+"?"+Mb+"+"+xb,qc+"+"+qb,Cj,Lj,Lb,Bj].join("|"),"g"),qj=RegExp("["+kb+Op+Db+Pb+"]"),Vj=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,jj=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Kj=-1,En={};En[h]=En[g]=En[C]=En[G]=En[te]=En[fe]=En[pt]=En[Nn]=En[on]=!0,En[be]=En[ve]=En[bu]=En[vt]=En[R]=En[Y]=En[qe]=En[Ye]=En[nt]=En[Rt]=En[Vr]=En[ga]=En[mr]=En[ri]=En[Du]=!1;var Tn={};Tn[be]=Tn[ve]=Tn[bu]=Tn[R]=Tn[vt]=Tn[Y]=Tn[h]=Tn[g]=Tn[C]=Tn[G]=Tn[te]=Tn[nt]=Tn[Rt]=Tn[Vr]=Tn[ga]=Tn[mr]=Tn[ri]=Tn[Vt]=Tn[fe]=Tn[pt]=Tn[Nn]=Tn[on]=!0,Tn[qe]=Tn[Ye]=Tn[Du]=!1;var Gj={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},$j={"&":"&","<":"<",">":">",'"':""","'":"'"},Qj={"&":"&","<":"<",">":">",""":'"',"'":"'"},Yj={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Jj=parseFloat,Hj=parseInt,Gb=typeof global=="object"&&global&&global.Object===Object&&global,zj=typeof self=="object"&&self&&self.Object===Object&&self,ir=Gb||zj||Function("return this")(),Rh=typeof Zl=="object"&&Zl&&!Zl.nodeType&&Zl,Au=Rh&&typeof tp=="object"&&tp&&!tp.nodeType&&tp,$b=Au&&Au.exports===Rh,Ph=$b&&Gb.process,yi=function(){try{var $=Au&&Au.require&&Au.require("util").types;return $||Ph&&Ph.binding&&Ph.binding("util")}catch(ce){}}(),Qb=yi&&yi.isArrayBuffer,Yb=yi&&yi.isDate,Jb=yi&&yi.isMap,Hb=yi&&yi.isRegExp,zb=yi&&yi.isSet,Wb=yi&&yi.isTypedArray;function ii($,ce,ne){switch(ne.length){case 0:return $.call(ce);case 1:return $.call(ce,ne[0]);case 2:return $.call(ce,ne[0],ne[1]);case 3:return $.call(ce,ne[0],ne[1],ne[2])}return $.apply(ce,ne)}function Wj($,ce,ne,Be){for(var ut=-1,Yt=$==null?0:$.length;++ut-1}function Fh($,ce,ne){for(var Be=-1,ut=$==null?0:$.length;++Be-1;);return ne}function a0($,ce){for(var ne=$.length;ne--&&Vc(ce,$[ne],0)>-1;);return ne}function sK($,ce){for(var ne=$.length,Be=0;ne--;)$[ne]===ce&&++Be;return Be}var oK=Bh(Gj),uK=Bh($j);function cK($){return"\\"+Yj[$]}function lK($,ce){return $==null?e:$[ce]}function jc($){return qj.test($)}function dK($){return Vj.test($)}function fK($){for(var ce,ne=[];!(ce=$.next()).done;)ne.push(ce.value);return ne}function xh($){var ce=-1,ne=Array($.size);return $.forEach(function(Be,ut){ne[++ce]=[ut,Be]}),ne}function s0($,ce){return function(ne){return $(ce(ne))}}function Go($,ce){for(var ne=-1,Be=$.length,ut=0,Yt=[];++ne-1}function ZK(s,u){var f=this.__data__,E=Gp(f,s);return E<0?(++this.size,f.push([s,u])):f[E][1]=u,this}is.prototype.clear=HK,is.prototype.delete=zK,is.prototype.get=WK,is.prototype.has=XK,is.prototype.set=ZK;function as(s){var u=-1,f=s==null?0:s.length;for(this.clear();++u=u?s:u)),s}function vi(s,u,f,E,S,L){var M,j=u&d,H=u&p,pe=u&y;if(f&&(M=S?f(s,E,S,L):f(s)),M!==e)return M;if(!vn(s))return s;var me=dt(s);if(me){if(M=r$(s),!j)return jr(s,M)}else{var he=hr(s),Ae=he==Ye||he==Ut;if(Wo(s))return j0(s,j);if(he==Vr||he==be||Ae&&!S){if(M=H||Ae?{}:oA(s),!j)return H?QG(s,NG(M,s)):$G(s,h0(M,s))}else{if(!Tn[he])return S?s:{};M=i$(s,he,j)}}L||(L=new Wi);var Ke=L.get(s);if(Ke)return Ke;L.set(s,M),UA(s)?s.forEach(function(et){M.add(vi(et,u,f,et,s,L))}):CA(s)&&s.forEach(function(et,St){M.set(St,vi(et,u,f,St,s,L))});var Ze=pe?H?dy:ly:H?Gr:ar,Et=me?e:Ze(s);return Ii(Et||s,function(et,St){Et&&(St=et,et=s[St]),Ed(M,St,vi(et,u,f,St,s,L))}),M}function TG(s){var u=ar(s);return function(f){return y0(f,s,u)}}function y0(s,u,f){var E=f.length;if(s==null)return!E;for(s=dn(s);E--;){var S=f[E],L=u[S],M=s[S];if(M===e&&!(S in s)||!L(M))return!1}return!0}function I0(s,u,f){if(typeof s!="function")throw new gi(i);return Sd(function(){s.apply(e,f)},u)}function hd(s,u,f,E){var S=-1,L=bp,M=!0,j=s.length,H=[],pe=u.length;if(!j)return H;f&&(u=In(u,ai(f))),E?(L=Fh,M=!1):u.length>=n&&(L=dd,M=!1,u=new Fu(u));e:for(;++SS?0:S+f),E=E===e||E>S?S:Nt(E),E<0&&(E+=S),E=f>E?0:MA(E);f0&&f(j)?u>1?Tr(j,u-1,f,E,S):Ko(S,j):E||(S[S.length]=j)}return S}var Qh=J0(),v0=J0(!0);function va(s,u){return s&&Qh(s,u,ar)}function Yh(s,u){return s&&v0(s,u,ar)}function Qp(s,u){return jo(u,function(f){return ls(s[f])})}function Lu(s,u){u=Ho(u,s);for(var f=0,E=u.length;s!=null&&fu}function yG(s,u){return s!=null&&rn.call(s,u)}function IG(s,u){return s!=null&&u in dn(s)}function gG(s,u,f){return s>=Er(u,f)&&s=120&&me.length>=120)?new Fu(M&&me):e}me=s[0];var he=-1,Ae=j[0];e:for(;++he-1;)j!==s&&kp.call(j,H,1),kp.call(s,H,1);return s}function C0(s,u){for(var f=s?u.length:0,E=f-1;f--;){var S=u[f];if(f==E||S!==L){var L=S;cs(S)?kp.call(s,S,1):ry(s,S)}}return s}function ey(s,u){return s+qp(m0()*(u-s+1))}function CG(s,u,f,E){for(var S=-1,L=zn(xp((u-s)/(f||1)),0),M=ne(L);L--;)M[E?L:++S]=s,s+=f;return M}function ty(s,u){var f="";if(!s||u<1||u>mn)return f;do u%2&&(f+=s),u=qp(u/2),u&&(s+=s);while(u);return f}function It(s,u){return hy(lA(s,u,$r),s+"")}function BG(s){return E0(Xc(s))}function UG(s,u){var f=Xc(s);return rm(f,wu(u,0,f.length))}function gd(s,u,f,E){if(!vn(s))return s;u=Ho(u,s);for(var S=-1,L=u.length,M=L-1,j=s;j!=null&&++SS?0:S+u),f=f>S?S:f,f<0&&(f+=S),S=u>f?0:f-u>>>0,u>>>=0;for(var L=ne(S);++E>>1,M=s[L];M!==null&&!oi(M)&&(f?M<=u:M=n){var pe=u?null:zG(s);if(pe)return Rp(pe);M=!1,S=dd,H=new Fu}else H=u?[]:j;e:for(;++E=E?s:Si(s,u,f)}var V0=bK||function(s){return ir.clearTimeout(s)};function j0(s,u){if(u)return s.slice();var f=s.length,E=c0?c0(f):new s.constructor(f);return s.copy(E),E}function oy(s){var u=new s.constructor(s.byteLength);return new Bp(u).set(new Bp(s)),u}function VG(s,u){var f=u?oy(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.byteLength)}function jG(s){var u=new s.constructor(s.source,Ob.exec(s));return u.lastIndex=s.lastIndex,u}function KG(s){return Td?dn(Td.call(s)):{}}function K0(s,u){var f=u?oy(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.length)}function G0(s,u){if(s!==u){var f=s!==e,E=s===null,S=s===s,L=oi(s),M=u!==e,j=u===null,H=u===u,pe=oi(u);if(!j&&!pe&&!L&&s>u||L&&M&&H&&!j&&!pe||E&&M&&H||!f&&H||!S)return 1;if(!E&&!L&&!pe&&s=j)return H;var pe=f[E];return H*(pe=="desc"?-1:1)}}return s.index-u.index}function $0(s,u,f,E){for(var S=-1,L=s.length,M=f.length,j=-1,H=u.length,pe=zn(L-M,0),me=ne(H+pe),he=!E;++j1?f[S-1]:e,M=S>2?f[2]:e;for(L=s.length>3&&typeof L=="function"?(S--,L):e,M&&Lr(f[0],f[1],M)&&(L=S<3?e:L,S=1),u=dn(u);++E-1?S[L?u[M]:M]:e}}function W0(s){return us(function(u){var f=u.length,E=f,S=_i.prototype.thru;for(s&&u.reverse();E--;){var L=u[E];if(typeof L!="function")throw new gi(i);if(S&&!M&&tm(L)=="wrapper")var M=new _i([],!0)}for(E=M?E:f;++E1&&Pt.reverse(),me&&Hj))return!1;var pe=L.get(s),me=L.get(u);if(pe&&me)return pe==u&&me==s;var he=-1,Ae=!0,Ke=f&v?new Fu:e;for(L.set(s,u),L.set(u,s);++he1?"& ":"")+u[E],u=u.join(f>2?", ":" "),s.replace(oj,`{ +`+r;return{outputEnd:r,outputStart:n,pathNodes:t}}function wE({outputEnd:e,outputStart:t,pathNodes:n},r){return t+Ya.LITERAL_SPACE.repeat(n.length+1)+Ule(r,n.length)+e}function cV(e,t){return t?e?`${t}${e}`:t:e}function kle({resDataByPath:e,rootFieldData:t,unresolvablePaths:n}){let r=new Array;for(let a of n){let o=(0,uD.getOrThrowError)(e,a,"resDataByPath"),c=new Map;for(let[d,p]of o.fieldDataByName)o.resolvedFieldNames.has(d)||c.set(d,p);let l=FE(a);for(let[d,p]of c)r.push({fieldName:d,selectionSet:wE(l,p),subgraphNames:p.subgraphNames,typeName:o.typeName})}let i=new Array;for(let a of r)i.push((0,oD.unresolvablePathError)(a,cD({rootFieldData:t,unresolvableFieldData:a})));return i}function Mle({entityAncestorData:e,resDataByPath:t,pathFromRoot:n,rootFieldData:r,subgraphNameByUnresolvablePath:i}){let a=new Array;for(let[o,c]of i){let l=new Array,d=(0,uD.getOrThrowError)(t,o,"resDataByPath"),p=new Map;for(let[v,F]of d.fieldDataByName)d.resolvedFieldNames.has(v)||p.set(v,F);let y=cV(o,n),I=FE(y);for(let[v,F]of p)l.push({fieldName:v,selectionSet:wE(I,F),subgraphNames:F.subgraphNames,typeName:d.typeName});e.subgraphName=c;for(let v of l)a.push((0,oD.unresolvablePathError)(v,cD({rootFieldData:r,unresolvableFieldData:v,entityAncestorData:e})))}return a}function xle({entityAncestors:e,resDataByPath:t,pathFromRoot:n,rootFieldData:r,subgraphNameByUnresolvablePath:i}){let a=new Array;for(let o of i.keys()){let c=new Array,l=(0,uD.getOrThrowError)(t,o,"resDataByPath"),d=new Map;for(let[I,v]of l.fieldDataByName)l.resolvedFieldNames.has(I)||d.set(I,v);let p=cV(o,n),y=FE(p);for(let[I,v]of d)c.push({fieldName:I,selectionSet:wE(y,v),subgraphNames:v.subgraphNames,typeName:l.typeName});for(let I of c)a.push((0,oD.unresolvablePathError)(I,uV({rootFieldData:r,unresolvableFieldData:I,entityAncestors:e})))}return a}function qle({relativeOriginPaths:e,selectionPath:t}){if(!e)return new Set([t]);let n=new Set;for(let r of e)n.add(`${r}${t}`);return n}});var CE=w(LE=>{"use strict";m();T();N();Object.defineProperty(LE,"__esModule",{value:!0});LE.NodeResolutionData=void 0;var Vle=Mi(),_c,fD=class fD{constructor({fieldDataByName:t,isResolved:n=!1,resolvedDescendantNames:r,resolvedFieldNames:i,typeName:a}){tR(this,_c,!1);_(this,"fieldDataByName");_(this,"resolvedDescendantNames");_(this,"resolvedFieldNames");_(this,"typeName");Uy(this,_c,n),this.fieldDataByName=t,this.resolvedDescendantNames=new Set(r),this.resolvedFieldNames=new Set(i),this.typeName=a}addData(t){for(let n of t.resolvedFieldNames)this.addResolvedFieldName(n);for(let n of t.resolvedDescendantNames)this.resolvedDescendantNames.add(n)}addResolvedFieldName(t){if(!this.fieldDataByName.has(t))throw(0,Vle.unexpectedEdgeFatalError)(this.typeName,[t]);this.resolvedFieldNames.add(t)}copy(){return new fD({fieldDataByName:this.fieldDataByName,isResolved:By(this,_c),resolvedDescendantNames:this.resolvedDescendantNames,resolvedFieldNames:this.resolvedFieldNames,typeName:this.typeName})}areDescendantsResolved(){return this.fieldDataByName.size===this.resolvedDescendantNames.size}isResolved(){if(By(this,_c))return!0;if(this.fieldDataByName.size!==this.resolvedFieldNames.size)return!1;for(let t of this.fieldDataByName.keys())if(!this.resolvedFieldNames.has(t))return!1;return Uy(this,_c,!0),!0}};_c=new WeakMap;var dD=fD;LE.NodeResolutionData=dD});var lV=w(BE=>{"use strict";m();T();N();Object.defineProperty(BE,"__esModule",{value:!0});BE.EntityWalker=void 0;var jle=CE(),Ja=Sr(),pD=class{constructor({encounteredEntityNodeNames:t,index:n,relativeOriginPaths:r,resDataByNodeName:i,resDataByRelativeOriginPath:a,subgraphNameByUnresolvablePath:o,visitedEntities:c}){_(this,"encounteredEntityNodeNames");_(this,"index");_(this,"resDataByNodeName");_(this,"resDataByRelativeOriginPath");_(this,"selectionPathByEntityNodeName",new Map);_(this,"subgraphNameByUnresolvablePath");_(this,"visitedEntities");_(this,"relativeOriginPaths");this.encounteredEntityNodeNames=t,this.index=n,this.relativeOriginPaths=r,this.resDataByNodeName=i,this.resDataByRelativeOriginPath=a,this.visitedEntities=c,this.subgraphNameByUnresolvablePath=o}getNodeResolutionData({node:{fieldDataByName:t,nodeName:n,typeName:r},selectionPath:i}){let a=(0,Ja.getValueOrDefault)(this.resDataByNodeName,n,()=>new jle.NodeResolutionData({fieldDataByName:t,typeName:r}));if(!this.relativeOriginPaths||this.relativeOriginPaths.size<1)return(0,Ja.getValueOrDefault)(this.resDataByRelativeOriginPath,i,()=>a.copy());let o;for(let c of this.relativeOriginPaths){let l=(0,Ja.getValueOrDefault)(this.resDataByRelativeOriginPath,`${c}${i}`,()=>a.copy());o!=null||(o=l)}return o}visitEntityDescendantEdge({edge:t,selectionPath:n}){return t.isInaccessible||t.node.isInaccessible?{visited:!1,areDescendantsResolved:!1}:t.node.isLeaf?{visited:!0,areDescendantsResolved:!0}:(0,Ja.add)(t.visitedIndices,this.index)?t.node.hasEntitySiblings?this.visitedEntities.has(t.node.nodeName)||this.encounteredEntityNodeNames.has(t.node.nodeName)?{visited:!0,areDescendantsResolved:!0}:(this.encounteredEntityNodeNames.add(t.node.nodeName),(0,Ja.getValueOrDefault)(this.selectionPathByEntityNodeName,t.node.nodeName,()=>`${n}.${t.edgeName}`),{visited:!0,areDescendantsResolved:!1}):t.node.isAbstract?this.visitEntityDescendantAbstractNode({node:t.node,selectionPath:`${n}.${t.edgeName}`}):this.visitEntityDescendantConcreteNode({node:t.node,selectionPath:`${n}.${t.edgeName}`}):(this.removeUnresolvablePaths({selectionPath:`${n}.${t.edgeName}`,removeDescendantPaths:!0}),{visited:!0,areDescendantsResolved:!0,isRevisitedNode:!0})}visitEntityDescendantConcreteNode({node:t,selectionPath:n}){if(t.headToTailEdges.size<1)return t.isLeaf=!0,{visited:!0,areDescendantsResolved:!0};let r=this.getNodeResolutionData({node:t,selectionPath:n});if(r.isResolved()&&r.areDescendantsResolved())return{visited:!0,areDescendantsResolved:!0};let i;for(let[a,o]of t.headToTailEdges){let{visited:c,areDescendantsResolved:l,isRevisitedNode:d}=this.visitEntityDescendantEdge({edge:o,selectionPath:n});i!=null||(i=d),this.propagateVisitedField({areDescendantsResolved:l,fieldName:a,data:r,nodeName:t.nodeName,selectionPath:n,visited:c})}return r.isResolved()?this.removeUnresolvablePaths({removeDescendantPaths:i,selectionPath:n}):this.addUnresolvablePaths({selectionPath:n,subgraphName:t.subgraphName}),{visited:!0,areDescendantsResolved:r.areDescendantsResolved()}}visitEntityDescendantAbstractNode({node:t,selectionPath:n}){if(t.headToTailEdges.size<1)return{visited:!0,areDescendantsResolved:!0};let r=0;for(let i of t.headToTailEdges.values())this.visitEntityDescendantEdge({edge:i,selectionPath:n}).areDescendantsResolved&&(r+=1);return{visited:!0,areDescendantsResolved:r===t.headToTailEdges.size}}propagateVisitedField({areDescendantsResolved:t,data:n,fieldName:r,nodeName:i,selectionPath:a,visited:o}){if(!o)return;let c=(0,Ja.getValueOrDefault)(this.resDataByNodeName,i,()=>n.copy());if(n.addResolvedFieldName(r),c.addResolvedFieldName(r),t&&n.resolvedDescendantNames.add(r),this.relativeOriginPaths){for(let d of this.relativeOriginPaths){let p=(0,Ja.getValueOrDefault)(this.resDataByRelativeOriginPath,`${d}${a}`,()=>n.copy());p.addResolvedFieldName(r),t&&p.resolvedDescendantNames.add(r)}return}let l=(0,Ja.getValueOrDefault)(this.resDataByRelativeOriginPath,a,()=>n.copy());l.addResolvedFieldName(r),t&&l.resolvedDescendantNames.add(r)}addUnresolvablePaths({selectionPath:t,subgraphName:n}){if(!this.relativeOriginPaths){(0,Ja.getValueOrDefault)(this.subgraphNameByUnresolvablePath,t,()=>n);return}for(let r of this.relativeOriginPaths)(0,Ja.getValueOrDefault)(this.subgraphNameByUnresolvablePath,`${r}${t}`,()=>n)}removeUnresolvablePaths({selectionPath:t,removeDescendantPaths:n}){if(!this.relativeOriginPaths){if(this.subgraphNameByUnresolvablePath.delete(t),n)for(let r of this.subgraphNameByUnresolvablePath.keys())r.startsWith(t)&&this.subgraphNameByUnresolvablePath.delete(r);return}for(let r of this.relativeOriginPaths){let i=`${r}${t}`;if(this.subgraphNameByUnresolvablePath.delete(i),n)for(let a of this.subgraphNameByUnresolvablePath.keys())a.startsWith(i)&&this.subgraphNameByUnresolvablePath.delete(a)}}};BE.EntityWalker=pD});var dV=w(kE=>{"use strict";m();T();N();Object.defineProperty(kE,"__esModule",{value:!0});kE.RootFieldWalker=void 0;var Ha=Sr(),UE=CE(),mD=class{constructor({index:t,nodeResolutionDataByNodeName:n}){_(this,"index");_(this,"resDataByNodeName");_(this,"resDataByPath",new Map);_(this,"entityNodeNamesByPath",new Map);_(this,"pathsByEntityNodeName",new Map);_(this,"unresolvablePaths",new Set);this.index=t,this.resDataByNodeName=n}visitEdge({edge:t,selectionPath:n}){return t.isInaccessible||t.node.isInaccessible?{visited:!1,areDescendantsResolved:!0}:t.node.isLeaf?{visited:!0,areDescendantsResolved:!0}:(0,Ha.add)(t.visitedIndices,this.index)?t.node.hasEntitySiblings?this.resDataByNodeName.has(t.node.nodeName)?{visited:!0,areDescendantsResolved:!0}:((0,Ha.getValueOrDefault)(this.pathsByEntityNodeName,t.node.nodeName,()=>new Set).add(`${n}.${t.edgeName}`),{visited:!0,areDescendantsResolved:!1}):t.node.isAbstract?this.visitAbstractNode({node:t.node,selectionPath:`${n}.${t.edgeName}`}):this.visitConcreteNode({node:t.node,selectionPath:`${n}.${t.edgeName}`}):{visited:!0,areDescendantsResolved:!0}}visitAbstractNode({node:t,selectionPath:n}){if(t.headToTailEdges.size<1)return{visited:!0,areDescendantsResolved:!0};let r=0;for(let i of t.headToTailEdges.values())this.visitEdge({edge:i,selectionPath:n}).areDescendantsResolved&&(r+=1);return{visited:!0,areDescendantsResolved:r===t.headToTailEdges.size}}visitConcreteNode({node:t,selectionPath:n}){if(t.headToTailEdges.size<1)return t.isLeaf=!0,{visited:!0,areDescendantsResolved:!0};let r=this.resDataByNodeName.get(t.nodeName);if(r)return{visited:!0,areDescendantsResolved:r.areDescendantsResolved()};let i=this.getNodeResolutionData({node:t,selectionPath:n});if(i.isResolved()&&i.areDescendantsResolved())return{visited:!0,areDescendantsResolved:!0};for(let[a,o]of t.headToTailEdges){let{visited:c,areDescendantsResolved:l}=this.visitEdge({edge:o,selectionPath:n});this.propagateVisitedField({areDescendantsResolved:l,fieldName:a,data:i,node:t,selectionPath:n,visited:c})}return i.isResolved()?this.unresolvablePaths.delete(n):this.unresolvablePaths.add(n),{visited:!0,areDescendantsResolved:i.areDescendantsResolved()}}visitSharedEdge({edge:t,selectionPath:n}){return t.isInaccessible||t.node.isInaccessible?{visited:!1,areDescendantsResolved:!0}:t.node.isLeaf?{visited:!0,areDescendantsResolved:!0}:(0,Ha.add)(t.visitedIndices,this.index)?(t.node.hasEntitySiblings&&(0,Ha.getValueOrDefault)(this.entityNodeNamesByPath,`${n}.${t.edgeName}`,()=>new Set).add(t.node.nodeName),t.node.isAbstract?this.visitSharedAbstractNode({node:t.node,selectionPath:`${n}.${t.edgeName}`}):this.visitSharedConcreteNode({node:t.node,selectionPath:`${n}.${t.edgeName}`})):{visited:!0,areDescendantsResolved:!0}}visitSharedAbstractNode({node:t,selectionPath:n}){if(t.headToTailEdges.size<1)return{visited:!0,areDescendantsResolved:!0};let r=0;for(let i of t.headToTailEdges.values())this.visitSharedEdge({edge:i,selectionPath:n}).areDescendantsResolved&&(r+=1);return{visited:!0,areDescendantsResolved:r===t.headToTailEdges.size}}visitSharedConcreteNode({node:t,selectionPath:n}){if(t.headToTailEdges.size<1)return t.isLeaf=!0,{visited:!0,areDescendantsResolved:!0};let r=this.getSharedNodeResolutionData({node:t,selectionPath:n});if(r.isResolved()&&r.areDescendantsResolved())return{visited:!0,areDescendantsResolved:!0};for(let[i,a]of t.headToTailEdges){let{visited:o,areDescendantsResolved:c}=this.visitSharedEdge({edge:a,selectionPath:n});this.propagateSharedVisitedField({areDescendantsResolved:c,data:r,fieldName:i,node:t,visited:o})}return r.isResolved()?this.unresolvablePaths.delete(n):this.unresolvablePaths.add(n),{visited:!0,areDescendantsResolved:r.areDescendantsResolved()}}getNodeResolutionData({node:t,selectionPath:n}){let r=(0,Ha.getValueOrDefault)(this.resDataByNodeName,t.nodeName,()=>new UE.NodeResolutionData({fieldDataByName:t.fieldDataByName,typeName:t.typeName}));return(0,Ha.getValueOrDefault)(this.resDataByPath,n,()=>r.copy()),r}getSharedNodeResolutionData({node:t,selectionPath:n}){let r=(0,Ha.getValueOrDefault)(this.resDataByNodeName,t.nodeName,()=>new UE.NodeResolutionData({fieldDataByName:t.fieldDataByName,typeName:t.typeName}));return(0,Ha.getValueOrDefault)(this.resDataByPath,n,()=>r.copy())}propagateVisitedField({areDescendantsResolved:t,data:n,fieldName:r,node:i,selectionPath:a,visited:o}){if(!o)return;n.addResolvedFieldName(r);let c=(0,Ha.getValueOrDefault)(this.resDataByPath,a,()=>new UE.NodeResolutionData({fieldDataByName:i.fieldDataByName,typeName:i.typeName}));c.addResolvedFieldName(r),t&&(n.resolvedDescendantNames.add(r),c.resolvedDescendantNames.add(r))}propagateSharedVisitedField({areDescendantsResolved:t,data:n,fieldName:r,node:i,visited:a}){if(!a)return;n.addResolvedFieldName(r);let o=(0,Ha.getValueOrDefault)(this.resDataByNodeName,i.nodeName,()=>new UE.NodeResolutionData({fieldDataByName:i.fieldDataByName,typeName:i.typeName}));o.addResolvedFieldName(r),t&&(n.resolvedDescendantNames.add(r),o.resolvedDescendantNames.add(r))}visitRootFieldEdges({edges:t,rootTypeName:n}){let r=t.length>1;for(let i of t){if(i.isInaccessible)return{visited:!1,areDescendantsResolved:!1};let a=r?this.visitSharedEdge({edge:i,selectionPath:n}):this.visitEdge({edge:i,selectionPath:n});if(a.areDescendantsResolved)return a}return{visited:!0,areDescendantsResolved:!1}}};kE.RootFieldWalker=mD});var TD=w(xE=>{"use strict";m();T();N();Object.defineProperty(xE,"__esModule",{value:!0});xE.Graph=void 0;var Xl=aD(),vc=lD(),Ji=Sr(),ME=sD(),Kle=lV(),Gle=dV(),ND=class{constructor(){_(this,"edgeId",-1);_(this,"entityDataNodeByTypeName",new Map);_(this,"nodeByNodeName",new Map);_(this,"nodesByTypeName",new Map);_(this,"resolvedRootFieldNodeNames",new Set);_(this,"rootNodeByTypeName",new Map);_(this,"subgraphName",ME.NOT_APPLICABLE);_(this,"resDataByNodeName",new Map);_(this,"resDataByRelativePathByEntity",new Map);_(this,"visitedEntitiesByOriginEntity",new Map);_(this,"walkerIndex",-1)}getRootNode(t){return(0,Ji.getValueOrDefault)(this.rootNodeByTypeName,t,()=>new Xl.RootNode(t))}addOrUpdateNode(t,n){let r=`${this.subgraphName}.${t}`,i=this.nodeByNodeName.get(r);if(i)return i.isAbstract||(i.isAbstract=!!(n!=null&&n.isAbstract)),!i.isLeaf&&(n!=null&&n.isLeaf)&&(i.isLeaf=!0),i;let a=new Xl.GraphNode(this.subgraphName,t,n);return this.nodeByNodeName.set(r,a),(0,Ji.getValueOrDefault)(this.nodesByTypeName,t,()=>[]).push(a),a}addEdge(t,n,r,i=!1){if(t.isRootNode){let c=new Xl.Edge(this.getNextEdgeId(),n,r);return(0,Ji.getValueOrDefault)(t.headToSharedTailEdges,r,()=>[]).push(c),c}let a=t,o=new Xl.Edge(this.getNextEdgeId(),n,i?n.typeName:r,i);return a.headToTailEdges.set(r,o),o}addEntityDataNode(t){let n=this.entityDataNodeByTypeName.get(t);if(n)return n;let r=new Xl.EntityDataNode(t);return this.entityDataNodeByTypeName.set(t,r),r}getNextEdgeId(){return this.edgeId+=1}getNextWalkerIndex(){return this.walkerIndex+=1}setNodeInaccessible(t){let n=this.nodesByTypeName.get(t);if(n)for(let r of n)r.isInaccessible=!0}initializeNode(t,n){let r=this.entityDataNodeByTypeName.get(t);if(ME.ROOT_TYPE_NAMES.has(t)){let a=this.getRootNode(t);a.removeInaccessibleEdges(n),a.fieldDataByName=n;return}let i=this.nodesByTypeName.get(t);if(i){for(let a of i)if(a.fieldDataByName=n,a.handleInaccessibleEdges(),a.isLeaf=!1,!!r){a.hasEntitySiblings=!0;for(let o of a.satisfiedFieldSets){let c=r.targetSubgraphNamesByFieldSet.get(o);for(let l of c!=null?c:[]){if(l===a.subgraphName)continue;let d=this.nodeByNodeName.get(`${l}.${a.typeName}`);d&&a.entityEdges.push(new Xl.Edge(this.getNextEdgeId(),d,""))}}}}}setSubgraphName(t){this.subgraphName=t}visitEntity({encounteredEntityNodeNames:t,entityNodeName:n,relativeOriginPaths:r,resDataByRelativeOriginPath:i,subgraphNameByUnresolvablePath:a,visitedEntities:o}){let c=this.nodeByNodeName.get(n);if(!c)throw new Error(`Fatal: Could not find entity node for "${n}".`);o.add(n);let l=this.nodesByTypeName.get(c.typeName);if(!(l!=null&&l.length))throw new Error(`Fatal: Could not find any nodes for "${n}".`);let d=new Kle.EntityWalker({encounteredEntityNodeNames:t,index:this.getNextWalkerIndex(),relativeOriginPaths:r,resDataByNodeName:this.resDataByNodeName,resDataByRelativeOriginPath:i,subgraphNameByUnresolvablePath:a,visitedEntities:o}),p=c.getAllAccessibleEntityNodeNames();for(let y of l){if(y.nodeName!==c.nodeName&&!p.has(y.nodeName))continue;let{areDescendantsResolved:I}=d.visitEntityDescendantConcreteNode({node:y,selectionPath:""});if(I)return}for(let[y,I]of d.selectionPathByEntityNodeName)this.visitEntity({encounteredEntityNodeNames:t,entityNodeName:y,relativeOriginPaths:(0,vc.getMultipliedRelativeOriginPaths)({relativeOriginPaths:r,selectionPath:I}),resDataByRelativeOriginPath:i,subgraphNameByUnresolvablePath:a,visitedEntities:o})}validate(){for(let t of this.rootNodeByTypeName.values())for(let[n,r]of t.headToSharedTailEdges){let i=r.length>1;if(!i){let p=r[0].node.nodeName;if(this.resolvedRootFieldNodeNames.has(p))continue;this.resolvedRootFieldNodeNames.add(p)}let a=new Gle.RootFieldWalker({index:this.getNextWalkerIndex(),nodeResolutionDataByNodeName:this.resDataByNodeName});if(a.visitRootFieldEdges({edges:r,rootTypeName:t.typeName.toLowerCase()}).areDescendantsResolved)continue;let o=i?a.entityNodeNamesByPath.size>0:a.pathsByEntityNodeName.size>0;if(a.unresolvablePaths.size<1&&!o)continue;let c=(0,Ji.getOrThrowError)(t.fieldDataByName,n,"fieldDataByName"),l=(0,vc.newRootFieldData)(t.typeName,n,c.subgraphNames);if(!o)return{errors:(0,vc.generateRootResolvabilityErrors)({unresolvablePaths:a.unresolvablePaths,resDataByPath:a.resDataByPath,rootFieldData:l}),success:!1};let d=this.validateEntities({isSharedRootField:i,rootFieldData:l,walker:a});if(!d.success)return d}return{success:!0}}consolidateUnresolvableRootWithEntityPaths({pathFromRoot:t,resDataByRelativeOriginPath:n,subgraphNameByUnresolvablePath:r,walker:i}){for(let a of i.unresolvablePaths){if(!a.startsWith(t))continue;let o=a.slice(t.length),c=(0,Ji.getOrThrowError)(i.resDataByPath,a,"rootFieldWalker.unresolvablePaths"),l=n.get(o);if(l){if(c.addData(l),l.addData(c),!c.isResolved()){i.unresolvablePaths.delete(a);continue}i.unresolvablePaths.delete(a),r.delete(o)}}}consolidateUnresolvableEntityWithRootPaths({pathFromRoot:t,resDataByRelativeOriginPath:n,subgraphNameByUnresolvablePath:r,walker:i}){for(let a of r.keys()){let o=(0,Ji.getOrThrowError)(n,a,"resDataByRelativeOriginPath"),c=`${t}${a}`,l=i.resDataByPath.get(c);l&&(o.addData(l),l.addData(o)),o.isResolved()&&r.delete(a)}}validateSharedRootFieldEntities({rootFieldData:t,walker:n}){for(let[r,i]of n.entityNodeNamesByPath){let a=new Map,o=new Map;for(let l of i)this.visitEntity({encounteredEntityNodeNames:new Set,entityNodeName:l,resDataByRelativeOriginPath:o,subgraphNameByUnresolvablePath:a,visitedEntities:new Set});if(this.consolidateUnresolvableRootWithEntityPaths({pathFromRoot:r,resDataByRelativeOriginPath:o,subgraphNameByUnresolvablePath:a,walker:n}),a.size<1)continue;this.consolidateUnresolvableEntityWithRootPaths({pathFromRoot:r,resDataByRelativeOriginPath:o,subgraphNameByUnresolvablePath:a,walker:n});let c=new Array;if(a.size>0&&c.push(...this.getSharedEntityResolvabilityErrors({entityNodeNames:i,resDataByPath:o,pathFromRoot:r,rootFieldData:t,subgraphNameByUnresolvablePath:a})),n.unresolvablePaths.size>0&&c.push(...(0,vc.generateRootResolvabilityErrors)({unresolvablePaths:n.unresolvablePaths,resDataByPath:n.resDataByPath,rootFieldData:t})),!(c.length<1))return{errors:c,success:!1}}return n.unresolvablePaths.size>0?{errors:(0,vc.generateRootResolvabilityErrors)({resDataByPath:n.resDataByPath,rootFieldData:t,unresolvablePaths:n.unresolvablePaths}),success:!1}:{success:!0}}validateRootFieldEntities({rootFieldData:t,walker:n}){var r;for(let[i,a]of n.pathsByEntityNodeName){let o=new Map;if(this.resDataByNodeName.has(i))continue;let c=(0,Ji.getValueOrDefault)(this.resDataByRelativePathByEntity,i,()=>new Map);if(this.visitEntity({encounteredEntityNodeNames:new Set,entityNodeName:i,resDataByRelativeOriginPath:c,subgraphNameByUnresolvablePath:o,visitedEntities:(0,Ji.getValueOrDefault)(this.visitedEntitiesByOriginEntity,i,()=>new Set)}),!(o.size<1))return{errors:this.getEntityResolvabilityErrors({entityNodeName:i,pathFromRoot:(r=(0,Ji.getFirstEntry)(a))!=null?r:"",rootFieldData:t,subgraphNameByUnresolvablePath:o}),success:!1}}return{success:!0}}validateEntities(t){return t.isSharedRootField?this.validateSharedRootFieldEntities(t):this.validateRootFieldEntities(t)}getEntityResolvabilityErrors({entityNodeName:t,pathFromRoot:n,rootFieldData:r,subgraphNameByUnresolvablePath:i}){let a=(0,Ji.getOrThrowError)(this.resDataByRelativePathByEntity,t,"resDataByRelativePathByEntity"),o=t.split(ME.LITERAL_PERIOD)[1],{fieldSetsByTargetSubgraphName:c}=(0,Ji.getOrThrowError)(this.entityDataNodeByTypeName,o,"entityDataNodeByTypeName");return(0,vc.generateEntityResolvabilityErrors)({entityAncestorData:{fieldSetsByTargetSubgraphName:c,subgraphName:"",typeName:o},pathFromRoot:n,resDataByPath:a,rootFieldData:r,subgraphNameByUnresolvablePath:i})}getSharedEntityResolvabilityErrors({entityNodeNames:t,pathFromRoot:n,rootFieldData:r,resDataByPath:i,subgraphNameByUnresolvablePath:a}){let o,c=new Array;for(let d of t){let p=d.split(ME.LITERAL_PERIOD);o!=null||(o=p[1]),c.push(p[0])}let{fieldSetsByTargetSubgraphName:l}=(0,Ji.getOrThrowError)(this.entityDataNodeByTypeName,o,"entityDataNodeByTypeName");return(0,vc.generateSharedEntityResolvabilityErrors)({entityAncestors:{fieldSetsByTargetSubgraphName:l,subgraphNames:c,typeName:o},pathFromRoot:n,resDataByPath:i,rootFieldData:r,subgraphNameByUnresolvablePath:a})}};xE.Graph=ND});var ED=w(qE=>{"use strict";m();T();N();Object.defineProperty(qE,"__esModule",{value:!0});qE.newFieldSetConditionData=$le;qE.newConfigurationData=Qle;function $le({fieldCoordinatesPath:e,fieldPath:t}){return{fieldCoordinatesPath:e,fieldPath:t}}function Qle(e,t){return{fieldNames:new Set,isRootNode:e,typeName:t}}});var yD=w(Sc=>{"use strict";m();T();N();Object.defineProperty(Sc,"__esModule",{value:!0});Sc.NormalizationFactory=void 0;Sc.normalizeSubgraphFromString=zle;Sc.normalizeSubgraph=pV;Sc.batchNormalize=Wle;var Z=De(),bn=Hr(),ni=zf(),qt=Ss(),Gn=Hf(),le=Mi(),VE=Yl(),Yle=bv(),Ei=iE(),Jle=HO(),Wa=Wf(),fV=eD(),za=Df(),sn=Sl(),rr=du(),hD=TD(),jE=Pv(),z=vr(),Hle=gl(),je=Sr(),Zf=ED();function zle(e,t=!0){let{error:n,documentNode:r}=(0,bn.safeParse)(e,t);return n||!r?{errors:[(0,le.subgraphInvalidSyntaxError)(n)],success:!1,warnings:[]}:new ep(new hD.Graph).normalize(r)}function pV(e,t,n){return new ep(n||new hD.Graph,t).normalize(e)}var ep=class{constructor(t,n){_(this,"argumentName","");_(this,"authorizationDataByParentTypeName",new Map);_(this,"concreteTypeNamesByAbstractTypeName",new Map);_(this,"conditionalFieldDataByCoords",new Map);_(this,"configurationDataByTypeName",new Map);_(this,"customDirectiveDefinitions",new Map);_(this,"definedDirectiveNames",new Set);_(this,"directiveDefinitionByDirectiveName",new Map);_(this,"directiveDefinitionDataByDirectiveName",(0,ni.initializeDirectiveDefinitionDatas)());_(this,"doesParentRequireFetchReasons",!1);_(this,"edfsDirectiveReferences",new Set);_(this,"errors",new Array);_(this,"entityDataByTypeName",new Map);_(this,"entityInterfaceDataByTypeName",new Map);_(this,"eventsConfigurations",new Map);_(this,"fieldSetDataByTypeName",new Map);_(this,"internalGraph");_(this,"invalidConfigureDescriptionNodeDatas",[]);_(this,"invalidORScopesCoords",new Set);_(this,"invalidRepeatedDirectiveNameByCoords",new Map);_(this,"isParentObjectExternal",!1);_(this,"isParentObjectShareable",!1);_(this,"isSubgraphEventDrivenGraph",!1);_(this,"isSubgraphVersionTwo",!1);_(this,"keyFieldSetDatasByTypeName",new Map);_(this,"lastParentNodeKind",Z.Kind.NULL);_(this,"lastChildNodeKind",Z.Kind.NULL);_(this,"parentTypeNamesWithAuthDirectives",new Set);_(this,"keyFieldSetsByEntityTypeNameByFieldCoords",new Map);_(this,"keyFieldNamesByParentTypeName",new Map);_(this,"fieldCoordsByNamedTypeName",new Map);_(this,"operationTypeNodeByTypeName",new Map);_(this,"originalParentTypeName","");_(this,"originalTypeNameByRenamedTypeName",new Map);_(this,"overridesByTargetSubgraphName",new Map);_(this,"parentDefinitionDataByTypeName",new Map);_(this,"schemaData");_(this,"referencedDirectiveNames",new Set);_(this,"referencedTypeNames",new Set);_(this,"renamedParentTypeName","");_(this,"subgraphName");_(this,"unvalidatedExternalFieldCoords",new Set);_(this,"usesEdfsNatsStreamConfiguration",!1);_(this,"warnings",[]);for(let[r,i]of qt.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME)this.directiveDefinitionByDirectiveName.set(r,i);this.subgraphName=n||z.NOT_APPLICABLE,this.internalGraph=t,this.internalGraph.setSubgraphName(this.subgraphName),this.schemaData={directivesByDirectiveName:new Map,kind:Z.Kind.SCHEMA_DEFINITION,name:z.SCHEMA,operationTypes:new Map}}validateArguments(t,n){for(let r of t.argumentDataByName.values()){let i=(0,rr.getTypeNodeNamedTypeName)(r.type);if(qt.BASE_SCALARS.has(i)){r.namedTypeKind=Z.Kind.SCALAR_TYPE_DEFINITION;continue}let a=this.parentDefinitionDataByTypeName.get(i);if(a){if((0,sn.isInputNodeKind)(a.kind)){r.namedTypeKind=a.kind;continue}this.errors.push((0,le.invalidNamedTypeError)({data:r,namedTypeData:a,nodeType:`${(0,je.kindToNodeType)(n)} field argument`}))}}}isTypeNameRootType(t){return z.ROOT_TYPE_NAMES.has(t)||this.operationTypeNodeByTypeName.has(t)}isArgumentValueValid(t,n){if(n.kind===Z.Kind.NULL)return t.kind!==Z.Kind.NON_NULL_TYPE;switch(t.kind){case Z.Kind.LIST_TYPE:{if(n.kind!==Z.Kind.LIST)return this.isArgumentValueValid((0,rr.getNamedTypeNode)(t.type),n);for(let r of n.values)if(!this.isArgumentValueValid(t.type,r))return!1;return!0}case Z.Kind.NAMED_TYPE:switch(t.name.value){case z.BOOLEAN_SCALAR:return n.kind===Z.Kind.BOOLEAN;case z.FLOAT_SCALAR:return n.kind===Z.Kind.FLOAT||n.kind===Z.Kind.INT;case z.ID_SCALAR:return n.kind===Z.Kind.STRING||n.kind===Z.Kind.INT;case z.INT_SCALAR:return n.kind===Z.Kind.INT;case z.FIELD_SET_SCALAR:case z.SCOPE_SCALAR:case z.STRING_SCALAR:return n.kind===Z.Kind.STRING;case z.LINK_IMPORT:return!0;case z.LINK_PURPOSE:return n.kind!==Z.Kind.ENUM?!1:n.value===z.SECURITY||n.value===z.EXECUTION;case z.SUBSCRIPTION_FIELD_CONDITION:case z.SUBSCRIPTION_FILTER_CONDITION:return n.kind===Z.Kind.OBJECT;default:{let r=this.parentDefinitionDataByTypeName.get(t.name.value);if(!r)return!1;if(r.kind===Z.Kind.SCALAR_TYPE_DEFINITION)return!0;if(r.kind===Z.Kind.ENUM_TYPE_DEFINITION){if(n.kind!==Z.Kind.ENUM)return!1;let i=r.enumValueDataByName.get(n.value);return i?!i.directivesByDirectiveName.has(z.INACCESSIBLE):!1}return r.kind!==Z.Kind.INPUT_OBJECT_TYPE_DEFINITION?!1:n.kind===Z.Kind.OBJECT}}default:return this.isArgumentValueValid(t.type,n)}}handleFieldInheritableDirectives({directivesByDirectiveName:t,fieldName:n,inheritedDirectiveNames:r,parentData:i}){this.doesParentRequireFetchReasons&&!t.has(z.REQUIRE_FETCH_REASONS)&&(t.set(z.REQUIRE_FETCH_REASONS,[(0,je.generateSimpleDirective)(z.REQUIRE_FETCH_REASONS)]),r.add(z.REQUIRE_FETCH_REASONS)),(this.doesParentRequireFetchReasons||t.has(z.REQUIRE_FETCH_REASONS))&&i.requireFetchReasonsFieldNames.add(n),(0,Gn.isObjectDefinitionData)(i)&&(this.isParentObjectExternal&&!t.has(z.EXTERNAL)&&(t.set(z.EXTERNAL,[(0,je.generateSimpleDirective)(z.EXTERNAL)]),r.add(z.EXTERNAL)),t.has(z.EXTERNAL)&&this.unvalidatedExternalFieldCoords.add(`${i.name}.${n}`),this.isParentObjectShareable&&!t.has(z.SHAREABLE)&&(t.set(z.SHAREABLE,[(0,je.generateSimpleDirective)(z.SHAREABLE)]),r.add(z.SHAREABLE)))}extractDirectives(t,n){if(!t.directives)return n;let r=(0,Gn.isCompositeOutputNodeKind)(t.kind),i=(0,Gn.isObjectNodeKind)(t.kind);for(let a of t.directives){let o=a.name.value;o===z.SHAREABLE?(0,je.getValueOrDefault)(n,o,()=>[a]):(0,je.getValueOrDefault)(n,o,()=>[]).push(a),r&&(this.doesParentRequireFetchReasons||(this.doesParentRequireFetchReasons=o===z.REQUIRE_FETCH_REASONS),i&&(this.isParentObjectExternal||(this.isParentObjectExternal=o===z.EXTERNAL),this.isParentObjectShareable||(this.isParentObjectShareable=o===z.SHAREABLE)))}return n}validateDirective({data:t,definitionData:n,directiveCoords:r,directiveNode:i,errorMessages:a,requiredArgumentNames:o}){let c=i.name.value,l=t.kind===Z.Kind.FIELD_DEFINITION?t.renamedParentTypeName||t.originalParentTypeName:t.name,d=c===z.AUTHENTICATED,p=(0,sn.isFieldData)(t),y=c===z.OVERRIDE,I=c===z.REQUIRES_SCOPES,v=c===z.SEMANTIC_NON_NULL;if(!i.arguments||i.arguments.length<1)return n.requiredArgumentNames.size>0&&a.push((0,le.undefinedRequiredArgumentsErrorMessage)(c,o,[])),d&&this.handleAuthenticatedDirective(t,l),v&&p&&((0,sn.isTypeRequired)(t.type)?a.push((0,le.semanticNonNullLevelsNonNullErrorMessage)({typeString:(0,Ei.printTypeNode)(t.type),value:"0"})):t.nullLevelsBySubgraphName.set(this.subgraphName,new Set([0]))),a;let F=new Set,k=new Set,K=new Set,J=[];for(let Te of i.arguments){let de=Te.name.value;if(F.has(de)){k.add(de);continue}F.add(de);let Re=n.argumentTypeNodeByName.get(de);if(!Re){K.add(de);continue}if(!this.isArgumentValueValid(Re.typeNode,Te.value)){a.push((0,le.invalidArgumentValueErrorMessage)((0,Z.print)(Te.value),`@${c}`,de,(0,Ei.printTypeNode)(Re.typeNode)));continue}if(y&&p){this.handleOverrideDirective({data:t,directiveCoords:r,errorMessages:a,targetSubgraphName:Te.value.value});continue}if(v&&p){this.handleSemanticNonNullDirective({data:t,directiveNode:i,errorMessages:a});continue}!I||de!==z.SCOPES||this.extractRequiredScopes({directiveCoords:r,orScopes:Te.value.values,requiredScopes:J})}k.size>0&&a.push((0,le.duplicateDirectiveArgumentDefinitionsErrorMessage)([...k])),K.size>0&&a.push((0,le.unexpectedDirectiveArgumentErrorMessage)(c,[...K]));let se=(0,je.getEntriesNotInHashSet)(o,F);if(se.length>0&&a.push((0,le.undefinedRequiredArgumentsErrorMessage)(c,o,se)),a.length>0||!I)return a;let ie=(0,je.getValueOrDefault)(this.authorizationDataByParentTypeName,l,()=>(0,Gn.newAuthorizationData)(l));if(t.kind!==Z.Kind.FIELD_DEFINITION)this.parentTypeNamesWithAuthDirectives.add(l),ie.requiredScopes.push(...J);else{let Te=(0,je.getValueOrDefault)(ie.fieldAuthDataByFieldName,t.name,()=>(0,Gn.newFieldAuthorizationData)(t.name));Te.inheritedData.requiredScopes.push(...J),Te.originalData.requiredScopes.push(...J)}return a}validateDirectives(t,n){let r=new Set;for(let[i,a]of t.directivesByDirectiveName){let o=this.directiveDefinitionDataByDirectiveName.get(i);if(!o){r.has(i)||(this.errors.push((0,le.undefinedDirectiveError)(i,n)),r.add(i));continue}let c=[],l=(0,bn.nodeKindToDirectiveLocation)(t.kind);if(o.locations.has(l)||c.push((0,le.invalidDirectiveLocationErrorMessage)(i,l)),a.length>1&&!o.isRepeatable){let p=(0,je.getValueOrDefault)(this.invalidRepeatedDirectiveNameByCoords,n,()=>new Set);p.has(i)||(p.add(i),c.push((0,le.invalidRepeatedDirectiveErrorMessage)(i)))}let d=[...o.requiredArgumentNames];for(let p=0;p0&&this.errors.push((0,le.invalidDirectiveError)(i,n,(0,je.numberToOrdinal)(p+1),y))}}switch(t.kind){case Z.Kind.ENUM_TYPE_DEFINITION:{for(let[i,a]of t.enumValueDataByName)this.validateDirectives(a,`${t.name}.${i}`);return}case Z.Kind.FIELD_DEFINITION:{for(let[i,a]of t.argumentDataByName)this.validateDirectives(a,`${t.originalParentTypeName}.${t.name}(${i}: ...)`);return}case Z.Kind.INPUT_OBJECT_TYPE_DEFINITION:{for(let[i,a]of t.inputValueDataByName)this.validateDirectives(a,`${t.name}.${i}`);return}case Z.Kind.INTERFACE_TYPE_DEFINITION:case Z.Kind.OBJECT_TYPE_DEFINITION:{for(let[i,a]of t.fieldDataByName)this.validateDirectives(a,`${t.name}.${i}`);return}default:return}}getNodeExtensionType(t,n,r=!1){return t?za.ExtensionType.REAL:r||!n.has(z.EXTENDS)?za.ExtensionType.NONE:za.ExtensionType.EXTENDS}setParentDataExtensionType(t,n){switch(t.extensionType){case za.ExtensionType.EXTENDS:case za.ExtensionType.NONE:{if(n===za.ExtensionType.REAL)return;this.errors.push((0,le.duplicateTypeDefinitionError)((0,je.kindToNodeType)(t.kind),t.name));return}default:t.extensionType=n}}extractConfigureDescriptionData(t,n){var i,a;if(!n.arguments||n.arguments.length<1){t.description||this.invalidConfigureDescriptionNodeDatas.push(t),t.configureDescriptionDataBySubgraphName.set(this.subgraphName,{propagate:!0,description:((i=t.description)==null?void 0:i.value)||""});return}let r={propagate:!0,description:((a=t.description)==null?void 0:a.value)||""};for(let o of n.arguments)switch(o.name.value){case z.PROPAGATE:{if(o.value.kind!=Z.Kind.BOOLEAN)return;r.propagate=o.value.value;break}case z.DESCRIPTION_OVERRIDE:{if(o.value.kind!=Z.Kind.STRING)return;r.description=o.value.value;break}default:return}!t.description&&!r.description&&this.invalidConfigureDescriptionNodeDatas.push(t),t.configureDescriptionDataBySubgraphName.set(this.subgraphName,r)}extractConfigureDescriptionsData(t){let n=t.directivesByDirectiveName.get(z.CONFIGURE_DESCRIPTION);n&&n.length==1&&this.extractConfigureDescriptionData(t,n[0])}extractImplementedInterfaceTypeNames(t,n){if(!t.interfaces)return n;let r=t.name.value;for(let i of t.interfaces){let a=i.name.value;if(n.has(a)){this.errors.push((0,le.duplicateImplementedInterfaceError)((0,Gn.kindToConvertedTypeString)(t.kind),r,a));continue}n.add(a)}return n}updateCompositeOutputDataByNode(t,n,r){this.setParentDataExtensionType(n,r),this.extractImplementedInterfaceTypeNames(t,n.implementedInterfaceTypeNames),n.description||(n.description=(0,bn.formatDescription)("description"in t?t.description:void 0)),this.extractConfigureDescriptionsData(n),n.isEntity||(n.isEntity=n.directivesByDirectiveName.has(z.KEY)),n.isInaccessible||(n.isInaccessible=n.directivesByDirectiveName.has(z.INACCESSIBLE)),n.subgraphNames.add(this.subgraphName)}addConcreteTypeNamesForImplementedInterfaces(t,n){for(let r of t)(0,je.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,r,()=>new Set).add(n),this.internalGraph.addEdge(this.internalGraph.addOrUpdateNode(r,{isAbstract:!0}),this.internalGraph.addOrUpdateNode(n),n,!0)}extractArguments(t,n){var o;if(!((o=n.arguments)!=null&&o.length))return t;let r=n.name.value,i=`${this.originalParentTypeName}.${r}`,a=new Set;for(let c of n.arguments){let l=c.name.value;if(t.has(l)){a.add(l);continue}this.addInputValueDataByNode({fieldName:r,inputValueDataByName:t,isArgument:!0,node:c,originalParentTypeName:this.originalParentTypeName,renamedParentTypeName:this.renamedParentTypeName})}return a.size>0&&this.errors.push((0,le.duplicateArgumentsError)(i,[...a])),t}addPersistedDirectiveDefinitionDataByNode(t,n,r){let i=n.name.value,a=`@${i}`,o=new Map;for(let c of n.arguments||[])this.addInputValueDataByNode({inputValueDataByName:o,isArgument:!0,node:c,originalParentTypeName:a});t.set(i,{argumentDataByName:o,executableLocations:r,name:i,repeatable:n.repeatable,subgraphNames:new Set([this.subgraphName]),description:(0,bn.formatDescription)(n.description)})}extractDirectiveLocations(t,n){let r=new Set,i=new Set;for(let a of t.locations){let o=a.value;if(!i.has(o)){if(!z.EXECUTABLE_DIRECTIVE_LOCATIONS.has(o)&&!VE.TYPE_SYSTEM_DIRECTIVE_LOCATIONS.has(o)){n.push((0,le.invalidDirectiveDefinitionLocationErrorMessage)(o)),i.add(o);continue}if(r.has(o)){n.push((0,le.duplicateDirectiveDefinitionLocationErrorMessage)(o)),i.add(o);continue}r.add(o)}}return r}extractArgumentData(t,n){let r=new Map,i=new Set,a=new Set,o={argumentTypeNodeByName:r,optionalArgumentNames:i,requiredArgumentNames:a};if(!t)return o;let c=new Set;for(let l of t){let d=l.name.value;if(r.has(d)){c.add(d);continue}l.defaultValue&&i.add(d),(0,sn.isTypeRequired)(l.type)&&!l.defaultValue&&a.add(d),r.set(d,{name:d,typeNode:l.type,defaultValue:l.defaultValue})}return c.size>0&&n.push((0,le.duplicateDirectiveDefinitionArgumentErrorMessage)([...c])),o}addDirectiveDefinitionDataByNode(t){let n=t.name.value;if(this.definedDirectiveNames.has(n))return this.errors.push((0,le.duplicateDirectiveDefinitionError)(n)),!1;if(this.definedDirectiveNames.add(n),this.directiveDefinitionByDirectiveName.set(n,t),qt.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(n))return this.isSubgraphVersionTwo=!0,!1;if(qt.ALL_IN_BUILT_DIRECTIVE_NAMES.has(n))return!1;let r=[],{argumentTypeNodeByName:i,optionalArgumentNames:a,requiredArgumentNames:o}=this.extractArgumentData(t.arguments,r);return this.directiveDefinitionDataByDirectiveName.set(n,{argumentTypeNodeByName:i,isRepeatable:t.repeatable,locations:this.extractDirectiveLocations(t,r),name:n,node:t,optionalArgumentNames:a,requiredArgumentNames:o}),r.length>0&&this.errors.push((0,le.invalidDirectiveDefinitionError)(n,r)),!0}addFieldDataByNode(t,n,r,i,a=new Set){let o=n.name.value,c=this.renamedParentTypeName||this.originalParentTypeName,l=`${this.originalParentTypeName}.${o}`,{isExternal:d,isShareable:p}=(0,sn.isNodeExternalOrShareable)(n,!this.isSubgraphVersionTwo,i),y=(0,rr.getTypeNodeNamedTypeName)(n.type),I={argumentDataByName:r,configureDescriptionDataBySubgraphName:new Map,externalFieldDataBySubgraphName:new Map([[this.subgraphName,(0,sn.newExternalFieldData)(d)]]),federatedCoords:`${c}.${o}`,inheritedDirectiveNames:a,isInaccessible:i.has(z.INACCESSIBLE),isShareableBySubgraphName:new Map([[this.subgraphName,p]]),kind:Z.Kind.FIELD_DEFINITION,name:o,namedTypeKind:qt.BASE_SCALARS.has(y)?Z.Kind.SCALAR_TYPE_DEFINITION:Z.Kind.NULL,namedTypeName:y,node:(0,rr.getMutableFieldNode)(n,l,this.errors),nullLevelsBySubgraphName:new Map,originalParentTypeName:this.originalParentTypeName,persistedDirectivesData:(0,sn.newPersistedDirectivesData)(),renamedParentTypeName:c,subgraphNames:new Set([this.subgraphName]),type:(0,rr.getMutableTypeNode)(n.type,l,this.errors),directivesByDirectiveName:i,description:(0,bn.formatDescription)(n.description)};return qt.BASE_SCALARS.has(I.namedTypeName)||this.referencedTypeNames.add(I.namedTypeName),this.extractConfigureDescriptionsData(I),t.set(o,I),I}addInputValueDataByNode({fieldName:t,inputValueDataByName:n,isArgument:r,node:i,originalParentTypeName:a,renamedParentTypeName:o}){let c=o||a,l=i.name.value,d=r?`${a}${t?`.${t}`:""}(${l}: ...)`:`${a}.${l}`;i.defaultValue&&!(0,sn.areDefaultValuesCompatible)(i.type,i.defaultValue)&&this.errors.push((0,le.incompatibleInputValueDefaultValueTypeError)((r?z.ARGUMENT:z.INPUT_FIELD)+` "${l}"`,d,(0,Ei.printTypeNode)(i.type),(0,Z.print)(i.defaultValue)));let p=r?`${c}${t?`.${t}`:""}(${l}: ...)`:`${c}.${l}`,y=(0,rr.getTypeNodeNamedTypeName)(i.type),I={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:this.extractDirectives(i,new Map),federatedCoords:p,fieldName:t,includeDefaultValue:!!i.defaultValue,isArgument:r,kind:r?Z.Kind.ARGUMENT:Z.Kind.INPUT_VALUE_DEFINITION,name:l,namedTypeKind:qt.BASE_SCALARS.has(y)?Z.Kind.SCALAR_TYPE_DEFINITION:Z.Kind.NULL,namedTypeName:y,node:(0,rr.getMutableInputValueNode)(i,a,this.errors),originalCoords:d,originalParentTypeName:a,persistedDirectivesData:(0,sn.newPersistedDirectivesData)(),renamedParentTypeName:c,requiredSubgraphNames:new Set((0,sn.isTypeRequired)(i.type)?[this.subgraphName]:[]),subgraphNames:new Set([this.subgraphName]),type:(0,rr.getMutableTypeNode)(i.type,a,this.errors),defaultValue:i.defaultValue,description:(0,bn.formatDescription)(i.description)};this.extractConfigureDescriptionsData(I),n.set(l,I)}upsertInterfaceDataByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.getNodeExtensionType(n,a),c=this.entityInterfaceDataByTypeName.get(r);if(c&&t.fields)for(let d of t.fields)c.interfaceFieldNames.add(d.name.value);if(i){if(i.kind!==Z.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,le.multipleNamedTypeDefinitionError)(r,(0,je.kindToNodeType)(i.kind),(0,Gn.kindToConvertedTypeString)(t.kind)));return}this.updateCompositeOutputDataByNode(t,i,o);return}let l={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:o,fieldDataByName:new Map,implementedInterfaceTypeNames:this.extractImplementedInterfaceTypeNames(t,new Set),isEntity:a.has(z.KEY),isInaccessible:a.has(z.INACCESSIBLE),kind:Z.Kind.INTERFACE_TYPE_DEFINITION,name:r,node:(0,rr.getMutableInterfaceNode)(t.name),persistedDirectivesData:(0,sn.newPersistedDirectivesData)(),requireFetchReasonsFieldNames:new Set,subgraphNames:new Set([this.subgraphName]),description:(0,bn.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(l),this.parentDefinitionDataByTypeName.set(r,l)}getRenamedRootTypeName(t){let n=this.operationTypeNodeByTypeName.get(t);if(!n)return t;switch(n){case Z.OperationTypeNode.MUTATION:return z.MUTATION;case Z.OperationTypeNode.SUBSCRIPTION:return z.SUBSCRIPTION;default:return z.QUERY}}addInterfaceObjectFieldsByNode(t){let n=t.name.value,r=this.entityInterfaceDataByTypeName.get(n);if(!(!r||!r.isInterfaceObject||!t.fields))for(let i of t.fields)r.interfaceObjectFieldNames.add(i.name.value)}upsertObjectDataByNode(t,n=!1){var p;let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(p=i==null?void 0:i.directivesByDirectiveName)!=null?p:new Map),o=this.isTypeNameRootType(r),c=this.getNodeExtensionType(n,a,o);if(this.addInterfaceObjectFieldsByNode(t),i){if(i.kind!==Z.Kind.OBJECT_TYPE_DEFINITION){this.errors.push((0,le.multipleNamedTypeDefinitionError)(r,(0,je.kindToNodeType)(i.kind),(0,Gn.kindToConvertedTypeString)(t.kind)));return}this.updateCompositeOutputDataByNode(t,i,c),a.has(z.INTERFACE_OBJECT)||this.addConcreteTypeNamesForImplementedInterfaces(i.implementedInterfaceTypeNames,r);return}let l=this.extractImplementedInterfaceTypeNames(t,new Set);a.has(z.INTERFACE_OBJECT)||this.addConcreteTypeNamesForImplementedInterfaces(l,r);let d={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:c,fieldDataByName:new Map,implementedInterfaceTypeNames:l,isEntity:a.has(z.KEY),isInaccessible:a.has(z.INACCESSIBLE),isRootType:o,kind:Z.Kind.OBJECT_TYPE_DEFINITION,name:r,node:(0,rr.getMutableObjectNode)(t.name),persistedDirectivesData:(0,sn.newPersistedDirectivesData)(),requireFetchReasonsFieldNames:new Set,renamedTypeName:this.getRenamedRootTypeName(r),subgraphNames:new Set([this.subgraphName]),description:(0,bn.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(d),this.parentDefinitionDataByTypeName.set(r,d)}upsertEnumDataByNode(t,n=!1){let r=t.name.value;this.internalGraph.addOrUpdateNode(r,{isLeaf:!0});let i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.getNodeExtensionType(n,a);if(i){if(i.kind!==Z.Kind.ENUM_TYPE_DEFINITION){this.errors.push((0,le.multipleNamedTypeDefinitionError)(r,(0,je.kindToNodeType)(i.kind),(0,Gn.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.isInaccessible||(i.isInaccessible=a.has(z.INACCESSIBLE)),i.subgraphNames.add(this.subgraphName),i.description||(i.description=(0,bn.formatDescription)("description"in t?t.description:void 0)),this.extractConfigureDescriptionsData(i);return}let c={appearances:1,configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:o,enumValueDataByName:new Map,isInaccessible:a.has(z.INACCESSIBLE),kind:Z.Kind.ENUM_TYPE_DEFINITION,name:r,node:(0,rr.getMutableEnumNode)(t.name),persistedDirectivesData:(0,sn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,bn.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(c),this.parentDefinitionDataByTypeName.set(r,c)}upsertInputObjectByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.getNodeExtensionType(n,a);if(i){if(i.kind!==Z.Kind.INPUT_OBJECT_TYPE_DEFINITION){this.errors.push((0,le.multipleNamedTypeDefinitionError)(r,(0,je.kindToNodeType)(i.kind),(0,Gn.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.isInaccessible||(i.isInaccessible=a.has(z.INACCESSIBLE)),i.subgraphNames.add(this.subgraphName),i.description||(i.description=(0,bn.formatDescription)("description"in t?t.description:void 0)),this.extractConfigureDescriptionsData(i);return}let c={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:o,inputValueDataByName:new Map,isInaccessible:a.has(z.INACCESSIBLE),kind:Z.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:r,node:(0,rr.getMutableInputObjectNode)(t.name),persistedDirectivesData:(0,sn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,bn.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(c),this.parentDefinitionDataByTypeName.set(r,c)}upsertScalarByNode(t,n=!1){let r=t.name.value;this.internalGraph.addOrUpdateNode(r,{isLeaf:!0});let i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.getNodeExtensionType(n,a);if(i){if(i.kind!==Z.Kind.SCALAR_TYPE_DEFINITION){this.errors.push((0,le.multipleNamedTypeDefinitionError)(r,(0,je.kindToNodeType)(i.kind),(0,Gn.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.description||(i.description=(0,bn.formatDescription)("description"in t?t.description:void 0)),i.subgraphNames.add(this.subgraphName),this.extractConfigureDescriptionsData(i);return}let c={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:o,kind:Z.Kind.SCALAR_TYPE_DEFINITION,name:r,node:(0,rr.getMutableScalarNode)(t.name),persistedDirectivesData:(0,sn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,bn.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(c),this.parentDefinitionDataByTypeName.set(r,c)}extractUnionMembers(t,n){if(!t.types)return n;let r=t.name.value;for(let i of t.types){let a=i.name.value;if(n.has(a)){this.errors.push((0,le.duplicateUnionMemberDefinitionError)(r,a));continue}(0,je.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,r,()=>new Set).add(a),qt.BASE_SCALARS.has(a)||this.referencedTypeNames.add(a),n.set(a,i)}return n}upsertUnionByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.getNodeExtensionType(n,a);if(this.addConcreteTypeNamesForUnion(t),i){if(i.kind!==Z.Kind.UNION_TYPE_DEFINITION){this.errors.push((0,le.multipleNamedTypeDefinitionError)(r,(0,je.kindToNodeType)(i.kind),(0,Gn.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),this.extractUnionMembers(t,i.memberByMemberTypeName),i.description||(i.description=(0,bn.formatDescription)("description"in t?t.description:void 0)),i.subgraphNames.add(this.subgraphName),this.extractConfigureDescriptionsData(i);return}let c={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:o,kind:Z.Kind.UNION_TYPE_DEFINITION,memberByMemberTypeName:this.extractUnionMembers(t,new Map),name:r,node:(0,rr.getMutableUnionNode)(t.name),persistedDirectivesData:(0,sn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,bn.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(c),this.parentDefinitionDataByTypeName.set(r,c)}extractKeyFieldSets(t,n){var a;let r=t.name.value;if(!((a=t.directives)!=null&&a.length)){this.errors.push((0,le.expectedEntityError)(r));return}let i=0;for(let o of t.directives){if(o.name.value!==z.KEY||(i+=1,!o.arguments||o.arguments.length<1))continue;let c,l=!1;for(let v of o.arguments){if(v.name.value===z.RESOLVABLE){v.value.kind===Z.Kind.BOOLEAN&&!v.value.value&&(l=!0);continue}if(v.name.value!==z.FIELDS){c=void 0;break}if(v.value.kind!==Z.Kind.STRING){c=void 0;break}c=v.value.value}if(c===void 0)continue;let{error:d,documentNode:p}=(0,bn.safeParse)("{"+c+"}");if(d||!p){this.errors.push((0,le.invalidDirectiveError)(z.KEY,r,(0,je.numberToOrdinal)(i),[(0,le.unparsableFieldSetErrorMessage)(c,d)]));continue}let y=(0,ni.getNormalizedFieldSet)(p),I=n.get(y);I?I.isUnresolvable||(I.isUnresolvable=l):n.set(y,{documentNode:p,isUnresolvable:l,normalizedFieldSet:y,rawFieldSet:c})}}getFieldSetParent(t,n,r,i){if(!t)return{fieldSetParentData:n};let a=(0,je.getOrThrowError)(n.fieldDataByName,r,`${i}.fieldDataByFieldName`),o=(0,rr.getTypeNodeNamedTypeName)(a.node.type),c=this.parentDefinitionDataByTypeName.get(o);return c?c.kind!==Z.Kind.INTERFACE_TYPE_DEFINITION&&c.kind!==Z.Kind.OBJECT_TYPE_DEFINITION?{errorString:(0,le.incompatibleTypeWithProvidesErrorMessage)(`${i}.${r}`,o)}:{fieldSetParentData:c}:{errorString:(0,le.unknownNamedTypeErrorMessage)(`${i}.${r}`,o)}}validateConditionalFieldSet(t,n,r,i,a){let{error:o,documentNode:c}=(0,bn.safeParse)("{"+n+"}");if(o||!c)return{errorMessages:[(0,le.unparsableFieldSetErrorMessage)(n,o)]};let l=this,d=[t],p=(0,ni.getConditionalFieldSetDirectiveName)(i),y=[],I=`${a}.${r}`,v=(0,ni.getInitialFieldCoordsPath)(i,I),F=[r],k=new Set,K=[],J=-1,se=!0,ie=r,Te=!1;return(0,Z.visit)(c,{Argument:{enter(){return!1}},Field:{enter(de){let Re=d[J],xe=Re.name;if(Re.kind===Z.Kind.UNION_TYPE_DEFINITION)return K.push((0,le.invalidSelectionOnUnionErrorMessage)(n,v,xe)),Z.BREAK;let tt=de.name.value,ee=`${xe}.${tt}`;if(l.unvalidatedExternalFieldCoords.delete(ee),se)return K.push((0,le.invalidSelectionSetErrorMessage)(n,v,xe,(0,je.kindToNodeType)(Re.kind))),Z.BREAK;v.push(ee),F.push(tt),ie=tt;let Se=Re.fieldDataByName.get(tt);if(!Se)return K.push((0,le.undefinedFieldInFieldSetErrorMessage)(n,xe,tt)),Z.BREAK;if(y[J].has(tt))return K.push((0,le.duplicateFieldInFieldSetErrorMessage)(n,ee)),Z.BREAK;y[J].add(tt);let{isDefinedExternal:_t,isUnconditionallyProvided:en}=(0,je.getOrThrowError)(Se.externalFieldDataBySubgraphName,l.subgraphName,`${ee}.externalFieldDataBySubgraphName`),tn=_t&&!en;en||(Te=!0);let An=(0,rr.getTypeNodeNamedTypeName)(Se.node.type),Qt=l.parentDefinitionDataByTypeName.get(An);if(qt.BASE_SCALARS.has(An)||(Qt==null?void 0:Qt.kind)===Z.Kind.SCALAR_TYPE_DEFINITION||(Qt==null?void 0:Qt.kind)===Z.Kind.ENUM_TYPE_DEFINITION){if(k.size<1&&!_t){if(l.isSubgraphVersionTwo){l.errors.push((0,le.nonExternalConditionalFieldError)(I,l.subgraphName,ee,n,p));return}l.warnings.push((0,Wa.nonExternalConditionalFieldWarning)(I,l.subgraphName,ee,n,p));return}if(k.size<1&&en){l.isSubgraphVersionTwo?K.push((0,le.fieldAlreadyProvidedErrorMessage)(ee,l.subgraphName,p)):l.warnings.push((0,Wa.fieldAlreadyProvidedWarning)(ee,p,I,l.subgraphName));return}if(!tn&&!i)return;let mn=(0,je.getValueOrDefault)(l.conditionalFieldDataByCoords,ee,sn.newConditionalFieldData),Pr=(0,Zf.newFieldSetConditionData)({fieldCoordinatesPath:[...v],fieldPath:[...F]});i?mn.providedBy.push(Pr):mn.requiredBy.push(Pr);return}if(!Qt)return K.push((0,le.unknownTypeInFieldSetErrorMessage)(n,ee,An)),Z.BREAK;if(_t&&(i&&(0,je.getValueOrDefault)(l.conditionalFieldDataByCoords,ee,sn.newConditionalFieldData).providedBy.push((0,Zf.newFieldSetConditionData)({fieldCoordinatesPath:[...v],fieldPath:[...F]})),k.add(ee)),Qt.kind===Z.Kind.OBJECT_TYPE_DEFINITION||Qt.kind===Z.Kind.INTERFACE_TYPE_DEFINITION||Qt.kind===Z.Kind.UNION_TYPE_DEFINITION){se=!0,d.push(Qt);return}},leave(){k.delete(v.pop()||""),F.pop()}},InlineFragment:{enter(de){let Re=d[J],xe=Re.name,tt=v.length<1?t.name:v[v.length-1];if(!de.typeCondition)return K.push((0,le.inlineFragmentWithoutTypeConditionErrorMessage)(n,tt)),Z.BREAK;let ee=de.typeCondition.name.value;if(ee===xe){d.push(Re),se=!0;return}if(!(0,bn.isKindAbstract)(Re.kind))return K.push((0,le.invalidInlineFragmentTypeErrorMessage)(n,v,ee,xe)),Z.BREAK;let Se=l.parentDefinitionDataByTypeName.get(ee);if(!Se)return K.push((0,le.unknownInlineFragmentTypeConditionErrorMessage)(n,v,xe,ee)),Z.BREAK;switch(se=!0,Se.kind){case Z.Kind.INTERFACE_TYPE_DEFINITION:{if(!Se.implementedInterfaceTypeNames.has(xe))break;d.push(Se);return}case Z.Kind.OBJECT_TYPE_DEFINITION:{let _t=l.concreteTypeNamesByAbstractTypeName.get(xe);if(!_t||!_t.has(ee))break;d.push(Se);return}case Z.Kind.UNION_TYPE_DEFINITION:{d.push(Se);return}default:return K.push((0,le.invalidInlineFragmentTypeConditionTypeErrorMessage)(n,v,xe,ee,(0,je.kindToNodeType)(Se.kind))),Z.BREAK}return K.push((0,le.invalidInlineFragmentTypeConditionErrorMessage)(n,v,ee,(0,je.kindToNodeType)(Re.kind),xe)),Z.BREAK}},SelectionSet:{enter(){if(!se){let de=d[J];if(de.kind===Z.Kind.UNION_TYPE_DEFINITION)return K.push((0,le.unparsableFieldSetSelectionErrorMessage)(n,ie)),Z.BREAK;let Re=de.fieldDataByName.get(ie);if(!Re)return K.push((0,le.undefinedFieldInFieldSetErrorMessage)(n,de.name,ie)),Z.BREAK;let xe=(0,rr.getTypeNodeNamedTypeName)(Re.node.type),tt=l.parentDefinitionDataByTypeName.get(xe),ee=tt?tt.kind:Z.Kind.SCALAR_TYPE_DEFINITION;return K.push((0,le.invalidSelectionSetDefinitionErrorMessage)(n,v,xe,(0,je.kindToNodeType)(ee))),Z.BREAK}if(J+=1,se=!1,J<0||J>=d.length)return K.push((0,le.unparsableFieldSetSelectionErrorMessage)(n,ie)),Z.BREAK;y.push(new Set)},leave(){if(se){let de=d[J+1];K.push((0,le.invalidSelectionSetErrorMessage)(n,v,de.name,(0,je.kindToNodeType)(de.kind))),se=!1}J-=1,d.pop(),y.pop()}}}),K.length>0||!Te?{errorMessages:K}:{configuration:{fieldName:r,selectionSet:(0,ni.getNormalizedFieldSet)(c)},errorMessages:K}}validateProvidesOrRequires(t,n,r){let i=[],a=[],o=(0,sn.getParentTypeName)(t);for(let[c,l]of n){let{fieldSetParentData:d,errorString:p}=this.getFieldSetParent(r,t,c,o),y=`${o}.${c}`;if(p){i.push(p);continue}if(!d)continue;let{errorMessages:I,configuration:v}=this.validateConditionalFieldSet(d,l,c,r,o);if(I.length>0){i.push(` On field "${y}": + -`+I.join(z.HYPHEN_JOIN));continue}v&&a.push(v)}if(i.length>0){this.errors.push((0,le.invalidProvidesOrRequiresDirectivesError)((0,ni.getConditionalFieldSetDirectiveName)(r),i));return}if(a.length>0)return a}validateInterfaceImplementations(t){if(t.implementedInterfaceTypeNames.size<1)return;let n=t.directivesByDirectiveName.has(z.INACCESSIBLE),r=new Map,i=new Map,a=!1;for(let o of t.implementedInterfaceTypeNames){let c=this.parentDefinitionDataByTypeName.get(o);if(qt.BASE_SCALARS.has(o)&&this.referencedTypeNames.add(o),!c)continue;if(c.kind!==Z.Kind.INTERFACE_TYPE_DEFINITION){i.set(c.name,(0,je.kindToNodeType)(c.kind));continue}if(t.name===c.name){a=!0;continue}let l={invalidFieldImplementations:new Map,unimplementedFields:[]},d=!1;for(let[p,y]of c.fieldDataByName){this.unvalidatedExternalFieldCoords.delete(`${t.name}.${p}`);let I=!1,v=t.fieldDataByName.get(p);if(!v){d=!0,l.unimplementedFields.push(p);continue}let F={invalidAdditionalArguments:new Set,invalidImplementedArguments:[],isInaccessible:!1,originalResponseType:(0,Ei.printTypeNode)(y.node.type),unimplementedArguments:new Set};(0,sn.isTypeValidImplementation)(y.node.type,v.node.type,this.concreteTypeNamesByAbstractTypeName)||(d=!0,I=!0,F.implementedResponseType=(0,Ei.printTypeNode)(v.node.type));let k=new Set;for(let[K,J]of y.argumentDataByName){k.add(K);let se=v.argumentDataByName.get(K);if(!se){d=!0,I=!0,F.unimplementedArguments.add(K);continue}let ie=(0,Ei.printTypeNode)(se.type),Te=(0,Ei.printTypeNode)(J.type);Te!==ie&&(d=!0,I=!0,F.invalidImplementedArguments.push({actualType:ie,argumentName:K,expectedType:Te}))}for(let[K,J]of v.argumentDataByName)k.has(K)||J.type.kind===Z.Kind.NON_NULL_TYPE&&(d=!0,I=!0,F.invalidAdditionalArguments.add(K));!n&&v.isInaccessible&&!y.isInaccessible&&(d=!0,I=!0,F.isInaccessible=!0),I&&l.invalidFieldImplementations.set(p,F)}d&&r.set(o,l)}i.size>0&&this.errors.push((0,le.invalidImplementedTypeError)(t.name,i)),a&&this.errors.push((0,le.selfImplementationError)(t.name)),r.size>0&&this.errors.push((0,le.invalidInterfaceImplementationError)(t.name,(0,je.kindToNodeType)(t.kind),r))}handleAuthenticatedDirective(t,n){let r=(0,je.getValueOrDefault)(this.authorizationDataByParentTypeName,n,()=>(0,Gn.newAuthorizationData)(n));if(t.kind===Z.Kind.FIELD_DEFINITION){let i=(0,je.getValueOrDefault)(r.fieldAuthDataByFieldName,t.name,()=>(0,Gn.newFieldAuthorizationData)(t.name));i.inheritedData.requiresAuthentication=!0,i.originalData.requiresAuthentication=!0}else r.requiresAuthentication=!0,this.parentTypeNamesWithAuthDirectives.add(n)}handleOverrideDirective({data:t,directiveCoords:n,errorMessages:r,targetSubgraphName:i}){if(i===this.subgraphName){r.push((0,le.equivalentSourceAndTargetOverrideErrorMessage)(i,n));return}let a=(0,je.getValueOrDefault)(this.overridesByTargetSubgraphName,i,()=>new Map);(0,je.getValueOrDefault)(a,t.renamedParentTypeName,()=>new Set).add(t.name)}handleSemanticNonNullDirective({data:t,directiveNode:n,errorMessages:r}){var y;let i=new Set,a=t.node.type,o=0;for(;a;)switch(a.kind){case Z.Kind.LIST_TYPE:{o+=1,a=a.type;break}case Z.Kind.NON_NULL_TYPE:{i.add(o),a=a.type;break}default:{a=null;break}}let c=(y=n.arguments)==null?void 0:y.find(I=>I.name.value===z.LEVELS);if(!c||c.value.kind!==Z.Kind.LIST){r.push(le.semanticNonNullArgumentErrorMessage);return}let l=c.value.values,d=(0,Ei.printTypeNode)(t.type),p=new Set;for(let{value:I}of l){let v=parseInt(I,10);if(Number.isNaN(v)){r.push((0,le.semanticNonNullLevelsNaNIndexErrorMessage)(I));continue}if(v<0||v>o){r.push((0,le.semanticNonNullLevelsIndexOutOfBoundsErrorMessage)({maxIndex:o,typeString:d,value:I}));continue}if(!i.has(v)){p.add(v);continue}r.push((0,le.semanticNonNullLevelsNonNullErrorMessage)({typeString:d,value:I}))}t.nullLevelsBySubgraphName.set(this.subgraphName,p)}extractRequiredScopes({directiveCoords:t,orScopes:n,requiredScopes:r}){if(n.length>qt.MAX_OR_SCOPES){this.invalidORScopesCoords.add(t);return}for(let i of n){let a=new Set;for(let o of i.values)a.add(o.value);a.size<1||(0,Gn.addScopes)(r,a)}}getKafkaPublishConfiguration(t,n,r,i){let a=[],o=z.DEFAULT_EDFS_PROVIDER_ID;for(let c of t.arguments||[])switch(c.name.value){case z.TOPIC:{if(c.value.kind!==Z.Kind.STRING||c.value.value.length<1){i.push((0,le.invalidEventSubjectErrorMessage)(z.TOPIC));continue}(0,ni.validateArgumentTemplateReferences)(c.value.value,n,i),a.push(c.value.value);break}case z.PROVIDER_ID:{if(c.value.kind!==Z.Kind.STRING||c.value.value.length<1){i.push(le.invalidEventProviderIdErrorMessage);continue}o=c.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:o,providerType:z.PROVIDER_TYPE_KAFKA,topics:a,type:z.PUBLISH}}getKafkaSubscribeConfiguration(t,n,r,i){let a=[],o=z.DEFAULT_EDFS_PROVIDER_ID;for(let c of t.arguments||[])switch(c.name.value){case z.TOPICS:{if(c.value.kind!==Z.Kind.LIST){i.push((0,le.invalidEventSubjectsErrorMessage)(z.TOPICS));continue}for(let l of c.value.values){if(l.kind!==Z.Kind.STRING||l.value.length<1){i.push((0,le.invalidEventSubjectsItemErrorMessage)(z.TOPICS));break}(0,ni.validateArgumentTemplateReferences)(l.value,n,i),a.push(l.value)}break}case z.PROVIDER_ID:{if(c.value.kind!==Z.Kind.STRING||c.value.value.length<1){i.push(le.invalidEventProviderIdErrorMessage);continue}o=c.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:o,providerType:z.PROVIDER_TYPE_KAFKA,topics:a,type:z.SUBSCRIBE}}getNatsPublishAndRequestConfiguration(t,n,r,i,a){let o=[],c=z.DEFAULT_EDFS_PROVIDER_ID;for(let l of n.arguments||[])switch(l.name.value){case z.SUBJECT:{if(l.value.kind!==Z.Kind.STRING||l.value.value.length<1){a.push((0,le.invalidEventSubjectErrorMessage)(z.SUBJECT));continue}(0,ni.validateArgumentTemplateReferences)(l.value.value,r,a),o.push(l.value.value);break}case z.PROVIDER_ID:{if(l.value.kind!==Z.Kind.STRING||l.value.value.length<1){a.push(le.invalidEventProviderIdErrorMessage);continue}c=l.value.value;break}}if(!(a.length>0))return{fieldName:i,providerId:c,providerType:z.PROVIDER_TYPE_NATS,subjects:o,type:t}}getNatsSubscribeConfiguration(t,n,r,i){let a=[],o=z.DEFAULT_EDFS_PROVIDER_ID,c=jE.DEFAULT_CONSUMER_INACTIVE_THRESHOLD,l="",d="";for(let p of t.arguments||[])switch(p.name.value){case z.SUBJECTS:{if(p.value.kind!==Z.Kind.LIST){i.push((0,le.invalidEventSubjectsErrorMessage)(z.SUBJECTS));continue}for(let y of p.value.values){if(y.kind!==Z.Kind.STRING||y.value.length<1){i.push((0,le.invalidEventSubjectsItemErrorMessage)(z.SUBJECTS));break}(0,ni.validateArgumentTemplateReferences)(y.value,n,i),a.push(y.value)}break}case z.PROVIDER_ID:{if(p.value.kind!==Z.Kind.STRING||p.value.value.length<1){i.push(le.invalidEventProviderIdErrorMessage);continue}o=p.value.value;break}case z.STREAM_CONFIGURATION:{if(this.usesEdfsNatsStreamConfiguration=!0,p.value.kind!==Z.Kind.OBJECT||p.value.fields.length<1){i.push(le.invalidNatsStreamInputErrorMessage);continue}let y=!0,I=new Set,v=new Set(VE.STREAM_CONFIGURATION_FIELD_NAMES),F=new Set([z.CONSUMER_NAME,z.STREAM_NAME]),k=new Set,K=new Set;for(let J of p.value.fields){let se=J.name.value;if(!VE.STREAM_CONFIGURATION_FIELD_NAMES.has(se)){I.add(se),y=!1;continue}if(v.has(se))v.delete(se);else{k.add(se),y=!1;continue}switch(F.has(se)&&F.delete(se),se){case z.CONSUMER_NAME:if(J.value.kind!=Z.Kind.STRING||J.value.value.length<1){K.add(se),y=!1;continue}l=J.value.value;break;case z.STREAM_NAME:if(J.value.kind!=Z.Kind.STRING||J.value.value.length<1){K.add(se),y=!1;continue}d=J.value.value;break;case z.CONSUMER_INACTIVE_THRESHOLD:if(J.value.kind!=Z.Kind.INT){i.push((0,le.invalidArgumentValueErrorMessage)((0,Z.print)(J.value),"edfs__NatsStreamConfiguration","consumerInactiveThreshold",z.INT_SCALAR)),y=!1;continue}try{c=parseInt(J.value.value,10)}catch(ie){i.push((0,le.invalidArgumentValueErrorMessage)((0,Z.print)(J.value),"edfs__NatsStreamConfiguration","consumerInactiveThreshold",z.INT_SCALAR)),y=!1}break}}(!y||F.size>0)&&i.push((0,le.invalidNatsStreamInputFieldsErrorMessage)([...F],[...k],[...K],[...I]))}}if(!(i.length>0))return c<0?(c=jE.DEFAULT_CONSUMER_INACTIVE_THRESHOLD,this.warnings.push((0,Wa.consumerInactiveThresholdInvalidValueWarning)(this.subgraphName,`The value has been set to ${jE.DEFAULT_CONSUMER_INACTIVE_THRESHOLD}.`))):c>Hle.MAX_INT32&&(c=0,this.warnings.push((0,Wa.consumerInactiveThresholdInvalidValueWarning)(this.subgraphName,"The value has been set to 0. This means the consumer will remain indefinitely active until its manual deletion."))),x({fieldName:r,providerId:o,providerType:z.PROVIDER_TYPE_NATS,subjects:a,type:z.SUBSCRIBE},l&&d?{streamConfiguration:{consumerInactiveThreshold:c,consumerName:l,streamName:d}}:{})}getRedisPublishConfiguration(t,n,r,i){let a=[],o=z.DEFAULT_EDFS_PROVIDER_ID;for(let c of t.arguments||[])switch(c.name.value){case z.CHANNEL:{if(c.value.kind!==Z.Kind.STRING||c.value.value.length<1){i.push((0,le.invalidEventSubjectErrorMessage)(z.CHANNEL));continue}(0,ni.validateArgumentTemplateReferences)(c.value.value,n,i),a.push(c.value.value);break}case z.PROVIDER_ID:{if(c.value.kind!==Z.Kind.STRING||c.value.value.length<1){i.push(le.invalidEventProviderIdErrorMessage);continue}o=c.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:o,providerType:z.PROVIDER_TYPE_REDIS,channels:a,type:z.PUBLISH}}getRedisSubscribeConfiguration(t,n,r,i){let a=[],o=z.DEFAULT_EDFS_PROVIDER_ID;for(let c of t.arguments||[])switch(c.name.value){case z.CHANNELS:{if(c.value.kind!==Z.Kind.LIST){i.push((0,le.invalidEventSubjectsErrorMessage)(z.CHANNELS));continue}for(let l of c.value.values){if(l.kind!==Z.Kind.STRING||l.value.length<1){i.push((0,le.invalidEventSubjectsItemErrorMessage)(z.CHANNELS));break}(0,ni.validateArgumentTemplateReferences)(l.value,n,i),a.push(l.value)}break}case z.PROVIDER_ID:{if(c.value.kind!==Z.Kind.STRING||c.value.value.length<1){i.push(le.invalidEventProviderIdErrorMessage);continue}o=c.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:o,providerType:z.PROVIDER_TYPE_REDIS,channels:a,type:z.SUBSCRIBE}}validateSubscriptionFilterDirectiveLocation(t){if(!t.directives)return;let n=this.renamedParentTypeName||this.originalParentTypeName,r=`${n}.${t.name.value}`,i=this.getOperationTypeNodeForRootTypeName(n)===Z.OperationTypeNode.SUBSCRIPTION;for(let a of t.directives)if(a.name.value===z.SUBSCRIPTION_FILTER&&!i){this.errors.push((0,le.invalidSubscriptionFilterLocationError)(r));return}}extractEventDirectivesToConfiguration(t,n){if(!t.directives)return;let r=t.name.value,i=`${this.renamedParentTypeName||this.originalParentTypeName}.${r}`;for(let a of t.directives){let o=[],c;switch(a.name.value){case z.EDFS_KAFKA_PUBLISH:c=this.getKafkaPublishConfiguration(a,n,r,o);break;case z.EDFS_KAFKA_SUBSCRIBE:c=this.getKafkaSubscribeConfiguration(a,n,r,o);break;case z.EDFS_NATS_PUBLISH:{c=this.getNatsPublishAndRequestConfiguration(z.PUBLISH,a,n,r,o);break}case z.EDFS_NATS_REQUEST:{c=this.getNatsPublishAndRequestConfiguration(z.REQUEST,a,n,r,o);break}case z.EDFS_NATS_SUBSCRIBE:{c=this.getNatsSubscribeConfiguration(a,n,r,o);break}case z.EDFS_REDIS_PUBLISH:{c=this.getRedisPublishConfiguration(a,n,r,o);break}case z.EDFS_REDIS_SUBSCRIBE:{c=this.getRedisSubscribeConfiguration(a,n,r,o);break}default:continue}if(o.length>0){this.errors.push((0,le.invalidEventDirectiveError)(a.name.value,i,o));continue}c&&(0,je.getValueOrDefault)(this.eventsConfigurations,this.renamedParentTypeName||this.originalParentTypeName,()=>[]).push(c)}}getValidEventsDirectiveNamesForOperationTypeNode(t){switch(t){case Z.OperationTypeNode.MUTATION:return new Set([z.EDFS_KAFKA_PUBLISH,z.EDFS_NATS_PUBLISH,z.EDFS_NATS_REQUEST,z.EDFS_REDIS_PUBLISH]);case Z.OperationTypeNode.QUERY:return new Set([z.EDFS_NATS_REQUEST]);case Z.OperationTypeNode.SUBSCRIPTION:return new Set([z.EDFS_KAFKA_SUBSCRIBE,z.EDFS_NATS_SUBSCRIBE,z.EDFS_REDIS_SUBSCRIBE])}}getOperationTypeNodeForRootTypeName(t){let n=this.operationTypeNodeByTypeName.get(t);if(n)return n;switch(t){case z.MUTATION:return Z.OperationTypeNode.MUTATION;case z.QUERY:return Z.OperationTypeNode.QUERY;case z.SUBSCRIPTION:return Z.OperationTypeNode.SUBSCRIPTION;default:return}}validateEventDrivenRootType(t,n,r,i){let a=this.getOperationTypeNodeForRootTypeName(t.name);if(!a){this.errors.push((0,le.invalidRootTypeError)(t.name));return}let o=this.getValidEventsDirectiveNamesForOperationTypeNode(a);for(let[c,l]of t.fieldDataByName){let d=`${l.originalParentTypeName}.${c}`,p=new Set;for(let K of VE.EVENT_DIRECTIVE_NAMES)l.directivesByDirectiveName.has(K)&&p.add(K);let y=new Set;for(let K of p)o.has(K)||y.add(K);if((p.size<1||y.size>0)&&n.set(d,{definesDirectives:p.size>0,invalidDirectiveNames:[...y]}),a===Z.OperationTypeNode.MUTATION){let K=(0,Ei.printTypeNode)(l.type);K!==z.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT&&i.set(d,K);continue}let I=(0,Ei.printTypeNode)(l.type),v=l.namedTypeName+"!",F=!1,k=this.concreteTypeNamesByAbstractTypeName.get(l.namedTypeName)||new Set([l.namedTypeName]);for(let K of k)if(F||(F=this.entityDataByTypeName.has(K)),F)break;(!F||I!==v)&&r.set(d,I)}}validateEventDrivenKeyDefinition(t,n){let r=this.keyFieldSetDatasByTypeName.get(t);if(r)for(let[i,{isUnresolvable:a}]of r)a||(0,je.getValueOrDefault)(n,t,()=>[]).push(i)}validateEventDrivenObjectFields(t,n,r,i){var a;for(let[o,c]of t){let l=`${c.originalParentTypeName}.${o}`;if(n.has(o)){(a=c.externalFieldDataBySubgraphName.get(this.subgraphName))!=null&&a.isDefinedExternal||r.set(l,o);continue}i.set(l,o)}}isEdfsPublishResultValid(){let t=this.parentDefinitionDataByTypeName.get(z.EDFS_PUBLISH_RESULT);if(!t)return!0;if(t.kind!==Z.Kind.OBJECT_TYPE_DEFINITION||t.fieldDataByName.size!=1)return!1;for(let[n,r]of t.fieldDataByName)if(r.argumentDataByName.size>0||n!==z.SUCCESS||(0,Ei.printTypeNode)(r.type)!==z.NON_NULLABLE_BOOLEAN)return!1;return!0}isNatsStreamConfigurationInputObjectValid(t){if(t.kind!==Z.Kind.INPUT_OBJECT_TYPE_DEFINITION||t.inputValueDataByName.size!=3)return!1;for(let[n,r]of t.inputValueDataByName)switch(n){case z.CONSUMER_INACTIVE_THRESHOLD:{if((0,Ei.printTypeNode)(r.type)!==z.NON_NULLABLE_INT||!r.defaultValue||r.defaultValue.kind!==Z.Kind.INT||r.defaultValue.value!==`${jE.DEFAULT_CONSUMER_INACTIVE_THRESHOLD}`)return!1;break}case z.CONSUMER_NAME:case z.STREAM_NAME:{if((0,Ei.printTypeNode)(r.type)!==z.NON_NULLABLE_STRING)return!1;break}default:return!1}return!0}validateEventDrivenSubgraph(t){let n=[],r=new Map,i=new Map,a=new Map,o=new Map,c=new Map,l=new Map,d=new Set,p=new Set;for(let[y,I]of this.parentDefinitionDataByTypeName){if(y===z.EDFS_PUBLISH_RESULT||y===z.EDFS_NATS_STREAM_CONFIGURATION||I.kind!==Z.Kind.OBJECT_TYPE_DEFINITION)continue;if(I.isRootType){this.validateEventDrivenRootType(I,r,i,a);continue}let v=this.keyFieldNamesByParentTypeName.get(y);if(!v){p.add(y);continue}this.validateEventDrivenKeyDefinition(y,o),this.validateEventDrivenObjectFields(I.fieldDataByName,v,c,l)}if(this.isEdfsPublishResultValid()||n.push(le.invalidEdfsPublishResultObjectErrorMessage),this.edfsDirectiveReferences.has(z.EDFS_NATS_SUBSCRIBE)){let y=this.parentDefinitionDataByTypeName.get(z.EDFS_NATS_STREAM_CONFIGURATION);y&&this.usesEdfsNatsStreamConfiguration&&!this.isNatsStreamConfigurationInputObjectValid(y)&&n.push(le.invalidNatsStreamConfigurationDefinitionErrorMessage),this.parentDefinitionDataByTypeName.delete(z.EDFS_NATS_STREAM_CONFIGURATION),t.push(qt.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION)}r.size>0&&n.push((0,le.invalidRootTypeFieldEventsDirectivesErrorMessage)(r)),a.size>0&&n.push((0,le.invalidEventDrivenMutationResponseTypeErrorMessage)(a)),i.size>0&&n.push((0,le.invalidRootTypeFieldResponseTypesEventDrivenErrorMessage)(i)),o.size>0&&n.push((0,le.invalidKeyFieldSetsEventDrivenErrorMessage)(o)),c.size>0&&n.push((0,le.nonExternalKeyFieldNamesEventDrivenErrorMessage)(c)),l.size>0&&n.push((0,le.nonKeyFieldNamesEventDrivenErrorMessage)(l)),d.size>0&&n.push((0,le.nonEntityObjectExtensionsEventDrivenErrorMessage)([...d])),p.size>0&&n.push((0,le.nonKeyComposingObjectTypeNamesEventDrivenErrorMessage)([...p])),n.length>0&&this.errors.push((0,le.invalidEventDrivenGraphError)(n))}validateUnionMembers(t){if(t.memberByMemberTypeName.size<1){this.errors.push((0,le.noDefinedUnionMembersError)(t.name));return}let n=[];for(let r of t.memberByMemberTypeName.keys()){let i=this.parentDefinitionDataByTypeName.get(r);i&&i.kind!==Z.Kind.OBJECT_TYPE_DEFINITION&&n.push(`"${r}", which is type "${(0,je.kindToNodeType)(i.kind)}"`)}n.length>0&&this.errors.push((0,le.invalidUnionMemberTypeError)(t.name,n))}addConcreteTypeNamesForUnion(t){if(!t.types||t.types.length<1)return;let n=t.name.value;for(let r of t.types){let i=r.name.value;(0,je.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,n,()=>new Set).add(i),this.internalGraph.addEdge(this.internalGraph.addOrUpdateNode(n,{isAbstract:!0}),this.internalGraph.addOrUpdateNode(i),i,!0)}}addValidKeyFieldSetConfigurations(){for(let[t,n]of this.keyFieldSetDatasByTypeName){let r=this.parentDefinitionDataByTypeName.get(t);if(!r||r.kind!==Z.Kind.OBJECT_TYPE_DEFINITION&&r.kind!==Z.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,le.undefinedCompositeOutputTypeError)(t));continue}let i=(0,sn.getParentTypeName)(r),a=(0,je.getValueOrDefault)(this.configurationDataByTypeName,i,()=>(0,Zf.newConfigurationData)(!0,i)),o=(0,ni.validateKeyFieldSets)(this,r,n);o&&(a.keys=o)}}getValidFlattenedDirectiveArray(t,n,r=!1){let i=[];for(let[a,o]of t){if(r&&z.INHERITABLE_DIRECTIVE_NAMES.has(a))continue;let c=this.directiveDefinitionDataByDirectiveName.get(a);if(!c)continue;if(!c.isRepeatable&&o.length>1){let p=(0,je.getValueOrDefault)(this.invalidRepeatedDirectiveNameByCoords,n,()=>new Set);p.has(a)||(p.add(a),this.errors.push((0,le.invalidDirectiveError)(a,n,"1st",[(0,le.invalidRepeatedDirectiveErrorMessage)(a)])));continue}if(a!==z.KEY){i.push(...o);continue}let l=[],d=new Set;for(let p=0;pnew Set).add(k)),(0,je.getValueOrDefault)(a.keyFieldNamesByParentTypeName,v,()=>new Set).add(F);let se=(0,rr.getTypeNodeNamedTypeName)(K.node.type);if(qt.BASE_SCALARS.has(se))return;let ie=a.parentDefinitionDataByTypeName.get(se);if(!ie)return Z.BREAK;if(ie.kind===Z.Kind.OBJECT_TYPE_DEFINITION){p=!0,c.push(ie);return}if((0,bn.isKindAbstract)(ie.kind))return Z.BREAK}},InlineFragment:{enter(){return Z.BREAK}},SelectionSet:{enter(){if(!p||(d+=1,p=!1,d<0||d>=c.length))return Z.BREAK},leave(){p&&(p=!1),d-=1,c.pop()}}}),!(l.size<1))for(let[y,I]of l)this.warnings.push((0,Wa.externalEntityExtensionKeyFieldWarning)(i.name,y,[...I],this.subgraphName))}}for(let n of t)this.keyFieldSetDatasByTypeName.delete(n)}addValidConditionalFieldSetConfigurations(){for(let[t,n]of this.fieldSetDataByTypeName){let r=this.parentDefinitionDataByTypeName.get(t);if(!r||r.kind!==Z.Kind.OBJECT_TYPE_DEFINITION&&r.kind!==Z.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,le.undefinedCompositeOutputTypeError)(t));continue}let i=(0,sn.getParentTypeName)(r),a=(0,je.getValueOrDefault)(this.configurationDataByTypeName,i,()=>(0,Zf.newConfigurationData)(!1,i)),o=this.validateProvidesOrRequires(r,n.provides,!0);o&&(a.provides=o);let c=this.validateProvidesOrRequires(r,n.requires,!1);c&&(a.requires=c)}}addFieldNamesToConfigurationData(t,n){let r=new Set;for(let[i,a]of t){let o=a.externalFieldDataBySubgraphName.get(this.subgraphName);if(!o||o.isUnconditionallyProvided){n.fieldNames.add(i);continue}r.add(i),this.edfsDirectiveReferences.size>0&&n.fieldNames.add(i)}r.size>0&&(n.externalFieldNames=r)}validateOneOfDirective({data:t,requiredFieldNames:n}){var r,i;return t.directivesByDirectiveName.has(z.ONE_OF)?n.size>0?(this.errors.push((0,le.oneOfRequiredFieldsError)({requiredFieldNames:Array.from(n),typeName:t.name})),!1):(t.inputValueDataByName.size===1&&this.warnings.push((0,Wa.singleSubgraphInputFieldOneOfWarning)({fieldName:(i=(r=(0,je.getFirstEntry)(t.inputValueDataByName))==null?void 0:r.name)!=null?i:"unknown",subgraphName:this.subgraphName,typeName:t.name})),!0):!0}normalize(t){var a;(0,fV.upsertDirectiveSchemaAndEntityDefinitions)(this,t),(0,fV.upsertParentsAndChildren)(this,t),this.validateDirectives(this.schemaData,z.SCHEMA);for(let[o,c]of this.parentDefinitionDataByTypeName)this.validateDirectives(c,o);this.invalidORScopesCoords.size>0&&this.errors.push((0,le.orScopesLimitError)(qt.MAX_OR_SCOPES,[...this.invalidORScopesCoords]));let n=[];for(let o of qt.BASE_DIRECTIVE_DEFINITIONS)n.push(o);if(n.push(qt.FIELD_SET_SCALAR_DEFINITION),this.isSubgraphVersionTwo){for(let o of qt.VERSION_TWO_DIRECTIVE_DEFINITIONS)n.push(o),this.directiveDefinitionByDirectiveName.set(o.name.value,o);n.push(qt.SCOPE_SCALAR_DEFINITION)}for(let o of this.edfsDirectiveReferences){let c=qt.EVENT_DRIVEN_DIRECTIVE_DEFINITIONS_BY_DIRECTIVE_NAME.get(o);if(!c){this.errors.push((0,le.invalidEdfsDirectiveName)(o));continue}n.push(c)}this.edfsDirectiveReferences.size>0&&this.referencedDirectiveNames.has(z.SUBSCRIPTION_FILTER)&&(n.push(qt.SUBSCRIPTION_FILTER_DEFINITION),n.push(qt.SUBSCRIPTION_FILTER_CONDITION_DEFINITION),n.push(qt.SUBSCRIPTION_FIELD_CONDITION_DEFINITION),n.push(qt.SUBSCRIPTION_FILTER_VALUE_DEFINITION)),this.referencedDirectiveNames.has(z.CONFIGURE_DESCRIPTION)&&n.push(qt.CONFIGURE_DESCRIPTION_DEFINITION),this.referencedDirectiveNames.has(z.CONFIGURE_CHILD_DESCRIPTIONS)&&n.push(qt.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION),this.referencedDirectiveNames.has(z.LINK)&&(n.push(qt.LINK_DEFINITION),n.push(qt.LINK_IMPORT_DEFINITION),n.push(qt.LINK_PURPOSE_DEFINITION)),this.referencedDirectiveNames.has(z.ONE_OF)&&n.push(qt.ONE_OF_DEFINITION),this.referencedDirectiveNames.has(z.REQUIRE_FETCH_REASONS)&&n.push(qt.REQUIRE_FETCH_REASONS_DEFINITION),this.referencedDirectiveNames.has(z.SEMANTIC_NON_NULL)&&n.push(qt.SEMANTIC_NON_NULL_DEFINITION);for(let o of this.customDirectiveDefinitions.values())n.push(o);this.schemaData.operationTypes.size>0&&n.push(this.getSchemaNodeByData(this.schemaData));for(let o of this.invalidConfigureDescriptionNodeDatas)o.description||this.errors.push((0,le.configureDescriptionNoDescriptionError)((0,je.kindToNodeType)(o.kind),o.name));this.evaluateExternalKeyFields();for(let[o,c]of this.parentDefinitionDataByTypeName)switch(c.kind){case Z.Kind.ENUM_TYPE_DEFINITION:{if(c.enumValueDataByName.size<1){this.errors.push((0,le.noDefinedEnumValuesError)(o));break}n.push(this.getEnumNodeByData(c));break}case Z.Kind.INPUT_OBJECT_TYPE_DEFINITION:{if(c.inputValueDataByName.size<1){this.errors.push((0,le.noInputValueDefinitionsError)(o));break}let l=new Set;for(let d of c.inputValueDataByName.values()){if((0,sn.isTypeRequired)(d.type)&&l.add(d.name),d.namedTypeKind!==Z.Kind.NULL)continue;let p=this.parentDefinitionDataByTypeName.get(d.namedTypeName);if(p){if(!(0,sn.isInputNodeKind)(p.kind)){this.errors.push((0,le.invalidNamedTypeError)({data:d,namedTypeData:p,nodeType:`${(0,je.kindToNodeType)(c.kind)} field`}));continue}d.namedTypeKind=p.kind}}if(!this.validateOneOfDirective({data:c,requiredFieldNames:l}))break;n.push(this.getInputObjectNodeByData(c));break}case Z.Kind.INTERFACE_TYPE_DEFINITION:case Z.Kind.OBJECT_TYPE_DEFINITION:{let l=this.entityDataByTypeName.has(o),d=this.operationTypeNodeByTypeName.get(o),p=c.kind===Z.Kind.OBJECT_TYPE_DEFINITION;this.isSubgraphVersionTwo&&c.extensionType===za.ExtensionType.EXTENDS&&(c.extensionType=za.ExtensionType.NONE),d&&(c.fieldDataByName.delete(z.SERVICE_FIELD),c.fieldDataByName.delete(z.ENTITIES_FIELD));let y=[];for(let[K,J]of c.fieldDataByName){if(!p&&((a=J.externalFieldDataBySubgraphName.get(this.subgraphName))!=null&&a.isDefinedExternal)&&y.push(K),this.validateArguments(J,c.kind),J.namedTypeKind!==Z.Kind.NULL)continue;let se=this.parentDefinitionDataByTypeName.get(J.namedTypeName);if(se){if(!(0,sn.isOutputNodeKind)(se.kind)){this.errors.push((0,le.invalidNamedTypeError)({data:J,namedTypeData:se,nodeType:`${(0,je.kindToNodeType)(c.kind)} field`}));continue}J.namedTypeKind=this.entityInterfaceDataByTypeName.get(se.name)?Z.Kind.INTERFACE_TYPE_DEFINITION:se.kind}}y.length>0&&(this.isSubgraphVersionTwo?this.errors.push((0,le.externalInterfaceFieldsError)(o,y)):this.warnings.push((0,Wa.externalInterfaceFieldsWarning)(this.subgraphName,o,y)));let I=(0,sn.getParentTypeName)(c),v=(0,je.getValueOrDefault)(this.configurationDataByTypeName,I,()=>(0,Zf.newConfigurationData)(l,o)),F=this.entityInterfaceDataByTypeName.get(o);if(F){F.fieldDatas=(0,Gn.fieldDatasToSimpleFieldDatas)(c.fieldDataByName.values());let K=this.concreteTypeNamesByAbstractTypeName.get(o);K&&(0,je.addIterableValuesToSet)(K,F.concreteTypeNames),v.isInterfaceObject=F.isInterfaceObject,v.entityInterfaceConcreteTypeNames=F.concreteTypeNames}let k=this.eventsConfigurations.get(I);k&&(v.events=k),this.addFieldNamesToConfigurationData(c.fieldDataByName,v),this.validateInterfaceImplementations(c),n.push(this.getCompositeOutputNodeByData(c)),c.fieldDataByName.size<1&&!(0,ni.isNodeQuery)(o,d)&&this.errors.push((0,le.noFieldDefinitionsError)((0,je.kindToNodeType)(c.kind),o)),c.requireFetchReasonsFieldNames.size>0&&(v.requireFetchReasonsFieldNames=[...c.requireFetchReasonsFieldNames]);break}case Z.Kind.SCALAR_TYPE_DEFINITION:{if(c.extensionType===za.ExtensionType.REAL){this.errors.push((0,le.noBaseScalarDefinitionError)(o));break}n.push(this.getScalarNodeByData(c));break}case Z.Kind.UNION_TYPE_DEFINITION:{n.push(this.getUnionNodeByData(c)),this.validateUnionMembers(c);break}default:throw(0,le.unexpectedKindFatalError)(o)}this.addValidConditionalFieldSetConfigurations(),this.addValidKeyFieldSetConfigurations();for(let o of Object.values(Z.OperationTypeNode)){let c=this.schemaData.operationTypes.get(o),l=(0,je.getOrThrowError)(bn.operationTypeNodeToDefaultType,o,z.OPERATION_TO_DEFAULT),d=c?(0,rr.getTypeNodeNamedTypeName)(c.type):l;if(qt.BASE_SCALARS.has(d)&&this.referencedTypeNames.add(d),d!==l&&this.parentDefinitionDataByTypeName.has(l)){this.errors.push((0,le.invalidRootTypeDefinitionError)(o,d,l));continue}let p=this.parentDefinitionDataByTypeName.get(d);if(c){if(!p)continue;this.operationTypeNodeByTypeName.set(d,o)}if(!p)continue;let y=this.configurationDataByTypeName.get(l);y&&(y.isRootNode=!0,y.typeName=l),p.kind!==Z.Kind.OBJECT_TYPE_DEFINITION&&this.errors.push((0,le.operationDefinitionError)(d,o,p.kind))}for(let o of this.referencedTypeNames){let c=this.parentDefinitionDataByTypeName.get(o);if(!c){this.errors.push((0,le.undefinedTypeError)(o));continue}if(c.kind!==Z.Kind.INTERFACE_TYPE_DEFINITION)continue;let l=this.concreteTypeNamesByAbstractTypeName.get(o);(!l||l.size<1)&&this.warnings.push((0,Wa.unimplementedInterfaceOutputTypeWarning)(this.subgraphName,o))}let r=new Map;for(let o of this.directiveDefinitionByDirectiveName.values()){let c=(0,bn.extractExecutableDirectiveLocations)(o.locations,new Set);c.size<1||this.addPersistedDirectiveDefinitionDataByNode(r,o,c)}this.isSubgraphEventDrivenGraph=this.edfsDirectiveReferences.size>0,this.isSubgraphEventDrivenGraph&&this.validateEventDrivenSubgraph(n);for(let o of this.unvalidatedExternalFieldCoords)this.isSubgraphVersionTwo?this.errors.push((0,le.invalidExternalDirectiveError)(o)):this.warnings.push((0,Wa.invalidExternalFieldWarning)(o,this.subgraphName));if(this.errors.length>0)return{success:!1,errors:this.errors,warnings:this.warnings};let i={kind:Z.Kind.DOCUMENT,definitions:n};return{authorizationDataByParentTypeName:this.authorizationDataByParentTypeName,concreteTypeNamesByAbstractTypeName:this.concreteTypeNamesByAbstractTypeName,conditionalFieldDataByCoordinates:this.conditionalFieldDataByCoords,configurationDataByTypeName:this.configurationDataByTypeName,directiveDefinitionByDirectiveName:this.directiveDefinitionByDirectiveName,entityDataByTypeName:this.entityDataByTypeName,entityInterfaces:this.entityInterfaceDataByTypeName,fieldCoordsByNamedTypeName:this.fieldCoordsByNamedTypeName,isEventDrivenGraph:this.isSubgraphEventDrivenGraph,isVersionTwo:this.isSubgraphVersionTwo,keyFieldNamesByParentTypeName:this.keyFieldNamesByParentTypeName,keyFieldSetsByEntityTypeNameByKeyFieldCoords:this.keyFieldSetsByEntityTypeNameByFieldCoords,operationTypes:this.operationTypeNodeByTypeName,originalTypeNameByRenamedTypeName:this.originalTypeNameByRenamedTypeName,overridesByTargetSubgraphName:this.overridesByTargetSubgraphName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,persistedDirectiveDefinitionDataByDirectiveName:r,subgraphAST:i,subgraphString:(0,Z.print)(i),schema:(0,Yle.buildASTSchema)(i,{assumeValid:!0,assumeValidSDL:!0}),success:!0,warnings:this.warnings}}};Sc.NormalizationFactory=ep;function Wle(e){let t=new Map,n=new Map,r=new Map,i=new Map,a=new Map,o=new Map,c=new Set,l=new Map,d=new Set,p=new Set,y=[],I=new Set,v=new Map,F=[],k=[];for(let se of e)se.name&&(0,Jle.recordSubgraphName)(se.name,d,p);let K=new hD.Graph;for(let se=0;se0&&F.push(...de.warnings),!de.success){k.push((0,le.subgraphValidationError)(Te,de.errors));continue}if(!de){k.push((0,le.subgraphValidationError)(Te,[le.subgraphValidationFailureError]));continue}l.set(Te,de.parentDefinitionDataByTypeName);for(let Re of de.authorizationDataByParentTypeName.values())(0,Gn.upsertAuthorizationData)(t,Re,I);for(let[Re,xe]of de.fieldCoordsByNamedTypeName)(0,je.addIterableValuesToSet)(xe,(0,je.getValueOrDefault)(v,Re,()=>new Set));for(let[Re,xe]of de.concreteTypeNamesByAbstractTypeName){let tt=n.get(Re);if(!tt){n.set(Re,new Set(xe));continue}(0,je.addIterableValuesToSet)(xe,tt)}for(let[Re,xe]of de.entityDataByTypeName){let tt=xe.keyFieldSetDatasBySubgraphName.get(Te);tt&&(0,Gn.upsertEntityData)({entityDataByTypeName:r,keyFieldSetDataByFieldSet:tt,typeName:Re,subgraphName:Te})}if(ie.name&&i.set(Te,{conditionalFieldDataByCoordinates:de.conditionalFieldDataByCoordinates,configurationDataByTypeName:de.configurationDataByTypeName,definitions:de.subgraphAST,directiveDefinitionByDirectiveName:de.directiveDefinitionByDirectiveName,entityInterfaces:de.entityInterfaces,isVersionTwo:de.isVersionTwo,keyFieldNamesByParentTypeName:de.keyFieldNamesByParentTypeName,name:Te,operationTypes:de.operationTypes,overriddenFieldNamesByParentTypeName:new Map,parentDefinitionDataByTypeName:de.parentDefinitionDataByTypeName,persistedDirectiveDefinitionDataByDirectiveName:de.persistedDirectiveDefinitionDataByDirectiveName,schema:de.schema,url:ie.url}),!(de.overridesByTargetSubgraphName.size<1))for(let[Re,xe]of de.overridesByTargetSubgraphName){let tt=d.has(Re);for(let[ee,Se]of xe){let _t=de.originalTypeNameByRenamedTypeName.get(ee)||ee;if(!tt)F.push((0,Wa.invalidOverrideTargetSubgraphNameWarning)(Re,_t,[...Se],ie.name));else{let en=(0,je.getValueOrDefault)(a,Re,()=>new Map),tn=(0,je.getValueOrDefault)(en,ee,()=>new Set(Se));(0,je.addIterableValuesToSet)(Se,tn)}for(let en of Se){let tn=`${_t}.${en}`,An=o.get(tn);if(!An){o.set(tn,[Te]);continue}An.push(Te),c.add(tn)}}}}let J=[];if(I.size>0&&J.push((0,le.orScopesLimitError)(qt.MAX_OR_SCOPES,[...I])),(y.length>0||p.size>0)&&J.push((0,le.invalidSubgraphNamesError)([...p],y)),c.size>0){let se=[];for(let ie of c){let Te=(0,je.getOrThrowError)(o,ie,"overrideSourceSubgraphNamesByFieldPath");se.push((0,le.duplicateOverriddenFieldErrorMessage)(ie,Te))}J.push((0,le.duplicateOverriddenFieldsError)(se))}if(J.push(...k),J.length>0)return{errors:J,success:!1,warnings:F};for(let[se,ie]of a){let Te=(0,je.getOrThrowError)(i,se,"internalSubgraphBySubgraphName");Te.overriddenFieldNamesByParentTypeName=ie;for(let[de,Re]of ie){let xe=Te.configurationDataByTypeName.get(de);xe&&((0,Gn.subtractSet)(Re,xe.fieldNames),xe.fieldNames.size<1&&Te.configurationDataByTypeName.delete(de))}}return{authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,entityDataByTypeName:r,fieldCoordsByNamedTypeName:v,internalSubgraphBySubgraphName:i,internalGraph:K,success:!0,warnings:F}}});var KE=w(bc=>{"use strict";m();T();N();Object.defineProperty(bc,"__esModule",{value:!0});bc.DivergentType=void 0;bc.getLeastRestrictiveMergedTypeNode=Zle;bc.getMostRestrictiveMergedTypeNode=ede;bc.renameNamedTypeName=tde;var Oc=De(),NV=Mi(),Xle=du(),mV=Hr(),TV=gl(),Dc;(function(e){e[e.NONE=0]="NONE",e[e.CURRENT=1]="CURRENT",e[e.OTHER=2]="OTHER"})(Dc||(bc.DivergentType=Dc={}));function EV(e,t,n,r,i){t=(0,Xle.getMutableTypeNode)(t,n,i);let a={kind:e.kind},o=Dc.NONE,c=a;for(let l=0;l{"use strict";m();T();N();Object.defineProperty(gD,"__esModule",{value:!0});gD.renameRootTypes=ide;var nde=De(),ID=Hr(),rde=KE(),_u=vr(),Ac=Sr();function ide(e,t){let n,r=!1,i;(0,nde.visit)(t.definitions,{FieldDefinition:{enter(a){let o=a.name.value;if(r&&(o===_u.SERVICE_FIELD||o===_u.ENTITIES_FIELD))return n.fieldDataByName.delete(o),!1;let c=n.name,l=(0,Ac.getOrThrowError)(n.fieldDataByName,o,`${c}.fieldDataByFieldName`),d=t.operationTypes.get(l.namedTypeName);if(d){let p=(0,Ac.getOrThrowError)(ID.operationTypeNodeToDefaultType,d,_u.OPERATION_TO_DEFAULT);l.namedTypeName!==p&&(0,rde.renameNamedTypeName)(l,p,e.errors)}return i!=null&&i.has(o)&&l.isShareableBySubgraphName.delete(t.name),!1}},InterfaceTypeDefinition:{enter(a){let o=a.name.value;if(!e.entityInterfaceFederationDataByTypeName.get(o))return!1;n=(0,Ac.getOrThrowError)(t.parentDefinitionDataByTypeName,o,_u.PARENT_DEFINITION_DATA)},leave(){n=void 0}},ObjectTypeDefinition:{enter(a){let o=a.name.value,c=t.operationTypes.get(o),l=c?(0,Ac.getOrThrowError)(ID.operationTypeNodeToDefaultType,c,_u.OPERATION_TO_DEFAULT):o;n=(0,Ac.getOrThrowError)(t.parentDefinitionDataByTypeName,o,_u.PARENT_DEFINITION_DATA),r=n.isRootType,!e.entityInterfaceFederationDataByTypeName.get(o)&&(e.addValidPrimaryKeyTargetsToEntityData(o),i=t.overriddenFieldNamesByParentTypeName.get(l),o!==l&&(n.name=l,t.parentDefinitionDataByTypeName.set(l,n),t.parentDefinitionDataByTypeName.delete(o)))},leave(){n=void 0,r=!1,i=void 0}},ObjectTypeExtension:{enter(a){let o=a.name.value,c=t.operationTypes.get(o),l=c?(0,Ac.getOrThrowError)(ID.operationTypeNodeToDefaultType,c,_u.OPERATION_TO_DEFAULT):o;n=(0,Ac.getOrThrowError)(t.parentDefinitionDataByTypeName,o,_u.PARENT_DEFINITION_DATA),r=n.isRootType,e.addValidPrimaryKeyTargetsToEntityData(o),i=t.overriddenFieldNamesByParentTypeName.get(o),o!==l&&(n.name=l,t.parentDefinitionDataByTypeName.set(l,n),t.parentDefinitionDataByTypeName.delete(o))},leave(){n=void 0,r=!1,i=void 0}}})}});var hV=w((Zl,tp)=>{"use strict";m();T();N();(function(){var e,t="4.17.21",n=200,r="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",a="Invalid `variable` option passed into `_.template`",o="__lodash_hash_undefined__",c=500,l="__lodash_placeholder__",d=1,p=2,y=4,I=1,v=2,F=1,k=2,K=4,J=8,se=16,ie=32,Te=64,de=128,Re=256,xe=512,tt=30,ee="...",Se=800,_t=16,en=1,tn=2,An=3,Qt=1/0,mn=9007199254740991,Pr=17976931348623157e292,Fr=NaN,kn=4294967295,zt=kn-1,Rn=kn>>>1,ue=[["ary",de],["bind",F],["bindKey",k],["curry",J],["curryRight",se],["flip",xe],["partial",ie],["partialRight",Te],["rearg",Re]],be="[object Arguments]",ve="[object Array]",Ce="[object AsyncFunction]",vt="[object Boolean]",Y="[object Date]",oe="[object DOMException]",qe="[object Error]",Ye="[object Function]",Ut="[object GeneratorFunction]",nt="[object Map]",Rt="[object Number]",ns="[object Null]",Vr="[object Object]",rs="[object Promise]",xc="[object Proxy]",ga="[object RegExp]",mr="[object Set]",ri="[object String]",Vt="[object Symbol]",Nr="[object Undefined]",Du="[object WeakMap]",_a="[object WeakSet]",bu="[object ArrayBuffer]",R="[object DataView]",h="[object Float32Array]",g="[object Float64Array]",C="[object Int8Array]",G="[object Int16Array]",te="[object Int32Array]",fe="[object Uint8Array]",pt="[object Uint8ClampedArray]",Nn="[object Uint16Array]",on="[object Uint32Array]",yn=/\b__p \+= '';/g,nn=/\b(__p \+=) '' \+/g,W1=/(__e\(.*?\)|\b__t\)) \+\n'';/g,_b=/&(?:amp|lt|gt|quot|#39);/g,vb=/[&<>"']/g,X1=RegExp(_b.source),Z1=RegExp(vb.source),ej=/<%-([\s\S]+?)%>/g,tj=/<%([\s\S]+?)%>/g,Sb=/<%=([\s\S]+?)%>/g,nj=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rj=/^\w*$/,ij=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_h=/[\\^$.*+?()[\]{}|]/g,aj=RegExp(_h.source),vh=/^\s+/,sj=/\s/,oj=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,uj=/\{\n\/\* \[wrapped with (.+)\] \*/,cj=/,? & /,lj=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,dj=/[()=,{}\[\]\/\s]/,fj=/\\(\\)?/g,pj=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ob=/\w*$/,mj=/^[-+]0x[0-9a-f]+$/i,Nj=/^0b[01]+$/i,Tj=/^\[object .+?Constructor\]$/,Ej=/^0o[0-7]+$/i,hj=/^(?:0|[1-9]\d*)$/,yj=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Sp=/($^)/,Ij=/['\n\r\u2028\u2029\\]/g,Op="\\ud800-\\udfff",gj="\\u0300-\\u036f",_j="\\ufe20-\\ufe2f",vj="\\u20d0-\\u20ff",Db=gj+_j+vj,bb="\\u2700-\\u27bf",Ab="a-z\\xdf-\\xf6\\xf8-\\xff",Sj="\\xac\\xb1\\xd7\\xf7",Oj="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Dj="\\u2000-\\u206f",bj=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Rb="A-Z\\xc0-\\xd6\\xd8-\\xde",Pb="\\ufe0e\\ufe0f",Fb=Sj+Oj+Dj+bj,Sh="['\u2019]",Aj="["+Op+"]",wb="["+Fb+"]",Dp="["+Db+"]",Lb="\\d+",Rj="["+bb+"]",Cb="["+Ab+"]",Bb="[^"+Op+Fb+Lb+bb+Ab+Rb+"]",Oh="\\ud83c[\\udffb-\\udfff]",Pj="(?:"+Dp+"|"+Oh+")",Ub="[^"+Op+"]",Dh="(?:\\ud83c[\\udde6-\\uddff]){2}",bh="[\\ud800-\\udbff][\\udc00-\\udfff]",qc="["+Rb+"]",kb="\\u200d",Mb="(?:"+Cb+"|"+Bb+")",Fj="(?:"+qc+"|"+Bb+")",xb="(?:"+Sh+"(?:d|ll|m|re|s|t|ve))?",qb="(?:"+Sh+"(?:D|LL|M|RE|S|T|VE))?",Vb=Pj+"?",jb="["+Pb+"]?",wj="(?:"+kb+"(?:"+[Ub,Dh,bh].join("|")+")"+jb+Vb+")*",Lj="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Cj="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Kb=jb+Vb+wj,Bj="(?:"+[Rj,Dh,bh].join("|")+")"+Kb,Uj="(?:"+[Ub+Dp+"?",Dp,Dh,bh,Aj].join("|")+")",kj=RegExp(Sh,"g"),Mj=RegExp(Dp,"g"),Ah=RegExp(Oh+"(?="+Oh+")|"+Uj+Kb,"g"),xj=RegExp([qc+"?"+Cb+"+"+xb+"(?="+[wb,qc,"$"].join("|")+")",Fj+"+"+qb+"(?="+[wb,qc+Mb,"$"].join("|")+")",qc+"?"+Mb+"+"+xb,qc+"+"+qb,Cj,Lj,Lb,Bj].join("|"),"g"),qj=RegExp("["+kb+Op+Db+Pb+"]"),Vj=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,jj=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Kj=-1,En={};En[h]=En[g]=En[C]=En[G]=En[te]=En[fe]=En[pt]=En[Nn]=En[on]=!0,En[be]=En[ve]=En[bu]=En[vt]=En[R]=En[Y]=En[qe]=En[Ye]=En[nt]=En[Rt]=En[Vr]=En[ga]=En[mr]=En[ri]=En[Du]=!1;var Tn={};Tn[be]=Tn[ve]=Tn[bu]=Tn[R]=Tn[vt]=Tn[Y]=Tn[h]=Tn[g]=Tn[C]=Tn[G]=Tn[te]=Tn[nt]=Tn[Rt]=Tn[Vr]=Tn[ga]=Tn[mr]=Tn[ri]=Tn[Vt]=Tn[fe]=Tn[pt]=Tn[Nn]=Tn[on]=!0,Tn[qe]=Tn[Ye]=Tn[Du]=!1;var Gj={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},$j={"&":"&","<":"<",">":">",'"':""","'":"'"},Qj={"&":"&","<":"<",">":">",""":'"',"'":"'"},Yj={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Jj=parseFloat,Hj=parseInt,Gb=typeof global=="object"&&global&&global.Object===Object&&global,zj=typeof self=="object"&&self&&self.Object===Object&&self,ir=Gb||zj||Function("return this")(),Rh=typeof Zl=="object"&&Zl&&!Zl.nodeType&&Zl,Au=Rh&&typeof tp=="object"&&tp&&!tp.nodeType&&tp,$b=Au&&Au.exports===Rh,Ph=$b&&Gb.process,hi=function(){try{var $=Au&&Au.require&&Au.require("util").types;return $||Ph&&Ph.binding&&Ph.binding("util")}catch(ce){}}(),Qb=hi&&hi.isArrayBuffer,Yb=hi&&hi.isDate,Jb=hi&&hi.isMap,Hb=hi&&hi.isRegExp,zb=hi&&hi.isSet,Wb=hi&&hi.isTypedArray;function ii($,ce,ne){switch(ne.length){case 0:return $.call(ce);case 1:return $.call(ce,ne[0]);case 2:return $.call(ce,ne[0],ne[1]);case 3:return $.call(ce,ne[0],ne[1],ne[2])}return $.apply(ce,ne)}function Wj($,ce,ne,Be){for(var ut=-1,Yt=$==null?0:$.length;++ut-1}function Fh($,ce,ne){for(var Be=-1,ut=$==null?0:$.length;++Be-1;);return ne}function a0($,ce){for(var ne=$.length;ne--&&Vc(ce,$[ne],0)>-1;);return ne}function sK($,ce){for(var ne=$.length,Be=0;ne--;)$[ne]===ce&&++Be;return Be}var oK=Bh(Gj),uK=Bh($j);function cK($){return"\\"+Yj[$]}function lK($,ce){return $==null?e:$[ce]}function jc($){return qj.test($)}function dK($){return Vj.test($)}function fK($){for(var ce,ne=[];!(ce=$.next()).done;)ne.push(ce.value);return ne}function xh($){var ce=-1,ne=Array($.size);return $.forEach(function(Be,ut){ne[++ce]=[ut,Be]}),ne}function s0($,ce){return function(ne){return $(ce(ne))}}function Go($,ce){for(var ne=-1,Be=$.length,ut=0,Yt=[];++ne-1}function ZK(s,u){var f=this.__data__,E=Gp(f,s);return E<0?(++this.size,f.push([s,u])):f[E][1]=u,this}is.prototype.clear=HK,is.prototype.delete=zK,is.prototype.get=WK,is.prototype.has=XK,is.prototype.set=ZK;function as(s){var u=-1,f=s==null?0:s.length;for(this.clear();++u=u?s:u)),s}function _i(s,u,f,E,S,L){var M,j=u&d,H=u&p,pe=u&y;if(f&&(M=S?f(s,E,S,L):f(s)),M!==e)return M;if(!vn(s))return s;var me=dt(s);if(me){if(M=r$(s),!j)return jr(s,M)}else{var he=hr(s),Ae=he==Ye||he==Ut;if(Wo(s))return j0(s,j);if(he==Vr||he==be||Ae&&!S){if(M=H||Ae?{}:oA(s),!j)return H?QG(s,NG(M,s)):$G(s,h0(M,s))}else{if(!Tn[he])return S?s:{};M=i$(s,he,j)}}L||(L=new Wi);var Ke=L.get(s);if(Ke)return Ke;L.set(s,M),UA(s)?s.forEach(function(et){M.add(_i(et,u,f,et,s,L))}):CA(s)&&s.forEach(function(et,St){M.set(St,_i(et,u,f,St,s,L))});var Ze=pe?H?dy:ly:H?Gr:ar,Et=me?e:Ze(s);return yi(Et||s,function(et,St){Et&&(St=et,et=s[St]),Ed(M,St,_i(et,u,f,St,s,L))}),M}function TG(s){var u=ar(s);return function(f){return y0(f,s,u)}}function y0(s,u,f){var E=f.length;if(s==null)return!E;for(s=dn(s);E--;){var S=f[E],L=u[S],M=s[S];if(M===e&&!(S in s)||!L(M))return!1}return!0}function I0(s,u,f){if(typeof s!="function")throw new Ii(i);return Sd(function(){s.apply(e,f)},u)}function hd(s,u,f,E){var S=-1,L=bp,M=!0,j=s.length,H=[],pe=u.length;if(!j)return H;f&&(u=In(u,ai(f))),E?(L=Fh,M=!1):u.length>=n&&(L=dd,M=!1,u=new Fu(u));e:for(;++SS?0:S+f),E=E===e||E>S?S:Nt(E),E<0&&(E+=S),E=f>E?0:MA(E);f0&&f(j)?u>1?Tr(j,u-1,f,E,S):Ko(S,j):E||(S[S.length]=j)}return S}var Qh=J0(),v0=J0(!0);function va(s,u){return s&&Qh(s,u,ar)}function Yh(s,u){return s&&v0(s,u,ar)}function Qp(s,u){return jo(u,function(f){return ls(s[f])})}function Lu(s,u){u=Ho(u,s);for(var f=0,E=u.length;s!=null&&fu}function yG(s,u){return s!=null&&rn.call(s,u)}function IG(s,u){return s!=null&&u in dn(s)}function gG(s,u,f){return s>=Er(u,f)&&s=120&&me.length>=120)?new Fu(M&&me):e}me=s[0];var he=-1,Ae=j[0];e:for(;++he-1;)j!==s&&kp.call(j,H,1),kp.call(s,H,1);return s}function C0(s,u){for(var f=s?u.length:0,E=f-1;f--;){var S=u[f];if(f==E||S!==L){var L=S;cs(S)?kp.call(s,S,1):ry(s,S)}}return s}function ey(s,u){return s+qp(m0()*(u-s+1))}function CG(s,u,f,E){for(var S=-1,L=zn(xp((u-s)/(f||1)),0),M=ne(L);L--;)M[E?L:++S]=s,s+=f;return M}function ty(s,u){var f="";if(!s||u<1||u>mn)return f;do u%2&&(f+=s),u=qp(u/2),u&&(s+=s);while(u);return f}function It(s,u){return hy(lA(s,u,$r),s+"")}function BG(s){return E0(Xc(s))}function UG(s,u){var f=Xc(s);return rm(f,wu(u,0,f.length))}function gd(s,u,f,E){if(!vn(s))return s;u=Ho(u,s);for(var S=-1,L=u.length,M=L-1,j=s;j!=null&&++SS?0:S+u),f=f>S?S:f,f<0&&(f+=S),S=u>f?0:f-u>>>0,u>>>=0;for(var L=ne(S);++E>>1,M=s[L];M!==null&&!oi(M)&&(f?M<=u:M=n){var pe=u?null:zG(s);if(pe)return Rp(pe);M=!1,S=dd,H=new Fu}else H=u?[]:j;e:for(;++E=E?s:vi(s,u,f)}var V0=bK||function(s){return ir.clearTimeout(s)};function j0(s,u){if(u)return s.slice();var f=s.length,E=c0?c0(f):new s.constructor(f);return s.copy(E),E}function oy(s){var u=new s.constructor(s.byteLength);return new Bp(u).set(new Bp(s)),u}function VG(s,u){var f=u?oy(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.byteLength)}function jG(s){var u=new s.constructor(s.source,Ob.exec(s));return u.lastIndex=s.lastIndex,u}function KG(s){return Td?dn(Td.call(s)):{}}function K0(s,u){var f=u?oy(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.length)}function G0(s,u){if(s!==u){var f=s!==e,E=s===null,S=s===s,L=oi(s),M=u!==e,j=u===null,H=u===u,pe=oi(u);if(!j&&!pe&&!L&&s>u||L&&M&&H&&!j&&!pe||E&&M&&H||!f&&H||!S)return 1;if(!E&&!L&&!pe&&s=j)return H;var pe=f[E];return H*(pe=="desc"?-1:1)}}return s.index-u.index}function $0(s,u,f,E){for(var S=-1,L=s.length,M=f.length,j=-1,H=u.length,pe=zn(L-M,0),me=ne(H+pe),he=!E;++j1?f[S-1]:e,M=S>2?f[2]:e;for(L=s.length>3&&typeof L=="function"?(S--,L):e,M&&Lr(f[0],f[1],M)&&(L=S<3?e:L,S=1),u=dn(u);++E-1?S[L?u[M]:M]:e}}function W0(s){return us(function(u){var f=u.length,E=f,S=gi.prototype.thru;for(s&&u.reverse();E--;){var L=u[E];if(typeof L!="function")throw new Ii(i);if(S&&!M&&tm(L)=="wrapper")var M=new gi([],!0)}for(E=M?E:f;++E1&&Pt.reverse(),me&&Hj))return!1;var pe=L.get(s),me=L.get(u);if(pe&&me)return pe==u&&me==s;var he=-1,Ae=!0,Ke=f&v?new Fu:e;for(L.set(s,u),L.set(u,s);++he1?"& ":"")+u[E],u=u.join(f>2?", ":" "),s.replace(oj,`{ /* [wrapped with `+u+`] */ -`)}function s$(s){return dt(s)||Uu(s)||!!(f0&&s&&s[f0])}function cs(s,u){var f=typeof s;return u=u==null?mn:u,!!u&&(f=="number"||f!="symbol"&&hj.test(s))&&s>-1&&s%1==0&&s0){if(++u>=Se)return arguments[0]}else u=0;return s.apply(e,arguments)}}function rm(s,u){var f=-1,E=s.length,S=E-1;for(u=u===e?E:u;++f1?s[u-1]:e;return f=typeof f=="function"?(s.pop(),f):e,_A(s,f)});function vA(s){var u=P(s);return u.__chain__=!0,u}function EQ(s,u){return u(s),s}function im(s,u){return u(s)}var hQ=us(function(s){var u=s.length,f=u?s[0]:0,E=this.__wrapped__,S=function(L){return $h(L,s)};return u>1||this.__actions__.length||!(E instanceof Ot)||!cs(f)?this.thru(S):(E=E.slice(f,+f+(u?1:0)),E.__actions__.push({func:im,args:[S],thisArg:e}),new _i(E,this.__chain__).thru(function(L){return u&&!L.length&&L.push(e),L}))});function yQ(){return vA(this)}function IQ(){return new _i(this.value(),this.__chain__)}function gQ(){this.__values__===e&&(this.__values__=kA(this.value()));var s=this.__index__>=this.__values__.length,u=s?e:this.__values__[this.__index__++];return{done:s,value:u}}function _Q(){return this}function vQ(s){for(var u,f=this;f instanceof Kp;){var E=TA(f);E.__index__=0,E.__values__=e,u?S.__wrapped__=E:u=E;var S=E;f=f.__wrapped__}return S.__wrapped__=s,u}function SQ(){var s=this.__wrapped__;if(s instanceof Ot){var u=s;return this.__actions__.length&&(u=new Ot(this)),u=u.reverse(),u.__actions__.push({func:im,args:[yy],thisArg:e}),new _i(u,this.__chain__)}return this.thru(yy)}function OQ(){return x0(this.__wrapped__,this.__actions__)}var DQ=zp(function(s,u,f){rn.call(s,f)?++s[f]:ss(s,f,1)});function bQ(s,u,f){var E=dt(s)?Xb:EG;return f&&Lr(s,u,f)&&(u=e),E(s,We(u,3))}function AQ(s,u){var f=dt(s)?jo:_0;return f(s,We(u,3))}var RQ=z0(EA),PQ=z0(hA);function FQ(s,u){return Tr(am(s,u),1)}function wQ(s,u){return Tr(am(s,u),Qt)}function LQ(s,u,f){return f=f===e?1:Nt(f),Tr(am(s,u),f)}function SA(s,u){var f=dt(s)?Ii:Yo;return f(s,We(u,3))}function OA(s,u){var f=dt(s)?Xj:g0;return f(s,We(u,3))}var CQ=zp(function(s,u,f){rn.call(s,f)?s[f].push(u):ss(s,f,[u])});function BQ(s,u,f,E){s=Kr(s)?s:Xc(s),f=f&&!E?Nt(f):0;var S=s.length;return f<0&&(f=zn(S+f,0)),lm(s)?f<=S&&s.indexOf(u,f)>-1:!!S&&Vc(s,u,f)>-1}var UQ=It(function(s,u,f){var E=-1,S=typeof u=="function",L=Kr(s)?ne(s.length):[];return Yo(s,function(M){L[++E]=S?ii(u,M,f):yd(M,u,f)}),L}),kQ=zp(function(s,u,f){ss(s,f,u)});function am(s,u){var f=dt(s)?In:A0;return f(s,We(u,3))}function MQ(s,u,f,E){return s==null?[]:(dt(u)||(u=u==null?[]:[u]),f=E?e:f,dt(f)||(f=f==null?[]:[f]),w0(s,u,f))}var xQ=zp(function(s,u,f){s[f?0:1].push(u)},function(){return[[],[]]});function qQ(s,u,f){var E=dt(s)?wh:n0,S=arguments.length<3;return E(s,We(u,4),f,S,Yo)}function VQ(s,u,f){var E=dt(s)?Zj:n0,S=arguments.length<3;return E(s,We(u,4),f,S,g0)}function jQ(s,u){var f=dt(s)?jo:_0;return f(s,um(We(u,3)))}function KQ(s){var u=dt(s)?E0:BG;return u(s)}function GQ(s,u,f){(f?Lr(s,u,f):u===e)?u=1:u=Nt(u);var E=dt(s)?fG:UG;return E(s,u)}function $Q(s){var u=dt(s)?pG:MG;return u(s)}function QQ(s){if(s==null)return 0;if(Kr(s))return lm(s)?Kc(s):s.length;var u=hr(s);return u==nt||u==mr?s.size:Wh(s).length}function YQ(s,u,f){var E=dt(s)?Lh:xG;return f&&Lr(s,u,f)&&(u=e),E(s,We(u,3))}var JQ=It(function(s,u){if(s==null)return[];var f=u.length;return f>1&&Lr(s,u[0],u[1])?u=[]:f>2&&Lr(u[0],u[1],u[2])&&(u=[u[0]]),w0(s,Tr(u,1),[])}),sm=AK||function(){return ir.Date.now()};function HQ(s,u){if(typeof u!="function")throw new gi(i);return s=Nt(s),function(){if(--s<1)return u.apply(this,arguments)}}function DA(s,u,f){return u=f?e:u,u=s&&u==null?s.length:u,os(s,de,e,e,e,e,u)}function bA(s,u){var f;if(typeof u!="function")throw new gi(i);return s=Nt(s),function(){return--s>0&&(f=u.apply(this,arguments)),s<=1&&(u=e),f}}var gy=It(function(s,u,f){var E=F;if(f.length){var S=Go(f,zc(gy));E|=ie}return os(s,E,u,f,S)}),AA=It(function(s,u,f){var E=F|k;if(f.length){var S=Go(f,zc(AA));E|=ie}return os(u,E,s,f,S)});function RA(s,u,f){u=f?e:u;var E=os(s,J,e,e,e,e,e,u);return E.placeholder=RA.placeholder,E}function PA(s,u,f){u=f?e:u;var E=os(s,se,e,e,e,e,e,u);return E.placeholder=PA.placeholder,E}function FA(s,u,f){var E,S,L,M,j,H,pe=0,me=!1,he=!1,Ae=!0;if(typeof s!="function")throw new gi(i);u=Di(u)||0,vn(f)&&(me=!!f.leading,he="maxWait"in f,L=he?zn(Di(f.maxWait)||0,u):L,Ae="trailing"in f?!!f.trailing:Ae);function Ke(xn){var Zi=E,fs=S;return E=S=e,pe=xn,M=s.apply(fs,Zi),M}function Ze(xn){return pe=xn,j=Sd(St,u),me?Ke(xn):M}function Et(xn){var Zi=xn-H,fs=xn-pe,zA=u-Zi;return he?Er(zA,L-fs):zA}function et(xn){var Zi=xn-H,fs=xn-pe;return H===e||Zi>=u||Zi<0||he&&fs>=L}function St(){var xn=sm();if(et(xn))return Pt(xn);j=Sd(St,Et(xn))}function Pt(xn){return j=e,Ae&&E?Ke(xn):(E=S=e,M)}function ui(){j!==e&&V0(j),pe=0,E=H=S=j=e}function Cr(){return j===e?M:Pt(sm())}function ci(){var xn=sm(),Zi=et(xn);if(E=arguments,S=this,H=xn,Zi){if(j===e)return Ze(H);if(he)return V0(j),j=Sd(St,u),Ke(H)}return j===e&&(j=Sd(St,u)),M}return ci.cancel=ui,ci.flush=Cr,ci}var zQ=It(function(s,u){return I0(s,1,u)}),WQ=It(function(s,u,f){return I0(s,Di(u)||0,f)});function XQ(s){return os(s,xe)}function om(s,u){if(typeof s!="function"||u!=null&&typeof u!="function")throw new gi(i);var f=function(){var E=arguments,S=u?u.apply(this,E):E[0],L=f.cache;if(L.has(S))return L.get(S);var M=s.apply(this,E);return f.cache=L.set(S,M)||L,M};return f.cache=new(om.Cache||as),f}om.Cache=as;function um(s){if(typeof s!="function")throw new gi(i);return function(){var u=arguments;switch(u.length){case 0:return!s.call(this);case 1:return!s.call(this,u[0]);case 2:return!s.call(this,u[0],u[1]);case 3:return!s.call(this,u[0],u[1],u[2])}return!s.apply(this,u)}}function ZQ(s){return bA(2,s)}var e2=qG(function(s,u){u=u.length==1&&dt(u[0])?In(u[0],ai(We())):In(Tr(u,1),ai(We()));var f=u.length;return It(function(E){for(var S=-1,L=Er(E.length,f);++S=u}),Uu=O0(function(){return arguments}())?O0:function(s){return Pn(s)&&rn.call(s,"callee")&&!d0.call(s,"callee")},dt=ne.isArray,N2=Qb?ai(Qb):vG;function Kr(s){return s!=null&&cm(s.length)&&!ls(s)}function Mn(s){return Pn(s)&&Kr(s)}function T2(s){return s===!0||s===!1||Pn(s)&&wr(s)==vt}var Wo=PK||Ly,E2=Yb?ai(Yb):SG;function h2(s){return Pn(s)&&s.nodeType===1&&!Od(s)}function y2(s){if(s==null)return!0;if(Kr(s)&&(dt(s)||typeof s=="string"||typeof s.splice=="function"||Wo(s)||Wc(s)||Uu(s)))return!s.length;var u=hr(s);if(u==nt||u==mr)return!s.size;if(vd(s))return!Wh(s).length;for(var f in s)if(rn.call(s,f))return!1;return!0}function I2(s,u){return Id(s,u)}function g2(s,u,f){f=typeof f=="function"?f:e;var E=f?f(s,u):e;return E===e?Id(s,u,e,f):!!E}function vy(s){if(!Pn(s))return!1;var u=wr(s);return u==qe||u==oe||typeof s.message=="string"&&typeof s.name=="string"&&!Od(s)}function _2(s){return typeof s=="number"&&p0(s)}function ls(s){if(!vn(s))return!1;var u=wr(s);return u==Ye||u==Ut||u==Ce||u==xc}function LA(s){return typeof s=="number"&&s==Nt(s)}function cm(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=mn}function vn(s){var u=typeof s;return s!=null&&(u=="object"||u=="function")}function Pn(s){return s!=null&&typeof s=="object"}var CA=Jb?ai(Jb):DG;function v2(s,u){return s===u||zh(s,u,py(u))}function S2(s,u,f){return f=typeof f=="function"?f:e,zh(s,u,py(u),f)}function O2(s){return BA(s)&&s!=+s}function D2(s){if(c$(s))throw new ut(r);return D0(s)}function b2(s){return s===null}function A2(s){return s==null}function BA(s){return typeof s=="number"||Pn(s)&&wr(s)==Rt}function Od(s){if(!Pn(s)||wr(s)!=Vr)return!1;var u=Up(s);if(u===null)return!0;var f=rn.call(u,"constructor")&&u.constructor;return typeof f=="function"&&f instanceof f&&wp.call(f)==SK}var Sy=Hb?ai(Hb):bG;function R2(s){return LA(s)&&s>=-mn&&s<=mn}var UA=zb?ai(zb):AG;function lm(s){return typeof s=="string"||!dt(s)&&Pn(s)&&wr(s)==ri}function oi(s){return typeof s=="symbol"||Pn(s)&&wr(s)==Vt}var Wc=Wb?ai(Wb):RG;function P2(s){return s===e}function F2(s){return Pn(s)&&hr(s)==Du}function w2(s){return Pn(s)&&wr(s)==_a}var L2=em(Xh),C2=em(function(s,u){return s<=u});function kA(s){if(!s)return[];if(Kr(s))return lm(s)?zi(s):jr(s);if(fd&&s[fd])return fK(s[fd]());var u=hr(s),f=u==nt?xh:u==mr?Rp:Xc;return f(s)}function ds(s){if(!s)return s===0?s:0;if(s=Di(s),s===Qt||s===-Qt){var u=s<0?-1:1;return u*Pr}return s===s?s:0}function Nt(s){var u=ds(s),f=u%1;return u===u?f?u-f:u:0}function MA(s){return s?wu(Nt(s),0,kn):0}function Di(s){if(typeof s=="number")return s;if(oi(s))return Fr;if(vn(s)){var u=typeof s.valueOf=="function"?s.valueOf():s;s=vn(u)?u+"":u}if(typeof s!="string")return s===0?s:+s;s=r0(s);var f=Nj.test(s);return f||Ej.test(s)?Hj(s.slice(2),f?2:8):mj.test(s)?Fr:+s}function xA(s){return Sa(s,Gr(s))}function B2(s){return s?wu(Nt(s),-mn,mn):s===0?s:0}function Wt(s){return s==null?"":si(s)}var U2=Jc(function(s,u){if(vd(u)||Kr(u)){Sa(u,ar(u),s);return}for(var f in u)rn.call(u,f)&&Ed(s,f,u[f])}),qA=Jc(function(s,u){Sa(u,Gr(u),s)}),dm=Jc(function(s,u,f,E){Sa(u,Gr(u),s,E)}),k2=Jc(function(s,u,f,E){Sa(u,ar(u),s,E)}),M2=us($h);function x2(s,u){var f=Yc(s);return u==null?f:h0(f,u)}var q2=It(function(s,u){s=dn(s);var f=-1,E=u.length,S=E>2?u[2]:e;for(S&&Lr(u[0],u[1],S)&&(E=1);++f1),L}),Sa(s,dy(s),f),E&&(f=vi(f,d|p|y,WG));for(var S=u.length;S--;)ry(f,u[S]);return f});function iY(s,u){return jA(s,um(We(u)))}var aY=us(function(s,u){return s==null?{}:wG(s,u)});function jA(s,u){if(s==null)return{};var f=In(dy(s),function(E){return[E]});return u=We(u),L0(s,f,function(E,S){return u(E,S[0])})}function sY(s,u,f){u=Ho(u,s);var E=-1,S=u.length;for(S||(S=1,s=e);++Eu){var E=s;s=u,u=E}if(f||s%1||u%1){var S=m0();return Er(s+S*(u-s+Jj("1e-"+((S+"").length-1))),u)}return ey(s,u)}var EY=Hc(function(s,u,f){return u=u.toLowerCase(),s+(f?$A(u):u)});function $A(s){return by(Wt(s).toLowerCase())}function QA(s){return s=Wt(s),s&&s.replace(yj,oK).replace(Mj,"")}function hY(s,u,f){s=Wt(s),u=si(u);var E=s.length;f=f===e?E:wu(Nt(f),0,E);var S=f;return f-=u.length,f>=0&&s.slice(f,S)==u}function yY(s){return s=Wt(s),s&&Z1.test(s)?s.replace(vb,uK):s}function IY(s){return s=Wt(s),s&&aj.test(s)?s.replace(_h,"\\$&"):s}var gY=Hc(function(s,u,f){return s+(f?"-":"")+u.toLowerCase()}),_Y=Hc(function(s,u,f){return s+(f?" ":"")+u.toLowerCase()}),vY=H0("toLowerCase");function SY(s,u,f){s=Wt(s),u=Nt(u);var E=u?Kc(s):0;if(!u||E>=u)return s;var S=(u-E)/2;return Zp(qp(S),f)+s+Zp(xp(S),f)}function OY(s,u,f){s=Wt(s),u=Nt(u);var E=u?Kc(s):0;return u&&E>>0,f?(s=Wt(s),s&&(typeof u=="string"||u!=null&&!Sy(u))&&(u=si(u),!u&&jc(s))?zo(zi(s),0,f):s.split(u,f)):[]}var wY=Hc(function(s,u,f){return s+(f?" ":"")+by(u)});function LY(s,u,f){return s=Wt(s),f=f==null?0:wu(Nt(f),0,s.length),u=si(u),s.slice(f,f+u.length)==u}function CY(s,u,f){var E=P.templateSettings;f&&Lr(s,u,f)&&(u=e),s=Wt(s),u=dm({},u,E,nA);var S=dm({},u.imports,E.imports,nA),L=ar(S),M=Mh(S,L),j,H,pe=0,me=u.interpolate||Sp,he="__p += '",Ae=qh((u.escape||Sp).source+"|"+me.source+"|"+(me===Sb?pj:Sp).source+"|"+(u.evaluate||Sp).source+"|$","g"),Ke="//# sourceURL="+(rn.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Kj+"]")+` +`)}function s$(s){return dt(s)||Uu(s)||!!(f0&&s&&s[f0])}function cs(s,u){var f=typeof s;return u=u==null?mn:u,!!u&&(f=="number"||f!="symbol"&&hj.test(s))&&s>-1&&s%1==0&&s0){if(++u>=Se)return arguments[0]}else u=0;return s.apply(e,arguments)}}function rm(s,u){var f=-1,E=s.length,S=E-1;for(u=u===e?E:u;++f1?s[u-1]:e;return f=typeof f=="function"?(s.pop(),f):e,_A(s,f)});function vA(s){var u=P(s);return u.__chain__=!0,u}function EQ(s,u){return u(s),s}function im(s,u){return u(s)}var hQ=us(function(s){var u=s.length,f=u?s[0]:0,E=this.__wrapped__,S=function(L){return $h(L,s)};return u>1||this.__actions__.length||!(E instanceof Ot)||!cs(f)?this.thru(S):(E=E.slice(f,+f+(u?1:0)),E.__actions__.push({func:im,args:[S],thisArg:e}),new gi(E,this.__chain__).thru(function(L){return u&&!L.length&&L.push(e),L}))});function yQ(){return vA(this)}function IQ(){return new gi(this.value(),this.__chain__)}function gQ(){this.__values__===e&&(this.__values__=kA(this.value()));var s=this.__index__>=this.__values__.length,u=s?e:this.__values__[this.__index__++];return{done:s,value:u}}function _Q(){return this}function vQ(s){for(var u,f=this;f instanceof Kp;){var E=TA(f);E.__index__=0,E.__values__=e,u?S.__wrapped__=E:u=E;var S=E;f=f.__wrapped__}return S.__wrapped__=s,u}function SQ(){var s=this.__wrapped__;if(s instanceof Ot){var u=s;return this.__actions__.length&&(u=new Ot(this)),u=u.reverse(),u.__actions__.push({func:im,args:[yy],thisArg:e}),new gi(u,this.__chain__)}return this.thru(yy)}function OQ(){return x0(this.__wrapped__,this.__actions__)}var DQ=zp(function(s,u,f){rn.call(s,f)?++s[f]:ss(s,f,1)});function bQ(s,u,f){var E=dt(s)?Xb:EG;return f&&Lr(s,u,f)&&(u=e),E(s,We(u,3))}function AQ(s,u){var f=dt(s)?jo:_0;return f(s,We(u,3))}var RQ=z0(EA),PQ=z0(hA);function FQ(s,u){return Tr(am(s,u),1)}function wQ(s,u){return Tr(am(s,u),Qt)}function LQ(s,u,f){return f=f===e?1:Nt(f),Tr(am(s,u),f)}function SA(s,u){var f=dt(s)?yi:Yo;return f(s,We(u,3))}function OA(s,u){var f=dt(s)?Xj:g0;return f(s,We(u,3))}var CQ=zp(function(s,u,f){rn.call(s,f)?s[f].push(u):ss(s,f,[u])});function BQ(s,u,f,E){s=Kr(s)?s:Xc(s),f=f&&!E?Nt(f):0;var S=s.length;return f<0&&(f=zn(S+f,0)),lm(s)?f<=S&&s.indexOf(u,f)>-1:!!S&&Vc(s,u,f)>-1}var UQ=It(function(s,u,f){var E=-1,S=typeof u=="function",L=Kr(s)?ne(s.length):[];return Yo(s,function(M){L[++E]=S?ii(u,M,f):yd(M,u,f)}),L}),kQ=zp(function(s,u,f){ss(s,f,u)});function am(s,u){var f=dt(s)?In:A0;return f(s,We(u,3))}function MQ(s,u,f,E){return s==null?[]:(dt(u)||(u=u==null?[]:[u]),f=E?e:f,dt(f)||(f=f==null?[]:[f]),w0(s,u,f))}var xQ=zp(function(s,u,f){s[f?0:1].push(u)},function(){return[[],[]]});function qQ(s,u,f){var E=dt(s)?wh:n0,S=arguments.length<3;return E(s,We(u,4),f,S,Yo)}function VQ(s,u,f){var E=dt(s)?Zj:n0,S=arguments.length<3;return E(s,We(u,4),f,S,g0)}function jQ(s,u){var f=dt(s)?jo:_0;return f(s,um(We(u,3)))}function KQ(s){var u=dt(s)?E0:BG;return u(s)}function GQ(s,u,f){(f?Lr(s,u,f):u===e)?u=1:u=Nt(u);var E=dt(s)?fG:UG;return E(s,u)}function $Q(s){var u=dt(s)?pG:MG;return u(s)}function QQ(s){if(s==null)return 0;if(Kr(s))return lm(s)?Kc(s):s.length;var u=hr(s);return u==nt||u==mr?s.size:Wh(s).length}function YQ(s,u,f){var E=dt(s)?Lh:xG;return f&&Lr(s,u,f)&&(u=e),E(s,We(u,3))}var JQ=It(function(s,u){if(s==null)return[];var f=u.length;return f>1&&Lr(s,u[0],u[1])?u=[]:f>2&&Lr(u[0],u[1],u[2])&&(u=[u[0]]),w0(s,Tr(u,1),[])}),sm=AK||function(){return ir.Date.now()};function HQ(s,u){if(typeof u!="function")throw new Ii(i);return s=Nt(s),function(){if(--s<1)return u.apply(this,arguments)}}function DA(s,u,f){return u=f?e:u,u=s&&u==null?s.length:u,os(s,de,e,e,e,e,u)}function bA(s,u){var f;if(typeof u!="function")throw new Ii(i);return s=Nt(s),function(){return--s>0&&(f=u.apply(this,arguments)),s<=1&&(u=e),f}}var gy=It(function(s,u,f){var E=F;if(f.length){var S=Go(f,zc(gy));E|=ie}return os(s,E,u,f,S)}),AA=It(function(s,u,f){var E=F|k;if(f.length){var S=Go(f,zc(AA));E|=ie}return os(u,E,s,f,S)});function RA(s,u,f){u=f?e:u;var E=os(s,J,e,e,e,e,e,u);return E.placeholder=RA.placeholder,E}function PA(s,u,f){u=f?e:u;var E=os(s,se,e,e,e,e,e,u);return E.placeholder=PA.placeholder,E}function FA(s,u,f){var E,S,L,M,j,H,pe=0,me=!1,he=!1,Ae=!0;if(typeof s!="function")throw new Ii(i);u=Oi(u)||0,vn(f)&&(me=!!f.leading,he="maxWait"in f,L=he?zn(Oi(f.maxWait)||0,u):L,Ae="trailing"in f?!!f.trailing:Ae);function Ke(xn){var Zi=E,fs=S;return E=S=e,pe=xn,M=s.apply(fs,Zi),M}function Ze(xn){return pe=xn,j=Sd(St,u),me?Ke(xn):M}function Et(xn){var Zi=xn-H,fs=xn-pe,zA=u-Zi;return he?Er(zA,L-fs):zA}function et(xn){var Zi=xn-H,fs=xn-pe;return H===e||Zi>=u||Zi<0||he&&fs>=L}function St(){var xn=sm();if(et(xn))return Pt(xn);j=Sd(St,Et(xn))}function Pt(xn){return j=e,Ae&&E?Ke(xn):(E=S=e,M)}function ui(){j!==e&&V0(j),pe=0,E=H=S=j=e}function Cr(){return j===e?M:Pt(sm())}function ci(){var xn=sm(),Zi=et(xn);if(E=arguments,S=this,H=xn,Zi){if(j===e)return Ze(H);if(he)return V0(j),j=Sd(St,u),Ke(H)}return j===e&&(j=Sd(St,u)),M}return ci.cancel=ui,ci.flush=Cr,ci}var zQ=It(function(s,u){return I0(s,1,u)}),WQ=It(function(s,u,f){return I0(s,Oi(u)||0,f)});function XQ(s){return os(s,xe)}function om(s,u){if(typeof s!="function"||u!=null&&typeof u!="function")throw new Ii(i);var f=function(){var E=arguments,S=u?u.apply(this,E):E[0],L=f.cache;if(L.has(S))return L.get(S);var M=s.apply(this,E);return f.cache=L.set(S,M)||L,M};return f.cache=new(om.Cache||as),f}om.Cache=as;function um(s){if(typeof s!="function")throw new Ii(i);return function(){var u=arguments;switch(u.length){case 0:return!s.call(this);case 1:return!s.call(this,u[0]);case 2:return!s.call(this,u[0],u[1]);case 3:return!s.call(this,u[0],u[1],u[2])}return!s.apply(this,u)}}function ZQ(s){return bA(2,s)}var e2=qG(function(s,u){u=u.length==1&&dt(u[0])?In(u[0],ai(We())):In(Tr(u,1),ai(We()));var f=u.length;return It(function(E){for(var S=-1,L=Er(E.length,f);++S=u}),Uu=O0(function(){return arguments}())?O0:function(s){return Pn(s)&&rn.call(s,"callee")&&!d0.call(s,"callee")},dt=ne.isArray,N2=Qb?ai(Qb):vG;function Kr(s){return s!=null&&cm(s.length)&&!ls(s)}function Mn(s){return Pn(s)&&Kr(s)}function T2(s){return s===!0||s===!1||Pn(s)&&wr(s)==vt}var Wo=PK||Ly,E2=Yb?ai(Yb):SG;function h2(s){return Pn(s)&&s.nodeType===1&&!Od(s)}function y2(s){if(s==null)return!0;if(Kr(s)&&(dt(s)||typeof s=="string"||typeof s.splice=="function"||Wo(s)||Wc(s)||Uu(s)))return!s.length;var u=hr(s);if(u==nt||u==mr)return!s.size;if(vd(s))return!Wh(s).length;for(var f in s)if(rn.call(s,f))return!1;return!0}function I2(s,u){return Id(s,u)}function g2(s,u,f){f=typeof f=="function"?f:e;var E=f?f(s,u):e;return E===e?Id(s,u,e,f):!!E}function vy(s){if(!Pn(s))return!1;var u=wr(s);return u==qe||u==oe||typeof s.message=="string"&&typeof s.name=="string"&&!Od(s)}function _2(s){return typeof s=="number"&&p0(s)}function ls(s){if(!vn(s))return!1;var u=wr(s);return u==Ye||u==Ut||u==Ce||u==xc}function LA(s){return typeof s=="number"&&s==Nt(s)}function cm(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=mn}function vn(s){var u=typeof s;return s!=null&&(u=="object"||u=="function")}function Pn(s){return s!=null&&typeof s=="object"}var CA=Jb?ai(Jb):DG;function v2(s,u){return s===u||zh(s,u,py(u))}function S2(s,u,f){return f=typeof f=="function"?f:e,zh(s,u,py(u),f)}function O2(s){return BA(s)&&s!=+s}function D2(s){if(c$(s))throw new ut(r);return D0(s)}function b2(s){return s===null}function A2(s){return s==null}function BA(s){return typeof s=="number"||Pn(s)&&wr(s)==Rt}function Od(s){if(!Pn(s)||wr(s)!=Vr)return!1;var u=Up(s);if(u===null)return!0;var f=rn.call(u,"constructor")&&u.constructor;return typeof f=="function"&&f instanceof f&&wp.call(f)==SK}var Sy=Hb?ai(Hb):bG;function R2(s){return LA(s)&&s>=-mn&&s<=mn}var UA=zb?ai(zb):AG;function lm(s){return typeof s=="string"||!dt(s)&&Pn(s)&&wr(s)==ri}function oi(s){return typeof s=="symbol"||Pn(s)&&wr(s)==Vt}var Wc=Wb?ai(Wb):RG;function P2(s){return s===e}function F2(s){return Pn(s)&&hr(s)==Du}function w2(s){return Pn(s)&&wr(s)==_a}var L2=em(Xh),C2=em(function(s,u){return s<=u});function kA(s){if(!s)return[];if(Kr(s))return lm(s)?zi(s):jr(s);if(fd&&s[fd])return fK(s[fd]());var u=hr(s),f=u==nt?xh:u==mr?Rp:Xc;return f(s)}function ds(s){if(!s)return s===0?s:0;if(s=Oi(s),s===Qt||s===-Qt){var u=s<0?-1:1;return u*Pr}return s===s?s:0}function Nt(s){var u=ds(s),f=u%1;return u===u?f?u-f:u:0}function MA(s){return s?wu(Nt(s),0,kn):0}function Oi(s){if(typeof s=="number")return s;if(oi(s))return Fr;if(vn(s)){var u=typeof s.valueOf=="function"?s.valueOf():s;s=vn(u)?u+"":u}if(typeof s!="string")return s===0?s:+s;s=r0(s);var f=Nj.test(s);return f||Ej.test(s)?Hj(s.slice(2),f?2:8):mj.test(s)?Fr:+s}function xA(s){return Sa(s,Gr(s))}function B2(s){return s?wu(Nt(s),-mn,mn):s===0?s:0}function Wt(s){return s==null?"":si(s)}var U2=Jc(function(s,u){if(vd(u)||Kr(u)){Sa(u,ar(u),s);return}for(var f in u)rn.call(u,f)&&Ed(s,f,u[f])}),qA=Jc(function(s,u){Sa(u,Gr(u),s)}),dm=Jc(function(s,u,f,E){Sa(u,Gr(u),s,E)}),k2=Jc(function(s,u,f,E){Sa(u,ar(u),s,E)}),M2=us($h);function x2(s,u){var f=Yc(s);return u==null?f:h0(f,u)}var q2=It(function(s,u){s=dn(s);var f=-1,E=u.length,S=E>2?u[2]:e;for(S&&Lr(u[0],u[1],S)&&(E=1);++f1),L}),Sa(s,dy(s),f),E&&(f=_i(f,d|p|y,WG));for(var S=u.length;S--;)ry(f,u[S]);return f});function iY(s,u){return jA(s,um(We(u)))}var aY=us(function(s,u){return s==null?{}:wG(s,u)});function jA(s,u){if(s==null)return{};var f=In(dy(s),function(E){return[E]});return u=We(u),L0(s,f,function(E,S){return u(E,S[0])})}function sY(s,u,f){u=Ho(u,s);var E=-1,S=u.length;for(S||(S=1,s=e);++Eu){var E=s;s=u,u=E}if(f||s%1||u%1){var S=m0();return Er(s+S*(u-s+Jj("1e-"+((S+"").length-1))),u)}return ey(s,u)}var EY=Hc(function(s,u,f){return u=u.toLowerCase(),s+(f?$A(u):u)});function $A(s){return by(Wt(s).toLowerCase())}function QA(s){return s=Wt(s),s&&s.replace(yj,oK).replace(Mj,"")}function hY(s,u,f){s=Wt(s),u=si(u);var E=s.length;f=f===e?E:wu(Nt(f),0,E);var S=f;return f-=u.length,f>=0&&s.slice(f,S)==u}function yY(s){return s=Wt(s),s&&Z1.test(s)?s.replace(vb,uK):s}function IY(s){return s=Wt(s),s&&aj.test(s)?s.replace(_h,"\\$&"):s}var gY=Hc(function(s,u,f){return s+(f?"-":"")+u.toLowerCase()}),_Y=Hc(function(s,u,f){return s+(f?" ":"")+u.toLowerCase()}),vY=H0("toLowerCase");function SY(s,u,f){s=Wt(s),u=Nt(u);var E=u?Kc(s):0;if(!u||E>=u)return s;var S=(u-E)/2;return Zp(qp(S),f)+s+Zp(xp(S),f)}function OY(s,u,f){s=Wt(s),u=Nt(u);var E=u?Kc(s):0;return u&&E>>0,f?(s=Wt(s),s&&(typeof u=="string"||u!=null&&!Sy(u))&&(u=si(u),!u&&jc(s))?zo(zi(s),0,f):s.split(u,f)):[]}var wY=Hc(function(s,u,f){return s+(f?" ":"")+by(u)});function LY(s,u,f){return s=Wt(s),f=f==null?0:wu(Nt(f),0,s.length),u=si(u),s.slice(f,f+u.length)==u}function CY(s,u,f){var E=P.templateSettings;f&&Lr(s,u,f)&&(u=e),s=Wt(s),u=dm({},u,E,nA);var S=dm({},u.imports,E.imports,nA),L=ar(S),M=Mh(S,L),j,H,pe=0,me=u.interpolate||Sp,he="__p += '",Ae=qh((u.escape||Sp).source+"|"+me.source+"|"+(me===Sb?pj:Sp).source+"|"+(u.evaluate||Sp).source+"|$","g"),Ke="//# sourceURL="+(rn.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Kj+"]")+` `;s.replace(Ae,function(et,St,Pt,ui,Cr,ci){return Pt||(Pt=ui),he+=s.slice(pe,ci).replace(Ij,cK),St&&(j=!0,he+=`' + __e(`+St+`) + '`),Cr&&(H=!0,he+=`'; @@ -471,7 +471,7 @@ __p += '`),Pt&&(he+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+he+`return __p -}`;var Et=JA(function(){return Yt(L,Ke+"return "+he).apply(e,M)});if(Et.source=he,vy(Et))throw Et;return Et}function BY(s){return Wt(s).toLowerCase()}function UY(s){return Wt(s).toUpperCase()}function kY(s,u,f){if(s=Wt(s),s&&(f||u===e))return r0(s);if(!s||!(u=si(u)))return s;var E=zi(s),S=zi(u),L=i0(E,S),M=a0(E,S)+1;return zo(E,L,M).join("")}function MY(s,u,f){if(s=Wt(s),s&&(f||u===e))return s.slice(0,o0(s)+1);if(!s||!(u=si(u)))return s;var E=zi(s),S=a0(E,zi(u))+1;return zo(E,0,S).join("")}function xY(s,u,f){if(s=Wt(s),s&&(f||u===e))return s.replace(vh,"");if(!s||!(u=si(u)))return s;var E=zi(s),S=i0(E,zi(u));return zo(E,S).join("")}function qY(s,u){var f=tt,E=ee;if(vn(u)){var S="separator"in u?u.separator:S;f="length"in u?Nt(u.length):f,E="omission"in u?si(u.omission):E}s=Wt(s);var L=s.length;if(jc(s)){var M=zi(s);L=M.length}if(f>=L)return s;var j=f-Kc(E);if(j<1)return E;var H=M?zo(M,0,j).join(""):s.slice(0,j);if(S===e)return H+E;if(M&&(j+=H.length-j),Sy(S)){if(s.slice(j).search(S)){var pe,me=H;for(S.global||(S=qh(S.source,Wt(Ob.exec(S))+"g")),S.lastIndex=0;pe=S.exec(me);)var he=pe.index;H=H.slice(0,he===e?j:he)}}else if(s.indexOf(si(S),j)!=j){var Ae=H.lastIndexOf(S);Ae>-1&&(H=H.slice(0,Ae))}return H+E}function VY(s){return s=Wt(s),s&&X1.test(s)?s.replace(_b,TK):s}var jY=Hc(function(s,u,f){return s+(f?" ":"")+u.toUpperCase()}),by=H0("toUpperCase");function YA(s,u,f){return s=Wt(s),u=f?e:u,u===e?dK(s)?yK(s):nK(s):s.match(u)||[]}var JA=It(function(s,u){try{return ii(s,e,u)}catch(f){return vy(f)?f:new ut(f)}}),KY=us(function(s,u){return Ii(u,function(f){f=Oa(f),ss(s,f,gy(s[f],s))}),s});function GY(s){var u=s==null?0:s.length,f=We();return s=u?In(s,function(E){if(typeof E[1]!="function")throw new gi(i);return[f(E[0]),E[1]]}):[],It(function(E){for(var S=-1;++Smn)return[];var f=kn,E=Er(s,kn);u=We(u),s-=kn;for(var S=kh(E,u);++f0||u<0)?new Ot(f):(s<0?f=f.takeRight(-s):s&&(f=f.drop(s)),u!==e&&(u=Nt(u),f=u<0?f.dropRight(-u):f.take(u-s)),f)},Ot.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Ot.prototype.toArray=function(){return this.take(kn)},va(Ot.prototype,function(s,u){var f=/^(?:filter|find|map|reject)|While$/.test(u),E=/^(?:head|last)$/.test(u),S=P[E?"take"+(u=="last"?"Right":""):u],L=E||/^find/.test(u);S&&(P.prototype[u]=function(){var M=this.__wrapped__,j=E?[1]:arguments,H=M instanceof Ot,pe=j[0],me=H||dt(M),he=function(St){var Pt=S.apply(P,Ko([St],j));return E&&Ae?Pt[0]:Pt};me&&f&&typeof pe=="function"&&pe.length!=1&&(H=me=!1);var Ae=this.__chain__,Ke=!!this.__actions__.length,Ze=L&&!Ae,Et=H&&!Ke;if(!L&&me){M=Et?M:new Ot(this);var et=s.apply(M,j);return et.__actions__.push({func:im,args:[he],thisArg:e}),new _i(et,Ae)}return Ze&&Et?s.apply(this,j):(et=this.thru(he),Ze?E?et.value()[0]:et.value():et)})}),Ii(["pop","push","shift","sort","splice","unshift"],function(s){var u=Pp[s],f=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",E=/^(?:pop|shift)$/.test(s);P.prototype[s]=function(){var S=arguments;if(E&&!this.__chain__){var L=this.value();return u.apply(dt(L)?L:[],S)}return this[f](function(M){return u.apply(dt(M)?M:[],S)})}}),va(Ot.prototype,function(s,u){var f=P[u];if(f){var E=f.name+"";rn.call(Qc,E)||(Qc[E]=[]),Qc[E].push({name:u,func:f})}}),Qc[Wp(e,k).name]=[{name:"wrapper",func:e}],Ot.prototype.clone=VK,Ot.prototype.reverse=jK,Ot.prototype.value=KK,P.prototype.at=hQ,P.prototype.chain=yQ,P.prototype.commit=IQ,P.prototype.next=gQ,P.prototype.plant=vQ,P.prototype.reverse=SQ,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=OQ,P.prototype.first=P.prototype.head,fd&&(P.prototype[fd]=_Q),P},$o=IK();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(ir._=$o,define(function(){return $o})):Au?((Au.exports=$o)._=$o,Rh._=$o):ir._=$o}).call(Zl)});var vV=w(Pc=>{"use strict";m();T();N();Object.defineProperty(Pc,"__esModule",{value:!0});Pc.FederationFactory=void 0;Pc.federateSubgraphs=cde;Pc.federateSubgraphsWithContracts=lde;Pc.federateSubgraphsContract=dde;var Pe=De(),yV=du(),Mr=Hr(),Fe=xi(),Rc=VN(),IV=Yl(),xr=Hf(),GE=iE(),Bt=Ss(),ade=yD(),sde=zf(),gV=Df(),Ie=Sl(),ode=_D(),_V=hV(),ed=KE(),_e=vr(),$E=gl(),Ee=Sr(),ude=Wf(),QE=class{constructor({authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,disableResolvabilityValidation:r,entityDataByTypeName:i,entityInterfaceFederationDataByTypeName:a,fieldCoordsByNamedTypeName:o,internalGraph:c,internalSubgraphBySubgraphName:l,warnings:d}){_(this,"authorizationDataByParentTypeName");_(this,"coordsByNamedTypeName",new Map);_(this,"disableResolvabilityValidation",!1);_(this,"clientDefinitions",[Bt.DEPRECATED_DEFINITION]);_(this,"currentSubgraphName","");_(this,"concreteTypeNamesByAbstractTypeName");_(this,"subgraphNamesByNamedTypeNameByFieldCoords",new Map);_(this,"entityDataByTypeName");_(this,"entityInterfaceFederationDataByTypeName");_(this,"errors",[]);_(this,"fieldConfigurationByFieldCoords",new Map);_(this,"fieldCoordsByNamedTypeName");_(this,"inaccessibleCoords",new Set);_(this,"inaccessibleRequiredInputValueErrorByCoords",new Map);_(this,"internalGraph");_(this,"internalSubgraphBySubgraphName");_(this,"invalidORScopesCoords",new Set);_(this,"isMaxDepth",!1);_(this,"isVersionTwo",!1);_(this,"namedInputValueTypeNames",new Set);_(this,"namedOutputTypeNames",new Set);_(this,"parentDefinitionDataByTypeName",new Map);_(this,"parentTagDataByTypeName",new Map);_(this,"persistedDirectiveDefinitionByDirectiveName",new Map([[_e.AUTHENTICATED,Bt.AUTHENTICATED_DEFINITION],[_e.DEPRECATED,Bt.DEPRECATED_DEFINITION],[_e.INACCESSIBLE,Bt.INACCESSIBLE_DEFINITION],[_e.ONE_OF,Bt.ONE_OF_DEFINITION],[_e.REQUIRES_SCOPES,Bt.REQUIRES_SCOPES_DEFINITION],[_e.SEMANTIC_NON_NULL,Bt.SEMANTIC_NON_NULL_DEFINITION],[_e.TAG,Bt.TAG_DEFINITION]]));_(this,"persistedDirectiveDefinitions",new Set([_e.AUTHENTICATED,_e.DEPRECATED,_e.INACCESSIBLE,_e.TAG,_e.REQUIRES_SCOPES]));_(this,"potentialPersistedDirectiveDefinitionDataByDirectiveName",new Map);_(this,"referencedPersistedDirectiveNames",new Set);_(this,"routerDefinitions",[Bt.DEPRECATED_DEFINITION,Bt.TAG_DEFINITION]);_(this,"subscriptionFilterDataByFieldPath",new Map);_(this,"tagNamesByCoords",new Map);_(this,"warnings");this.authorizationDataByParentTypeName=t,this.concreteTypeNamesByAbstractTypeName=n,this.disableResolvabilityValidation=r!=null?r:!1,this.entityDataByTypeName=i,this.entityInterfaceFederationDataByTypeName=a,this.fieldCoordsByNamedTypeName=o,this.internalGraph=c,this.internalSubgraphBySubgraphName=l,this.warnings=d}getValidImplementedInterfaces(t){var o;let n=[];if(t.implementedInterfaceTypeNames.size<1)return n;let r=(0,Ie.isNodeDataInaccessible)(t),i=new Map,a=new Map;for(let c of t.implementedInterfaceTypeNames){n.push((0,Mr.stringToNamedTypeNode)(c));let l=(0,Ee.getOrThrowError)(this.parentDefinitionDataByTypeName,c,_e.PARENT_DEFINITION_DATA);if(l.kind!==Pe.Kind.INTERFACE_TYPE_DEFINITION){a.set(l.name,(0,Ee.kindToNodeType)(l.kind));continue}let d={invalidFieldImplementations:new Map,unimplementedFields:[]},p=!1;for(let[y,I]of l.fieldDataByName){let v=!1,F=t.fieldDataByName.get(y);if(!F){p=!0,d.unimplementedFields.push(y);continue}let k={invalidAdditionalArguments:new Set,invalidImplementedArguments:[],isInaccessible:!1,originalResponseType:(0,GE.printTypeNode)(I.node.type),unimplementedArguments:new Set};(0,Ie.isTypeValidImplementation)(I.node.type,F.node.type,this.concreteTypeNamesByAbstractTypeName)||(p=!0,v=!0,k.implementedResponseType=(0,GE.printTypeNode)(F.node.type));let K=new Set;for(let[J,se]of I.argumentDataByName){let ie=se.node;K.add(J);let Te=(o=F.argumentDataByName.get(J))==null?void 0:o.node;if(!Te){p=!0,v=!0,k.unimplementedArguments.add(J);continue}let de=(0,GE.printTypeNode)(Te.type),Re=(0,GE.printTypeNode)(ie.type);Re!==de&&(p=!0,v=!0,k.invalidImplementedArguments.push({actualType:de,argumentName:J,expectedType:Re}))}for(let[J,se]of F.argumentDataByName){let ie=se.node;K.has(J)||ie.type.kind===Pe.Kind.NON_NULL_TYPE&&(p=!0,v=!0,k.invalidAdditionalArguments.add(J))}!r&&F.isInaccessible&&!I.isInaccessible&&(p=!0,v=!0,k.isInaccessible=!0),v&&d.invalidFieldImplementations.set(y,k)}p&&i.set(c,d)}return a.size>0&&this.errors.push((0,Fe.invalidImplementedTypeError)(t.name,a)),i.size>0&&this.errors.push((0,Fe.invalidInterfaceImplementationError)(t.node.name.value,(0,Ee.kindToNodeType)(t.kind),i)),n}addValidPrimaryKeyTargetsToEntityData(t){var p;let n=this.entityDataByTypeName.get(t);if(!n)return;let r=(0,Ee.getOrThrowError)(this.internalSubgraphBySubgraphName,this.currentSubgraphName,"internalSubgraphBySubgraphName"),i=r.parentDefinitionDataByTypeName,a=i.get(n.typeName);if(!a||a.kind!==Pe.Kind.OBJECT_TYPE_DEFINITION)throw(0,Fe.incompatibleParentKindFatalError)(n.typeName,Pe.Kind.OBJECT_TYPE_DEFINITION,(a==null?void 0:a.kind)||Pe.Kind.NULL);let o=r.configurationDataByTypeName.get(n.typeName);if(!o)return;let c=[],l=this.internalGraph.nodeByNodeName.get(`${this.currentSubgraphName}.${n.typeName}`);(0,Rc.validateImplicitFieldSets)({conditionalFieldDataByCoords:r.conditionalFieldDataByCoordinates,currentSubgraphName:this.currentSubgraphName,entityData:n,implicitKeys:c,objectData:a,parentDefinitionDataByTypeName:i,graphNode:l});for(let[y,I]of this.entityInterfaceFederationDataByTypeName){if(!((p=I.concreteTypeNames)!=null&&p.has(n.typeName)))continue;let v=this.entityDataByTypeName.get(y);v&&(0,Rc.validateImplicitFieldSets)({conditionalFieldDataByCoords:r.conditionalFieldDataByCoordinates,currentSubgraphName:this.currentSubgraphName,entityData:v,implicitKeys:c,objectData:a,parentDefinitionDataByTypeName:i,graphNode:l})}if(c.length<1)return;if(!o.keys||o.keys.length<1){o.isRootNode=!0,o.keys=c;return}let d=new Set(o.keys.map(y=>y.selectionSet));for(let y of c)d.has(y.selectionSet)||(o.keys.push(y),d.add(y.selectionSet))}addValidPrimaryKeyTargetsFromInterfaceObject(t,n,r,i){let a=t.parentDefinitionDataByTypeName,o=a.get(n);if(!o||!(0,Ie.isParentDataCompositeOutputType)(o))throw(0,Fe.incompatibleParentKindFatalError)(n,Pe.Kind.INTERFACE_TYPE_DEFINITION,(o==null?void 0:o.kind)||Pe.Kind.NULL);let c=(0,Ee.getOrThrowError)(t.configurationDataByTypeName,r.typeName,"internalSubgraph.configurationDataByTypeName"),l=[];if((0,Rc.validateImplicitFieldSets)({conditionalFieldDataByCoords:t.conditionalFieldDataByCoordinates,currentSubgraphName:t.name,entityData:r,implicitKeys:l,objectData:o,parentDefinitionDataByTypeName:a,graphNode:i}),l.length<1)return;if(!c.keys||c.keys.length<1){c.isRootNode=!0,c.keys=l;return}let d=new Set(c.keys.map(p=>p.selectionSet));for(let p of l)d.has(p.selectionSet)||(c.keys.push(p),d.add(p.selectionSet))}getEnumValueMergeMethod(t){return this.namedInputValueTypeNames.has(t)?this.namedOutputTypeNames.has(t)?Ie.MergeMethod.CONSISTENT:Ie.MergeMethod.INTERSECTION:Ie.MergeMethod.UNION}generateTagData(){for(let[t,n]of this.tagNamesByCoords){let r=t.split(_e.PERIOD);if(r.length<1)continue;let i=(0,Ee.getValueOrDefault)(this.parentTagDataByTypeName,r[0],()=>(0,Rc.newParentTagData)(r[0]));switch(r.length){case 1:for(let l of n)i.tagNames.add(l);break;case 2:let a=(0,Ee.getValueOrDefault)(i.childTagDataByChildName,r[1],()=>(0,Rc.newChildTagData)(r[1]));for(let l of n)a.tagNames.add(l);break;case 3:let o=(0,Ee.getValueOrDefault)(i.childTagDataByChildName,r[1],()=>(0,Rc.newChildTagData)(r[1])),c=(0,Ee.getValueOrDefault)(o.tagNamesByArgumentName,r[2],()=>new Set);for(let l of n)c.add(l);break;default:break}}}upsertEnumValueData(t,n,r){let i=t.get(n.name),a=i||this.copyEnumValueData(n);(0,Ie.extractPersistedDirectives)(a.persistedDirectivesData,n.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName);let o=(0,Ie.isNodeDataInaccessible)(n);if((r||o)&&this.inaccessibleCoords.add(a.federatedCoords),this.recordTagNamesByCoords(a,a.federatedCoords),!i){t.set(a.name,a);return}a.appearances+=1,(0,Ee.addNewObjectValueMapEntries)(n.configureDescriptionDataBySubgraphName,a.configureDescriptionDataBySubgraphName),(0,Ie.setLongestDescription)(a,n),(0,Ee.addIterableValuesToSet)(n.subgraphNames,a.subgraphNames)}upsertInputValueData(t,n,r,i){let a=t.get(n.name),o=a||this.copyInputValueData(n);if((0,Ie.extractPersistedDirectives)(o.persistedDirectivesData,n.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),this.recordTagNamesByCoords(o,`${r}.${o.name}`),this.namedInputValueTypeNames.add(o.namedTypeName),(0,Ee.getValueOrDefault)(this.coordsByNamedTypeName,o.namedTypeName,()=>new Set).add(o.federatedCoords),!a){t.set(o.name,o);return}(0,Ee.addNewObjectValueMapEntries)(n.configureDescriptionDataBySubgraphName,o.configureDescriptionDataBySubgraphName),(0,Ie.setLongestDescription)(o,n),(0,Ee.addIterableValuesToSet)(n.requiredSubgraphNames,o.requiredSubgraphNames),(0,Ee.addIterableValuesToSet)(n.subgraphNames,o.subgraphNames),this.handleInputValueInaccessibility(i,o,r);let c=(0,ed.getMostRestrictiveMergedTypeNode)(o.type,n.type,o.originalCoords,this.errors);c.success?o.type=c.typeNode:this.errors.push((0,Fe.incompatibleMergedTypesError)({actualType:c.actualType,isArgument:a.isArgument,coords:a.federatedCoords,expectedType:c.expectedType})),(0,Ie.compareAndValidateInputValueDefaultValues)(o,n,this.errors)}handleInputValueInaccessibility(t,n,r){if(t){this.inaccessibleRequiredInputValueErrorByCoords.delete(n.federatedCoords),this.inaccessibleCoords.add(n.federatedCoords);return}if((0,Ie.isNodeDataInaccessible)(n)){if((0,Ie.isTypeRequired)(n.type)){this.inaccessibleRequiredInputValueErrorByCoords.set(n.federatedCoords,(0,Fe.inaccessibleRequiredInputValueError)(n,r));return}this.inaccessibleCoords.add(n.federatedCoords)}}handleSubscriptionFilterDirective(t,n){let r=t.directivesByDirectiveName.get(_e.SUBSCRIPTION_FILTER);if(!r)return;let i=(0,Ee.getFirstEntry)(t.subgraphNames);if(i===void 0){this.errors.push((0,Fe.unknownFieldSubgraphNameError)(t.federatedCoords));return}this.subscriptionFilterDataByFieldPath.set(t.federatedCoords,{directive:r[0],fieldData:n||t,directiveSubgraphName:i})}federateOutputType({current:t,other:n,coords:r,mostRestrictive:i}){n=(0,yV.getMutableTypeNode)(n,r,this.errors);let a={kind:t.kind},o=ed.DivergentType.NONE,c=a;for(let l=0;l<$E.MAXIMUM_TYPE_NESTING;l++){if(t.kind===n.kind)switch(t.kind){case Pe.Kind.NAMED_TYPE:return c.kind=t.kind,c.name=t.name,{success:!0,typeNode:a};case Pe.Kind.LIST_TYPE:c.kind=t.kind,c.type={kind:t.type.kind},c=c.type,t=t.type,n=n.type;continue;case Pe.Kind.NON_NULL_TYPE:c.kind=t.kind,c.type={kind:t.type.kind},c=c.type,t=t.type,n=n.type;continue}if(t.kind===Pe.Kind.NON_NULL_TYPE){if(o===ed.DivergentType.OTHER)return this.errors.push((0,Fe.incompatibleMergedTypesError)({actualType:n.kind,coords:r,expectedType:t.kind})),{success:!1};o=ed.DivergentType.CURRENT,i&&(c.kind=t.kind,c.type={kind:t.type.kind},c=c.type),t=t.type;continue}if(n.kind===Pe.Kind.NON_NULL_TYPE){if(o===ed.DivergentType.CURRENT)return this.errors.push((0,Fe.incompatibleMergedTypesError)({actualType:n.kind,coords:r,expectedType:t.kind})),{success:!1};o=ed.DivergentType.OTHER,i&&(c.kind=n.kind,c.type={kind:n.type.kind},c=c.type),n=n.type;continue}return this.errors.push((0,Fe.incompatibleMergedTypesError)({actualType:n.kind,coords:r,expectedType:t.kind})),{success:!1}}return this.errors.push((0,Fe.maximumTypeNestingExceededError)(r)),{success:!1}}addSubgraphNameToExistingFieldNamedTypeDisparity(t){let n=this.subgraphNamesByNamedTypeNameByFieldCoords.get(t.federatedCoords);n&&(0,Ee.addIterableValuesToSet)(t.subgraphNames,(0,Ee.getValueOrDefault)(n,t.namedTypeName,()=>new Set))}upsertFieldData(t,n,r){n.directivesByDirectiveName.has(_e.SEMANTIC_NON_NULL)&&this.referencedPersistedDirectiveNames.add(_e.SEMANTIC_NON_NULL);let i=t.get(n.name),a=i||this.copyFieldData(n,r||(0,Ie.isNodeDataInaccessible)(n));(0,Ee.getValueOrDefault)(this.coordsByNamedTypeName,n.namedTypeName,()=>new Set).add(a.federatedCoords),this.namedOutputTypeNames.add(n.namedTypeName),this.handleSubscriptionFilterDirective(n,a),(0,Ie.extractPersistedDirectives)(a.persistedDirectivesData,n.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName);let o=r||(0,Ie.isNodeDataInaccessible)(a);if(o&&this.inaccessibleCoords.add(a.federatedCoords),this.recordTagNamesByCoords(a,a.federatedCoords),!i){t.set(a.name,a);return}let c=this.federateOutputType({current:a.type,other:n.type,coords:a.federatedCoords,mostRestrictive:!1});if(c.success)if(a.type=c.typeNode,a.namedTypeName!==n.namedTypeName){let l=(0,Ee.getValueOrDefault)(this.subgraphNamesByNamedTypeNameByFieldCoords,a.federatedCoords,()=>new Map),d=(0,Ee.getValueOrDefault)(l,a.namedTypeName,()=>new Set);if(d.size<1)for(let p of a.subgraphNames)n.subgraphNames.has(p)||d.add(p);(0,Ee.addIterableValuesToSet)(n.subgraphNames,(0,Ee.getValueOrDefault)(l,n.namedTypeName,()=>new Set))}else this.addSubgraphNameToExistingFieldNamedTypeDisparity(n);for(let l of n.argumentDataByName.values())this.upsertInputValueData(a.argumentDataByName,l,a.federatedCoords,o);(0,Ee.addNewObjectValueMapEntries)(n.configureDescriptionDataBySubgraphName,i.configureDescriptionDataBySubgraphName),(0,Ie.setLongestDescription)(a,n),a.isInaccessible||(a.isInaccessible=n.isInaccessible),(0,Ee.addNewObjectValueMapEntries)(n.externalFieldDataBySubgraphName,a.externalFieldDataBySubgraphName),(0,Ee.addMapEntries)(n.isShareableBySubgraphName,a.isShareableBySubgraphName),(0,Ee.addMapEntries)(n.nullLevelsBySubgraphName,a.nullLevelsBySubgraphName),(0,Ee.addIterableValuesToSet)(n.subgraphNames,a.subgraphNames)}getClientSchemaUnionMembers(t){let n=[];for(let[r,i]of t.memberByMemberTypeName)this.inaccessibleCoords.has(r)||n.push(i);return n}recordTagNamesByCoords(t,n){let r=n||t.name;if(t.persistedDirectivesData.tagDirectiveByName.size<1)return;let i=(0,Ee.getValueOrDefault)(this.tagNamesByCoords,r,()=>new Set);for(let a of t.persistedDirectivesData.tagDirectiveByName.keys())i.add(a)}copyMutualParentDefinitionData(t){return{configureDescriptionDataBySubgraphName:(0,Ee.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByDirectiveName:(0,Ee.copyArrayValueMap)(t.directivesByDirectiveName),extensionType:t.extensionType,name:t.name,persistedDirectivesData:(0,Ie.extractPersistedDirectives)((0,Ie.newPersistedDirectivesData)(),t.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),description:(0,Ie.getInitialFederatedDescription)(t)}}copyEnumValueData(t){return{appearances:t.appearances,configureDescriptionDataBySubgraphName:(0,Ee.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),federatedCoords:t.federatedCoords,directivesByDirectiveName:(0,Ee.copyArrayValueMap)(t.directivesByDirectiveName),kind:t.kind,name:t.name,node:{directives:[],kind:t.kind,name:(0,Mr.stringToNameNode)(t.name)},parentTypeName:t.parentTypeName,persistedDirectivesData:(0,Ie.extractPersistedDirectives)((0,Ie.newPersistedDirectivesData)(),t.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),subgraphNames:new Set(t.subgraphNames),description:(0,Ie.getInitialFederatedDescription)(t)}}copyInputValueData(t){return{configureDescriptionDataBySubgraphName:(0,Ee.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByDirectiveName:(0,Ee.copyArrayValueMap)(t.directivesByDirectiveName),federatedCoords:t.federatedCoords,fieldName:t.fieldName,includeDefaultValue:t.includeDefaultValue,isArgument:t.isArgument,kind:t.kind,name:t.name,namedTypeKind:t.namedTypeKind,namedTypeName:t.namedTypeName,node:{directives:[],kind:Pe.Kind.INPUT_VALUE_DEFINITION,name:(0,Mr.stringToNameNode)(t.name),type:t.type},originalCoords:t.originalCoords,originalParentTypeName:t.originalParentTypeName,persistedDirectivesData:(0,Ie.extractPersistedDirectives)((0,Ie.newPersistedDirectivesData)(),t.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),renamedParentTypeName:t.renamedParentTypeName,requiredSubgraphNames:new Set(t.requiredSubgraphNames),subgraphNames:new Set(t.subgraphNames),type:t.type,defaultValue:t.defaultValue,description:(0,Ie.getInitialFederatedDescription)(t)}}copyInputValueDataByValueName(t,n,r){let i=new Map;for(let[a,o]of t){let c=this.copyInputValueData(o);this.handleInputValueInaccessibility(n,c,r),(0,Ee.getValueOrDefault)(this.coordsByNamedTypeName,c.namedTypeName,()=>new Set).add(c.federatedCoords),this.namedInputValueTypeNames.add(c.namedTypeName),this.recordTagNamesByCoords(c,`${r}.${o.name}`),i.set(a,c)}return i}copyFieldData(t,n){return t.directivesByDirectiveName.has(_e.SEMANTIC_NON_NULL)&&this.referencedPersistedDirectiveNames.add(_e.SEMANTIC_NON_NULL),{argumentDataByName:this.copyInputValueDataByValueName(t.argumentDataByName,n,t.federatedCoords),configureDescriptionDataBySubgraphName:(0,Ee.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByDirectiveName:(0,Ee.copyArrayValueMap)(t.directivesByDirectiveName),externalFieldDataBySubgraphName:(0,Ee.copyObjectValueMap)(t.externalFieldDataBySubgraphName),federatedCoords:t.federatedCoords,inheritedDirectiveNames:new Set,isInaccessible:t.isInaccessible,isShareableBySubgraphName:new Map(t.isShareableBySubgraphName),kind:t.kind,name:t.name,namedTypeKind:t.namedTypeKind,namedTypeName:t.namedTypeName,node:{arguments:[],directives:[],kind:t.kind,name:(0,Mr.stringToNameNode)(t.name),type:t.type},nullLevelsBySubgraphName:t.nullLevelsBySubgraphName,originalParentTypeName:t.originalParentTypeName,persistedDirectivesData:(0,Ie.extractPersistedDirectives)((0,Ie.newPersistedDirectivesData)(),t.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),renamedParentTypeName:t.renamedParentTypeName,subgraphNames:new Set(t.subgraphNames),type:t.type,description:(0,Ie.getInitialFederatedDescription)(t)}}copyEnumValueDataByName(t,n){let r=new Map;for(let[i,a]of t){let o=this.copyEnumValueData(a);this.recordTagNamesByCoords(o,o.federatedCoords),(n||(0,Ie.isNodeDataInaccessible)(o))&&this.inaccessibleCoords.add(o.federatedCoords),r.set(i,o)}return r}copyFieldDataByName(t,n){let r=new Map;for(let[i,a]of t){let o=n||(0,Ie.isNodeDataInaccessible)(a),c=this.copyFieldData(a,o);this.handleSubscriptionFilterDirective(c),(0,Ee.getValueOrDefault)(this.coordsByNamedTypeName,c.namedTypeName,()=>new Set).add(c.federatedCoords),this.namedOutputTypeNames.add(c.namedTypeName),this.recordTagNamesByCoords(c,c.federatedCoords),o&&this.inaccessibleCoords.add(c.federatedCoords),r.set(i,c)}return r}copyParentDefinitionData(t){let n=this.copyMutualParentDefinitionData(t);switch(t.kind){case Pe.Kind.ENUM_TYPE_DEFINITION:return Q(x({},n),{appearances:t.appearances,enumValueDataByName:this.copyEnumValueDataByName(t.enumValueDataByName,t.isInaccessible),isInaccessible:t.isInaccessible,kind:t.kind,node:{kind:t.kind,name:(0,Mr.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case Pe.Kind.INPUT_OBJECT_TYPE_DEFINITION:return Q(x({},n),{inputValueDataByName:this.copyInputValueDataByValueName(t.inputValueDataByName,t.isInaccessible,t.name),isInaccessible:t.isInaccessible,kind:t.kind,node:{kind:t.kind,name:(0,Mr.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case Pe.Kind.INTERFACE_TYPE_DEFINITION:return Q(x({},n),{fieldDataByName:this.copyFieldDataByName(t.fieldDataByName,t.isInaccessible),implementedInterfaceTypeNames:new Set(t.implementedInterfaceTypeNames),isEntity:t.isEntity,isInaccessible:t.isInaccessible,kind:t.kind,node:{kind:t.kind,name:(0,Mr.stringToNameNode)(t.name)},requireFetchReasonsFieldNames:new Set,subgraphNames:new Set(t.subgraphNames)});case Pe.Kind.OBJECT_TYPE_DEFINITION:return Q(x({},n),{fieldDataByName:this.copyFieldDataByName(t.fieldDataByName,t.isInaccessible),implementedInterfaceTypeNames:new Set(t.implementedInterfaceTypeNames),isEntity:t.isEntity,isInaccessible:t.isInaccessible,isRootType:t.isRootType,kind:t.kind,node:{kind:t.kind,name:(0,Mr.stringToNameNode)(t.renamedTypeName||t.name)},requireFetchReasonsFieldNames:new Set,renamedTypeName:t.renamedTypeName,subgraphNames:new Set(t.subgraphNames)});case Pe.Kind.SCALAR_TYPE_DEFINITION:return Q(x({},n),{kind:t.kind,node:{kind:t.kind,name:(0,Mr.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case Pe.Kind.UNION_TYPE_DEFINITION:return Q(x({},n),{kind:t.kind,node:{kind:t.kind,name:(0,Mr.stringToNameNode)(t.name)},memberByMemberTypeName:new Map(t.memberByMemberTypeName),subgraphNames:new Set(t.subgraphNames)})}}getParentTargetData({existingData:t,incomingData:n}){if(!t){let r=this.copyParentDefinitionData(n);return(0,Ie.isParentDataRootType)(r)&&(r.extensionType=gV.ExtensionType.NONE),r}return(0,Ie.extractPersistedDirectives)(t.persistedDirectivesData,n.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),t}upsertParentDefinitionData(t,n){let r=this.entityInterfaceFederationDataByTypeName.get(t.name),i=this.parentDefinitionDataByTypeName.get(t.name),a=this.getParentTargetData({existingData:i,incomingData:t});this.recordTagNamesByCoords(a);let o=(0,Ie.isNodeDataInaccessible)(a);if(o&&this.inaccessibleCoords.add(a.name),r&&r.interfaceObjectSubgraphNames.has(n)){if(i&&i.kind!==Pe.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,Fe.incompatibleParentTypeMergeError)({existingData:i,incomingSubgraphName:n}));return}a.kind=Pe.Kind.INTERFACE_TYPE_DEFINITION,a.node.kind=Pe.Kind.INTERFACE_TYPE_DEFINITION}if(!i){this.parentDefinitionDataByTypeName.set(a.name,a);return}if(a.kind!==t.kind&&(!r||!r.interfaceObjectSubgraphNames.has(n)||a.kind!==Pe.Kind.INTERFACE_TYPE_DEFINITION||t.kind!==Pe.Kind.OBJECT_TYPE_DEFINITION)){this.errors.push((0,Fe.incompatibleParentTypeMergeError)({existingData:a,incomingNodeType:(0,Ee.kindToNodeType)(t.kind),incomingSubgraphName:n}));return}switch((0,Ee.addNewObjectValueMapEntries)(t.configureDescriptionDataBySubgraphName,a.configureDescriptionDataBySubgraphName),(0,Ie.setLongestDescription)(a,t),(0,Ie.setParentDataExtensionType)(a,t),a.kind){case Pe.Kind.ENUM_TYPE_DEFINITION:if(!(0,Ie.areKindsEqual)(a,t))return;a.appearances+=1,a.isInaccessible||(a.isInaccessible=o),(0,Ee.addIterableValuesToSet)(t.subgraphNames,a.subgraphNames);for(let l of t.enumValueDataByName.values())this.upsertEnumValueData(a.enumValueDataByName,l,o);return;case Pe.Kind.INPUT_OBJECT_TYPE_DEFINITION:if(!(0,Ie.areKindsEqual)(a,t))return;o&&!a.isInaccessible&&this.propagateInaccessibilityToExistingChildren(a),a.isInaccessible||(a.isInaccessible=o),(0,Ee.addIterableValuesToSet)(t.subgraphNames,a.subgraphNames);for(let l of t.inputValueDataByName.values())this.upsertInputValueData(a.inputValueDataByName,l,a.name,a.isInaccessible);return;case Pe.Kind.INTERFACE_TYPE_DEFINITION:case Pe.Kind.OBJECT_TYPE_DEFINITION:let c=t;o&&!a.isInaccessible&&this.propagateInaccessibilityToExistingChildren(a),a.isInaccessible||(a.isInaccessible=o),(0,Ee.addIterableValuesToSet)(c.implementedInterfaceTypeNames,a.implementedInterfaceTypeNames),(0,Ee.addIterableValuesToSet)(c.subgraphNames,a.subgraphNames);for(let l of c.fieldDataByName.values())this.upsertFieldData(a.fieldDataByName,l,a.isInaccessible);return;case Pe.Kind.UNION_TYPE_DEFINITION:if(!(0,Ie.areKindsEqual)(a,t))return;(0,Ee.addMapEntries)(t.memberByMemberTypeName,a.memberByMemberTypeName),(0,Ee.addIterableValuesToSet)(t.subgraphNames,a.subgraphNames);return;default:(0,Ee.addIterableValuesToSet)(t.subgraphNames,a.subgraphNames);return}}propagateInaccessibilityToExistingChildren(t){switch(t.kind){case Pe.Kind.INPUT_OBJECT_TYPE_DEFINITION:for(let n of t.inputValueDataByName.values())this.inaccessibleCoords.add(n.federatedCoords);break;default:for(let n of t.fieldDataByName.values()){this.inaccessibleCoords.add(n.federatedCoords);for(let r of n.argumentDataByName.values())this.inaccessibleCoords.add(r.federatedCoords)}}}upsertPersistedDirectiveDefinitionData(t,n){let r=t.name,i=this.potentialPersistedDirectiveDefinitionDataByDirectiveName.get(r);if(!i){if(n>1)return;let a=new Map;for(let o of t.argumentDataByName.values())this.namedInputValueTypeNames.add(o.namedTypeName),this.upsertInputValueData(a,o,`@${t.name}`,!1);this.potentialPersistedDirectiveDefinitionDataByDirectiveName.set(r,{argumentDataByName:a,executableLocations:new Set(t.executableLocations),name:r,repeatable:t.repeatable,subgraphNames:new Set(t.subgraphNames),description:t.description});return}if(i.subgraphNames.size+1!==n){this.potentialPersistedDirectiveDefinitionDataByDirectiveName.delete(r);return}if((0,Ie.setMutualExecutableLocations)(i,t.executableLocations),i.executableLocations.size<1){this.potentialPersistedDirectiveDefinitionDataByDirectiveName.delete(r);return}for(let a of t.argumentDataByName.values())this.namedInputValueTypeNames.add((0,yV.getTypeNodeNamedTypeName)(a.type)),this.upsertInputValueData(i.argumentDataByName,a,`@${i.name}`,!1);(0,Ie.setLongestDescription)(i,t),i.repeatable&&(i.repeatable=t.repeatable),(0,Ee.addIterableValuesToSet)(t.subgraphNames,i.subgraphNames)}shouldUpdateFederatedFieldAbstractNamedType(t,n){if(!t)return!1;let r=this.concreteTypeNamesByAbstractTypeName.get(t);if(!r||r.size<1)return!1;for(let i of n)if(!r.has(i))return!1;return!0}updateTypeNodeNamedType(t,n){let r=t;for(let i=0;i<$E.MAXIMUM_TYPE_NESTING;i++){if(r.kind===Pe.Kind.NAMED_TYPE){r.name=(0,Mr.stringToNameNode)(n);return}r=r.type}}handleDisparateFieldNamedTypes(){for(let[t,n]of this.subgraphNamesByNamedTypeNameByFieldCoords){let r=t.split(_e.PERIOD);if(r.length!==2)continue;let i=this.parentDefinitionDataByTypeName.get(r[0]);if(!i){this.errors.push((0,Fe.undefinedTypeError)(r[0]));continue}if(i.kind!==Pe.Kind.INTERFACE_TYPE_DEFINITION&&i.kind!==Pe.Kind.OBJECT_TYPE_DEFINITION){this.errors.push((0,Fe.unexpectedNonCompositeOutputTypeError)(r[0],(0,Ee.kindToNodeType)(i.kind)));continue}let a=i.fieldDataByName.get(r[1]);if(!a){this.errors.push((0,Fe.unknownFieldDataError)(t));continue}let o=new Map,c=new Set,l="";for(let p of n.keys()){if(Bt.BASE_SCALARS.has(p)){this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));break}let y=this.parentDefinitionDataByTypeName.get(p);if(!y){this.errors.push((0,Fe.unknownNamedTypeError)(t,p));break}switch(y.kind){case Pe.Kind.INTERFACE_TYPE_DEFINITION:{o.set(y.name,y);break}case Pe.Kind.OBJECT_TYPE_DEFINITION:{if(c.add(y.name),c.size>1){this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}break}case Pe.Kind.UNION_TYPE_DEFINITION:{if(l){this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}l=p;break}default:{this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));break}}}if(o.size<1&&!l){this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}let d=l;if(o.size>0){if(l){this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}for(let p of o.keys()){d=p;for(let[y,I]of o)if(p!==y&&!I.implementedInterfaceTypeNames.has(p)){d="";break}if(d)break}}if(!this.shouldUpdateFederatedFieldAbstractNamedType(d,c)){this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}a.namedTypeName=d,this.updateTypeNodeNamedType(a.type,d)}}federateInternalSubgraphData(){let t=0,n=!1;for(let r of this.internalSubgraphBySubgraphName.values()){t+=1,this.currentSubgraphName=r.name,this.isVersionTwo||(this.isVersionTwo=r.isVersionTwo),(0,ode.renameRootTypes)(this,r);for(let i of r.parentDefinitionDataByTypeName.values())this.upsertParentDefinitionData(i,r.name);if(!n){if(!r.persistedDirectiveDefinitionDataByDirectiveName.size){n=!0;continue}for(let i of r.persistedDirectiveDefinitionDataByDirectiveName.values())this.upsertPersistedDirectiveDefinitionData(i,t);this.potentialPersistedDirectiveDefinitionDataByDirectiveName.size<1&&(n=!0)}}this.handleDisparateFieldNamedTypes()}handleInterfaceObjectForInternalGraph({entityData:t,internalSubgraph:n,interfaceObjectData:r,interfaceObjectNode:i,resolvableKeyFieldSets:a,subgraphName:o}){let c=this.internalGraph.addOrUpdateNode(t.typeName),l=this.internalGraph.addEntityDataNode(t.typeName);for(let p of i.satisfiedFieldSets)c.satisfiedFieldSets.add(p),a.has(p)&&l.addTargetSubgraphByFieldSet(p,o);let d=r.fieldDatasBySubgraphName.get(o);for(let{name:p,namedTypeName:y}of d||[])this.internalGraph.addEdge(c,this.internalGraph.addOrUpdateNode(y),p);this.internalGraph.addEdge(i,c,t.typeName,!0),this.addValidPrimaryKeyTargetsFromInterfaceObject(n,i.typeName,t,c)}handleEntityInterfaces(){var t;for(let[n,r]of this.entityInterfaceFederationDataByTypeName){let i=(0,Ee.getOrThrowError)(this.parentDefinitionDataByTypeName,n,_e.PARENT_DEFINITION_DATA);if(i.kind===Pe.Kind.INTERFACE_TYPE_DEFINITION)for(let a of r.interfaceObjectSubgraphNames){let o=(0,Ee.getOrThrowError)(this.internalSubgraphBySubgraphName,a,"internalSubgraphBySubgraphName"),c=o.configurationDataByTypeName,l=this.concreteTypeNamesByAbstractTypeName.get(n);if(!l)continue;let d=(0,Ee.getOrThrowError)(c,n,"configurationDataByTypeName"),p=d.keys;if(!p)continue;d.entityInterfaceConcreteTypeNames=new Set(r.concreteTypeNames),this.internalGraph.setSubgraphName(a);let y=this.internalGraph.addOrUpdateNode(n,{isAbstract:!0});for(let I of l){let v=(0,Ee.getOrThrowError)(this.parentDefinitionDataByTypeName,I,_e.PARENT_DEFINITION_DATA);if(!(0,xr.isObjectDefinitionData)(v))continue;let F=(0,Ee.getOrThrowError)(this.entityDataByTypeName,I,"entityDataByTypeName");F.subgraphNames.add(a);let k=c.get(I);if(k)if((0,Ee.addIterableValuesToSet)(d.fieldNames,k.fieldNames),!k.keys)k.keys=[...p];else e:for(let ie of p){for(let{selectionSet:Te}of k.keys)if(ie.selectionSet===Te)continue e;k.keys.push(ie)}else c.set(I,{fieldNames:new Set(d.fieldNames),isRootNode:!0,keys:[...p],typeName:I});let K=new Set;for(let ie of p.filter(Te=>!Te.disableEntityResolver))K.add(ie.selectionSet);let J=this.authorizationDataByParentTypeName.get(n),se=(0,Ee.getOrThrowError)(o.parentDefinitionDataByTypeName,n,"internalSubgraph.parentDefinitionDataByTypeName");if((0,xr.isObjectDefinitionData)(se)){for(let[ie,Te]of se.fieldDataByName){let de=`${I}.${ie}`;(0,Ee.getValueOrDefault)(this.fieldCoordsByNamedTypeName,Te.namedTypeName,()=>new Set).add(de);let Re=J==null?void 0:J.fieldAuthDataByFieldName.get(ie);if(Re){let ee=(0,Ee.getValueOrDefault)(this.authorizationDataByParentTypeName,I,()=>(0,xr.newAuthorizationData)(I));(0,xr.upsertFieldAuthorizationData)(ee.fieldAuthDataByFieldName,Re)||this.invalidORScopesCoords.add(de)}let xe=v.fieldDataByName.get(ie);if(xe){let ee=(t=Te.isShareableBySubgraphName.get(a))!=null?t:!1;xe.isShareableBySubgraphName.set(a,ee),xe.subgraphNames.add(a);let Se=Te.externalFieldDataBySubgraphName.get(a);if(!Se)continue;xe.externalFieldDataBySubgraphName.set(a,x({},Se));continue}let tt=i.isInaccessible||v.isInaccessible||Te.isInaccessible;v.fieldDataByName.set(ie,this.copyFieldData(Te,tt))}this.handleInterfaceObjectForInternalGraph({internalSubgraph:o,subgraphName:a,interfaceObjectData:r,interfaceObjectNode:y,resolvableKeyFieldSets:K,entityData:F})}}}}}fieldDataToGraphFieldData(t){var n;return{name:t.name,namedTypeName:t.namedTypeName,isLeaf:(0,xr.isNodeLeaf)((n=this.parentDefinitionDataByTypeName.get(t.namedTypeName))==null?void 0:n.kind),subgraphNames:t.subgraphNames}}getValidFlattenedPersistedDirectiveNodeArray(t){var i;let n=(0,xr.getNodeCoords)(t),r=[];for(let[a,o]of t.persistedDirectivesData.directivesByDirectiveName){if(a===_e.SEMANTIC_NON_NULL&&(0,Ie.isFieldData)(t)){r.push((0,Ee.generateSemanticNonNullDirective)((i=(0,Ee.getFirstEntry)(t.nullLevelsBySubgraphName))!=null?i:new Set([0])));continue}let c=this.persistedDirectiveDefinitionByDirectiveName.get(a);if(c){if(o.length<2){r.push(...o);continue}if(!c.repeatable){this.errors.push((0,Fe.invalidRepeatedFederatedDirectiveErrorMessage)(a,n));continue}r.push(...o)}}return r}getRouterPersistedDirectiveNodes(t){let n=[...t.persistedDirectivesData.tagDirectiveByName.values()];return t.persistedDirectivesData.isDeprecated&&n.push((0,Ie.generateDeprecatedDirective)(t.persistedDirectivesData.deprecatedReason)),n.push(...this.getValidFlattenedPersistedDirectiveNodeArray(t)),n}getFederatedGraphNodeDescription(t){if(t.configureDescriptionDataBySubgraphName.size<1)return t.description;let n=[],r="";for(let[i,{propagate:a,description:o}]of t.configureDescriptionDataBySubgraphName)a&&(n.push(i),r=o);if(n.length===1)return(0,Rc.getDescriptionFromString)(r);if(n.length<1)return t.description;this.errors.push((0,Fe.configureDescriptionPropagationError)((0,Ie.getDefinitionDataCoords)(t,!0),n))}getNodeForRouterSchemaByData(t){return t.node.name=(0,Mr.stringToNameNode)(t.name),t.node.description=this.getFederatedGraphNodeDescription(t),t.node.directives=this.getRouterPersistedDirectiveNodes(t),t.node}getNodeWithPersistedDirectivesByInputValueData(t){return t.node.name=(0,Mr.stringToNameNode)(t.name),t.node.type=t.type,t.node.description=this.getFederatedGraphNodeDescription(t),t.node.directives=this.getRouterPersistedDirectiveNodes(t),t.includeDefaultValue&&(t.node.defaultValue=t.defaultValue),t.node}getValidFieldArgumentNodes(t){let n=[],r=[],i=[],a=`${t.renamedParentTypeName}.${t.name}`;for(let[o,c]of t.argumentDataByName)t.subgraphNames.size===c.subgraphNames.size?(r.push(o),n.push(this.getNodeWithPersistedDirectivesByInputValueData(c))):(0,Ie.isTypeRequired)(c.type)&&i.push({inputValueName:o,missingSubgraphs:(0,Ee.getEntriesNotInHashSet)(t.subgraphNames,c.subgraphNames),requiredSubgraphs:[...c.requiredSubgraphNames]});return i.length>0?this.errors.push((0,Fe.invalidRequiredInputValueError)(_e.FIELD,a,i)):r.length>0&&((0,Ee.getValueOrDefault)(this.fieldConfigurationByFieldCoords,a,()=>({argumentNames:r,fieldName:t.name,typeName:t.renamedParentTypeName})).argumentNames=r),n}getNodeWithPersistedDirectivesByFieldData(t,n){return t.node.arguments=n,t.node.name=(0,Mr.stringToNameNode)(t.name),t.node.type=t.type,t.node.description=this.getFederatedGraphNodeDescription(t),t.node.directives=this.getRouterPersistedDirectiveNodes(t),t.node}validateSemanticNonNull(t){let n;for(let r of t.nullLevelsBySubgraphName.values()){if(!n){n=r;continue}if(n.size!==r.size){this.errors.push((0,Fe.semanticNonNullInconsistentLevelsError)(t));return}for(let i of r)if(!n.has(i)){this.errors.push((0,Fe.semanticNonNullInconsistentLevelsError)(t));return}}}validateOneOfDirective({data:t,inputValueNodes:n,requiredFieldNames:r}){return t.directivesByDirectiveName.has(_e.ONE_OF)?r.size>0?(this.errors.push((0,Fe.oneOfRequiredFieldsError)({requiredFieldNames:Array.from(r),typeName:t.name})),!1):(n.length===1&&this.warnings.push((0,ude.singleFederatedInputFieldOneOfWarning)({fieldName:n[0].name.value,typeName:t.name})),!0):!0}pushParentDefinitionDataToDocumentDefinitions(t){for(let[n,r]of this.parentDefinitionDataByTypeName)switch(r.extensionType!==gV.ExtensionType.NONE&&this.errors.push((0,Fe.noBaseDefinitionForExtensionError)((0,Ee.kindToNodeType)(r.kind),n)),r.kind){case Pe.Kind.ENUM_TYPE_DEFINITION:{let i=[],a=[],o=this.getEnumValueMergeMethod(n);(0,Ie.propagateAuthDirectives)(r,this.authorizationDataByParentTypeName.get(n));for(let c of r.enumValueDataByName.values()){let l=(0,Ie.getNodeForRouterSchemaByData)(c,this.persistedDirectiveDefinitionByDirectiveName,this.errors),d=(0,Ie.isNodeDataInaccessible)(c),p=Q(x({},c.node),{directives:(0,Ie.getClientPersistedDirectiveNodes)(c)});switch(o){case Ie.MergeMethod.CONSISTENT:!d&&r.appearances>c.appearances&&this.errors.push((0,Fe.incompatibleSharedEnumError)(n)),i.push(l),d||a.push(p);break;case Ie.MergeMethod.INTERSECTION:r.appearances===c.appearances&&(i.push(l),d||a.push(p));break;default:i.push(l),d||a.push(p);break}}if(r.node.values=i,this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,Ie.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}if(a.length<1){this.errors.push((0,Fe.allChildDefinitionsAreInaccessibleError)((0,Ee.kindToNodeType)(r.kind),n,_e.ENUM_VALUE));break}this.clientDefinitions.push(Q(x({},r.node),{directives:(0,Ie.getClientPersistedDirectiveNodes)(r),values:a}));break}case Pe.Kind.INPUT_OBJECT_TYPE_DEFINITION:{let i=new Array,a=new Array,o=new Array,c=new Set;for(let[l,d]of r.inputValueDataByName)if((0,Ie.isTypeRequired)(d.type)&&c.add(l),r.subgraphNames.size===d.subgraphNames.size){if(a.push(this.getNodeWithPersistedDirectivesByInputValueData(d)),(0,Ie.isNodeDataInaccessible)(d))continue;o.push(Q(x({},d.node),{directives:(0,Ie.getClientPersistedDirectiveNodes)(d)}))}else(0,Ie.isTypeRequired)(d.type)&&i.push({inputValueName:l,missingSubgraphs:(0,Ee.getEntriesNotInHashSet)(r.subgraphNames,d.subgraphNames),requiredSubgraphs:[...d.requiredSubgraphNames]});if(i.length>0){this.errors.push((0,Fe.invalidRequiredInputValueError)(_e.INPUT_OBJECT,n,i,!1));break}if(!this.validateOneOfDirective({data:r,inputValueNodes:a,requiredFieldNames:c}))break;if(r.node.fields=a,this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,Ie.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r);break}if(o.length<1){this.errors.push((0,Fe.allChildDefinitionsAreInaccessibleError)((0,Ee.kindToNodeType)(r.kind),n,"Input field"));break}this.clientDefinitions.push(Q(x({},r.node),{directives:(0,Ie.getClientPersistedDirectiveNodes)(r),fields:o}));break}case Pe.Kind.INTERFACE_TYPE_DEFINITION:case Pe.Kind.OBJECT_TYPE_DEFINITION:{let i=[],a=[],o=new Map,c=(0,Ie.newInvalidFieldNames)(),l=r.kind===Pe.Kind.OBJECT_TYPE_DEFINITION,d=this.authorizationDataByParentTypeName.get(n);(0,Ie.propagateAuthDirectives)(r,d);for(let[y,I]of r.fieldDataByName){(0,Ie.propagateFieldAuthDirectives)(I,d);let v=this.getValidFieldArgumentNodes(I);l&&(0,Ie.validateExternalAndShareable)(I,c),this.validateSemanticNonNull(I),i.push(this.getNodeWithPersistedDirectivesByFieldData(I,v)),!(0,Ie.isNodeDataInaccessible)(I)&&(a.push((0,Ie.getClientSchemaFieldNodeByFieldData)(I)),o.set(y,this.fieldDataToGraphFieldData(I)))}if(l&&(c.byShareable.size>0&&this.errors.push((0,Fe.invalidFieldShareabilityError)(r,c.byShareable)),c.subgraphNamesByExternalFieldName.size>0&&this.errors.push((0,Fe.allExternalFieldInstancesError)(n,c.subgraphNamesByExternalFieldName))),r.node.fields=i,this.internalGraph.initializeNode(n,o),r.implementedInterfaceTypeNames.size>0){t.push({data:r,clientSchemaFieldNodes:a});break}this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r));let p=(0,sde.isNodeQuery)(n);if((0,Ie.isNodeDataInaccessible)(r)){if(p){this.errors.push(Fe.inaccessibleQueryRootTypeError);break}this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}if(a.length<1){let y=p?(0,Fe.noQueryRootTypeError)(!1):(0,Fe.allChildDefinitionsAreInaccessibleError)((0,Ee.kindToNodeType)(r.kind),n,_e.FIELD);this.errors.push(y);break}this.clientDefinitions.push(Q(x({},r.node),{directives:(0,Ie.getClientPersistedDirectiveNodes)(r),fields:a}));break}case Pe.Kind.SCALAR_TYPE_DEFINITION:{if(Bt.BASE_SCALARS.has(n))break;if((0,Ie.propagateAuthDirectives)(r,this.authorizationDataByParentTypeName.get(n)),this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,Ie.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}this.clientDefinitions.push(Q(x({},r.node),{directives:(0,Ie.getClientPersistedDirectiveNodes)(r)}));break}case Pe.Kind.UNION_TYPE_DEFINITION:{if(r.node.types=(0,xr.mapToArrayOfValues)(r.memberByMemberTypeName),this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,Ie.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}let i=this.getClientSchemaUnionMembers(r);if(i.length<1){this.errors.push((0,Fe.allChildDefinitionsAreInaccessibleError)(_e.UNION,n,"union member type"));break}this.clientDefinitions.push(Q(x({},r.node),{directives:(0,Ie.getClientPersistedDirectiveNodes)(r),types:i}));break}}}pushNamedTypeAuthDataToFields(){var t;for(let[n,r]of this.authorizationDataByParentTypeName){if(!r.requiresAuthentication&&r.requiredScopes.length<1)continue;let i=this.fieldCoordsByNamedTypeName.get(n);if(i)for(let a of i){let o=a.split(_e.PERIOD);switch(o.length){case 2:{let c=(0,Ee.getValueOrDefault)(this.authorizationDataByParentTypeName,o[0],()=>(0,xr.newAuthorizationData)(o[0])),l=(0,Ee.getValueOrDefault)(c.fieldAuthDataByFieldName,o[1],()=>(0,xr.newFieldAuthorizationData)(o[1]));(t=l.inheritedData).requiresAuthentication||(t.requiresAuthentication=r.requiresAuthentication),l.inheritedData.requiredScopes.length*r.requiredScopes.length>Bt.MAX_OR_SCOPES?this.invalidORScopesCoords.add(a):(l.inheritedData.requiredScopesByOR=(0,xr.mergeRequiredScopesByAND)(l.inheritedData.requiredScopesByOR,r.requiredScopesByOR),l.inheritedData.requiredScopes=(0,xr.mergeRequiredScopesByAND)(l.inheritedData.requiredScopes,r.requiredScopes));break}default:break}}}}federateSubgraphData(){this.federateInternalSubgraphData(),this.handleEntityInterfaces(),this.generateTagData(),this.pushVersionTwoDirectiveDefinitionsToDocumentDefinitions(),this.pushNamedTypeAuthDataToFields()}validateInterfaceImplementationsAndPushToDocumentDefinitions(t){for(let{data:n,clientSchemaFieldNodes:r}of t){if(n.node.interfaces=this.getValidImplementedInterfaces(n),this.routerDefinitions.push((0,Ie.getNodeForRouterSchemaByData)(n,this.persistedDirectiveDefinitionByDirectiveName,this.errors)),(0,Ie.isNodeDataInaccessible)(n)){this.validateReferencesOfInaccessibleType(n),this.internalGraph.setNodeInaccessible(n.name);continue}let i=[];for(let a of n.implementedInterfaceTypeNames)this.inaccessibleCoords.has(a)||i.push((0,Mr.stringToNamedTypeNode)(a));this.clientDefinitions.push(Q(x({},n.node),{directives:(0,Ie.getClientPersistedDirectiveNodes)(n),fields:r,interfaces:i}))}}pushVersionTwoDirectiveDefinitionsToDocumentDefinitions(){if(!this.isVersionTwo){this.referencedPersistedDirectiveNames.has(_e.SEMANTIC_NON_NULL)&&(this.clientDefinitions.push(Bt.SEMANTIC_NON_NULL_DEFINITION),this.routerDefinitions=[Bt.DEPRECATED_DEFINITION,Bt.SEMANTIC_NON_NULL_DEFINITION,Bt.TAG_DEFINITION]);return}if(this.referencedPersistedDirectiveNames.has(_e.SEMANTIC_NON_NULL)){this.clientDefinitions.push(Bt.SEMANTIC_NON_NULL_DEFINITION),this.routerDefinitions=[Bt.AUTHENTICATED_DEFINITION,Bt.DEPRECATED_DEFINITION,Bt.INACCESSIBLE_DEFINITION,Bt.REQUIRES_SCOPES_DEFINITION,Bt.SEMANTIC_NON_NULL_DEFINITION,Bt.TAG_DEFINITION,Bt.SCOPE_SCALAR_DEFINITION];return}this.routerDefinitions=[Bt.AUTHENTICATED_DEFINITION,Bt.DEPRECATED_DEFINITION,Bt.INACCESSIBLE_DEFINITION,Bt.REQUIRES_SCOPES_DEFINITION,Bt.TAG_DEFINITION,Bt.SCOPE_SCALAR_DEFINITION]}validatePathSegmentInaccessibility(t){if(!t)return!1;let r=t.split(_e.LEFT_PARENTHESIS)[0].split(_e.PERIOD),i=r[0];for(let a=0;a0&&this.errors.push((0,Fe.invalidReferencesOfInaccessibleTypeError)((0,Ee.kindToNodeType)(t.kind),t.name,r))}validateQueryRootType(){let t=this.parentDefinitionDataByTypeName.get(_e.QUERY);if(!t||t.kind!==Pe.Kind.OBJECT_TYPE_DEFINITION||t.fieldDataByName.size<1){this.errors.push((0,Fe.noQueryRootTypeError)());return}for(let n of t.fieldDataByName.values())if(!(0,Ie.isNodeDataInaccessible)(n))return;this.errors.push((0,Fe.noQueryRootTypeError)())}validateSubscriptionFieldConditionFieldPath(t,n,r,i,a){let o=t.split(_e.PERIOD);if(o.length<1)return a.push((0,Fe.invalidSubscriptionFieldConditionFieldPathErrorMessage)(r,t)),[];let c=n;if(this.inaccessibleCoords.has(c.renamedTypeName))return a.push((0,Fe.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,o[0],c.renamedTypeName)),[];let l="";for(let d=0;d0?`.${p}`:p,c.kind!==Pe.Kind.OBJECT_TYPE_DEFINITION)return a.push((0,Fe.invalidSubscriptionFieldConditionFieldPathParentErrorMessage)(r,t,l)),[];let y=c.fieldDataByName.get(p);if(!y)return a.push((0,Fe.undefinedSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,p,c.renamedTypeName)),[];let I=`${c.renamedTypeName}.${p}`;if(!y.subgraphNames.has(i))return a.push((0,Fe.invalidSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,I,i)),[];if(this.inaccessibleCoords.has(I))return a.push((0,Fe.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,I)),[];if(Bt.BASE_SCALARS.has(y.namedTypeName)){c={kind:Pe.Kind.SCALAR_TYPE_DEFINITION,name:y.namedTypeName};continue}c=(0,Ee.getOrThrowError)(this.parentDefinitionDataByTypeName,y.namedTypeName,_e.PARENT_DEFINITION_DATA)}return(0,Ie.isLeafKind)(c.kind)?o:(a.push((0,Fe.nonLeafSubscriptionFieldConditionFieldPathFinalFieldErrorMessage)(r,t,o[o.length-1],(0,Ee.kindToNodeType)(c.kind),c.name)),[])}validateSubscriptionFieldCondition(t,n,r,i,a,o,c){if(i>$E.MAX_SUBSCRIPTION_FILTER_DEPTH||this.isMaxDepth)return c.push((0,Fe.subscriptionFilterConditionDepthExceededErrorMessage)(a)),this.isMaxDepth=!0,!1;let l=!1,d=new Set([_e.FIELD_PATH,_e.VALUES]),p=new Set,y=new Set,I=[];for(let v of t.fields){let F=v.name.value,k=a+`.${F}`;switch(F){case _e.FIELD_PATH:{if(d.has(_e.FIELD_PATH))d.delete(_e.FIELD_PATH);else{l=!0,p.add(_e.FIELD_PATH);break}if(v.value.kind!==Pe.Kind.STRING){I.push((0,Fe.invalidInputFieldTypeErrorMessage)(k,_e.STRING,(0,Ee.kindToNodeType)(v.value.kind))),l=!0;break}let K=this.validateSubscriptionFieldConditionFieldPath(v.value.value,r,k,o,I);if(K.length<1){l=!0;break}n.fieldPath=K;break}case _e.VALUES:{if(d.has(_e.VALUES))d.delete(_e.VALUES);else{l=!0,p.add(_e.VALUES);break}let K=v.value.kind;if(K==Pe.Kind.NULL||K==Pe.Kind.OBJECT){I.push((0,Fe.invalidInputFieldTypeErrorMessage)(k,_e.LIST,(0,Ee.kindToNodeType)(v.value.kind))),l=!0;break}if(K!==Pe.Kind.LIST){n.values=[(0,Ie.getSubscriptionFilterValue)(v.value)];break}let J=new Set,se=[];for(let ie=0;ie0){I.push((0,Fe.subscriptionFieldConditionInvalidValuesArrayErrorMessage)(k,se));continue}if(J.size<1){l=!0,I.push((0,Fe.subscriptionFieldConditionEmptyValuesArrayErrorMessage)(k));continue}n.values=[...J];break}default:l=!0,y.add(F)}}return l?(c.push((0,Fe.subscriptionFieldConditionInvalidInputFieldErrorMessage)(a,[...d],[...p],[...y],I)),!1):!0}validateSubscriptionFilterCondition(t,n,r,i,a,o,c){if(i>$E.MAX_SUBSCRIPTION_FILTER_DEPTH||this.isMaxDepth)return c.push((0,Fe.subscriptionFilterConditionDepthExceededErrorMessage)(a)),this.isMaxDepth=!0,!1;if(i+=1,t.fields.length!==1)return c.push((0,Fe.subscriptionFilterConditionInvalidInputFieldNumberErrorMessage)(a,t.fields.length)),!1;let l=t.fields[0],d=l.name.value;if(!IV.SUBSCRIPTION_FILTER_INPUT_NAMES.has(d))return c.push((0,Fe.subscriptionFilterConditionInvalidInputFieldErrorMessage)(a,d)),!1;let p=a+`.${d}`;switch(l.value.kind){case Pe.Kind.OBJECT:switch(d){case _e.IN_UPPER:return n.in={fieldPath:[],values:[]},this.validateSubscriptionFieldCondition(l.value,n.in,r,i,a+".IN",o,c);case _e.NOT_UPPER:return n.not={},this.validateSubscriptionFilterCondition(l.value,n.not,r,i,a+".NOT",o,c);default:return c.push((0,Fe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(p,_e.LIST,_e.OBJECT)),!1}case Pe.Kind.LIST:{let y=[];switch(d){case _e.AND_UPPER:{n.and=y;break}case _e.OR_UPPER:{n.or=y;break}default:return c.push((0,Fe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(p,_e.OBJECT,_e.LIST)),!1}let I=l.value.values.length;if(I<1||I>5)return c.push((0,Fe.subscriptionFilterArrayConditionInvalidLengthErrorMessage)(p,I)),!1;let v=!0,F=[];for(let k=0;k0?(c.push((0,Fe.subscriptionFilterArrayConditionInvalidItemTypeErrorMessage)(p,F)),!1):v}default:{let y=IV.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES.has(d)?_e.LIST:_e.OBJECT;return c.push((0,Fe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(p,y,(0,Ee.kindToNodeType)(l.value.kind))),!1}}}validateSubscriptionFilterAndGenerateConfiguration(t,n,r,i,a,o){if(!t.arguments||t.arguments.length!==1)return;let c=t.arguments[0];if(c.value.kind!==Pe.Kind.OBJECT){this.errors.push((0,Fe.invalidSubscriptionFilterDirectiveError)(r,[(0,Fe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(_e.CONDITION,_e.OBJECT,(0,Ee.kindToNodeType)(c.value.kind))]));return}let l={},d=[];if(!this.validateSubscriptionFilterCondition(c.value,l,n,0,_e.CONDITION,o,d)){this.errors.push((0,Fe.invalidSubscriptionFilterDirectiveError)(r,d)),this.isMaxDepth=!1;return}(0,Ee.getValueOrDefault)(this.fieldConfigurationByFieldCoords,r,()=>({argumentNames:[],fieldName:i,typeName:a})).subscriptionFilterCondition=l}validateSubscriptionFiltersAndGenerateConfiguration(){for(let[t,n]of this.subscriptionFilterDataByFieldPath){if(this.inaccessibleCoords.has(t))continue;let r=this.parentDefinitionDataByTypeName.get(n.fieldData.namedTypeName);if(!r){this.errors.push((0,Fe.invalidSubscriptionFilterDirectiveError)(t,[(0,Fe.subscriptionFilterNamedTypeErrorMessage)(n.fieldData.namedTypeName)]));continue}(0,Ie.isNodeDataInaccessible)(r)||r.kind===Pe.Kind.OBJECT_TYPE_DEFINITION&&this.validateSubscriptionFilterAndGenerateConfiguration(n.directive,r,t,n.fieldData.name,n.fieldData.renamedParentTypeName,n.directiveSubgraphName)}}buildFederationResult(){this.subscriptionFilterDataByFieldPath.size>0&&this.validateSubscriptionFiltersAndGenerateConfiguration(),this.invalidORScopesCoords.size>0&&this.errors.push((0,Fe.orScopesLimitError)(Bt.MAX_OR_SCOPES,[...this.invalidORScopesCoords]));for(let a of this.potentialPersistedDirectiveDefinitionDataByDirectiveName.values())(0,Ie.addValidPersistedDirectiveDefinitionNodeByData)(this.routerDefinitions,a,this.persistedDirectiveDefinitionByDirectiveName,this.errors);let t=[];this.pushParentDefinitionDataToDocumentDefinitions(t),this.validateInterfaceImplementationsAndPushToDocumentDefinitions(t),this.validateQueryRootType();for(let a of this.inaccessibleRequiredInputValueErrorByCoords.values())this.errors.push(a);if(this.errors.length>0)return{errors:this.errors,success:!1,warnings:this.warnings};if(!this.disableResolvabilityValidation&&this.internalSubgraphBySubgraphName.size>1){let a=this.internalGraph.validate();if(!a.success)return{errors:a.errors,success:!1,warnings:this.warnings}}let n={kind:Pe.Kind.DOCUMENT,definitions:this.routerDefinitions},r=(0,Pe.buildASTSchema)({kind:Pe.Kind.DOCUMENT,definitions:this.clientDefinitions},{assumeValid:!0,assumeValidSDL:!0}),i=new Map;for(let a of this.internalSubgraphBySubgraphName.values())i.set(a.name,{configurationDataByTypeName:a.configurationDataByTypeName,directiveDefinitionByDirectiveName:a.directiveDefinitionByDirectiveName,isVersionTwo:a.isVersionTwo,parentDefinitionDataByTypeName:a.parentDefinitionDataByTypeName,schema:a.schema});for(let a of this.authorizationDataByParentTypeName.values())(0,xr.upsertAuthorizationConfiguration)(this.fieldConfigurationByFieldCoords,a);return x({fieldConfigurations:Array.from(this.fieldConfigurationByFieldCoords.values()),subgraphConfigBySubgraphName:i,federatedGraphAST:n,federatedGraphSchema:(0,Pe.buildASTSchema)(n,{assumeValid:!0,assumeValidSDL:!0}),federatedGraphClientSchema:r,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,success:!0,warnings:this.warnings},this.getClientSchemaObjectBoolean())}getClientSchemaObjectBoolean(){return this.inaccessibleCoords.size<1&&this.tagNamesByCoords.size<1?{}:{shouldIncludeClientSchema:!0}}handleChildTagExclusions(t,n,r,i){let a=n.size;for(let[o,c]of r){let l=(0,Ee.getOrThrowError)(n,o,`${t.name}.childDataByChildName`);if((0,Ie.isNodeDataInaccessible)(l)){a-=1;continue}i.isDisjointFrom(c.tagNames)||((0,Ee.getValueOrDefault)(l.persistedDirectivesData.directivesByDirectiveName,_e.INACCESSIBLE,()=>[(0,Ee.generateSimpleDirective)(_e.INACCESSIBLE)]),this.inaccessibleCoords.add(`${t.name}.${o}`),a-=1)}a<1&&(t.persistedDirectivesData.directivesByDirectiveName.set(_e.INACCESSIBLE,[(0,Ee.generateSimpleDirective)(_e.INACCESSIBLE)]),this.inaccessibleCoords.add(t.name))}handleChildTagInclusions(t,n,r,i){let a=n.size;for(let[o,c]of n){if((0,Ie.isNodeDataInaccessible)(c)){a-=1;continue}let l=r.get(o);(!l||i.isDisjointFrom(l.tagNames))&&((0,Ee.getValueOrDefault)(c.persistedDirectivesData.directivesByDirectiveName,_e.INACCESSIBLE,()=>[(0,Ee.generateSimpleDirective)(_e.INACCESSIBLE)]),this.inaccessibleCoords.add(`${t.name}.${o}`),a-=1)}a<1&&(t.persistedDirectivesData.directivesByDirectiveName.set(_e.INACCESSIBLE,[(0,Ee.generateSimpleDirective)(_e.INACCESSIBLE)]),this.inaccessibleCoords.add(t.name))}buildFederationContractResult(t){if(this.isVersionTwo||this.routerDefinitions.push(Bt.INACCESSIBLE_DEFINITION),t.tagNamesToExclude.size>0)for(let[o,c]of this.parentTagDataByTypeName){let l=(0,Ee.getOrThrowError)(this.parentDefinitionDataByTypeName,o,_e.PARENT_DEFINITION_DATA);if(!(0,Ie.isNodeDataInaccessible)(l)){if(!t.tagNamesToExclude.isDisjointFrom(c.tagNames)){l.persistedDirectivesData.directivesByDirectiveName.set(_e.INACCESSIBLE,[(0,Ee.generateSimpleDirective)(_e.INACCESSIBLE)]),this.inaccessibleCoords.add(o);continue}if(!(c.childTagDataByChildName.size<1))switch(l.kind){case Pe.Kind.SCALAR_TYPE_DEFINITION:case Pe.Kind.UNION_TYPE_DEFINITION:break;case Pe.Kind.ENUM_TYPE_DEFINITION:{this.handleChildTagExclusions(l,l.enumValueDataByName,c.childTagDataByChildName,t.tagNamesToExclude);break}case Pe.Kind.INPUT_OBJECT_TYPE_DEFINITION:{this.handleChildTagExclusions(l,l.inputValueDataByName,c.childTagDataByChildName,t.tagNamesToExclude);break}default:{let d=l.fieldDataByName.size;for(let[p,y]of c.childTagDataByChildName){let I=(0,Ee.getOrThrowError)(l.fieldDataByName,p,`${o}.fieldDataByFieldName`);if((0,Ie.isNodeDataInaccessible)(I)){d-=1;continue}if(!t.tagNamesToExclude.isDisjointFrom(y.tagNames)){(0,Ee.getValueOrDefault)(I.persistedDirectivesData.directivesByDirectiveName,_e.INACCESSIBLE,()=>[(0,Ee.generateSimpleDirective)(_e.INACCESSIBLE)]),this.inaccessibleCoords.add(I.federatedCoords),d-=1;continue}for(let[v,F]of y.tagNamesByArgumentName){let k=(0,Ee.getOrThrowError)(I.argumentDataByName,v,`${p}.argumentDataByArgumentName`);(0,Ie.isNodeDataInaccessible)(k)||t.tagNamesToExclude.isDisjointFrom(F)||((0,Ee.getValueOrDefault)(k.persistedDirectivesData.directivesByDirectiveName,_e.INACCESSIBLE,()=>[(0,Ee.generateSimpleDirective)(_e.INACCESSIBLE)]),this.inaccessibleCoords.add(k.federatedCoords))}}d<1&&(l.persistedDirectivesData.directivesByDirectiveName.set(_e.INACCESSIBLE,[(0,Ee.generateSimpleDirective)(_e.INACCESSIBLE)]),this.inaccessibleCoords.add(o))}}}}else if(t.tagNamesToInclude.size>0)for(let[o,c]of this.parentDefinitionDataByTypeName){if((0,Ie.isNodeDataInaccessible)(c))continue;let l=this.parentTagDataByTypeName.get(o);if(!l){c.persistedDirectivesData.directivesByDirectiveName.set(_e.INACCESSIBLE,[(0,Ee.generateSimpleDirective)(_e.INACCESSIBLE)]),this.inaccessibleCoords.add(o);continue}if(t.tagNamesToInclude.isDisjointFrom(l.tagNames)){if(l.childTagDataByChildName.size<1){c.persistedDirectivesData.directivesByDirectiveName.set(_e.INACCESSIBLE,[(0,Ee.generateSimpleDirective)(_e.INACCESSIBLE)]),this.inaccessibleCoords.add(o);continue}switch(c.kind){case Pe.Kind.SCALAR_TYPE_DEFINITION:case Pe.Kind.UNION_TYPE_DEFINITION:continue;case Pe.Kind.ENUM_TYPE_DEFINITION:this.handleChildTagInclusions(c,c.enumValueDataByName,l.childTagDataByChildName,t.tagNamesToInclude);break;case Pe.Kind.INPUT_OBJECT_TYPE_DEFINITION:this.handleChildTagInclusions(c,c.inputValueDataByName,l.childTagDataByChildName,t.tagNamesToInclude);break;default:let d=c.fieldDataByName.size;for(let[p,y]of c.fieldDataByName){if((0,Ie.isNodeDataInaccessible)(y)){d-=1;continue}let I=l.childTagDataByChildName.get(p);(!I||t.tagNamesToInclude.isDisjointFrom(I.tagNames))&&((0,Ee.getValueOrDefault)(y.persistedDirectivesData.directivesByDirectiveName,_e.INACCESSIBLE,()=>[(0,Ee.generateSimpleDirective)(_e.INACCESSIBLE)]),this.inaccessibleCoords.add(y.federatedCoords),d-=1)}d<1&&(c.persistedDirectivesData.directivesByDirectiveName.set(_e.INACCESSIBLE,[(0,Ee.generateSimpleDirective)(_e.INACCESSIBLE)]),this.inaccessibleCoords.add(o))}}}this.subscriptionFilterDataByFieldPath.size>0&&this.validateSubscriptionFiltersAndGenerateConfiguration();for(let o of this.potentialPersistedDirectiveDefinitionDataByDirectiveName.values())(0,Ie.addValidPersistedDirectiveDefinitionNodeByData)(this.routerDefinitions,o,this.persistedDirectiveDefinitionByDirectiveName,this.errors);let n=[];if(this.pushParentDefinitionDataToDocumentDefinitions(n),this.validateInterfaceImplementationsAndPushToDocumentDefinitions(n),this.validateQueryRootType(),this.errors.length>0)return{errors:this.errors,success:!1,warnings:this.warnings};let r={kind:Pe.Kind.DOCUMENT,definitions:this.routerDefinitions},i=(0,Pe.buildASTSchema)({kind:Pe.Kind.DOCUMENT,definitions:this.clientDefinitions},{assumeValid:!0,assumeValidSDL:!0}),a=new Map;for(let o of this.internalSubgraphBySubgraphName.values())a.set(o.name,{configurationDataByTypeName:o.configurationDataByTypeName,directiveDefinitionByDirectiveName:o.directiveDefinitionByDirectiveName,isVersionTwo:o.isVersionTwo,parentDefinitionDataByTypeName:o.parentDefinitionDataByTypeName,schema:o.schema});for(let o of this.authorizationDataByParentTypeName.values())(0,xr.upsertAuthorizationConfiguration)(this.fieldConfigurationByFieldCoords,o);return x({fieldConfigurations:Array.from(this.fieldConfigurationByFieldCoords.values()),subgraphConfigBySubgraphName:a,federatedGraphAST:r,federatedGraphSchema:(0,Pe.buildASTSchema)(r,{assumeValid:!0,assumeValidSDL:!0}),federatedGraphClientSchema:i,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,success:!0,warnings:this.warnings},this.getClientSchemaObjectBoolean())}federateSubgraphsInternal(){return this.federateSubgraphData(),this.buildFederationResult()}};Pc.FederationFactory=QE;function vD({disableResolvabilityValidation:e,subgraphs:t}){if(t.length<1)return{errors:[Fe.minimumSubgraphRequirementError],success:!1,warnings:[]};let n=(0,ade.batchNormalize)(t);if(!n.success)return{errors:n.errors,success:!1,warnings:n.warnings};let r=new Map,i=new Map;for(let[c,l]of n.internalSubgraphBySubgraphName)for(let[d,p]of l.entityInterfaces){let y=r.get(d);if(!y){r.set(d,(0,xr.newEntityInterfaceFederationData)(p,c));continue}(0,xr.upsertEntityInterfaceFederationData)(y,p,c)}let a=new Array,o=new Map;for(let[c,l]of r){let d=l.concreteTypeNames.size;for(let[p,y]of l.subgraphDataByTypeName){let I=(0,Ee.getValueOrDefault)(o,p,()=>new Set);if((0,Ee.addIterableValuesToSet)(y.concreteTypeNames,I),!y.isInterfaceObject){y.resolvable&&y.concreteTypeNames.size!==d&&(0,Ee.getValueOrDefault)(i,c,()=>new Array).push({subgraphName:p,definedConcreteTypeNames:new Set(y.concreteTypeNames),requiredConcreteTypeNames:new Set(l.concreteTypeNames)});continue}(0,Ee.addIterableValuesToSet)(l.concreteTypeNames,I);let{parentDefinitionDataByTypeName:v}=(0,Ee.getOrThrowError)(n.internalSubgraphBySubgraphName,p,"internalSubgraphBySubgraphName"),F=[];for(let k of l.concreteTypeNames)v.has(k)&&F.push(k);F.length>0&&a.push((0,Fe.invalidInterfaceObjectImplementationDefinitionsError)(c,p,F))}}for(let[c,l]of i){let d=new Array;for(let p of l){let y=o.get(p.subgraphName);if(!y){d.push(p);continue}let I=p.requiredConcreteTypeNames.intersection(y);p.requiredConcreteTypeNames.size!==I.size&&(p.definedConcreteTypeNames=I,d.push(p))}if(d.length>0){i.set(c,d);continue}i.delete(c)}return i.size>0&&a.push((0,Fe.undefinedEntityInterfaceImplementationsError)(i,r)),a.length>0?{errors:a,success:!1,warnings:n.warnings}:{federationFactory:new QE({authorizationDataByParentTypeName:n.authorizationDataByParentTypeName,concreteTypeNamesByAbstractTypeName:n.concreteTypeNamesByAbstractTypeName,disableResolvabilityValidation:e,entityDataByTypeName:n.entityDataByTypeName,entityInterfaceFederationDataByTypeName:r,fieldCoordsByNamedTypeName:n.fieldCoordsByNamedTypeName,internalSubgraphBySubgraphName:n.internalSubgraphBySubgraphName,internalGraph:n.internalGraph,warnings:n.warnings}),success:!0,warnings:n.warnings}}function cde({disableResolvabilityValidation:e,subgraphs:t}){let n=vD({subgraphs:t,disableResolvabilityValidation:e});return n.success?n.federationFactory.federateSubgraphsInternal():{errors:n.errors,success:!1,warnings:n.warnings}}function lde({subgraphs:e,tagOptionsByContractName:t,disableResolvabilityValidation:n}){let r=vD({subgraphs:e,disableResolvabilityValidation:n});if(!r.success)return{errors:r.errors,success:!1,warnings:r.warnings};r.federationFactory.federateSubgraphData();let i=[(0,_V.cloneDeep)(r.federationFactory)],a=r.federationFactory.buildFederationResult();if(!a.success)return{errors:a.errors,success:!1,warnings:a.warnings};let o=t.size-1,c=new Map,l=0;for(let[d,p]of t){l!==o&&i.push((0,_V.cloneDeep)(i[l]));let y=i[l].buildFederationContractResult(p);c.set(d,y),l++}return Q(x({},a),{federationResultByContractName:c})}function dde({contractTagOptions:e,disableResolvabilityValidation:t,subgraphs:n}){let r=vD({subgraphs:n,disableResolvabilityValidation:t});return r.success?(r.federationFactory.federateSubgraphData(),r.federationFactory.buildFederationContractResult(e)):{errors:r.errors,success:!1,warnings:r.warnings}}});var YE=w(As=>{"use strict";m();T();N();Object.defineProperty(As,"__esModule",{value:!0});As.LATEST_ROUTER_COMPATIBILITY_VERSION=As.ROUTER_COMPATIBILITY_VERSIONS=As.ROUTER_COMPATIBILITY_VERSION_ONE=void 0;As.ROUTER_COMPATIBILITY_VERSION_ONE="1";As.ROUTER_COMPATIBILITY_VERSIONS=new Set([As.ROUTER_COMPATIBILITY_VERSION_ONE]);As.LATEST_ROUTER_COMPATIBILITY_VERSION="1"});var SV=w(np=>{"use strict";m();T();N();Object.defineProperty(np,"__esModule",{value:!0});np.federateSubgraphs=fde;np.federateSubgraphsWithContracts=pde;np.federateSubgraphsContract=mde;var SD=vV(),OD=YE();function fde({disableResolvabilityValidation:e,subgraphs:t,version:n=OD.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(n){default:return(0,SD.federateSubgraphs)({disableResolvabilityValidation:e,subgraphs:t})}}function pde({disableResolvabilityValidation:e,subgraphs:t,tagOptionsByContractName:n,version:r=OD.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(r){default:return(0,SD.federateSubgraphsWithContracts)({disableResolvabilityValidation:e,subgraphs:t,tagOptionsByContractName:n})}}function mde({contractTagOptions:e,disableResolvabilityValidation:t,subgraphs:n,version:r=OD.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(r){default:return(0,SD.federateSubgraphsContract)({disableResolvabilityValidation:t,subgraphs:n,contractTagOptions:e})}}});var DV=w(OV=>{"use strict";m();T();N();Object.defineProperty(OV,"__esModule",{value:!0})});var bV=w(rp=>{"use strict";m();T();N();Object.defineProperty(rp,"__esModule",{value:!0});rp.normalizeSubgraphFromString=Nde;rp.normalizeSubgraph=Tde;rp.batchNormalize=Ede;var DD=yD(),bD=YE();function Nde(e,t=!0,n=bD.ROUTER_COMPATIBILITY_VERSION_ONE){switch(n){default:return(0,DD.normalizeSubgraphFromString)(e,t)}}function Tde(e,t,n,r=bD.ROUTER_COMPATIBILITY_VERSION_ONE){switch(r){default:return(0,DD.normalizeSubgraph)(e,t,n)}}function Ede(e,t=bD.ROUTER_COMPATIBILITY_VERSION_ONE){switch(t){default:return(0,DD.batchNormalize)(e)}}});var RV=w(AV=>{"use strict";m();T();N();Object.defineProperty(AV,"__esModule",{value:!0})});var FV=w(PV=>{"use strict";m();T();N();Object.defineProperty(PV,"__esModule",{value:!0})});var LV=w(wV=>{"use strict";m();T();N();Object.defineProperty(wV,"__esModule",{value:!0})});var BV=w(CV=>{"use strict";m();T();N();Object.defineProperty(CV,"__esModule",{value:!0})});var kV=w(UV=>{"use strict";m();T();N();Object.defineProperty(UV,"__esModule",{value:!0})});var xV=w(MV=>{"use strict";m();T();N();Object.defineProperty(MV,"__esModule",{value:!0})});var qV=w(JE=>{"use strict";m();T();N();Object.defineProperty(JE,"__esModule",{value:!0});JE.COMPOSITION_VERSION=void 0;JE.COMPOSITION_VERSION="{{$COMPOSITION__VERSION}}"});var jV=w(VV=>{"use strict";m();T();N();Object.defineProperty(VV,"__esModule",{value:!0})});var GV=w(KV=>{"use strict";m();T();N();Object.defineProperty(KV,"__esModule",{value:!0})});var QV=w($V=>{"use strict";m();T();N();Object.defineProperty($V,"__esModule",{value:!0})});var HE=w(ot=>{"use strict";m();T();N();var hde=ot&&ot.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),yt=ot&&ot.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&hde(t,e,n)};Object.defineProperty(ot,"__esModule",{value:!0});yt(Hr(),ot);yt(bv(),ot);yt(xi(),ot);yt(Zk(),ot);yt(SV(),ot);yt(DV(),ot);yt(bV(),ot);yt(RV(),ot);yt(TD(),ot);yt(aD(),ot);yt(CE(),ot);yt(FV(),ot);yt(LV(),ot);yt(lD(),ot);yt(YE(),ot);yt(BV(),ot);yt(ED(),ot);yt(du(),ot);yt(Df(),ot);yt(Sl(),ot);yt(kV(),ot);yt(xV(),ot);yt(qV(),ot);yt(vr(),ot);yt(jV(),ot);yt(Sr(),ot);yt(WO(),ot);yt(VN(),ot);yt(_D(),ot);yt(GV(),ot);yt(QO(),ot);yt(zf(),ot);yt(QV(),ot);yt(eD(),ot);yt(KE(),ot);yt(HO(),ot);yt(Ss(),ot);yt(Hf(),ot);yt(Yl(),ot);yt(Wf(),ot)});var dfe={};fm(dfe,{buildRouterConfiguration:()=>lfe,federateSubgraphs:()=>cfe});m();T();N();var kc=ps(HE());m();T();N();m();T();N();function AD(e){if(!e)return e;if(!URL.canParse(e))throw new Error("Invalid URL");let t=e.indexOf("?"),n=e.indexOf("#"),r=e;return t>0?r=r.slice(0,n>0?Math.min(t,n):t):n>0&&(r=r.slice(0,n)),r}m();T();N();m();T();N();var YV={};m();T();N();function JV(e){return e!=null}m();T();N();m();T();N();var ZV=ps(De(),1);m();T();N();var HV;if(typeof AggregateError=="undefined"){class e extends Error{constructor(n,r=""){super(r),this.errors=n,this.name="AggregateError",Error.captureStackTrace(this,e)}}HV=function(t,n){return new e(t,n)}}else HV=AggregateError;function zV(e){return"errors"in e&&Array.isArray(e.errors)}var e1=3;function t1(e){return zE(e,[])}function zE(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return yde(e,t);default:return String(e)}}function WV(e){return e instanceof ZV.GraphQLError?e.toString():`${e.name}: ${e.message}; +}`;var Et=JA(function(){return Yt(L,Ke+"return "+he).apply(e,M)});if(Et.source=he,vy(Et))throw Et;return Et}function BY(s){return Wt(s).toLowerCase()}function UY(s){return Wt(s).toUpperCase()}function kY(s,u,f){if(s=Wt(s),s&&(f||u===e))return r0(s);if(!s||!(u=si(u)))return s;var E=zi(s),S=zi(u),L=i0(E,S),M=a0(E,S)+1;return zo(E,L,M).join("")}function MY(s,u,f){if(s=Wt(s),s&&(f||u===e))return s.slice(0,o0(s)+1);if(!s||!(u=si(u)))return s;var E=zi(s),S=a0(E,zi(u))+1;return zo(E,0,S).join("")}function xY(s,u,f){if(s=Wt(s),s&&(f||u===e))return s.replace(vh,"");if(!s||!(u=si(u)))return s;var E=zi(s),S=i0(E,zi(u));return zo(E,S).join("")}function qY(s,u){var f=tt,E=ee;if(vn(u)){var S="separator"in u?u.separator:S;f="length"in u?Nt(u.length):f,E="omission"in u?si(u.omission):E}s=Wt(s);var L=s.length;if(jc(s)){var M=zi(s);L=M.length}if(f>=L)return s;var j=f-Kc(E);if(j<1)return E;var H=M?zo(M,0,j).join(""):s.slice(0,j);if(S===e)return H+E;if(M&&(j+=H.length-j),Sy(S)){if(s.slice(j).search(S)){var pe,me=H;for(S.global||(S=qh(S.source,Wt(Ob.exec(S))+"g")),S.lastIndex=0;pe=S.exec(me);)var he=pe.index;H=H.slice(0,he===e?j:he)}}else if(s.indexOf(si(S),j)!=j){var Ae=H.lastIndexOf(S);Ae>-1&&(H=H.slice(0,Ae))}return H+E}function VY(s){return s=Wt(s),s&&X1.test(s)?s.replace(_b,TK):s}var jY=Hc(function(s,u,f){return s+(f?" ":"")+u.toUpperCase()}),by=H0("toUpperCase");function YA(s,u,f){return s=Wt(s),u=f?e:u,u===e?dK(s)?yK(s):nK(s):s.match(u)||[]}var JA=It(function(s,u){try{return ii(s,e,u)}catch(f){return vy(f)?f:new ut(f)}}),KY=us(function(s,u){return yi(u,function(f){f=Oa(f),ss(s,f,gy(s[f],s))}),s});function GY(s){var u=s==null?0:s.length,f=We();return s=u?In(s,function(E){if(typeof E[1]!="function")throw new Ii(i);return[f(E[0]),E[1]]}):[],It(function(E){for(var S=-1;++Smn)return[];var f=kn,E=Er(s,kn);u=We(u),s-=kn;for(var S=kh(E,u);++f0||u<0)?new Ot(f):(s<0?f=f.takeRight(-s):s&&(f=f.drop(s)),u!==e&&(u=Nt(u),f=u<0?f.dropRight(-u):f.take(u-s)),f)},Ot.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Ot.prototype.toArray=function(){return this.take(kn)},va(Ot.prototype,function(s,u){var f=/^(?:filter|find|map|reject)|While$/.test(u),E=/^(?:head|last)$/.test(u),S=P[E?"take"+(u=="last"?"Right":""):u],L=E||/^find/.test(u);S&&(P.prototype[u]=function(){var M=this.__wrapped__,j=E?[1]:arguments,H=M instanceof Ot,pe=j[0],me=H||dt(M),he=function(St){var Pt=S.apply(P,Ko([St],j));return E&&Ae?Pt[0]:Pt};me&&f&&typeof pe=="function"&&pe.length!=1&&(H=me=!1);var Ae=this.__chain__,Ke=!!this.__actions__.length,Ze=L&&!Ae,Et=H&&!Ke;if(!L&&me){M=Et?M:new Ot(this);var et=s.apply(M,j);return et.__actions__.push({func:im,args:[he],thisArg:e}),new gi(et,Ae)}return Ze&&Et?s.apply(this,j):(et=this.thru(he),Ze?E?et.value()[0]:et.value():et)})}),yi(["pop","push","shift","sort","splice","unshift"],function(s){var u=Pp[s],f=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",E=/^(?:pop|shift)$/.test(s);P.prototype[s]=function(){var S=arguments;if(E&&!this.__chain__){var L=this.value();return u.apply(dt(L)?L:[],S)}return this[f](function(M){return u.apply(dt(M)?M:[],S)})}}),va(Ot.prototype,function(s,u){var f=P[u];if(f){var E=f.name+"";rn.call(Qc,E)||(Qc[E]=[]),Qc[E].push({name:u,func:f})}}),Qc[Wp(e,k).name]=[{name:"wrapper",func:e}],Ot.prototype.clone=VK,Ot.prototype.reverse=jK,Ot.prototype.value=KK,P.prototype.at=hQ,P.prototype.chain=yQ,P.prototype.commit=IQ,P.prototype.next=gQ,P.prototype.plant=vQ,P.prototype.reverse=SQ,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=OQ,P.prototype.first=P.prototype.head,fd&&(P.prototype[fd]=_Q),P},$o=IK();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(ir._=$o,define(function(){return $o})):Au?((Au.exports=$o)._=$o,Rh._=$o):ir._=$o}).call(Zl)});var vV=w(Pc=>{"use strict";m();T();N();Object.defineProperty(Pc,"__esModule",{value:!0});Pc.FederationFactory=void 0;Pc.federateSubgraphs=cde;Pc.federateSubgraphsWithContracts=lde;Pc.federateSubgraphsContract=dde;var Pe=De(),yV=du(),Mr=Hr(),Fe=Mi(),Rc=VN(),IV=Yl(),xr=Hf(),GE=iE(),Bt=Ss(),ade=yD(),sde=zf(),gV=Df(),Ie=Sl(),ode=_D(),_V=hV(),ed=KE(),_e=vr(),$E=gl(),Ee=Sr(),ude=Wf(),QE=class{constructor({authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,disableResolvabilityValidation:r,entityDataByTypeName:i,entityInterfaceFederationDataByTypeName:a,fieldCoordsByNamedTypeName:o,internalGraph:c,internalSubgraphBySubgraphName:l,warnings:d}){_(this,"authorizationDataByParentTypeName");_(this,"coordsByNamedTypeName",new Map);_(this,"disableResolvabilityValidation",!1);_(this,"clientDefinitions",[Bt.DEPRECATED_DEFINITION]);_(this,"currentSubgraphName","");_(this,"concreteTypeNamesByAbstractTypeName");_(this,"subgraphNamesByNamedTypeNameByFieldCoords",new Map);_(this,"entityDataByTypeName");_(this,"entityInterfaceFederationDataByTypeName");_(this,"errors",[]);_(this,"fieldConfigurationByFieldCoords",new Map);_(this,"fieldCoordsByNamedTypeName");_(this,"inaccessibleCoords",new Set);_(this,"inaccessibleRequiredInputValueErrorByCoords",new Map);_(this,"internalGraph");_(this,"internalSubgraphBySubgraphName");_(this,"invalidORScopesCoords",new Set);_(this,"isMaxDepth",!1);_(this,"isVersionTwo",!1);_(this,"namedInputValueTypeNames",new Set);_(this,"namedOutputTypeNames",new Set);_(this,"parentDefinitionDataByTypeName",new Map);_(this,"parentTagDataByTypeName",new Map);_(this,"persistedDirectiveDefinitionByDirectiveName",new Map([[_e.AUTHENTICATED,Bt.AUTHENTICATED_DEFINITION],[_e.DEPRECATED,Bt.DEPRECATED_DEFINITION],[_e.INACCESSIBLE,Bt.INACCESSIBLE_DEFINITION],[_e.ONE_OF,Bt.ONE_OF_DEFINITION],[_e.REQUIRES_SCOPES,Bt.REQUIRES_SCOPES_DEFINITION],[_e.SEMANTIC_NON_NULL,Bt.SEMANTIC_NON_NULL_DEFINITION],[_e.TAG,Bt.TAG_DEFINITION]]));_(this,"persistedDirectiveDefinitions",new Set([_e.AUTHENTICATED,_e.DEPRECATED,_e.INACCESSIBLE,_e.TAG,_e.REQUIRES_SCOPES]));_(this,"potentialPersistedDirectiveDefinitionDataByDirectiveName",new Map);_(this,"referencedPersistedDirectiveNames",new Set);_(this,"routerDefinitions",[Bt.DEPRECATED_DEFINITION,Bt.TAG_DEFINITION]);_(this,"subscriptionFilterDataByFieldPath",new Map);_(this,"tagNamesByCoords",new Map);_(this,"warnings");this.authorizationDataByParentTypeName=t,this.concreteTypeNamesByAbstractTypeName=n,this.disableResolvabilityValidation=r!=null?r:!1,this.entityDataByTypeName=i,this.entityInterfaceFederationDataByTypeName=a,this.fieldCoordsByNamedTypeName=o,this.internalGraph=c,this.internalSubgraphBySubgraphName=l,this.warnings=d}getValidImplementedInterfaces(t){var o;let n=[];if(t.implementedInterfaceTypeNames.size<1)return n;let r=(0,Ie.isNodeDataInaccessible)(t),i=new Map,a=new Map;for(let c of t.implementedInterfaceTypeNames){n.push((0,Mr.stringToNamedTypeNode)(c));let l=(0,Ee.getOrThrowError)(this.parentDefinitionDataByTypeName,c,_e.PARENT_DEFINITION_DATA);if(l.kind!==Pe.Kind.INTERFACE_TYPE_DEFINITION){a.set(l.name,(0,Ee.kindToNodeType)(l.kind));continue}let d={invalidFieldImplementations:new Map,unimplementedFields:[]},p=!1;for(let[y,I]of l.fieldDataByName){let v=!1,F=t.fieldDataByName.get(y);if(!F){p=!0,d.unimplementedFields.push(y);continue}let k={invalidAdditionalArguments:new Set,invalidImplementedArguments:[],isInaccessible:!1,originalResponseType:(0,GE.printTypeNode)(I.node.type),unimplementedArguments:new Set};(0,Ie.isTypeValidImplementation)(I.node.type,F.node.type,this.concreteTypeNamesByAbstractTypeName)||(p=!0,v=!0,k.implementedResponseType=(0,GE.printTypeNode)(F.node.type));let K=new Set;for(let[J,se]of I.argumentDataByName){let ie=se.node;K.add(J);let Te=(o=F.argumentDataByName.get(J))==null?void 0:o.node;if(!Te){p=!0,v=!0,k.unimplementedArguments.add(J);continue}let de=(0,GE.printTypeNode)(Te.type),Re=(0,GE.printTypeNode)(ie.type);Re!==de&&(p=!0,v=!0,k.invalidImplementedArguments.push({actualType:de,argumentName:J,expectedType:Re}))}for(let[J,se]of F.argumentDataByName){let ie=se.node;K.has(J)||ie.type.kind===Pe.Kind.NON_NULL_TYPE&&(p=!0,v=!0,k.invalidAdditionalArguments.add(J))}!r&&F.isInaccessible&&!I.isInaccessible&&(p=!0,v=!0,k.isInaccessible=!0),v&&d.invalidFieldImplementations.set(y,k)}p&&i.set(c,d)}return a.size>0&&this.errors.push((0,Fe.invalidImplementedTypeError)(t.name,a)),i.size>0&&this.errors.push((0,Fe.invalidInterfaceImplementationError)(t.node.name.value,(0,Ee.kindToNodeType)(t.kind),i)),n}addValidPrimaryKeyTargetsToEntityData(t){var p;let n=this.entityDataByTypeName.get(t);if(!n)return;let r=(0,Ee.getOrThrowError)(this.internalSubgraphBySubgraphName,this.currentSubgraphName,"internalSubgraphBySubgraphName"),i=r.parentDefinitionDataByTypeName,a=i.get(n.typeName);if(!a||a.kind!==Pe.Kind.OBJECT_TYPE_DEFINITION)throw(0,Fe.incompatibleParentKindFatalError)(n.typeName,Pe.Kind.OBJECT_TYPE_DEFINITION,(a==null?void 0:a.kind)||Pe.Kind.NULL);let o=r.configurationDataByTypeName.get(n.typeName);if(!o)return;let c=[],l=this.internalGraph.nodeByNodeName.get(`${this.currentSubgraphName}.${n.typeName}`);(0,Rc.validateImplicitFieldSets)({conditionalFieldDataByCoords:r.conditionalFieldDataByCoordinates,currentSubgraphName:this.currentSubgraphName,entityData:n,implicitKeys:c,objectData:a,parentDefinitionDataByTypeName:i,graphNode:l});for(let[y,I]of this.entityInterfaceFederationDataByTypeName){if(!((p=I.concreteTypeNames)!=null&&p.has(n.typeName)))continue;let v=this.entityDataByTypeName.get(y);v&&(0,Rc.validateImplicitFieldSets)({conditionalFieldDataByCoords:r.conditionalFieldDataByCoordinates,currentSubgraphName:this.currentSubgraphName,entityData:v,implicitKeys:c,objectData:a,parentDefinitionDataByTypeName:i,graphNode:l})}if(c.length<1)return;if(!o.keys||o.keys.length<1){o.isRootNode=!0,o.keys=c;return}let d=new Set(o.keys.map(y=>y.selectionSet));for(let y of c)d.has(y.selectionSet)||(o.keys.push(y),d.add(y.selectionSet))}addValidPrimaryKeyTargetsFromInterfaceObject(t,n,r,i){let a=t.parentDefinitionDataByTypeName,o=a.get(n);if(!o||!(0,Ie.isParentDataCompositeOutputType)(o))throw(0,Fe.incompatibleParentKindFatalError)(n,Pe.Kind.INTERFACE_TYPE_DEFINITION,(o==null?void 0:o.kind)||Pe.Kind.NULL);let c=(0,Ee.getOrThrowError)(t.configurationDataByTypeName,r.typeName,"internalSubgraph.configurationDataByTypeName"),l=[];if((0,Rc.validateImplicitFieldSets)({conditionalFieldDataByCoords:t.conditionalFieldDataByCoordinates,currentSubgraphName:t.name,entityData:r,implicitKeys:l,objectData:o,parentDefinitionDataByTypeName:a,graphNode:i}),l.length<1)return;if(!c.keys||c.keys.length<1){c.isRootNode=!0,c.keys=l;return}let d=new Set(c.keys.map(p=>p.selectionSet));for(let p of l)d.has(p.selectionSet)||(c.keys.push(p),d.add(p.selectionSet))}getEnumValueMergeMethod(t){return this.namedInputValueTypeNames.has(t)?this.namedOutputTypeNames.has(t)?Ie.MergeMethod.CONSISTENT:Ie.MergeMethod.INTERSECTION:Ie.MergeMethod.UNION}generateTagData(){for(let[t,n]of this.tagNamesByCoords){let r=t.split(_e.PERIOD);if(r.length<1)continue;let i=(0,Ee.getValueOrDefault)(this.parentTagDataByTypeName,r[0],()=>(0,Rc.newParentTagData)(r[0]));switch(r.length){case 1:for(let l of n)i.tagNames.add(l);break;case 2:let a=(0,Ee.getValueOrDefault)(i.childTagDataByChildName,r[1],()=>(0,Rc.newChildTagData)(r[1]));for(let l of n)a.tagNames.add(l);break;case 3:let o=(0,Ee.getValueOrDefault)(i.childTagDataByChildName,r[1],()=>(0,Rc.newChildTagData)(r[1])),c=(0,Ee.getValueOrDefault)(o.tagNamesByArgumentName,r[2],()=>new Set);for(let l of n)c.add(l);break;default:break}}}upsertEnumValueData(t,n,r){let i=t.get(n.name),a=i||this.copyEnumValueData(n);(0,Ie.extractPersistedDirectives)(a.persistedDirectivesData,n.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName);let o=(0,Ie.isNodeDataInaccessible)(n);if((r||o)&&this.inaccessibleCoords.add(a.federatedCoords),this.recordTagNamesByCoords(a,a.federatedCoords),!i){t.set(a.name,a);return}a.appearances+=1,(0,Ee.addNewObjectValueMapEntries)(n.configureDescriptionDataBySubgraphName,a.configureDescriptionDataBySubgraphName),(0,Ie.setLongestDescription)(a,n),(0,Ee.addIterableValuesToSet)(n.subgraphNames,a.subgraphNames)}upsertInputValueData(t,n,r,i){let a=t.get(n.name),o=a||this.copyInputValueData(n);if((0,Ie.extractPersistedDirectives)(o.persistedDirectivesData,n.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),this.recordTagNamesByCoords(o,`${r}.${o.name}`),this.namedInputValueTypeNames.add(o.namedTypeName),(0,Ee.getValueOrDefault)(this.coordsByNamedTypeName,o.namedTypeName,()=>new Set).add(o.federatedCoords),!a){t.set(o.name,o);return}(0,Ee.addNewObjectValueMapEntries)(n.configureDescriptionDataBySubgraphName,o.configureDescriptionDataBySubgraphName),(0,Ie.setLongestDescription)(o,n),(0,Ee.addIterableValuesToSet)(n.requiredSubgraphNames,o.requiredSubgraphNames),(0,Ee.addIterableValuesToSet)(n.subgraphNames,o.subgraphNames),this.handleInputValueInaccessibility(i,o,r);let c=(0,ed.getMostRestrictiveMergedTypeNode)(o.type,n.type,o.originalCoords,this.errors);c.success?o.type=c.typeNode:this.errors.push((0,Fe.incompatibleMergedTypesError)({actualType:c.actualType,isArgument:a.isArgument,coords:a.federatedCoords,expectedType:c.expectedType})),(0,Ie.compareAndValidateInputValueDefaultValues)(o,n,this.errors)}handleInputValueInaccessibility(t,n,r){if(t){this.inaccessibleRequiredInputValueErrorByCoords.delete(n.federatedCoords),this.inaccessibleCoords.add(n.federatedCoords);return}if((0,Ie.isNodeDataInaccessible)(n)){if((0,Ie.isTypeRequired)(n.type)){this.inaccessibleRequiredInputValueErrorByCoords.set(n.federatedCoords,(0,Fe.inaccessibleRequiredInputValueError)(n,r));return}this.inaccessibleCoords.add(n.federatedCoords)}}handleSubscriptionFilterDirective(t,n){let r=t.directivesByDirectiveName.get(_e.SUBSCRIPTION_FILTER);if(!r)return;let i=(0,Ee.getFirstEntry)(t.subgraphNames);if(i===void 0){this.errors.push((0,Fe.unknownFieldSubgraphNameError)(t.federatedCoords));return}this.subscriptionFilterDataByFieldPath.set(t.federatedCoords,{directive:r[0],fieldData:n||t,directiveSubgraphName:i})}federateOutputType({current:t,other:n,coords:r,mostRestrictive:i}){n=(0,yV.getMutableTypeNode)(n,r,this.errors);let a={kind:t.kind},o=ed.DivergentType.NONE,c=a;for(let l=0;l<$E.MAXIMUM_TYPE_NESTING;l++){if(t.kind===n.kind)switch(t.kind){case Pe.Kind.NAMED_TYPE:return c.kind=t.kind,c.name=t.name,{success:!0,typeNode:a};case Pe.Kind.LIST_TYPE:c.kind=t.kind,c.type={kind:t.type.kind},c=c.type,t=t.type,n=n.type;continue;case Pe.Kind.NON_NULL_TYPE:c.kind=t.kind,c.type={kind:t.type.kind},c=c.type,t=t.type,n=n.type;continue}if(t.kind===Pe.Kind.NON_NULL_TYPE){if(o===ed.DivergentType.OTHER)return this.errors.push((0,Fe.incompatibleMergedTypesError)({actualType:n.kind,coords:r,expectedType:t.kind})),{success:!1};o=ed.DivergentType.CURRENT,i&&(c.kind=t.kind,c.type={kind:t.type.kind},c=c.type),t=t.type;continue}if(n.kind===Pe.Kind.NON_NULL_TYPE){if(o===ed.DivergentType.CURRENT)return this.errors.push((0,Fe.incompatibleMergedTypesError)({actualType:n.kind,coords:r,expectedType:t.kind})),{success:!1};o=ed.DivergentType.OTHER,i&&(c.kind=n.kind,c.type={kind:n.type.kind},c=c.type),n=n.type;continue}return this.errors.push((0,Fe.incompatibleMergedTypesError)({actualType:n.kind,coords:r,expectedType:t.kind})),{success:!1}}return this.errors.push((0,Fe.maximumTypeNestingExceededError)(r)),{success:!1}}addSubgraphNameToExistingFieldNamedTypeDisparity(t){let n=this.subgraphNamesByNamedTypeNameByFieldCoords.get(t.federatedCoords);n&&(0,Ee.addIterableValuesToSet)(t.subgraphNames,(0,Ee.getValueOrDefault)(n,t.namedTypeName,()=>new Set))}upsertFieldData(t,n,r){n.directivesByDirectiveName.has(_e.SEMANTIC_NON_NULL)&&this.referencedPersistedDirectiveNames.add(_e.SEMANTIC_NON_NULL);let i=t.get(n.name),a=i||this.copyFieldData(n,r||(0,Ie.isNodeDataInaccessible)(n));(0,Ee.getValueOrDefault)(this.coordsByNamedTypeName,n.namedTypeName,()=>new Set).add(a.federatedCoords),this.namedOutputTypeNames.add(n.namedTypeName),this.handleSubscriptionFilterDirective(n,a),(0,Ie.extractPersistedDirectives)(a.persistedDirectivesData,n.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName);let o=r||(0,Ie.isNodeDataInaccessible)(a);if(o&&this.inaccessibleCoords.add(a.federatedCoords),this.recordTagNamesByCoords(a,a.federatedCoords),!i){t.set(a.name,a);return}let c=this.federateOutputType({current:a.type,other:n.type,coords:a.federatedCoords,mostRestrictive:!1});if(c.success)if(a.type=c.typeNode,a.namedTypeName!==n.namedTypeName){let l=(0,Ee.getValueOrDefault)(this.subgraphNamesByNamedTypeNameByFieldCoords,a.federatedCoords,()=>new Map),d=(0,Ee.getValueOrDefault)(l,a.namedTypeName,()=>new Set);if(d.size<1)for(let p of a.subgraphNames)n.subgraphNames.has(p)||d.add(p);(0,Ee.addIterableValuesToSet)(n.subgraphNames,(0,Ee.getValueOrDefault)(l,n.namedTypeName,()=>new Set))}else this.addSubgraphNameToExistingFieldNamedTypeDisparity(n);for(let l of n.argumentDataByName.values())this.upsertInputValueData(a.argumentDataByName,l,a.federatedCoords,o);(0,Ee.addNewObjectValueMapEntries)(n.configureDescriptionDataBySubgraphName,i.configureDescriptionDataBySubgraphName),(0,Ie.setLongestDescription)(a,n),a.isInaccessible||(a.isInaccessible=n.isInaccessible),(0,Ee.addNewObjectValueMapEntries)(n.externalFieldDataBySubgraphName,a.externalFieldDataBySubgraphName),(0,Ee.addMapEntries)(n.isShareableBySubgraphName,a.isShareableBySubgraphName),(0,Ee.addMapEntries)(n.nullLevelsBySubgraphName,a.nullLevelsBySubgraphName),(0,Ee.addIterableValuesToSet)(n.subgraphNames,a.subgraphNames)}getClientSchemaUnionMembers(t){let n=[];for(let[r,i]of t.memberByMemberTypeName)this.inaccessibleCoords.has(r)||n.push(i);return n}recordTagNamesByCoords(t,n){let r=n||t.name;if(t.persistedDirectivesData.tagDirectiveByName.size<1)return;let i=(0,Ee.getValueOrDefault)(this.tagNamesByCoords,r,()=>new Set);for(let a of t.persistedDirectivesData.tagDirectiveByName.keys())i.add(a)}copyMutualParentDefinitionData(t){return{configureDescriptionDataBySubgraphName:(0,Ee.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByDirectiveName:(0,Ee.copyArrayValueMap)(t.directivesByDirectiveName),extensionType:t.extensionType,name:t.name,persistedDirectivesData:(0,Ie.extractPersistedDirectives)((0,Ie.newPersistedDirectivesData)(),t.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),description:(0,Ie.getInitialFederatedDescription)(t)}}copyEnumValueData(t){return{appearances:t.appearances,configureDescriptionDataBySubgraphName:(0,Ee.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),federatedCoords:t.federatedCoords,directivesByDirectiveName:(0,Ee.copyArrayValueMap)(t.directivesByDirectiveName),kind:t.kind,name:t.name,node:{directives:[],kind:t.kind,name:(0,Mr.stringToNameNode)(t.name)},parentTypeName:t.parentTypeName,persistedDirectivesData:(0,Ie.extractPersistedDirectives)((0,Ie.newPersistedDirectivesData)(),t.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),subgraphNames:new Set(t.subgraphNames),description:(0,Ie.getInitialFederatedDescription)(t)}}copyInputValueData(t){return{configureDescriptionDataBySubgraphName:(0,Ee.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByDirectiveName:(0,Ee.copyArrayValueMap)(t.directivesByDirectiveName),federatedCoords:t.federatedCoords,fieldName:t.fieldName,includeDefaultValue:t.includeDefaultValue,isArgument:t.isArgument,kind:t.kind,name:t.name,namedTypeKind:t.namedTypeKind,namedTypeName:t.namedTypeName,node:{directives:[],kind:Pe.Kind.INPUT_VALUE_DEFINITION,name:(0,Mr.stringToNameNode)(t.name),type:t.type},originalCoords:t.originalCoords,originalParentTypeName:t.originalParentTypeName,persistedDirectivesData:(0,Ie.extractPersistedDirectives)((0,Ie.newPersistedDirectivesData)(),t.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),renamedParentTypeName:t.renamedParentTypeName,requiredSubgraphNames:new Set(t.requiredSubgraphNames),subgraphNames:new Set(t.subgraphNames),type:t.type,defaultValue:t.defaultValue,description:(0,Ie.getInitialFederatedDescription)(t)}}copyInputValueDataByValueName(t,n,r){let i=new Map;for(let[a,o]of t){let c=this.copyInputValueData(o);this.handleInputValueInaccessibility(n,c,r),(0,Ee.getValueOrDefault)(this.coordsByNamedTypeName,c.namedTypeName,()=>new Set).add(c.federatedCoords),this.namedInputValueTypeNames.add(c.namedTypeName),this.recordTagNamesByCoords(c,`${r}.${o.name}`),i.set(a,c)}return i}copyFieldData(t,n){return t.directivesByDirectiveName.has(_e.SEMANTIC_NON_NULL)&&this.referencedPersistedDirectiveNames.add(_e.SEMANTIC_NON_NULL),{argumentDataByName:this.copyInputValueDataByValueName(t.argumentDataByName,n,t.federatedCoords),configureDescriptionDataBySubgraphName:(0,Ee.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByDirectiveName:(0,Ee.copyArrayValueMap)(t.directivesByDirectiveName),externalFieldDataBySubgraphName:(0,Ee.copyObjectValueMap)(t.externalFieldDataBySubgraphName),federatedCoords:t.federatedCoords,inheritedDirectiveNames:new Set,isInaccessible:t.isInaccessible,isShareableBySubgraphName:new Map(t.isShareableBySubgraphName),kind:t.kind,name:t.name,namedTypeKind:t.namedTypeKind,namedTypeName:t.namedTypeName,node:{arguments:[],directives:[],kind:t.kind,name:(0,Mr.stringToNameNode)(t.name),type:t.type},nullLevelsBySubgraphName:t.nullLevelsBySubgraphName,originalParentTypeName:t.originalParentTypeName,persistedDirectivesData:(0,Ie.extractPersistedDirectives)((0,Ie.newPersistedDirectivesData)(),t.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),renamedParentTypeName:t.renamedParentTypeName,subgraphNames:new Set(t.subgraphNames),type:t.type,description:(0,Ie.getInitialFederatedDescription)(t)}}copyEnumValueDataByName(t,n){let r=new Map;for(let[i,a]of t){let o=this.copyEnumValueData(a);this.recordTagNamesByCoords(o,o.federatedCoords),(n||(0,Ie.isNodeDataInaccessible)(o))&&this.inaccessibleCoords.add(o.federatedCoords),r.set(i,o)}return r}copyFieldDataByName(t,n){let r=new Map;for(let[i,a]of t){let o=n||(0,Ie.isNodeDataInaccessible)(a),c=this.copyFieldData(a,o);this.handleSubscriptionFilterDirective(c),(0,Ee.getValueOrDefault)(this.coordsByNamedTypeName,c.namedTypeName,()=>new Set).add(c.federatedCoords),this.namedOutputTypeNames.add(c.namedTypeName),this.recordTagNamesByCoords(c,c.federatedCoords),o&&this.inaccessibleCoords.add(c.federatedCoords),r.set(i,c)}return r}copyParentDefinitionData(t){let n=this.copyMutualParentDefinitionData(t);switch(t.kind){case Pe.Kind.ENUM_TYPE_DEFINITION:return Q(x({},n),{appearances:t.appearances,enumValueDataByName:this.copyEnumValueDataByName(t.enumValueDataByName,t.isInaccessible),isInaccessible:t.isInaccessible,kind:t.kind,node:{kind:t.kind,name:(0,Mr.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case Pe.Kind.INPUT_OBJECT_TYPE_DEFINITION:return Q(x({},n),{inputValueDataByName:this.copyInputValueDataByValueName(t.inputValueDataByName,t.isInaccessible,t.name),isInaccessible:t.isInaccessible,kind:t.kind,node:{kind:t.kind,name:(0,Mr.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case Pe.Kind.INTERFACE_TYPE_DEFINITION:return Q(x({},n),{fieldDataByName:this.copyFieldDataByName(t.fieldDataByName,t.isInaccessible),implementedInterfaceTypeNames:new Set(t.implementedInterfaceTypeNames),isEntity:t.isEntity,isInaccessible:t.isInaccessible,kind:t.kind,node:{kind:t.kind,name:(0,Mr.stringToNameNode)(t.name)},requireFetchReasonsFieldNames:new Set,subgraphNames:new Set(t.subgraphNames)});case Pe.Kind.OBJECT_TYPE_DEFINITION:return Q(x({},n),{fieldDataByName:this.copyFieldDataByName(t.fieldDataByName,t.isInaccessible),implementedInterfaceTypeNames:new Set(t.implementedInterfaceTypeNames),isEntity:t.isEntity,isInaccessible:t.isInaccessible,isRootType:t.isRootType,kind:t.kind,node:{kind:t.kind,name:(0,Mr.stringToNameNode)(t.renamedTypeName||t.name)},requireFetchReasonsFieldNames:new Set,renamedTypeName:t.renamedTypeName,subgraphNames:new Set(t.subgraphNames)});case Pe.Kind.SCALAR_TYPE_DEFINITION:return Q(x({},n),{kind:t.kind,node:{kind:t.kind,name:(0,Mr.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case Pe.Kind.UNION_TYPE_DEFINITION:return Q(x({},n),{kind:t.kind,node:{kind:t.kind,name:(0,Mr.stringToNameNode)(t.name)},memberByMemberTypeName:new Map(t.memberByMemberTypeName),subgraphNames:new Set(t.subgraphNames)})}}getParentTargetData({existingData:t,incomingData:n}){if(!t){let r=this.copyParentDefinitionData(n);return(0,Ie.isParentDataRootType)(r)&&(r.extensionType=gV.ExtensionType.NONE),r}return(0,Ie.extractPersistedDirectives)(t.persistedDirectivesData,n.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),t}upsertParentDefinitionData(t,n){let r=this.entityInterfaceFederationDataByTypeName.get(t.name),i=this.parentDefinitionDataByTypeName.get(t.name),a=this.getParentTargetData({existingData:i,incomingData:t});this.recordTagNamesByCoords(a);let o=(0,Ie.isNodeDataInaccessible)(a);if(o&&this.inaccessibleCoords.add(a.name),r&&r.interfaceObjectSubgraphNames.has(n)){if(i&&i.kind!==Pe.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,Fe.incompatibleParentTypeMergeError)({existingData:i,incomingSubgraphName:n}));return}a.kind=Pe.Kind.INTERFACE_TYPE_DEFINITION,a.node.kind=Pe.Kind.INTERFACE_TYPE_DEFINITION}if(!i){this.parentDefinitionDataByTypeName.set(a.name,a);return}if(a.kind!==t.kind&&(!r||!r.interfaceObjectSubgraphNames.has(n)||a.kind!==Pe.Kind.INTERFACE_TYPE_DEFINITION||t.kind!==Pe.Kind.OBJECT_TYPE_DEFINITION)){this.errors.push((0,Fe.incompatibleParentTypeMergeError)({existingData:a,incomingNodeType:(0,Ee.kindToNodeType)(t.kind),incomingSubgraphName:n}));return}switch((0,Ee.addNewObjectValueMapEntries)(t.configureDescriptionDataBySubgraphName,a.configureDescriptionDataBySubgraphName),(0,Ie.setLongestDescription)(a,t),(0,Ie.setParentDataExtensionType)(a,t),a.kind){case Pe.Kind.ENUM_TYPE_DEFINITION:if(!(0,Ie.areKindsEqual)(a,t))return;a.appearances+=1,a.isInaccessible||(a.isInaccessible=o),(0,Ee.addIterableValuesToSet)(t.subgraphNames,a.subgraphNames);for(let l of t.enumValueDataByName.values())this.upsertEnumValueData(a.enumValueDataByName,l,o);return;case Pe.Kind.INPUT_OBJECT_TYPE_DEFINITION:if(!(0,Ie.areKindsEqual)(a,t))return;o&&!a.isInaccessible&&this.propagateInaccessibilityToExistingChildren(a),a.isInaccessible||(a.isInaccessible=o),(0,Ee.addIterableValuesToSet)(t.subgraphNames,a.subgraphNames);for(let l of t.inputValueDataByName.values())this.upsertInputValueData(a.inputValueDataByName,l,a.name,a.isInaccessible);return;case Pe.Kind.INTERFACE_TYPE_DEFINITION:case Pe.Kind.OBJECT_TYPE_DEFINITION:let c=t;o&&!a.isInaccessible&&this.propagateInaccessibilityToExistingChildren(a),a.isInaccessible||(a.isInaccessible=o),(0,Ee.addIterableValuesToSet)(c.implementedInterfaceTypeNames,a.implementedInterfaceTypeNames),(0,Ee.addIterableValuesToSet)(c.subgraphNames,a.subgraphNames);for(let l of c.fieldDataByName.values())this.upsertFieldData(a.fieldDataByName,l,a.isInaccessible);return;case Pe.Kind.UNION_TYPE_DEFINITION:if(!(0,Ie.areKindsEqual)(a,t))return;(0,Ee.addMapEntries)(t.memberByMemberTypeName,a.memberByMemberTypeName),(0,Ee.addIterableValuesToSet)(t.subgraphNames,a.subgraphNames);return;default:(0,Ee.addIterableValuesToSet)(t.subgraphNames,a.subgraphNames);return}}propagateInaccessibilityToExistingChildren(t){switch(t.kind){case Pe.Kind.INPUT_OBJECT_TYPE_DEFINITION:for(let n of t.inputValueDataByName.values())this.inaccessibleCoords.add(n.federatedCoords);break;default:for(let n of t.fieldDataByName.values()){this.inaccessibleCoords.add(n.federatedCoords);for(let r of n.argumentDataByName.values())this.inaccessibleCoords.add(r.federatedCoords)}}}upsertPersistedDirectiveDefinitionData(t,n){let r=t.name,i=this.potentialPersistedDirectiveDefinitionDataByDirectiveName.get(r);if(!i){if(n>1)return;let a=new Map;for(let o of t.argumentDataByName.values())this.namedInputValueTypeNames.add(o.namedTypeName),this.upsertInputValueData(a,o,`@${t.name}`,!1);this.potentialPersistedDirectiveDefinitionDataByDirectiveName.set(r,{argumentDataByName:a,executableLocations:new Set(t.executableLocations),name:r,repeatable:t.repeatable,subgraphNames:new Set(t.subgraphNames),description:t.description});return}if(i.subgraphNames.size+1!==n){this.potentialPersistedDirectiveDefinitionDataByDirectiveName.delete(r);return}if((0,Ie.setMutualExecutableLocations)(i,t.executableLocations),i.executableLocations.size<1){this.potentialPersistedDirectiveDefinitionDataByDirectiveName.delete(r);return}for(let a of t.argumentDataByName.values())this.namedInputValueTypeNames.add((0,yV.getTypeNodeNamedTypeName)(a.type)),this.upsertInputValueData(i.argumentDataByName,a,`@${i.name}`,!1);(0,Ie.setLongestDescription)(i,t),i.repeatable&&(i.repeatable=t.repeatable),(0,Ee.addIterableValuesToSet)(t.subgraphNames,i.subgraphNames)}shouldUpdateFederatedFieldAbstractNamedType(t,n){if(!t)return!1;let r=this.concreteTypeNamesByAbstractTypeName.get(t);if(!r||r.size<1)return!1;for(let i of n)if(!r.has(i))return!1;return!0}updateTypeNodeNamedType(t,n){let r=t;for(let i=0;i<$E.MAXIMUM_TYPE_NESTING;i++){if(r.kind===Pe.Kind.NAMED_TYPE){r.name=(0,Mr.stringToNameNode)(n);return}r=r.type}}handleDisparateFieldNamedTypes(){for(let[t,n]of this.subgraphNamesByNamedTypeNameByFieldCoords){let r=t.split(_e.PERIOD);if(r.length!==2)continue;let i=this.parentDefinitionDataByTypeName.get(r[0]);if(!i){this.errors.push((0,Fe.undefinedTypeError)(r[0]));continue}if(i.kind!==Pe.Kind.INTERFACE_TYPE_DEFINITION&&i.kind!==Pe.Kind.OBJECT_TYPE_DEFINITION){this.errors.push((0,Fe.unexpectedNonCompositeOutputTypeError)(r[0],(0,Ee.kindToNodeType)(i.kind)));continue}let a=i.fieldDataByName.get(r[1]);if(!a){this.errors.push((0,Fe.unknownFieldDataError)(t));continue}let o=new Map,c=new Set,l="";for(let p of n.keys()){if(Bt.BASE_SCALARS.has(p)){this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));break}let y=this.parentDefinitionDataByTypeName.get(p);if(!y){this.errors.push((0,Fe.unknownNamedTypeError)(t,p));break}switch(y.kind){case Pe.Kind.INTERFACE_TYPE_DEFINITION:{o.set(y.name,y);break}case Pe.Kind.OBJECT_TYPE_DEFINITION:{if(c.add(y.name),c.size>1){this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}break}case Pe.Kind.UNION_TYPE_DEFINITION:{if(l){this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}l=p;break}default:{this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));break}}}if(o.size<1&&!l){this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}let d=l;if(o.size>0){if(l){this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}for(let p of o.keys()){d=p;for(let[y,I]of o)if(p!==y&&!I.implementedInterfaceTypeNames.has(p)){d="";break}if(d)break}}if(!this.shouldUpdateFederatedFieldAbstractNamedType(d,c)){this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}a.namedTypeName=d,this.updateTypeNodeNamedType(a.type,d)}}federateInternalSubgraphData(){let t=0,n=!1;for(let r of this.internalSubgraphBySubgraphName.values()){t+=1,this.currentSubgraphName=r.name,this.isVersionTwo||(this.isVersionTwo=r.isVersionTwo),(0,ode.renameRootTypes)(this,r);for(let i of r.parentDefinitionDataByTypeName.values())this.upsertParentDefinitionData(i,r.name);if(!n){if(!r.persistedDirectiveDefinitionDataByDirectiveName.size){n=!0;continue}for(let i of r.persistedDirectiveDefinitionDataByDirectiveName.values())this.upsertPersistedDirectiveDefinitionData(i,t);this.potentialPersistedDirectiveDefinitionDataByDirectiveName.size<1&&(n=!0)}}this.handleDisparateFieldNamedTypes()}handleInterfaceObjectForInternalGraph({entityData:t,internalSubgraph:n,interfaceObjectData:r,interfaceObjectNode:i,resolvableKeyFieldSets:a,subgraphName:o}){let c=this.internalGraph.addOrUpdateNode(t.typeName),l=this.internalGraph.addEntityDataNode(t.typeName);for(let p of i.satisfiedFieldSets)c.satisfiedFieldSets.add(p),a.has(p)&&l.addTargetSubgraphByFieldSet(p,o);let d=r.fieldDatasBySubgraphName.get(o);for(let{name:p,namedTypeName:y}of d||[])this.internalGraph.addEdge(c,this.internalGraph.addOrUpdateNode(y),p);this.internalGraph.addEdge(i,c,t.typeName,!0),this.addValidPrimaryKeyTargetsFromInterfaceObject(n,i.typeName,t,c)}handleEntityInterfaces(){var t;for(let[n,r]of this.entityInterfaceFederationDataByTypeName){let i=(0,Ee.getOrThrowError)(this.parentDefinitionDataByTypeName,n,_e.PARENT_DEFINITION_DATA);if(i.kind===Pe.Kind.INTERFACE_TYPE_DEFINITION)for(let a of r.interfaceObjectSubgraphNames){let o=(0,Ee.getOrThrowError)(this.internalSubgraphBySubgraphName,a,"internalSubgraphBySubgraphName"),c=o.configurationDataByTypeName,l=this.concreteTypeNamesByAbstractTypeName.get(n);if(!l)continue;let d=(0,Ee.getOrThrowError)(c,n,"configurationDataByTypeName"),p=d.keys;if(!p)continue;d.entityInterfaceConcreteTypeNames=new Set(r.concreteTypeNames),this.internalGraph.setSubgraphName(a);let y=this.internalGraph.addOrUpdateNode(n,{isAbstract:!0});for(let I of l){let v=(0,Ee.getOrThrowError)(this.parentDefinitionDataByTypeName,I,_e.PARENT_DEFINITION_DATA);if(!(0,xr.isObjectDefinitionData)(v))continue;let F=(0,Ee.getOrThrowError)(this.entityDataByTypeName,I,"entityDataByTypeName");F.subgraphNames.add(a);let k=c.get(I);if(k)if((0,Ee.addIterableValuesToSet)(d.fieldNames,k.fieldNames),!k.keys)k.keys=[...p];else e:for(let ie of p){for(let{selectionSet:Te}of k.keys)if(ie.selectionSet===Te)continue e;k.keys.push(ie)}else c.set(I,{fieldNames:new Set(d.fieldNames),isRootNode:!0,keys:[...p],typeName:I});let K=new Set;for(let ie of p.filter(Te=>!Te.disableEntityResolver))K.add(ie.selectionSet);let J=this.authorizationDataByParentTypeName.get(n),se=(0,Ee.getOrThrowError)(o.parentDefinitionDataByTypeName,n,"internalSubgraph.parentDefinitionDataByTypeName");if((0,xr.isObjectDefinitionData)(se)){for(let[ie,Te]of se.fieldDataByName){let de=`${I}.${ie}`;(0,Ee.getValueOrDefault)(this.fieldCoordsByNamedTypeName,Te.namedTypeName,()=>new Set).add(de);let Re=J==null?void 0:J.fieldAuthDataByFieldName.get(ie);if(Re){let ee=(0,Ee.getValueOrDefault)(this.authorizationDataByParentTypeName,I,()=>(0,xr.newAuthorizationData)(I));(0,xr.upsertFieldAuthorizationData)(ee.fieldAuthDataByFieldName,Re)||this.invalidORScopesCoords.add(de)}let xe=v.fieldDataByName.get(ie);if(xe){let ee=(t=Te.isShareableBySubgraphName.get(a))!=null?t:!1;xe.isShareableBySubgraphName.set(a,ee),xe.subgraphNames.add(a);let Se=Te.externalFieldDataBySubgraphName.get(a);if(!Se)continue;xe.externalFieldDataBySubgraphName.set(a,x({},Se));continue}let tt=i.isInaccessible||v.isInaccessible||Te.isInaccessible;v.fieldDataByName.set(ie,this.copyFieldData(Te,tt))}this.handleInterfaceObjectForInternalGraph({internalSubgraph:o,subgraphName:a,interfaceObjectData:r,interfaceObjectNode:y,resolvableKeyFieldSets:K,entityData:F})}}}}}fieldDataToGraphFieldData(t){var n;return{name:t.name,namedTypeName:t.namedTypeName,isLeaf:(0,xr.isNodeLeaf)((n=this.parentDefinitionDataByTypeName.get(t.namedTypeName))==null?void 0:n.kind),subgraphNames:t.subgraphNames}}getValidFlattenedPersistedDirectiveNodeArray(t){var i;let n=(0,xr.getNodeCoords)(t),r=[];for(let[a,o]of t.persistedDirectivesData.directivesByDirectiveName){if(a===_e.SEMANTIC_NON_NULL&&(0,Ie.isFieldData)(t)){r.push((0,Ee.generateSemanticNonNullDirective)((i=(0,Ee.getFirstEntry)(t.nullLevelsBySubgraphName))!=null?i:new Set([0])));continue}let c=this.persistedDirectiveDefinitionByDirectiveName.get(a);if(c){if(o.length<2){r.push(...o);continue}if(!c.repeatable){this.errors.push((0,Fe.invalidRepeatedFederatedDirectiveErrorMessage)(a,n));continue}r.push(...o)}}return r}getRouterPersistedDirectiveNodes(t){let n=[...t.persistedDirectivesData.tagDirectiveByName.values()];return t.persistedDirectivesData.isDeprecated&&n.push((0,Ie.generateDeprecatedDirective)(t.persistedDirectivesData.deprecatedReason)),n.push(...this.getValidFlattenedPersistedDirectiveNodeArray(t)),n}getFederatedGraphNodeDescription(t){if(t.configureDescriptionDataBySubgraphName.size<1)return t.description;let n=[],r="";for(let[i,{propagate:a,description:o}]of t.configureDescriptionDataBySubgraphName)a&&(n.push(i),r=o);if(n.length===1)return(0,Rc.getDescriptionFromString)(r);if(n.length<1)return t.description;this.errors.push((0,Fe.configureDescriptionPropagationError)((0,Ie.getDefinitionDataCoords)(t,!0),n))}getNodeForRouterSchemaByData(t){return t.node.name=(0,Mr.stringToNameNode)(t.name),t.node.description=this.getFederatedGraphNodeDescription(t),t.node.directives=this.getRouterPersistedDirectiveNodes(t),t.node}getNodeWithPersistedDirectivesByInputValueData(t){return t.node.name=(0,Mr.stringToNameNode)(t.name),t.node.type=t.type,t.node.description=this.getFederatedGraphNodeDescription(t),t.node.directives=this.getRouterPersistedDirectiveNodes(t),t.includeDefaultValue&&(t.node.defaultValue=t.defaultValue),t.node}getValidFieldArgumentNodes(t){let n=[],r=[],i=[],a=`${t.renamedParentTypeName}.${t.name}`;for(let[o,c]of t.argumentDataByName)t.subgraphNames.size===c.subgraphNames.size?(r.push(o),n.push(this.getNodeWithPersistedDirectivesByInputValueData(c))):(0,Ie.isTypeRequired)(c.type)&&i.push({inputValueName:o,missingSubgraphs:(0,Ee.getEntriesNotInHashSet)(t.subgraphNames,c.subgraphNames),requiredSubgraphs:[...c.requiredSubgraphNames]});return i.length>0?this.errors.push((0,Fe.invalidRequiredInputValueError)(_e.FIELD,a,i)):r.length>0&&((0,Ee.getValueOrDefault)(this.fieldConfigurationByFieldCoords,a,()=>({argumentNames:r,fieldName:t.name,typeName:t.renamedParentTypeName})).argumentNames=r),n}getNodeWithPersistedDirectivesByFieldData(t,n){return t.node.arguments=n,t.node.name=(0,Mr.stringToNameNode)(t.name),t.node.type=t.type,t.node.description=this.getFederatedGraphNodeDescription(t),t.node.directives=this.getRouterPersistedDirectiveNodes(t),t.node}validateSemanticNonNull(t){let n;for(let r of t.nullLevelsBySubgraphName.values()){if(!n){n=r;continue}if(n.size!==r.size){this.errors.push((0,Fe.semanticNonNullInconsistentLevelsError)(t));return}for(let i of r)if(!n.has(i)){this.errors.push((0,Fe.semanticNonNullInconsistentLevelsError)(t));return}}}validateOneOfDirective({data:t,inputValueNodes:n,requiredFieldNames:r}){return t.directivesByDirectiveName.has(_e.ONE_OF)?r.size>0?(this.errors.push((0,Fe.oneOfRequiredFieldsError)({requiredFieldNames:Array.from(r),typeName:t.name})),!1):(n.length===1&&this.warnings.push((0,ude.singleFederatedInputFieldOneOfWarning)({fieldName:n[0].name.value,typeName:t.name})),!0):!0}pushParentDefinitionDataToDocumentDefinitions(t){for(let[n,r]of this.parentDefinitionDataByTypeName)switch(r.extensionType!==gV.ExtensionType.NONE&&this.errors.push((0,Fe.noBaseDefinitionForExtensionError)((0,Ee.kindToNodeType)(r.kind),n)),r.kind){case Pe.Kind.ENUM_TYPE_DEFINITION:{let i=[],a=[],o=this.getEnumValueMergeMethod(n);(0,Ie.propagateAuthDirectives)(r,this.authorizationDataByParentTypeName.get(n));for(let c of r.enumValueDataByName.values()){let l=(0,Ie.getNodeForRouterSchemaByData)(c,this.persistedDirectiveDefinitionByDirectiveName,this.errors),d=(0,Ie.isNodeDataInaccessible)(c),p=Q(x({},c.node),{directives:(0,Ie.getClientPersistedDirectiveNodes)(c)});switch(o){case Ie.MergeMethod.CONSISTENT:!d&&r.appearances>c.appearances&&this.errors.push((0,Fe.incompatibleSharedEnumError)(n)),i.push(l),d||a.push(p);break;case Ie.MergeMethod.INTERSECTION:r.appearances===c.appearances&&(i.push(l),d||a.push(p));break;default:i.push(l),d||a.push(p);break}}if(r.node.values=i,this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,Ie.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}if(a.length<1){this.errors.push((0,Fe.allChildDefinitionsAreInaccessibleError)((0,Ee.kindToNodeType)(r.kind),n,_e.ENUM_VALUE));break}this.clientDefinitions.push(Q(x({},r.node),{directives:(0,Ie.getClientPersistedDirectiveNodes)(r),values:a}));break}case Pe.Kind.INPUT_OBJECT_TYPE_DEFINITION:{let i=new Array,a=new Array,o=new Array,c=new Set;for(let[l,d]of r.inputValueDataByName)if((0,Ie.isTypeRequired)(d.type)&&c.add(l),r.subgraphNames.size===d.subgraphNames.size){if(a.push(this.getNodeWithPersistedDirectivesByInputValueData(d)),(0,Ie.isNodeDataInaccessible)(d))continue;o.push(Q(x({},d.node),{directives:(0,Ie.getClientPersistedDirectiveNodes)(d)}))}else(0,Ie.isTypeRequired)(d.type)&&i.push({inputValueName:l,missingSubgraphs:(0,Ee.getEntriesNotInHashSet)(r.subgraphNames,d.subgraphNames),requiredSubgraphs:[...d.requiredSubgraphNames]});if(i.length>0){this.errors.push((0,Fe.invalidRequiredInputValueError)(_e.INPUT_OBJECT,n,i,!1));break}if(!this.validateOneOfDirective({data:r,inputValueNodes:a,requiredFieldNames:c}))break;if(r.node.fields=a,this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,Ie.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r);break}if(o.length<1){this.errors.push((0,Fe.allChildDefinitionsAreInaccessibleError)((0,Ee.kindToNodeType)(r.kind),n,"Input field"));break}this.clientDefinitions.push(Q(x({},r.node),{directives:(0,Ie.getClientPersistedDirectiveNodes)(r),fields:o}));break}case Pe.Kind.INTERFACE_TYPE_DEFINITION:case Pe.Kind.OBJECT_TYPE_DEFINITION:{let i=[],a=[],o=new Map,c=(0,Ie.newInvalidFieldNames)(),l=r.kind===Pe.Kind.OBJECT_TYPE_DEFINITION,d=this.authorizationDataByParentTypeName.get(n);(0,Ie.propagateAuthDirectives)(r,d);for(let[y,I]of r.fieldDataByName){(0,Ie.propagateFieldAuthDirectives)(I,d);let v=this.getValidFieldArgumentNodes(I);l&&(0,Ie.validateExternalAndShareable)(I,c),this.validateSemanticNonNull(I),i.push(this.getNodeWithPersistedDirectivesByFieldData(I,v)),!(0,Ie.isNodeDataInaccessible)(I)&&(a.push((0,Ie.getClientSchemaFieldNodeByFieldData)(I)),o.set(y,this.fieldDataToGraphFieldData(I)))}if(l&&(c.byShareable.size>0&&this.errors.push((0,Fe.invalidFieldShareabilityError)(r,c.byShareable)),c.subgraphNamesByExternalFieldName.size>0&&this.errors.push((0,Fe.allExternalFieldInstancesError)(n,c.subgraphNamesByExternalFieldName))),r.node.fields=i,this.internalGraph.initializeNode(n,o),r.implementedInterfaceTypeNames.size>0){t.push({data:r,clientSchemaFieldNodes:a});break}this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r));let p=(0,sde.isNodeQuery)(n);if((0,Ie.isNodeDataInaccessible)(r)){if(p){this.errors.push(Fe.inaccessibleQueryRootTypeError);break}this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}if(a.length<1){let y=p?(0,Fe.noQueryRootTypeError)(!1):(0,Fe.allChildDefinitionsAreInaccessibleError)((0,Ee.kindToNodeType)(r.kind),n,_e.FIELD);this.errors.push(y);break}this.clientDefinitions.push(Q(x({},r.node),{directives:(0,Ie.getClientPersistedDirectiveNodes)(r),fields:a}));break}case Pe.Kind.SCALAR_TYPE_DEFINITION:{if(Bt.BASE_SCALARS.has(n))break;if((0,Ie.propagateAuthDirectives)(r,this.authorizationDataByParentTypeName.get(n)),this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,Ie.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}this.clientDefinitions.push(Q(x({},r.node),{directives:(0,Ie.getClientPersistedDirectiveNodes)(r)}));break}case Pe.Kind.UNION_TYPE_DEFINITION:{if(r.node.types=(0,xr.mapToArrayOfValues)(r.memberByMemberTypeName),this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,Ie.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}let i=this.getClientSchemaUnionMembers(r);if(i.length<1){this.errors.push((0,Fe.allChildDefinitionsAreInaccessibleError)(_e.UNION,n,"union member type"));break}this.clientDefinitions.push(Q(x({},r.node),{directives:(0,Ie.getClientPersistedDirectiveNodes)(r),types:i}));break}}}pushNamedTypeAuthDataToFields(){var t;for(let[n,r]of this.authorizationDataByParentTypeName){if(!r.requiresAuthentication&&r.requiredScopes.length<1)continue;let i=this.fieldCoordsByNamedTypeName.get(n);if(i)for(let a of i){let o=a.split(_e.PERIOD);switch(o.length){case 2:{let c=(0,Ee.getValueOrDefault)(this.authorizationDataByParentTypeName,o[0],()=>(0,xr.newAuthorizationData)(o[0])),l=(0,Ee.getValueOrDefault)(c.fieldAuthDataByFieldName,o[1],()=>(0,xr.newFieldAuthorizationData)(o[1]));(t=l.inheritedData).requiresAuthentication||(t.requiresAuthentication=r.requiresAuthentication),l.inheritedData.requiredScopes.length*r.requiredScopes.length>Bt.MAX_OR_SCOPES?this.invalidORScopesCoords.add(a):(l.inheritedData.requiredScopesByOR=(0,xr.mergeRequiredScopesByAND)(l.inheritedData.requiredScopesByOR,r.requiredScopesByOR),l.inheritedData.requiredScopes=(0,xr.mergeRequiredScopesByAND)(l.inheritedData.requiredScopes,r.requiredScopes));break}default:break}}}}federateSubgraphData(){this.federateInternalSubgraphData(),this.handleEntityInterfaces(),this.generateTagData(),this.pushVersionTwoDirectiveDefinitionsToDocumentDefinitions(),this.pushNamedTypeAuthDataToFields()}validateInterfaceImplementationsAndPushToDocumentDefinitions(t){for(let{data:n,clientSchemaFieldNodes:r}of t){if(n.node.interfaces=this.getValidImplementedInterfaces(n),this.routerDefinitions.push((0,Ie.getNodeForRouterSchemaByData)(n,this.persistedDirectiveDefinitionByDirectiveName,this.errors)),(0,Ie.isNodeDataInaccessible)(n)){this.validateReferencesOfInaccessibleType(n),this.internalGraph.setNodeInaccessible(n.name);continue}let i=[];for(let a of n.implementedInterfaceTypeNames)this.inaccessibleCoords.has(a)||i.push((0,Mr.stringToNamedTypeNode)(a));this.clientDefinitions.push(Q(x({},n.node),{directives:(0,Ie.getClientPersistedDirectiveNodes)(n),fields:r,interfaces:i}))}}pushVersionTwoDirectiveDefinitionsToDocumentDefinitions(){if(!this.isVersionTwo){this.referencedPersistedDirectiveNames.has(_e.SEMANTIC_NON_NULL)&&(this.clientDefinitions.push(Bt.SEMANTIC_NON_NULL_DEFINITION),this.routerDefinitions=[Bt.DEPRECATED_DEFINITION,Bt.SEMANTIC_NON_NULL_DEFINITION,Bt.TAG_DEFINITION]);return}if(this.referencedPersistedDirectiveNames.has(_e.SEMANTIC_NON_NULL)){this.clientDefinitions.push(Bt.SEMANTIC_NON_NULL_DEFINITION),this.routerDefinitions=[Bt.AUTHENTICATED_DEFINITION,Bt.DEPRECATED_DEFINITION,Bt.INACCESSIBLE_DEFINITION,Bt.REQUIRES_SCOPES_DEFINITION,Bt.SEMANTIC_NON_NULL_DEFINITION,Bt.TAG_DEFINITION,Bt.SCOPE_SCALAR_DEFINITION];return}this.routerDefinitions=[Bt.AUTHENTICATED_DEFINITION,Bt.DEPRECATED_DEFINITION,Bt.INACCESSIBLE_DEFINITION,Bt.REQUIRES_SCOPES_DEFINITION,Bt.TAG_DEFINITION,Bt.SCOPE_SCALAR_DEFINITION]}validatePathSegmentInaccessibility(t){if(!t)return!1;let r=t.split(_e.LEFT_PARENTHESIS)[0].split(_e.PERIOD),i=r[0];for(let a=0;a0&&this.errors.push((0,Fe.invalidReferencesOfInaccessibleTypeError)((0,Ee.kindToNodeType)(t.kind),t.name,r))}validateQueryRootType(){let t=this.parentDefinitionDataByTypeName.get(_e.QUERY);if(!t||t.kind!==Pe.Kind.OBJECT_TYPE_DEFINITION||t.fieldDataByName.size<1){this.errors.push((0,Fe.noQueryRootTypeError)());return}for(let n of t.fieldDataByName.values())if(!(0,Ie.isNodeDataInaccessible)(n))return;this.errors.push((0,Fe.noQueryRootTypeError)())}validateSubscriptionFieldConditionFieldPath(t,n,r,i,a){let o=t.split(_e.PERIOD);if(o.length<1)return a.push((0,Fe.invalidSubscriptionFieldConditionFieldPathErrorMessage)(r,t)),[];let c=n;if(this.inaccessibleCoords.has(c.renamedTypeName))return a.push((0,Fe.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,o[0],c.renamedTypeName)),[];let l="";for(let d=0;d0?`.${p}`:p,c.kind!==Pe.Kind.OBJECT_TYPE_DEFINITION)return a.push((0,Fe.invalidSubscriptionFieldConditionFieldPathParentErrorMessage)(r,t,l)),[];let y=c.fieldDataByName.get(p);if(!y)return a.push((0,Fe.undefinedSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,p,c.renamedTypeName)),[];let I=`${c.renamedTypeName}.${p}`;if(!y.subgraphNames.has(i))return a.push((0,Fe.invalidSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,I,i)),[];if(this.inaccessibleCoords.has(I))return a.push((0,Fe.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,I)),[];if(Bt.BASE_SCALARS.has(y.namedTypeName)){c={kind:Pe.Kind.SCALAR_TYPE_DEFINITION,name:y.namedTypeName};continue}c=(0,Ee.getOrThrowError)(this.parentDefinitionDataByTypeName,y.namedTypeName,_e.PARENT_DEFINITION_DATA)}return(0,Ie.isLeafKind)(c.kind)?o:(a.push((0,Fe.nonLeafSubscriptionFieldConditionFieldPathFinalFieldErrorMessage)(r,t,o[o.length-1],(0,Ee.kindToNodeType)(c.kind),c.name)),[])}validateSubscriptionFieldCondition(t,n,r,i,a,o,c){if(i>$E.MAX_SUBSCRIPTION_FILTER_DEPTH||this.isMaxDepth)return c.push((0,Fe.subscriptionFilterConditionDepthExceededErrorMessage)(a)),this.isMaxDepth=!0,!1;let l=!1,d=new Set([_e.FIELD_PATH,_e.VALUES]),p=new Set,y=new Set,I=[];for(let v of t.fields){let F=v.name.value,k=a+`.${F}`;switch(F){case _e.FIELD_PATH:{if(d.has(_e.FIELD_PATH))d.delete(_e.FIELD_PATH);else{l=!0,p.add(_e.FIELD_PATH);break}if(v.value.kind!==Pe.Kind.STRING){I.push((0,Fe.invalidInputFieldTypeErrorMessage)(k,_e.STRING,(0,Ee.kindToNodeType)(v.value.kind))),l=!0;break}let K=this.validateSubscriptionFieldConditionFieldPath(v.value.value,r,k,o,I);if(K.length<1){l=!0;break}n.fieldPath=K;break}case _e.VALUES:{if(d.has(_e.VALUES))d.delete(_e.VALUES);else{l=!0,p.add(_e.VALUES);break}let K=v.value.kind;if(K==Pe.Kind.NULL||K==Pe.Kind.OBJECT){I.push((0,Fe.invalidInputFieldTypeErrorMessage)(k,_e.LIST,(0,Ee.kindToNodeType)(v.value.kind))),l=!0;break}if(K!==Pe.Kind.LIST){n.values=[(0,Ie.getSubscriptionFilterValue)(v.value)];break}let J=new Set,se=[];for(let ie=0;ie0){I.push((0,Fe.subscriptionFieldConditionInvalidValuesArrayErrorMessage)(k,se));continue}if(J.size<1){l=!0,I.push((0,Fe.subscriptionFieldConditionEmptyValuesArrayErrorMessage)(k));continue}n.values=[...J];break}default:l=!0,y.add(F)}}return l?(c.push((0,Fe.subscriptionFieldConditionInvalidInputFieldErrorMessage)(a,[...d],[...p],[...y],I)),!1):!0}validateSubscriptionFilterCondition(t,n,r,i,a,o,c){if(i>$E.MAX_SUBSCRIPTION_FILTER_DEPTH||this.isMaxDepth)return c.push((0,Fe.subscriptionFilterConditionDepthExceededErrorMessage)(a)),this.isMaxDepth=!0,!1;if(i+=1,t.fields.length!==1)return c.push((0,Fe.subscriptionFilterConditionInvalidInputFieldNumberErrorMessage)(a,t.fields.length)),!1;let l=t.fields[0],d=l.name.value;if(!IV.SUBSCRIPTION_FILTER_INPUT_NAMES.has(d))return c.push((0,Fe.subscriptionFilterConditionInvalidInputFieldErrorMessage)(a,d)),!1;let p=a+`.${d}`;switch(l.value.kind){case Pe.Kind.OBJECT:switch(d){case _e.IN_UPPER:return n.in={fieldPath:[],values:[]},this.validateSubscriptionFieldCondition(l.value,n.in,r,i,a+".IN",o,c);case _e.NOT_UPPER:return n.not={},this.validateSubscriptionFilterCondition(l.value,n.not,r,i,a+".NOT",o,c);default:return c.push((0,Fe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(p,_e.LIST,_e.OBJECT)),!1}case Pe.Kind.LIST:{let y=[];switch(d){case _e.AND_UPPER:{n.and=y;break}case _e.OR_UPPER:{n.or=y;break}default:return c.push((0,Fe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(p,_e.OBJECT,_e.LIST)),!1}let I=l.value.values.length;if(I<1||I>5)return c.push((0,Fe.subscriptionFilterArrayConditionInvalidLengthErrorMessage)(p,I)),!1;let v=!0,F=[];for(let k=0;k0?(c.push((0,Fe.subscriptionFilterArrayConditionInvalidItemTypeErrorMessage)(p,F)),!1):v}default:{let y=IV.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES.has(d)?_e.LIST:_e.OBJECT;return c.push((0,Fe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(p,y,(0,Ee.kindToNodeType)(l.value.kind))),!1}}}validateSubscriptionFilterAndGenerateConfiguration(t,n,r,i,a,o){if(!t.arguments||t.arguments.length!==1)return;let c=t.arguments[0];if(c.value.kind!==Pe.Kind.OBJECT){this.errors.push((0,Fe.invalidSubscriptionFilterDirectiveError)(r,[(0,Fe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(_e.CONDITION,_e.OBJECT,(0,Ee.kindToNodeType)(c.value.kind))]));return}let l={},d=[];if(!this.validateSubscriptionFilterCondition(c.value,l,n,0,_e.CONDITION,o,d)){this.errors.push((0,Fe.invalidSubscriptionFilterDirectiveError)(r,d)),this.isMaxDepth=!1;return}(0,Ee.getValueOrDefault)(this.fieldConfigurationByFieldCoords,r,()=>({argumentNames:[],fieldName:i,typeName:a})).subscriptionFilterCondition=l}validateSubscriptionFiltersAndGenerateConfiguration(){for(let[t,n]of this.subscriptionFilterDataByFieldPath){if(this.inaccessibleCoords.has(t))continue;let r=this.parentDefinitionDataByTypeName.get(n.fieldData.namedTypeName);if(!r){this.errors.push((0,Fe.invalidSubscriptionFilterDirectiveError)(t,[(0,Fe.subscriptionFilterNamedTypeErrorMessage)(n.fieldData.namedTypeName)]));continue}(0,Ie.isNodeDataInaccessible)(r)||r.kind===Pe.Kind.OBJECT_TYPE_DEFINITION&&this.validateSubscriptionFilterAndGenerateConfiguration(n.directive,r,t,n.fieldData.name,n.fieldData.renamedParentTypeName,n.directiveSubgraphName)}}buildFederationResult(){this.subscriptionFilterDataByFieldPath.size>0&&this.validateSubscriptionFiltersAndGenerateConfiguration(),this.invalidORScopesCoords.size>0&&this.errors.push((0,Fe.orScopesLimitError)(Bt.MAX_OR_SCOPES,[...this.invalidORScopesCoords]));for(let a of this.potentialPersistedDirectiveDefinitionDataByDirectiveName.values())(0,Ie.addValidPersistedDirectiveDefinitionNodeByData)(this.routerDefinitions,a,this.persistedDirectiveDefinitionByDirectiveName,this.errors);let t=[];this.pushParentDefinitionDataToDocumentDefinitions(t),this.validateInterfaceImplementationsAndPushToDocumentDefinitions(t),this.validateQueryRootType();for(let a of this.inaccessibleRequiredInputValueErrorByCoords.values())this.errors.push(a);if(this.errors.length>0)return{errors:this.errors,success:!1,warnings:this.warnings};if(!this.disableResolvabilityValidation&&this.internalSubgraphBySubgraphName.size>1){let a=this.internalGraph.validate();if(!a.success)return{errors:a.errors,success:!1,warnings:this.warnings}}let n={kind:Pe.Kind.DOCUMENT,definitions:this.routerDefinitions},r=(0,Pe.buildASTSchema)({kind:Pe.Kind.DOCUMENT,definitions:this.clientDefinitions},{assumeValid:!0,assumeValidSDL:!0}),i=new Map;for(let a of this.internalSubgraphBySubgraphName.values())i.set(a.name,{configurationDataByTypeName:a.configurationDataByTypeName,directiveDefinitionByDirectiveName:a.directiveDefinitionByDirectiveName,isVersionTwo:a.isVersionTwo,parentDefinitionDataByTypeName:a.parentDefinitionDataByTypeName,schema:a.schema});for(let a of this.authorizationDataByParentTypeName.values())(0,xr.upsertAuthorizationConfiguration)(this.fieldConfigurationByFieldCoords,a);return x({fieldConfigurations:Array.from(this.fieldConfigurationByFieldCoords.values()),subgraphConfigBySubgraphName:i,federatedGraphAST:n,federatedGraphSchema:(0,Pe.buildASTSchema)(n,{assumeValid:!0,assumeValidSDL:!0}),federatedGraphClientSchema:r,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,success:!0,warnings:this.warnings},this.getClientSchemaObjectBoolean())}getClientSchemaObjectBoolean(){return this.inaccessibleCoords.size<1&&this.tagNamesByCoords.size<1?{}:{shouldIncludeClientSchema:!0}}handleChildTagExclusions(t,n,r,i){let a=n.size;for(let[o,c]of r){let l=(0,Ee.getOrThrowError)(n,o,`${t.name}.childDataByChildName`);if((0,Ie.isNodeDataInaccessible)(l)){a-=1;continue}i.isDisjointFrom(c.tagNames)||((0,Ee.getValueOrDefault)(l.persistedDirectivesData.directivesByDirectiveName,_e.INACCESSIBLE,()=>[(0,Ee.generateSimpleDirective)(_e.INACCESSIBLE)]),this.inaccessibleCoords.add(`${t.name}.${o}`),a-=1)}a<1&&(t.persistedDirectivesData.directivesByDirectiveName.set(_e.INACCESSIBLE,[(0,Ee.generateSimpleDirective)(_e.INACCESSIBLE)]),this.inaccessibleCoords.add(t.name))}handleChildTagInclusions(t,n,r,i){let a=n.size;for(let[o,c]of n){if((0,Ie.isNodeDataInaccessible)(c)){a-=1;continue}let l=r.get(o);(!l||i.isDisjointFrom(l.tagNames))&&((0,Ee.getValueOrDefault)(c.persistedDirectivesData.directivesByDirectiveName,_e.INACCESSIBLE,()=>[(0,Ee.generateSimpleDirective)(_e.INACCESSIBLE)]),this.inaccessibleCoords.add(`${t.name}.${o}`),a-=1)}a<1&&(t.persistedDirectivesData.directivesByDirectiveName.set(_e.INACCESSIBLE,[(0,Ee.generateSimpleDirective)(_e.INACCESSIBLE)]),this.inaccessibleCoords.add(t.name))}buildFederationContractResult(t){if(this.isVersionTwo||this.routerDefinitions.push(Bt.INACCESSIBLE_DEFINITION),t.tagNamesToExclude.size>0)for(let[o,c]of this.parentTagDataByTypeName){let l=(0,Ee.getOrThrowError)(this.parentDefinitionDataByTypeName,o,_e.PARENT_DEFINITION_DATA);if(!(0,Ie.isNodeDataInaccessible)(l)){if(!t.tagNamesToExclude.isDisjointFrom(c.tagNames)){l.persistedDirectivesData.directivesByDirectiveName.set(_e.INACCESSIBLE,[(0,Ee.generateSimpleDirective)(_e.INACCESSIBLE)]),this.inaccessibleCoords.add(o);continue}if(!(c.childTagDataByChildName.size<1))switch(l.kind){case Pe.Kind.SCALAR_TYPE_DEFINITION:case Pe.Kind.UNION_TYPE_DEFINITION:break;case Pe.Kind.ENUM_TYPE_DEFINITION:{this.handleChildTagExclusions(l,l.enumValueDataByName,c.childTagDataByChildName,t.tagNamesToExclude);break}case Pe.Kind.INPUT_OBJECT_TYPE_DEFINITION:{this.handleChildTagExclusions(l,l.inputValueDataByName,c.childTagDataByChildName,t.tagNamesToExclude);break}default:{let d=l.fieldDataByName.size;for(let[p,y]of c.childTagDataByChildName){let I=(0,Ee.getOrThrowError)(l.fieldDataByName,p,`${o}.fieldDataByFieldName`);if((0,Ie.isNodeDataInaccessible)(I)){d-=1;continue}if(!t.tagNamesToExclude.isDisjointFrom(y.tagNames)){(0,Ee.getValueOrDefault)(I.persistedDirectivesData.directivesByDirectiveName,_e.INACCESSIBLE,()=>[(0,Ee.generateSimpleDirective)(_e.INACCESSIBLE)]),this.inaccessibleCoords.add(I.federatedCoords),d-=1;continue}for(let[v,F]of y.tagNamesByArgumentName){let k=(0,Ee.getOrThrowError)(I.argumentDataByName,v,`${p}.argumentDataByArgumentName`);(0,Ie.isNodeDataInaccessible)(k)||t.tagNamesToExclude.isDisjointFrom(F)||((0,Ee.getValueOrDefault)(k.persistedDirectivesData.directivesByDirectiveName,_e.INACCESSIBLE,()=>[(0,Ee.generateSimpleDirective)(_e.INACCESSIBLE)]),this.inaccessibleCoords.add(k.federatedCoords))}}d<1&&(l.persistedDirectivesData.directivesByDirectiveName.set(_e.INACCESSIBLE,[(0,Ee.generateSimpleDirective)(_e.INACCESSIBLE)]),this.inaccessibleCoords.add(o))}}}}else if(t.tagNamesToInclude.size>0)for(let[o,c]of this.parentDefinitionDataByTypeName){if((0,Ie.isNodeDataInaccessible)(c))continue;let l=this.parentTagDataByTypeName.get(o);if(!l){c.persistedDirectivesData.directivesByDirectiveName.set(_e.INACCESSIBLE,[(0,Ee.generateSimpleDirective)(_e.INACCESSIBLE)]),this.inaccessibleCoords.add(o);continue}if(t.tagNamesToInclude.isDisjointFrom(l.tagNames)){if(l.childTagDataByChildName.size<1){c.persistedDirectivesData.directivesByDirectiveName.set(_e.INACCESSIBLE,[(0,Ee.generateSimpleDirective)(_e.INACCESSIBLE)]),this.inaccessibleCoords.add(o);continue}switch(c.kind){case Pe.Kind.SCALAR_TYPE_DEFINITION:case Pe.Kind.UNION_TYPE_DEFINITION:continue;case Pe.Kind.ENUM_TYPE_DEFINITION:this.handleChildTagInclusions(c,c.enumValueDataByName,l.childTagDataByChildName,t.tagNamesToInclude);break;case Pe.Kind.INPUT_OBJECT_TYPE_DEFINITION:this.handleChildTagInclusions(c,c.inputValueDataByName,l.childTagDataByChildName,t.tagNamesToInclude);break;default:let d=c.fieldDataByName.size;for(let[p,y]of c.fieldDataByName){if((0,Ie.isNodeDataInaccessible)(y)){d-=1;continue}let I=l.childTagDataByChildName.get(p);(!I||t.tagNamesToInclude.isDisjointFrom(I.tagNames))&&((0,Ee.getValueOrDefault)(y.persistedDirectivesData.directivesByDirectiveName,_e.INACCESSIBLE,()=>[(0,Ee.generateSimpleDirective)(_e.INACCESSIBLE)]),this.inaccessibleCoords.add(y.federatedCoords),d-=1)}d<1&&(c.persistedDirectivesData.directivesByDirectiveName.set(_e.INACCESSIBLE,[(0,Ee.generateSimpleDirective)(_e.INACCESSIBLE)]),this.inaccessibleCoords.add(o))}}}this.subscriptionFilterDataByFieldPath.size>0&&this.validateSubscriptionFiltersAndGenerateConfiguration();for(let o of this.potentialPersistedDirectiveDefinitionDataByDirectiveName.values())(0,Ie.addValidPersistedDirectiveDefinitionNodeByData)(this.routerDefinitions,o,this.persistedDirectiveDefinitionByDirectiveName,this.errors);let n=[];if(this.pushParentDefinitionDataToDocumentDefinitions(n),this.validateInterfaceImplementationsAndPushToDocumentDefinitions(n),this.validateQueryRootType(),this.errors.length>0)return{errors:this.errors,success:!1,warnings:this.warnings};let r={kind:Pe.Kind.DOCUMENT,definitions:this.routerDefinitions},i=(0,Pe.buildASTSchema)({kind:Pe.Kind.DOCUMENT,definitions:this.clientDefinitions},{assumeValid:!0,assumeValidSDL:!0}),a=new Map;for(let o of this.internalSubgraphBySubgraphName.values())a.set(o.name,{configurationDataByTypeName:o.configurationDataByTypeName,directiveDefinitionByDirectiveName:o.directiveDefinitionByDirectiveName,isVersionTwo:o.isVersionTwo,parentDefinitionDataByTypeName:o.parentDefinitionDataByTypeName,schema:o.schema});for(let o of this.authorizationDataByParentTypeName.values())(0,xr.upsertAuthorizationConfiguration)(this.fieldConfigurationByFieldCoords,o);return x({fieldConfigurations:Array.from(this.fieldConfigurationByFieldCoords.values()),subgraphConfigBySubgraphName:a,federatedGraphAST:r,federatedGraphSchema:(0,Pe.buildASTSchema)(r,{assumeValid:!0,assumeValidSDL:!0}),federatedGraphClientSchema:i,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,success:!0,warnings:this.warnings},this.getClientSchemaObjectBoolean())}federateSubgraphsInternal(){return this.federateSubgraphData(),this.buildFederationResult()}};Pc.FederationFactory=QE;function vD({disableResolvabilityValidation:e,subgraphs:t}){if(t.length<1)return{errors:[Fe.minimumSubgraphRequirementError],success:!1,warnings:[]};let n=(0,ade.batchNormalize)(t);if(!n.success)return{errors:n.errors,success:!1,warnings:n.warnings};let r=new Map,i=new Map;for(let[c,l]of n.internalSubgraphBySubgraphName)for(let[d,p]of l.entityInterfaces){let y=r.get(d);if(!y){r.set(d,(0,xr.newEntityInterfaceFederationData)(p,c));continue}(0,xr.upsertEntityInterfaceFederationData)(y,p,c)}let a=new Array,o=new Map;for(let[c,l]of r){let d=l.concreteTypeNames.size;for(let[p,y]of l.subgraphDataByTypeName){let I=(0,Ee.getValueOrDefault)(o,p,()=>new Set);if((0,Ee.addIterableValuesToSet)(y.concreteTypeNames,I),!y.isInterfaceObject){y.resolvable&&y.concreteTypeNames.size!==d&&(0,Ee.getValueOrDefault)(i,c,()=>new Array).push({subgraphName:p,definedConcreteTypeNames:new Set(y.concreteTypeNames),requiredConcreteTypeNames:new Set(l.concreteTypeNames)});continue}(0,Ee.addIterableValuesToSet)(l.concreteTypeNames,I);let{parentDefinitionDataByTypeName:v}=(0,Ee.getOrThrowError)(n.internalSubgraphBySubgraphName,p,"internalSubgraphBySubgraphName"),F=[];for(let k of l.concreteTypeNames)v.has(k)&&F.push(k);F.length>0&&a.push((0,Fe.invalidInterfaceObjectImplementationDefinitionsError)(c,p,F))}}for(let[c,l]of i){let d=new Array;for(let p of l){let y=o.get(p.subgraphName);if(!y){d.push(p);continue}let I=p.requiredConcreteTypeNames.intersection(y);p.requiredConcreteTypeNames.size!==I.size&&(p.definedConcreteTypeNames=I,d.push(p))}if(d.length>0){i.set(c,d);continue}i.delete(c)}return i.size>0&&a.push((0,Fe.undefinedEntityInterfaceImplementationsError)(i,r)),a.length>0?{errors:a,success:!1,warnings:n.warnings}:{federationFactory:new QE({authorizationDataByParentTypeName:n.authorizationDataByParentTypeName,concreteTypeNamesByAbstractTypeName:n.concreteTypeNamesByAbstractTypeName,disableResolvabilityValidation:e,entityDataByTypeName:n.entityDataByTypeName,entityInterfaceFederationDataByTypeName:r,fieldCoordsByNamedTypeName:n.fieldCoordsByNamedTypeName,internalSubgraphBySubgraphName:n.internalSubgraphBySubgraphName,internalGraph:n.internalGraph,warnings:n.warnings}),success:!0,warnings:n.warnings}}function cde({disableResolvabilityValidation:e,subgraphs:t}){let n=vD({subgraphs:t,disableResolvabilityValidation:e});return n.success?n.federationFactory.federateSubgraphsInternal():{errors:n.errors,success:!1,warnings:n.warnings}}function lde({subgraphs:e,tagOptionsByContractName:t,disableResolvabilityValidation:n}){let r=vD({subgraphs:e,disableResolvabilityValidation:n});if(!r.success)return{errors:r.errors,success:!1,warnings:r.warnings};r.federationFactory.federateSubgraphData();let i=[(0,_V.cloneDeep)(r.federationFactory)],a=r.federationFactory.buildFederationResult();if(!a.success)return{errors:a.errors,success:!1,warnings:a.warnings};let o=t.size-1,c=new Map,l=0;for(let[d,p]of t){l!==o&&i.push((0,_V.cloneDeep)(i[l]));let y=i[l].buildFederationContractResult(p);c.set(d,y),l++}return Q(x({},a),{federationResultByContractName:c})}function dde({contractTagOptions:e,disableResolvabilityValidation:t,subgraphs:n}){let r=vD({subgraphs:n,disableResolvabilityValidation:t});return r.success?(r.federationFactory.federateSubgraphData(),r.federationFactory.buildFederationContractResult(e)):{errors:r.errors,success:!1,warnings:r.warnings}}});var YE=w(As=>{"use strict";m();T();N();Object.defineProperty(As,"__esModule",{value:!0});As.LATEST_ROUTER_COMPATIBILITY_VERSION=As.ROUTER_COMPATIBILITY_VERSIONS=As.ROUTER_COMPATIBILITY_VERSION_ONE=void 0;As.ROUTER_COMPATIBILITY_VERSION_ONE="1";As.ROUTER_COMPATIBILITY_VERSIONS=new Set([As.ROUTER_COMPATIBILITY_VERSION_ONE]);As.LATEST_ROUTER_COMPATIBILITY_VERSION="1"});var SV=w(np=>{"use strict";m();T();N();Object.defineProperty(np,"__esModule",{value:!0});np.federateSubgraphs=fde;np.federateSubgraphsWithContracts=pde;np.federateSubgraphsContract=mde;var SD=vV(),OD=YE();function fde({disableResolvabilityValidation:e,subgraphs:t,version:n=OD.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(n){default:return(0,SD.federateSubgraphs)({disableResolvabilityValidation:e,subgraphs:t})}}function pde({disableResolvabilityValidation:e,subgraphs:t,tagOptionsByContractName:n,version:r=OD.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(r){default:return(0,SD.federateSubgraphsWithContracts)({disableResolvabilityValidation:e,subgraphs:t,tagOptionsByContractName:n})}}function mde({contractTagOptions:e,disableResolvabilityValidation:t,subgraphs:n,version:r=OD.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(r){default:return(0,SD.federateSubgraphsContract)({disableResolvabilityValidation:t,subgraphs:n,contractTagOptions:e})}}});var DV=w(OV=>{"use strict";m();T();N();Object.defineProperty(OV,"__esModule",{value:!0})});var bV=w(rp=>{"use strict";m();T();N();Object.defineProperty(rp,"__esModule",{value:!0});rp.normalizeSubgraphFromString=Nde;rp.normalizeSubgraph=Tde;rp.batchNormalize=Ede;var DD=yD(),bD=YE();function Nde(e,t=!0,n=bD.ROUTER_COMPATIBILITY_VERSION_ONE){switch(n){default:return(0,DD.normalizeSubgraphFromString)(e,t)}}function Tde(e,t,n,r=bD.ROUTER_COMPATIBILITY_VERSION_ONE){switch(r){default:return(0,DD.normalizeSubgraph)(e,t,n)}}function Ede(e,t=bD.ROUTER_COMPATIBILITY_VERSION_ONE){switch(t){default:return(0,DD.batchNormalize)(e)}}});var RV=w(AV=>{"use strict";m();T();N();Object.defineProperty(AV,"__esModule",{value:!0})});var FV=w(PV=>{"use strict";m();T();N();Object.defineProperty(PV,"__esModule",{value:!0})});var LV=w(wV=>{"use strict";m();T();N();Object.defineProperty(wV,"__esModule",{value:!0})});var BV=w(CV=>{"use strict";m();T();N();Object.defineProperty(CV,"__esModule",{value:!0})});var kV=w(UV=>{"use strict";m();T();N();Object.defineProperty(UV,"__esModule",{value:!0})});var xV=w(MV=>{"use strict";m();T();N();Object.defineProperty(MV,"__esModule",{value:!0})});var qV=w(JE=>{"use strict";m();T();N();Object.defineProperty(JE,"__esModule",{value:!0});JE.COMPOSITION_VERSION=void 0;JE.COMPOSITION_VERSION="{{$COMPOSITION__VERSION}}"});var jV=w(VV=>{"use strict";m();T();N();Object.defineProperty(VV,"__esModule",{value:!0})});var GV=w(KV=>{"use strict";m();T();N();Object.defineProperty(KV,"__esModule",{value:!0})});var QV=w($V=>{"use strict";m();T();N();Object.defineProperty($V,"__esModule",{value:!0})});var HE=w(ot=>{"use strict";m();T();N();var hde=ot&&ot.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),yt=ot&&ot.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&hde(t,e,n)};Object.defineProperty(ot,"__esModule",{value:!0});yt(Hr(),ot);yt(bv(),ot);yt(Mi(),ot);yt(Zk(),ot);yt(SV(),ot);yt(DV(),ot);yt(bV(),ot);yt(RV(),ot);yt(TD(),ot);yt(aD(),ot);yt(CE(),ot);yt(FV(),ot);yt(LV(),ot);yt(lD(),ot);yt(YE(),ot);yt(BV(),ot);yt(ED(),ot);yt(du(),ot);yt(Df(),ot);yt(Sl(),ot);yt(kV(),ot);yt(xV(),ot);yt(qV(),ot);yt(vr(),ot);yt(jV(),ot);yt(Sr(),ot);yt(WO(),ot);yt(VN(),ot);yt(_D(),ot);yt(GV(),ot);yt(QO(),ot);yt(zf(),ot);yt(QV(),ot);yt(eD(),ot);yt(KE(),ot);yt(HO(),ot);yt(Ss(),ot);yt(Hf(),ot);yt(Yl(),ot);yt(Wf(),ot)});var dfe={};fm(dfe,{buildRouterConfiguration:()=>lfe,federateSubgraphs:()=>cfe});m();T();N();var kc=ps(HE());m();T();N();m();T();N();function AD(e){if(!e)return e;if(!URL.canParse(e))throw new Error("Invalid URL");let t=e.indexOf("?"),n=e.indexOf("#"),r=e;return t>0?r=r.slice(0,n>0?Math.min(t,n):t):n>0&&(r=r.slice(0,n)),r}m();T();N();m();T();N();var YV={};m();T();N();function JV(e){return e!=null}m();T();N();m();T();N();var ZV=ps(De(),1);m();T();N();var HV;if(typeof AggregateError=="undefined"){class e extends Error{constructor(n,r=""){super(r),this.errors=n,this.name="AggregateError",Error.captureStackTrace(this,e)}}HV=function(t,n){return new e(t,n)}}else HV=AggregateError;function zV(e){return"errors"in e&&Array.isArray(e.errors)}var e1=3;function t1(e){return zE(e,[])}function zE(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return yde(e,t);default:return String(e)}}function WV(e){return e instanceof ZV.GraphQLError?e.toString():`${e.name}: ${e.message}; ${e.stack}`}function yde(e,t){if(e===null)return"null";if(e instanceof Error)return zV(e)?WV(e)+` `+XV(e.errors,t):WV(e);if(t.includes(e))return"[Circular]";let n=[...t,e];if(Ide(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:zE(r,n)}else if(Array.isArray(e))return XV(e,n);return gde(e,n)}function Ide(e){return typeof e.toJSON=="function"}function gde(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>e1?"["+_de(e)+"]":"{ "+n.map(([i,a])=>i+": "+zE(a,t)).join(", ")+" }"}function XV(e,t){if(e.length===0)return"[]";if(t.length>e1)return"[Array]";let n=e.length,r=[];for(let i=0;in==null?n:n[r],e==null?void 0:e.extensions)}m();T();N();var we=ps(De(),1);m();T();N();var Xa=ps(De(),1);function Za(e){if((0,Xa.isNonNullType)(e)){let t=Za(e.ofType);if(t.kind===Xa.Kind.NON_NULL_TYPE)throw new Error(`Invalid type node ${t1(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:Xa.Kind.NON_NULL_TYPE,type:t}}else if((0,Xa.isListType)(e))return{kind:Xa.Kind.LIST_TYPE,type:Za(e.ofType)};return{kind:Xa.Kind.NAMED_TYPE,name:{kind:Xa.Kind.NAME,value:e.name}}}m();T();N();var es=ps(De(),1);function XE(e){if(e===null)return{kind:es.Kind.NULL};if(e===void 0)return null;if(Array.isArray(e)){let t=[];for(let n of e){let r=XE(n);r!=null&&t.push(r)}return{kind:es.Kind.LIST,values:t}}if(typeof e=="object"){let t=[];for(let n in e){let r=e[n],i=XE(r);i&&t.push({kind:es.Kind.OBJECT_FIELD,name:{kind:es.Kind.NAME,value:n},value:i})}return{kind:es.Kind.OBJECT,fields:t}}if(typeof e=="boolean")return{kind:es.Kind.BOOLEAN,value:e};if(typeof e=="number"&&isFinite(e)){let t=String(e);return vde.test(t)?{kind:es.Kind.INT,value:t}:{kind:es.Kind.FLOAT,value:t}}if(typeof e=="string")return{kind:es.Kind.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${e}.`)}var vde=/^-?(?:0|[1-9][0-9]*)$/;m();T();N();m();T();N();function ZE(e){let t=new WeakMap;return function(r){let i=t.get(r);if(i===void 0){let a=e(r);return t.set(r,a),a}return i}}var NMe=ZE(function(t){let n=Sde(t);return new Set([...n].map(r=>r.name))}),Sde=ZE(function(t){let n=RD(t);return new Set(n.values())}),RD=ZE(function(t){let n=new Map,r=t.getQueryType();r&&n.set("query",r);let i=t.getMutationType();i&&n.set("mutation",i);let a=t.getSubscriptionType();return a&&n.set("subscription",a),n});function Ode(e,t={}){let n=t.pathToDirectivesInExtensions,r=e.getTypeMap(),i=Dde(e,n),a=i!=null?[i]:[],o=e.getDirectives();for(let c of o)(0,we.isSpecifiedDirective)(c)||a.push(bde(c,e,n));for(let c in r){let l=r[c],d=(0,we.isSpecifiedScalarType)(l),p=(0,we.isIntrospectionType)(l);if(!(d||p))if((0,we.isObjectType)(l))a.push(Ade(l,e,n));else if((0,we.isInterfaceType)(l))a.push(Rde(l,e,n));else if((0,we.isUnionType)(l))a.push(Pde(l,e,n));else if((0,we.isInputObjectType)(l))a.push(Fde(l,e,n));else if((0,we.isEnumType)(l))a.push(wde(l,e,n));else if((0,we.isScalarType)(l))a.push(Lde(l,e,n));else throw new Error(`Unknown type ${l}.`)}return{kind:we.Kind.DOCUMENT,definitions:a}}function n1(e,t={}){let n=Ode(e,t);return(0,we.print)(n)}function Dde(e,t){var n,r;let i=new Map([["query",void 0],["mutation",void 0],["subscription",void 0]]),a=[];if(e.astNode!=null&&a.push(e.astNode),e.extensionASTNodes!=null)for(let p of e.extensionASTNodes)a.push(p);for(let p of a)if(p.operationTypes)for(let y of p.operationTypes)i.set(y.operation,y);let o=RD(e);for(let[p,y]of i){let I=o.get(p);if(I!=null){let v=Za(I);y!=null?y.type=v:i.set(p,{kind:we.Kind.OPERATION_TYPE_DEFINITION,operation:p,type:v})}}let c=[...i.values()].filter(JV),l=td(e,e,t);if(!c.length&&!l.length)return null;let d={kind:c!=null?we.Kind.SCHEMA_DEFINITION:we.Kind.SCHEMA_EXTENSION,operationTypes:c,directives:l};return d.description=((r=(n=e.astNode)===null||n===void 0?void 0:n.description)!==null&&r!==void 0?r:e.description!=null)?{kind:we.Kind.STRING,value:e.description,block:!0}:void 0,d}function bde(e,t,n){var r,i,a,o;return{kind:we.Kind.DIRECTIVE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:we.Kind.STRING,value:e.description}:void 0,name:{kind:we.Kind.NAME,value:e.name},arguments:(a=e.args)===null||a===void 0?void 0:a.map(c=>r1(c,t,n)),repeatable:e.isRepeatable,locations:((o=e.locations)===null||o===void 0?void 0:o.map(c=>({kind:we.Kind.NAME,value:c})))||[]}}function td(e,t,n){let r=WE(e,n),i=[];e.astNode!=null&&i.push(e.astNode),"extensionASTNodes"in e&&e.extensionASTNodes!=null&&(i=i.concat(e.extensionASTNodes));let a;if(r!=null)a=PD(t,r);else{a=[];for(let o of i)o.directives&&a.push(...o.directives)}return a}function th(e,t,n){var r,i;let a=[],o=null,c=WE(e,n),l;return c!=null?l=PD(t,c):l=(r=e.astNode)===null||r===void 0?void 0:r.directives,l!=null&&(a=l.filter(d=>d.name.value!=="deprecated"),e.deprecationReason!=null&&(o=(i=l.filter(d=>d.name.value==="deprecated"))===null||i===void 0?void 0:i[0])),e.deprecationReason!=null&&o==null&&(o=Ude(e.deprecationReason)),o==null?a:[o].concat(a)}function r1(e,t,n){var r,i,a;return{kind:we.Kind.INPUT_VALUE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:we.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:we.Kind.NAME,value:e.name},type:Za(e.type),defaultValue:e.defaultValue!==void 0&&(a=(0,we.astFromValue)(e.defaultValue,e.type))!==null&&a!==void 0?a:void 0,directives:th(e,t,n)}}function Ade(e,t,n){var r,i;return{kind:we.Kind.OBJECT_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:we.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:we.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(a=>i1(a,t,n)),interfaces:Object.values(e.getInterfaces()).map(a=>Za(a)),directives:td(e,t,n)}}function Rde(e,t,n){var r,i;let a={kind:we.Kind.INTERFACE_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:we.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:we.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(o=>i1(o,t,n)),directives:td(e,t,n)};return"getInterfaces"in e&&(a.interfaces=Object.values(e.getInterfaces()).map(o=>Za(o))),a}function Pde(e,t,n){var r,i;return{kind:we.Kind.UNION_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:we.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:we.Kind.NAME,value:e.name},directives:td(e,t,n),types:e.getTypes().map(a=>Za(a))}}function Fde(e,t,n){var r,i;return{kind:we.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:we.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:we.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(a=>Cde(a,t,n)),directives:td(e,t,n)}}function wde(e,t,n){var r,i;return{kind:we.Kind.ENUM_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:we.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:we.Kind.NAME,value:e.name},values:Object.values(e.getValues()).map(a=>Bde(a,t,n)),directives:td(e,t,n)}}function Lde(e,t,n){var r,i,a;let o=WE(e,n),c=o?PD(t,o):((r=e.astNode)===null||r===void 0?void 0:r.directives)||[],l=e.specifiedByUrl||e.specifiedByURL;if(l&&!c.some(d=>d.name.value==="specifiedBy")){let d={url:l};c.push(eh("specifiedBy",d))}return{kind:we.Kind.SCALAR_TYPE_DEFINITION,description:(a=(i=e.astNode)===null||i===void 0?void 0:i.description)!==null&&a!==void 0?a:e.description?{kind:we.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:we.Kind.NAME,value:e.name},directives:c}}function i1(e,t,n){var r,i;return{kind:we.Kind.FIELD_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:we.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:we.Kind.NAME,value:e.name},arguments:e.args.map(a=>r1(a,t,n)),type:Za(e.type),directives:th(e,t,n)}}function Cde(e,t,n){var r,i,a;return{kind:we.Kind.INPUT_VALUE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:we.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:we.Kind.NAME,value:e.name},type:Za(e.type),directives:th(e,t,n),defaultValue:(a=(0,we.astFromValue)(e.defaultValue,e.type))!==null&&a!==void 0?a:void 0}}function Bde(e,t,n){var r,i;return{kind:we.Kind.ENUM_VALUE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:we.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:we.Kind.NAME,value:e.name},directives:th(e,t,n)}}function Ude(e){return eh("deprecated",{reason:e},we.GraphQLDeprecatedDirective)}function eh(e,t,n){let r=[];if(n!=null)for(let i of n.args){let a=i.name,o=t[a];if(o!==void 0){let c=(0,we.astFromValue)(o,i.type);c&&r.push({kind:we.Kind.ARGUMENT,name:{kind:we.Kind.NAME,value:a},value:c})}}else for(let i in t){let a=t[i],o=XE(a);o&&r.push({kind:we.Kind.ARGUMENT,name:{kind:we.Kind.NAME,value:i},value:o})}return{kind:we.Kind.DIRECTIVE,name:{kind:we.Kind.NAME,value:e},arguments:r}}function PD(e,t){let n=[];for(let r in t){let i=t[r],a=e==null?void 0:e.getDirective(r);if(Array.isArray(i))for(let o of i)n.push(eh(r,o,a));else n.push(eh(r,i,a))}return n}var ld=ps(HE(),1);m();T();N();m();T();N();m();T();N();m();T();N();m();T();N();m();T();N();function ln(e,t){if(!e)throw new Error(t)}var kde=34028234663852886e22,Mde=-34028234663852886e22,xde=4294967295,qde=2147483647,Vde=-2147483648;function nd(e){if(typeof e!="number")throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>qde||exde||e<0)throw new Error("invalid uint 32: "+e)}function nh(e){if(typeof e!="number")throw new Error("invalid float 32: "+typeof e);if(Number.isFinite(e)&&(e>kde||e({no:i.no,name:i.name,localName:e[i.no]})),r)}function wD(e,t,n){let r=Object.create(null),i=Object.create(null),a=[];for(let o of t){let c=u1(o);a.push(c),r[o.name]=c,i[o.no]=c}return{typeName:e,values:a,findName(o){return r[o]},findNumber(o){return i[o]}}}function o1(e,t,n){let r={};for(let i of t){let a=u1(i);r[a.localName]=a.no,r[a.no]=a.localName}return FD(r,e,t,n),r}function u1(e){return"localName"in e?e:Object.assign(Object.assign({},e),{localName:e.name})}m();T();N();m();T();N();var Le=class{equals(t){return this.getType().runtime.util.equals(this.getType(),this,t)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(t,n){let r=this.getType(),i=r.runtime.bin,a=i.makeReadOptions(n);return i.readMessage(this,a.readerFactory(t),t.byteLength,a),this}fromJson(t,n){let r=this.getType(),i=r.runtime.json,a=i.makeReadOptions(n);return i.readMessage(r,t,a,this),this}fromJsonString(t,n){let r;try{r=JSON.parse(t)}catch(i){throw new Error(`cannot decode ${this.getType().typeName} from JSON: ${i instanceof Error?i.message:String(i)}`)}return this.fromJson(r,n)}toBinary(t){let n=this.getType(),r=n.runtime.bin,i=r.makeWriteOptions(t),a=i.writerFactory();return r.writeMessage(this,a,i),a.finish()}toJson(t){let n=this.getType(),r=n.runtime.json,i=r.makeWriteOptions(t);return r.writeMessage(this,i)}toJsonString(t){var n;let r=this.toJson(t);return JSON.stringify(r,null,(n=t==null?void 0:t.prettySpaces)!==null&&n!==void 0?n:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}};function c1(e,t,n,r){var i;let a=(i=r==null?void 0:r.localName)!==null&&i!==void 0?i:t.substring(t.lastIndexOf(".")+1),o={[a]:function(c){e.util.initFields(this),e.util.initPartial(c,this)}}[a];return Object.setPrototypeOf(o.prototype,new Le),Object.assign(o,{runtime:e,typeName:t,fields:e.util.newFieldList(n),fromBinary(c,l){return new o().fromBinary(c,l)},fromJson(c,l){return new o().fromJson(c,l)},fromJsonString(c,l){return new o().fromJsonString(c,l)},equals(c,l){return e.util.equals(o,c,l)}}),o}m();T();N();m();T();N();m();T();N();m();T();N();function d1(){let e=0,t=0;for(let r=0;r<28;r+=7){let i=this.buf[this.pos++];if(e|=(i&127)<>4,!(n&128))return this.assertBounds(),[e,t];for(let r=3;r<=31;r+=7){let i=this.buf[this.pos++];if(t|=(i&127)<>>a,c=!(!(o>>>7)&&t==0),l=(c?o|128:o)&255;if(n.push(l),!c)return}let r=e>>>28&15|(t&7)<<4,i=!!(t>>3);if(n.push((i?r|128:r)&255),!!i){for(let a=3;a<31;a=a+7){let o=t>>>a,c=!!(o>>>7),l=(c?o|128:o)&255;if(n.push(l),!c)return}n.push(t>>>31&1)}}var rh=4294967296;function LD(e){let t=e[0]==="-";t&&(e=e.slice(1));let n=1e6,r=0,i=0;function a(o,c){let l=Number(e.slice(o,c));i*=n,r=r*n+l,r>=rh&&(i=i+(r/rh|0),r=r%rh)}return a(-24,-18),a(-18,-12),a(-12,-6),a(-6),t?p1(r,i):BD(r,i)}function f1(e,t){let n=BD(e,t),r=n.hi&2147483648;r&&(n=p1(n.lo,n.hi));let i=CD(n.lo,n.hi);return r?"-"+i:i}function CD(e,t){if({lo:e,hi:t}=jde(e,t),t<=2097151)return String(rh*t+e);let n=e&16777215,r=(e>>>24|t<<8)&16777215,i=t>>16&65535,a=n+r*6777216+i*6710656,o=r+i*8147497,c=i*2,l=1e7;return a>=l&&(o+=Math.floor(a/l),a%=l),o>=l&&(c+=Math.floor(o/l),o%=l),c.toString()+l1(o)+l1(a)}function jde(e,t){return{lo:e>>>0,hi:t>>>0}}function BD(e,t){return{lo:e|0,hi:t|0}}function p1(e,t){return t=~t,e?e=~e+1:t+=1,BD(e,t)}var l1=e=>{let t=String(e);return"0000000".slice(t.length)+t};function UD(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e=e>>>7;t.push(e)}else{for(let n=0;n<9;n++)t.push(e&127|128),e=e>>7;t.push(1)}}function m1(){let e=this.buf[this.pos++],t=e&127;if(!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<7,!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<14,!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<21,!(e&128))return this.assertBounds(),t;e=this.buf[this.pos++],t|=(e&15)<<28;for(let n=5;e&128&&n<10;n++)e=this.buf[this.pos++];if(e&128)throw new Error("invalid varint");return this.assertBounds(),t>>>0}function Kde(){let e=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof e.getBigInt64=="function"&&typeof e.getBigUint64=="function"&&typeof e.setBigInt64=="function"&&typeof e.setBigUint64=="function"&&(typeof O!="object"||typeof O.env!="object"||O.env.BUF_BIGINT_DISABLE!=="1")){let i=BigInt("-9223372036854775808"),a=BigInt("9223372036854775807"),o=BigInt("0"),c=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(l){let d=typeof l=="bigint"?l:BigInt(l);if(d>a||dc||dln(/^-?[0-9]+$/.test(i),`int64 invalid: ${i}`),r=i=>ln(/^[0-9]+$/.test(i),`uint64 invalid: ${i}`);return{zero:"0",supported:!1,parse(i){return typeof i!="string"&&(i=i.toString()),n(i),i},uParse(i){return typeof i!="string"&&(i=i.toString()),r(i),i},enc(i){return typeof i!="string"&&(i=i.toString()),n(i),LD(i)},uEnc(i){return typeof i!="string"&&(i=i.toString()),r(i),LD(i)},dec(i,a){return f1(i,a)},uDec(i,a){return CD(i,a)}}}var $n=Kde();m();T();N();var Ne;(function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"})(Ne||(Ne={}));var ha;(function(e){e[e.BIGINT=0]="BIGINT",e[e.STRING=1]="STRING"})(ha||(ha={}));function Rs(e,t,n){if(t===n)return!0;if(e==Ne.BYTES){if(!(t instanceof Uint8Array)||!(n instanceof Uint8Array)||t.length!==n.length)return!1;for(let r=0;r>>0)}raw(t){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(t),this}uint32(t){for(ip(t);t>127;)this.buf.push(t&127|128),t=t>>>7;return this.buf.push(t),this}int32(t){return nd(t),UD(t,this.buf),this}bool(t){return this.buf.push(t?1:0),this}bytes(t){return this.uint32(t.byteLength),this.raw(t)}string(t){let n=this.textEncoder.encode(t);return this.uint32(n.byteLength),this.raw(n)}float(t){nh(t);let n=new Uint8Array(4);return new DataView(n.buffer).setFloat32(0,t,!0),this.raw(n)}double(t){let n=new Uint8Array(8);return new DataView(n.buffer).setFloat64(0,t,!0),this.raw(n)}fixed32(t){ip(t);let n=new Uint8Array(4);return new DataView(n.buffer).setUint32(0,t,!0),this.raw(n)}sfixed32(t){nd(t);let n=new Uint8Array(4);return new DataView(n.buffer).setInt32(0,t,!0),this.raw(n)}sint32(t){return nd(t),t=(t<<1^t>>31)>>>0,UD(t,this.buf),this}sfixed64(t){let n=new Uint8Array(8),r=new DataView(n.buffer),i=$n.enc(t);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}fixed64(t){let n=new Uint8Array(8),r=new DataView(n.buffer),i=$n.uEnc(t);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}int64(t){let n=$n.enc(t);return ih(n.lo,n.hi,this.buf),this}sint64(t){let n=$n.enc(t),r=n.hi>>31,i=n.lo<<1^r,a=(n.hi<<1|n.lo>>>31)^r;return ih(i,a,this.buf),this}uint64(t){let n=$n.uEnc(t);return ih(n.lo,n.hi,this.buf),this}},oh=class{constructor(t,n){this.varint64=d1,this.uint32=m1,this.buf=t,this.len=t.length,this.pos=0,this.view=new DataView(t.buffer,t.byteOffset,t.byteLength),this.textDecoder=n!=null?n:new TextDecoder}tag(){let t=this.uint32(),n=t>>>3,r=t&7;if(n<=0||r<0||r>5)throw new Error("illegal tag: field no "+n+" wire type "+r);return[n,r]}skip(t){let n=this.pos;switch(t){case Un.Varint:for(;this.buf[this.pos++]&128;);break;case Un.Bit64:this.pos+=4;case Un.Bit32:this.pos+=4;break;case Un.LengthDelimited:let r=this.uint32();this.pos+=r;break;case Un.StartGroup:let i;for(;(i=this.tag()[1])!==Un.EndGroup;)this.skip(i);break;default:throw new Error("cant skip wire type "+t)}return this.assertBounds(),this.buf.subarray(n,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let t=this.uint32();return t>>>1^-(t&1)}int64(){return $n.dec(...this.varint64())}uint64(){return $n.uDec(...this.varint64())}sint64(){let[t,n]=this.varint64(),r=-(t&1);return t=(t>>>1|(n&1)<<31)^r,n=n>>>1^r,$n.dec(t,n)}bool(){let[t,n]=this.varint64();return t!==0||n!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return $n.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return $n.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let t=this.uint32(),n=this.pos;return this.pos+=t,this.assertBounds(),this.buf.subarray(n,n+t)}string(){return this.textDecoder.decode(this.bytes())}};function N1(e,t,n,r){let i;return{typeName:t,extendee:n,get field(){if(!i){let a=typeof r=="function"?r():r;a.name=t.split(".").pop(),a.jsonName=`[${t}]`,i=e.util.newFieldList([a]).list()[0]}return i},runtime:e}}function uh(e){let t=e.field.localName,n=Object.create(null);return n[t]=Gde(e),[n,()=>n[t]]}function Gde(e){let t=e.field;if(t.repeated)return[];if(t.default!==void 0)return t.default;switch(t.kind){case"enum":return t.T.values[0].no;case"scalar":return ya(t.T,t.L);case"message":let n=t.T,r=new n;return n.fieldWrapper?n.fieldWrapper.unwrapField(r):r;case"map":throw"map fields are not allowed to be extensions"}}function T1(e,t){if(!t.repeated&&(t.kind=="enum"||t.kind=="scalar")){for(let n=e.length-1;n>=0;--n)if(e[n].no==t.no)return[e[n]];return[]}return e.filter(n=>n.no===t.no)}m();T();N();m();T();N();var Ps="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),ch=[];for(let e=0;e>4,o=a,i=2;break;case 2:n[r++]=(o&15)<<4|(a&60)>>2,o=a,i=3;break;case 3:n[r++]=(o&3)<<6|a,i=0;break}}if(i==1)throw Error("invalid base64 string.");return n.subarray(0,r)},enc(e){let t="",n=0,r,i=0;for(let a=0;a>2],i=(r&3)<<4,n=1;break;case 1:t+=Ps[i|r>>4],i=(r&15)<<2,n=2;break;case 2:t+=Ps[i|r>>6],t+=Ps[r&63],n=0;break}return n&&(t+=Ps[i],t+="=",n==1&&(t+="=")),t}};m();T();N();function E1(e,t,n){y1(t,e);let r=t.runtime.bin.makeReadOptions(n),i=T1(e.getType().runtime.bin.listUnknownFields(e),t.field),[a,o]=uh(t);for(let c of i)t.runtime.bin.readField(a,r.readerFactory(c.data),t.field,c.wireType,r);return o()}function h1(e,t,n,r){y1(t,e);let i=t.runtime.bin.makeReadOptions(r),a=t.runtime.bin.makeWriteOptions(r);if(MD(e,t)){let d=e.getType().runtime.bin.listUnknownFields(e).filter(p=>p.no!=t.field.no);e.getType().runtime.bin.discardUnknownFields(e);for(let p of d)e.getType().runtime.bin.onUnknownField(e,p.no,p.wireType,p.data)}let o=a.writerFactory(),c=t.field;!c.opt&&!c.repeated&&(c.kind=="enum"||c.kind=="scalar")&&(c=Object.assign(Object.assign({},t.field),{opt:!0})),t.runtime.bin.writeField(c,n,o,a);let l=i.readerFactory(o.finish());for(;l.posr.no==t.field.no)}function y1(e,t){ln(e.extendee.typeName==t.getType().typeName,`extension ${e.typeName} can only be applied to message ${e.extendee.typeName}`)}m();T();N();function lh(e,t){let n=e.localName;if(e.repeated)return t[n].length>0;if(e.oneof)return t[e.oneof.localName].case===n;switch(e.kind){case"enum":case"scalar":return e.opt||e.req?t[n]!==void 0:e.kind=="enum"?t[n]!==e.T.values[0].no:!ah(e.T,t[n]);case"message":return t[n]!==void 0;case"map":return Object.keys(t[n]).length>0}}function xD(e,t){let n=e.localName,r=!e.opt&&!e.req;if(e.repeated)t[n]=[];else if(e.oneof)t[e.oneof.localName]={case:void 0};else switch(e.kind){case"map":t[n]={};break;case"enum":t[n]=r?e.T.values[0].no:void 0;break;case"scalar":t[n]=r?ya(e.T,e.L):void 0;break;case"message":t[n]=void 0;break}}m();T();N();m();T();N();function Ia(e,t){if(e===null||typeof e!="object"||!Object.getOwnPropertyNames(Le.prototype).every(r=>r in e&&typeof e[r]=="function"))return!1;let n=e.getType();return n===null||typeof n!="function"||!("typeName"in n)||typeof n.typeName!="string"?!1:t===void 0?!0:n.typeName==t.typeName}function dh(e,t){return Ia(t)||!e.fieldWrapper?t:e.fieldWrapper.wrapField(t)}var Jxe={"google.protobuf.DoubleValue":Ne.DOUBLE,"google.protobuf.FloatValue":Ne.FLOAT,"google.protobuf.Int64Value":Ne.INT64,"google.protobuf.UInt64Value":Ne.UINT64,"google.protobuf.Int32Value":Ne.INT32,"google.protobuf.UInt32Value":Ne.UINT32,"google.protobuf.BoolValue":Ne.BOOL,"google.protobuf.StringValue":Ne.STRING,"google.protobuf.BytesValue":Ne.BYTES};var I1={ignoreUnknownFields:!1},g1={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function $de(e){return e?Object.assign(Object.assign({},I1),e):I1}function Qde(e){return e?Object.assign(Object.assign({},g1),e):g1}var mh=Symbol(),fh=Symbol();function S1(){return{makeReadOptions:$de,makeWriteOptions:Qde,readMessage(e,t,n,r){if(t==null||Array.isArray(t)||typeof t!="object")throw new Error(`cannot decode message ${e.typeName} from JSON: ${ts(t)}`);r=r!=null?r:new e;let i=new Map,a=n.typeRegistry;for(let[o,c]of Object.entries(t)){let l=e.fields.findJsonName(o);if(l){if(l.oneof){if(c===null&&l.kind=="scalar")continue;let d=i.get(l.oneof);if(d!==void 0)throw new Error(`cannot decode message ${e.typeName} from JSON: multiple keys for oneof "${l.oneof.name}" present: "${d}", "${o}"`);i.set(l.oneof,o)}_1(r,c,l,n,e)}else{let d=!1;if(a!=null&&a.findExtension&&o.startsWith("[")&&o.endsWith("]")){let p=a.findExtension(o.substring(1,o.length-1));if(p&&p.extendee.typeName==e.typeName){d=!0;let[y,I]=uh(p);_1(y,c,p.field,n,p),h1(r,p,I(),n)}}if(!d&&!n.ignoreUnknownFields)throw new Error(`cannot decode message ${e.typeName} from JSON: key "${o}" is unknown`)}}return r},writeMessage(e,t){let n=e.getType(),r={},i;try{for(i of n.fields.byNumber()){if(!lh(i,e)){if(i.req)throw"required field not set";if(!t.emitDefaultValues||!Jde(i))continue}let o=i.oneof?e[i.oneof.localName].value:e[i.localName],c=v1(i,o,t);c!==void 0&&(r[t.useProtoFieldName?i.name:i.jsonName]=c)}let a=t.typeRegistry;if(a!=null&&a.findExtensionFor)for(let o of n.runtime.bin.listUnknownFields(e)){let c=a.findExtensionFor(n.typeName,o.no);if(c&&MD(e,c)){let l=E1(e,c,t),d=v1(c.field,l,t);d!==void 0&&(r[c.field.jsonName]=d)}}}catch(a){let o=i?`cannot encode field ${n.typeName}.${i.name} to JSON`:`cannot encode message ${n.typeName} to JSON`,c=a instanceof Error?a.message:String(a);throw new Error(o+(c.length>0?`: ${c}`:""))}return r},readScalar(e,t,n){return ap(e,t,n!=null?n:ha.BIGINT,!0)},writeScalar(e,t,n){if(t!==void 0&&(n||ah(e,t)))return ph(e,t)},debug:ts}}function ts(e){if(e===null)return"null";switch(typeof e){case"object":return Array.isArray(e)?"array":"object";case"string":return e.length>100?"string":`"${e.split('"').join('\\"')}"`;default:return String(e)}}function _1(e,t,n,r,i){let a=n.localName;if(n.repeated){if(ln(n.kind!="map"),t===null)return;if(!Array.isArray(t))throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${ts(t)}`);let o=e[a];for(let c of t){if(c===null)throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${ts(c)}`);switch(n.kind){case"message":o.push(n.T.fromJson(c,r));break;case"enum":let l=qD(n.T,c,r.ignoreUnknownFields,!0);l!==fh&&o.push(l);break;case"scalar":try{o.push(ap(n.T,c,n.L,!0))}catch(d){let p=`cannot decode field ${i.typeName}.${n.name} from JSON: ${ts(c)}`;throw d instanceof Error&&d.message.length>0&&(p+=`: ${d.message}`),new Error(p)}break}}}else if(n.kind=="map"){if(t===null)return;if(typeof t!="object"||Array.isArray(t))throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${ts(t)}`);let o=e[a];for(let[c,l]of Object.entries(t)){if(l===null)throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: map value null`);let d;try{d=Yde(n.K,c)}catch(p){let y=`cannot decode map key for field ${i.typeName}.${n.name} from JSON: ${ts(t)}`;throw p instanceof Error&&p.message.length>0&&(y+=`: ${p.message}`),new Error(y)}switch(n.V.kind){case"message":o[d]=n.V.T.fromJson(l,r);break;case"enum":let p=qD(n.V.T,l,r.ignoreUnknownFields,!0);p!==fh&&(o[d]=p);break;case"scalar":try{o[d]=ap(n.V.T,l,ha.BIGINT,!0)}catch(y){let I=`cannot decode map value for field ${i.typeName}.${n.name} from JSON: ${ts(t)}`;throw y instanceof Error&&y.message.length>0&&(I+=`: ${y.message}`),new Error(I)}break}}}else switch(n.oneof&&(e=e[n.oneof.localName]={case:a},a="value"),n.kind){case"message":let o=n.T;if(t===null&&o.typeName!="google.protobuf.Value")return;let c=e[a];Ia(c)?c.fromJson(t,r):(e[a]=c=o.fromJson(t,r),o.fieldWrapper&&!n.oneof&&(e[a]=o.fieldWrapper.unwrapField(c)));break;case"enum":let l=qD(n.T,t,r.ignoreUnknownFields,!1);switch(l){case mh:xD(n,e);break;case fh:break;default:e[a]=l;break}break;case"scalar":try{let d=ap(n.T,t,n.L,!1);switch(d){case mh:xD(n,e);break;default:e[a]=d;break}}catch(d){let p=`cannot decode field ${i.typeName}.${n.name} from JSON: ${ts(t)}`;throw d instanceof Error&&d.message.length>0&&(p+=`: ${d.message}`),new Error(p)}break}}function Yde(e,t){if(e===Ne.BOOL)switch(t){case"true":t=!0;break;case"false":t=!1;break}return ap(e,t,ha.BIGINT,!0).toString()}function ap(e,t,n,r){if(t===null)return r?ya(e,n):mh;switch(e){case Ne.DOUBLE:case Ne.FLOAT:if(t==="NaN")return Number.NaN;if(t==="Infinity")return Number.POSITIVE_INFINITY;if(t==="-Infinity")return Number.NEGATIVE_INFINITY;if(t===""||typeof t=="string"&&t.trim().length!==t.length||typeof t!="string"&&typeof t!="number")break;let i=Number(t);if(Number.isNaN(i)||!Number.isFinite(i))break;return e==Ne.FLOAT&&nh(i),i;case Ne.INT32:case Ne.FIXED32:case Ne.SFIXED32:case Ne.SINT32:case Ne.UINT32:let a;if(typeof t=="number"?a=t:typeof t=="string"&&t.length>0&&t.trim().length===t.length&&(a=Number(t)),a===void 0)break;return e==Ne.UINT32||e==Ne.FIXED32?ip(a):nd(a),a;case Ne.INT64:case Ne.SFIXED64:case Ne.SINT64:if(typeof t!="number"&&typeof t!="string")break;let o=$n.parse(t);return n?o.toString():o;case Ne.FIXED64:case Ne.UINT64:if(typeof t!="number"&&typeof t!="string")break;let c=$n.uParse(t);return n?c.toString():c;case Ne.BOOL:if(typeof t!="boolean")break;return t;case Ne.STRING:if(typeof t!="string")break;try{encodeURIComponent(t)}catch(l){throw new Error("invalid UTF8")}return t;case Ne.BYTES:if(t==="")return new Uint8Array(0);if(typeof t!="string")break;return kD.dec(t)}throw new Error}function qD(e,t,n,r){if(t===null)return e.typeName=="google.protobuf.NullValue"?0:r?e.values[0].no:mh;switch(typeof t){case"number":if(Number.isInteger(t))return t;break;case"string":let i=e.findName(t);if(i!==void 0)return i.no;if(n)return fh;break}throw new Error(`cannot decode enum ${e.typeName} from JSON: ${ts(t)}`)}function Jde(e){return e.repeated||e.kind=="map"?!0:!(e.oneof||e.kind=="message"||e.opt||e.req)}function v1(e,t,n){if(e.kind=="map"){ln(typeof t=="object"&&t!=null);let r={},i=Object.entries(t);switch(e.V.kind){case"scalar":for(let[o,c]of i)r[o.toString()]=ph(e.V.T,c);break;case"message":for(let[o,c]of i)r[o.toString()]=c.toJson(n);break;case"enum":let a=e.V.T;for(let[o,c]of i)r[o.toString()]=VD(a,c,n.enumAsInteger);break}return n.emitDefaultValues||i.length>0?r:void 0}if(e.repeated){ln(Array.isArray(t));let r=[];switch(e.kind){case"scalar":for(let i=0;i0?r:void 0}switch(e.kind){case"scalar":return ph(e.T,t);case"enum":return VD(e.T,t,n.enumAsInteger);case"message":return dh(e.T,t).toJson(n)}}function VD(e,t,n){var r;if(ln(typeof t=="number"),e.typeName=="google.protobuf.NullValue")return null;if(n)return t;let i=e.findNumber(t);return(r=i==null?void 0:i.name)!==null&&r!==void 0?r:t}function ph(e,t){switch(e){case Ne.INT32:case Ne.SFIXED32:case Ne.SINT32:case Ne.FIXED32:case Ne.UINT32:return ln(typeof t=="number"),t;case Ne.FLOAT:case Ne.DOUBLE:return ln(typeof t=="number"),Number.isNaN(t)?"NaN":t===Number.POSITIVE_INFINITY?"Infinity":t===Number.NEGATIVE_INFINITY?"-Infinity":t;case Ne.STRING:return ln(typeof t=="string"),t;case Ne.BOOL:return ln(typeof t=="boolean"),t;case Ne.UINT64:case Ne.FIXED64:case Ne.INT64:case Ne.SFIXED64:case Ne.SINT64:return ln(typeof t=="bigint"||typeof t=="string"||typeof t=="number"),t.toString();case Ne.BYTES:return ln(t instanceof Uint8Array),kD.enc(t)}}m();T();N();var rd=Symbol("@bufbuild/protobuf/unknown-fields"),O1={readUnknownFields:!0,readerFactory:e=>new oh(e)},D1={writeUnknownFields:!0,writerFactory:()=>new sh};function Hde(e){return e?Object.assign(Object.assign({},O1),e):O1}function zde(e){return e?Object.assign(Object.assign({},D1),e):D1}function P1(){return{makeReadOptions:Hde,makeWriteOptions:zde,listUnknownFields(e){var t;return(t=e[rd])!==null&&t!==void 0?t:[]},discardUnknownFields(e){delete e[rd]},writeUnknownFields(e,t){let r=e[rd];if(r)for(let i of r)t.tag(i.no,i.wireType).raw(i.data)},onUnknownField(e,t,n,r){let i=e;Array.isArray(i[rd])||(i[rd]=[]),i[rd].push({no:t,wireType:n,data:r})},readMessage(e,t,n,r,i){let a=e.getType(),o=i?t.len:t.pos+n,c,l;for(;t.pos0&&(l=Xde),a){let I=e[o];if(r==Un.LengthDelimited&&c!=Ne.STRING&&c!=Ne.BYTES){let F=t.uint32()+t.pos;for(;t.posIa(I,y)?I:new y(I));else{let I=o[i];y.fieldWrapper?y.typeName==="google.protobuf.BytesValue"?a[i]=op(I):a[i]=I:a[i]=Ia(I,y)?I:new y(I)}break}}},equals(e,t,n){return t===n?!0:!t||!n?!1:e.fields.byMember().every(r=>{let i=t[r.localName],a=n[r.localName];if(r.repeated){if(i.length!==a.length)return!1;switch(r.kind){case"message":return i.every((o,c)=>r.T.equals(o,a[c]));case"scalar":return i.every((o,c)=>Rs(r.T,o,a[c]));case"enum":return i.every((o,c)=>Rs(Ne.INT32,o,a[c]))}throw new Error(`repeated cannot contain ${r.kind}`)}switch(r.kind){case"message":return r.T.equals(i,a);case"enum":return Rs(Ne.INT32,i,a);case"scalar":return Rs(r.T,i,a);case"oneof":if(i.case!==a.case)return!1;let o=r.findField(i.case);if(o===void 0)return!0;switch(o.kind){case"message":return o.T.equals(i.value,a.value);case"enum":return Rs(Ne.INT32,i.value,a.value);case"scalar":return Rs(o.T,i.value,a.value)}throw new Error(`oneof cannot contain ${o.kind}`);case"map":let c=Object.keys(i).concat(Object.keys(a));switch(r.V.kind){case"message":let l=r.V.T;return c.every(p=>l.equals(i[p],a[p]));case"enum":return c.every(p=>Rs(Ne.INT32,i[p],a[p]));case"scalar":let d=r.V.T;return c.every(p=>Rs(d,i[p],a[p]))}break}})},clone(e){let t=e.getType(),n=new t,r=n;for(let i of t.fields.byMember()){let a=e[i.localName],o;if(i.repeated)o=a.map(Eh);else if(i.kind=="map"){o=r[i.localName];for(let[c,l]of Object.entries(a))o[c]=Eh(l)}else i.kind=="oneof"?o=i.findField(a.case)?{case:a.case,value:Eh(a.value)}:{case:void 0}:o=Eh(a);r[i.localName]=o}for(let i of t.runtime.bin.listUnknownFields(e))t.runtime.bin.onUnknownField(r,i.no,i.wireType,i.data);return n}}}function Eh(e){if(e===void 0)return e;if(Ia(e))return e.clone();if(e instanceof Uint8Array){let t=new Uint8Array(e.byteLength);return t.set(e),t}return e}function op(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function L1(e,t,n){return{syntax:e,json:S1(),bin:P1(),util:Object.assign(Object.assign({},w1()),{newFieldList:t,initFields:n}),makeMessageType(r,i,a){return c1(this,r,i,a)},makeEnum:o1,makeEnumType:wD,getEnumType:s1,makeExtension(r,i,a){return N1(this,r,i,a)}}}m();T();N();var hh=class{constructor(t,n){this._fields=t,this._normalizer=n}findJsonName(t){if(!this.jsonNames){let n={};for(let r of this.list())n[r.jsonName]=n[r.name]=r;this.jsonNames=n}return this.jsonNames[t]}find(t){if(!this.numbers){let n={};for(let r of this.list())n[r.no]=r;this.numbers=n}return this.numbers[t]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort((t,n)=>t.no-n.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];let t=this.members,n;for(let r of this.list())r.oneof?r.oneof!==n&&(n=r.oneof,t.push(n)):t.push(r)}return this.members}};m();T();N();m();T();N();m();T();N();function jD(e,t){let n=U1(e);return t?n:ife(rfe(n))}function C1(e){return jD(e,!1)}var B1=U1;function U1(e){let t=!1,n=[];for(let r=0;r`${e}$`,rfe=e=>nfe.has(e)?k1(e):e,ife=e=>tfe.has(e)?k1(e):e;var yh=class{constructor(t){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.req=!1,this.default=void 0,this.fields=[],this.name=t,this.localName=C1(t)}addField(t){ln(t.oneof===this,`field ${t.name} not one of ${this.name}`),this.fields.push(t)}findField(t){if(!this._lookup){this._lookup=Object.create(null);for(let n=0;nnew hh(e,t=>M1(t,!0)),e=>{for(let t of e.getType().fields.byMember()){if(t.opt)continue;let n=t.localName,r=e;if(t.repeated){r[n]=[];continue}switch(t.kind){case"oneof":r[n]={case:void 0};break;case"enum":r[n]=0;break;case"map":r[n]={};break;case"scalar":r[n]=ya(t.T,t.L);break;case"message":break}}});var id;(function(e){e[e.OK=0]="OK",e[e.ERR=1]="ERR",e[e.ERR_NOT_FOUND=2]="ERR_NOT_FOUND",e[e.ERR_ALREADY_EXISTS=3]="ERR_ALREADY_EXISTS",e[e.ERR_INVALID_SUBGRAPH_SCHEMA=4]="ERR_INVALID_SUBGRAPH_SCHEMA",e[e.ERR_SUBGRAPH_COMPOSITION_FAILED=5]="ERR_SUBGRAPH_COMPOSITION_FAILED",e[e.ERR_SUBGRAPH_CHECK_FAILED=6]="ERR_SUBGRAPH_CHECK_FAILED",e[e.ERR_INVALID_LABELS=7]="ERR_INVALID_LABELS",e[e.ERR_ANALYTICS_DISABLED=8]="ERR_ANALYTICS_DISABLED",e[e.ERROR_NOT_AUTHENTICATED=9]="ERROR_NOT_AUTHENTICATED",e[e.ERR_OPENAI_DISABLED=10]="ERR_OPENAI_DISABLED",e[e.ERR_FREE_TRIAL_EXPIRED=11]="ERR_FREE_TRIAL_EXPIRED",e[e.ERROR_NOT_AUTHORIZED=12]="ERROR_NOT_AUTHORIZED",e[e.ERR_LIMIT_REACHED=13]="ERR_LIMIT_REACHED",e[e.ERR_DEPLOYMENT_FAILED=14]="ERR_DEPLOYMENT_FAILED",e[e.ERR_INVALID_NAME=15]="ERR_INVALID_NAME",e[e.ERR_UPGRADE_PLAN=16]="ERR_UPGRADE_PLAN",e[e.ERR_BAD_REQUEST=17]="ERR_BAD_REQUEST",e[e.ERR_SCHEMA_MISMATCH_WITH_APPROVED_PROPOSAL=18]="ERR_SCHEMA_MISMATCH_WITH_APPROVED_PROPOSAL"})(id||(id={}));B.util.setEnumType(id,"wg.cosmo.common.EnumStatusCode",[{no:0,name:"OK"},{no:1,name:"ERR"},{no:2,name:"ERR_NOT_FOUND"},{no:3,name:"ERR_ALREADY_EXISTS"},{no:4,name:"ERR_INVALID_SUBGRAPH_SCHEMA"},{no:5,name:"ERR_SUBGRAPH_COMPOSITION_FAILED"},{no:6,name:"ERR_SUBGRAPH_CHECK_FAILED"},{no:7,name:"ERR_INVALID_LABELS"},{no:8,name:"ERR_ANALYTICS_DISABLED"},{no:9,name:"ERROR_NOT_AUTHENTICATED"},{no:10,name:"ERR_OPENAI_DISABLED"},{no:11,name:"ERR_FREE_TRIAL_EXPIRED"},{no:12,name:"ERROR_NOT_AUTHORIZED"},{no:13,name:"ERR_LIMIT_REACHED"},{no:14,name:"ERR_DEPLOYMENT_FAILED"},{no:15,name:"ERR_INVALID_NAME"},{no:16,name:"ERR_UPGRADE_PLAN"},{no:17,name:"ERR_BAD_REQUEST"},{no:18,name:"ERR_SCHEMA_MISMATCH_WITH_APPROVED_PROPOSAL"}]);var Fs;(function(e){e[e.GRAPHQL_SUBSCRIPTION_PROTOCOL_WS=0]="GRAPHQL_SUBSCRIPTION_PROTOCOL_WS",e[e.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE=1]="GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE",e[e.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST=2]="GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST"})(Fs||(Fs={}));B.util.setEnumType(Fs,"wg.cosmo.common.GraphQLSubscriptionProtocol",[{no:0,name:"GRAPHQL_SUBSCRIPTION_PROTOCOL_WS"},{no:1,name:"GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE"},{no:2,name:"GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST"}]);var ws;(function(e){e[e.GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO=0]="GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO",e[e.GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS=1]="GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS",e[e.GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS=2]="GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS"})(ws||(ws={}));B.util.setEnumType(ws,"wg.cosmo.common.GraphQLWebsocketSubprotocol",[{no:0,name:"GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO"},{no:1,name:"GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS"},{no:2,name:"GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS"}]);var J1=ps(De(),1);m();T();N();var KD;(function(e){e[e.RENDER_ARGUMENT_DEFAULT=0]="RENDER_ARGUMENT_DEFAULT",e[e.RENDER_ARGUMENT_AS_GRAPHQL_VALUE=1]="RENDER_ARGUMENT_AS_GRAPHQL_VALUE",e[e.RENDER_ARGUMENT_AS_ARRAY_CSV=2]="RENDER_ARGUMENT_AS_ARRAY_CSV"})(KD||(KD={}));B.util.setEnumType(KD,"wg.cosmo.node.v1.ArgumentRenderConfiguration",[{no:0,name:"RENDER_ARGUMENT_DEFAULT"},{no:1,name:"RENDER_ARGUMENT_AS_GRAPHQL_VALUE"},{no:2,name:"RENDER_ARGUMENT_AS_ARRAY_CSV"}]);var wc;(function(e){e[e.OBJECT_FIELD=0]="OBJECT_FIELD",e[e.FIELD_ARGUMENT=1]="FIELD_ARGUMENT"})(wc||(wc={}));B.util.setEnumType(wc,"wg.cosmo.node.v1.ArgumentSource",[{no:0,name:"OBJECT_FIELD"},{no:1,name:"FIELD_ARGUMENT"}]);var vu;(function(e){e[e.STATIC=0]="STATIC",e[e.GRAPHQL=1]="GRAPHQL",e[e.PUBSUB=2]="PUBSUB"})(vu||(vu={}));B.util.setEnumType(vu,"wg.cosmo.node.v1.DataSourceKind",[{no:0,name:"STATIC"},{no:1,name:"GRAPHQL"},{no:2,name:"PUBSUB"}]);var up;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.QUERY=1]="QUERY",e[e.MUTATION=2]="MUTATION",e[e.SUBSCRIPTION=3]="SUBSCRIPTION"})(up||(up={}));B.util.setEnumType(up,"wg.cosmo.node.v1.OperationType",[{no:0,name:"OPERATION_TYPE_UNSPECIFIED"},{no:1,name:"OPERATION_TYPE_QUERY"},{no:2,name:"OPERATION_TYPE_MUTATION"},{no:3,name:"OPERATION_TYPE_SUBSCRIPTION"}]);var qo;(function(e){e[e.PUBLISH=0]="PUBLISH",e[e.REQUEST=1]="REQUEST",e[e.SUBSCRIBE=2]="SUBSCRIBE"})(qo||(qo={}));B.util.setEnumType(qo,"wg.cosmo.node.v1.EventType",[{no:0,name:"PUBLISH"},{no:1,name:"REQUEST"},{no:2,name:"SUBSCRIBE"}]);var Su;(function(e){e[e.STATIC_CONFIGURATION_VARIABLE=0]="STATIC_CONFIGURATION_VARIABLE",e[e.ENV_CONFIGURATION_VARIABLE=1]="ENV_CONFIGURATION_VARIABLE",e[e.PLACEHOLDER_CONFIGURATION_VARIABLE=2]="PLACEHOLDER_CONFIGURATION_VARIABLE"})(Su||(Su={}));B.util.setEnumType(Su,"wg.cosmo.node.v1.ConfigurationVariableKind",[{no:0,name:"STATIC_CONFIGURATION_VARIABLE"},{no:1,name:"ENV_CONFIGURATION_VARIABLE"},{no:2,name:"PLACEHOLDER_CONFIGURATION_VARIABLE"}]);var Lc;(function(e){e[e.GET=0]="GET",e[e.POST=1]="POST",e[e.PUT=2]="PUT",e[e.DELETE=3]="DELETE",e[e.OPTIONS=4]="OPTIONS"})(Lc||(Lc={}));B.util.setEnumType(Lc,"wg.cosmo.node.v1.HTTPMethod",[{no:0,name:"GET"},{no:1,name:"POST"},{no:2,name:"PUT"},{no:3,name:"DELETE"},{no:4,name:"OPTIONS"}]);var Ls=class Ls extends Le{constructor(n){super();_(this,"id","");_(this,"name","");_(this,"routingUrl","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Ls().fromBinary(n,r)}static fromJson(n,r){return new Ls().fromJson(n,r)}static fromJsonString(n,r){return new Ls().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Ls,n,r)}};_(Ls,"runtime",B),_(Ls,"typeName","wg.cosmo.node.v1.Subgraph"),_(Ls,"fields",B.util.newFieldList(()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"routing_url",kind:"scalar",T:9}]));var Ih=Ls,Cs=class Cs extends Le{constructor(n){super();_(this,"configByFeatureFlagName",{});B.util.initPartial(n,this)}static fromBinary(n,r){return new Cs().fromBinary(n,r)}static fromJson(n,r){return new Cs().fromJson(n,r)}static fromJsonString(n,r){return new Cs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Cs,n,r)}};_(Cs,"runtime",B),_(Cs,"typeName","wg.cosmo.node.v1.FeatureFlagRouterExecutionConfigs"),_(Cs,"fields",B.util.newFieldList(()=>[{no:1,name:"config_by_feature_flag_name",kind:"map",K:9,V:{kind:"message",T:$D}}]));var GD=Cs,Bs=class Bs extends Le{constructor(n){super();_(this,"engineConfig");_(this,"version","");_(this,"subgraphs",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Bs().fromBinary(n,r)}static fromJson(n,r){return new Bs().fromJson(n,r)}static fromJsonString(n,r){return new Bs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Bs,n,r)}};_(Bs,"runtime",B),_(Bs,"typeName","wg.cosmo.node.v1.FeatureFlagRouterExecutionConfig"),_(Bs,"fields",B.util.newFieldList(()=>[{no:1,name:"engine_config",kind:"message",T:ad},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"subgraphs",kind:"message",T:Ih,repeated:!0}]));var $D=Bs,Us=class Us extends Le{constructor(n){super();_(this,"engineConfig");_(this,"version","");_(this,"subgraphs",[]);_(this,"featureFlagConfigs");_(this,"compatibilityVersion","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Us().fromBinary(n,r)}static fromJson(n,r){return new Us().fromJson(n,r)}static fromJsonString(n,r){return new Us().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Us,n,r)}};_(Us,"runtime",B),_(Us,"typeName","wg.cosmo.node.v1.RouterConfig"),_(Us,"fields",B.util.newFieldList(()=>[{no:1,name:"engine_config",kind:"message",T:ad},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"subgraphs",kind:"message",T:Ih,repeated:!0},{no:4,name:"feature_flag_configs",kind:"message",T:GD,opt:!0},{no:5,name:"compatibility_version",kind:"scalar",T:9}]));var cp=Us,ks=class ks extends Le{constructor(n){super();_(this,"code",id.OK);_(this,"details");B.util.initPartial(n,this)}static fromBinary(n,r){return new ks().fromBinary(n,r)}static fromJson(n,r){return new ks().fromJson(n,r)}static fromJsonString(n,r){return new ks().fromJsonString(n,r)}static equals(n,r){return B.util.equals(ks,n,r)}};_(ks,"runtime",B),_(ks,"typeName","wg.cosmo.node.v1.Response"),_(ks,"fields",B.util.newFieldList(()=>[{no:1,name:"code",kind:"enum",T:B.getEnumType(id)},{no:2,name:"details",kind:"scalar",T:9,opt:!0}]));var QD=ks,Ms=class Ms extends Le{constructor(n){super();_(this,"code",0);_(this,"message","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Ms().fromBinary(n,r)}static fromJson(n,r){return new Ms().fromJson(n,r)}static fromJsonString(n,r){return new Ms().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Ms,n,r)}};_(Ms,"runtime",B),_(Ms,"typeName","wg.cosmo.node.v1.ResponseStatus"),_(Ms,"fields",B.util.newFieldList(()=>[{no:1,name:"code",kind:"scalar",T:5},{no:2,name:"message",kind:"scalar",T:9}]));var x1=Ms,xs=class xs extends Le{constructor(n){super();_(this,"accountLimits");_(this,"graphPublicKey","");B.util.initPartial(n,this)}static fromBinary(n,r){return new xs().fromBinary(n,r)}static fromJson(n,r){return new xs().fromJson(n,r)}static fromJsonString(n,r){return new xs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(xs,n,r)}};_(xs,"runtime",B),_(xs,"typeName","wg.cosmo.node.v1.RegistrationInfo"),_(xs,"fields",B.util.newFieldList(()=>[{no:1,name:"account_limits",kind:"message",T:JD},{no:2,name:"graph_public_key",kind:"scalar",T:9}]));var YD=xs,qs=class qs extends Le{constructor(n){super();_(this,"traceSamplingRate",0);B.util.initPartial(n,this)}static fromBinary(n,r){return new qs().fromBinary(n,r)}static fromJson(n,r){return new qs().fromJson(n,r)}static fromJsonString(n,r){return new qs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(qs,n,r)}};_(qs,"runtime",B),_(qs,"typeName","wg.cosmo.node.v1.AccountLimits"),_(qs,"fields",B.util.newFieldList(()=>[{no:1,name:"trace_sampling_rate",kind:"scalar",T:2}]));var JD=qs,Vs=class Vs extends Le{constructor(t){super(),B.util.initPartial(t,this)}static fromBinary(t,n){return new Vs().fromBinary(t,n)}static fromJson(t,n){return new Vs().fromJson(t,n)}static fromJsonString(t,n){return new Vs().fromJsonString(t,n)}static equals(t,n){return B.util.equals(Vs,t,n)}};_(Vs,"runtime",B),_(Vs,"typeName","wg.cosmo.node.v1.SelfRegisterRequest"),_(Vs,"fields",B.util.newFieldList(()=>[]));var q1=Vs,js=class js extends Le{constructor(n){super();_(this,"response");_(this,"registrationInfo");B.util.initPartial(n,this)}static fromBinary(n,r){return new js().fromBinary(n,r)}static fromJson(n,r){return new js().fromJson(n,r)}static fromJsonString(n,r){return new js().fromJsonString(n,r)}static equals(n,r){return B.util.equals(js,n,r)}};_(js,"runtime",B),_(js,"typeName","wg.cosmo.node.v1.SelfRegisterResponse"),_(js,"fields",B.util.newFieldList(()=>[{no:1,name:"response",kind:"message",T:QD},{no:2,name:"registrationInfo",kind:"message",T:YD,opt:!0}]));var V1=js,Ks=class Ks extends Le{constructor(n){super();_(this,"defaultFlushInterval",$n.zero);_(this,"datasourceConfigurations",[]);_(this,"fieldConfigurations",[]);_(this,"graphqlSchema","");_(this,"typeConfigurations",[]);_(this,"stringStorage",{});_(this,"graphqlClientSchema");B.util.initPartial(n,this)}static fromBinary(n,r){return new Ks().fromBinary(n,r)}static fromJson(n,r){return new Ks().fromJson(n,r)}static fromJsonString(n,r){return new Ks().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Ks,n,r)}};_(Ks,"runtime",B),_(Ks,"typeName","wg.cosmo.node.v1.EngineConfiguration"),_(Ks,"fields",B.util.newFieldList(()=>[{no:1,name:"defaultFlushInterval",kind:"scalar",T:3},{no:2,name:"datasource_configurations",kind:"message",T:lp,repeated:!0},{no:3,name:"field_configurations",kind:"message",T:pp,repeated:!0},{no:4,name:"graphqlSchema",kind:"scalar",T:9},{no:5,name:"type_configurations",kind:"message",T:HD,repeated:!0},{no:6,name:"string_storage",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:7,name:"graphql_client_schema",kind:"scalar",T:9,opt:!0}]));var ad=Ks,Gs=class Gs extends Le{constructor(n){super();_(this,"kind",vu.STATIC);_(this,"rootNodes",[]);_(this,"childNodes",[]);_(this,"overrideFieldPathFromAlias",!1);_(this,"customGraphql");_(this,"customStatic");_(this,"directives",[]);_(this,"requestTimeoutSeconds",$n.zero);_(this,"id","");_(this,"keys",[]);_(this,"provides",[]);_(this,"requires",[]);_(this,"customEvents");_(this,"entityInterfaces",[]);_(this,"interfaceObjects",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Gs().fromBinary(n,r)}static fromJson(n,r){return new Gs().fromJson(n,r)}static fromJsonString(n,r){return new Gs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Gs,n,r)}};_(Gs,"runtime",B),_(Gs,"typeName","wg.cosmo.node.v1.DataSourceConfiguration"),_(Gs,"fields",B.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:B.getEnumType(vu)},{no:2,name:"root_nodes",kind:"message",T:sd,repeated:!0},{no:3,name:"child_nodes",kind:"message",T:sd,repeated:!0},{no:4,name:"override_field_path_from_alias",kind:"scalar",T:8},{no:5,name:"custom_graphql",kind:"message",T:Tp},{no:6,name:"custom_static",kind:"message",T:sb},{no:7,name:"directives",kind:"message",T:ob,repeated:!0},{no:8,name:"request_timeout_seconds",kind:"scalar",T:3},{no:9,name:"id",kind:"scalar",T:9},{no:10,name:"keys",kind:"message",T:Fc,repeated:!0},{no:11,name:"provides",kind:"message",T:Fc,repeated:!0},{no:12,name:"requires",kind:"message",T:Fc,repeated:!0},{no:13,name:"custom_events",kind:"message",T:Bc},{no:14,name:"entity_interfaces",kind:"message",T:od,repeated:!0},{no:15,name:"interface_objects",kind:"message",T:od,repeated:!0}]));var lp=Gs,$s=class $s extends Le{constructor(n){super();_(this,"name","");_(this,"sourceType",wc.OBJECT_FIELD);B.util.initPartial(n,this)}static fromBinary(n,r){return new $s().fromBinary(n,r)}static fromJson(n,r){return new $s().fromJson(n,r)}static fromJsonString(n,r){return new $s().fromJsonString(n,r)}static equals(n,r){return B.util.equals($s,n,r)}};_($s,"runtime",B),_($s,"typeName","wg.cosmo.node.v1.ArgumentConfiguration"),_($s,"fields",B.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"source_type",kind:"enum",T:B.getEnumType(wc)}]));var dp=$s,Qs=class Qs extends Le{constructor(n){super();_(this,"requiredAndScopes",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Qs().fromBinary(n,r)}static fromJson(n,r){return new Qs().fromJson(n,r)}static fromJsonString(n,r){return new Qs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Qs,n,r)}};_(Qs,"runtime",B),_(Qs,"typeName","wg.cosmo.node.v1.Scopes"),_(Qs,"fields",B.util.newFieldList(()=>[{no:1,name:"required_and_scopes",kind:"scalar",T:9,repeated:!0}]));var Cc=Qs,Ys=class Ys extends Le{constructor(n){super();_(this,"requiresAuthentication",!1);_(this,"requiredOrScopes",[]);_(this,"requiredOrScopesByOr",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Ys().fromBinary(n,r)}static fromJson(n,r){return new Ys().fromJson(n,r)}static fromJsonString(n,r){return new Ys().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Ys,n,r)}};_(Ys,"runtime",B),_(Ys,"typeName","wg.cosmo.node.v1.AuthorizationConfiguration"),_(Ys,"fields",B.util.newFieldList(()=>[{no:1,name:"requires_authentication",kind:"scalar",T:8},{no:2,name:"required_or_scopes",kind:"message",T:Cc,repeated:!0},{no:3,name:"required_or_scopes_by_or",kind:"message",T:Cc,repeated:!0}]));var fp=Ys,Js=class Js extends Le{constructor(n){super();_(this,"typeName","");_(this,"fieldName","");_(this,"argumentsConfiguration",[]);_(this,"authorizationConfiguration");_(this,"subscriptionFilterCondition");B.util.initPartial(n,this)}static fromBinary(n,r){return new Js().fromBinary(n,r)}static fromJson(n,r){return new Js().fromJson(n,r)}static fromJsonString(n,r){return new Js().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Js,n,r)}};_(Js,"runtime",B),_(Js,"typeName","wg.cosmo.node.v1.FieldConfiguration"),_(Js,"fields",B.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9},{no:3,name:"arguments_configuration",kind:"message",T:dp,repeated:!0},{no:4,name:"authorization_configuration",kind:"message",T:fp},{no:5,name:"subscription_filter_condition",kind:"message",T:Ou,opt:!0}]));var pp=Js,Hs=class Hs extends Le{constructor(n){super();_(this,"typeName","");_(this,"renameTo","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Hs().fromBinary(n,r)}static fromJson(n,r){return new Hs().fromJson(n,r)}static fromJsonString(n,r){return new Hs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Hs,n,r)}};_(Hs,"runtime",B),_(Hs,"typeName","wg.cosmo.node.v1.TypeConfiguration"),_(Hs,"fields",B.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var HD=Hs,zs=class zs extends Le{constructor(n){super();_(this,"typeName","");_(this,"fieldNames",[]);_(this,"externalFieldNames",[]);_(this,"requireFetchReasonsFieldNames",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new zs().fromBinary(n,r)}static fromJson(n,r){return new zs().fromJson(n,r)}static fromJsonString(n,r){return new zs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(zs,n,r)}};_(zs,"runtime",B),_(zs,"typeName","wg.cosmo.node.v1.TypeField"),_(zs,"fields",B.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_names",kind:"scalar",T:9,repeated:!0},{no:3,name:"external_field_names",kind:"scalar",T:9,repeated:!0},{no:4,name:"require_fetch_reasons_field_names",kind:"scalar",T:9,repeated:!0}]));var sd=zs,Ws=class Ws extends Le{constructor(n){super();_(this,"fieldName","");_(this,"typeName","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Ws().fromBinary(n,r)}static fromJson(n,r){return new Ws().fromJson(n,r)}static fromJsonString(n,r){return new Ws().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Ws,n,r)}};_(Ws,"runtime",B),_(Ws,"typeName","wg.cosmo.node.v1.FieldCoordinates"),_(Ws,"fields",B.util.newFieldList(()=>[{no:1,name:"field_name",kind:"scalar",T:9},{no:2,name:"type_name",kind:"scalar",T:9}]));var mp=Ws,Xs=class Xs extends Le{constructor(n){super();_(this,"fieldCoordinatesPath",[]);_(this,"fieldPath",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Xs().fromBinary(n,r)}static fromJson(n,r){return new Xs().fromJson(n,r)}static fromJsonString(n,r){return new Xs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Xs,n,r)}};_(Xs,"runtime",B),_(Xs,"typeName","wg.cosmo.node.v1.FieldSetCondition"),_(Xs,"fields",B.util.newFieldList(()=>[{no:1,name:"field_coordinates_path",kind:"message",T:mp,repeated:!0},{no:2,name:"field_path",kind:"scalar",T:9,repeated:!0}]));var Np=Xs,Zs=class Zs extends Le{constructor(n){super();_(this,"typeName","");_(this,"fieldName","");_(this,"selectionSet","");_(this,"disableEntityResolver",!1);_(this,"conditions",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Zs().fromBinary(n,r)}static fromJson(n,r){return new Zs().fromJson(n,r)}static fromJsonString(n,r){return new Zs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Zs,n,r)}};_(Zs,"runtime",B),_(Zs,"typeName","wg.cosmo.node.v1.RequiredField"),_(Zs,"fields",B.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9},{no:3,name:"selection_set",kind:"scalar",T:9},{no:4,name:"disable_entity_resolver",kind:"scalar",T:8},{no:5,name:"conditions",kind:"message",T:Np,repeated:!0}]));var Fc=Zs,eo=class eo extends Le{constructor(n){super();_(this,"interfaceTypeName","");_(this,"concreteTypeNames",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new eo().fromBinary(n,r)}static fromJson(n,r){return new eo().fromJson(n,r)}static fromJsonString(n,r){return new eo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(eo,n,r)}};_(eo,"runtime",B),_(eo,"typeName","wg.cosmo.node.v1.EntityInterfaceConfiguration"),_(eo,"fields",B.util.newFieldList(()=>[{no:1,name:"interface_type_name",kind:"scalar",T:9},{no:2,name:"concrete_type_names",kind:"scalar",T:9,repeated:!0}]));var od=eo,to=class to extends Le{constructor(n){super();_(this,"url");_(this,"method",Lc.GET);_(this,"header",{});_(this,"body");_(this,"query",[]);_(this,"urlEncodeBody",!1);_(this,"mtls");_(this,"baseUrl");_(this,"path");_(this,"httpProxyUrl");B.util.initPartial(n,this)}static fromBinary(n,r){return new to().fromBinary(n,r)}static fromJson(n,r){return new to().fromJson(n,r)}static fromJsonString(n,r){return new to().fromJsonString(n,r)}static equals(n,r){return B.util.equals(to,n,r)}};_(to,"runtime",B),_(to,"typeName","wg.cosmo.node.v1.FetchConfiguration"),_(to,"fields",B.util.newFieldList(()=>[{no:1,name:"url",kind:"message",T:qr},{no:2,name:"method",kind:"enum",T:B.getEnumType(Lc)},{no:3,name:"header",kind:"map",K:9,V:{kind:"message",T:cb}},{no:4,name:"body",kind:"message",T:qr},{no:5,name:"query",kind:"message",T:ub,repeated:!0},{no:7,name:"url_encode_body",kind:"scalar",T:8},{no:8,name:"mtls",kind:"message",T:lb},{no:9,name:"base_url",kind:"message",T:qr},{no:10,name:"path",kind:"message",T:qr},{no:11,name:"http_proxy_url",kind:"message",T:qr,opt:!0}]));var zD=to,no=class no extends Le{constructor(n){super();_(this,"statusCode",$n.zero);_(this,"typeName","");_(this,"injectStatusCodeIntoBody",!1);B.util.initPartial(n,this)}static fromBinary(n,r){return new no().fromBinary(n,r)}static fromJson(n,r){return new no().fromJson(n,r)}static fromJsonString(n,r){return new no().fromJsonString(n,r)}static equals(n,r){return B.util.equals(no,n,r)}};_(no,"runtime",B),_(no,"typeName","wg.cosmo.node.v1.StatusCodeTypeMapping"),_(no,"fields",B.util.newFieldList(()=>[{no:1,name:"status_code",kind:"scalar",T:3},{no:2,name:"type_name",kind:"scalar",T:9},{no:3,name:"inject_status_code_into_body",kind:"scalar",T:8}]));var j1=no,ro=class ro extends Le{constructor(n){super();_(this,"fetch");_(this,"subscription");_(this,"federation");_(this,"upstreamSchema");_(this,"customScalarTypeFields",[]);_(this,"grpc");B.util.initPartial(n,this)}static fromBinary(n,r){return new ro().fromBinary(n,r)}static fromJson(n,r){return new ro().fromJson(n,r)}static fromJsonString(n,r){return new ro().fromJsonString(n,r)}static equals(n,r){return B.util.equals(ro,n,r)}};_(ro,"runtime",B),_(ro,"typeName","wg.cosmo.node.v1.DataSourceCustom_GraphQL"),_(ro,"fields",B.util.newFieldList(()=>[{no:1,name:"fetch",kind:"message",T:zD},{no:2,name:"subscription",kind:"message",T:db},{no:3,name:"federation",kind:"message",T:fb},{no:4,name:"upstream_schema",kind:"message",T:_p},{no:6,name:"custom_scalar_type_fields",kind:"message",T:pb,repeated:!0},{no:7,name:"grpc",kind:"message",T:ud}]));var Tp=ro,io=class io extends Le{constructor(n){super();_(this,"mapping");_(this,"protoSchema","");_(this,"plugin");B.util.initPartial(n,this)}static fromBinary(n,r){return new io().fromBinary(n,r)}static fromJson(n,r){return new io().fromJson(n,r)}static fromJsonString(n,r){return new io().fromJsonString(n,r)}static equals(n,r){return B.util.equals(io,n,r)}};_(io,"runtime",B),_(io,"typeName","wg.cosmo.node.v1.GRPCConfiguration"),_(io,"fields",B.util.newFieldList(()=>[{no:1,name:"mapping",kind:"message",T:XD},{no:2,name:"proto_schema",kind:"scalar",T:9},{no:3,name:"plugin",kind:"message",T:Ep}]));var ud=io,ao=class ao extends Le{constructor(n){super();_(this,"repository","");_(this,"reference","");B.util.initPartial(n,this)}static fromBinary(n,r){return new ao().fromBinary(n,r)}static fromJson(n,r){return new ao().fromJson(n,r)}static fromJsonString(n,r){return new ao().fromJsonString(n,r)}static equals(n,r){return B.util.equals(ao,n,r)}};_(ao,"runtime",B),_(ao,"typeName","wg.cosmo.node.v1.ImageReference"),_(ao,"fields",B.util.newFieldList(()=>[{no:1,name:"repository",kind:"scalar",T:9},{no:2,name:"reference",kind:"scalar",T:9}]));var WD=ao,so=class so extends Le{constructor(n){super();_(this,"name","");_(this,"version","");_(this,"imageReference");B.util.initPartial(n,this)}static fromBinary(n,r){return new so().fromBinary(n,r)}static fromJson(n,r){return new so().fromJson(n,r)}static fromJsonString(n,r){return new so().fromJsonString(n,r)}static equals(n,r){return B.util.equals(so,n,r)}};_(so,"runtime",B),_(so,"typeName","wg.cosmo.node.v1.PluginConfiguration"),_(so,"fields",B.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"image_reference",kind:"message",T:WD,opt:!0}]));var Ep=so,oo=class oo extends Le{constructor(n){super();_(this,"enabled",!1);B.util.initPartial(n,this)}static fromBinary(n,r){return new oo().fromBinary(n,r)}static fromJson(n,r){return new oo().fromJson(n,r)}static fromJsonString(n,r){return new oo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(oo,n,r)}};_(oo,"runtime",B),_(oo,"typeName","wg.cosmo.node.v1.SSLConfiguration"),_(oo,"fields",B.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8}]));var K1=oo,uo=class uo extends Le{constructor(n){super();_(this,"version",0);_(this,"service","");_(this,"operationMappings",[]);_(this,"entityMappings",[]);_(this,"typeFieldMappings",[]);_(this,"enumMappings",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new uo().fromBinary(n,r)}static fromJson(n,r){return new uo().fromJson(n,r)}static fromJsonString(n,r){return new uo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(uo,n,r)}};_(uo,"runtime",B),_(uo,"typeName","wg.cosmo.node.v1.GRPCMapping"),_(uo,"fields",B.util.newFieldList(()=>[{no:1,name:"version",kind:"scalar",T:5},{no:2,name:"service",kind:"scalar",T:9},{no:3,name:"operation_mappings",kind:"message",T:ZD,repeated:!0},{no:4,name:"entity_mappings",kind:"message",T:eb,repeated:!0},{no:5,name:"type_field_mappings",kind:"message",T:tb,repeated:!0},{no:6,name:"enum_mappings",kind:"message",T:ib,repeated:!0}]));var XD=uo,co=class co extends Le{constructor(n){super();_(this,"type",up.UNSPECIFIED);_(this,"original","");_(this,"mapped","");_(this,"request","");_(this,"response","");B.util.initPartial(n,this)}static fromBinary(n,r){return new co().fromBinary(n,r)}static fromJson(n,r){return new co().fromJson(n,r)}static fromJsonString(n,r){return new co().fromJsonString(n,r)}static equals(n,r){return B.util.equals(co,n,r)}};_(co,"runtime",B),_(co,"typeName","wg.cosmo.node.v1.OperationMapping"),_(co,"fields",B.util.newFieldList(()=>[{no:1,name:"type",kind:"enum",T:B.getEnumType(up)},{no:2,name:"original",kind:"scalar",T:9},{no:3,name:"mapped",kind:"scalar",T:9},{no:4,name:"request",kind:"scalar",T:9},{no:5,name:"response",kind:"scalar",T:9}]));var ZD=co,lo=class lo extends Le{constructor(n){super();_(this,"typeName","");_(this,"kind","");_(this,"key","");_(this,"rpc","");_(this,"request","");_(this,"response","");B.util.initPartial(n,this)}static fromBinary(n,r){return new lo().fromBinary(n,r)}static fromJson(n,r){return new lo().fromJson(n,r)}static fromJsonString(n,r){return new lo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(lo,n,r)}};_(lo,"runtime",B),_(lo,"typeName","wg.cosmo.node.v1.EntityMapping"),_(lo,"fields",B.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"kind",kind:"scalar",T:9},{no:3,name:"key",kind:"scalar",T:9},{no:4,name:"rpc",kind:"scalar",T:9},{no:5,name:"request",kind:"scalar",T:9},{no:6,name:"response",kind:"scalar",T:9}]));var eb=lo,fo=class fo extends Le{constructor(n){super();_(this,"type","");_(this,"fieldMappings",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new fo().fromBinary(n,r)}static fromJson(n,r){return new fo().fromJson(n,r)}static fromJsonString(n,r){return new fo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(fo,n,r)}};_(fo,"runtime",B),_(fo,"typeName","wg.cosmo.node.v1.TypeFieldMapping"),_(fo,"fields",B.util.newFieldList(()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"field_mappings",kind:"message",T:nb,repeated:!0}]));var tb=fo,po=class po extends Le{constructor(n){super();_(this,"original","");_(this,"mapped","");_(this,"argumentMappings",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new po().fromBinary(n,r)}static fromJson(n,r){return new po().fromJson(n,r)}static fromJsonString(n,r){return new po().fromJsonString(n,r)}static equals(n,r){return B.util.equals(po,n,r)}};_(po,"runtime",B),_(po,"typeName","wg.cosmo.node.v1.FieldMapping"),_(po,"fields",B.util.newFieldList(()=>[{no:1,name:"original",kind:"scalar",T:9},{no:2,name:"mapped",kind:"scalar",T:9},{no:3,name:"argument_mappings",kind:"message",T:rb,repeated:!0}]));var nb=po,mo=class mo extends Le{constructor(n){super();_(this,"original","");_(this,"mapped","");B.util.initPartial(n,this)}static fromBinary(n,r){return new mo().fromBinary(n,r)}static fromJson(n,r){return new mo().fromJson(n,r)}static fromJsonString(n,r){return new mo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(mo,n,r)}};_(mo,"runtime",B),_(mo,"typeName","wg.cosmo.node.v1.ArgumentMapping"),_(mo,"fields",B.util.newFieldList(()=>[{no:1,name:"original",kind:"scalar",T:9},{no:2,name:"mapped",kind:"scalar",T:9}]));var rb=mo,No=class No extends Le{constructor(n){super();_(this,"type","");_(this,"values",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new No().fromBinary(n,r)}static fromJson(n,r){return new No().fromJson(n,r)}static fromJsonString(n,r){return new No().fromJsonString(n,r)}static equals(n,r){return B.util.equals(No,n,r)}};_(No,"runtime",B),_(No,"typeName","wg.cosmo.node.v1.EnumMapping"),_(No,"fields",B.util.newFieldList(()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"values",kind:"message",T:ab,repeated:!0}]));var ib=No,To=class To extends Le{constructor(n){super();_(this,"original","");_(this,"mapped","");B.util.initPartial(n,this)}static fromBinary(n,r){return new To().fromBinary(n,r)}static fromJson(n,r){return new To().fromJson(n,r)}static fromJsonString(n,r){return new To().fromJsonString(n,r)}static equals(n,r){return B.util.equals(To,n,r)}};_(To,"runtime",B),_(To,"typeName","wg.cosmo.node.v1.EnumValueMapping"),_(To,"fields",B.util.newFieldList(()=>[{no:1,name:"original",kind:"scalar",T:9},{no:2,name:"mapped",kind:"scalar",T:9}]));var ab=To,Eo=class Eo extends Le{constructor(n){super();_(this,"consumerName","");_(this,"streamName","");_(this,"consumerInactiveThreshold",0);B.util.initPartial(n,this)}static fromBinary(n,r){return new Eo().fromBinary(n,r)}static fromJson(n,r){return new Eo().fromJson(n,r)}static fromJsonString(n,r){return new Eo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Eo,n,r)}};_(Eo,"runtime",B),_(Eo,"typeName","wg.cosmo.node.v1.NatsStreamConfiguration"),_(Eo,"fields",B.util.newFieldList(()=>[{no:1,name:"consumer_name",kind:"scalar",T:9},{no:2,name:"stream_name",kind:"scalar",T:9},{no:3,name:"consumer_inactive_threshold",kind:"scalar",T:5}]));var hp=Eo,ho=class ho extends Le{constructor(n){super();_(this,"engineEventConfiguration");_(this,"subjects",[]);_(this,"streamConfiguration");B.util.initPartial(n,this)}static fromBinary(n,r){return new ho().fromBinary(n,r)}static fromJson(n,r){return new ho().fromJson(n,r)}static fromJsonString(n,r){return new ho().fromJsonString(n,r)}static equals(n,r){return B.util.equals(ho,n,r)}};_(ho,"runtime",B),_(ho,"typeName","wg.cosmo.node.v1.NatsEventConfiguration"),_(ho,"fields",B.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:Vo},{no:2,name:"subjects",kind:"scalar",T:9,repeated:!0},{no:3,name:"stream_configuration",kind:"message",T:hp}]));var yp=ho,yo=class yo extends Le{constructor(n){super();_(this,"engineEventConfiguration");_(this,"topics",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new yo().fromBinary(n,r)}static fromJson(n,r){return new yo().fromJson(n,r)}static fromJsonString(n,r){return new yo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(yo,n,r)}};_(yo,"runtime",B),_(yo,"typeName","wg.cosmo.node.v1.KafkaEventConfiguration"),_(yo,"fields",B.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:Vo},{no:2,name:"topics",kind:"scalar",T:9,repeated:!0}]));var Ip=yo,Io=class Io extends Le{constructor(n){super();_(this,"engineEventConfiguration");_(this,"channels",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Io().fromBinary(n,r)}static fromJson(n,r){return new Io().fromJson(n,r)}static fromJsonString(n,r){return new Io().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Io,n,r)}};_(Io,"runtime",B),_(Io,"typeName","wg.cosmo.node.v1.RedisEventConfiguration"),_(Io,"fields",B.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:Vo},{no:2,name:"channels",kind:"scalar",T:9,repeated:!0}]));var gp=Io,go=class go extends Le{constructor(n){super();_(this,"providerId","");_(this,"type",qo.PUBLISH);_(this,"typeName","");_(this,"fieldName","");B.util.initPartial(n,this)}static fromBinary(n,r){return new go().fromBinary(n,r)}static fromJson(n,r){return new go().fromJson(n,r)}static fromJsonString(n,r){return new go().fromJsonString(n,r)}static equals(n,r){return B.util.equals(go,n,r)}};_(go,"runtime",B),_(go,"typeName","wg.cosmo.node.v1.EngineEventConfiguration"),_(go,"fields",B.util.newFieldList(()=>[{no:1,name:"provider_id",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:B.getEnumType(qo)},{no:3,name:"type_name",kind:"scalar",T:9},{no:4,name:"field_name",kind:"scalar",T:9}]));var Vo=go,_o=class _o extends Le{constructor(n){super();_(this,"nats",[]);_(this,"kafka",[]);_(this,"redis",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new _o().fromBinary(n,r)}static fromJson(n,r){return new _o().fromJson(n,r)}static fromJsonString(n,r){return new _o().fromJsonString(n,r)}static equals(n,r){return B.util.equals(_o,n,r)}};_(_o,"runtime",B),_(_o,"typeName","wg.cosmo.node.v1.DataSourceCustomEvents"),_(_o,"fields",B.util.newFieldList(()=>[{no:1,name:"nats",kind:"message",T:yp,repeated:!0},{no:2,name:"kafka",kind:"message",T:Ip,repeated:!0},{no:3,name:"redis",kind:"message",T:gp,repeated:!0}]));var Bc=_o,vo=class vo extends Le{constructor(n){super();_(this,"data");B.util.initPartial(n,this)}static fromBinary(n,r){return new vo().fromBinary(n,r)}static fromJson(n,r){return new vo().fromJson(n,r)}static fromJsonString(n,r){return new vo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(vo,n,r)}};_(vo,"runtime",B),_(vo,"typeName","wg.cosmo.node.v1.DataSourceCustom_Static"),_(vo,"fields",B.util.newFieldList(()=>[{no:1,name:"data",kind:"message",T:qr}]));var sb=vo,So=class So extends Le{constructor(n){super();_(this,"kind",Su.STATIC_CONFIGURATION_VARIABLE);_(this,"staticVariableContent","");_(this,"environmentVariableName","");_(this,"environmentVariableDefaultValue","");_(this,"placeholderVariableName","");B.util.initPartial(n,this)}static fromBinary(n,r){return new So().fromBinary(n,r)}static fromJson(n,r){return new So().fromJson(n,r)}static fromJsonString(n,r){return new So().fromJsonString(n,r)}static equals(n,r){return B.util.equals(So,n,r)}};_(So,"runtime",B),_(So,"typeName","wg.cosmo.node.v1.ConfigurationVariable"),_(So,"fields",B.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:B.getEnumType(Su)},{no:2,name:"static_variable_content",kind:"scalar",T:9},{no:3,name:"environment_variable_name",kind:"scalar",T:9},{no:4,name:"environment_variable_default_value",kind:"scalar",T:9},{no:5,name:"placeholder_variable_name",kind:"scalar",T:9}]));var qr=So,Oo=class Oo extends Le{constructor(n){super();_(this,"directiveName","");_(this,"renameTo","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Oo().fromBinary(n,r)}static fromJson(n,r){return new Oo().fromJson(n,r)}static fromJsonString(n,r){return new Oo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Oo,n,r)}};_(Oo,"runtime",B),_(Oo,"typeName","wg.cosmo.node.v1.DirectiveConfiguration"),_(Oo,"fields",B.util.newFieldList(()=>[{no:1,name:"directive_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var ob=Oo,Do=class Do extends Le{constructor(n){super();_(this,"name","");_(this,"value","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Do().fromBinary(n,r)}static fromJson(n,r){return new Do().fromJson(n,r)}static fromJsonString(n,r){return new Do().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Do,n,r)}};_(Do,"runtime",B),_(Do,"typeName","wg.cosmo.node.v1.URLQueryConfiguration"),_(Do,"fields",B.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9}]));var ub=Do,bo=class bo extends Le{constructor(n){super();_(this,"values",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new bo().fromBinary(n,r)}static fromJson(n,r){return new bo().fromJson(n,r)}static fromJsonString(n,r){return new bo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(bo,n,r)}};_(bo,"runtime",B),_(bo,"typeName","wg.cosmo.node.v1.HTTPHeader"),_(bo,"fields",B.util.newFieldList(()=>[{no:1,name:"values",kind:"message",T:qr,repeated:!0}]));var cb=bo,Ao=class Ao extends Le{constructor(n){super();_(this,"key");_(this,"cert");_(this,"insecureSkipVerify",!1);B.util.initPartial(n,this)}static fromBinary(n,r){return new Ao().fromBinary(n,r)}static fromJson(n,r){return new Ao().fromJson(n,r)}static fromJsonString(n,r){return new Ao().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Ao,n,r)}};_(Ao,"runtime",B),_(Ao,"typeName","wg.cosmo.node.v1.MTLSConfiguration"),_(Ao,"fields",B.util.newFieldList(()=>[{no:1,name:"key",kind:"message",T:qr},{no:2,name:"cert",kind:"message",T:qr},{no:3,name:"insecureSkipVerify",kind:"scalar",T:8}]));var lb=Ao,Ro=class Ro extends Le{constructor(n){super();_(this,"enabled",!1);_(this,"url");_(this,"useSSE");_(this,"protocol");_(this,"websocketSubprotocol");B.util.initPartial(n,this)}static fromBinary(n,r){return new Ro().fromBinary(n,r)}static fromJson(n,r){return new Ro().fromJson(n,r)}static fromJsonString(n,r){return new Ro().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Ro,n,r)}};_(Ro,"runtime",B),_(Ro,"typeName","wg.cosmo.node.v1.GraphQLSubscriptionConfiguration"),_(Ro,"fields",B.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"url",kind:"message",T:qr},{no:3,name:"useSSE",kind:"scalar",T:8,opt:!0},{no:4,name:"protocol",kind:"enum",T:B.getEnumType(Fs),opt:!0},{no:5,name:"websocketSubprotocol",kind:"enum",T:B.getEnumType(ws),opt:!0}]));var db=Ro,Po=class Po extends Le{constructor(n){super();_(this,"enabled",!1);_(this,"serviceSdl","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Po().fromBinary(n,r)}static fromJson(n,r){return new Po().fromJson(n,r)}static fromJsonString(n,r){return new Po().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Po,n,r)}};_(Po,"runtime",B),_(Po,"typeName","wg.cosmo.node.v1.GraphQLFederationConfiguration"),_(Po,"fields",B.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"serviceSdl",kind:"scalar",T:9}]));var fb=Po,Fo=class Fo extends Le{constructor(n){super();_(this,"key","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Fo().fromBinary(n,r)}static fromJson(n,r){return new Fo().fromJson(n,r)}static fromJsonString(n,r){return new Fo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Fo,n,r)}};_(Fo,"runtime",B),_(Fo,"typeName","wg.cosmo.node.v1.InternedString"),_(Fo,"fields",B.util.newFieldList(()=>[{no:1,name:"key",kind:"scalar",T:9}]));var _p=Fo,wo=class wo extends Le{constructor(n){super();_(this,"typeName","");_(this,"fieldName","");B.util.initPartial(n,this)}static fromBinary(n,r){return new wo().fromBinary(n,r)}static fromJson(n,r){return new wo().fromJson(n,r)}static fromJsonString(n,r){return new wo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(wo,n,r)}};_(wo,"runtime",B),_(wo,"typeName","wg.cosmo.node.v1.SingleTypeField"),_(wo,"fields",B.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9}]));var pb=wo,Lo=class Lo extends Le{constructor(n){super();_(this,"fieldPath",[]);_(this,"json","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Lo().fromBinary(n,r)}static fromJson(n,r){return new Lo().fromJson(n,r)}static fromJsonString(n,r){return new Lo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Lo,n,r)}};_(Lo,"runtime",B),_(Lo,"typeName","wg.cosmo.node.v1.SubscriptionFieldCondition"),_(Lo,"fields",B.util.newFieldList(()=>[{no:1,name:"field_path",kind:"scalar",T:9,repeated:!0},{no:2,name:"json",kind:"scalar",T:9}]));var vp=Lo,Hi=class Hi extends Le{constructor(n){super();_(this,"and",[]);_(this,"in");_(this,"not");_(this,"or",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Hi().fromBinary(n,r)}static fromJson(n,r){return new Hi().fromJson(n,r)}static fromJsonString(n,r){return new Hi().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Hi,n,r)}};_(Hi,"runtime",B),_(Hi,"typeName","wg.cosmo.node.v1.SubscriptionFilterCondition"),_(Hi,"fields",B.util.newFieldList(()=>[{no:1,name:"and",kind:"message",T:Hi,repeated:!0},{no:2,name:"in",kind:"message",T:vp,opt:!0},{no:3,name:"not",kind:"message",T:Hi,opt:!0},{no:4,name:"or",kind:"message",T:Hi,repeated:!0}]));var Ou=Hi,Co=class Co extends Le{constructor(n){super();_(this,"operations",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Co().fromBinary(n,r)}static fromJson(n,r){return new Co().fromJson(n,r)}static fromJsonString(n,r){return new Co().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Co,n,r)}};_(Co,"runtime",B),_(Co,"typeName","wg.cosmo.node.v1.CacheWarmerOperations"),_(Co,"fields",B.util.newFieldList(()=>[{no:1,name:"operations",kind:"message",T:mb,repeated:!0}]));var G1=Co,Bo=class Bo extends Le{constructor(n){super();_(this,"request");_(this,"client");B.util.initPartial(n,this)}static fromBinary(n,r){return new Bo().fromBinary(n,r)}static fromJson(n,r){return new Bo().fromJson(n,r)}static fromJsonString(n,r){return new Bo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Bo,n,r)}};_(Bo,"runtime",B),_(Bo,"typeName","wg.cosmo.node.v1.Operation"),_(Bo,"fields",B.util.newFieldList(()=>[{no:1,name:"request",kind:"message",T:Nb},{no:2,name:"client",kind:"message",T:hb}]));var mb=Bo,Uo=class Uo extends Le{constructor(n){super();_(this,"operationName","");_(this,"query","");_(this,"extensions");B.util.initPartial(n,this)}static fromBinary(n,r){return new Uo().fromBinary(n,r)}static fromJson(n,r){return new Uo().fromJson(n,r)}static fromJsonString(n,r){return new Uo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Uo,n,r)}};_(Uo,"runtime",B),_(Uo,"typeName","wg.cosmo.node.v1.OperationRequest"),_(Uo,"fields",B.util.newFieldList(()=>[{no:1,name:"operation_name",kind:"scalar",T:9},{no:2,name:"query",kind:"scalar",T:9},{no:3,name:"extensions",kind:"message",T:Tb}]));var Nb=Uo,ko=class ko extends Le{constructor(n){super();_(this,"persistedQuery");B.util.initPartial(n,this)}static fromBinary(n,r){return new ko().fromBinary(n,r)}static fromJson(n,r){return new ko().fromJson(n,r)}static fromJsonString(n,r){return new ko().fromJsonString(n,r)}static equals(n,r){return B.util.equals(ko,n,r)}};_(ko,"runtime",B),_(ko,"typeName","wg.cosmo.node.v1.Extension"),_(ko,"fields",B.util.newFieldList(()=>[{no:1,name:"persisted_query",kind:"message",T:Eb}]));var Tb=ko,Mo=class Mo extends Le{constructor(n){super();_(this,"sha256Hash","");_(this,"version",0);B.util.initPartial(n,this)}static fromBinary(n,r){return new Mo().fromBinary(n,r)}static fromJson(n,r){return new Mo().fromJson(n,r)}static fromJsonString(n,r){return new Mo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Mo,n,r)}};_(Mo,"runtime",B),_(Mo,"typeName","wg.cosmo.node.v1.PersistedQuery"),_(Mo,"fields",B.util.newFieldList(()=>[{no:1,name:"sha256_hash",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:5}]));var Eb=Mo,xo=class xo extends Le{constructor(n){super();_(this,"name","");_(this,"version","");B.util.initPartial(n,this)}static fromBinary(n,r){return new xo().fromBinary(n,r)}static fromJson(n,r){return new xo().fromJson(n,r)}static fromJsonString(n,r){return new xo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(xo,n,r)}};_(xo,"runtime",B),_(xo,"typeName","wg.cosmo.node.v1.ClientInfo"),_(xo,"fields",B.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:9}]));var hb=xo;m();T();N();function yb(e){return new Error(`Normalization failed to return a ${e}.`)}function $1(e){return new Error(`Invalid router compatibility version "${e}".`)}m();T();N();var cd=ps(HE(),1);function afe(e){if(!e.conditions)return;let t=[];for(let n of e.conditions){let r=[];for(let i of n.fieldCoordinatesPath){let a=i.split(".");if(a.length!==2)throw new Error(`fatal: malformed conditional field coordinates "${i}" for field set "${e.selectionSet}".`);r.push(new mp({fieldName:a[1],typeName:a[0]}))}t.push(new Np({fieldCoordinatesPath:r,fieldPath:n.fieldPath}))}return t}function Ib(e,t,n){if(e)for(let r of e){let i=afe(r);t.push(new Fc(x(x({typeName:n,fieldName:r.fieldName,selectionSet:r.selectionSet},r.disableEntityResolver?{disableEntityResolver:!0}:{}),i?{conditions:i}:{})))}}function gb(e){switch(e){case"publish":return qo.PUBLISH;case"request":return qo.REQUEST;case"subscribe":return qo.SUBSCRIBE}}function Q1(e){var n;let t={rootNodes:[],childNodes:[],keys:[],provides:[],events:new Bc({nats:[],kafka:[],redis:[]}),requires:[],entityInterfaces:[],interfaceObjects:[]};for(let r of e.values()){let i=r.typeName,a=[...r.fieldNames],o=new sd({fieldNames:a,typeName:i});if(r.externalFieldNames&&r.externalFieldNames.size>0&&(o.externalFieldNames=[...r.externalFieldNames]),r.requireFetchReasonsFieldNames&&r.requireFetchReasonsFieldNames.length>0&&(o.requireFetchReasonsFieldNames=[...r.requireFetchReasonsFieldNames]),r.isRootNode?t.rootNodes.push(o):t.childNodes.push(o),r.entityInterfaceConcreteTypeNames){let p=new od({interfaceTypeName:i,concreteTypeNames:[...r.entityInterfaceConcreteTypeNames]});r.isInterfaceObject?t.interfaceObjects.push(p):t.entityInterfaces.push(p)}Ib(r.keys,t.keys,i),Ib(r.provides,t.provides,i),Ib(r.requires,t.requires,i);let c=[],l=[],d=[];for(let p of(n=r.events)!=null?n:[])switch(p.providerType){case cd.PROVIDER_TYPE_KAFKA:{l.push(new Ip({engineEventConfiguration:new Vo({fieldName:p.fieldName,providerId:p.providerId,type:gb(p.type),typeName:i}),topics:p.topics}));break}case cd.PROVIDER_TYPE_NATS:{c.push(new yp(x({engineEventConfiguration:new Vo({fieldName:p.fieldName,providerId:p.providerId,type:gb(p.type),typeName:i}),subjects:p.subjects},p.streamConfiguration?{streamConfiguration:new hp({consumerInactiveThreshold:p.streamConfiguration.consumerInactiveThreshold,consumerName:p.streamConfiguration.consumerName,streamName:p.streamConfiguration.streamName})}:{})));break}case cd.PROVIDER_TYPE_REDIS:{d.push(new gp({engineEventConfiguration:new Vo({fieldName:p.fieldName,providerId:p.providerId,type:gb(p.type),typeName:i}),channels:p.channels}));break}default:throw new Error("Fatal: Unknown event provider.")}t.events.nats.push(...c),t.events.kafka.push(...l),t.events.redis.push(...d)}return t}function Y1(e){var n,r;let t=[];for(let i of e){let a=i.argumentNames.map(p=>new dp({name:p,sourceType:wc.FIELD_ARGUMENT})),o=new pp({argumentsConfiguration:a,fieldName:i.fieldName,typeName:i.typeName}),c=((n=i.requiredScopes)==null?void 0:n.map(p=>new Cc({requiredAndScopes:p})))||[],l=((r=i.requiredScopesByOR)==null?void 0:r.map(p=>new Cc({requiredAndScopes:p})))||[],d=c.length>0;if((i.requiresAuthentication||d)&&(o.authorizationConfiguration=new fp({requiresAuthentication:i.requiresAuthentication||d,requiredOrScopes:c,requiredOrScopesByOr:l})),i.subscriptionFilterCondition){let p=new Ou;gh(p,i.subscriptionFilterCondition),o.subscriptionFilterCondition=p}t.push(o)}return t}function gh(e,t){if(t.and!==void 0){let n=[];for(let r of t.and){let i=new Ou;gh(i,r),n.push(i)}e.and=n;return}if(t.in!==void 0){e.in=new vp({fieldPath:t.in.fieldPath,json:JSON.stringify(t.in.values)});return}if(t.not!==void 0){e.not=new Ou,gh(e.not,t.not);return}if(t.or!==void 0){let n=[];for(let r of t.or){let i=new Ou;gh(i,r),n.push(i)}e.or=n;return}throw new Error("Fatal: Incoming SubscriptionCondition object was malformed.")}var Uc;(function(e){e[e.Plugin=0]="Plugin",e[e.Standard=1]="Standard",e[e.GRPC=2]="GRPC"})(Uc||(Uc={}));var sfe=(e,t)=>{let n=stringHash(t);return e.stringStorage[n]=t,new _p({key:n})},ofe=e=>{switch(e){case"ws":return Fs.GRAPHQL_SUBSCRIPTION_PROTOCOL_WS;case"sse":return Fs.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE;case"sse_post":return Fs.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST}},ufe=e=>{switch(e){case"auto":return ws.GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO;case"graphql-ws":return ws.GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS;case"graphql-transport-ws":return ws.GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS}},H1=function(e){if(!ld.ROUTER_COMPATIBILITY_VERSIONS.has(e.routerCompatibilityVersion))throw $1(e.routerCompatibilityVersion);let t=new ad({defaultFlushInterval:BigInt(500),datasourceConfigurations:[],fieldConfigurations:[],graphqlSchema:"",stringStorage:{},typeConfigurations:[]});for(let n of e.subgraphs){if(!n.configurationDataByTypeName)throw yb("ConfigurationDataByTypeName");if(!n.schema)throw yb("GraphQLSchema");let r={enabled:!0},i=sfe(t,n1((0,J1.lexicographicSortSchema)(n.schema))),{childNodes:a,entityInterfaces:o,events:c,interfaceObjects:l,keys:d,provides:p,requires:y,rootNodes:I}=Q1(n.configurationDataByTypeName),v;switch(n.kind){case Uc.Standard:{r.enabled=!0,r.protocol=ofe(n.subscriptionProtocol||"ws"),r.websocketSubprotocol=ufe(n.websocketSubprotocol||"auto"),r.url=new qr({kind:Su.STATIC_CONFIGURATION_VARIABLE,staticVariableContent:n.subscriptionUrl||n.url});break}case Uc.Plugin:{v=new ud({mapping:n.mapping,protoSchema:n.protoSchema,plugin:new Ep({name:n.name,version:n.version,imageReference:n.imageReference})});break}case Uc.GRPC:{v=new ud({mapping:n.mapping,protoSchema:n.protoSchema});break}}let F,k,K;if(c.kafka.length>0||c.nats.length>0||c.redis.length>0){F=vu.PUBSUB,K=new Bc({kafka:c.kafka,nats:c.nats,redis:c.redis});let se=de=>ld.ROOT_TYPE_NAMES.has(de.typeName),ie=0,Te=0;for(;ie({id:n.id,name:n.name,routingUrl:n.url})),compatibilityVersion:`${e.routerCompatibilityVersion}:${ld.COMPOSITION_VERSION}`})};m();T();N();var Mc=ps(De());function z1(e){let t;try{t=(0,Mc.parse)(e.schema)}catch(n){throw new Error(`could not parse schema for Graph ${e.name}: ${n}`)}return{definitions:t,name:e.name,url:e.url}}function cfe(e){let t=(0,kc.federateSubgraphs)({subgraphs:e.map(z1),version:kc.LATEST_ROUTER_COMPATIBILITY_VERSION});if(!t.success)throw new Error(`could not federate schema: ${t.errors.map(n=>n.message).join(", ")}`);return{fieldConfigurations:t.fieldConfigurations,sdl:(0,Mc.print)(t.federatedGraphAST)}}function lfe(e){let t=(0,kc.federateSubgraphs)({subgraphs:e.map(z1),version:kc.LATEST_ROUTER_COMPATIBILITY_VERSION});if(!t.success)throw new Error(`could not federate schema: ${t.errors.map(r=>r.message).join(", ")}`);return H1({federatedClientSDL:(0,Mc.printSchema)(t.federatedGraphClientSchema),federatedSDL:(0,Mc.printSchema)(t.federatedGraphSchema),fieldConfigurations:t.fieldConfigurations,routerCompatibilityVersion:kc.LATEST_ROUTER_COMPATIBILITY_VERSION,schemaVersionId:"",subgraphs:e.map((r,i)=>{var l,d;let a=t.subgraphConfigBySubgraphName.get(r.name),o=a==null?void 0:a.schema,c=a==null?void 0:a.configurationDataByTypeName;return{kind:Uc.Standard,id:`${i}`,name:r.name,url:AD(r.url),sdl:r.schema,subscriptionUrl:AD((l=r.subscription_url)!=null?l:r.url),subscriptionProtocol:(d=r.subscription_protocol)!=null?d:"ws",websocketSubprotocol:r.subscription_protocol==="ws"?r.websocketSubprotocol||"auto":void 0,schema:o,configurationDataByTypeName:c}})}).toJsonString()}return pm(dfe);})(); diff --git a/composition/src/resolvability-graph/graph.ts b/composition/src/resolvability-graph/graph.ts index cd87f0d7e6..f1d1432aca 100644 --- a/composition/src/resolvability-graph/graph.ts +++ b/composition/src/resolvability-graph/graph.ts @@ -298,9 +298,12 @@ export class Graph { `resDataByRelativeOriginPath`, ); const fullPath = `${pathFromRoot}${unresolvableEntityPath}`; - const rootResData = getOrThrowError(walker.resDataByPath, fullPath, `rootFieldWalker.resDataByPath`); - entityResData.addData(rootResData); - rootResData.addData(entityResData); + const rootResData = walker.resDataByPath.get(fullPath); + // The path may not exist from the root walker due to nested entities. + if (rootResData) { + entityResData.addData(rootResData); + rootResData.addData(entityResData); + } if (!entityResData.isResolved()) { continue; } diff --git a/composition/tests/v1/resolvability.test.ts b/composition/tests/v1/resolvability.test.ts index 53b0816918..c65d74398b 100644 --- a/composition/tests/v1/resolvability.test.ts +++ b/composition/tests/v1/resolvability.test.ts @@ -1696,6 +1696,92 @@ describe('Field resolvability tests', () => { ), ); }); + + test('that errors are returned for unresolvable fields involving a shared root query field and unreachable nested entities', () => { + const { errors } = federateSubgraphsFailure([haaa, haab, haac], ROUTER_COMPATIBILITY_VERSION_ONE); + const entityAncestors: EntityAncestorCollection = { + fieldSetsByTargetSubgraphName: new Map>([ + [haaa.name, new Set(['idB'])], + [haab.name, new Set(['idB'])], + [haac.name, new Set(['idA'])], + ]), + subgraphNames: [haaa.name, haab.name], + typeName: 'EntityA', + }; + const rootFieldData = newRootFieldData(QUERY, 'a', new Set([haaa.name, haab.name])); + + const unresolvableFieldDataOne: UnresolvableFieldData = { + fieldName: 'createdAt', + selectionSet: renderSelectionSet(generateSelectionSetSegments('query.a.b.edges.node.c.a'), { + isLeaf: true, + name: 'createdAt', + } as GraphFieldData), + subgraphNames: new Set([haaa.name]), + typeName: 'EntityA', + }; + const unresolvableFieldDataTwo: UnresolvableFieldData = { + fieldName: 'active', + selectionSet: renderSelectionSet(generateSelectionSetSegments('query.a.b.edges.node.c.a'), { + isLeaf: true, + name: 'active', + } as GraphFieldData), + subgraphNames: new Set([haaa.name]), + typeName: 'EntityA', + }; + const unresolvableFieldDataThree: UnresolvableFieldData = { + fieldName: 'b', + selectionSet: renderSelectionSet(generateSelectionSetSegments('query.a.b.edges.node.c.a'), { + isLeaf: false, + name: 'b', + } as GraphFieldData), + subgraphNames: new Set([haab.name]), + typeName: 'EntityA', + }; + const unresolvableFieldDataFour: UnresolvableFieldData = { + fieldName: 'c', + selectionSet: renderSelectionSet(generateSelectionSetSegments('query.a.b.nodes'), { + isLeaf: false, + name: 'c', + } as GraphFieldData), + subgraphNames: new Set([haac.name]), + typeName: 'EntityB', + }; + + expect(errors).toHaveLength(4); + expect(errors).toStrictEqual([ + unresolvablePathError( + unresolvableFieldDataOne, + generateSharedResolvabilityErrorReasons({ + entityAncestors, + rootFieldData, + unresolvableFieldData: unresolvableFieldDataOne, + }), + ), + unresolvablePathError( + unresolvableFieldDataTwo, + generateSharedResolvabilityErrorReasons({ + entityAncestors, + rootFieldData, + unresolvableFieldData: unresolvableFieldDataTwo, + }), + ), + unresolvablePathError( + unresolvableFieldDataThree, + generateSharedResolvabilityErrorReasons({ + entityAncestors, + rootFieldData, + unresolvableFieldData: unresolvableFieldDataThree, + }), + ), + unresolvablePathError( + unresolvableFieldDataFour, + generateResolvabilityErrorReasons({ + rootFieldData, + unresolvableFieldData: unresolvableFieldDataFour, + }), + ), + ]); + }); }); const subgraphA: Subgraph = { @@ -3382,3 +3468,75 @@ const gaab: Subgraph = { } `), }; + +const haaa: Subgraph = { + name: 'haaa', + url: '', + definitions: parse(` + scalar ScalarID @inaccessible + + type EntityA @shareable @key(fields: "idB") { + idA: ID! + idB: ScalarID! @inaccessible + createdAt: String! + active: Boolean! + } + + type Query { + a: EntityA @shareable + } + `), +}; + +const haab: Subgraph = { + name: 'haab', + url: '', + definitions: parse(` + scalar ScalarID @inaccessible + + type EntityA @shareable @key(fields: "idB") { + idA: ID! + idB: ScalarID! @inaccessible + b: EntityBConnection! + } + + type EntityB @shareable @key(fields: "idB") { + idA: ID! + idB: ScalarID! @inaccessible + a: EntityA + } + + type EntityBConnection { + edges: [EntityBEdge] + nodes: [EntityB] + } + + type EntityBEdge { + node: EntityB + } + + type Query { + a: EntityA @shareable + } + `), +}; + +const haac: Subgraph = { + name: 'haac', + url: '', + definitions: parse(` + type EntityA @shareable @key(fields: "idA") { + idA: ID! + } + + type EntityB @shareable @key(fields: "idA") { + idA: ID! + c: EntityC + } + + type EntityC @shareable @key(fields: "id") { + id: ID! + a: EntityA + } + `), +}; From ae1e43a549655aae71eab31a8b6c2258de50d583 Mon Sep 17 00:00:00 2001 From: hardworker-bot Date: Thu, 23 Oct 2025 17:29:15 +0000 Subject: [PATCH 05/10] chore(release): Publish [skip ci] - wgc@0.94.3 - @wundergraph/composition@0.47.1 - controlplane@0.168.5 - @wundergraph/cosmo-shared@0.42.11 - studio@0.136.1 --- cli/CHANGELOG.md | 4 ++++ cli/package.json | 2 +- composition/CHANGELOG.md | 6 ++++++ composition/package.json | 2 +- controlplane/CHANGELOG.md | 4 ++++ controlplane/package.json | 2 +- shared/CHANGELOG.md | 4 ++++ shared/package.json | 2 +- studio/CHANGELOG.md | 4 ++++ studio/package.json | 2 +- 10 files changed, 27 insertions(+), 5 deletions(-) diff --git a/cli/CHANGELOG.md b/cli/CHANGELOG.md index ec7e6cb1d7..da817ee008 100644 --- a/cli/CHANGELOG.md +++ b/cli/CHANGELOG.md @@ -4,6 +4,10 @@ Binaries are attached to the github release otherwise all images can be found [h All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.94.3](https://github.com/wundergraph/cosmo/compare/wgc@0.94.2...wgc@0.94.3) (2025-10-23) + +**Note:** Version bump only for package wgc + ## [0.94.2](https://github.com/wundergraph/cosmo/compare/wgc@0.94.1...wgc@0.94.2) (2025-10-17) **Note:** Version bump only for package wgc diff --git a/cli/package.json b/cli/package.json index a84026fe0e..1120ce5b28 100644 --- a/cli/package.json +++ b/cli/package.json @@ -1,6 +1,6 @@ { "name": "wgc", - "version": "0.94.2", + "version": "0.94.3", "description": "The official CLI tool to manage the GraphQL Federation Platform Cosmo", "type": "module", "main": "dist/src/index.js", diff --git a/composition/CHANGELOG.md b/composition/CHANGELOG.md index b00ce74b3f..e1a9cbf666 100644 --- a/composition/CHANGELOG.md +++ b/composition/CHANGELOG.md @@ -4,6 +4,12 @@ Binaries are attached to the github release otherwise all images can be found [h All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.47.1](https://github.com/wundergraph/cosmo/compare/@wundergraph/composition@0.47.0...@wundergraph/composition@0.47.1) (2025-10-23) + +### Bug Fixes + +* handle internal graph edge case with shared root field and nested entities ([#2298](https://github.com/wundergraph/cosmo/issues/2298)) ([3a50788](https://github.com/wundergraph/cosmo/commit/3a50788408b268e914d17b1f4a16e252022d2306)) (@wilsonrivera) + # [0.47.0](https://github.com/wundergraph/cosmo/compare/@wundergraph/composition@0.46.4...@wundergraph/composition@0.47.0) (2025-10-17) ### Features diff --git a/composition/package.json b/composition/package.json index 9d9e998586..85159ce768 100644 --- a/composition/package.json +++ b/composition/package.json @@ -1,6 +1,6 @@ { "name": "@wundergraph/composition", - "version": "0.47.0", + "version": "0.47.1", "author": { "name": "WunderGraph Maintainers", "email": "info@wundergraph.com" diff --git a/controlplane/CHANGELOG.md b/controlplane/CHANGELOG.md index 365d5432af..f823cf4734 100644 --- a/controlplane/CHANGELOG.md +++ b/controlplane/CHANGELOG.md @@ -4,6 +4,10 @@ Binaries are attached to the github release otherwise all images can be found [h All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.168.5](https://github.com/wundergraph/cosmo/compare/controlplane@0.168.4...controlplane@0.168.5) (2025-10-23) + +**Note:** Version bump only for package controlplane + ## [0.168.4](https://github.com/wundergraph/cosmo/compare/controlplane@0.168.3...controlplane@0.168.4) (2025-10-17) **Note:** Version bump only for package controlplane diff --git a/controlplane/package.json b/controlplane/package.json index 94e0b36ee2..b35dcb46aa 100644 --- a/controlplane/package.json +++ b/controlplane/package.json @@ -1,6 +1,6 @@ { "name": "controlplane", - "version": "0.168.4", + "version": "0.168.5", "private": true, "description": "WunderGraph Cosmo Controlplane", "type": "module", diff --git a/shared/CHANGELOG.md b/shared/CHANGELOG.md index 7576af5443..3343d6358e 100644 --- a/shared/CHANGELOG.md +++ b/shared/CHANGELOG.md @@ -4,6 +4,10 @@ Binaries are attached to the github release otherwise all images can be found [h All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.42.11](https://github.com/wundergraph/cosmo/compare/@wundergraph/cosmo-shared@0.42.10...@wundergraph/cosmo-shared@0.42.11) (2025-10-23) + +**Note:** Version bump only for package @wundergraph/cosmo-shared + ## [0.42.10](https://github.com/wundergraph/cosmo/compare/@wundergraph/cosmo-shared@0.42.9...@wundergraph/cosmo-shared@0.42.10) (2025-10-17) **Note:** Version bump only for package @wundergraph/cosmo-shared diff --git a/shared/package.json b/shared/package.json index ce82e8291f..7a5bcbbb48 100644 --- a/shared/package.json +++ b/shared/package.json @@ -1,6 +1,6 @@ { "name": "@wundergraph/cosmo-shared", - "version": "0.42.10", + "version": "0.42.11", "description": "Shared code between WunderGraph Cosmo packages", "main": "./dist/index.js", "type": "module", diff --git a/studio/CHANGELOG.md b/studio/CHANGELOG.md index 0f8196f0e0..3e121791fa 100644 --- a/studio/CHANGELOG.md +++ b/studio/CHANGELOG.md @@ -4,6 +4,10 @@ Binaries are attached to the github release otherwise all images can be found [h All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.136.1](https://github.com/wundergraph/cosmo/compare/studio@0.136.0...studio@0.136.1) (2025-10-23) + +**Note:** Version bump only for package studio + # [0.136.0](https://github.com/wundergraph/cosmo/compare/studio@0.135.2...studio@0.136.0) (2025-10-22) ### Features diff --git a/studio/package.json b/studio/package.json index be1cf21ff1..a0294cae1c 100644 --- a/studio/package.json +++ b/studio/package.json @@ -1,6 +1,6 @@ { "name": "studio", - "version": "0.136.0", + "version": "0.136.1", "private": true, "license": "Apache-2.0", "description": "WunderGraph Cosmo Studio", From 3d227eb3bb8fff1f611bf77e8d2f1e9913faac36 Mon Sep 17 00:00:00 2001 From: Ahmet Soormally Date: Sat, 25 Oct 2025 10:36:13 +0100 Subject: [PATCH 06/10] bumping GraphQL go tools --- router/go.mod | 5 +---- router/go.sum | 2 ++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/router/go.mod b/router/go.mod index eb2b7e221d..328a39ee87 100644 --- a/router/go.mod +++ b/router/go.mod @@ -31,7 +31,7 @@ require ( github.com/tidwall/gjson v1.18.0 github.com/tidwall/sjson v1.2.5 github.com/twmb/franz-go v1.16.1 - github.com/wundergraph/graphql-go-tools/v2 v2.0.0-rc.232 + github.com/wundergraph/graphql-go-tools/v2 v2.0.0-rc.234 // Do not upgrade, it renames attributes we rely on go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.58.0 go.opentelemetry.io/contrib/propagators/b3 v1.23.0 @@ -194,7 +194,4 @@ replace ( // Remember you can use Go workspaces to avoid using replace directives in multiple go.mod files // Use what is best for your personal workflow. See CONTRIBUTING.md for more information -// Local development: Use local graphql-go-tools with Description support in OperationDefinition -replace github.com/wundergraph/graphql-go-tools/v2 => /Users/asoorm/go/src/github.com/wundergraph/graphql-go-tools/v2 - // replace github.com/wundergraph/graphql-go-tools/v2 => ../../graphql-go-tools/v2 diff --git a/router/go.sum b/router/go.sum index 91222ec5d3..60836cf279 100644 --- a/router/go.sum +++ b/router/go.sum @@ -322,6 +322,8 @@ github.com/wk8/go-ordered-map/v2 v2.1.8 h1:5h/BUHu93oj4gIdvHHHGsScSTMijfx5PeYkE/ github.com/wk8/go-ordered-map/v2 v2.1.8/go.mod h1:5nJHM5DyteebpVlHnWMV0rPz6Zp7+xBAnxjb1X5vnTw= github.com/wundergraph/astjson v0.0.0-20250106123708-be463c97e083 h1:8/D7f8gKxTBjW+SZK4mhxTTBVpxcqeBgWF1Rfmltbfk= github.com/wundergraph/astjson v0.0.0-20250106123708-be463c97e083/go.mod h1:eOTL6acwctsN4F3b7YE+eE2t8zcJ/doLm9sZzsxxxrE= +github.com/wundergraph/graphql-go-tools/v2 v2.0.0-rc.234 h1:yk+HTcTq61JxM/TvlZy1Fnc90I9whgGAKfmoaHWR6is= +github.com/wundergraph/graphql-go-tools/v2 v2.0.0-rc.234/go.mod h1:ErOQH1ki2+SZB8JjpTyGVnoBpg5picIyjvuWQJP4abg= github.com/yosida95/uritemplate/v3 v3.0.2 h1:Ed3Oyj9yrmi9087+NczuL5BwkIc4wvTb5zIM+UJPGz4= github.com/yosida95/uritemplate/v3 v3.0.2/go.mod h1:ILOh0sOhIJR3+L/8afwt/kE++YT040gmv5BQTMR2HP4= github.com/yuin/gopher-lua v1.1.1 h1:kYKnWBjvbNP4XLT3+bPEwAXJx262OhaHDWDVOPjL46M= From b156bdc405d6d1f7616c7379b7ac96e7e57b1758 Mon Sep 17 00:00:00 2001 From: Ahmet Soormally Date: Sat, 25 Oct 2025 10:49:21 +0100 Subject: [PATCH 07/10] when named operation contains a description, use it, otherwise fall back to auto-gen --- router/pkg/schemaloader/schema_builder.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/router/pkg/schemaloader/schema_builder.go b/router/pkg/schemaloader/schema_builder.go index dd1cd88321..a6bfa7a141 100644 --- a/router/pkg/schemaloader/schema_builder.go +++ b/router/pkg/schemaloader/schema_builder.go @@ -2,7 +2,6 @@ package schemaloader import ( "fmt" - "strings" "github.com/wundergraph/graphql-go-tools/v2/pkg/ast" "github.com/wundergraph/graphql-go-tools/v2/pkg/engine/jsonschema" @@ -48,8 +47,12 @@ func (b *SchemaBuilder) buildSchemaForOperation(operation *Operation) error { } operation.JSONSchema = s - // Merge descriptions (operation takes priority) - operation.Description = strings.TrimSpace(operation.Description + " " + schema.Description) + // Use operation description if provided, otherwise fall back to schema description + // This ensures user-provided descriptions take absolute priority + if operation.Description == "" { + operation.Description = schema.Description + } + // If operation.Description is not empty, keep it as-is (don't merge with schema description) } return nil From 8fd064b7e1f4490e38a35d843a221568a252f1d7 Mon Sep 17 00:00:00 2001 From: Ahmet Soormally Date: Sat, 25 Oct 2025 11:02:36 +0100 Subject: [PATCH 08/10] updating go modules --- router-tests/go.mod | 2 +- router-tests/go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/router-tests/go.mod b/router-tests/go.mod index f6e5055412..fec132d738 100644 --- a/router-tests/go.mod +++ b/router-tests/go.mod @@ -27,7 +27,7 @@ require ( github.com/wundergraph/cosmo/demo/pkg/subgraphs/projects v0.0.0-20250715110703-10f2e5f9c79e github.com/wundergraph/cosmo/router v0.0.0-20250912064154-106e871ee32e github.com/wundergraph/cosmo/router-plugin v0.0.0-20250808194725-de123ba1c65e - github.com/wundergraph/graphql-go-tools/v2 v2.0.0-rc.232 + github.com/wundergraph/graphql-go-tools/v2 v2.0.0-rc.234 go.opentelemetry.io/otel v1.36.0 go.opentelemetry.io/otel/sdk v1.36.0 go.opentelemetry.io/otel/sdk/metric v1.36.0 diff --git a/router-tests/go.sum b/router-tests/go.sum index 17ca36aee1..f6eb706cef 100644 --- a/router-tests/go.sum +++ b/router-tests/go.sum @@ -354,8 +354,8 @@ github.com/wundergraph/astjson v0.0.0-20250106123708-be463c97e083 h1:8/D7f8gKxTB github.com/wundergraph/astjson v0.0.0-20250106123708-be463c97e083/go.mod h1:eOTL6acwctsN4F3b7YE+eE2t8zcJ/doLm9sZzsxxxrE= github.com/wundergraph/consul/sdk v0.0.0-20250204115147-ed842a8fd301 h1:EzfKHQoTjFDDcgaECCCR2aTePqMu9QBmPbyhqIYOhV0= github.com/wundergraph/consul/sdk v0.0.0-20250204115147-ed842a8fd301/go.mod h1:wxI0Nak5dI5RvJuzGyiEK4nZj0O9X+Aw6U0tC1wPKq0= -github.com/wundergraph/graphql-go-tools/v2 v2.0.0-rc.232 h1:G04FDSXlEaQZS9cBrKlP8djbzquoQElB7w7i/d4sAHg= -github.com/wundergraph/graphql-go-tools/v2 v2.0.0-rc.232/go.mod h1:ErOQH1ki2+SZB8JjpTyGVnoBpg5picIyjvuWQJP4abg= +github.com/wundergraph/graphql-go-tools/v2 v2.0.0-rc.234 h1:yk+HTcTq61JxM/TvlZy1Fnc90I9whgGAKfmoaHWR6is= +github.com/wundergraph/graphql-go-tools/v2 v2.0.0-rc.234/go.mod h1:ErOQH1ki2+SZB8JjpTyGVnoBpg5picIyjvuWQJP4abg= github.com/xrash/smetrics v0.0.0-20250705151800-55b8f293f342 h1:FnBeRrxr7OU4VvAzt5X7s6266i6cSVkkFPS0TuXWbIg= github.com/xrash/smetrics v0.0.0-20250705151800-55b8f293f342/go.mod h1:Ohn+xnUBiLI6FVj/9LpzZWtj1/D6lUovWYBkxHVV3aM= github.com/yosida95/uritemplate/v3 v3.0.2 h1:Ed3Oyj9yrmi9087+NczuL5BwkIc4wvTb5zIM+UJPGz4= From 2a0ad8b9294c2c1dfae5a24b781d68b5a129d1d0 Mon Sep 17 00:00:00 2001 From: Ahmet Soormally Date: Mon, 27 Oct 2025 11:18:20 +0000 Subject: [PATCH 09/10] forces a copy of the byte slice --- router/pkg/schemaloader/loader.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/router/pkg/schemaloader/loader.go b/router/pkg/schemaloader/loader.go index 7d4e663279..cd3f53dad8 100644 --- a/router/pkg/schemaloader/loader.go +++ b/router/pkg/schemaloader/loader.go @@ -178,7 +178,7 @@ func getOperationNameAndType(doc *ast.Document) (string, string, error) { } if opDef.Name.Length() > 0 { - return doc.Input.ByteSliceString(opDef.Name), opType, nil + return string(doc.Input.ByteSlice(opDef.Name)), opType, nil } return "", opType, nil } @@ -192,7 +192,7 @@ func extractOperationDescription(doc *ast.Document) string { if ref.Kind == ast.NodeKindOperationDefinition { opDef := doc.OperationDefinitions[ref.Ref] if opDef.Description.IsDefined && opDef.Description.Content.Length() > 0 { - description := doc.Input.ByteSliceString(opDef.Description.Content) + description := string(doc.Input.ByteSlice(opDef.Description.Content)) return strings.TrimSpace(description) } return "" From 753d054f90a73c978d8585409b6976eeb4b9bb56 Mon Sep 17 00:00:00 2001 From: Ahmet Soormally Date: Wed, 29 Oct 2025 21:16:24 +0000 Subject: [PATCH 10/10] chore(deps): remove unused dependencies Remove buf.build/go/hyperpb, connectrpc.com/vanguard, and github.com/timandy/routine dependencies that are no longer used after removal of router/pkg/connect_rpc package. --- router/go.mod | 3 --- router/go.sum | 24 ------------------------ 2 files changed, 27 deletions(-) diff --git a/router/go.mod b/router/go.mod index d9ddfa7213..b0337fdf7f 100644 --- a/router/go.mod +++ b/router/go.mod @@ -57,8 +57,6 @@ require ( ) require ( - buf.build/go/hyperpb v0.1.3 - connectrpc.com/vanguard v0.3.0 github.com/KimMachineGun/automemlimit v0.6.1 github.com/MicahParks/jwkset v0.11.0 github.com/MicahParks/keyfunc/v3 v3.6.2 @@ -155,7 +153,6 @@ require ( github.com/stretchr/objx v0.5.2 // indirect github.com/tidwall/match v1.1.1 // indirect github.com/tidwall/pretty v1.2.1 // indirect - github.com/timandy/routine v1.1.5 // indirect github.com/tklauser/go-sysconf v0.3.12 // indirect github.com/tklauser/numcpus v0.6.1 // indirect github.com/twmb/franz-go/pkg/kmsg v1.7.0 // indirect diff --git a/router/go.sum b/router/go.sum index b39dff7244..06324c9c54 100644 --- a/router/go.sum +++ b/router/go.sum @@ -1,17 +1,5 @@ -buf.build/gen/go/bufbuild/hyperpb-examples/protocolbuffers/go v1.36.7-20250725192734-0dd56aa9cbbc.1 h1:bFnppdLYActzr2F0iomSrkjUnGgVufb0DtZxjKgTLGc= -buf.build/gen/go/bufbuild/hyperpb-examples/protocolbuffers/go v1.36.7-20250725192734-0dd56aa9cbbc.1/go.mod h1:x7jYNX5/7EPnsKHEq596krkOGzvR97/MsZw2fw3Mrq0= -buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.7-20250717185734-6c6e0d3c608e.1 h1:/AZH8sVB6LHv8G+hZlAMCP31NevnesHwYgnlgS5Vt14= -buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.7-20250717185734-6c6e0d3c608e.1/go.mod h1:eva/VCrd8X7xuJw+JtwCEyrCKiRRASukFqmirnWBvFU= -buf.build/go/hyperpb v0.1.3 h1:wiw2F7POvAe2VA2kkB0TAsFwj91lXbFrKM41D3ZgU1w= -buf.build/go/hyperpb v0.1.3/go.mod h1:IHXAM5qnS0/Fsnd7/HGDghFNvUET646WoHmq1FDZXIE= -buf.build/go/protovalidate v0.14.0 h1:kr/rC/no+DtRyYX+8KXLDxNnI1rINz0imk5K44ZpZ3A= -buf.build/go/protovalidate v0.14.0/go.mod h1:+F/oISho9MO7gJQNYC2VWLzcO1fTPmaTA08SDYJZncA= -cel.dev/expr v0.24.0 h1:56OvJKSH3hDGL0ml5uSxZmz3/3Pq4tJ+fb1unVLAFcY= -cel.dev/expr v0.24.0/go.mod h1:hLPLo1W4QUmuYdA72RBX06QTs6MXw941piREPl3Yfiw= connectrpc.com/connect v1.16.2 h1:ybd6y+ls7GOlb7Bh5C8+ghA6SvCBajHwxssO2CGFjqE= connectrpc.com/connect v1.16.2/go.mod h1:n2kgwskMHXC+lVqb18wngEpF95ldBHXjZYJussz5FRc= -connectrpc.com/vanguard v0.3.0 h1:prUKFm8rYDwvpvnOSoqdUowPMK0tRA0pbSrQoMd6Zng= -connectrpc.com/vanguard v0.3.0/go.mod h1:nxQ7+N6qhBiQczqGwdTw4oCqx1rDryIt20cEdECqToM= github.com/99designs/gqlgen v0.17.76 h1:YsJBcfACWmXWU2t1yCjoGdOmqcTfOFpjbLAE443fmYI= github.com/99designs/gqlgen v0.17.76/go.mod h1:miiU+PkAnTIDKMQ1BseUOIVeQHoiwYDZGCswoxl7xec= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -29,8 +17,6 @@ github.com/alicebob/miniredis/v2 v2.34.0 h1:mBFWMaJSNL9RwdGRyEDoAAv8OQc5UlEhLDQg github.com/alicebob/miniredis/v2 v2.34.0/go.mod h1:kWShP4b58T1CW0Y5dViCd5ztzrDqRWqM3nksiyXk5s8= github.com/andybalholm/brotli v1.1.0 h1:eLKJA0d02Lf0mVpIDgYnqXcUn0GqVmEFny3VuID1U3M= github.com/andybalholm/brotli v1.1.0/go.mod h1:sms7XGricyQI9K10gOSf56VKKWS4oLer58Q+mhRPtnY= -github.com/antlr4-go/antlr/v4 v4.13.1 h1:SqQKkuVZ+zWkMMNkjy5FZe5mr5WURWnlpmOuzYWrPrQ= -github.com/antlr4-go/antlr/v4 v4.13.1/go.mod h1:GKmUxMtwp6ZgGwZSva4eWPC5mS6vUAmOABFgjdkM7Nw= github.com/bahlo/generic-list-go v0.2.0 h1:5sz/EEAK+ls5wF+NeqDpk5+iNdMDXrh3z3nPnH1Wvgk= github.com/bahlo/generic-list-go v0.2.0/go.mod h1:2KvAjgMlE5NNynlg/5iLrrCCZ2+5xWbdbCW3pNTGyYg= github.com/benbjohnson/clock v1.3.0 h1:ip6w0uFQkncKQ979AypyG0ER7mqUSBdKLOgAle/AT8A= @@ -129,8 +115,6 @@ github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= -github.com/google/cel-go v0.26.0 h1:DPGjXackMpJWH680oGY4lZhYjIameYmR+/6RBdDGmaI= -github.com/google/cel-go v0.26.0/go.mod h1:A9O8OU9rdvrK5MQyrqfIxo1a0u4g3sF8KB6PUIaryMM= github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= @@ -245,8 +229,6 @@ github.com/pierrec/lz4/v4 v4.1.21/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFu github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10 h1:GFCKgmp0tecUJ0sJuv4pzYCqS9+RGSn52M3FUwPs+uo= -github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10/go.mod h1:t/avpk3KcrXxUnYOhZhMXJlSEyie6gQbtLq5NM3loB8= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/posthog/posthog-go v1.5.5 h1:2o3j7IrHbTIfxRtj4MPaXKeimuTYg49onNzNBZbwksM= @@ -265,8 +247,6 @@ github.com/prometheus/common v0.55.0 h1:KEi6DK7lXW/m7Ig5i47x0vRzuBsHuvJdi5ee6Y3G github.com/prometheus/common v0.55.0/go.mod h1:2SECS4xJG1kd8XF9IcM1gMX6510RAEL65zxzNImwdc8= github.com/prometheus/procfs v0.15.1 h1:YagwOFzUgYfKKHX6Dr+sHT7km/hxC76UB0learggepc= github.com/prometheus/procfs v0.15.1/go.mod h1:fB45yRUv8NstnjriLhBQLuOUt+WW4BsoGhij/e3PBqk= -github.com/protocolbuffers/protoscope v0.0.0-20221109213918-8e7a6aafa2c9 h1:arwj11zP0yJIxIRiDn22E0H8PxfF7TsTrc2wIPFIsf4= -github.com/protocolbuffers/protoscope v0.0.0-20221109213918-8e7a6aafa2c9/go.mod h1:SKZx6stCn03JN3BOWTwvVIO2ajMkb/zQdTceXYhKw/4= github.com/r3labs/sse/v2 v2.8.1 h1:lZH+W4XOLIq88U5MIHOsLec7+R62uhz3bIi2yn0Sg8o= github.com/r3labs/sse/v2 v2.8.1/go.mod h1:Igau6Whc+F17QUgML1fYe1VPZzTV6EMCnYktEmkNJ7I= github.com/redis/go-redis/v9 v9.4.0 h1:Yzoz33UZw9I/mFhx4MNrB6Fk+XHO1VukNcCa1+lwyKk= @@ -296,8 +276,6 @@ github.com/sosodev/duration v1.3.1 h1:qtHBDMQ6lvMQsL15g4aopM4HEfOaYuhWBw3NPTtlqq github.com/sosodev/duration v1.3.1/go.mod h1:RQIBBX0+fMLc/D9+Jb/fwvVmo0eZvDDEERAikUR6SDg= github.com/spf13/cast v1.7.1 h1:cuNEagBQEHWN1FnbGEjCXL2szYEXqfJPbP2HNUaca9Y= github.com/spf13/cast v1.7.1/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo= -github.com/stoewer/go-strcase v1.3.1 h1:iS0MdW+kVTxgMoE1LAZyMiYJFKlOzLooE4MxjirtkAs= -github.com/stoewer/go-strcase v1.3.1/go.mod h1:fAH5hQ5pehh+j3nZfvwdk2RgEgQjAoM8wodgtPmh1xo= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= @@ -326,8 +304,6 @@ github.com/tidwall/pretty v1.2.1 h1:qjsOFOWWQl+N3RsoF5/ssm1pHmJJwhjlSbZ51I6wMl4= github.com/tidwall/pretty v1.2.1/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU= github.com/tidwall/sjson v1.2.5 h1:kLy8mja+1c9jlljvWTlSazM7cKDRfJuR/bOJhcY5NcY= github.com/tidwall/sjson v1.2.5/go.mod h1:Fvgq9kS/6ociJEDnK0Fk1cpYF4FIW6ZF7LAe+6jwd28= -github.com/timandy/routine v1.1.5 h1:LSpm7Iijwb9imIPlucl4krpr2EeCeAUvifiQ9Uf5X+M= -github.com/timandy/routine v1.1.5/go.mod h1:kXslgIosdY8LW0byTyPnenDgn4/azt2euufAq9rK51w= github.com/tklauser/go-sysconf v0.3.12 h1:0QaGUFOdQaIVdPgfITYzaTegZvdCjmYO52cSFAEVmqU= github.com/tklauser/go-sysconf v0.3.12/go.mod h1:Ho14jnntGE1fpdOqQEEaiKRpvIavV0hSfmBq8nJbHYI= github.com/tklauser/numcpus v0.6.1 h1:ng9scYS7az0Bk4OZLvrNXNSAO2Pxr1XXRAPyjhIx+Fk=