From a65843daa59dec244a021314775e948eecbc29e1 Mon Sep 17 00:00:00 2001 From: Josh Siviour Date: Fri, 19 Jun 2026 00:19:16 +1000 Subject: [PATCH] feat: ECR image tag mutability (immutable tags) (#392) Honor, persist and echo imageTagMutability on CreateRepository and DescribeRepositories instead of the hardcoded MUTABLE, and implement PutImageTagMutability to flip a repository between MUTABLE and IMMUTABLE. Enforce immutability at the shared StoreManifest chokepoint: on an IMMUTABLE repo, re-tagging an existing tag onto a different digest is rejected before any write (OCI 409 TAG_IMMUTABLE; JSON PutImage maps to ImageTagAlreadyExistsException). Same-digest re-pushes, new tags and digest references are still allowed. Console: migrate the repository detail page to Summary/Images/Permissions tabs and add a tag-immutability toggle on the Summary tab. --- spinifex/awserrors/awserrors.go | 2 + spinifex/gateway/ecr/registry_image.go | 18 +++ spinifex/gateway/ecr/registry_image_test.go | 34 +++++ spinifex/gateway/ecr_createrepository.go | 29 ++++- spinifex/gateway/ecr_deleterepository.go | 2 +- spinifex/gateway/ecr_describerepositories.go | 2 +- spinifex/gateway/ecr_image.go | 2 + spinifex/gateway/ecr_tagmutability.go | 77 +++++++++++ spinifex/gateway/ecr_tagmutability_test.go | 121 ++++++++++++++++++ spinifex/gateway/ecrapi.go | 6 + spinifex/handlers/ecr/meta.go | 17 +++ .../spinifexui/frontend/dist/assets/_.js | 2 +- .../spinifexui/frontend/dist/assets/_auth.js | 2 +- .../frontend/dist/assets/_clusterName.js | 2 +- .../spinifexui/frontend/dist/assets/_id10.js | 2 +- .../spinifexui/frontend/dist/assets/_id11.js | 2 +- .../spinifexui/frontend/dist/assets/_id12.js | 2 +- .../spinifexui/frontend/dist/assets/_id14.js | 2 +- .../spinifexui/frontend/dist/assets/_id16.js | 2 +- .../spinifexui/frontend/dist/assets/_id17.js | 6 +- .../spinifexui/frontend/dist/assets/_id3.js | 2 +- .../spinifexui/frontend/dist/assets/_id4.js | 2 +- .../spinifexui/frontend/dist/assets/_id7.js | 2 +- .../spinifexui/frontend/dist/assets/_id8.js | 2 +- .../spinifexui/frontend/dist/assets/_id9.js | 2 +- .../dist/assets/_instanceProfileName.js | 2 +- .../frontend/dist/assets/_roleName.js | 2 +- .../frontend/dist/assets/ami-details.js | 2 +- .../frontend/dist/assets/awsClient.js | 4 +- .../frontend/dist/assets/back-link.js | 2 +- .../dist/assets/certificate-import-dialog.js | 2 +- .../dist/assets/create-nat-gateway.js | 2 +- .../dist/assets/describe-addresses.js | 2 +- .../dist/assets/describe-instances.js | 2 +- .../dist/assets/describe-internet-gateways.js | 2 +- .../dist/assets/describe-key-pairs.js | 2 +- .../dist/assets/describe-load-balancers.js | 2 +- .../dist/assets/describe-nat-gateways.js | 2 +- .../dist/assets/describe-placement-groups.js | 2 +- .../dist/assets/describe-route-tables.js | 2 +- .../dist/assets/describe-security-groups.js | 2 +- .../dist/assets/describe-snapshots.js | 2 +- .../frontend/dist/assets/describe-subnets.js | 2 +- .../dist/assets/describe-target-groups.js | 2 +- .../frontend/dist/assets/describe-volumes.js | 2 +- .../frontend/dist/assets/describe-vpcs.js | 2 +- .../spinifexui/frontend/dist/assets/ec2.js | 2 +- .../spinifexui/frontend/dist/assets/ecr.js | 2 +- .../spinifexui/frontend/dist/assets/index.js | 8 +- .../frontend/dist/assets/list-card.js | 2 +- .../frontend/dist/assets/list-clusters.js | 2 +- .../dist/assets/list-instance-profiles.js | 2 +- .../frontend/dist/assets/list-policies.js | 2 +- .../frontend/dist/assets/list-repositories.js | 2 +- .../frontend/dist/assets/list-roles.js | 2 +- .../frontend/dist/assets/list-users.js | 2 +- .../spinifexui/frontend/dist/assets/ls.js | 2 +- .../frontend/dist/assets/upload-button.js | 2 +- .../spinifexui/frontend/src/mutations/ecr.ts | 25 ++++ .../repository-detail-page.test.tsx | 18 ++- .../-components/repository-detail-page.tsx | 33 +++-- .../-components/repository-summary.test.tsx | 67 ++++++++++ .../-components/repository-summary.tsx | 74 +++++++++++ 63 files changed, 561 insertions(+), 72 deletions(-) create mode 100644 spinifex/gateway/ecr_tagmutability.go create mode 100644 spinifex/gateway/ecr_tagmutability_test.go create mode 100644 spinifex/services/spinifexui/frontend/src/routes/_auth/ecr/(repositories)/-components/repository-summary.test.tsx create mode 100644 spinifex/services/spinifexui/frontend/src/routes/_auth/ecr/(repositories)/-components/repository-summary.tsx diff --git a/spinifex/awserrors/awserrors.go b/spinifex/awserrors/awserrors.go index ca17dac7d..4fbfd6a94 100644 --- a/spinifex/awserrors/awserrors.go +++ b/spinifex/awserrors/awserrors.go @@ -460,6 +460,7 @@ var ( ErrorRepositoryNotEmpty = "RepositoryNotEmptyException" ErrorImageNotFound = "ImageNotFoundException" ErrorImageAlreadyExists = "ImageAlreadyExistsException" + ErrorImageTagAlreadyExists = "ImageTagAlreadyExistsException" ErrorImageDigestDoesNotMatch = "ImageDigestDoesNotMatchException" ErrorLayersNotFound = "LayersNotFoundException" ErrorReferencedImagesNotFound = "ReferencedImagesNotFoundException" @@ -976,6 +977,7 @@ var ErrorLookup = map[string]ErrorMessage{ ErrorRepositoryNotEmpty: {HTTPCode: 400, Message: "The repository contains images. Either delete the images or use the force option to delete the repository."}, ErrorImageNotFound: {HTTPCode: 400, Message: "The image requested does not exist in the specified repository."}, ErrorImageAlreadyExists: {HTTPCode: 400, Message: "The specified image has already been pushed, and there were no changes to the manifest or image tag after the last push."}, + ErrorImageTagAlreadyExists: {HTTPCode: 400, Message: "The specified image is tagged with a tag that already exists. The repository is configured for tag immutability."}, ErrorImageDigestDoesNotMatch: {HTTPCode: 400, Message: "The specified image digest does not match the digest of the supplied image manifest."}, ErrorLayersNotFound: {HTTPCode: 400, Message: "The specified layers could not be found, or the specified layer is not valid for this repository."}, ErrorReferencedImagesNotFound: {HTTPCode: 400, Message: "The manifest list is referencing an image that does not exist."}, diff --git a/spinifex/gateway/ecr/registry_image.go b/spinifex/gateway/ecr/registry_image.go index f68b6dd35..bb1d7fbca 100644 --- a/spinifex/gateway/ecr/registry_image.go +++ b/spinifex/gateway/ecr/registry_image.go @@ -67,6 +67,24 @@ func (reg *Registry) StoreManifest(account, repo, ref, contentType string, body return "", &ManifestStoreError{http.StatusBadRequest, "DIGEST_INVALID", "reference digest does not match content"} } + // On an IMMUTABLE repo, re-tagging an existing tag onto a different digest is + // rejected before any write so a published tag cannot be silently overwritten. + if ref != "" && !ecr.ValidateDigest(ref) { + meta, err := scoped.Meta.GetRepo(account, repo) + if err != nil { + return "", err + } + if meta.TagMutability() == ecr.TagMutabilityImmutable { + existing, err := scoped.Meta.GetTag(account, repo, ref) + switch { + case err == nil && existing != digest: + return "", &ManifestStoreError{http.StatusConflict, "TAG_IMMUTABLE", "tag is immutable and already resolves to a different digest"} + case err != nil && !errors.Is(err, ecr.ErrNotFound): + return "", err + } + } + } + children, code, vErr := scoped.validateManifest(repo, contentType, body) if vErr != nil { return "", &ManifestStoreError{http.StatusBadRequest, code, vErr.Error()} diff --git a/spinifex/gateway/ecr/registry_image_test.go b/spinifex/gateway/ecr/registry_image_test.go index 0ecb58352..e396c9c05 100644 --- a/spinifex/gateway/ecr/registry_image_test.go +++ b/spinifex/gateway/ecr/registry_image_test.go @@ -3,6 +3,7 @@ package gateway_ecr import ( "errors" "fmt" + "net/http" "strings" "testing" @@ -216,6 +217,39 @@ func TestDeleteImage_ByDigestClearsTags(t *testing.T) { assert.Empty(t, tags) } +func TestStoreManifest_ImmutableTag(t *testing.T) { + reg := newTestRegistry() + repo := "team/app" + manA := fmt.Appendf(nil, `{"schemaVersion":2,"mediaType":"%s","layers":[{"digest":"%s"}]}`, + mediaTypeDockerManifest, pushBlob(t, reg, repo, []byte("layer-a"))) + manB := fmt.Appendf(nil, `{"schemaVersion":2,"mediaType":"%s","layers":[{"digest":"%s"}]}`, + mediaTypeDockerManifest, pushBlob(t, reg, repo, []byte("layer-b"))) + + digA, err := reg.StoreManifest(testAccount, repo, "v1", mediaTypeDockerManifest, manA) + require.NoError(t, err) + + // Flip the repo to IMMUTABLE. + require.NoError(t, reg.Meta.PutRepo(testAccount, ecr.RepoMeta{Name: repo, ImageTagMutability: ecr.TagMutabilityImmutable})) + + // Re-pushing the same tag onto the same digest is idempotent, not a conflict. + got, err := reg.StoreManifest(testAccount, repo, "v1", mediaTypeDockerManifest, manA) + require.NoError(t, err) + assert.Equal(t, digA, got) + + // Re-pushing the tag onto a different digest is rejected. + _, err = reg.StoreManifest(testAccount, repo, "v1", mediaTypeDockerManifest, manB) + var mErr *ManifestStoreError + require.True(t, errors.As(err, &mErr)) + assert.Equal(t, "TAG_IMMUTABLE", mErr.Code) + assert.Equal(t, http.StatusConflict, mErr.Status) + + // A new tag and a digest reference are still allowed on an immutable repo. + _, err = reg.StoreManifest(testAccount, repo, "v2", mediaTypeDockerManifest, manB) + require.NoError(t, err) + _, err = reg.StoreManifest(testAccount, repo, digestOf(manB), mediaTypeDockerManifest, manB) + require.NoError(t, err) +} + func TestStoreManifest_BadDigestReference(t *testing.T) { reg := newTestRegistry() repo := "team/app" diff --git a/spinifex/gateway/ecr_createrepository.go b/spinifex/gateway/ecr_createrepository.go index ee12eb10f..daa8a789c 100644 --- a/spinifex/gateway/ecr_createrepository.go +++ b/spinifex/gateway/ecr_createrepository.go @@ -27,8 +27,8 @@ type createRepositoryRequest struct { // handleCreateRepository provisions an empty repository in the caller account. // The predastore object bucket stays lazily created on first push; this writes -// only the per-account KV meta record. imageTagMutability is reported as MUTABLE -// in v1 (immutable tags are a separate follow-on). +// only the per-account KV meta record. imageTagMutability (MUTABLE/IMMUTABLE) +// is validated, persisted, and echoed; an unset value defaults to MUTABLE. func (gw *GatewayConfig) handleCreateRepository(w http.ResponseWriter, r *http.Request) error { accountID, _ := r.Context().Value(ctxAccountID).(string) if accountID == "" { @@ -51,6 +51,10 @@ func (gw *GatewayConfig) handleCreateRepository(w http.ResponseWriter, r *http.R if req.RegistryID != "" && req.RegistryID != accountID { return errors.New(awserrors.ErrorAccessDenied) } + mutability, err := normalizeTagMutability(req.ImageTagMutability) + if err != nil { + return err + } store := handlers_ecr.NewNATSMetaStore(gw.NATSConn) if _, err := store.GetRepo(accountID, req.RepositoryName); err == nil { @@ -60,7 +64,11 @@ func (gw *GatewayConfig) handleCreateRepository(w http.ResponseWriter, r *http.R return errors.New(awserrors.ErrorServerInternal) } - meta := handlers_ecr.RepoMeta{Name: req.RepositoryName, CreatedAt: time.Now().UTC()} + meta := handlers_ecr.RepoMeta{ + Name: req.RepositoryName, + CreatedAt: time.Now().UTC(), + ImageTagMutability: mutability, + } if err := store.PutRepo(accountID, meta); err != nil { slog.Error("CreateRepository: put repo failed", "repo", req.RepositoryName, "err", err) return errors.New(awserrors.ErrorServerInternal) @@ -73,8 +81,21 @@ func (gw *GatewayConfig) handleCreateRepository(w http.ResponseWriter, r *http.R RepositoryArn: aws.String(gw.ecrRepositoryArn(accountID, req.RepositoryName)), RepositoryUri: aws.String(gw.ecrRepositoryUri(accountID, req.RepositoryName)), CreatedAt: aws.Time(meta.CreatedAt), - ImageTagMutability: aws.String("MUTABLE"), + ImageTagMutability: aws.String(meta.TagMutability()), }, }) return nil } + +// normalizeTagMutability validates the requested mutability, defaulting an empty +// value to MUTABLE. An unknown value is rejected with InvalidParameterValue. +func normalizeTagMutability(v string) (string, error) { + switch v { + case "": + return handlers_ecr.TagMutabilityMutable, nil + case handlers_ecr.TagMutabilityMutable, handlers_ecr.TagMutabilityImmutable: + return v, nil + default: + return "", errors.New(awserrors.ErrorInvalidParameterValue) + } +} diff --git a/spinifex/gateway/ecr_deleterepository.go b/spinifex/gateway/ecr_deleterepository.go index 86bdacaa6..933bde173 100644 --- a/spinifex/gateway/ecr_deleterepository.go +++ b/spinifex/gateway/ecr_deleterepository.go @@ -85,7 +85,7 @@ func (gw *GatewayConfig) handleDeleteRepository(w http.ResponseWriter, r *http.R RepositoryArn: aws.String(gw.ecrRepositoryArn(accountID, req.RepositoryName)), RepositoryUri: aws.String(gw.ecrRepositoryUri(accountID, req.RepositoryName)), CreatedAt: aws.Time(meta.CreatedAt), - ImageTagMutability: aws.String("MUTABLE"), + ImageTagMutability: aws.String(meta.TagMutability()), }, }) return nil diff --git a/spinifex/gateway/ecr_describerepositories.go b/spinifex/gateway/ecr_describerepositories.go index 42eeecbbd..369b87678 100644 --- a/spinifex/gateway/ecr_describerepositories.go +++ b/spinifex/gateway/ecr_describerepositories.go @@ -74,7 +74,7 @@ func (gw *GatewayConfig) handleDescribeRepositories(w http.ResponseWriter, r *ht RepositoryArn: aws.String(gw.ecrRepositoryArn(accountID, name)), RepositoryUri: aws.String(gw.ecrRepositoryUri(accountID, name)), CreatedAt: aws.Time(meta.CreatedAt), - ImageTagMutability: aws.String("MUTABLE"), + ImageTagMutability: aws.String(meta.TagMutability()), }) } diff --git a/spinifex/gateway/ecr_image.go b/spinifex/gateway/ecr_image.go index 86c7762b6..0fb1c761c 100644 --- a/spinifex/gateway/ecr_image.go +++ b/spinifex/gateway/ecr_image.go @@ -386,6 +386,8 @@ func mapStoreManifestError(err error, repo string) error { return errors.New(awserrors.ErrorImageDigestDoesNotMatch) case "MANIFEST_BLOB_UNKNOWN": return errors.New(awserrors.ErrorLayersNotFound) + case "TAG_IMMUTABLE": + return errors.New(awserrors.ErrorImageTagAlreadyExists) default: return errors.New(awserrors.ErrorInvalidParameterValue) } diff --git a/spinifex/gateway/ecr_tagmutability.go b/spinifex/gateway/ecr_tagmutability.go new file mode 100644 index 000000000..467e087ce --- /dev/null +++ b/spinifex/gateway/ecr_tagmutability.go @@ -0,0 +1,77 @@ +package gateway + +import ( + "encoding/json" + "errors" + "io" + "log/slog" + "net/http" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/service/ecr" + "github.com/mulgadc/spinifex/spinifex/awserrors" + gateway_ecrapi "github.com/mulgadc/spinifex/spinifex/gateway/ecrapi" + handlers_ecr "github.com/mulgadc/spinifex/spinifex/handlers/ecr" +) + +// putImageTagMutabilityRequest is the camelCase AWS JSON 1.1 input shape. +type putImageTagMutabilityRequest struct { + RepositoryName string `json:"repositoryName"` + RegistryID string `json:"registryId"` + ImageTagMutability string `json:"imageTagMutability"` +} + +// handlePutImageTagMutability flips a repository between MUTABLE and IMMUTABLE. +// It read-modify-writes the per-account RepoMeta record; the value is enforced +// on push by Registry.StoreManifest. +func (gw *GatewayConfig) handlePutImageTagMutability(w http.ResponseWriter, r *http.Request) error { + accountID, _ := r.Context().Value(ctxAccountID).(string) + if accountID == "" { + slog.Error("PutImageTagMutability: no account ID in auth context") + return errors.New(awserrors.ErrorServerInternal) + } + + body, err := io.ReadAll(r.Body) + if err != nil { + slog.Error("PutImageTagMutability: failed to read body", "err", err) + return errors.New(awserrors.ErrorInvalidParameterValue) + } + var req putImageTagMutabilityRequest + if err := json.Unmarshal(body, &req); err != nil { + return errors.New(awserrors.ErrorInvalidParameterValue) + } + if err := handlers_ecr.ValidateRepoName(req.RepositoryName); err != nil { + return errors.New(awserrors.ErrorInvalidParameterValue) + } + if req.RegistryID != "" && req.RegistryID != accountID { + return errors.New(awserrors.ErrorAccessDenied) + } + // imageTagMutability is required here (unlike CreateRepository's default). + if req.ImageTagMutability != handlers_ecr.TagMutabilityMutable && + req.ImageTagMutability != handlers_ecr.TagMutabilityImmutable { + return errors.New(awserrors.ErrorInvalidParameterValue) + } + + store := handlers_ecr.NewNATSMetaStore(gw.NATSConn) + meta, err := store.GetRepo(accountID, req.RepositoryName) + if err != nil { + if errors.Is(err, handlers_ecr.ErrNotFound) { + return errors.New(awserrors.ErrorRepositoryNotFound) + } + slog.Error("PutImageTagMutability: get repo failed", "repo", req.RepositoryName, "err", err) + return errors.New(awserrors.ErrorServerInternal) + } + + meta.ImageTagMutability = req.ImageTagMutability + if err := store.PutRepo(accountID, meta); err != nil { + slog.Error("PutImageTagMutability: put repo failed", "repo", req.RepositoryName, "err", err) + return errors.New(awserrors.ErrorServerInternal) + } + + gateway_ecrapi.WriteJSONResponse(w, &ecr.PutImageTagMutabilityOutput{ + RegistryId: aws.String(accountID), + RepositoryName: aws.String(req.RepositoryName), + ImageTagMutability: aws.String(meta.TagMutability()), + }) + return nil +} diff --git a/spinifex/gateway/ecr_tagmutability_test.go b/spinifex/gateway/ecr_tagmutability_test.go new file mode 100644 index 000000000..c927ac547 --- /dev/null +++ b/spinifex/gateway/ecr_tagmutability_test.go @@ -0,0 +1,121 @@ +package gateway + +import ( + "context" + "encoding/json" + "net/http" + "net/http/httptest" + "testing" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func putTagMutability(t *testing.T, gw *GatewayConfig, body string) (*httptest.ResponseRecorder, error) { + return ecrLifecycleRequest(t, gw, (*GatewayConfig).handlePutImageTagMutability, body) +} + +type tagMutabilityOut struct { + RegistryID string `json:"registryId"` + RepositoryName string `json:"repositoryName"` + ImageTagMutability string `json:"imageTagMutability"` +} + +func TestCreateRepository_Immutable(t *testing.T) { + gw, _ := newRepoLifecycleGateway(t) + w, err := createRepo(t, gw, `{"repositoryName":"team/app","imageTagMutability":"IMMUTABLE"}`) + require.NoError(t, err) + require.Equal(t, http.StatusOK, w.Code) + + var out repoOut + require.NoError(t, json.Unmarshal(w.Body.Bytes(), &out)) + assert.Equal(t, "IMMUTABLE", out.Repository.ImageTagMutability) + + // Persisted: a named describe reflects the stored value. + dw := describeReposRequest(t, gw, `{"repositoryNames":["team/app"]}`) + var dout describeReposOut + require.NoError(t, json.Unmarshal(dw.Body.Bytes(), &dout)) + require.Len(t, dout.Repositories, 1) + assert.Equal(t, "IMMUTABLE", dout.Repositories[0].ImageTagMutability) +} + +func TestCreateRepository_InvalidMutability(t *testing.T) { + gw, _ := newRepoLifecycleGateway(t) + _, err := createRepo(t, gw, `{"repositoryName":"team/app","imageTagMutability":"SOMETIMES"}`) + require.Error(t, err) + assert.Equal(t, "InvalidParameterValue", err.Error()) +} + +func TestPutImageTagMutability_Happy(t *testing.T) { + gw, _ := newRepoLifecycleGateway(t) + _, err := createRepo(t, gw, `{"repositoryName":"team/app"}`) + require.NoError(t, err) + + w, err := putTagMutability(t, gw, `{"repositoryName":"team/app","imageTagMutability":"IMMUTABLE"}`) + require.NoError(t, err) + require.Equal(t, http.StatusOK, w.Code) + var out tagMutabilityOut + require.NoError(t, json.Unmarshal(w.Body.Bytes(), &out)) + assert.Equal(t, ecrTestAccount, out.RegistryID) + assert.Equal(t, "team/app", out.RepositoryName) + assert.Equal(t, "IMMUTABLE", out.ImageTagMutability) + + // Persisted. + dw := describeReposRequest(t, gw, `{"repositoryNames":["team/app"]}`) + var dout describeReposOut + require.NoError(t, json.Unmarshal(dw.Body.Bytes(), &dout)) + assert.Equal(t, "IMMUTABLE", dout.Repositories[0].ImageTagMutability) + + // Flip back to MUTABLE. + w, err = putTagMutability(t, gw, `{"repositoryName":"team/app","imageTagMutability":"MUTABLE"}`) + require.NoError(t, err) + require.NoError(t, json.Unmarshal(w.Body.Bytes(), &out)) + assert.Equal(t, "MUTABLE", out.ImageTagMutability) +} + +func TestPutImageTagMutability_Errors(t *testing.T) { + gw, _ := newRepoLifecycleGateway(t) + _, err := createRepo(t, gw, `{"repositoryName":"team/app"}`) + require.NoError(t, err) + + cases := []struct { + name, body, expect string + }{ + {"missing value", `{"repositoryName":"team/app"}`, "InvalidParameterValue"}, + {"invalid value", `{"repositoryName":"team/app","imageTagMutability":"NOPE"}`, "InvalidParameterValue"}, + {"invalid name", `{"repositoryName":"Team/App","imageTagMutability":"IMMUTABLE"}`, "InvalidParameterValue"}, + {"cross-account", `{"repositoryName":"team/app","registryId":"999999999999","imageTagMutability":"IMMUTABLE"}`, "AccessDenied"}, + {"not found", `{"repositoryName":"team/ghost","imageTagMutability":"IMMUTABLE"}`, "RepositoryNotFoundException"}, + } + for _, tc := range cases { + t.Run(tc.name, func(t *testing.T) { + _, err := putTagMutability(t, gw, tc.body) + require.Error(t, err) + assert.Equal(t, tc.expect, err.Error()) + }) + } +} + +func TestPutImageTagMutability_NoAccountAndMalformed(t *testing.T) { + gw, _ := newRepoLifecycleGateway(t) + + err := gw.handlePutImageTagMutability(httptest.NewRecorder(), noAccountRequest(`{"repositoryName":"team/app","imageTagMutability":"IMMUTABLE"}`)) + require.Error(t, err) + assert.Equal(t, "ServerInternal", err.Error()) + + _, err = putTagMutability(t, gw, `{`) + require.Error(t, err) + assert.Equal(t, "InvalidParameterValue", err.Error()) +} + +func TestECRRequest_PutImageTagMutabilityDispatched(t *testing.T) { + gw, _ := newRepoLifecycleGateway(t) + _, err := createRepo(t, gw, `{"repositoryName":"team/app"}`) + require.NoError(t, err) + + req := setupECRRequest("AmazonEC2ContainerRegistry_V20150921.PutImageTagMutability", `{"repositoryName":"team/app","imageTagMutability":"IMMUTABLE"}`) + req = req.WithContext(context.WithValue(req.Context(), ctxAccountID, ecrTestAccount)) + w := httptest.NewRecorder() + require.NoError(t, gw.ECR_Request(w, req)) + assert.Equal(t, http.StatusOK, w.Code) +} diff --git a/spinifex/gateway/ecrapi.go b/spinifex/gateway/ecrapi.go index 62777b3b9..c003c7a86 100644 --- a/spinifex/gateway/ecrapi.go +++ b/spinifex/gateway/ecrapi.go @@ -61,6 +61,12 @@ func (gw *GatewayConfig) ECR_Request(w http.ResponseWriter, r *http.Request) err return gw.handleDeleteRepository(w, r) } + // PutImageTagMutability read-modify-writes the per-account RepoMeta record + // over NATS, like CreateRepository, so it is served inline. + if action == "PutImageTagMutability" { + return gw.handlePutImageTagMutability(w, r) + } + // Image-management actions need the gateway-side predastore Store (manifest // bytes) carried by the OCI Registry, which the relayed Handler signature // does not reach, so they are served inline. diff --git a/spinifex/handlers/ecr/meta.go b/spinifex/handlers/ecr/meta.go index 701dc51ae..969ceeab4 100644 --- a/spinifex/handlers/ecr/meta.go +++ b/spinifex/handlers/ecr/meta.go @@ -20,10 +20,27 @@ var ErrNotFound = errors.New("ecr: metadata record not found") // retry the read-modify-write loop on this error. var ErrConflict = errors.New("ecr: metadata update conflict") +// Image tag mutability settings. An empty stored value is treated as MUTABLE. +const ( + TagMutabilityMutable = "MUTABLE" + TagMutabilityImmutable = "IMMUTABLE" +) + // RepoMeta is the per-repository metadata record. type RepoMeta struct { Name string `json:"name"` CreatedAt time.Time `json:"createdAt"` + // ImageTagMutability is MUTABLE or IMMUTABLE; empty == MUTABLE. + ImageTagMutability string `json:"imageTagMutability,omitempty"` +} + +// TagMutability returns the repo's effective mutability, defaulting an unset +// value to MUTABLE. +func (m RepoMeta) TagMutability() string { + if m.ImageTagMutability == "" { + return TagMutabilityMutable + } + return m.ImageTagMutability } // ManifestMeta records a stored manifest's properties for shallow validation diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_.js b/spinifex/services/spinifexui/frontend/dist/assets/_.js index 89d0dd563..489cf3f48 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{kr as r}from"./awsClient.js";import{It as i,Rt as a,Wt as o,zt as s}from"./auth.js";import{t as c}from"./back-link.js";import{n as l,r as u,t as d}from"./upload-button.js";import{r as f}from"./s3.js";import{C as p,ut as m}from"./index.js";import{t as h}from"./error-banner.js";var g=t(),_=e();function v(){let e=(0,g.c)(24),{bucket:t,_splat:v}=p.useParams(),y=a(v??``),{data:b}=n(m(t,y)),x=f(),S;e[0]===b.Contents?S=e[1]:(S=b.Contents??[],e[0]=b.Contents,e[1]=S);let C=S,w;e[2]===b.CommonPrefixes?w=e[3]:(w=b.CommonPrefixes??[],e[2]=b.CommonPrefixes,e[3]=w);let T=w,E=y.split(`/`).filter(Boolean),D=[{name:t,path:`/s3/ls/${t}`},...E.map((e,n)=>({name:e,path:`/s3/ls/${t}/${`${E.slice(0,n+1).join(`/`)}/`}`}))],O=E.length>1?`/s3/ls/${t}/${E.slice(0,-1).join(`/`)}/`:`/s3/ls/${t}`,k;e[4]===O?k=e[5]:(k=(0,_.jsx)(c,{to:O,children:`Back`}),e[4]=O,e[5]=k);let A;e[6]!==t||e[7]!==y||e[8]!==x.isPending||e[9]!==x.mutateAsync?(A=(0,_.jsx)(d,{bucket:t,isPending:x.isPending,onUpload:x.mutateAsync,prefix:y}),e[6]=t,e[7]=y,e[8]=x.isPending,e[9]=x.mutateAsync,e[10]=A):A=e[10];let j;e[11]===x.error?j=e[12]:(j=x.error&&(0,_.jsx)(h,{error:x.error,msg:`Failed to upload object`}),e[11]=x.error,e[12]=j);let M;e[13]!==t||e[14]!==T||e[15]!==y?(M=T.length>0&&(0,_.jsxs)(`div`,{className:`mb-6`,children:[(0,_.jsx)(`h2`,{className:`mb-3 text-lg font-semibold`,children:`Folders`}),(0,_.jsx)(`div`,{className:`space-y-2`,children:T.map(e=>e.Prefix?(0,_.jsx)(u,{bucketName:t,folderName:o(s(e.Prefix,y)),fullPrefix:i(e.Prefix,y)},e.Prefix):null)})]}),e[13]=t,e[14]=T,e[15]=y,e[16]=M):M=e[16];let N;e[17]!==t||e[18]!==C||e[19]!==y?(N=C.length>0&&(0,_.jsxs)(`div`,{className:`space-y-2`,children:[(0,_.jsx)(`h2`,{className:`mb-3 text-lg font-semibold`,children:`Objects`}),C.map(e=>e.Key?(0,_.jsx)(l,{bucketName:t,displayName:s(e.Key,y),fullKey:i(e.Key,y),object:e},e.Key):null)]}),e[17]=t,e[18]=C,e[19]=y,e[20]=N):N=e[20];let P;return e[21]!==T.length||e[22]!==C.length?(P=C.length===0&&T.length===0&&(0,_.jsx)(`p`,{className:`text-muted-foreground`,children:`No objects found in this folder.`}),e[21]=T.length,e[22]=C.length,e[23]=P):P=e[23],(0,_.jsxs)(_.Fragment,{children:[k,(0,_.jsx)(`div`,{className:`mb-6`,children:(0,_.jsxs)(`div`,{className:`mb-2 flex items-center justify-between`,children:[(0,_.jsx)(`div`,{className:`flex items-center gap-2 text-sm text-muted-foreground`,children:D.map((e,t)=>(0,_.jsxs)(`div`,{className:`flex items-center gap-2`,children:[t>0&&(0,_.jsx)(`span`,{children:`/`}),t===D.length-1?(0,_.jsx)(`span`,{className:`text-foreground`,children:e.name}):(0,_.jsx)(r,{className:`hover:text-foreground`,to:e.path,children:e.name})]},e.path))}),A]})}),j,M,N,P]})}export{v as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ar as r}from"./awsClient.js";import{It as i,Rt as a,Wt as o,zt as s}from"./auth.js";import{t as c}from"./back-link.js";import{n as l,r as u,t as d}from"./upload-button.js";import{r as f}from"./s3.js";import{C as p,ut as m}from"./index.js";import{t as h}from"./error-banner.js";var g=t(),_=e();function v(){let e=(0,g.c)(24),{bucket:t,_splat:v}=p.useParams(),y=a(v??``),{data:b}=n(m(t,y)),x=f(),S;e[0]===b.Contents?S=e[1]:(S=b.Contents??[],e[0]=b.Contents,e[1]=S);let C=S,w;e[2]===b.CommonPrefixes?w=e[3]:(w=b.CommonPrefixes??[],e[2]=b.CommonPrefixes,e[3]=w);let T=w,E=y.split(`/`).filter(Boolean),D=[{name:t,path:`/s3/ls/${t}`},...E.map((e,n)=>({name:e,path:`/s3/ls/${t}/${`${E.slice(0,n+1).join(`/`)}/`}`}))],O=E.length>1?`/s3/ls/${t}/${E.slice(0,-1).join(`/`)}/`:`/s3/ls/${t}`,k;e[4]===O?k=e[5]:(k=(0,_.jsx)(c,{to:O,children:`Back`}),e[4]=O,e[5]=k);let A;e[6]!==t||e[7]!==y||e[8]!==x.isPending||e[9]!==x.mutateAsync?(A=(0,_.jsx)(d,{bucket:t,isPending:x.isPending,onUpload:x.mutateAsync,prefix:y}),e[6]=t,e[7]=y,e[8]=x.isPending,e[9]=x.mutateAsync,e[10]=A):A=e[10];let j;e[11]===x.error?j=e[12]:(j=x.error&&(0,_.jsx)(h,{error:x.error,msg:`Failed to upload object`}),e[11]=x.error,e[12]=j);let M;e[13]!==t||e[14]!==T||e[15]!==y?(M=T.length>0&&(0,_.jsxs)(`div`,{className:`mb-6`,children:[(0,_.jsx)(`h2`,{className:`mb-3 text-lg font-semibold`,children:`Folders`}),(0,_.jsx)(`div`,{className:`space-y-2`,children:T.map(e=>e.Prefix?(0,_.jsx)(u,{bucketName:t,folderName:o(s(e.Prefix,y)),fullPrefix:i(e.Prefix,y)},e.Prefix):null)})]}),e[13]=t,e[14]=T,e[15]=y,e[16]=M):M=e[16];let N;e[17]!==t||e[18]!==C||e[19]!==y?(N=C.length>0&&(0,_.jsxs)(`div`,{className:`space-y-2`,children:[(0,_.jsx)(`h2`,{className:`mb-3 text-lg font-semibold`,children:`Objects`}),C.map(e=>e.Key?(0,_.jsx)(l,{bucketName:t,displayName:s(e.Key,y),fullKey:i(e.Key,y),object:e},e.Key):null)]}),e[17]=t,e[18]=C,e[19]=y,e[20]=N):N=e[20];let P;return e[21]!==T.length||e[22]!==C.length?(P=C.length===0&&T.length===0&&(0,_.jsx)(`p`,{className:`text-muted-foreground`,children:`No objects found in this folder.`}),e[21]=T.length,e[22]=C.length,e[23]=P):P=e[23],(0,_.jsxs)(_.Fragment,{children:[k,(0,_.jsx)(`div`,{className:`mb-6`,children:(0,_.jsxs)(`div`,{className:`mb-2 flex items-center justify-between`,children:[(0,_.jsx)(`div`,{className:`flex items-center gap-2 text-sm text-muted-foreground`,children:D.map((e,t)=>(0,_.jsxs)(`div`,{className:`flex items-center gap-2`,children:[t>0&&(0,_.jsx)(`span`,{children:`/`}),t===D.length-1?(0,_.jsx)(`span`,{className:`text-foreground`,children:e.name}):(0,_.jsx)(r,{className:`hover:text-foreground`,to:e.path,children:e.name})]},e.path))}),A]})}),j,M,N,P]})}export{v as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_auth.js b/spinifex/services/spinifexui/frontend/dist/assets/_auth.js index 0722de4ea..bdcba5866 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_auth.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_auth.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useQuery.js";import{kr as a}from"./awsClient.js";import{Ut as o}from"./auth.js";import{t as s}from"./chevron-down.js";import{t as c}from"./chevron-right.js";import{Ar as l,Et as u,Fr as d,Lr as f,Mr as p,Nr as m,Nt as h,Or as g,Pr as _,St as v,Ut as ee,Vt as y,bt as b,dt as x,jr as S,kr as C,pt as w,wt as T,zt as E}from"./index.js";import{t as D}from"./page-heading.js";import{t as O}from"./state-badge.js";import{r as k,t as A}from"./admin.js";import{t as te}from"./badge.js";import{a as j,i as M,n as N,o as ne,r as P,t as F}from"./card.js";var I=f(`box`,[[`path`,{d:`M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z`,key:`hh9hay`}],[`path`,{d:`m3.3 7 8.7 5 8.7-5`,key:`g66t2b`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}]]),L=f(`folder-open`,[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]),R=f(`lock`,[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]),re=f(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),z=r(),B=t(n(),1),V=e(),H=[{name:`Air-gap Support`,key:`airgap`},{name:`NVIDIA Bluefield DPU`,key:`bluefield`},{name:`NVIDIA MIG Support`,key:`mig`}];function U(e){let t=Math.floor(e/86400),n=Math.floor(e%86400/3600);if(t>0)return`${t}d ${n}h`;let r=Math.floor(e%3600/60);return n>0?`${n}h ${r}m`:`${r}m`}function W(){let e=(0,z.c)(110),{isAdmin:t,version:n,license:r}=ee(),[a,o]=(0,B.useState)(!1),u;e[0]===t?u=e[1]:(u={...A,enabled:t},e[0]=t,e[1]=u);let{data:d}=i(u),f;e[2]===t?f=e[3]:(f={...k,enabled:t},e[2]=t,e[3]=f);let{data:p}=i(f);if(!t||!n)return null;let m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,M,N,I,L;if(e[4]!==r||e[5]!==d?.cluster_mode||e[6]!==d?.nodes||e[7]!==n.arch||e[8]!==n.commit||e[9]!==n.os||e[10]!==n.version||e[11]!==p?.vms){_=d?.nodes??[];let t;e[31]===p?.vms?t=e[32]:(t=p?.vms??[],e[31]=p?.vms,e[32]=t);let i=t,a=d?.cluster_mode??`single-node`;g=r===`open-source`;let o=_[0]?.region??null,s=_.reduce(se,0),c=_.reduce(oe,0),u=_.reduce(ae,0),f=_.reduce(ie,0);w=`mb-6 space-y-4`,x=`grid grid-cols-1 gap-4 md:grid-cols-3`;let ee;e[33]===Symbol.for(`react.memo_cache_sentinel`)?(ee=(0,V.jsx)(j,{className:`pb-2`,children:(0,V.jsxs)(ne,{className:`flex items-center gap-2 text-sm`,children:[(0,V.jsx)(re,{className:`size-3.5`}),`Spinifex Info`]})}),e[33]=ee):ee=e[33];let k;e[34]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Version`}),e[34]=k):k=e[34];let A;e[35]===n.version?A=e[36]:(A=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[k,(0,V.jsx)(`span`,{className:`font-mono`,children:n.version})]}),e[35]=n.version,e[36]=A);let R;e[37]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Commit`}),e[37]=R):R=e[37];let z;e[38]===n.commit?z=e[39]:(z=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[R,(0,V.jsx)(`span`,{className:`font-mono`,children:n.commit})]}),e[38]=n.commit,e[39]=z);let B;e[40]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Platform`}),e[40]=B):B=e[40];let H;e[41]!==n.arch||e[42]!==n.os?(H=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[B,(0,V.jsxs)(`span`,{children:[n.os,`/`,n.arch]})]}),e[41]=n.arch,e[42]=n.os,e[43]=H):H=e[43],S=(0,V.jsxs)(F,{children:[ee,(0,V.jsxs)(P,{className:`space-y-1 text-xs`,children:[A,z,H,o&&(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Region`}),(0,V.jsx)(`span`,{children:o})]})]})]});let U;e[44]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,V.jsx)(j,{className:`pb-2`,children:(0,V.jsx)(ne,{className:`text-sm`,children:`License & Support`})}),e[44]=U):U=e[44];let W;e[45]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`License`}),e[45]=W):W=e[45];let ce=g?`secondary`:`default`,G=g?`Open Source (AGPLv3)`:`Commercial`,K;e[46]!==ce||e[47]!==G?(K=(0,V.jsxs)(`div`,{className:`flex items-center justify-between`,children:[W,(0,V.jsx)(te,{variant:ce,children:G})]}),e[46]=ce,e[47]=G,e[48]=K):K=e[48];let q;e[49]===Symbol.for(`react.memo_cache_sentinel`)?(q=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Support`}),e[49]=q):q=e[49];let J=g?`Community`:`Standard`,Y;e[50]===J?Y=e[51]:(Y=(0,V.jsxs)(`div`,{className:`flex items-center justify-between`,children:[q,(0,V.jsx)(`span`,{children:J})]}),e[50]=J,e[51]=Y);let X;e[52]===g?X=e[53]:(X=g&&(0,V.jsx)(`a`,{href:`https://mulgadc.com/purchase`,target:`_blank`,rel:`noopener noreferrer`,className:`mt-2 block text-xs font-medium text-primary hover:underline`,children:`Upgrade to Commercial →`}),e[52]=g,e[53]=X),e[54]!==K||e[55]!==Y||e[56]!==X?(C=(0,V.jsxs)(F,{children:[U,(0,V.jsxs)(P,{className:`space-y-2 text-xs`,children:[K,Y,X]})]}),e[54]=K,e[55]=Y,e[56]=X,e[57]=C):C=e[57],h=F,e[58]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,V.jsx)(j,{className:`pb-2`,children:(0,V.jsxs)(ne,{className:`flex items-center gap-2 text-sm`,children:[(0,V.jsx)(l,{className:`size-3.5`}),`Cluster Status`]})}),e[58]=b):b=e[58],m=P,N=`space-y-2 text-xs`,e[59]===a?I=e[60]:(I=(0,V.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,V.jsx)(te,{variant:`outline`,children:a})}),e[59]=a,e[60]=I);let Z;e[61]===Symbol.for(`react.memo_cache_sentinel`)?(Z=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Nodes`}),e[61]=Z):Z=e[61],L=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[Z,(0,V.jsx)(`span`,{children:_.length})]});let Q;e[62]===Symbol.for(`react.memo_cache_sentinel`)?(Q=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Instances`}),e[62]=Q):Q=e[62],e[63]===i.length?v=e[64]:(v=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[Q,(0,V.jsx)(`span`,{children:i.length})]}),e[63]=i.length,e[64]=v);let $;e[65]===Symbol.for(`react.memo_cache_sentinel`)?($=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`vCPU`}),e[65]=$):$=e[65],y=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[$,(0,V.jsxs)(`span`,{children:[c,` / `,s]})]}),O=`flex justify-between`,e[66]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Memory`}),e[66]=M):M=e[66],T=f.toFixed(1),E=` / `,D=u.toFixed(1),e[4]=r,e[5]=d?.cluster_mode,e[6]=d?.nodes,e[7]=n.arch,e[8]=n.commit,e[9]=n.os,e[10]=n.version,e[11]=p?.vms,e[12]=m,e[13]=h,e[14]=g,e[15]=_,e[16]=v,e[17]=y,e[18]=b,e[19]=x,e[20]=S,e[21]=C,e[22]=w,e[23]=T,e[24]=E,e[25]=D,e[26]=O,e[27]=M,e[28]=N,e[29]=I,e[30]=L}else m=e[12],h=e[13],g=e[14],_=e[15],v=e[16],y=e[17],b=e[18],x=e[19],S=e[20],C=e[21],w=e[22],T=e[23],E=e[24],D=e[25],O=e[26],M=e[27],N=e[28],I=e[29],L=e[30];let U;e[67]!==T||e[68]!==E||e[69]!==D?(U=(0,V.jsxs)(`span`,{children:[T,E,D,` GB`]}),e[67]=T,e[68]=E,e[69]=D,e[70]=U):U=e[70];let W;e[71]!==U||e[72]!==O||e[73]!==M?(W=(0,V.jsxs)(`div`,{className:O,children:[M,U]}),e[71]=U,e[72]=O,e[73]=M,e[74]=W):W=e[74];let G;e[75]!==m||e[76]!==v||e[77]!==y||e[78]!==W||e[79]!==N||e[80]!==I||e[81]!==L?(G=(0,V.jsxs)(m,{className:N,children:[I,L,v,y,W]}),e[75]=m,e[76]=v,e[77]=y,e[78]=W,e[79]=N,e[80]=I,e[81]=L,e[82]=G):G=e[82];let K;e[83]!==h||e[84]!==b||e[85]!==G?(K=(0,V.jsxs)(h,{children:[b,G]}),e[83]=h,e[84]=b,e[85]=G,e[86]=K):K=e[86];let q;e[87]!==x||e[88]!==S||e[89]!==C||e[90]!==K?(q=(0,V.jsxs)(`div`,{className:x,children:[S,C,K]}),e[87]=x,e[88]=S,e[89]=C,e[90]=K,e[91]=q):q=e[91];let J;e[92]!==_||e[93]!==a?(J=_.length>0&&(0,V.jsxs)(F,{children:[(0,V.jsx)(j,{className:`pb-0`,children:(0,V.jsxs)(`button`,{type:`button`,className:`flex items-center gap-2 text-sm font-medium`,onClick:()=>o(!a),children:[a?(0,V.jsx)(s,{className:`size-3.5`}):(0,V.jsx)(c,{className:`size-3.5`}),`Nodes (`,_.length,`)`]})}),a&&(0,V.jsx)(P,{className:`pt-2`,children:(0,V.jsx)(ce,{nodes:_})})]}),e[92]=_,e[93]=a,e[94]=J):J=e[94];let Y;e[95]===Symbol.for(`react.memo_cache_sentinel`)?(Y=(0,V.jsx)(j,{className:`pb-2`,children:(0,V.jsx)(ne,{className:`text-sm`,children:`Commercial Add-ons`})}),e[95]=Y):Y=e[95];let X;e[96]===g?X=e[97]:(X=H.map(e=>(0,V.jsxs)(`div`,{className:`flex items-center justify-between text-xs`,children:[(0,V.jsx)(`span`,{className:g?`text-muted-foreground`:void 0,children:e.name}),g?(0,V.jsx)(R,{className:`size-3 text-muted-foreground`}):(0,V.jsx)(te,{variant:`outline`,className:`text-[0.625rem]`,children:`Active`})]},e.key)),e[96]=g,e[97]=X);let Z;e[98]===X?Z=e[99]:(Z=(0,V.jsx)(`div`,{className:`space-y-2`,children:X}),e[98]=X,e[99]=Z);let Q;e[100]===g?Q=e[101]:(Q=g&&(0,V.jsx)(`a`,{href:`https://mulgadc.com/purchase`,target:`_blank`,rel:`noopener noreferrer`,className:`mt-3 block text-xs font-medium text-primary hover:underline`,children:`Learn more about commercial features →`}),e[100]=g,e[101]=Q);let $;e[102]!==Z||e[103]!==Q?($=(0,V.jsxs)(F,{children:[Y,(0,V.jsxs)(P,{children:[Z,Q]})]}),e[102]=Z,e[103]=Q,e[104]=$):$=e[104];let le;return e[105]!==w||e[106]!==q||e[107]!==J||e[108]!==$?(le=(0,V.jsxs)(`div`,{className:w,children:[q,J,$]}),e[105]=w,e[106]=q,e[107]=J,e[108]=$,e[109]=le):le=e[109],le}function ie(e,t){return e+t.alloc_mem_gb}function ae(e,t){return e+t.total_mem_gb}function oe(e,t){return e+t.alloc_vcpu}function se(e,t){return e+t.total_vcpu}function ce(e){let t=(0,z.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,V.jsx)(`thead`,{children:(0,V.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Name`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Status`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Roles`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`IP`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Region`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`AZ`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Uptime`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`EC2`}),(0,V.jsx)(`th`,{className:`pb-1 font-medium`,children:`Services`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(G),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,V.jsx)(`div`,{className:`overflow-x-auto`,children:(0,V.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,V.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function G(e){return(0,V.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,V.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.node}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,V.jsx)(te,{variant:e.status===`Ready`?`default`:`secondary`,className:`text-[0.625rem]`,children:e.status})}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,V.jsxs)(`div`,{className:`flex gap-1`,children:[e.nats_role&&(0,V.jsxs)(`span`,{className:`text-muted-foreground`,children:[`nats:`,e.nats_role]}),e.predastore_role&&(0,V.jsxs)(`span`,{className:`text-muted-foreground`,children:[`ps:`,e.predastore_role]})]})}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.host}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.region}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.az}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4`,children:U(e.uptime)}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vm_count}),(0,V.jsx)(`td`,{className:`py-1.5`,children:(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.services.length})})]},e.node)}var K=5;function q(){let e=(0,z.c)(11),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,V.jsx)(D,{title:`Dashboard`}),n=(0,V.jsx)(W,{}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(Q,{})}),e[2]=r):r=e[2];let i;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(me,{})}),e[3]=i):i=e[3];let a;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(ye,{})}),e[4]=a):a=e[4];let o;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(xe,{})}),e[5]=o):o=e[5];let s;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(Ce,{})}),e[6]=s):s=e[6];let c;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(Te,{})}),e[7]=c):c=e[7];let l;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(De,{})}),e[8]=l):l=e[8];let u;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(je,{})}),e[9]=u):u=e[9];let d;return e[10]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,V.jsxs)(V.Fragment,{children:[t,n,(0,V.jsxs)(`div`,{className:`grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3`,children:[r,i,a,o,s,c,l,u,(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(ke,{})})]})]}),e[10]=d):d=e[10],d}function J(){let e=(0,z.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,V.jsx)(j,{children:(0,V.jsx)(`div`,{className:`h-4 w-32 animate-pulse rounded bg-muted`})}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,V.jsxs)(F,{children:[t,(0,V.jsx)(P,{children:(0,V.jsxs)(`div`,{className:`space-y-2`,children:[(0,V.jsx)(`div`,{className:`h-3 w-48 animate-pulse rounded bg-muted`}),(0,V.jsx)(`div`,{className:`h-3 w-36 animate-pulse rounded bg-muted`})]})})]}),e[1]=n):n=e[1],n}function Y(e){let t=(0,z.c)(16),{title:n,icon:r,count:i,to:o,children:s}=e,c;t[0]!==r||t[1]!==n?(c=(0,V.jsxs)(ne,{className:`flex items-center gap-2`,children:[r,n]}),t[0]=r,t[1]=n,t[2]=c):c=t[2];let l;t[3]===i?l=t[4]:(l=(0,V.jsx)(N,{children:(0,V.jsx)(`span`,{className:`rounded-md bg-muted px-2 py-0.5 text-xs font-semibold tabular-nums`,children:i})}),t[3]=i,t[4]=l);let u;t[5]!==c||t[6]!==l?(u=(0,V.jsxs)(j,{children:[c,l]}),t[5]=c,t[6]=l,t[7]=u):u=t[7];let d;t[8]===s?d=t[9]:(d=(0,V.jsx)(P,{children:s}),t[8]=s,t[9]=d);let f;t[10]===o?f=t[11]:(f=(0,V.jsx)(M,{children:(0,V.jsx)(a,{to:o,className:`text-xs font-medium text-primary hover:underline`,children:`View all →`})}),t[10]=o,t[11]=f);let p;return t[12]!==u||t[13]!==d||t[14]!==f?(p=(0,V.jsxs)(F,{children:[u,d,f]}),t[12]=u,t[13]=d,t[14]=f,t[15]=p):p=t[15],p}function X(e){let t=(0,z.c)(2),{total:n}=e;if(n<=K)return null;let r=n-K,i;return t[0]===r?i=t[1]:(i=(0,V.jsxs)(`p`,{className:`mt-1 text-[0.625rem] text-muted-foreground`,children:[`+`,r,` more`]}),t[0]=r,t[1]=i),i}function Z(e){let t=(0,z.c)(2),{children:n}=e,r;return t[0]===n?r=t[1]:(r=(0,V.jsx)(`div`,{className:`flex items-center justify-between py-0.5 text-xs`,children:n}),t[0]=n,t[1]=r),r}function Q(){let e=(0,z.c)(16),{data:t}=i(b),n,r,a,o,s;if(e[0]!==t?.Reservations){let i=t?.Reservations?.flatMap(pe)??[];n=i.filter(fe),a=i.filter(de),o=i.filter(ue),r=i.filter(le),s=[...a,...r].slice(0,K),e[0]=t?.Reservations,e[1]=n,e[2]=r,e[3]=a,e[4]=o,e[5]=s}else n=e[1],r=e[2],a=e[3],o=e[4],s=e[5];let c=s,l;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,V.jsx)(_,{className:`size-3.5`}),e[6]=l):l=e[6];let u;e[7]!==n.length||e[8]!==c||e[9]!==r||e[10]!==a||e[11]!==o?(u=n.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No instances`}):(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(`div`,{className:`mb-2 flex gap-3 text-[0.625rem] text-muted-foreground`,children:[(0,V.jsxs)(`span`,{children:[a.length,` running`]}),(0,V.jsxs)(`span`,{children:[o.length,` stopped`]})]}),(0,V.jsx)(`div`,{className:`space-y-0.5`,children:c.map($)}),(0,V.jsx)(X,{total:a.length+r.length})]}),e[7]=n.length,e[8]=c,e[9]=r,e[10]=a,e[11]=o,e[12]=u):u=e[12];let d;return e[13]!==n.length||e[14]!==u?(d=(0,V.jsx)(Y,{title:`Instances`,icon:l,count:n.length,to:`/ec2/describe-instances`,children:u}),e[13]=n.length,e[14]=u,e[15]=d):d=e[15],d}function $(e){return(0,V.jsxs)(Z,{children:[(0,V.jsx)(`span`,{className:`font-mono`,children:e.InstanceId}),(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.InstanceType})]},e.InstanceId)}function le(e){return e.State?.Name===`pending`}function ue(e){return e.State?.Name===`stopped`}function de(e){return e.State?.Name===`running`}function fe(e){return e.State?.Name!==`terminated`}function pe(e){return e.Instances??[]}function me(){let e=(0,z.c)(3),{data:t}=i(E),n;if(e[0]!==t?.Volumes){let r=t?.Volumes??[],i=r.reduce(ve,0),a=r.filter(_e),o=r.filter(ge),s=r.slice(0,K),c;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,V.jsx)(I,{className:`size-3.5`}),e[2]=c):c=e[2],n=(0,V.jsx)(Y,{title:`Volumes`,icon:c,count:r.length,to:`/ec2/describe-volumes`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No volumes`}):(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(`div`,{className:`mb-2 flex gap-3 text-[0.625rem] text-muted-foreground`,children:[(0,V.jsxs)(`span`,{children:[i,` GiB total`]}),(0,V.jsxs)(`span`,{children:[a.length,` in-use`]}),(0,V.jsxs)(`span`,{children:[o.length,` available`]})]}),(0,V.jsx)(`div`,{className:`space-y-0.5`,children:s.map(he)}),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.Volumes,e[1]=n}else n=e[1];return n}function he(e){return(0,V.jsxs)(Z,{children:[(0,V.jsx)(`span`,{className:`font-mono`,children:e.VolumeId}),(0,V.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,V.jsxs)(`span`,{className:`text-muted-foreground`,children:[e.Size,` GiB`]}),(0,V.jsx)(O,{state:e.State})]})]},e.VolumeId)}function ge(e){return e.State===`available`}function _e(e){return e.State===`in-use`}function ve(e,t){return e+(t.Size??0)}function ye(){let e=(0,z.c)(3),{data:t}=i(y),n;if(e[0]!==t?.Vpcs){let r=t?.Vpcs??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(p,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`VPCs`,icon:a,count:r.length,to:`/ec2/describe-vpcs`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No VPCs`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(be),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.Vpcs,e[1]=n}else n=e[1];return n}function be(e){let t=o(e.Tags);return(0,V.jsxs)(Z,{children:[(0,V.jsxs)(`span`,{className:`font-mono`,children:[e.VpcId,t&&(0,V.jsxs)(`span`,{className:`ml-1 font-sans text-muted-foreground`,children:[`(`,t,`)`]})]}),(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.CidrBlock})]},e.VpcId)}function xe(){let e=(0,z.c)(3),{data:t}=i(T),n;if(e[0]!==t?.KeyPairs){let r=t?.KeyPairs??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(m,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`Key Pairs`,icon:a,count:r.length,to:`/ec2/describe-key-pairs`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No key pairs`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Se),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.KeyPairs,e[1]=n}else n=e[1];return n}function Se(e){return(0,V.jsx)(Z,{children:(0,V.jsx)(`span`,{className:`font-mono`,children:e.KeyName})},e.KeyPairId)}function Ce(){let e=(0,z.c)(3),{data:t}=i(x),n;if(e[0]!==t?.Buckets){let r=t?.Buckets??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(L,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`S3 Buckets`,icon:a,count:r.length,to:`/s3/ls`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No buckets`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(we),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.Buckets,e[1]=n}else n=e[1];return n}function we(e){return(0,V.jsx)(Z,{children:(0,V.jsx)(`span`,{className:`font-mono`,children:e.Name})},e.Name)}function Te(){let e=(0,z.c)(3),{data:t}=i(h),n;if(e[0]!==t?.SecurityGroups){let r=t?.SecurityGroups??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(C,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`Security Groups`,icon:a,count:r.length,to:`/ec2/describe-security-groups`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No security groups`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Ee),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.SecurityGroups,e[1]=n}else n=e[1];return n}function Ee(e){return(0,V.jsxs)(Z,{children:[(0,V.jsx)(`span`,{className:`font-mono`,children:e.GroupName}),(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.VpcId})]},e.GroupId)}function De(){let e=(0,z.c)(3),{data:t}=i(u),n;if(e[0]!==t?.NatGateways){let r=t?.NatGateways??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(g,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`NAT Gateways`,icon:a,count:r.length,to:`/ec2/describe-nat-gateways`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No NAT gateways`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Oe),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.NatGateways,e[1]=n}else n=e[1];return n}function Oe(e){return(0,V.jsxs)(Z,{children:[(0,V.jsx)(`span`,{className:`font-mono`,children:e.NatGatewayId}),(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.State})]},e.NatGatewayId)}function ke(){let e=(0,z.c)(3),{data:t}=i(v),n;if(e[0]!==t?.InternetGateways){let r=t?.InternetGateways??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(S,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`Internet Gateways`,icon:a,count:r.length,to:`/ec2/describe-internet-gateways`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No internet gateways`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Ae),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.InternetGateways,e[1]=n}else n=e[1];return n}function Ae(e){return(0,V.jsxs)(Z,{children:[(0,V.jsx)(`span`,{className:`font-mono`,children:e.InternetGatewayId}),(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.Attachments?.[0]?.VpcId?`attached`:`detached`})]},e.InternetGatewayId)}function je(){let e=(0,z.c)(3),{data:t}=i(w),n;if(e[0]!==t?.Addresses){let r=t?.Addresses??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(d,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`Elastic IPs`,icon:a,count:r.length,to:`/ec2/describe-addresses`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No Elastic IPs`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Me),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.Addresses,e[1]=n}else n=e[1];return n}function Me(e){return(0,V.jsxs)(Z,{children:[(0,V.jsx)(`span`,{className:`font-mono`,children:e.PublicIp}),(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.AssociationId?`associated`:`available`})]},e.AllocationId)}export{q as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useQuery.js";import{Ar as a}from"./awsClient.js";import{Ut as o}from"./auth.js";import{t as s}from"./chevron-down.js";import{t as c}from"./chevron-right.js";import{Ar as l,Et as u,Fr as d,Lr as f,Mr as p,Nr as m,Nt as h,Or as g,Pr as _,St as v,Ut as ee,Vt as y,bt as b,dt as x,jr as S,kr as C,pt as w,wt as T,zt as E}from"./index.js";import{t as D}from"./page-heading.js";import{t as O}from"./state-badge.js";import{r as k,t as A}from"./admin.js";import{t as te}from"./badge.js";import{a as j,i as M,n as N,o as ne,r as P,t as F}from"./card.js";var I=f(`box`,[[`path`,{d:`M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z`,key:`hh9hay`}],[`path`,{d:`m3.3 7 8.7 5 8.7-5`,key:`g66t2b`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}]]),L=f(`folder-open`,[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]),R=f(`lock`,[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]),re=f(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),z=r(),B=t(n(),1),V=e(),H=[{name:`Air-gap Support`,key:`airgap`},{name:`NVIDIA Bluefield DPU`,key:`bluefield`},{name:`NVIDIA MIG Support`,key:`mig`}];function U(e){let t=Math.floor(e/86400),n=Math.floor(e%86400/3600);if(t>0)return`${t}d ${n}h`;let r=Math.floor(e%3600/60);return n>0?`${n}h ${r}m`:`${r}m`}function W(){let e=(0,z.c)(110),{isAdmin:t,version:n,license:r}=ee(),[a,o]=(0,B.useState)(!1),u;e[0]===t?u=e[1]:(u={...A,enabled:t},e[0]=t,e[1]=u);let{data:d}=i(u),f;e[2]===t?f=e[3]:(f={...k,enabled:t},e[2]=t,e[3]=f);let{data:p}=i(f);if(!t||!n)return null;let m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,M,N,I,L;if(e[4]!==r||e[5]!==d?.cluster_mode||e[6]!==d?.nodes||e[7]!==n.arch||e[8]!==n.commit||e[9]!==n.os||e[10]!==n.version||e[11]!==p?.vms){_=d?.nodes??[];let t;e[31]===p?.vms?t=e[32]:(t=p?.vms??[],e[31]=p?.vms,e[32]=t);let i=t,a=d?.cluster_mode??`single-node`;g=r===`open-source`;let o=_[0]?.region??null,s=_.reduce(se,0),c=_.reduce(oe,0),u=_.reduce(ae,0),f=_.reduce(ie,0);w=`mb-6 space-y-4`,x=`grid grid-cols-1 gap-4 md:grid-cols-3`;let ee;e[33]===Symbol.for(`react.memo_cache_sentinel`)?(ee=(0,V.jsx)(j,{className:`pb-2`,children:(0,V.jsxs)(ne,{className:`flex items-center gap-2 text-sm`,children:[(0,V.jsx)(re,{className:`size-3.5`}),`Spinifex Info`]})}),e[33]=ee):ee=e[33];let k;e[34]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Version`}),e[34]=k):k=e[34];let A;e[35]===n.version?A=e[36]:(A=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[k,(0,V.jsx)(`span`,{className:`font-mono`,children:n.version})]}),e[35]=n.version,e[36]=A);let R;e[37]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Commit`}),e[37]=R):R=e[37];let z;e[38]===n.commit?z=e[39]:(z=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[R,(0,V.jsx)(`span`,{className:`font-mono`,children:n.commit})]}),e[38]=n.commit,e[39]=z);let B;e[40]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Platform`}),e[40]=B):B=e[40];let H;e[41]!==n.arch||e[42]!==n.os?(H=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[B,(0,V.jsxs)(`span`,{children:[n.os,`/`,n.arch]})]}),e[41]=n.arch,e[42]=n.os,e[43]=H):H=e[43],S=(0,V.jsxs)(F,{children:[ee,(0,V.jsxs)(P,{className:`space-y-1 text-xs`,children:[A,z,H,o&&(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Region`}),(0,V.jsx)(`span`,{children:o})]})]})]});let U;e[44]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,V.jsx)(j,{className:`pb-2`,children:(0,V.jsx)(ne,{className:`text-sm`,children:`License & Support`})}),e[44]=U):U=e[44];let W;e[45]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`License`}),e[45]=W):W=e[45];let ce=g?`secondary`:`default`,G=g?`Open Source (AGPLv3)`:`Commercial`,K;e[46]!==ce||e[47]!==G?(K=(0,V.jsxs)(`div`,{className:`flex items-center justify-between`,children:[W,(0,V.jsx)(te,{variant:ce,children:G})]}),e[46]=ce,e[47]=G,e[48]=K):K=e[48];let q;e[49]===Symbol.for(`react.memo_cache_sentinel`)?(q=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Support`}),e[49]=q):q=e[49];let J=g?`Community`:`Standard`,Y;e[50]===J?Y=e[51]:(Y=(0,V.jsxs)(`div`,{className:`flex items-center justify-between`,children:[q,(0,V.jsx)(`span`,{children:J})]}),e[50]=J,e[51]=Y);let X;e[52]===g?X=e[53]:(X=g&&(0,V.jsx)(`a`,{href:`https://mulgadc.com/purchase`,target:`_blank`,rel:`noopener noreferrer`,className:`mt-2 block text-xs font-medium text-primary hover:underline`,children:`Upgrade to Commercial →`}),e[52]=g,e[53]=X),e[54]!==K||e[55]!==Y||e[56]!==X?(C=(0,V.jsxs)(F,{children:[U,(0,V.jsxs)(P,{className:`space-y-2 text-xs`,children:[K,Y,X]})]}),e[54]=K,e[55]=Y,e[56]=X,e[57]=C):C=e[57],h=F,e[58]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,V.jsx)(j,{className:`pb-2`,children:(0,V.jsxs)(ne,{className:`flex items-center gap-2 text-sm`,children:[(0,V.jsx)(l,{className:`size-3.5`}),`Cluster Status`]})}),e[58]=b):b=e[58],m=P,N=`space-y-2 text-xs`,e[59]===a?I=e[60]:(I=(0,V.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,V.jsx)(te,{variant:`outline`,children:a})}),e[59]=a,e[60]=I);let Z;e[61]===Symbol.for(`react.memo_cache_sentinel`)?(Z=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Nodes`}),e[61]=Z):Z=e[61],L=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[Z,(0,V.jsx)(`span`,{children:_.length})]});let Q;e[62]===Symbol.for(`react.memo_cache_sentinel`)?(Q=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Instances`}),e[62]=Q):Q=e[62],e[63]===i.length?v=e[64]:(v=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[Q,(0,V.jsx)(`span`,{children:i.length})]}),e[63]=i.length,e[64]=v);let $;e[65]===Symbol.for(`react.memo_cache_sentinel`)?($=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`vCPU`}),e[65]=$):$=e[65],y=(0,V.jsxs)(`div`,{className:`flex justify-between`,children:[$,(0,V.jsxs)(`span`,{children:[c,` / `,s]})]}),O=`flex justify-between`,e[66]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`Memory`}),e[66]=M):M=e[66],T=f.toFixed(1),E=` / `,D=u.toFixed(1),e[4]=r,e[5]=d?.cluster_mode,e[6]=d?.nodes,e[7]=n.arch,e[8]=n.commit,e[9]=n.os,e[10]=n.version,e[11]=p?.vms,e[12]=m,e[13]=h,e[14]=g,e[15]=_,e[16]=v,e[17]=y,e[18]=b,e[19]=x,e[20]=S,e[21]=C,e[22]=w,e[23]=T,e[24]=E,e[25]=D,e[26]=O,e[27]=M,e[28]=N,e[29]=I,e[30]=L}else m=e[12],h=e[13],g=e[14],_=e[15],v=e[16],y=e[17],b=e[18],x=e[19],S=e[20],C=e[21],w=e[22],T=e[23],E=e[24],D=e[25],O=e[26],M=e[27],N=e[28],I=e[29],L=e[30];let U;e[67]!==T||e[68]!==E||e[69]!==D?(U=(0,V.jsxs)(`span`,{children:[T,E,D,` GB`]}),e[67]=T,e[68]=E,e[69]=D,e[70]=U):U=e[70];let W;e[71]!==U||e[72]!==O||e[73]!==M?(W=(0,V.jsxs)(`div`,{className:O,children:[M,U]}),e[71]=U,e[72]=O,e[73]=M,e[74]=W):W=e[74];let G;e[75]!==m||e[76]!==v||e[77]!==y||e[78]!==W||e[79]!==N||e[80]!==I||e[81]!==L?(G=(0,V.jsxs)(m,{className:N,children:[I,L,v,y,W]}),e[75]=m,e[76]=v,e[77]=y,e[78]=W,e[79]=N,e[80]=I,e[81]=L,e[82]=G):G=e[82];let K;e[83]!==h||e[84]!==b||e[85]!==G?(K=(0,V.jsxs)(h,{children:[b,G]}),e[83]=h,e[84]=b,e[85]=G,e[86]=K):K=e[86];let q;e[87]!==x||e[88]!==S||e[89]!==C||e[90]!==K?(q=(0,V.jsxs)(`div`,{className:x,children:[S,C,K]}),e[87]=x,e[88]=S,e[89]=C,e[90]=K,e[91]=q):q=e[91];let J;e[92]!==_||e[93]!==a?(J=_.length>0&&(0,V.jsxs)(F,{children:[(0,V.jsx)(j,{className:`pb-0`,children:(0,V.jsxs)(`button`,{type:`button`,className:`flex items-center gap-2 text-sm font-medium`,onClick:()=>o(!a),children:[a?(0,V.jsx)(s,{className:`size-3.5`}):(0,V.jsx)(c,{className:`size-3.5`}),`Nodes (`,_.length,`)`]})}),a&&(0,V.jsx)(P,{className:`pt-2`,children:(0,V.jsx)(ce,{nodes:_})})]}),e[92]=_,e[93]=a,e[94]=J):J=e[94];let Y;e[95]===Symbol.for(`react.memo_cache_sentinel`)?(Y=(0,V.jsx)(j,{className:`pb-2`,children:(0,V.jsx)(ne,{className:`text-sm`,children:`Commercial Add-ons`})}),e[95]=Y):Y=e[95];let X;e[96]===g?X=e[97]:(X=H.map(e=>(0,V.jsxs)(`div`,{className:`flex items-center justify-between text-xs`,children:[(0,V.jsx)(`span`,{className:g?`text-muted-foreground`:void 0,children:e.name}),g?(0,V.jsx)(R,{className:`size-3 text-muted-foreground`}):(0,V.jsx)(te,{variant:`outline`,className:`text-[0.625rem]`,children:`Active`})]},e.key)),e[96]=g,e[97]=X);let Z;e[98]===X?Z=e[99]:(Z=(0,V.jsx)(`div`,{className:`space-y-2`,children:X}),e[98]=X,e[99]=Z);let Q;e[100]===g?Q=e[101]:(Q=g&&(0,V.jsx)(`a`,{href:`https://mulgadc.com/purchase`,target:`_blank`,rel:`noopener noreferrer`,className:`mt-3 block text-xs font-medium text-primary hover:underline`,children:`Learn more about commercial features →`}),e[100]=g,e[101]=Q);let $;e[102]!==Z||e[103]!==Q?($=(0,V.jsxs)(F,{children:[Y,(0,V.jsxs)(P,{children:[Z,Q]})]}),e[102]=Z,e[103]=Q,e[104]=$):$=e[104];let le;return e[105]!==w||e[106]!==q||e[107]!==J||e[108]!==$?(le=(0,V.jsxs)(`div`,{className:w,children:[q,J,$]}),e[105]=w,e[106]=q,e[107]=J,e[108]=$,e[109]=le):le=e[109],le}function ie(e,t){return e+t.alloc_mem_gb}function ae(e,t){return e+t.total_mem_gb}function oe(e,t){return e+t.alloc_vcpu}function se(e,t){return e+t.total_vcpu}function ce(e){let t=(0,z.c)(5),{nodes:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,V.jsx)(`thead`,{children:(0,V.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Name`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Status`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Roles`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`IP`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Region`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`AZ`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`Uptime`}),(0,V.jsx)(`th`,{className:`pr-4 pb-1 font-medium`,children:`EC2`}),(0,V.jsx)(`th`,{className:`pb-1 font-medium`,children:`Services`})]})}),t[0]=r):r=t[0];let i;t[1]===n?i=t[2]:(i=n.map(G),t[1]=n,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,V.jsx)(`div`,{className:`overflow-x-auto`,children:(0,V.jsxs)(`table`,{className:`w-full text-xs`,children:[r,(0,V.jsx)(`tbody`,{children:i})]})}),t[3]=i,t[4]=a),a}function G(e){return(0,V.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,V.jsx)(`td`,{className:`py-1.5 pr-4 font-mono font-medium`,children:e.node}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,V.jsx)(te,{variant:e.status===`Ready`?`default`:`secondary`,className:`text-[0.625rem]`,children:e.status})}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4`,children:(0,V.jsxs)(`div`,{className:`flex gap-1`,children:[e.nats_role&&(0,V.jsxs)(`span`,{className:`text-muted-foreground`,children:[`nats:`,e.nats_role]}),e.predastore_role&&(0,V.jsxs)(`span`,{className:`text-muted-foreground`,children:[`ps:`,e.predastore_role]})]})}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4 font-mono`,children:e.host}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.region}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.az}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4`,children:U(e.uptime)}),(0,V.jsx)(`td`,{className:`py-1.5 pr-4`,children:e.vm_count}),(0,V.jsx)(`td`,{className:`py-1.5`,children:(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.services.length})})]},e.node)}var K=5;function q(){let e=(0,z.c)(11),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,V.jsx)(D,{title:`Dashboard`}),n=(0,V.jsx)(W,{}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(Q,{})}),e[2]=r):r=e[2];let i;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(me,{})}),e[3]=i):i=e[3];let a;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(ye,{})}),e[4]=a):a=e[4];let o;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(xe,{})}),e[5]=o):o=e[5];let s;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(Ce,{})}),e[6]=s):s=e[6];let c;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(Te,{})}),e[7]=c):c=e[7];let l;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(De,{})}),e[8]=l):l=e[8];let u;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(je,{})}),e[9]=u):u=e[9];let d;return e[10]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,V.jsxs)(V.Fragment,{children:[t,n,(0,V.jsxs)(`div`,{className:`grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3`,children:[r,i,a,o,s,c,l,u,(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(J,{}),children:(0,V.jsx)(ke,{})})]})]}),e[10]=d):d=e[10],d}function J(){let e=(0,z.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,V.jsx)(j,{children:(0,V.jsx)(`div`,{className:`h-4 w-32 animate-pulse rounded bg-muted`})}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,V.jsxs)(F,{children:[t,(0,V.jsx)(P,{children:(0,V.jsxs)(`div`,{className:`space-y-2`,children:[(0,V.jsx)(`div`,{className:`h-3 w-48 animate-pulse rounded bg-muted`}),(0,V.jsx)(`div`,{className:`h-3 w-36 animate-pulse rounded bg-muted`})]})})]}),e[1]=n):n=e[1],n}function Y(e){let t=(0,z.c)(16),{title:n,icon:r,count:i,to:o,children:s}=e,c;t[0]!==r||t[1]!==n?(c=(0,V.jsxs)(ne,{className:`flex items-center gap-2`,children:[r,n]}),t[0]=r,t[1]=n,t[2]=c):c=t[2];let l;t[3]===i?l=t[4]:(l=(0,V.jsx)(N,{children:(0,V.jsx)(`span`,{className:`rounded-md bg-muted px-2 py-0.5 text-xs font-semibold tabular-nums`,children:i})}),t[3]=i,t[4]=l);let u;t[5]!==c||t[6]!==l?(u=(0,V.jsxs)(j,{children:[c,l]}),t[5]=c,t[6]=l,t[7]=u):u=t[7];let d;t[8]===s?d=t[9]:(d=(0,V.jsx)(P,{children:s}),t[8]=s,t[9]=d);let f;t[10]===o?f=t[11]:(f=(0,V.jsx)(M,{children:(0,V.jsx)(a,{to:o,className:`text-xs font-medium text-primary hover:underline`,children:`View all →`})}),t[10]=o,t[11]=f);let p;return t[12]!==u||t[13]!==d||t[14]!==f?(p=(0,V.jsxs)(F,{children:[u,d,f]}),t[12]=u,t[13]=d,t[14]=f,t[15]=p):p=t[15],p}function X(e){let t=(0,z.c)(2),{total:n}=e;if(n<=K)return null;let r=n-K,i;return t[0]===r?i=t[1]:(i=(0,V.jsxs)(`p`,{className:`mt-1 text-[0.625rem] text-muted-foreground`,children:[`+`,r,` more`]}),t[0]=r,t[1]=i),i}function Z(e){let t=(0,z.c)(2),{children:n}=e,r;return t[0]===n?r=t[1]:(r=(0,V.jsx)(`div`,{className:`flex items-center justify-between py-0.5 text-xs`,children:n}),t[0]=n,t[1]=r),r}function Q(){let e=(0,z.c)(16),{data:t}=i(b),n,r,a,o,s;if(e[0]!==t?.Reservations){let i=t?.Reservations?.flatMap(pe)??[];n=i.filter(fe),a=i.filter(de),o=i.filter(ue),r=i.filter(le),s=[...a,...r].slice(0,K),e[0]=t?.Reservations,e[1]=n,e[2]=r,e[3]=a,e[4]=o,e[5]=s}else n=e[1],r=e[2],a=e[3],o=e[4],s=e[5];let c=s,l;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,V.jsx)(_,{className:`size-3.5`}),e[6]=l):l=e[6];let u;e[7]!==n.length||e[8]!==c||e[9]!==r||e[10]!==a||e[11]!==o?(u=n.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No instances`}):(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(`div`,{className:`mb-2 flex gap-3 text-[0.625rem] text-muted-foreground`,children:[(0,V.jsxs)(`span`,{children:[a.length,` running`]}),(0,V.jsxs)(`span`,{children:[o.length,` stopped`]})]}),(0,V.jsx)(`div`,{className:`space-y-0.5`,children:c.map($)}),(0,V.jsx)(X,{total:a.length+r.length})]}),e[7]=n.length,e[8]=c,e[9]=r,e[10]=a,e[11]=o,e[12]=u):u=e[12];let d;return e[13]!==n.length||e[14]!==u?(d=(0,V.jsx)(Y,{title:`Instances`,icon:l,count:n.length,to:`/ec2/describe-instances`,children:u}),e[13]=n.length,e[14]=u,e[15]=d):d=e[15],d}function $(e){return(0,V.jsxs)(Z,{children:[(0,V.jsx)(`span`,{className:`font-mono`,children:e.InstanceId}),(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.InstanceType})]},e.InstanceId)}function le(e){return e.State?.Name===`pending`}function ue(e){return e.State?.Name===`stopped`}function de(e){return e.State?.Name===`running`}function fe(e){return e.State?.Name!==`terminated`}function pe(e){return e.Instances??[]}function me(){let e=(0,z.c)(3),{data:t}=i(E),n;if(e[0]!==t?.Volumes){let r=t?.Volumes??[],i=r.reduce(ve,0),a=r.filter(_e),o=r.filter(ge),s=r.slice(0,K),c;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,V.jsx)(I,{className:`size-3.5`}),e[2]=c):c=e[2],n=(0,V.jsx)(Y,{title:`Volumes`,icon:c,count:r.length,to:`/ec2/describe-volumes`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No volumes`}):(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(`div`,{className:`mb-2 flex gap-3 text-[0.625rem] text-muted-foreground`,children:[(0,V.jsxs)(`span`,{children:[i,` GiB total`]}),(0,V.jsxs)(`span`,{children:[a.length,` in-use`]}),(0,V.jsxs)(`span`,{children:[o.length,` available`]})]}),(0,V.jsx)(`div`,{className:`space-y-0.5`,children:s.map(he)}),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.Volumes,e[1]=n}else n=e[1];return n}function he(e){return(0,V.jsxs)(Z,{children:[(0,V.jsx)(`span`,{className:`font-mono`,children:e.VolumeId}),(0,V.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,V.jsxs)(`span`,{className:`text-muted-foreground`,children:[e.Size,` GiB`]}),(0,V.jsx)(O,{state:e.State})]})]},e.VolumeId)}function ge(e){return e.State===`available`}function _e(e){return e.State===`in-use`}function ve(e,t){return e+(t.Size??0)}function ye(){let e=(0,z.c)(3),{data:t}=i(y),n;if(e[0]!==t?.Vpcs){let r=t?.Vpcs??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(p,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`VPCs`,icon:a,count:r.length,to:`/ec2/describe-vpcs`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No VPCs`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(be),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.Vpcs,e[1]=n}else n=e[1];return n}function be(e){let t=o(e.Tags);return(0,V.jsxs)(Z,{children:[(0,V.jsxs)(`span`,{className:`font-mono`,children:[e.VpcId,t&&(0,V.jsxs)(`span`,{className:`ml-1 font-sans text-muted-foreground`,children:[`(`,t,`)`]})]}),(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.CidrBlock})]},e.VpcId)}function xe(){let e=(0,z.c)(3),{data:t}=i(T),n;if(e[0]!==t?.KeyPairs){let r=t?.KeyPairs??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(m,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`Key Pairs`,icon:a,count:r.length,to:`/ec2/describe-key-pairs`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No key pairs`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Se),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.KeyPairs,e[1]=n}else n=e[1];return n}function Se(e){return(0,V.jsx)(Z,{children:(0,V.jsx)(`span`,{className:`font-mono`,children:e.KeyName})},e.KeyPairId)}function Ce(){let e=(0,z.c)(3),{data:t}=i(x),n;if(e[0]!==t?.Buckets){let r=t?.Buckets??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(L,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`S3 Buckets`,icon:a,count:r.length,to:`/s3/ls`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No buckets`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(we),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.Buckets,e[1]=n}else n=e[1];return n}function we(e){return(0,V.jsx)(Z,{children:(0,V.jsx)(`span`,{className:`font-mono`,children:e.Name})},e.Name)}function Te(){let e=(0,z.c)(3),{data:t}=i(h),n;if(e[0]!==t?.SecurityGroups){let r=t?.SecurityGroups??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(C,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`Security Groups`,icon:a,count:r.length,to:`/ec2/describe-security-groups`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No security groups`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Ee),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.SecurityGroups,e[1]=n}else n=e[1];return n}function Ee(e){return(0,V.jsxs)(Z,{children:[(0,V.jsx)(`span`,{className:`font-mono`,children:e.GroupName}),(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.VpcId})]},e.GroupId)}function De(){let e=(0,z.c)(3),{data:t}=i(u),n;if(e[0]!==t?.NatGateways){let r=t?.NatGateways??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(g,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`NAT Gateways`,icon:a,count:r.length,to:`/ec2/describe-nat-gateways`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No NAT gateways`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Oe),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.NatGateways,e[1]=n}else n=e[1];return n}function Oe(e){return(0,V.jsxs)(Z,{children:[(0,V.jsx)(`span`,{className:`font-mono`,children:e.NatGatewayId}),(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.State})]},e.NatGatewayId)}function ke(){let e=(0,z.c)(3),{data:t}=i(v),n;if(e[0]!==t?.InternetGateways){let r=t?.InternetGateways??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(S,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`Internet Gateways`,icon:a,count:r.length,to:`/ec2/describe-internet-gateways`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No internet gateways`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Ae),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.InternetGateways,e[1]=n}else n=e[1];return n}function Ae(e){return(0,V.jsxs)(Z,{children:[(0,V.jsx)(`span`,{className:`font-mono`,children:e.InternetGatewayId}),(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.Attachments?.[0]?.VpcId?`attached`:`detached`})]},e.InternetGatewayId)}function je(){let e=(0,z.c)(3),{data:t}=i(w),n;if(e[0]!==t?.Addresses){let r=t?.Addresses??[],i=r.slice(0,K),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(d,{className:`size-3.5`}),e[2]=a):a=e[2],n=(0,V.jsx)(Y,{title:`Elastic IPs`,icon:a,count:r.length,to:`/ec2/describe-addresses`,children:r.length===0?(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No Elastic IPs`}):(0,V.jsxs)(`div`,{className:`space-y-0.5`,children:[i.map(Me),(0,V.jsx)(X,{total:r.length})]})}),e[0]=t?.Addresses,e[1]=n}else n=e[1];return n}function Me(e){return(0,V.jsxs)(Z,{children:[(0,V.jsx)(`span`,{className:`font-mono`,children:e.PublicIp}),(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.AssociationId?`associated`:`available`})]},e.AllocationId)}export{q as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_clusterName.js b/spinifex/services/spinifexui/frontend/dist/assets/_clusterName.js index 714d14cc4..9f604e10b 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_clusterName.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_clusterName.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useQuery.js";import{t as a}from"./useSuspenseQuery.js";import{kr as o}from"./awsClient.js";import{Bt as s}from"./auth.js";import{t as c}from"./back-link.js";import{t as l}from"./cli-command-panel.js";import{t as u}from"./trash-2.js";import{t as d}from"./button.js";import{C as f,S as p,T as m,_ as h,b as g,c as _,f as v,h as y,i as b,l as x,m as S,n as C,p as w,r as T,s as E,u as D,v as O,w as k,x as A,y as j}from"./eks.js";import{A as M,Br as N,D as P,F,Hn as I,I as L,Lr as R,Lt as z,M as B,N as V,O as H,j as U,k as W,st as ee,v as G}from"./index.js";import{i as K,n as te,t as ne}from"./zod.js";import{t as re}from"./error-banner.js";import{t as ie}from"./page-heading.js";import{a as q,r as ae,t as J}from"./field.js";import{i as oe,l as se,n as ce,o as le,r as ue,s as de,t as fe}from"./alert-dialog.js";import{t as pe}from"./delete-confirmation-dialog.js";import{n as Y,t as X}from"./detail-row.js";import{i as me,n as he,r as ge,t as _e}from"./tabs.js";import{t as ve}from"./badge.js";import{t as ye}from"./json-editor.js";var be=R(`circle-arrow-up`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 12-4-4-4 4`,key:`177agl`}],[`path`,{d:`M12 16V8`,key:`1sbj14`}]]),xe=R(`sliders-horizontal`,[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]),Z=r(),Q=t(n(),1),$=e();function Se(e){return e?.split(`/`).pop()??e??``}function Ce(e){let t=(0,Z.c)(55),{clusterName:n,principalArn:r,onDelete:a}=e,o;t[0]!==n||t[1]!==r?(o=H(n,r),t[0]=n,t[1]=r,t[2]=o):o=t[2];let{data:s}=i(o),c;t[3]!==n||t[4]!==r?(c=B(n,r),t[3]=n,t[4]=r,t[5]=c):c=t[5];let{data:l}=i(c),f=w(),m=p(),[h,g]=(0,Q.useState)(C[0].arn),_=s?.accessEntry,v;t[6]===l?.associatedAccessPolicies?v=t[7]:(v=l?.associatedAccessPolicies??[],t[6]=l?.associatedAccessPolicies,t[7]=v);let y=v,b;t[8]===r?b=t[9]:(b=(0,$.jsx)(`span`,{className:`truncate font-mono text-xs`,children:r}),t[8]=r,t[9]=b);let x;t[10]!==a||t[11]!==r?(x=()=>a(r),t[10]=a,t[11]=r,t[12]=x):x=t[12];let S;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,$.jsx)(u,{className:`size-4`}),t[13]=S):S=t[13];let T;t[14]===x?T=t[15]:(T=(0,$.jsx)(d,{onClick:x,size:`icon`,variant:`ghost`,children:S}),t[14]=x,t[15]=T);let E;t[16]!==b||t[17]!==T?(E=(0,$.jsx)(Y.Header,{children:(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[b,T]})}),t[16]=b,t[17]=T,t[18]=E):E=t[18];let D=_?.type,O;t[19]===D?O=t[20]:(O=(0,$.jsx)(X,{label:`Type`,value:D}),t[19]=D,t[20]=O);let k;t[21]===_?k=t[22]:(k=_?.kubernetesGroups?.length?_.kubernetesGroups.join(`, `):`—`,t[21]=_,t[22]=k);let A;t[23]===k?A=t[24]:(A=(0,$.jsx)(X,{label:`Kubernetes groups`,value:k}),t[23]=k,t[24]=A);let j;t[25]!==y||t[26]!==n||t[27]!==m||t[28]!==r?(j=y.length>0?(0,$.jsx)(`div`,{className:`space-y-1`,children:y.map(e=>(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,$.jsx)(`span`,{children:Se(e.policyArn)}),(0,$.jsx)(d,{onClick:()=>m.mutate({clusterName:n,principalArn:r,policyArn:e.policyArn??``}),size:`sm`,variant:`ghost`,children:`Remove`})]},e.policyArn))}):`—`,t[25]=y,t[26]=n,t[27]=m,t[28]=r,t[29]=j):j=t[29];let M;t[30]===j?M=t[31]:(M=(0,$.jsx)(X,{label:`Access policies`,value:j}),t[30]=j,t[31]=M);let N;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(N=e=>g(e.target.value),t[32]=N):N=t[32];let P;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(P=C.map(we),t[33]=P):P=t[33];let F;t[34]===h?F=t[35]:(F=(0,$.jsx)(`select`,{"aria-label":`Access policy`,className:`h-7 flex-1 rounded-md border border-input bg-input/20 px-2 text-sm`,onChange:N,value:h,children:P}),t[34]=h,t[35]=F);let I;t[36]!==f||t[37]!==n||t[38]!==h||t[39]!==r?(I=()=>f.mutate({clusterName:n,principalArn:r,policyArn:h,accessScopeType:`cluster`}),t[36]=f,t[37]=n,t[38]=h,t[39]=r,t[40]=I):I=t[40];let L;t[41]!==f.isPending||t[42]!==I?(L=(0,$.jsx)(d,{disabled:f.isPending,onClick:I,size:`sm`,children:`Associate`}),t[41]=f.isPending,t[42]=I,t[43]=L):L=t[43];let R;t[44]!==F||t[45]!==L?(R=(0,$.jsxs)(`div`,{className:`flex items-center gap-2 pt-2`,children:[F,L]}),t[44]=F,t[45]=L,t[46]=R):R=t[46];let z;t[47]!==O||t[48]!==A||t[49]!==M||t[50]!==R?(z=(0,$.jsxs)(Y.Content,{children:[O,A,M,R]}),t[47]=O,t[48]=A,t[49]=M,t[50]=R,t[51]=z):z=t[51];let V;return t[52]!==z||t[53]!==E?(V=(0,$.jsxs)(Y,{children:[E,z]}),t[52]=z,t[53]=E,t[54]=V):V=t[54],V}function we(e){return(0,$.jsx)(`option`,{value:e.arn,children:e.name},e.arn)}function Te(e){let t=(0,Z.c)(41),{clusterName:n,open:r,onOpenChange:i}=e,a=S(),o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={resolver:ne(x),defaultValues:{principalArn:``,kubernetesGroups:``}},t[0]=o):o=t[0];let{formState:s,handleSubmit:c,register:l,reset:u}=K(o),{errors:d}=s,f;t[1]!==n||t[2]!==a||t[3]!==i||t[4]!==u?(f=async e=>{await a.mutateAsync({clusterName:n,principalArn:e.principalArn,kubernetesGroups:e.kubernetesGroups.split(`,`).map(Ee).filter(Boolean)}),u(),i(!1)},t[1]=n,t[2]=a,t[3]=i,t[4]=u,t[5]=f):f=t[5];let p=f,m;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,$.jsx)(de,{children:(0,$.jsx)(se,{children:`Add access entry`})}),t[6]=m):m=t[6];let h;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ae-principal`,children:`IAM principal ARN`})}),t[7]=h):h=t[7];let g=!!d.principalArn,_;t[8]===l?_=t[9]:(_=l(`principalArn`),t[8]=l,t[9]=_);let v;t[10]!==g||t[11]!==_?(v=(0,$.jsx)(I,{"aria-invalid":g,id:`ae-principal`,placeholder:`arn:aws:iam::000000000000:role/my-role`,..._}),t[10]=g,t[11]=_,t[12]=v):v=t[12];let y;t[13]===d.principalArn?y=t[14]:(y=(0,$.jsx)(ae,{errors:[d.principalArn]}),t[13]=d.principalArn,t[14]=y);let b;t[15]!==v||t[16]!==y?(b=(0,$.jsxs)(J,{children:[h,v,y]}),t[15]=v,t[16]=y,t[17]=b):b=t[17];let C;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ae-groups`,children:`Kubernetes groups`})}),t[18]=C):C=t[18];let w;t[19]===l?w=t[20]:(w=l(`kubernetesGroups`),t[19]=l,t[20]=w);let T;t[21]===w?T=t[22]:(T=(0,$.jsxs)(J,{children:[C,(0,$.jsx)(I,{id:`ae-groups`,placeholder:`system:masters`,...w})]}),t[21]=w,t[22]=T);let E;t[23]!==b||t[24]!==T?(E=(0,$.jsxs)(`form`,{className:`space-y-4`,id:`add-access-entry-form`,children:[b,T]}),t[23]=b,t[24]=T,t[25]=E):E=t[25];let D;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,$.jsx)(ue,{children:`Cancel`}),t[26]=D):D=t[26];let O;t[27]!==c||t[28]!==p?(O=e=>{e.preventDefault(),c(p)()},t[27]=c,t[28]=p,t[29]=O):O=t[29];let k=a.isPending?`Creating…`:`Create`,A;t[30]!==a.isPending||t[31]!==O||t[32]!==k?(A=(0,$.jsxs)(le,{children:[D,(0,$.jsx)(ce,{disabled:a.isPending,onClick:O,children:k})]}),t[30]=a.isPending,t[31]=O,t[32]=k,t[33]=A):A=t[33];let j;t[34]!==E||t[35]!==A?(j=(0,$.jsxs)(oe,{children:[m,E,A]}),t[34]=E,t[35]=A,t[36]=j):j=t[36];let M;return t[37]!==i||t[38]!==r||t[39]!==j?(M=(0,$.jsx)(fe,{onOpenChange:i,open:r,children:j}),t[37]=i,t[38]=r,t[39]=j,t[40]=M):M=t[40],M}function Ee(e){return e.trim()}function De(e){let t=(0,Z.c)(25),{clusterName:n}=e,r;t[0]===n?r=t[1]:(r=P(n),t[0]=n,t[1]=r);let{data:i}=a(r),o=O(),[s,c]=(0,Q.useState)(!1),[l,u]=(0,Q.useState)(),f;t[2]===i.accessEntries?f=t[3]:(f=i.accessEntries??[],t[2]=i.accessEntries,t[3]=f);let p=f,m;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,$.jsx)(`div`,{className:`mb-4 flex justify-end`,children:(0,$.jsx)(d,{onClick:()=>c(!0),size:`sm`,children:`Add access entry`})}),t[4]=m):m=t[4];let h;t[5]!==n||t[6]!==p?(h=p.length>0?(0,$.jsx)(`div`,{className:`space-y-4`,children:p.map(e=>(0,$.jsx)(Ce,{clusterName:n,onDelete:u,principalArn:e},e))}):(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`No access entries.`}),t[5]=n,t[6]=p,t[7]=h):h=t[7];let g;t[8]!==n||t[9]!==s?(g=(0,$.jsx)(Te,{clusterName:n,onOpenChange:c,open:s}),t[8]=n,t[9]=s,t[10]=g):g=t[10];let _=`Delete access entry for "${l??``}"?`,v;t[11]!==n||t[12]!==o||t[13]!==l?(v=()=>{l&&o.mutate({clusterName:n,principalArn:l},{onSuccess:()=>u(void 0)})},t[11]=n,t[12]=o,t[13]=l,t[14]=v):v=t[14];let y;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(y=e=>!e&&u(void 0),t[15]=y):y=t[15];let b=l!==void 0,x;t[16]!==o.isPending||t[17]!==_||t[18]!==v||t[19]!==b?(x=(0,$.jsx)(pe,{description:_,isPending:o.isPending,onConfirm:v,onOpenChange:y,open:b,title:`Delete access entry`}),t[16]=o.isPending,t[17]=_,t[18]=v,t[19]=b,t[20]=x):x=t[20];let S;return t[21]!==x||t[22]!==h||t[23]!==g?(S=(0,$.jsxs)($.Fragment,{children:[m,h,g,x]}),t[21]=x,t[22]=h,t[23]=g,t[24]=S):S=t[24],S}var Oe=new Set([`CREATING`,`UPDATING`,`DELETING`]),ke=5e3,Ae=`h-7 w-full rounded-md border border-input bg-input/20 px-2 text-sm`;function je({clusterName:e,catalog:t,installed:n,open:r,onOpenChange:i}){let a=y(),o=t.filter(e=>!n.includes(e.addonName??``)),{control:s,formState:{errors:c},handleSubmit:l,register:u,reset:d,setValue:f,watch:p}=K({resolver:ne(D),defaultValues:{addonName:``,addonVersion:``,serviceAccountRoleArn:``,configurationValues:``}}),m=p(`addonName`),h=p(`addonVersion`),g=t.find(e=>e.addonName===m)?.addonVersions??[],_=g.find(e=>e.addonVersion===h)?.requiresIamPermissions??!1,v=e=>{let n=t.find(t=>t.addonName===e)?.addonVersions?.[0]?.addonVersion??``;f(`addonName`,e,{shouldValidate:!0}),f(`addonVersion`,n,{shouldValidate:!0})},b=async t=>{await a.mutateAsync({clusterName:e,addonName:t.addonName,addonVersion:t.addonVersion||void 0,serviceAccountRoleArn:t.serviceAccountRoleArn.trim()||void 0,configurationValues:t.configurationValues.trim()||void 0}),d(),i(!1)};return(0,$.jsx)(fe,{onOpenChange:i,open:r,children:(0,$.jsxs)(oe,{className:`max-h-[85vh] overflow-y-auto`,children:[(0,$.jsx)(de,{children:(0,$.jsx)(se,{children:`Add add-on`})}),(0,$.jsxs)(`form`,{className:`space-y-4`,id:`add-addon-form`,children:[(0,$.jsxs)(J,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`addon-name`,children:`Add-on`})}),(0,$.jsxs)(`select`,{"aria-invalid":!!c.addonName,className:Ae,id:`addon-name`,onChange:e=>v(e.target.value),value:m,children:[(0,$.jsx)(`option`,{value:``,children:`Select add-on`}),o.map(e=>(0,$.jsx)(`option`,{value:e.addonName??``,children:e.addonName},e.addonName))]}),(0,$.jsx)(ae,{errors:[c.addonName]})]}),(0,$.jsxs)(J,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`addon-version`,children:`Version`})}),(0,$.jsx)(`select`,{"aria-invalid":!!c.addonVersion,className:Ae,disabled:g.length===0,id:`addon-version`,onChange:e=>f(`addonVersion`,e.target.value,{shouldValidate:!0}),value:h,children:g.map((e,t)=>(0,$.jsxs)(`option`,{value:e.addonVersion??``,children:[e.addonVersion,t===0?` (latest)`:``]},e.addonVersion))}),(0,$.jsx)(ae,{errors:[c.addonVersion]})]}),(0,$.jsxs)(J,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`addon-role`,children:`Service account IAM role ARN`})}),(0,$.jsx)(I,{id:`addon-role`,placeholder:`arn:aws:iam::…:role/…`,...u(`serviceAccountRoleArn`)}),_&&(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`This add-on needs IAM permissions — provide an IRSA role ARN.`})]}),(0,$.jsxs)(J,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`addon-config`,children:`Configuration values (JSON)`})}),(0,$.jsx)(te,{control:s,name:`configurationValues`,render:({field:{onBlur:e,onChange:t,ref:n,value:r}})=>(0,$.jsx)(ye,{error:!!c.configurationValues,id:`addon-config`,onBlur:e,onChange:t,placeholder:`{"replicaCount": 2}`,ref:n,rows:4,value:r})}),(0,$.jsx)(ae,{errors:[c.configurationValues]})]})]}),(0,$.jsxs)(le,{children:[(0,$.jsx)(ue,{children:`Cancel`}),(0,$.jsx)(ce,{disabled:a.isPending,onClick:e=>{e.preventDefault(),l(b)()},children:a.isPending?`Adding…`:`Add`})]})]})})}function Me(e){let t=(0,Z.c)(54),{clusterName:n,addonName:r,current:i,versions:a,open:o,onOpenChange:s}=e,c=k(),[l,u]=(0,Q.useState)(i.addonVersion??``),[d,f]=(0,Q.useState)(i.serviceAccountRoleArn??``),[p,m]=(0,Q.useState)(i.configurationValues??``),[h,g]=(0,Q.useState)(),_,v;t[0]!==i.addonVersion||t[1]!==i.configurationValues||t[2]!==i.serviceAccountRoleArn||t[3]!==o?(_=()=>{o&&(u(i.addonVersion??``),f(i.serviceAccountRoleArn??``),m(i.configurationValues??``),g(void 0))},v=[o,i.addonVersion,i.serviceAccountRoleArn,i.configurationValues],t[0]=i.addonVersion,t[1]=i.configurationValues,t[2]=i.serviceAccountRoleArn,t[3]=o,t[4]=_,t[5]=v):(_=t[4],v=t[5]),(0,Q.useEffect)(_,v);let y;t[6]!==r||t[7]!==n||t[8]!==p||t[9]!==s||t[10]!==d||t[11]!==c||t[12]!==l?(y=()=>{let e=E.safeParse(p);if(!e.success){g(e.error.issues[0]?.message??`Configuration must be valid JSON`);return}g(void 0),c.mutate({clusterName:n,addonName:r,addonVersion:l||void 0,serviceAccountRoleArn:d.trim()||void 0,configurationValues:p.trim()||void 0},{onSuccess:()=>s(!1)})},t[6]=r,t[7]=n,t[8]=p,t[9]=s,t[10]=d,t[11]=c,t[12]=l,t[13]=y):y=t[13];let b=y,x;t[14]===r?x=t[15]:(x=(0,$.jsx)(de,{children:(0,$.jsxs)(se,{children:[`Update `,r]})}),t[14]=r,t[15]=x);let S;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`update-addon-version`,children:`Version`})}),t[16]=S):S=t[16];let C=a.length===0,w;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(w=e=>u(e.target.value),t[17]=w):w=t[17];let T;t[18]===a?T=t[19]:(T=a.map(Ne),t[18]=a,t[19]=T);let D;t[20]!==C||t[21]!==T||t[22]!==l?(D=(0,$.jsxs)(J,{children:[S,(0,$.jsx)(`select`,{className:Ae,disabled:C,id:`update-addon-version`,onChange:w,value:l,children:T})]}),t[20]=C,t[21]=T,t[22]=l,t[23]=D):D=t[23];let O;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`update-addon-role`,children:`Service account IAM role ARN`})}),t[24]=O):O=t[24];let A;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(A=e=>f(e.target.value),t[25]=A):A=t[25];let j;t[26]===d?j=t[27]:(j=(0,$.jsxs)(J,{children:[O,(0,$.jsx)(I,{id:`update-addon-role`,onChange:A,placeholder:`arn:aws:iam::…:role/…`,value:d})]}),t[26]=d,t[27]=j);let M;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`update-addon-config`,children:`Configuration values (JSON)`})}),t[28]=M):M=t[28];let N=!!h,P;t[29]!==p||t[30]!==N?(P=(0,$.jsxs)(J,{children:[M,(0,$.jsx)(ye,{error:N,id:`update-addon-config`,onChange:m,rows:4,value:p})]}),t[29]=p,t[30]=N,t[31]=P):P=t[31];let F;t[32]!==j||t[33]!==P||t[34]!==D?(F=(0,$.jsxs)(`div`,{className:`space-y-4`,children:[D,j,P]}),t[32]=j,t[33]=P,t[34]=D,t[35]=F):F=t[35];let L;t[36]===h?L=t[37]:(L=h&&(0,$.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,children:h}),t[36]=h,t[37]=L);let R;t[38]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,$.jsx)(ue,{children:`Cancel`}),t[38]=R):R=t[38];let z;t[39]===b?z=t[40]:(z=e=>{e.preventDefault(),b()},t[39]=b,t[40]=z);let B=c.isPending?`Updating…`:`Update`,V;t[41]!==z||t[42]!==B||t[43]!==c.isPending?(V=(0,$.jsxs)(le,{children:[R,(0,$.jsx)(ce,{disabled:c.isPending,onClick:z,children:B})]}),t[41]=z,t[42]=B,t[43]=c.isPending,t[44]=V):V=t[44];let H;t[45]!==F||t[46]!==L||t[47]!==V||t[48]!==x?(H=(0,$.jsxs)(oe,{className:`max-h-[85vh] overflow-y-auto`,children:[x,F,L,V]}),t[45]=F,t[46]=L,t[47]=V,t[48]=x,t[49]=H):H=t[49];let U;return t[50]!==s||t[51]!==o||t[52]!==H?(U=(0,$.jsx)(fe,{onOpenChange:s,open:o,children:H}),t[50]=s,t[51]=o,t[52]=H,t[53]=U):U=t[53],U}function Ne(e){return(0,$.jsx)(`option`,{value:e,children:e},e)}function Pe(e){let t=(0,Z.c)(53),{clusterName:n,addonName:r,catalog:a,onDelete:o}=e,s;t[0]!==r||t[1]!==n?(s=W(n,r),t[0]=r,t[1]=n,t[2]=s):s=t[2];let c;t[3]===s?c=t[4]:(c={...s,refetchInterval:Ie},t[3]=s,t[4]=c);let{data:l}=i(c),[f,p]=(0,Q.useState)(!1),m=l?.addon,h=m?.health?.issues?.[0]?.message,g;t[5]!==r||t[6]!==a?(g=a.find(e=>e.addonName===r)?.addonVersions?.map(Fe).filter(Boolean)??[],t[5]=r,t[6]=a,t[7]=g):g=t[7];let v=g,y;t[8]===r?y=t[9]:(y=(0,$.jsx)(`span`,{children:r}),t[8]=r,t[9]=y);let b=m?.status,x;t[10]===b?x=t[11]:(x=_(b),t[10]=b,t[11]=x);let S=m?.status??`UNKNOWN`,C;t[12]!==x||t[13]!==S?(C=(0,$.jsx)(ve,{variant:x,children:S}),t[12]=x,t[13]=S,t[14]=C):C=t[14];let w;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(w=()=>p(!0),t[15]=w):w=t[15];let T;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,$.jsx)(d,{"aria-label":`Update add-on`,onClick:w,size:`icon`,variant:`ghost`,children:(0,$.jsx)(be,{className:`size-4`})}),t[16]=T):T=t[16];let E;t[17]!==r||t[18]!==o?(E=()=>o(r),t[17]=r,t[18]=o,t[19]=E):E=t[19];let D;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,$.jsx)(u,{className:`size-4`}),t[20]=D):D=t[20];let O;t[21]===E?O=t[22]:(O=(0,$.jsx)(d,{"aria-label":`Remove add-on`,onClick:E,size:`icon`,variant:`ghost`,children:D}),t[21]=E,t[22]=O);let k;t[23]!==O||t[24]!==C?(k=(0,$.jsxs)(`div`,{className:`flex items-center gap-1`,children:[C,T,O]}),t[23]=O,t[24]=C,t[25]=k):k=t[25];let A;t[26]!==k||t[27]!==y?(A=(0,$.jsx)(Y.Header,{children:(0,$.jsxs)(`div`,{className:`flex items-center justify-between`,children:[y,k]})}),t[26]=k,t[27]=y,t[28]=A):A=t[28];let j=m?.addonVersion,M;t[29]===j?M=t[30]:(M=(0,$.jsx)(X,{label:`Version`,value:j}),t[29]=j,t[30]=M);let N=m?.serviceAccountRoleArn,P;t[31]===N?P=t[32]:(P=(0,$.jsx)(X,{label:`IRSA role`,value:N}),t[31]=N,t[32]=P);let F;t[33]===h?F=t[34]:(F=h&&(0,$.jsx)(X,{label:`Issue`,value:(0,$.jsx)(`span`,{className:`text-destructive`,children:h})}),t[33]=h,t[34]=F);let I;t[35]!==M||t[36]!==P||t[37]!==F?(I=(0,$.jsxs)(Y.Content,{children:[M,P,F]}),t[35]=M,t[36]=P,t[37]=F,t[38]=I):I=t[38];let L=m?.addonVersion,R=m?.serviceAccountRoleArn,z=m?.configurationValues,B;t[39]!==L||t[40]!==R||t[41]!==z?(B={addonVersion:L,serviceAccountRoleArn:R,configurationValues:z},t[39]=L,t[40]=R,t[41]=z,t[42]=B):B=t[42];let V;t[43]!==r||t[44]!==n||t[45]!==f||t[46]!==B||t[47]!==v?(V=(0,$.jsx)(Me,{addonName:r,clusterName:n,current:B,onOpenChange:p,open:f,versions:v}),t[43]=r,t[44]=n,t[45]=f,t[46]=B,t[47]=v,t[48]=V):V=t[48];let H;return t[49]!==A||t[50]!==I||t[51]!==V?(H=(0,$.jsxs)(Y,{children:[A,I,V]}),t[49]=A,t[50]=I,t[51]=V,t[52]=H):H=t[52],H}function Fe(e){return e.addonVersion??``}function Ie(e){return Oe.has(e.state.data?.addon?.status??``)?ke:!1}function Le(e){let t=(0,Z.c)(31),{clusterName:n}=e,r;t[0]===n?r=t[1]:(r=U(n),t[0]=n,t[1]=r);let{data:o}=a(r),{data:s}=i(M),c=j(),[l,u]=(0,Q.useState)(!1),[f,p]=(0,Q.useState)(),m;t[2]===o.addons?m=t[3]:(m=o.addons??[],t[2]=o.addons,t[3]=m);let h=m,g;t[4]===s?.addons?g=t[5]:(g=s?.addons??[],t[4]=s?.addons,t[5]=g);let _=g,v;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Add-on manifests are staged; activation completes when the cluster reports the workload ready.`}),t[6]=v):v=t[6];let y;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,$.jsxs)(`div`,{className:`mb-4 flex items-center justify-between gap-4`,children:[v,(0,$.jsx)(d,{onClick:()=>u(!0),size:`sm`,children:`Add add-on`})]}),t[7]=y):y=t[7];let b;t[8]!==h||t[9]!==_||t[10]!==n?(b=h.length>0?(0,$.jsx)(`div`,{className:`space-y-4`,children:h.map(e=>(0,$.jsx)(Pe,{addonName:e,catalog:_,clusterName:n,onDelete:p},e))}):(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`No add-ons installed.`}),t[8]=h,t[9]=_,t[10]=n,t[11]=b):b=t[11];let x;t[12]!==h||t[13]!==_||t[14]!==n||t[15]!==l?(x=(0,$.jsx)(je,{catalog:_,clusterName:n,installed:h,onOpenChange:u,open:l}),t[12]=h,t[13]=_,t[14]=n,t[15]=l,t[16]=x):x=t[16];let S=`Remove add-on "${f??``}" from the cluster?`,C;t[17]!==n||t[18]!==c||t[19]!==f?(C=()=>{f&&c.mutate({clusterName:n,addonName:f},{onSuccess:()=>p(void 0)})},t[17]=n,t[18]=c,t[19]=f,t[20]=C):C=t[20];let w;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(w=e=>!e&&p(void 0),t[21]=w):w=t[21];let T=f!==void 0,E;t[22]!==c.isPending||t[23]!==T||t[24]!==S||t[25]!==C?(E=(0,$.jsx)(pe,{confirmLabel:`Remove`,description:S,isPending:c.isPending,onConfirm:C,onOpenChange:w,open:T,pendingLabel:`Removing…`,title:`Remove add-on`}),t[22]=c.isPending,t[23]=T,t[24]=S,t[25]=C,t[26]=E):E=t[26];let D;return t[27]!==E||t[28]!==b||t[29]!==x?(D=(0,$.jsxs)($.Fragment,{children:[y,b,x,E]}),t[27]=E,t[28]=b,t[29]=x,t[30]=D):D=t[30],D}function Re(e){let t=(0,Z.c)(6),{to:n,id:r}=e,i;t[0]===r?i=t[1]:(i={id:r},t[0]=r,t[1]=i);let a;return t[2]!==r||t[3]!==i||t[4]!==n?(a=(0,$.jsx)(o,{className:`font-mono text-primary underline-offset-2 hover:underline`,params:i,to:n,children:r}),t[2]=r,t[3]=i,t[4]=n,t[5]=a):a=t[5],a}function ze(e){let t=(0,Z.c)(45),{cluster:n}=e,r=n?.resourcesVpcConfig,i;t[0]===r?.subnetIds?i=t[1]:(i=r?.subnetIds??[],t[0]=r?.subnetIds,t[1]=i);let a=i,o;t[2]===r?.securityGroupIds?o=t[3]:(o=r?.securityGroupIds??[],t[2]=r?.securityGroupIds,t[3]=o);let s=o,c;t[4]===r?.publicAccessCidrs?c=t[5]:(c=r?.publicAccessCidrs??[],t[4]=r?.publicAccessCidrs,t[5]=c);let l=c,u;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,$.jsx)(Y.Header,{children:`VPC`}),t[6]=u):u=t[6];let d;t[7]===r?d=t[8]:(d=r?.vpcId?(0,$.jsx)(Re,{id:r.vpcId,to:`/ec2/describe-vpcs/$id`}):void 0,t[7]=r,t[8]=d);let f;t[9]===d?f=t[10]:(f=(0,$.jsx)(X,{label:`VPC`,value:d}),t[9]=d,t[10]=f);let p=n?.endpoint,m;t[11]===p?m=t[12]:(m=(0,$.jsx)(X,{label:`API server endpoint`,value:p}),t[11]=p,t[12]=m);let h=r?.endpointPublicAccess?`Enabled`:`Disabled`,g;t[13]===h?g=t[14]:(g=(0,$.jsx)(X,{label:`Public access`,value:h}),t[13]=h,t[14]=g);let _=r?.endpointPrivateAccess?`Enabled`:`Disabled`,v;t[15]===_?v=t[16]:(v=(0,$.jsx)(X,{label:`Private access`,value:_}),t[15]=_,t[16]=v);let y;t[17]!==l||t[18]!==r?.endpointPublicAccess?(y=r?.endpointPublicAccess&&(0,$.jsx)(X,{label:`Public access CIDRs`,value:l.length>0?(0,$.jsx)(`div`,{className:`space-y-1 font-mono text-xs`,children:l.map(He)}):`Any (0.0.0.0/0)`}),t[17]=l,t[18]=r?.endpointPublicAccess,t[19]=y):y=t[19];let b;t[20]!==g||t[21]!==v||t[22]!==y||t[23]!==f||t[24]!==m?(b=(0,$.jsxs)(Y,{children:[u,(0,$.jsxs)(Y.Content,{children:[f,m,g,v,y]})]}),t[20]=g,t[21]=v,t[22]=y,t[23]=f,t[24]=m,t[25]=b):b=t[25];let x;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,$.jsx)(Y.Header,{children:`Subnets`}),t[26]=x):x=t[26];let S;t[27]===a?S=t[28]:(S=(0,$.jsxs)(Y,{children:[x,(0,$.jsx)(Y.Content,{children:a.length>0?(0,$.jsx)(`div`,{className:`space-y-1`,children:a.map(Ve)}):(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`No subnets.`})})]}),t[27]=a,t[28]=S);let C;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,$.jsx)(Y.Header,{children:`Security groups`}),t[29]=C):C=t[29];let w;t[30]===r?w=t[31]:(w=r?.clusterSecurityGroupId?(0,$.jsx)(Re,{id:r.clusterSecurityGroupId,to:`/ec2/describe-security-groups/$id`}):void 0,t[30]=r,t[31]=w);let T;t[32]===w?T=t[33]:(T=(0,$.jsx)(X,{label:`Cluster security group`,value:w}),t[32]=w,t[33]=T);let E;t[34]===s?E=t[35]:(E=s.length>0?(0,$.jsx)(`div`,{className:`space-y-1`,children:s.map(Be)}):`—`,t[34]=s,t[35]=E);let D;t[36]===E?D=t[37]:(D=(0,$.jsx)(X,{label:`Additional security groups`,value:E}),t[36]=E,t[37]=D);let O;t[38]!==T||t[39]!==D?(O=(0,$.jsxs)(Y,{children:[C,(0,$.jsxs)(Y.Content,{children:[T,D]})]}),t[38]=T,t[39]=D,t[40]=O):O=t[40];let k;return t[41]!==b||t[42]!==S||t[43]!==O?(k=(0,$.jsxs)($.Fragment,{children:[b,S,O]}),t[41]=b,t[42]=S,t[43]=O,t[44]=k):k=t[44],k}function Be(e){return(0,$.jsx)(Re,{id:e,to:`/ec2/describe-security-groups/$id`},e)}function Ve(e){return(0,$.jsx)(Re,{id:e,to:`/ec2/describe-subnets/$id`},e)}function He(e){return(0,$.jsx)(`div`,{children:e},e)}function Ue(e){let t=(0,Z.c)(50),{clusterName:n,nodegroupName:r,current:i,open:a,onOpenChange:o}=e,s=f(),[c,l]=(0,Q.useState)(i.minSize??0),[u,d]=(0,Q.useState)(i.desiredSize??0),[p,m]=(0,Q.useState)(i.maxSize??0),[h,g]=(0,Q.useState)(),_,v;t[0]!==i.desiredSize||t[1]!==i.maxSize||t[2]!==i.minSize||t[3]!==a?(_=()=>{a&&(l(i.minSize??0),d(i.desiredSize??0),m(i.maxSize??0),g(void 0))},v=[a,i.minSize,i.desiredSize,i.maxSize],t[0]=i.desiredSize,t[1]=i.maxSize,t[2]=i.minSize,t[3]=a,t[4]=_,t[5]=v):(_=t[4],v=t[5]),(0,Q.useEffect)(_,v);let y;t[6]!==n||t[7]!==u||t[8]!==p||t[9]!==c||t[10]!==r||t[11]!==o||t[12]!==s?(y=()=>{if(!(c<=u&&u<=p)){g(`Sizes must satisfy min ≤ desired ≤ max`);return}s.mutate({clusterName:n,nodegroupName:r,minSize:c,desiredSize:u,maxSize:p},{onSuccess:()=>o(!1)})},t[6]=n,t[7]=u,t[8]=p,t[9]=c,t[10]=r,t[11]=o,t[12]=s,t[13]=y):y=t[13];let b=y,x;t[14]===r?x=t[15]:(x=(0,$.jsx)(de,{children:(0,$.jsxs)(se,{children:[`Scale `,r]})}),t[14]=r,t[15]=x);let S;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`scale-min`,children:`Min`})}),t[16]=S):S=t[16];let C;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(C=e=>l(Number(e.target.value)),t[17]=C):C=t[17];let w;t[18]===c?w=t[19]:(w=(0,$.jsxs)(J,{children:[S,(0,$.jsx)(I,{id:`scale-min`,onChange:C,type:`number`,value:c})]}),t[18]=c,t[19]=w);let T;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`scale-desired`,children:`Desired`})}),t[20]=T):T=t[20];let E;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(E=e=>d(Number(e.target.value)),t[21]=E):E=t[21];let D;t[22]===u?D=t[23]:(D=(0,$.jsxs)(J,{children:[T,(0,$.jsx)(I,{id:`scale-desired`,onChange:E,type:`number`,value:u})]}),t[22]=u,t[23]=D);let O;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`scale-max`,children:`Max`})}),t[24]=O):O=t[24];let k;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(k=e=>m(Number(e.target.value)),t[25]=k):k=t[25];let A;t[26]===p?A=t[27]:(A=(0,$.jsxs)(J,{children:[O,(0,$.jsx)(I,{id:`scale-max`,onChange:k,type:`number`,value:p})]}),t[26]=p,t[27]=A);let j;t[28]!==D||t[29]!==A||t[30]!==w?(j=(0,$.jsxs)(`div`,{className:`grid grid-cols-3 gap-3`,children:[w,D,A]}),t[28]=D,t[29]=A,t[30]=w,t[31]=j):j=t[31];let M;t[32]===h?M=t[33]:(M=h&&(0,$.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,children:h}),t[32]=h,t[33]=M);let N;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,$.jsx)(ue,{children:`Cancel`}),t[34]=N):N=t[34];let P;t[35]===b?P=t[36]:(P=e=>{e.preventDefault(),b()},t[35]=b,t[36]=P);let F=s.isPending?`Scaling…`:`Scale`,L;t[37]!==s.isPending||t[38]!==P||t[39]!==F?(L=(0,$.jsxs)(le,{children:[N,(0,$.jsx)(ce,{disabled:s.isPending,onClick:P,children:F})]}),t[37]=s.isPending,t[38]=P,t[39]=F,t[40]=L):L=t[40];let R;t[41]!==j||t[42]!==M||t[43]!==L||t[44]!==x?(R=(0,$.jsxs)(oe,{children:[x,j,M,L]}),t[41]=j,t[42]=M,t[43]=L,t[44]=x,t[45]=R):R=t[45];let z;return t[46]!==o||t[47]!==a||t[48]!==R?(z=(0,$.jsx)(fe,{onOpenChange:o,open:a,children:R}),t[46]=o,t[47]=a,t[48]=R,t[49]=z):z=t[49],z}function We(e){let t=(0,Z.c)(64),{clusterName:n,clusterVersion:r,nodegroupName:a,onDelete:o}=e,s;t[0]!==n||t[1]!==a?(s=F(n,a),t[0]=n,t[1]=a,t[2]=s):s=t[2];let{data:c}=i(s),l=m(),f=c?.nodegroup,p=f?.scalingConfig,[h,g]=(0,Q.useState)(!1),[_,v]=(0,Q.useState)(!1),y=!!r&&!!f?.version&&f.version!==r,b;t[3]===a?b=t[4]:(b=(0,$.jsx)(`span`,{children:a}),t[3]=a,t[4]=b);let x;t[5]===y?x=t[6]:(x=y&&(0,$.jsx)(d,{"aria-label":`Update node group version`,onClick:()=>v(!0),size:`icon`,variant:`ghost`,children:(0,$.jsx)(be,{className:`size-4`})}),t[5]=y,t[6]=x);let S;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(S=()=>g(!0),t[7]=S):S=t[7];let C;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,$.jsx)(d,{"aria-label":`Scale node group`,onClick:S,size:`icon`,variant:`ghost`,children:(0,$.jsx)(xe,{className:`size-4`})}),t[8]=C):C=t[8];let w;t[9]!==a||t[10]!==o?(w=()=>o(a),t[9]=a,t[10]=o,t[11]=w):w=t[11];let T;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,$.jsx)(u,{className:`size-4`}),t[12]=T):T=t[12];let E;t[13]===w?E=t[14]:(E=(0,$.jsx)(d,{"aria-label":`Delete node group`,onClick:w,size:`icon`,variant:`ghost`,children:T}),t[13]=w,t[14]=E);let D;t[15]!==x||t[16]!==E?(D=(0,$.jsxs)(`div`,{className:`flex items-center gap-1`,children:[x,C,E]}),t[15]=x,t[16]=E,t[17]=D):D=t[17];let O;t[18]!==b||t[19]!==D?(O=(0,$.jsx)(Y.Header,{children:(0,$.jsxs)(`div`,{className:`flex items-center justify-between`,children:[b,D]})}),t[18]=b,t[19]=D,t[20]=O):O=t[20];let k=f?.status,A;t[21]===k?A=t[22]:(A=(0,$.jsx)(X,{label:`Status`,value:k}),t[21]=k,t[22]=A);let j=y?`${f?.version} (cluster on ${r})`:f?.version,M;t[23]===j?M=t[24]:(M=(0,$.jsx)(X,{label:`Kubernetes version`,value:j}),t[23]=j,t[24]=M);let N;t[25]===f?.instanceTypes?N=t[26]:(N=f?.instanceTypes?.join(`, `),t[25]=f?.instanceTypes,t[26]=N);let P;t[27]===N?P=t[28]:(P=(0,$.jsx)(X,{label:`Instance types`,value:N}),t[27]=N,t[28]=P);let I=f?.amiType,L;t[29]===I?L=t[30]:(L=(0,$.jsx)(X,{label:`AMI type`,value:I}),t[29]=I,t[30]=L);let R=f?.capacityType,z;t[31]===R?z=t[32]:(z=(0,$.jsx)(X,{label:`Capacity type`,value:R}),t[31]=R,t[32]=z);let B=p?`${p.minSize} / ${p.desiredSize} / ${p.maxSize}`:void 0,V;t[33]===B?V=t[34]:(V=(0,$.jsx)(X,{label:`Scaling (min / desired / max)`,value:B}),t[33]=B,t[34]=V);let H;t[35]!==A||t[36]!==M||t[37]!==P||t[38]!==L||t[39]!==z||t[40]!==V?(H=(0,$.jsxs)(Y.Content,{children:[A,M,P,L,z,V]}),t[35]=A,t[36]=M,t[37]=P,t[38]=L,t[39]=z,t[40]=V,t[41]=H):H=t[41];let U;t[42]===p?U=t[43]:(U=p??{},t[42]=p,t[43]=U);let W;t[44]!==n||t[45]!==a||t[46]!==h||t[47]!==U?(W=(0,$.jsx)(Ue,{clusterName:n,current:U,nodegroupName:a,onOpenChange:g,open:h}),t[44]=n,t[45]=a,t[46]=h,t[47]=U,t[48]=W):W=t[48];let ee=`Update node group "${a}" from ${f?.version} to ${r}? Nodes are replaced in a rolling update.`,G;t[49]!==n||t[50]!==r||t[51]!==a||t[52]!==l?(G=()=>l.mutate({clusterName:n,nodegroupName:a,version:r},{onSuccess:()=>v(!1)}),t[49]=n,t[50]=r,t[51]=a,t[52]=l,t[53]=G):G=t[53];let K;t[54]!==_||t[55]!==ee||t[56]!==G||t[57]!==l.isPending?(K=(0,$.jsx)(pe,{confirmLabel:`Update`,description:ee,isPending:l.isPending,onConfirm:G,onOpenChange:v,open:_,title:`Update node group version`}),t[54]=_,t[55]=ee,t[56]=G,t[57]=l.isPending,t[58]=K):K=t[58];let te;return t[59]!==O||t[60]!==H||t[61]!==W||t[62]!==K?(te=(0,$.jsxs)(Y,{children:[O,H,W,K]}),t[59]=O,t[60]=H,t[61]=W,t[62]=K,t[63]=te):te=t[63],te}function Ge({clusterName:e,vpcId:t,open:n,onOpenChange:r}){let{data:a}=i(ee),{data:o}=i(z),s=h(),c=a?.Roles??[],l=(o?.Subnets??[]).filter(e=>e.VpcId===t),{formState:{errors:u},handleSubmit:d,register:f,reset:p,setValue:m,watch:g}=K({resolver:ne(v),defaultValues:{nodegroupName:``,nodeRole:``,subnetIds:[],instanceTypes:`t3.medium`,amiType:`AL2_x86_64`,capacityType:`ON_DEMAND`,diskSize:20,minSize:1,desiredSize:2,maxSize:3}}),_=g(`subnetIds`),y=e=>{m(`subnetIds`,_.includes(e)?_.filter(t=>t!==e):[..._,e],{shouldValidate:!0})},x=async t=>{await s.mutateAsync({clusterName:e,nodegroupName:t.nodegroupName,nodeRole:t.nodeRole,subnetIds:t.subnetIds,instanceTypes:t.instanceTypes.split(`,`).map(e=>e.trim()).filter(Boolean),amiType:t.amiType,capacityType:t.capacityType,diskSize:t.diskSize,minSize:t.minSize,desiredSize:t.desiredSize,maxSize:t.maxSize}),p(),r(!1)};return(0,$.jsx)(fe,{onOpenChange:r,open:n,children:(0,$.jsxs)(oe,{className:`max-h-[85vh] overflow-y-auto`,children:[(0,$.jsx)(de,{children:(0,$.jsx)(se,{children:`Add node group`})}),(0,$.jsxs)(`form`,{className:`space-y-4`,id:`add-nodegroup-form`,children:[(0,$.jsxs)(J,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ng-name`,children:`Name`})}),(0,$.jsx)(I,{"aria-invalid":!!u.nodegroupName,id:`ng-name`,placeholder:`my-nodegroup`,...f(`nodegroupName`)}),(0,$.jsx)(ae,{errors:[u.nodegroupName]})]}),(0,$.jsxs)(J,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ng-role`,children:`Node IAM role`})}),(0,$.jsxs)(`select`,{"aria-invalid":!!u.nodeRole,className:`h-7 w-full rounded-md border border-input bg-input/20 px-2 text-sm`,id:`ng-role`,...f(`nodeRole`),children:[(0,$.jsx)(`option`,{value:``,children:`Select role`}),c.map(e=>(0,$.jsx)(`option`,{value:e.Arn??``,children:e.RoleName},e.Arn))]}),(0,$.jsx)(ae,{errors:[u.nodeRole]})]}),(0,$.jsxs)(J,{children:[(0,$.jsx)(q,{children:`Subnets`}),l.length===0?(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No subnets in the cluster VPC.`}):(0,$.jsx)(`div`,{className:`space-y-1`,children:l.map(e=>(0,$.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,$.jsx)(`input`,{"aria-label":`Subnet ${e.SubnetId}`,checked:_.includes(e.SubnetId??``),onChange:()=>y(e.SubnetId??``),type:`checkbox`}),(0,$.jsxs)(`span`,{className:`font-mono`,children:[e.SubnetId,` · `,e.CidrBlock]})]},e.SubnetId))}),(0,$.jsx)(ae,{errors:[u.subnetIds]})]}),(0,$.jsxs)(J,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ng-instance-types`,children:`Instance types`})}),(0,$.jsx)(I,{id:`ng-instance-types`,placeholder:`t3.medium, t3.large`,...f(`instanceTypes`)}),(0,$.jsx)(ae,{errors:[u.instanceTypes]})]}),(0,$.jsxs)(`div`,{className:`grid grid-cols-2 gap-3`,children:[(0,$.jsxs)(J,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ng-ami`,children:`AMI type`})}),(0,$.jsx)(`select`,{className:`h-7 w-full rounded-md border border-input bg-input/20 px-2 text-sm`,id:`ng-ami`,...f(`amiType`),children:T.map(e=>(0,$.jsx)(`option`,{value:e,children:e},e))})]}),(0,$.jsxs)(J,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ng-capacity`,children:`Capacity type`})}),(0,$.jsx)(`select`,{className:`h-7 w-full rounded-md border border-input bg-input/20 px-2 text-sm`,id:`ng-capacity`,...f(`capacityType`),children:b.map(e=>(0,$.jsx)(`option`,{value:e,children:e},e))})]})]}),(0,$.jsxs)(`div`,{className:`grid grid-cols-4 gap-3`,children:[(0,$.jsxs)(J,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ng-disk`,children:`Disk (GB)`})}),(0,$.jsx)(I,{id:`ng-disk`,type:`number`,...f(`diskSize`,{valueAsNumber:!0})})]}),(0,$.jsxs)(J,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ng-min`,children:`Min`})}),(0,$.jsx)(I,{id:`ng-min`,type:`number`,...f(`minSize`,{valueAsNumber:!0})})]}),(0,$.jsxs)(J,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ng-desired`,children:`Desired`})}),(0,$.jsx)(I,{id:`ng-desired`,type:`number`,...f(`desiredSize`,{valueAsNumber:!0})})]}),(0,$.jsxs)(J,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ng-max`,children:`Max`})}),(0,$.jsx)(I,{id:`ng-max`,type:`number`,...f(`maxSize`,{valueAsNumber:!0})})]})]}),(0,$.jsx)(ae,{errors:[u.desiredSize]})]}),(0,$.jsxs)(le,{children:[(0,$.jsx)(ue,{children:`Cancel`}),(0,$.jsx)(ce,{disabled:s.isPending,onClick:e=>{e.preventDefault(),d(x)()},children:s.isPending?`Creating…`:`Create`})]})]})})}function Ke(e){let t=(0,Z.c)(27),{clusterName:n,clusterVersion:r,vpcId:i}=e,o;t[0]===n?o=t[1]:(o=L(n),t[0]=n,t[1]=o);let{data:s}=a(o),c=A(),[l,u]=(0,Q.useState)(!1),[f,p]=(0,Q.useState)(),m;t[2]===s.nodegroups?m=t[3]:(m=s.nodegroups??[],t[2]=s.nodegroups,t[3]=m);let h=m,g;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,$.jsx)(`div`,{className:`mb-4 flex justify-end`,children:(0,$.jsx)(d,{onClick:()=>u(!0),size:`sm`,children:`Add node group`})}),t[4]=g):g=t[4];let _;t[5]!==n||t[6]!==r||t[7]!==h?(_=h.length>0?(0,$.jsx)(`div`,{className:`space-y-4`,children:h.map(e=>(0,$.jsx)(We,{clusterName:n,clusterVersion:r,nodegroupName:e,onDelete:p},e))}):(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`No node groups.`}),t[5]=n,t[6]=r,t[7]=h,t[8]=_):_=t[8];let v;t[9]!==n||t[10]!==l||t[11]!==i?(v=(0,$.jsx)(Ge,{clusterName:n,onOpenChange:u,open:l,vpcId:i}),t[9]=n,t[10]=l,t[11]=i,t[12]=v):v=t[12];let y=`Delete node group "${f??``}"? This terminates its nodes.`,b;t[13]!==n||t[14]!==c||t[15]!==f?(b=()=>{f&&c.mutate({clusterName:n,nodegroupName:f},{onSuccess:()=>p(void 0)})},t[13]=n,t[14]=c,t[15]=f,t[16]=b):b=t[16];let x;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(x=e=>!e&&p(void 0),t[17]=x):x=t[17];let S=f!==void 0,C;t[18]!==c.isPending||t[19]!==y||t[20]!==b||t[21]!==S?(C=(0,$.jsx)(pe,{description:y,isPending:c.isPending,onConfirm:b,onOpenChange:x,open:S,title:`Delete node group`}),t[18]=c.isPending,t[19]=y,t[20]=b,t[21]=S,t[22]=C):C=t[22];let w;return t[23]!==C||t[24]!==_||t[25]!==v?(w=(0,$.jsxs)($.Fragment,{children:[g,_,v,C]}),t[23]=C,t[24]=_,t[25]=v,t[26]=w):w=t[26],w}var qe=`ap-southeast-2`;function Je(e){switch(e??``){case`ACTIVE`:return`default`;case`FAILED`:return`destructive`;default:return`secondary`}}function Ye(e){let t=(0,Z.c)(89),{clusterName:n}=e,r=N(),[i,o]=(0,Q.useState)(!1),f;t[0]===n?f=t[1]:(f=V(n),t[0]=n,t[1]=f);let{data:p}=a(f),m=g(),h=p.cluster,_;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(_={type:`bin`,value:`aws eks update-kubeconfig`},t[2]=_):_=t[2];let v;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(v={type:`flag`,value:` --name `},t[3]=v):v=t[3];let y;t[4]===n?y=t[5]:(y={type:`value`,value:n},t[4]=n,t[5]=y);let b;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(b={type:`flag`,value:` --region `},t[6]=b):b=t[6];let x;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(x={type:`value`,value:qe},t[7]=x):x=t[7];let S;t[8]===y?S=t[9]:(S={label:`Configure kubectl`,parts:[_,v,y,b,x]},t[8]=y,t[9]=S);let C;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(C={label:`Verify access`,parts:[{type:`bin`,value:`kubectl get nodes`}]},t[10]=C):C=t[10];let w;t[11]===S?w=t[12]:(w=[S,C],t[11]=S,t[12]=w);let T=w,E;t[13]!==n||t[14]!==m||t[15]!==r?(E=function(){m.mutate(n,{onSuccess:()=>{r({to:`/eks/list-clusters`})}})},t[13]=n,t[14]=m,t[15]=r,t[16]=E):E=t[16];let D=E,O;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,$.jsx)(c,{to:`/eks/list-clusters`,children:`Clusters`}),t[17]=O):O=t[17];let k;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(k=()=>o(!0),t[18]=k):k=t[18];let A;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,$.jsxs)(d,{onClick:k,size:`sm`,variant:`destructive`,children:[(0,$.jsx)(u,{className:`size-4`}),`Delete`]}),t[19]=A):A=t[19];let j=h?.status,M;t[20]===j?M=t[21]:(M=Je(j),t[20]=j,t[21]=M);let P=h?.status??`UNKNOWN`,F;t[22]!==M||t[23]!==P?(F=(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[A,(0,$.jsx)(ve,{variant:M,children:P})]}),t[22]=M,t[23]=P,t[24]=F):F=t[24];let I;t[25]!==n||t[26]!==F?(I=(0,$.jsx)(ie,{actions:F,subtitle:`Cluster Details`,title:n}),t[25]=n,t[26]=F,t[27]=I):I=t[27];let L;t[28]!==m.error||t[29]!==m.isError?(L=m.isError&&(0,$.jsx)(re,{error:m.error instanceof Error?m.error:void 0,msg:`Failed to delete cluster.`}),t[28]=m.error,t[29]=m.isError,t[30]=L):L=t[30];let R;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,$.jsxs)(he,{children:[(0,$.jsx)(me,{value:`overview`,children:`Overview`}),(0,$.jsx)(me,{value:`compute`,children:`Compute`}),(0,$.jsx)(me,{value:`addons`,children:`Add-ons`}),(0,$.jsx)(me,{value:`access`,children:`Access`}),(0,$.jsx)(me,{value:`networking`,children:`Networking`}),(0,$.jsx)(me,{value:`connect`,children:`Connect`})]}),t[31]=R):R=t[31];let z;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,$.jsx)(Y.Header,{children:`Cluster`}),t[32]=z):z=t[32];let B=h?.arn,H;t[33]===B?H=t[34]:(H=(0,$.jsx)(X,{label:`ARN`,value:B}),t[33]=B,t[34]=H);let U=h?.status,W;t[35]===U?W=t[36]:(W=(0,$.jsx)(X,{label:`Status`,value:U}),t[35]=U,t[36]=W);let ee=h?.version,G;t[37]===ee?G=t[38]:(G=(0,$.jsx)(X,{label:`Kubernetes version`,value:ee}),t[37]=ee,t[38]=G);let K=h?.platformVersion,te;t[39]===K?te=t[40]:(te=(0,$.jsx)(X,{label:`Platform version`,value:K}),t[39]=K,t[40]=te);let ne=h?.endpoint,q;t[41]===ne?q=t[42]:(q=(0,$.jsx)(X,{label:`Endpoint`,value:ne}),t[41]=ne,t[42]=q);let ae=h?.identity?.oidc?.issuer,J;t[43]===ae?J=t[44]:(J=(0,$.jsx)(X,{label:`OIDC issuer`,value:ae}),t[43]=ae,t[44]=J);let oe=h?.resourcesVpcConfig?.vpcId,se;t[45]===oe?se=t[46]:(se=(0,$.jsx)(X,{label:`VPC`,value:oe}),t[45]=oe,t[46]=se);let ce=h?.createdAt,le;t[47]===ce?le=t[48]:(le=s(ce),t[47]=ce,t[48]=le);let ue;t[49]===le?ue=t[50]:(ue=(0,$.jsx)(X,{label:`Created at`,value:le}),t[49]=le,t[50]=ue);let de;t[51]!==H||t[52]!==W||t[53]!==G||t[54]!==te||t[55]!==q||t[56]!==J||t[57]!==se||t[58]!==ue?(de=(0,$.jsx)(ge,{value:`overview`,children:(0,$.jsxs)(Y,{children:[z,(0,$.jsxs)(Y.Content,{children:[H,W,G,te,q,J,se,ue]})]})}),t[51]=H,t[52]=W,t[53]=G,t[54]=te,t[55]=q,t[56]=J,t[57]=se,t[58]=ue,t[59]=de):de=t[59];let fe=h?.version,ye=h?.resourcesVpcConfig?.vpcId,be;t[60]!==n||t[61]!==fe||t[62]!==ye?(be=(0,$.jsx)(ge,{value:`compute`,children:(0,$.jsx)(Ke,{clusterName:n,clusterVersion:fe,vpcId:ye})}),t[60]=n,t[61]=fe,t[62]=ye,t[63]=be):be=t[63];let xe;t[64]===n?xe=t[65]:(xe=(0,$.jsx)(ge,{value:`addons`,children:(0,$.jsx)(Le,{clusterName:n})}),t[64]=n,t[65]=xe);let Se;t[66]===n?Se=t[67]:(Se=(0,$.jsx)(ge,{value:`access`,children:(0,$.jsx)(De,{clusterName:n})}),t[66]=n,t[67]=Se);let Ce;t[68]===h?Ce=t[69]:(Ce=(0,$.jsx)(ge,{value:`networking`,children:(0,$.jsx)(ze,{cluster:h})}),t[68]=h,t[69]=Ce);let we;t[70]===T?we=t[71]:(we=(0,$.jsx)(ge,{value:`connect`,children:(0,$.jsx)(l,{commands:T})}),t[70]=T,t[71]=we);let Te;t[72]!==de||t[73]!==be||t[74]!==xe||t[75]!==Se||t[76]!==Ce||t[77]!==we?(Te=(0,$.jsxs)(_e,{defaultValue:`overview`,children:[R,de,be,xe,Se,Ce,we]}),t[72]=de,t[73]=be,t[74]=xe,t[75]=Se,t[76]=Ce,t[77]=we,t[78]=Te):Te=t[78];let Ee=`This permanently deletes cluster "${n}" and its control plane. This cannot be undone.`,Oe;t[79]!==m.isPending||t[80]!==D||t[81]!==i||t[82]!==Ee?(Oe=(0,$.jsx)(pe,{description:Ee,isPending:m.isPending,onConfirm:D,onOpenChange:o,open:i,title:`Delete cluster`}),t[79]=m.isPending,t[80]=D,t[81]=i,t[82]=Ee,t[83]=Oe):Oe=t[83];let ke;return t[84]!==I||t[85]!==L||t[86]!==Te||t[87]!==Oe?(ke=(0,$.jsxs)($.Fragment,{children:[O,I,L,Te,Oe]}),t[84]=I,t[85]=L,t[86]=Te,t[87]=Oe,t[88]=ke):ke=t[88],ke}function Xe(){let e=(0,Z.c)(2),{clusterName:t}=G.useParams(),n;return e[0]===t?n=e[1]:(n=(0,$.jsx)(Ye,{clusterName:t}),e[0]=t,e[1]=n),n}export{Xe as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useQuery.js";import{t as a}from"./useSuspenseQuery.js";import{Ar as o}from"./awsClient.js";import{Bt as s}from"./auth.js";import{t as c}from"./back-link.js";import{t as l}from"./cli-command-panel.js";import{t as u}from"./trash-2.js";import{t as d}from"./button.js";import{C as f,S as p,T as m,_ as h,b as g,c as _,f as v,h as y,i as b,l as x,m as S,n as C,p as w,r as T,s as E,u as D,v as O,w as k,x as A,y as j}from"./eks.js";import{A as M,Br as N,D as P,F,Hn as I,I as L,Lr as R,Lt as z,M as B,N as V,O as H,j as U,k as W,st as ee,v as G}from"./index.js";import{i as K,n as te,t as ne}from"./zod.js";import{t as re}from"./error-banner.js";import{t as ie}from"./page-heading.js";import{a as q,r as ae,t as J}from"./field.js";import{i as oe,l as se,n as ce,o as le,r as ue,s as de,t as fe}from"./alert-dialog.js";import{t as pe}from"./delete-confirmation-dialog.js";import{n as Y,t as X}from"./detail-row.js";import{i as me,n as he,r as ge,t as _e}from"./tabs.js";import{t as ve}from"./badge.js";import{t as ye}from"./json-editor.js";var be=R(`circle-arrow-up`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 12-4-4-4 4`,key:`177agl`}],[`path`,{d:`M12 16V8`,key:`1sbj14`}]]),xe=R(`sliders-horizontal`,[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]),Z=r(),Q=t(n(),1),$=e();function Se(e){return e?.split(`/`).pop()??e??``}function Ce(e){let t=(0,Z.c)(55),{clusterName:n,principalArn:r,onDelete:a}=e,o;t[0]!==n||t[1]!==r?(o=H(n,r),t[0]=n,t[1]=r,t[2]=o):o=t[2];let{data:s}=i(o),c;t[3]!==n||t[4]!==r?(c=B(n,r),t[3]=n,t[4]=r,t[5]=c):c=t[5];let{data:l}=i(c),f=w(),m=p(),[h,g]=(0,Q.useState)(C[0].arn),_=s?.accessEntry,v;t[6]===l?.associatedAccessPolicies?v=t[7]:(v=l?.associatedAccessPolicies??[],t[6]=l?.associatedAccessPolicies,t[7]=v);let y=v,b;t[8]===r?b=t[9]:(b=(0,$.jsx)(`span`,{className:`truncate font-mono text-xs`,children:r}),t[8]=r,t[9]=b);let x;t[10]!==a||t[11]!==r?(x=()=>a(r),t[10]=a,t[11]=r,t[12]=x):x=t[12];let S;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,$.jsx)(u,{className:`size-4`}),t[13]=S):S=t[13];let T;t[14]===x?T=t[15]:(T=(0,$.jsx)(d,{onClick:x,size:`icon`,variant:`ghost`,children:S}),t[14]=x,t[15]=T);let E;t[16]!==b||t[17]!==T?(E=(0,$.jsx)(Y.Header,{children:(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[b,T]})}),t[16]=b,t[17]=T,t[18]=E):E=t[18];let D=_?.type,O;t[19]===D?O=t[20]:(O=(0,$.jsx)(X,{label:`Type`,value:D}),t[19]=D,t[20]=O);let k;t[21]===_?k=t[22]:(k=_?.kubernetesGroups?.length?_.kubernetesGroups.join(`, `):`—`,t[21]=_,t[22]=k);let A;t[23]===k?A=t[24]:(A=(0,$.jsx)(X,{label:`Kubernetes groups`,value:k}),t[23]=k,t[24]=A);let j;t[25]!==y||t[26]!==n||t[27]!==m||t[28]!==r?(j=y.length>0?(0,$.jsx)(`div`,{className:`space-y-1`,children:y.map(e=>(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,$.jsx)(`span`,{children:Se(e.policyArn)}),(0,$.jsx)(d,{onClick:()=>m.mutate({clusterName:n,principalArn:r,policyArn:e.policyArn??``}),size:`sm`,variant:`ghost`,children:`Remove`})]},e.policyArn))}):`—`,t[25]=y,t[26]=n,t[27]=m,t[28]=r,t[29]=j):j=t[29];let M;t[30]===j?M=t[31]:(M=(0,$.jsx)(X,{label:`Access policies`,value:j}),t[30]=j,t[31]=M);let N;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(N=e=>g(e.target.value),t[32]=N):N=t[32];let P;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(P=C.map(we),t[33]=P):P=t[33];let F;t[34]===h?F=t[35]:(F=(0,$.jsx)(`select`,{"aria-label":`Access policy`,className:`h-7 flex-1 rounded-md border border-input bg-input/20 px-2 text-sm`,onChange:N,value:h,children:P}),t[34]=h,t[35]=F);let I;t[36]!==f||t[37]!==n||t[38]!==h||t[39]!==r?(I=()=>f.mutate({clusterName:n,principalArn:r,policyArn:h,accessScopeType:`cluster`}),t[36]=f,t[37]=n,t[38]=h,t[39]=r,t[40]=I):I=t[40];let L;t[41]!==f.isPending||t[42]!==I?(L=(0,$.jsx)(d,{disabled:f.isPending,onClick:I,size:`sm`,children:`Associate`}),t[41]=f.isPending,t[42]=I,t[43]=L):L=t[43];let R;t[44]!==F||t[45]!==L?(R=(0,$.jsxs)(`div`,{className:`flex items-center gap-2 pt-2`,children:[F,L]}),t[44]=F,t[45]=L,t[46]=R):R=t[46];let z;t[47]!==O||t[48]!==A||t[49]!==M||t[50]!==R?(z=(0,$.jsxs)(Y.Content,{children:[O,A,M,R]}),t[47]=O,t[48]=A,t[49]=M,t[50]=R,t[51]=z):z=t[51];let V;return t[52]!==z||t[53]!==E?(V=(0,$.jsxs)(Y,{children:[E,z]}),t[52]=z,t[53]=E,t[54]=V):V=t[54],V}function we(e){return(0,$.jsx)(`option`,{value:e.arn,children:e.name},e.arn)}function Te(e){let t=(0,Z.c)(41),{clusterName:n,open:r,onOpenChange:i}=e,a=S(),o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={resolver:ne(x),defaultValues:{principalArn:``,kubernetesGroups:``}},t[0]=o):o=t[0];let{formState:s,handleSubmit:c,register:l,reset:u}=K(o),{errors:d}=s,f;t[1]!==n||t[2]!==a||t[3]!==i||t[4]!==u?(f=async e=>{await a.mutateAsync({clusterName:n,principalArn:e.principalArn,kubernetesGroups:e.kubernetesGroups.split(`,`).map(Ee).filter(Boolean)}),u(),i(!1)},t[1]=n,t[2]=a,t[3]=i,t[4]=u,t[5]=f):f=t[5];let p=f,m;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,$.jsx)(de,{children:(0,$.jsx)(se,{children:`Add access entry`})}),t[6]=m):m=t[6];let h;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ae-principal`,children:`IAM principal ARN`})}),t[7]=h):h=t[7];let g=!!d.principalArn,_;t[8]===l?_=t[9]:(_=l(`principalArn`),t[8]=l,t[9]=_);let v;t[10]!==g||t[11]!==_?(v=(0,$.jsx)(I,{"aria-invalid":g,id:`ae-principal`,placeholder:`arn:aws:iam::000000000000:role/my-role`,..._}),t[10]=g,t[11]=_,t[12]=v):v=t[12];let y;t[13]===d.principalArn?y=t[14]:(y=(0,$.jsx)(ae,{errors:[d.principalArn]}),t[13]=d.principalArn,t[14]=y);let b;t[15]!==v||t[16]!==y?(b=(0,$.jsxs)(J,{children:[h,v,y]}),t[15]=v,t[16]=y,t[17]=b):b=t[17];let C;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ae-groups`,children:`Kubernetes groups`})}),t[18]=C):C=t[18];let w;t[19]===l?w=t[20]:(w=l(`kubernetesGroups`),t[19]=l,t[20]=w);let T;t[21]===w?T=t[22]:(T=(0,$.jsxs)(J,{children:[C,(0,$.jsx)(I,{id:`ae-groups`,placeholder:`system:masters`,...w})]}),t[21]=w,t[22]=T);let E;t[23]!==b||t[24]!==T?(E=(0,$.jsxs)(`form`,{className:`space-y-4`,id:`add-access-entry-form`,children:[b,T]}),t[23]=b,t[24]=T,t[25]=E):E=t[25];let D;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,$.jsx)(ue,{children:`Cancel`}),t[26]=D):D=t[26];let O;t[27]!==c||t[28]!==p?(O=e=>{e.preventDefault(),c(p)()},t[27]=c,t[28]=p,t[29]=O):O=t[29];let k=a.isPending?`Creating…`:`Create`,A;t[30]!==a.isPending||t[31]!==O||t[32]!==k?(A=(0,$.jsxs)(le,{children:[D,(0,$.jsx)(ce,{disabled:a.isPending,onClick:O,children:k})]}),t[30]=a.isPending,t[31]=O,t[32]=k,t[33]=A):A=t[33];let j;t[34]!==E||t[35]!==A?(j=(0,$.jsxs)(oe,{children:[m,E,A]}),t[34]=E,t[35]=A,t[36]=j):j=t[36];let M;return t[37]!==i||t[38]!==r||t[39]!==j?(M=(0,$.jsx)(fe,{onOpenChange:i,open:r,children:j}),t[37]=i,t[38]=r,t[39]=j,t[40]=M):M=t[40],M}function Ee(e){return e.trim()}function De(e){let t=(0,Z.c)(25),{clusterName:n}=e,r;t[0]===n?r=t[1]:(r=P(n),t[0]=n,t[1]=r);let{data:i}=a(r),o=O(),[s,c]=(0,Q.useState)(!1),[l,u]=(0,Q.useState)(),f;t[2]===i.accessEntries?f=t[3]:(f=i.accessEntries??[],t[2]=i.accessEntries,t[3]=f);let p=f,m;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,$.jsx)(`div`,{className:`mb-4 flex justify-end`,children:(0,$.jsx)(d,{onClick:()=>c(!0),size:`sm`,children:`Add access entry`})}),t[4]=m):m=t[4];let h;t[5]!==n||t[6]!==p?(h=p.length>0?(0,$.jsx)(`div`,{className:`space-y-4`,children:p.map(e=>(0,$.jsx)(Ce,{clusterName:n,onDelete:u,principalArn:e},e))}):(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`No access entries.`}),t[5]=n,t[6]=p,t[7]=h):h=t[7];let g;t[8]!==n||t[9]!==s?(g=(0,$.jsx)(Te,{clusterName:n,onOpenChange:c,open:s}),t[8]=n,t[9]=s,t[10]=g):g=t[10];let _=`Delete access entry for "${l??``}"?`,v;t[11]!==n||t[12]!==o||t[13]!==l?(v=()=>{l&&o.mutate({clusterName:n,principalArn:l},{onSuccess:()=>u(void 0)})},t[11]=n,t[12]=o,t[13]=l,t[14]=v):v=t[14];let y;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(y=e=>!e&&u(void 0),t[15]=y):y=t[15];let b=l!==void 0,x;t[16]!==o.isPending||t[17]!==_||t[18]!==v||t[19]!==b?(x=(0,$.jsx)(pe,{description:_,isPending:o.isPending,onConfirm:v,onOpenChange:y,open:b,title:`Delete access entry`}),t[16]=o.isPending,t[17]=_,t[18]=v,t[19]=b,t[20]=x):x=t[20];let S;return t[21]!==x||t[22]!==h||t[23]!==g?(S=(0,$.jsxs)($.Fragment,{children:[m,h,g,x]}),t[21]=x,t[22]=h,t[23]=g,t[24]=S):S=t[24],S}var Oe=new Set([`CREATING`,`UPDATING`,`DELETING`]),ke=5e3,Ae=`h-7 w-full rounded-md border border-input bg-input/20 px-2 text-sm`;function je({clusterName:e,catalog:t,installed:n,open:r,onOpenChange:i}){let a=y(),o=t.filter(e=>!n.includes(e.addonName??``)),{control:s,formState:{errors:c},handleSubmit:l,register:u,reset:d,setValue:f,watch:p}=K({resolver:ne(D),defaultValues:{addonName:``,addonVersion:``,serviceAccountRoleArn:``,configurationValues:``}}),m=p(`addonName`),h=p(`addonVersion`),g=t.find(e=>e.addonName===m)?.addonVersions??[],_=g.find(e=>e.addonVersion===h)?.requiresIamPermissions??!1,v=e=>{let n=t.find(t=>t.addonName===e)?.addonVersions?.[0]?.addonVersion??``;f(`addonName`,e,{shouldValidate:!0}),f(`addonVersion`,n,{shouldValidate:!0})},b=async t=>{await a.mutateAsync({clusterName:e,addonName:t.addonName,addonVersion:t.addonVersion||void 0,serviceAccountRoleArn:t.serviceAccountRoleArn.trim()||void 0,configurationValues:t.configurationValues.trim()||void 0}),d(),i(!1)};return(0,$.jsx)(fe,{onOpenChange:i,open:r,children:(0,$.jsxs)(oe,{className:`max-h-[85vh] overflow-y-auto`,children:[(0,$.jsx)(de,{children:(0,$.jsx)(se,{children:`Add add-on`})}),(0,$.jsxs)(`form`,{className:`space-y-4`,id:`add-addon-form`,children:[(0,$.jsxs)(J,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`addon-name`,children:`Add-on`})}),(0,$.jsxs)(`select`,{"aria-invalid":!!c.addonName,className:Ae,id:`addon-name`,onChange:e=>v(e.target.value),value:m,children:[(0,$.jsx)(`option`,{value:``,children:`Select add-on`}),o.map(e=>(0,$.jsx)(`option`,{value:e.addonName??``,children:e.addonName},e.addonName))]}),(0,$.jsx)(ae,{errors:[c.addonName]})]}),(0,$.jsxs)(J,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`addon-version`,children:`Version`})}),(0,$.jsx)(`select`,{"aria-invalid":!!c.addonVersion,className:Ae,disabled:g.length===0,id:`addon-version`,onChange:e=>f(`addonVersion`,e.target.value,{shouldValidate:!0}),value:h,children:g.map((e,t)=>(0,$.jsxs)(`option`,{value:e.addonVersion??``,children:[e.addonVersion,t===0?` (latest)`:``]},e.addonVersion))}),(0,$.jsx)(ae,{errors:[c.addonVersion]})]}),(0,$.jsxs)(J,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`addon-role`,children:`Service account IAM role ARN`})}),(0,$.jsx)(I,{id:`addon-role`,placeholder:`arn:aws:iam::…:role/…`,...u(`serviceAccountRoleArn`)}),_&&(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`This add-on needs IAM permissions — provide an IRSA role ARN.`})]}),(0,$.jsxs)(J,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`addon-config`,children:`Configuration values (JSON)`})}),(0,$.jsx)(te,{control:s,name:`configurationValues`,render:({field:{onBlur:e,onChange:t,ref:n,value:r}})=>(0,$.jsx)(ye,{error:!!c.configurationValues,id:`addon-config`,onBlur:e,onChange:t,placeholder:`{"replicaCount": 2}`,ref:n,rows:4,value:r})}),(0,$.jsx)(ae,{errors:[c.configurationValues]})]})]}),(0,$.jsxs)(le,{children:[(0,$.jsx)(ue,{children:`Cancel`}),(0,$.jsx)(ce,{disabled:a.isPending,onClick:e=>{e.preventDefault(),l(b)()},children:a.isPending?`Adding…`:`Add`})]})]})})}function Me(e){let t=(0,Z.c)(54),{clusterName:n,addonName:r,current:i,versions:a,open:o,onOpenChange:s}=e,c=k(),[l,u]=(0,Q.useState)(i.addonVersion??``),[d,f]=(0,Q.useState)(i.serviceAccountRoleArn??``),[p,m]=(0,Q.useState)(i.configurationValues??``),[h,g]=(0,Q.useState)(),_,v;t[0]!==i.addonVersion||t[1]!==i.configurationValues||t[2]!==i.serviceAccountRoleArn||t[3]!==o?(_=()=>{o&&(u(i.addonVersion??``),f(i.serviceAccountRoleArn??``),m(i.configurationValues??``),g(void 0))},v=[o,i.addonVersion,i.serviceAccountRoleArn,i.configurationValues],t[0]=i.addonVersion,t[1]=i.configurationValues,t[2]=i.serviceAccountRoleArn,t[3]=o,t[4]=_,t[5]=v):(_=t[4],v=t[5]),(0,Q.useEffect)(_,v);let y;t[6]!==r||t[7]!==n||t[8]!==p||t[9]!==s||t[10]!==d||t[11]!==c||t[12]!==l?(y=()=>{let e=E.safeParse(p);if(!e.success){g(e.error.issues[0]?.message??`Configuration must be valid JSON`);return}g(void 0),c.mutate({clusterName:n,addonName:r,addonVersion:l||void 0,serviceAccountRoleArn:d.trim()||void 0,configurationValues:p.trim()||void 0},{onSuccess:()=>s(!1)})},t[6]=r,t[7]=n,t[8]=p,t[9]=s,t[10]=d,t[11]=c,t[12]=l,t[13]=y):y=t[13];let b=y,x;t[14]===r?x=t[15]:(x=(0,$.jsx)(de,{children:(0,$.jsxs)(se,{children:[`Update `,r]})}),t[14]=r,t[15]=x);let S;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`update-addon-version`,children:`Version`})}),t[16]=S):S=t[16];let C=a.length===0,w;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(w=e=>u(e.target.value),t[17]=w):w=t[17];let T;t[18]===a?T=t[19]:(T=a.map(Ne),t[18]=a,t[19]=T);let D;t[20]!==C||t[21]!==T||t[22]!==l?(D=(0,$.jsxs)(J,{children:[S,(0,$.jsx)(`select`,{className:Ae,disabled:C,id:`update-addon-version`,onChange:w,value:l,children:T})]}),t[20]=C,t[21]=T,t[22]=l,t[23]=D):D=t[23];let O;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`update-addon-role`,children:`Service account IAM role ARN`})}),t[24]=O):O=t[24];let A;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(A=e=>f(e.target.value),t[25]=A):A=t[25];let j;t[26]===d?j=t[27]:(j=(0,$.jsxs)(J,{children:[O,(0,$.jsx)(I,{id:`update-addon-role`,onChange:A,placeholder:`arn:aws:iam::…:role/…`,value:d})]}),t[26]=d,t[27]=j);let M;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`update-addon-config`,children:`Configuration values (JSON)`})}),t[28]=M):M=t[28];let N=!!h,P;t[29]!==p||t[30]!==N?(P=(0,$.jsxs)(J,{children:[M,(0,$.jsx)(ye,{error:N,id:`update-addon-config`,onChange:m,rows:4,value:p})]}),t[29]=p,t[30]=N,t[31]=P):P=t[31];let F;t[32]!==j||t[33]!==P||t[34]!==D?(F=(0,$.jsxs)(`div`,{className:`space-y-4`,children:[D,j,P]}),t[32]=j,t[33]=P,t[34]=D,t[35]=F):F=t[35];let L;t[36]===h?L=t[37]:(L=h&&(0,$.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,children:h}),t[36]=h,t[37]=L);let R;t[38]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,$.jsx)(ue,{children:`Cancel`}),t[38]=R):R=t[38];let z;t[39]===b?z=t[40]:(z=e=>{e.preventDefault(),b()},t[39]=b,t[40]=z);let B=c.isPending?`Updating…`:`Update`,V;t[41]!==z||t[42]!==B||t[43]!==c.isPending?(V=(0,$.jsxs)(le,{children:[R,(0,$.jsx)(ce,{disabled:c.isPending,onClick:z,children:B})]}),t[41]=z,t[42]=B,t[43]=c.isPending,t[44]=V):V=t[44];let H;t[45]!==F||t[46]!==L||t[47]!==V||t[48]!==x?(H=(0,$.jsxs)(oe,{className:`max-h-[85vh] overflow-y-auto`,children:[x,F,L,V]}),t[45]=F,t[46]=L,t[47]=V,t[48]=x,t[49]=H):H=t[49];let U;return t[50]!==s||t[51]!==o||t[52]!==H?(U=(0,$.jsx)(fe,{onOpenChange:s,open:o,children:H}),t[50]=s,t[51]=o,t[52]=H,t[53]=U):U=t[53],U}function Ne(e){return(0,$.jsx)(`option`,{value:e,children:e},e)}function Pe(e){let t=(0,Z.c)(53),{clusterName:n,addonName:r,catalog:a,onDelete:o}=e,s;t[0]!==r||t[1]!==n?(s=W(n,r),t[0]=r,t[1]=n,t[2]=s):s=t[2];let c;t[3]===s?c=t[4]:(c={...s,refetchInterval:Ie},t[3]=s,t[4]=c);let{data:l}=i(c),[f,p]=(0,Q.useState)(!1),m=l?.addon,h=m?.health?.issues?.[0]?.message,g;t[5]!==r||t[6]!==a?(g=a.find(e=>e.addonName===r)?.addonVersions?.map(Fe).filter(Boolean)??[],t[5]=r,t[6]=a,t[7]=g):g=t[7];let v=g,y;t[8]===r?y=t[9]:(y=(0,$.jsx)(`span`,{children:r}),t[8]=r,t[9]=y);let b=m?.status,x;t[10]===b?x=t[11]:(x=_(b),t[10]=b,t[11]=x);let S=m?.status??`UNKNOWN`,C;t[12]!==x||t[13]!==S?(C=(0,$.jsx)(ve,{variant:x,children:S}),t[12]=x,t[13]=S,t[14]=C):C=t[14];let w;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(w=()=>p(!0),t[15]=w):w=t[15];let T;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,$.jsx)(d,{"aria-label":`Update add-on`,onClick:w,size:`icon`,variant:`ghost`,children:(0,$.jsx)(be,{className:`size-4`})}),t[16]=T):T=t[16];let E;t[17]!==r||t[18]!==o?(E=()=>o(r),t[17]=r,t[18]=o,t[19]=E):E=t[19];let D;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,$.jsx)(u,{className:`size-4`}),t[20]=D):D=t[20];let O;t[21]===E?O=t[22]:(O=(0,$.jsx)(d,{"aria-label":`Remove add-on`,onClick:E,size:`icon`,variant:`ghost`,children:D}),t[21]=E,t[22]=O);let k;t[23]!==O||t[24]!==C?(k=(0,$.jsxs)(`div`,{className:`flex items-center gap-1`,children:[C,T,O]}),t[23]=O,t[24]=C,t[25]=k):k=t[25];let A;t[26]!==k||t[27]!==y?(A=(0,$.jsx)(Y.Header,{children:(0,$.jsxs)(`div`,{className:`flex items-center justify-between`,children:[y,k]})}),t[26]=k,t[27]=y,t[28]=A):A=t[28];let j=m?.addonVersion,M;t[29]===j?M=t[30]:(M=(0,$.jsx)(X,{label:`Version`,value:j}),t[29]=j,t[30]=M);let N=m?.serviceAccountRoleArn,P;t[31]===N?P=t[32]:(P=(0,$.jsx)(X,{label:`IRSA role`,value:N}),t[31]=N,t[32]=P);let F;t[33]===h?F=t[34]:(F=h&&(0,$.jsx)(X,{label:`Issue`,value:(0,$.jsx)(`span`,{className:`text-destructive`,children:h})}),t[33]=h,t[34]=F);let I;t[35]!==M||t[36]!==P||t[37]!==F?(I=(0,$.jsxs)(Y.Content,{children:[M,P,F]}),t[35]=M,t[36]=P,t[37]=F,t[38]=I):I=t[38];let L=m?.addonVersion,R=m?.serviceAccountRoleArn,z=m?.configurationValues,B;t[39]!==L||t[40]!==R||t[41]!==z?(B={addonVersion:L,serviceAccountRoleArn:R,configurationValues:z},t[39]=L,t[40]=R,t[41]=z,t[42]=B):B=t[42];let V;t[43]!==r||t[44]!==n||t[45]!==f||t[46]!==B||t[47]!==v?(V=(0,$.jsx)(Me,{addonName:r,clusterName:n,current:B,onOpenChange:p,open:f,versions:v}),t[43]=r,t[44]=n,t[45]=f,t[46]=B,t[47]=v,t[48]=V):V=t[48];let H;return t[49]!==A||t[50]!==I||t[51]!==V?(H=(0,$.jsxs)(Y,{children:[A,I,V]}),t[49]=A,t[50]=I,t[51]=V,t[52]=H):H=t[52],H}function Fe(e){return e.addonVersion??``}function Ie(e){return Oe.has(e.state.data?.addon?.status??``)?ke:!1}function Le(e){let t=(0,Z.c)(31),{clusterName:n}=e,r;t[0]===n?r=t[1]:(r=U(n),t[0]=n,t[1]=r);let{data:o}=a(r),{data:s}=i(M),c=j(),[l,u]=(0,Q.useState)(!1),[f,p]=(0,Q.useState)(),m;t[2]===o.addons?m=t[3]:(m=o.addons??[],t[2]=o.addons,t[3]=m);let h=m,g;t[4]===s?.addons?g=t[5]:(g=s?.addons??[],t[4]=s?.addons,t[5]=g);let _=g,v;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Add-on manifests are staged; activation completes when the cluster reports the workload ready.`}),t[6]=v):v=t[6];let y;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,$.jsxs)(`div`,{className:`mb-4 flex items-center justify-between gap-4`,children:[v,(0,$.jsx)(d,{onClick:()=>u(!0),size:`sm`,children:`Add add-on`})]}),t[7]=y):y=t[7];let b;t[8]!==h||t[9]!==_||t[10]!==n?(b=h.length>0?(0,$.jsx)(`div`,{className:`space-y-4`,children:h.map(e=>(0,$.jsx)(Pe,{addonName:e,catalog:_,clusterName:n,onDelete:p},e))}):(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`No add-ons installed.`}),t[8]=h,t[9]=_,t[10]=n,t[11]=b):b=t[11];let x;t[12]!==h||t[13]!==_||t[14]!==n||t[15]!==l?(x=(0,$.jsx)(je,{catalog:_,clusterName:n,installed:h,onOpenChange:u,open:l}),t[12]=h,t[13]=_,t[14]=n,t[15]=l,t[16]=x):x=t[16];let S=`Remove add-on "${f??``}" from the cluster?`,C;t[17]!==n||t[18]!==c||t[19]!==f?(C=()=>{f&&c.mutate({clusterName:n,addonName:f},{onSuccess:()=>p(void 0)})},t[17]=n,t[18]=c,t[19]=f,t[20]=C):C=t[20];let w;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(w=e=>!e&&p(void 0),t[21]=w):w=t[21];let T=f!==void 0,E;t[22]!==c.isPending||t[23]!==T||t[24]!==S||t[25]!==C?(E=(0,$.jsx)(pe,{confirmLabel:`Remove`,description:S,isPending:c.isPending,onConfirm:C,onOpenChange:w,open:T,pendingLabel:`Removing…`,title:`Remove add-on`}),t[22]=c.isPending,t[23]=T,t[24]=S,t[25]=C,t[26]=E):E=t[26];let D;return t[27]!==E||t[28]!==b||t[29]!==x?(D=(0,$.jsxs)($.Fragment,{children:[y,b,x,E]}),t[27]=E,t[28]=b,t[29]=x,t[30]=D):D=t[30],D}function Re(e){let t=(0,Z.c)(6),{to:n,id:r}=e,i;t[0]===r?i=t[1]:(i={id:r},t[0]=r,t[1]=i);let a;return t[2]!==r||t[3]!==i||t[4]!==n?(a=(0,$.jsx)(o,{className:`font-mono text-primary underline-offset-2 hover:underline`,params:i,to:n,children:r}),t[2]=r,t[3]=i,t[4]=n,t[5]=a):a=t[5],a}function ze(e){let t=(0,Z.c)(45),{cluster:n}=e,r=n?.resourcesVpcConfig,i;t[0]===r?.subnetIds?i=t[1]:(i=r?.subnetIds??[],t[0]=r?.subnetIds,t[1]=i);let a=i,o;t[2]===r?.securityGroupIds?o=t[3]:(o=r?.securityGroupIds??[],t[2]=r?.securityGroupIds,t[3]=o);let s=o,c;t[4]===r?.publicAccessCidrs?c=t[5]:(c=r?.publicAccessCidrs??[],t[4]=r?.publicAccessCidrs,t[5]=c);let l=c,u;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,$.jsx)(Y.Header,{children:`VPC`}),t[6]=u):u=t[6];let d;t[7]===r?d=t[8]:(d=r?.vpcId?(0,$.jsx)(Re,{id:r.vpcId,to:`/ec2/describe-vpcs/$id`}):void 0,t[7]=r,t[8]=d);let f;t[9]===d?f=t[10]:(f=(0,$.jsx)(X,{label:`VPC`,value:d}),t[9]=d,t[10]=f);let p=n?.endpoint,m;t[11]===p?m=t[12]:(m=(0,$.jsx)(X,{label:`API server endpoint`,value:p}),t[11]=p,t[12]=m);let h=r?.endpointPublicAccess?`Enabled`:`Disabled`,g;t[13]===h?g=t[14]:(g=(0,$.jsx)(X,{label:`Public access`,value:h}),t[13]=h,t[14]=g);let _=r?.endpointPrivateAccess?`Enabled`:`Disabled`,v;t[15]===_?v=t[16]:(v=(0,$.jsx)(X,{label:`Private access`,value:_}),t[15]=_,t[16]=v);let y;t[17]!==l||t[18]!==r?.endpointPublicAccess?(y=r?.endpointPublicAccess&&(0,$.jsx)(X,{label:`Public access CIDRs`,value:l.length>0?(0,$.jsx)(`div`,{className:`space-y-1 font-mono text-xs`,children:l.map(He)}):`Any (0.0.0.0/0)`}),t[17]=l,t[18]=r?.endpointPublicAccess,t[19]=y):y=t[19];let b;t[20]!==g||t[21]!==v||t[22]!==y||t[23]!==f||t[24]!==m?(b=(0,$.jsxs)(Y,{children:[u,(0,$.jsxs)(Y.Content,{children:[f,m,g,v,y]})]}),t[20]=g,t[21]=v,t[22]=y,t[23]=f,t[24]=m,t[25]=b):b=t[25];let x;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,$.jsx)(Y.Header,{children:`Subnets`}),t[26]=x):x=t[26];let S;t[27]===a?S=t[28]:(S=(0,$.jsxs)(Y,{children:[x,(0,$.jsx)(Y.Content,{children:a.length>0?(0,$.jsx)(`div`,{className:`space-y-1`,children:a.map(Ve)}):(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`No subnets.`})})]}),t[27]=a,t[28]=S);let C;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,$.jsx)(Y.Header,{children:`Security groups`}),t[29]=C):C=t[29];let w;t[30]===r?w=t[31]:(w=r?.clusterSecurityGroupId?(0,$.jsx)(Re,{id:r.clusterSecurityGroupId,to:`/ec2/describe-security-groups/$id`}):void 0,t[30]=r,t[31]=w);let T;t[32]===w?T=t[33]:(T=(0,$.jsx)(X,{label:`Cluster security group`,value:w}),t[32]=w,t[33]=T);let E;t[34]===s?E=t[35]:(E=s.length>0?(0,$.jsx)(`div`,{className:`space-y-1`,children:s.map(Be)}):`—`,t[34]=s,t[35]=E);let D;t[36]===E?D=t[37]:(D=(0,$.jsx)(X,{label:`Additional security groups`,value:E}),t[36]=E,t[37]=D);let O;t[38]!==T||t[39]!==D?(O=(0,$.jsxs)(Y,{children:[C,(0,$.jsxs)(Y.Content,{children:[T,D]})]}),t[38]=T,t[39]=D,t[40]=O):O=t[40];let k;return t[41]!==b||t[42]!==S||t[43]!==O?(k=(0,$.jsxs)($.Fragment,{children:[b,S,O]}),t[41]=b,t[42]=S,t[43]=O,t[44]=k):k=t[44],k}function Be(e){return(0,$.jsx)(Re,{id:e,to:`/ec2/describe-security-groups/$id`},e)}function Ve(e){return(0,$.jsx)(Re,{id:e,to:`/ec2/describe-subnets/$id`},e)}function He(e){return(0,$.jsx)(`div`,{children:e},e)}function Ue(e){let t=(0,Z.c)(50),{clusterName:n,nodegroupName:r,current:i,open:a,onOpenChange:o}=e,s=f(),[c,l]=(0,Q.useState)(i.minSize??0),[u,d]=(0,Q.useState)(i.desiredSize??0),[p,m]=(0,Q.useState)(i.maxSize??0),[h,g]=(0,Q.useState)(),_,v;t[0]!==i.desiredSize||t[1]!==i.maxSize||t[2]!==i.minSize||t[3]!==a?(_=()=>{a&&(l(i.minSize??0),d(i.desiredSize??0),m(i.maxSize??0),g(void 0))},v=[a,i.minSize,i.desiredSize,i.maxSize],t[0]=i.desiredSize,t[1]=i.maxSize,t[2]=i.minSize,t[3]=a,t[4]=_,t[5]=v):(_=t[4],v=t[5]),(0,Q.useEffect)(_,v);let y;t[6]!==n||t[7]!==u||t[8]!==p||t[9]!==c||t[10]!==r||t[11]!==o||t[12]!==s?(y=()=>{if(!(c<=u&&u<=p)){g(`Sizes must satisfy min ≤ desired ≤ max`);return}s.mutate({clusterName:n,nodegroupName:r,minSize:c,desiredSize:u,maxSize:p},{onSuccess:()=>o(!1)})},t[6]=n,t[7]=u,t[8]=p,t[9]=c,t[10]=r,t[11]=o,t[12]=s,t[13]=y):y=t[13];let b=y,x;t[14]===r?x=t[15]:(x=(0,$.jsx)(de,{children:(0,$.jsxs)(se,{children:[`Scale `,r]})}),t[14]=r,t[15]=x);let S;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`scale-min`,children:`Min`})}),t[16]=S):S=t[16];let C;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(C=e=>l(Number(e.target.value)),t[17]=C):C=t[17];let w;t[18]===c?w=t[19]:(w=(0,$.jsxs)(J,{children:[S,(0,$.jsx)(I,{id:`scale-min`,onChange:C,type:`number`,value:c})]}),t[18]=c,t[19]=w);let T;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`scale-desired`,children:`Desired`})}),t[20]=T):T=t[20];let E;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(E=e=>d(Number(e.target.value)),t[21]=E):E=t[21];let D;t[22]===u?D=t[23]:(D=(0,$.jsxs)(J,{children:[T,(0,$.jsx)(I,{id:`scale-desired`,onChange:E,type:`number`,value:u})]}),t[22]=u,t[23]=D);let O;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`scale-max`,children:`Max`})}),t[24]=O):O=t[24];let k;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(k=e=>m(Number(e.target.value)),t[25]=k):k=t[25];let A;t[26]===p?A=t[27]:(A=(0,$.jsxs)(J,{children:[O,(0,$.jsx)(I,{id:`scale-max`,onChange:k,type:`number`,value:p})]}),t[26]=p,t[27]=A);let j;t[28]!==D||t[29]!==A||t[30]!==w?(j=(0,$.jsxs)(`div`,{className:`grid grid-cols-3 gap-3`,children:[w,D,A]}),t[28]=D,t[29]=A,t[30]=w,t[31]=j):j=t[31];let M;t[32]===h?M=t[33]:(M=h&&(0,$.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,children:h}),t[32]=h,t[33]=M);let N;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,$.jsx)(ue,{children:`Cancel`}),t[34]=N):N=t[34];let P;t[35]===b?P=t[36]:(P=e=>{e.preventDefault(),b()},t[35]=b,t[36]=P);let F=s.isPending?`Scaling…`:`Scale`,L;t[37]!==s.isPending||t[38]!==P||t[39]!==F?(L=(0,$.jsxs)(le,{children:[N,(0,$.jsx)(ce,{disabled:s.isPending,onClick:P,children:F})]}),t[37]=s.isPending,t[38]=P,t[39]=F,t[40]=L):L=t[40];let R;t[41]!==j||t[42]!==M||t[43]!==L||t[44]!==x?(R=(0,$.jsxs)(oe,{children:[x,j,M,L]}),t[41]=j,t[42]=M,t[43]=L,t[44]=x,t[45]=R):R=t[45];let z;return t[46]!==o||t[47]!==a||t[48]!==R?(z=(0,$.jsx)(fe,{onOpenChange:o,open:a,children:R}),t[46]=o,t[47]=a,t[48]=R,t[49]=z):z=t[49],z}function We(e){let t=(0,Z.c)(64),{clusterName:n,clusterVersion:r,nodegroupName:a,onDelete:o}=e,s;t[0]!==n||t[1]!==a?(s=F(n,a),t[0]=n,t[1]=a,t[2]=s):s=t[2];let{data:c}=i(s),l=m(),f=c?.nodegroup,p=f?.scalingConfig,[h,g]=(0,Q.useState)(!1),[_,v]=(0,Q.useState)(!1),y=!!r&&!!f?.version&&f.version!==r,b;t[3]===a?b=t[4]:(b=(0,$.jsx)(`span`,{children:a}),t[3]=a,t[4]=b);let x;t[5]===y?x=t[6]:(x=y&&(0,$.jsx)(d,{"aria-label":`Update node group version`,onClick:()=>v(!0),size:`icon`,variant:`ghost`,children:(0,$.jsx)(be,{className:`size-4`})}),t[5]=y,t[6]=x);let S;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(S=()=>g(!0),t[7]=S):S=t[7];let C;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,$.jsx)(d,{"aria-label":`Scale node group`,onClick:S,size:`icon`,variant:`ghost`,children:(0,$.jsx)(xe,{className:`size-4`})}),t[8]=C):C=t[8];let w;t[9]!==a||t[10]!==o?(w=()=>o(a),t[9]=a,t[10]=o,t[11]=w):w=t[11];let T;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,$.jsx)(u,{className:`size-4`}),t[12]=T):T=t[12];let E;t[13]===w?E=t[14]:(E=(0,$.jsx)(d,{"aria-label":`Delete node group`,onClick:w,size:`icon`,variant:`ghost`,children:T}),t[13]=w,t[14]=E);let D;t[15]!==x||t[16]!==E?(D=(0,$.jsxs)(`div`,{className:`flex items-center gap-1`,children:[x,C,E]}),t[15]=x,t[16]=E,t[17]=D):D=t[17];let O;t[18]!==b||t[19]!==D?(O=(0,$.jsx)(Y.Header,{children:(0,$.jsxs)(`div`,{className:`flex items-center justify-between`,children:[b,D]})}),t[18]=b,t[19]=D,t[20]=O):O=t[20];let k=f?.status,A;t[21]===k?A=t[22]:(A=(0,$.jsx)(X,{label:`Status`,value:k}),t[21]=k,t[22]=A);let j=y?`${f?.version} (cluster on ${r})`:f?.version,M;t[23]===j?M=t[24]:(M=(0,$.jsx)(X,{label:`Kubernetes version`,value:j}),t[23]=j,t[24]=M);let N;t[25]===f?.instanceTypes?N=t[26]:(N=f?.instanceTypes?.join(`, `),t[25]=f?.instanceTypes,t[26]=N);let P;t[27]===N?P=t[28]:(P=(0,$.jsx)(X,{label:`Instance types`,value:N}),t[27]=N,t[28]=P);let I=f?.amiType,L;t[29]===I?L=t[30]:(L=(0,$.jsx)(X,{label:`AMI type`,value:I}),t[29]=I,t[30]=L);let R=f?.capacityType,z;t[31]===R?z=t[32]:(z=(0,$.jsx)(X,{label:`Capacity type`,value:R}),t[31]=R,t[32]=z);let B=p?`${p.minSize} / ${p.desiredSize} / ${p.maxSize}`:void 0,V;t[33]===B?V=t[34]:(V=(0,$.jsx)(X,{label:`Scaling (min / desired / max)`,value:B}),t[33]=B,t[34]=V);let H;t[35]!==A||t[36]!==M||t[37]!==P||t[38]!==L||t[39]!==z||t[40]!==V?(H=(0,$.jsxs)(Y.Content,{children:[A,M,P,L,z,V]}),t[35]=A,t[36]=M,t[37]=P,t[38]=L,t[39]=z,t[40]=V,t[41]=H):H=t[41];let U;t[42]===p?U=t[43]:(U=p??{},t[42]=p,t[43]=U);let W;t[44]!==n||t[45]!==a||t[46]!==h||t[47]!==U?(W=(0,$.jsx)(Ue,{clusterName:n,current:U,nodegroupName:a,onOpenChange:g,open:h}),t[44]=n,t[45]=a,t[46]=h,t[47]=U,t[48]=W):W=t[48];let ee=`Update node group "${a}" from ${f?.version} to ${r}? Nodes are replaced in a rolling update.`,G;t[49]!==n||t[50]!==r||t[51]!==a||t[52]!==l?(G=()=>l.mutate({clusterName:n,nodegroupName:a,version:r},{onSuccess:()=>v(!1)}),t[49]=n,t[50]=r,t[51]=a,t[52]=l,t[53]=G):G=t[53];let K;t[54]!==_||t[55]!==ee||t[56]!==G||t[57]!==l.isPending?(K=(0,$.jsx)(pe,{confirmLabel:`Update`,description:ee,isPending:l.isPending,onConfirm:G,onOpenChange:v,open:_,title:`Update node group version`}),t[54]=_,t[55]=ee,t[56]=G,t[57]=l.isPending,t[58]=K):K=t[58];let te;return t[59]!==O||t[60]!==H||t[61]!==W||t[62]!==K?(te=(0,$.jsxs)(Y,{children:[O,H,W,K]}),t[59]=O,t[60]=H,t[61]=W,t[62]=K,t[63]=te):te=t[63],te}function Ge({clusterName:e,vpcId:t,open:n,onOpenChange:r}){let{data:a}=i(ee),{data:o}=i(z),s=h(),c=a?.Roles??[],l=(o?.Subnets??[]).filter(e=>e.VpcId===t),{formState:{errors:u},handleSubmit:d,register:f,reset:p,setValue:m,watch:g}=K({resolver:ne(v),defaultValues:{nodegroupName:``,nodeRole:``,subnetIds:[],instanceTypes:`t3.medium`,amiType:`AL2_x86_64`,capacityType:`ON_DEMAND`,diskSize:20,minSize:1,desiredSize:2,maxSize:3}}),_=g(`subnetIds`),y=e=>{m(`subnetIds`,_.includes(e)?_.filter(t=>t!==e):[..._,e],{shouldValidate:!0})},x=async t=>{await s.mutateAsync({clusterName:e,nodegroupName:t.nodegroupName,nodeRole:t.nodeRole,subnetIds:t.subnetIds,instanceTypes:t.instanceTypes.split(`,`).map(e=>e.trim()).filter(Boolean),amiType:t.amiType,capacityType:t.capacityType,diskSize:t.diskSize,minSize:t.minSize,desiredSize:t.desiredSize,maxSize:t.maxSize}),p(),r(!1)};return(0,$.jsx)(fe,{onOpenChange:r,open:n,children:(0,$.jsxs)(oe,{className:`max-h-[85vh] overflow-y-auto`,children:[(0,$.jsx)(de,{children:(0,$.jsx)(se,{children:`Add node group`})}),(0,$.jsxs)(`form`,{className:`space-y-4`,id:`add-nodegroup-form`,children:[(0,$.jsxs)(J,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ng-name`,children:`Name`})}),(0,$.jsx)(I,{"aria-invalid":!!u.nodegroupName,id:`ng-name`,placeholder:`my-nodegroup`,...f(`nodegroupName`)}),(0,$.jsx)(ae,{errors:[u.nodegroupName]})]}),(0,$.jsxs)(J,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ng-role`,children:`Node IAM role`})}),(0,$.jsxs)(`select`,{"aria-invalid":!!u.nodeRole,className:`h-7 w-full rounded-md border border-input bg-input/20 px-2 text-sm`,id:`ng-role`,...f(`nodeRole`),children:[(0,$.jsx)(`option`,{value:``,children:`Select role`}),c.map(e=>(0,$.jsx)(`option`,{value:e.Arn??``,children:e.RoleName},e.Arn))]}),(0,$.jsx)(ae,{errors:[u.nodeRole]})]}),(0,$.jsxs)(J,{children:[(0,$.jsx)(q,{children:`Subnets`}),l.length===0?(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`No subnets in the cluster VPC.`}):(0,$.jsx)(`div`,{className:`space-y-1`,children:l.map(e=>(0,$.jsxs)(`label`,{className:`flex items-center gap-2 text-xs`,children:[(0,$.jsx)(`input`,{"aria-label":`Subnet ${e.SubnetId}`,checked:_.includes(e.SubnetId??``),onChange:()=>y(e.SubnetId??``),type:`checkbox`}),(0,$.jsxs)(`span`,{className:`font-mono`,children:[e.SubnetId,` · `,e.CidrBlock]})]},e.SubnetId))}),(0,$.jsx)(ae,{errors:[u.subnetIds]})]}),(0,$.jsxs)(J,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ng-instance-types`,children:`Instance types`})}),(0,$.jsx)(I,{id:`ng-instance-types`,placeholder:`t3.medium, t3.large`,...f(`instanceTypes`)}),(0,$.jsx)(ae,{errors:[u.instanceTypes]})]}),(0,$.jsxs)(`div`,{className:`grid grid-cols-2 gap-3`,children:[(0,$.jsxs)(J,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ng-ami`,children:`AMI type`})}),(0,$.jsx)(`select`,{className:`h-7 w-full rounded-md border border-input bg-input/20 px-2 text-sm`,id:`ng-ami`,...f(`amiType`),children:T.map(e=>(0,$.jsx)(`option`,{value:e,children:e},e))})]}),(0,$.jsxs)(J,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ng-capacity`,children:`Capacity type`})}),(0,$.jsx)(`select`,{className:`h-7 w-full rounded-md border border-input bg-input/20 px-2 text-sm`,id:`ng-capacity`,...f(`capacityType`),children:b.map(e=>(0,$.jsx)(`option`,{value:e,children:e},e))})]})]}),(0,$.jsxs)(`div`,{className:`grid grid-cols-4 gap-3`,children:[(0,$.jsxs)(J,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ng-disk`,children:`Disk (GB)`})}),(0,$.jsx)(I,{id:`ng-disk`,type:`number`,...f(`diskSize`,{valueAsNumber:!0})})]}),(0,$.jsxs)(J,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ng-min`,children:`Min`})}),(0,$.jsx)(I,{id:`ng-min`,type:`number`,...f(`minSize`,{valueAsNumber:!0})})]}),(0,$.jsxs)(J,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ng-desired`,children:`Desired`})}),(0,$.jsx)(I,{id:`ng-desired`,type:`number`,...f(`desiredSize`,{valueAsNumber:!0})})]}),(0,$.jsxs)(J,{children:[(0,$.jsx)(q,{children:(0,$.jsx)(`label`,{htmlFor:`ng-max`,children:`Max`})}),(0,$.jsx)(I,{id:`ng-max`,type:`number`,...f(`maxSize`,{valueAsNumber:!0})})]})]}),(0,$.jsx)(ae,{errors:[u.desiredSize]})]}),(0,$.jsxs)(le,{children:[(0,$.jsx)(ue,{children:`Cancel`}),(0,$.jsx)(ce,{disabled:s.isPending,onClick:e=>{e.preventDefault(),d(x)()},children:s.isPending?`Creating…`:`Create`})]})]})})}function Ke(e){let t=(0,Z.c)(27),{clusterName:n,clusterVersion:r,vpcId:i}=e,o;t[0]===n?o=t[1]:(o=L(n),t[0]=n,t[1]=o);let{data:s}=a(o),c=A(),[l,u]=(0,Q.useState)(!1),[f,p]=(0,Q.useState)(),m;t[2]===s.nodegroups?m=t[3]:(m=s.nodegroups??[],t[2]=s.nodegroups,t[3]=m);let h=m,g;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,$.jsx)(`div`,{className:`mb-4 flex justify-end`,children:(0,$.jsx)(d,{onClick:()=>u(!0),size:`sm`,children:`Add node group`})}),t[4]=g):g=t[4];let _;t[5]!==n||t[6]!==r||t[7]!==h?(_=h.length>0?(0,$.jsx)(`div`,{className:`space-y-4`,children:h.map(e=>(0,$.jsx)(We,{clusterName:n,clusterVersion:r,nodegroupName:e,onDelete:p},e))}):(0,$.jsx)(`p`,{className:`text-muted-foreground`,children:`No node groups.`}),t[5]=n,t[6]=r,t[7]=h,t[8]=_):_=t[8];let v;t[9]!==n||t[10]!==l||t[11]!==i?(v=(0,$.jsx)(Ge,{clusterName:n,onOpenChange:u,open:l,vpcId:i}),t[9]=n,t[10]=l,t[11]=i,t[12]=v):v=t[12];let y=`Delete node group "${f??``}"? This terminates its nodes.`,b;t[13]!==n||t[14]!==c||t[15]!==f?(b=()=>{f&&c.mutate({clusterName:n,nodegroupName:f},{onSuccess:()=>p(void 0)})},t[13]=n,t[14]=c,t[15]=f,t[16]=b):b=t[16];let x;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(x=e=>!e&&p(void 0),t[17]=x):x=t[17];let S=f!==void 0,C;t[18]!==c.isPending||t[19]!==y||t[20]!==b||t[21]!==S?(C=(0,$.jsx)(pe,{description:y,isPending:c.isPending,onConfirm:b,onOpenChange:x,open:S,title:`Delete node group`}),t[18]=c.isPending,t[19]=y,t[20]=b,t[21]=S,t[22]=C):C=t[22];let w;return t[23]!==C||t[24]!==_||t[25]!==v?(w=(0,$.jsxs)($.Fragment,{children:[g,_,v,C]}),t[23]=C,t[24]=_,t[25]=v,t[26]=w):w=t[26],w}var qe=`ap-southeast-2`;function Je(e){switch(e??``){case`ACTIVE`:return`default`;case`FAILED`:return`destructive`;default:return`secondary`}}function Ye(e){let t=(0,Z.c)(89),{clusterName:n}=e,r=N(),[i,o]=(0,Q.useState)(!1),f;t[0]===n?f=t[1]:(f=V(n),t[0]=n,t[1]=f);let{data:p}=a(f),m=g(),h=p.cluster,_;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(_={type:`bin`,value:`aws eks update-kubeconfig`},t[2]=_):_=t[2];let v;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(v={type:`flag`,value:` --name `},t[3]=v):v=t[3];let y;t[4]===n?y=t[5]:(y={type:`value`,value:n},t[4]=n,t[5]=y);let b;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(b={type:`flag`,value:` --region `},t[6]=b):b=t[6];let x;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(x={type:`value`,value:qe},t[7]=x):x=t[7];let S;t[8]===y?S=t[9]:(S={label:`Configure kubectl`,parts:[_,v,y,b,x]},t[8]=y,t[9]=S);let C;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(C={label:`Verify access`,parts:[{type:`bin`,value:`kubectl get nodes`}]},t[10]=C):C=t[10];let w;t[11]===S?w=t[12]:(w=[S,C],t[11]=S,t[12]=w);let T=w,E;t[13]!==n||t[14]!==m||t[15]!==r?(E=function(){m.mutate(n,{onSuccess:()=>{r({to:`/eks/list-clusters`})}})},t[13]=n,t[14]=m,t[15]=r,t[16]=E):E=t[16];let D=E,O;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,$.jsx)(c,{to:`/eks/list-clusters`,children:`Clusters`}),t[17]=O):O=t[17];let k;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(k=()=>o(!0),t[18]=k):k=t[18];let A;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,$.jsxs)(d,{onClick:k,size:`sm`,variant:`destructive`,children:[(0,$.jsx)(u,{className:`size-4`}),`Delete`]}),t[19]=A):A=t[19];let j=h?.status,M;t[20]===j?M=t[21]:(M=Je(j),t[20]=j,t[21]=M);let P=h?.status??`UNKNOWN`,F;t[22]!==M||t[23]!==P?(F=(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[A,(0,$.jsx)(ve,{variant:M,children:P})]}),t[22]=M,t[23]=P,t[24]=F):F=t[24];let I;t[25]!==n||t[26]!==F?(I=(0,$.jsx)(ie,{actions:F,subtitle:`Cluster Details`,title:n}),t[25]=n,t[26]=F,t[27]=I):I=t[27];let L;t[28]!==m.error||t[29]!==m.isError?(L=m.isError&&(0,$.jsx)(re,{error:m.error instanceof Error?m.error:void 0,msg:`Failed to delete cluster.`}),t[28]=m.error,t[29]=m.isError,t[30]=L):L=t[30];let R;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,$.jsxs)(he,{children:[(0,$.jsx)(me,{value:`overview`,children:`Overview`}),(0,$.jsx)(me,{value:`compute`,children:`Compute`}),(0,$.jsx)(me,{value:`addons`,children:`Add-ons`}),(0,$.jsx)(me,{value:`access`,children:`Access`}),(0,$.jsx)(me,{value:`networking`,children:`Networking`}),(0,$.jsx)(me,{value:`connect`,children:`Connect`})]}),t[31]=R):R=t[31];let z;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,$.jsx)(Y.Header,{children:`Cluster`}),t[32]=z):z=t[32];let B=h?.arn,H;t[33]===B?H=t[34]:(H=(0,$.jsx)(X,{label:`ARN`,value:B}),t[33]=B,t[34]=H);let U=h?.status,W;t[35]===U?W=t[36]:(W=(0,$.jsx)(X,{label:`Status`,value:U}),t[35]=U,t[36]=W);let ee=h?.version,G;t[37]===ee?G=t[38]:(G=(0,$.jsx)(X,{label:`Kubernetes version`,value:ee}),t[37]=ee,t[38]=G);let K=h?.platformVersion,te;t[39]===K?te=t[40]:(te=(0,$.jsx)(X,{label:`Platform version`,value:K}),t[39]=K,t[40]=te);let ne=h?.endpoint,q;t[41]===ne?q=t[42]:(q=(0,$.jsx)(X,{label:`Endpoint`,value:ne}),t[41]=ne,t[42]=q);let ae=h?.identity?.oidc?.issuer,J;t[43]===ae?J=t[44]:(J=(0,$.jsx)(X,{label:`OIDC issuer`,value:ae}),t[43]=ae,t[44]=J);let oe=h?.resourcesVpcConfig?.vpcId,se;t[45]===oe?se=t[46]:(se=(0,$.jsx)(X,{label:`VPC`,value:oe}),t[45]=oe,t[46]=se);let ce=h?.createdAt,le;t[47]===ce?le=t[48]:(le=s(ce),t[47]=ce,t[48]=le);let ue;t[49]===le?ue=t[50]:(ue=(0,$.jsx)(X,{label:`Created at`,value:le}),t[49]=le,t[50]=ue);let de;t[51]!==H||t[52]!==W||t[53]!==G||t[54]!==te||t[55]!==q||t[56]!==J||t[57]!==se||t[58]!==ue?(de=(0,$.jsx)(ge,{value:`overview`,children:(0,$.jsxs)(Y,{children:[z,(0,$.jsxs)(Y.Content,{children:[H,W,G,te,q,J,se,ue]})]})}),t[51]=H,t[52]=W,t[53]=G,t[54]=te,t[55]=q,t[56]=J,t[57]=se,t[58]=ue,t[59]=de):de=t[59];let fe=h?.version,ye=h?.resourcesVpcConfig?.vpcId,be;t[60]!==n||t[61]!==fe||t[62]!==ye?(be=(0,$.jsx)(ge,{value:`compute`,children:(0,$.jsx)(Ke,{clusterName:n,clusterVersion:fe,vpcId:ye})}),t[60]=n,t[61]=fe,t[62]=ye,t[63]=be):be=t[63];let xe;t[64]===n?xe=t[65]:(xe=(0,$.jsx)(ge,{value:`addons`,children:(0,$.jsx)(Le,{clusterName:n})}),t[64]=n,t[65]=xe);let Se;t[66]===n?Se=t[67]:(Se=(0,$.jsx)(ge,{value:`access`,children:(0,$.jsx)(De,{clusterName:n})}),t[66]=n,t[67]=Se);let Ce;t[68]===h?Ce=t[69]:(Ce=(0,$.jsx)(ge,{value:`networking`,children:(0,$.jsx)(ze,{cluster:h})}),t[68]=h,t[69]=Ce);let we;t[70]===T?we=t[71]:(we=(0,$.jsx)(ge,{value:`connect`,children:(0,$.jsx)(l,{commands:T})}),t[70]=T,t[71]=we);let Te;t[72]!==de||t[73]!==be||t[74]!==xe||t[75]!==Se||t[76]!==Ce||t[77]!==we?(Te=(0,$.jsxs)(_e,{defaultValue:`overview`,children:[R,de,be,xe,Se,Ce,we]}),t[72]=de,t[73]=be,t[74]=xe,t[75]=Se,t[76]=Ce,t[77]=we,t[78]=Te):Te=t[78];let Ee=`This permanently deletes cluster "${n}" and its control plane. This cannot be undone.`,Oe;t[79]!==m.isPending||t[80]!==D||t[81]!==i||t[82]!==Ee?(Oe=(0,$.jsx)(pe,{description:Ee,isPending:m.isPending,onConfirm:D,onOpenChange:o,open:i,title:`Delete cluster`}),t[79]=m.isPending,t[80]=D,t[81]=i,t[82]=Ee,t[83]=Oe):Oe=t[83];let ke;return t[84]!==I||t[85]!==L||t[86]!==Te||t[87]!==Oe?(ke=(0,$.jsxs)($.Fragment,{children:[O,I,L,Te,Oe]}),t[84]=I,t[85]=L,t[86]=Te,t[87]=Oe,t[88]=ke):ke=t[88],ke}function Xe(){let e=(0,Z.c)(2),{clusterName:t}=G.useParams(),n;return e[0]===t?n=e[1]:(n=(0,$.jsx)(Ye,{clusterName:t}),e[0]=t,e[1]=n),n}export{Xe as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id10.js b/spinifex/services/spinifexui/frontend/dist/assets/_id10.js index 20cb104bb..e86c15a70 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id10.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id10.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{kr as i}from"./awsClient.js";import{t as a}from"./back-link.js";import{c as o,i as s,n as c,s as l,t as u}from"./select.js";import{t as d}from"./plus.js";import{t as f}from"./trash-2.js";import{t as p}from"./button.js";import{A as m,K as h,c as g,q as _,s as v}from"./ec2.js";import{Br as y,Dr as b,Hn as x,Mt as S,u as C}from"./index.js";import{i as w,n as T,t as E}from"./zod.js";import{t as D}from"./error-banner.js";import{t as O}from"./page-heading.js";import{a as k,r as A,t as j}from"./field.js";import{y as M}from"./ec22.js";import{i as N,l as P,n as F,o as I,r as L,s as R,t as z}from"./alert-dialog.js";import{t as B}from"./delete-confirmation-dialog.js";import{n as V,t as H}from"./detail-row.js";var U=t(n()),W=e();function G(e){if(!e||e===`-1`)return`All traffic`;let t=e.toUpperCase();return t===`TCP`||t===`UDP`||t===`ICMP`?t:e}function K(e,t,n){return!n||n===`-1`||e===void 0||t===void 0||e===-1&&t===-1?`All`:e===t?e.toString():`${e}-${t}`}function q({open:e,onOpenChange:t,direction:n,groupId:r}){let i=g(),a=v(),d=n===`ingress`?i:a,{control:f,handleSubmit:p,register:m,reset:h,watch:_,formState:{errors:y}}=w({resolver:E(M),defaultValues:{ipProtocol:`tcp`,fromPort:0,toPort:0,cidrIp:`0.0.0.0/0`}}),b=_(`ipProtocol`),S=b===`-1`||b===`icmp`;return(0,W.jsx)(z,{onOpenChange:t,open:e,children:(0,W.jsxs)(N,{children:[(0,W.jsx)(R,{children:(0,W.jsxs)(P,{children:[`Add `,n===`ingress`?`Inbound`:`Outbound`,` Rule`]})}),d.error&&(0,W.jsx)(D,{error:d.error,msg:`Failed to add rule`}),(0,W.jsxs)(`form`,{className:`space-y-4`,id:`add-rule-form`,onSubmit:p(async e=>{let n={groupId:r,ipProtocol:e.ipProtocol,fromPort:S?-1:e.fromPort,toPort:S?-1:e.toPort,cidrIp:e.cidrIp};await d.mutateAsync(n),h(),t(!1)}),children:[(0,W.jsxs)(j,{children:[(0,W.jsx)(k,{children:(0,W.jsx)(`label`,{htmlFor:`ipProtocol`,children:`Protocol`})}),(0,W.jsx)(T,{control:f,name:`ipProtocol`,render:({field:e})=>(0,W.jsxs)(u,{onValueChange:t=>e.onChange(t),value:e.value,children:[(0,W.jsx)(l,{className:`w-full`,id:`ipProtocol`,children:(0,W.jsx)(o,{})}),(0,W.jsxs)(c,{children:[(0,W.jsx)(s,{value:`tcp`,children:`TCP`}),(0,W.jsx)(s,{value:`udp`,children:`UDP`}),(0,W.jsx)(s,{value:`icmp`,children:`ICMP`}),(0,W.jsx)(s,{value:`-1`,children:`All traffic (-1)`})]})]})}),(0,W.jsx)(A,{errors:[y.ipProtocol]})]}),(0,W.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[(0,W.jsxs)(j,{children:[(0,W.jsx)(k,{children:(0,W.jsx)(`label`,{htmlFor:`fromPort`,children:`From Port`})}),(0,W.jsx)(x,{"aria-invalid":!!y.fromPort,disabled:S,id:`fromPort`,type:`number`,...m(`fromPort`,{valueAsNumber:!0})}),(0,W.jsx)(A,{errors:[y.fromPort]})]}),(0,W.jsxs)(j,{children:[(0,W.jsx)(k,{children:(0,W.jsx)(`label`,{htmlFor:`toPort`,children:`To Port`})}),(0,W.jsx)(x,{"aria-invalid":!!y.toPort,disabled:S,id:`toPort`,type:`number`,...m(`toPort`,{valueAsNumber:!0})}),(0,W.jsx)(A,{errors:[y.toPort]})]})]}),(0,W.jsxs)(j,{children:[(0,W.jsx)(k,{children:(0,W.jsxs)(`label`,{htmlFor:`cidrIp`,children:[n===`ingress`?`Source`:`Destination`,` CIDR`]})}),(0,W.jsx)(x,{"aria-invalid":!!y.cidrIp,id:`cidrIp`,placeholder:`0.0.0.0/0`,...m(`cidrIp`)}),(0,W.jsx)(A,{errors:[y.cidrIp]})]})]}),(0,W.jsxs)(I,{children:[(0,W.jsx)(L,{onClick:()=>{h(),d.reset()},children:`Cancel`}),(0,W.jsx)(F,{disabled:d.isPending,form:`add-rule-form`,type:`submit`,children:d.isPending?`Adding…`:`Add Rule`})]})]})})}function J(e){return[...(e.IpRanges??[]).map(e=>({kind:`cidr`,value:e.CidrIp??``})),...(e.UserIdGroupPairs??[]).map(e=>({kind:`group`,value:e.GroupId??``}))]}function Y({rule:e,source:t,groupId:n,direction:r}){let i=_(),a=h(),o=r===`ingress`?i:a,s=async()=>{try{await o.mutateAsync({groupId:n,ipProtocol:e.IpProtocol??`-1`,fromPort:e.FromPort??-1,toPort:e.ToPort??-1,...t.kind===`group`?{sourceGroupId:t.value}:{cidrIp:t.value}})}catch{}},c=t.kind===`group`&&t.value===n?`${t.value} (this security group)`:t.value;return(0,W.jsxs)(`div`,{className:`space-y-0`,children:[(0,W.jsxs)(`div`,{className:`flex items-center justify-between border-b px-4 py-3 last:border-b-0`,children:[(0,W.jsxs)(`div`,{className:`grid flex-1 grid-cols-3 gap-4 text-sm`,children:[(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`span`,{className:`text-muted-foreground`,children:`Protocol: `}),G(e.IpProtocol)]}),(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`span`,{className:`text-muted-foreground`,children:`Port Range: `}),K(e.FromPort,e.ToPort,e.IpProtocol)]}),(0,W.jsxs)(`div`,{children:[(0,W.jsxs)(`span`,{className:`text-muted-foreground`,children:[r===`ingress`?`Source`:`Destination`,`:`,` `]}),c]})]}),(0,W.jsx)(p,{disabled:o.isPending,onClick:s,size:`icon-xs`,variant:`ghost`,children:(0,W.jsx)(b,{className:`size-3`})})]}),o.error&&(0,W.jsx)(`div`,{className:`px-4 pb-2`,children:(0,W.jsx)(D,{error:o.error,msg:`Failed to remove rule`})})]})}function X(){let{id:e}=C.useParams(),t=y(),{data:n}=r(S(e)),o=n.SecurityGroups?.[0],s=m(),[c,l]=(0,U.useState)(!1),[u,h]=(0,U.useState)(!1),[g,_]=(0,U.useState)(!1),v=async()=>{try{await s.mutateAsync(e),t({to:`/ec2/describe-security-groups`})}finally{l(!1)}};if(!o?.GroupId)return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(a,{to:`/ec2/describe-security-groups`,children:`Back to Security Groups`}),(0,W.jsx)(`p`,{className:`text-muted-foreground`,children:`Security group not found.`})]});let b=o.IpPermissions??[],x=o.IpPermissionsEgress??[];return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(a,{to:`/ec2/describe-security-groups`,children:`Back to Security Groups`}),s.error&&(0,W.jsx)(D,{error:s.error,msg:`Failed to delete security group`}),(0,W.jsxs)(`div`,{className:`space-y-6`,children:[(0,W.jsx)(O,{actions:(0,W.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,W.jsxs)(p,{onClick:()=>l(!0),size:`sm`,variant:`destructive`,children:[(0,W.jsx)(f,{className:`size-4`}),`Delete`]})}),subtitle:`Security Group Details`,title:o.GroupName?`${o.GroupId} (${o.GroupName})`:o.GroupId}),(0,W.jsxs)(V,{children:[(0,W.jsx)(V.Header,{children:`Security Group Information`}),(0,W.jsxs)(V.Content,{children:[(0,W.jsx)(H,{label:`Group ID`,value:o.GroupId}),(0,W.jsx)(H,{label:`Group Name`,value:o.GroupName}),(0,W.jsx)(H,{label:`Description`,value:o.Description}),(0,W.jsx)(H,{label:`VPC ID`,value:o.VpcId?(0,W.jsx)(i,{className:`text-primary hover:underline`,params:{id:o.VpcId},to:`/ec2/describe-vpcs/$id`,children:o.VpcId}):`—`}),(0,W.jsx)(H,{label:`Owner ID`,value:o.OwnerId})]})]}),(0,W.jsxs)(V,{children:[(0,W.jsxs)(`div`,{className:`flex items-center justify-between border-b p-4`,children:[(0,W.jsxs)(`h2`,{className:`font-semibold`,children:[`Inbound Rules (`,b.length,`)`]}),(0,W.jsxs)(p,{onClick:()=>h(!0),size:`sm`,variant:`outline`,children:[(0,W.jsx)(d,{className:`size-4`}),`Add Rule`]})]}),b.length>0?(0,W.jsx)(`div`,{children:b.flatMap(e=>J(e).map(t=>(0,W.jsx)(Y,{direction:`ingress`,groupId:o.GroupId??``,rule:e,source:t},`${e.IpProtocol}-${e.FromPort}-${e.ToPort}-${t.kind}-${t.value}`)))}):(0,W.jsx)(`p`,{className:`p-4 text-sm text-muted-foreground`,children:`No inbound rules.`})]}),(0,W.jsxs)(V,{children:[(0,W.jsxs)(`div`,{className:`flex items-center justify-between border-b p-4`,children:[(0,W.jsxs)(`h2`,{className:`font-semibold`,children:[`Outbound Rules (`,x.length,`)`]}),(0,W.jsxs)(p,{onClick:()=>_(!0),size:`sm`,variant:`outline`,children:[(0,W.jsx)(d,{className:`size-4`}),`Add Rule`]})]}),x.length>0?(0,W.jsx)(`div`,{children:x.flatMap(e=>J(e).map(t=>(0,W.jsx)(Y,{direction:`egress`,groupId:o.GroupId??``,rule:e,source:t},`${e.IpProtocol}-${e.FromPort}-${e.ToPort}-${t.kind}-${t.value}`)))}):(0,W.jsx)(`p`,{className:`p-4 text-sm text-muted-foreground`,children:`No outbound rules.`})]})]}),(0,W.jsx)(B,{description:`Are you sure you want to delete the security group "${o.GroupId}"? This action cannot be undone.`,isPending:s.isPending,onConfirm:v,onOpenChange:l,open:c,title:`Delete Security Group`}),(0,W.jsx)(q,{direction:`ingress`,groupId:o.GroupId,onOpenChange:h,open:u}),(0,W.jsx)(q,{direction:`egress`,groupId:o.GroupId,onOpenChange:_,open:g})]})}export{X as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{Ar as i}from"./awsClient.js";import{t as a}from"./back-link.js";import{c as o,i as s,n as c,s as l,t as u}from"./select.js";import{t as d}from"./plus.js";import{t as f}from"./trash-2.js";import{t as p}from"./button.js";import{A as m,K as h,c as g,q as _,s as v}from"./ec2.js";import{Br as y,Dr as b,Hn as x,Mt as S,u as C}from"./index.js";import{i as w,n as T,t as E}from"./zod.js";import{t as D}from"./error-banner.js";import{t as O}from"./page-heading.js";import{a as k,r as A,t as j}from"./field.js";import{y as M}from"./ec22.js";import{i as N,l as P,n as F,o as I,r as L,s as R,t as z}from"./alert-dialog.js";import{t as B}from"./delete-confirmation-dialog.js";import{n as V,t as H}from"./detail-row.js";var U=t(n()),W=e();function G(e){if(!e||e===`-1`)return`All traffic`;let t=e.toUpperCase();return t===`TCP`||t===`UDP`||t===`ICMP`?t:e}function K(e,t,n){return!n||n===`-1`||e===void 0||t===void 0||e===-1&&t===-1?`All`:e===t?e.toString():`${e}-${t}`}function q({open:e,onOpenChange:t,direction:n,groupId:r}){let i=g(),a=v(),d=n===`ingress`?i:a,{control:f,handleSubmit:p,register:m,reset:h,watch:_,formState:{errors:y}}=w({resolver:E(M),defaultValues:{ipProtocol:`tcp`,fromPort:0,toPort:0,cidrIp:`0.0.0.0/0`}}),b=_(`ipProtocol`),S=b===`-1`||b===`icmp`;return(0,W.jsx)(z,{onOpenChange:t,open:e,children:(0,W.jsxs)(N,{children:[(0,W.jsx)(R,{children:(0,W.jsxs)(P,{children:[`Add `,n===`ingress`?`Inbound`:`Outbound`,` Rule`]})}),d.error&&(0,W.jsx)(D,{error:d.error,msg:`Failed to add rule`}),(0,W.jsxs)(`form`,{className:`space-y-4`,id:`add-rule-form`,onSubmit:p(async e=>{let n={groupId:r,ipProtocol:e.ipProtocol,fromPort:S?-1:e.fromPort,toPort:S?-1:e.toPort,cidrIp:e.cidrIp};await d.mutateAsync(n),h(),t(!1)}),children:[(0,W.jsxs)(j,{children:[(0,W.jsx)(k,{children:(0,W.jsx)(`label`,{htmlFor:`ipProtocol`,children:`Protocol`})}),(0,W.jsx)(T,{control:f,name:`ipProtocol`,render:({field:e})=>(0,W.jsxs)(u,{onValueChange:t=>e.onChange(t),value:e.value,children:[(0,W.jsx)(l,{className:`w-full`,id:`ipProtocol`,children:(0,W.jsx)(o,{})}),(0,W.jsxs)(c,{children:[(0,W.jsx)(s,{value:`tcp`,children:`TCP`}),(0,W.jsx)(s,{value:`udp`,children:`UDP`}),(0,W.jsx)(s,{value:`icmp`,children:`ICMP`}),(0,W.jsx)(s,{value:`-1`,children:`All traffic (-1)`})]})]})}),(0,W.jsx)(A,{errors:[y.ipProtocol]})]}),(0,W.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[(0,W.jsxs)(j,{children:[(0,W.jsx)(k,{children:(0,W.jsx)(`label`,{htmlFor:`fromPort`,children:`From Port`})}),(0,W.jsx)(x,{"aria-invalid":!!y.fromPort,disabled:S,id:`fromPort`,type:`number`,...m(`fromPort`,{valueAsNumber:!0})}),(0,W.jsx)(A,{errors:[y.fromPort]})]}),(0,W.jsxs)(j,{children:[(0,W.jsx)(k,{children:(0,W.jsx)(`label`,{htmlFor:`toPort`,children:`To Port`})}),(0,W.jsx)(x,{"aria-invalid":!!y.toPort,disabled:S,id:`toPort`,type:`number`,...m(`toPort`,{valueAsNumber:!0})}),(0,W.jsx)(A,{errors:[y.toPort]})]})]}),(0,W.jsxs)(j,{children:[(0,W.jsx)(k,{children:(0,W.jsxs)(`label`,{htmlFor:`cidrIp`,children:[n===`ingress`?`Source`:`Destination`,` CIDR`]})}),(0,W.jsx)(x,{"aria-invalid":!!y.cidrIp,id:`cidrIp`,placeholder:`0.0.0.0/0`,...m(`cidrIp`)}),(0,W.jsx)(A,{errors:[y.cidrIp]})]})]}),(0,W.jsxs)(I,{children:[(0,W.jsx)(L,{onClick:()=>{h(),d.reset()},children:`Cancel`}),(0,W.jsx)(F,{disabled:d.isPending,form:`add-rule-form`,type:`submit`,children:d.isPending?`Adding…`:`Add Rule`})]})]})})}function J(e){return[...(e.IpRanges??[]).map(e=>({kind:`cidr`,value:e.CidrIp??``})),...(e.UserIdGroupPairs??[]).map(e=>({kind:`group`,value:e.GroupId??``}))]}function Y({rule:e,source:t,groupId:n,direction:r}){let i=_(),a=h(),o=r===`ingress`?i:a,s=async()=>{try{await o.mutateAsync({groupId:n,ipProtocol:e.IpProtocol??`-1`,fromPort:e.FromPort??-1,toPort:e.ToPort??-1,...t.kind===`group`?{sourceGroupId:t.value}:{cidrIp:t.value}})}catch{}},c=t.kind===`group`&&t.value===n?`${t.value} (this security group)`:t.value;return(0,W.jsxs)(`div`,{className:`space-y-0`,children:[(0,W.jsxs)(`div`,{className:`flex items-center justify-between border-b px-4 py-3 last:border-b-0`,children:[(0,W.jsxs)(`div`,{className:`grid flex-1 grid-cols-3 gap-4 text-sm`,children:[(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`span`,{className:`text-muted-foreground`,children:`Protocol: `}),G(e.IpProtocol)]}),(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`span`,{className:`text-muted-foreground`,children:`Port Range: `}),K(e.FromPort,e.ToPort,e.IpProtocol)]}),(0,W.jsxs)(`div`,{children:[(0,W.jsxs)(`span`,{className:`text-muted-foreground`,children:[r===`ingress`?`Source`:`Destination`,`:`,` `]}),c]})]}),(0,W.jsx)(p,{disabled:o.isPending,onClick:s,size:`icon-xs`,variant:`ghost`,children:(0,W.jsx)(b,{className:`size-3`})})]}),o.error&&(0,W.jsx)(`div`,{className:`px-4 pb-2`,children:(0,W.jsx)(D,{error:o.error,msg:`Failed to remove rule`})})]})}function X(){let{id:e}=C.useParams(),t=y(),{data:n}=r(S(e)),o=n.SecurityGroups?.[0],s=m(),[c,l]=(0,U.useState)(!1),[u,h]=(0,U.useState)(!1),[g,_]=(0,U.useState)(!1),v=async()=>{try{await s.mutateAsync(e),t({to:`/ec2/describe-security-groups`})}finally{l(!1)}};if(!o?.GroupId)return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(a,{to:`/ec2/describe-security-groups`,children:`Back to Security Groups`}),(0,W.jsx)(`p`,{className:`text-muted-foreground`,children:`Security group not found.`})]});let b=o.IpPermissions??[],x=o.IpPermissionsEgress??[];return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(a,{to:`/ec2/describe-security-groups`,children:`Back to Security Groups`}),s.error&&(0,W.jsx)(D,{error:s.error,msg:`Failed to delete security group`}),(0,W.jsxs)(`div`,{className:`space-y-6`,children:[(0,W.jsx)(O,{actions:(0,W.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,W.jsxs)(p,{onClick:()=>l(!0),size:`sm`,variant:`destructive`,children:[(0,W.jsx)(f,{className:`size-4`}),`Delete`]})}),subtitle:`Security Group Details`,title:o.GroupName?`${o.GroupId} (${o.GroupName})`:o.GroupId}),(0,W.jsxs)(V,{children:[(0,W.jsx)(V.Header,{children:`Security Group Information`}),(0,W.jsxs)(V.Content,{children:[(0,W.jsx)(H,{label:`Group ID`,value:o.GroupId}),(0,W.jsx)(H,{label:`Group Name`,value:o.GroupName}),(0,W.jsx)(H,{label:`Description`,value:o.Description}),(0,W.jsx)(H,{label:`VPC ID`,value:o.VpcId?(0,W.jsx)(i,{className:`text-primary hover:underline`,params:{id:o.VpcId},to:`/ec2/describe-vpcs/$id`,children:o.VpcId}):`—`}),(0,W.jsx)(H,{label:`Owner ID`,value:o.OwnerId})]})]}),(0,W.jsxs)(V,{children:[(0,W.jsxs)(`div`,{className:`flex items-center justify-between border-b p-4`,children:[(0,W.jsxs)(`h2`,{className:`font-semibold`,children:[`Inbound Rules (`,b.length,`)`]}),(0,W.jsxs)(p,{onClick:()=>h(!0),size:`sm`,variant:`outline`,children:[(0,W.jsx)(d,{className:`size-4`}),`Add Rule`]})]}),b.length>0?(0,W.jsx)(`div`,{children:b.flatMap(e=>J(e).map(t=>(0,W.jsx)(Y,{direction:`ingress`,groupId:o.GroupId??``,rule:e,source:t},`${e.IpProtocol}-${e.FromPort}-${e.ToPort}-${t.kind}-${t.value}`)))}):(0,W.jsx)(`p`,{className:`p-4 text-sm text-muted-foreground`,children:`No inbound rules.`})]}),(0,W.jsxs)(V,{children:[(0,W.jsxs)(`div`,{className:`flex items-center justify-between border-b p-4`,children:[(0,W.jsxs)(`h2`,{className:`font-semibold`,children:[`Outbound Rules (`,x.length,`)`]}),(0,W.jsxs)(p,{onClick:()=>_(!0),size:`sm`,variant:`outline`,children:[(0,W.jsx)(d,{className:`size-4`}),`Add Rule`]})]}),x.length>0?(0,W.jsx)(`div`,{children:x.flatMap(e=>J(e).map(t=>(0,W.jsx)(Y,{direction:`egress`,groupId:o.GroupId??``,rule:e,source:t},`${e.IpProtocol}-${e.FromPort}-${e.ToPort}-${t.kind}-${t.value}`)))}):(0,W.jsx)(`p`,{className:`p-4 text-sm text-muted-foreground`,children:`No outbound rules.`})]})]}),(0,W.jsx)(B,{description:`Are you sure you want to delete the security group "${o.GroupId}"? This action cannot be undone.`,isPending:s.isPending,onConfirm:v,onOpenChange:l,open:c,title:`Delete Security Group`}),(0,W.jsx)(q,{direction:`ingress`,groupId:o.GroupId,onOpenChange:h,open:u}),(0,W.jsx)(q,{direction:`egress`,groupId:o.GroupId,onOpenChange:_,open:g})]})}export{X as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id11.js b/spinifex/services/spinifexui/frontend/dist/assets/_id11.js index 8c93bd58f..db939a3e9 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id11.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id11.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{kr as i}from"./awsClient.js";import{Bt as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as s}from"./copy.js";import{t as c}from"./trash-2.js";import{t as l}from"./button.js";import{j as u,l as d}from"./ec2.js";import{Br as f,Hn as p,Pt as m,d as h,kt as g}from"./index.js";import{t as _}from"./error-banner.js";import{t as v}from"./page-heading.js";import{a as y,t as b}from"./field.js";import{a as x,i as S,l as C,n as w,o as T,r as E,s as D,t as O}from"./alert-dialog.js";import{t as k}from"./delete-confirmation-dialog.js";import{n as A,t as j}from"./detail-row.js";import{t as M}from"./state-badge.js";var N=t(n()),P=e();function F(){let{id:e}=h.useParams(),t=f(),{data:n}=r(m(e)),{data:F}=r(g),I=n.Snapshots?.[0],L=u(),R=d(),[z,B]=(0,N.useState)(!1),[V,H]=(0,N.useState)(!1),[U,W]=(0,N.useState)(``),G=F.Regions?.[0]?.RegionName??`ap-southeast-2`,K=I?.State===`completed`,q=async()=>{try{await L.mutateAsync(e),t({to:`/ec2/describe-snapshots`})}finally{B(!1)}},J=async()=>{try{await R.mutateAsync({sourceSnapshotId:e,sourceRegion:G,description:U||void 0}),H(!1),W(``)}catch{}};if(!I?.SnapshotId)return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(o,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),(0,P.jsx)(`p`,{className:`text-muted-foreground`,children:`Snapshot not found.`})]});let Y=a(I.StartTime);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(o,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),L.error&&(0,P.jsx)(_,{error:L.error,msg:`Failed to delete snapshot`}),R.error&&(0,P.jsx)(_,{error:R.error,msg:`Failed to copy snapshot`}),(0,P.jsxs)(`div`,{className:`space-y-6`,children:[(0,P.jsx)(v,{actions:(0,P.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,P.jsxs)(l,{disabled:!K,onClick:()=>B(!0),size:`sm`,variant:`destructive`,children:[(0,P.jsx)(c,{className:`size-4`}),`Delete`]}),(0,P.jsxs)(l,{disabled:!K,onClick:()=>H(!0),size:`sm`,variant:`outline`,children:[(0,P.jsx)(s,{className:`size-4`}),`Copy Snapshot`]}),(0,P.jsx)(M,{state:I.State})]}),subtitle:`Snapshot Details`,title:I.SnapshotId}),(0,P.jsxs)(A,{children:[(0,P.jsx)(A.Header,{children:`Snapshot Information`}),(0,P.jsxs)(A.Content,{children:[(0,P.jsx)(j,{label:`Snapshot ID`,value:I.SnapshotId}),(0,P.jsx)(j,{label:`Volume ID`,value:I.VolumeId?(0,P.jsx)(i,{className:`text-primary hover:underline`,params:{id:I.VolumeId},to:`/ec2/describe-volumes/$id`,children:I.VolumeId}):void 0}),(0,P.jsx)(j,{label:`Volume Size`,value:`${I.VolumeSize} GiB`}),(0,P.jsx)(j,{label:`State`,value:I.State}),(0,P.jsx)(j,{label:`Description`,value:I.Description}),(0,P.jsx)(j,{label:`Progress`,value:I.Progress}),(0,P.jsx)(j,{label:`Start Time`,value:Y}),(0,P.jsx)(j,{label:`Owner ID`,value:I.OwnerId}),(0,P.jsx)(j,{label:`Encrypted`,value:I.Encrypted?`Yes`:`No`})]})]})]}),(0,P.jsx)(k,{description:`Are you sure you want to delete the snapshot "${I.SnapshotId}"? This action cannot be undone.`,isPending:L.isPending,onConfirm:q,onOpenChange:B,open:z,title:`Delete Snapshot`}),(0,P.jsx)(O,{onOpenChange:H,open:V,children:(0,P.jsxs)(S,{children:[(0,P.jsxs)(D,{children:[(0,P.jsx)(C,{children:`Copy Snapshot`}),(0,P.jsx)(x,{children:`Create a copy of this snapshot in the current region.`})]}),(0,P.jsxs)(b,{children:[(0,P.jsx)(y,{children:(0,P.jsx)(`label`,{htmlFor:`copyDescription`,children:`Description (optional)`})}),(0,P.jsx)(p,{id:`copyDescription`,onChange:e=>W(e.target.value),placeholder:`Description for the snapshot copy`,value:U})]}),(0,P.jsxs)(T,{children:[(0,P.jsx)(E,{children:`Cancel`}),(0,P.jsx)(w,{disabled:R.isPending,onClick:J,children:R.isPending?`Copying…`:`Copy Snapshot`})]})]})})]})}export{F as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{Ar as i}from"./awsClient.js";import{Bt as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as s}from"./copy.js";import{t as c}from"./trash-2.js";import{t as l}from"./button.js";import{j as u,l as d}from"./ec2.js";import{Br as f,Hn as p,Pt as m,d as h,kt as g}from"./index.js";import{t as _}from"./error-banner.js";import{t as v}from"./page-heading.js";import{a as y,t as b}from"./field.js";import{a as x,i as S,l as C,n as w,o as T,r as E,s as D,t as O}from"./alert-dialog.js";import{t as k}from"./delete-confirmation-dialog.js";import{n as A,t as j}from"./detail-row.js";import{t as M}from"./state-badge.js";var N=t(n()),P=e();function F(){let{id:e}=h.useParams(),t=f(),{data:n}=r(m(e)),{data:F}=r(g),I=n.Snapshots?.[0],L=u(),R=d(),[z,B]=(0,N.useState)(!1),[V,H]=(0,N.useState)(!1),[U,W]=(0,N.useState)(``),G=F.Regions?.[0]?.RegionName??`ap-southeast-2`,K=I?.State===`completed`,q=async()=>{try{await L.mutateAsync(e),t({to:`/ec2/describe-snapshots`})}finally{B(!1)}},J=async()=>{try{await R.mutateAsync({sourceSnapshotId:e,sourceRegion:G,description:U||void 0}),H(!1),W(``)}catch{}};if(!I?.SnapshotId)return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(o,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),(0,P.jsx)(`p`,{className:`text-muted-foreground`,children:`Snapshot not found.`})]});let Y=a(I.StartTime);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(o,{to:`/ec2/describe-snapshots`,children:`Back to snapshots`}),L.error&&(0,P.jsx)(_,{error:L.error,msg:`Failed to delete snapshot`}),R.error&&(0,P.jsx)(_,{error:R.error,msg:`Failed to copy snapshot`}),(0,P.jsxs)(`div`,{className:`space-y-6`,children:[(0,P.jsx)(v,{actions:(0,P.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,P.jsxs)(l,{disabled:!K,onClick:()=>B(!0),size:`sm`,variant:`destructive`,children:[(0,P.jsx)(c,{className:`size-4`}),`Delete`]}),(0,P.jsxs)(l,{disabled:!K,onClick:()=>H(!0),size:`sm`,variant:`outline`,children:[(0,P.jsx)(s,{className:`size-4`}),`Copy Snapshot`]}),(0,P.jsx)(M,{state:I.State})]}),subtitle:`Snapshot Details`,title:I.SnapshotId}),(0,P.jsxs)(A,{children:[(0,P.jsx)(A.Header,{children:`Snapshot Information`}),(0,P.jsxs)(A.Content,{children:[(0,P.jsx)(j,{label:`Snapshot ID`,value:I.SnapshotId}),(0,P.jsx)(j,{label:`Volume ID`,value:I.VolumeId?(0,P.jsx)(i,{className:`text-primary hover:underline`,params:{id:I.VolumeId},to:`/ec2/describe-volumes/$id`,children:I.VolumeId}):void 0}),(0,P.jsx)(j,{label:`Volume Size`,value:`${I.VolumeSize} GiB`}),(0,P.jsx)(j,{label:`State`,value:I.State}),(0,P.jsx)(j,{label:`Description`,value:I.Description}),(0,P.jsx)(j,{label:`Progress`,value:I.Progress}),(0,P.jsx)(j,{label:`Start Time`,value:Y}),(0,P.jsx)(j,{label:`Owner ID`,value:I.OwnerId}),(0,P.jsx)(j,{label:`Encrypted`,value:I.Encrypted?`Yes`:`No`})]})]})]}),(0,P.jsx)(k,{description:`Are you sure you want to delete the snapshot "${I.SnapshotId}"? This action cannot be undone.`,isPending:L.isPending,onConfirm:q,onOpenChange:B,open:z,title:`Delete Snapshot`}),(0,P.jsx)(O,{onOpenChange:H,open:V,children:(0,P.jsxs)(S,{children:[(0,P.jsxs)(D,{children:[(0,P.jsx)(C,{children:`Copy Snapshot`}),(0,P.jsx)(x,{children:`Create a copy of this snapshot in the current region.`})]}),(0,P.jsxs)(b,{children:[(0,P.jsx)(y,{children:(0,P.jsx)(`label`,{htmlFor:`copyDescription`,children:`Description (optional)`})}),(0,P.jsx)(p,{id:`copyDescription`,onChange:e=>W(e.target.value),placeholder:`Description for the snapshot copy`,value:U})]}),(0,P.jsxs)(T,{children:[(0,P.jsx)(E,{children:`Cancel`}),(0,P.jsx)(w,{disabled:R.isPending,onClick:J,children:R.isPending?`Copying…`:`Copy Snapshot`})]})]})})]})}export{F as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id12.js b/spinifex/services/spinifexui/frontend/dist/assets/_id12.js index 13830d932..e00e16866 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id12.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id12.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{kr as i}from"./awsClient.js";import{Ut as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as s}from"./trash-2.js";import{t as c}from"./button.js";import{M as l}from"./ec2.js";import{Br as u,It as d,f}from"./index.js";import{t as p}from"./error-banner.js";import{t as m}from"./page-heading.js";import{t as h}from"./delete-confirmation-dialog.js";import{n as g,t as _}from"./detail-row.js";import{t as v}from"./state-badge.js";var y=t(n()),b=e();function x(){let{id:e}=f.useParams(),t=u(),{data:n}=r(d(e)),x=n.Subnets?.[0],S=l(),[C,w]=(0,y.useState)(!1),T=async()=>{try{await S.mutateAsync(e),t({to:`/ec2/describe-subnets`})}finally{w(!1)}};if(!x?.SubnetId)return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`Subnet not found.`})]});let E=a(x.Tags);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),S.error&&(0,b.jsx)(p,{error:S.error,msg:`Failed to delete subnet`}),(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(m,{actions:(0,b.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,b.jsxs)(c,{onClick:()=>w(!0),size:`sm`,variant:`destructive`,children:[(0,b.jsx)(s,{className:`size-4`}),`Delete`]}),(0,b.jsx)(v,{state:x.State})]}),subtitle:`Subnet Details`,title:E?`${x.SubnetId} (${E})`:x.SubnetId}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Subnet Information`}),(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`Subnet ID`,value:x.SubnetId}),(0,b.jsx)(_,{label:`VPC ID`,value:x.VpcId?(0,b.jsx)(i,{className:`text-primary hover:underline`,params:{id:x.VpcId},to:`/ec2/describe-vpcs/$id`,children:x.VpcId}):`—`}),(0,b.jsx)(_,{label:`State`,value:x.State}),(0,b.jsx)(_,{label:`CIDR Block`,value:x.CidrBlock}),(0,b.jsx)(_,{label:`Availability Zone`,value:x.AvailabilityZone}),(0,b.jsx)(_,{label:`Available IP Count`,value:x.AvailableIpAddressCount?.toString()}),(0,b.jsx)(_,{label:`Map Public IP on Launch`,value:x.MapPublicIpOnLaunch?`Yes`:`No`}),(0,b.jsx)(_,{label:`Default for AZ`,value:x.DefaultForAz?`Yes`:`No`})]})]})]}),(0,b.jsx)(h,{description:`Are you sure you want to delete the subnet "${x.SubnetId}"? This action cannot be undone.`,isPending:S.isPending,onConfirm:T,onOpenChange:w,open:C,title:`Delete Subnet`})]})}export{x as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{Ar as i}from"./awsClient.js";import{Ut as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as s}from"./trash-2.js";import{t as c}from"./button.js";import{M as l}from"./ec2.js";import{Br as u,It as d,f}from"./index.js";import{t as p}from"./error-banner.js";import{t as m}from"./page-heading.js";import{t as h}from"./delete-confirmation-dialog.js";import{n as g,t as _}from"./detail-row.js";import{t as v}from"./state-badge.js";var y=t(n()),b=e();function x(){let{id:e}=f.useParams(),t=u(),{data:n}=r(d(e)),x=n.Subnets?.[0],S=l(),[C,w]=(0,y.useState)(!1),T=async()=>{try{await S.mutateAsync(e),t({to:`/ec2/describe-subnets`})}finally{w(!1)}};if(!x?.SubnetId)return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`Subnet not found.`})]});let E=a(x.Tags);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o,{to:`/ec2/describe-subnets`,children:`Back to Subnets`}),S.error&&(0,b.jsx)(p,{error:S.error,msg:`Failed to delete subnet`}),(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(m,{actions:(0,b.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,b.jsxs)(c,{onClick:()=>w(!0),size:`sm`,variant:`destructive`,children:[(0,b.jsx)(s,{className:`size-4`}),`Delete`]}),(0,b.jsx)(v,{state:x.State})]}),subtitle:`Subnet Details`,title:E?`${x.SubnetId} (${E})`:x.SubnetId}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Subnet Information`}),(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`Subnet ID`,value:x.SubnetId}),(0,b.jsx)(_,{label:`VPC ID`,value:x.VpcId?(0,b.jsx)(i,{className:`text-primary hover:underline`,params:{id:x.VpcId},to:`/ec2/describe-vpcs/$id`,children:x.VpcId}):`—`}),(0,b.jsx)(_,{label:`State`,value:x.State}),(0,b.jsx)(_,{label:`CIDR Block`,value:x.CidrBlock}),(0,b.jsx)(_,{label:`Availability Zone`,value:x.AvailabilityZone}),(0,b.jsx)(_,{label:`Available IP Count`,value:x.AvailableIpAddressCount?.toString()}),(0,b.jsx)(_,{label:`Map Public IP on Launch`,value:x.MapPublicIpOnLaunch?`Yes`:`No`}),(0,b.jsx)(_,{label:`Default for AZ`,value:x.DefaultForAz?`Yes`:`No`})]})]})]}),(0,b.jsx)(h,{description:`Are you sure you want to delete the subnet "${x.SubnetId}"? This action cannot be undone.`,isPending:S.isPending,onConfirm:T,onOpenChange:w,open:C,title:`Delete Subnet`})]})}export{x as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id14.js b/spinifex/services/spinifexui/frontend/dist/assets/_id14.js index 1e27ed0a9..0ae1d735e 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id14.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id14.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{kr as i}from"./awsClient.js";import{Bt as a,Ut as o}from"./auth.js";import{t as s}from"./back-link.js";import{c,i as l,n as ee,s as u,t as te}from"./select.js";import{t as d}from"./trash-2.js";import{n as f,t as p}from"./button.js";import{I as m,N as h,o as g}from"./ec2.js";import{Br as _,Hn as v,Ir as ne,Lr as y,Rt as re,bt as b,m as x}from"./index.js";import{t as S}from"./error-banner.js";import{t as ie}from"./page-heading.js";import{a as C,t as w}from"./field.js";import{a as T,i as E,l as D,n as O,o as k,r as A,s as j,t as M}from"./alert-dialog.js";import{t as ae}from"./delete-confirmation-dialog.js";import{n as N,t as P}from"./detail-row.js";import{t as F}from"./state-badge.js";var I=y(`link-2-off`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7`,key:`10o201`}],[`path`,{d:`M15 7h2a5 5 0 0 1 4 8`,key:`1d3206`}],[`line`,{x1:`8`,x2:`12`,y1:`12`,y2:`12`,key:`rvw6j4`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]),L=y(`link-2`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]),R=t(n()),z=e();function B(){let{id:e}=x.useParams(),t=_(),{data:n}=r(re(e)),{data:y}=r(b),B=n.Volumes?.[0],V=h(),H=g(),U=m(),[W,G]=(0,R.useState)(null),[K,q]=(0,R.useState)(``),[J,Y]=(0,R.useState)(``),[X,Z]=(0,R.useState)(!1),oe=y.Reservations?.flatMap(e=>e.Instances?.filter(e=>e.State?.Name===`running`)??[])??[],Q=B?.State===`available`&&(!B.Attachments||B.Attachments.length===0),$=()=>G(null);return B?.VolumeId?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(s,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),V.error&&(0,z.jsx)(S,{error:V.error,msg:`Failed to delete volume`}),H.error&&(0,z.jsx)(S,{error:H.error,msg:`Failed to attach volume`}),U.error&&(0,z.jsx)(S,{error:U.error,msg:`Failed to detach volume`}),(0,z.jsxs)(`div`,{className:`space-y-6`,children:[(0,z.jsx)(ie,{actions:(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsxs)(p,{disabled:!Q,onClick:()=>G(`delete`),size:`sm`,variant:`destructive`,children:[(0,z.jsx)(d,{className:`size-4`}),`Delete`]}),Q?(0,z.jsx)(i,{className:f({variant:`outline`}),params:{id:B.VolumeId},to:`/ec2/modify-volume/$id`,children:`Resize Volume`}):(0,z.jsx)(p,{disabled:!0,variant:`outline`,children:`Resize Volume`}),Q?(0,z.jsxs)(p,{onClick:()=>G(`attach`),size:`sm`,variant:`outline`,children:[(0,z.jsx)(L,{className:`size-4`}),`Attach`]}):null,B.Attachments&&B.Attachments.length>0?(0,z.jsxs)(p,{onClick:()=>G(`detach`),size:`sm`,variant:`outline`,children:[(0,z.jsx)(I,{className:`size-4`}),`Detach`]}):null,(0,z.jsxs)(i,{className:f({variant:`outline`,size:`sm`}),search:{volumeId:B.VolumeId},to:`/ec2/create-snapshot`,children:[(0,z.jsx)(ne,{className:`size-4`}),`Create Snapshot`]}),(0,z.jsx)(F,{state:B.State})]}),subtitle:`Volume Details`,title:B.VolumeId}),(0,z.jsxs)(N,{children:[(0,z.jsx)(N.Header,{children:`Volume Information`}),(0,z.jsxs)(N.Content,{children:[(0,z.jsx)(P,{label:`Volume ID`,value:B.VolumeId}),(0,z.jsx)(P,{label:`Size`,value:`${B.Size} GiB`}),(0,z.jsx)(P,{label:`Volume Type`,value:B.VolumeType}),(0,z.jsx)(P,{label:`State`,value:B.State}),(0,z.jsx)(P,{label:`Availability Zone`,value:B.AvailabilityZone}),(0,z.jsx)(P,{label:`Create Time`,value:a(B.CreateTime)}),(0,z.jsx)(P,{label:`Encrypted`,value:B.Encrypted?`Yes`:`No`}),(0,z.jsx)(P,{label:`KMS Key ID`,value:B.KmsKeyId})]})]}),B.Attachments&&B.Attachments.length>0&&(0,z.jsxs)(N,{children:[(0,z.jsx)(N.Header,{children:`Attachments`}),B.Attachments.map(e=>(0,z.jsxs)(N.Content,{children:[(0,z.jsx)(P,{label:`Instance ID`,value:e.InstanceId?(0,z.jsx)(i,{className:`text-primary hover:underline`,params:{id:e.InstanceId},to:`/ec2/describe-instances/$id`,children:e.InstanceId}):void 0}),(0,z.jsx)(P,{label:`Device`,value:e.Device}),(0,z.jsx)(P,{label:`Status`,value:e.State}),(0,z.jsx)(P,{label:`Attach Time`,value:a(e.AttachTime)}),(0,z.jsx)(P,{label:`Delete on Termination`,value:e.DeleteOnTermination?`Yes`:`No`})]},e.InstanceId))]})]}),(0,z.jsx)(ae,{description:`Are you sure you want to delete the volume "${B.VolumeId}"? This action cannot be undone.`,isPending:V.isPending,onConfirm:async()=>{try{await V.mutateAsync(e),t({to:`/ec2/describe-volumes`})}finally{$()}},onOpenChange:e=>{e||$()},open:W===`delete`,title:`Delete Volume`}),(0,z.jsx)(M,{onOpenChange:e=>{e||($(),q(``),Y(``))},open:W===`attach`,children:(0,z.jsxs)(E,{children:[(0,z.jsxs)(j,{children:[(0,z.jsx)(D,{children:`Attach Volume`}),(0,z.jsx)(T,{children:`Attach this volume to a running instance.`})]}),(0,z.jsxs)(w,{children:[(0,z.jsx)(C,{children:(0,z.jsx)(`label`,{htmlFor:`attachInstance`,children:`Instance`})}),(0,z.jsxs)(te,{onValueChange:e=>q(e??``),value:K,children:[(0,z.jsx)(u,{className:`w-full`,id:`attachInstance`,children:(0,z.jsx)(c,{placeholder:`Select an instance`})}),(0,z.jsx)(ee,{children:oe.map(e=>{let t=o(e.Tags);return(0,z.jsxs)(l,{value:e.InstanceId??``,children:[e.InstanceId,t?` (${t})`:``]},e.InstanceId)})})]})]}),(0,z.jsxs)(w,{children:[(0,z.jsx)(C,{children:(0,z.jsx)(`label`,{htmlFor:`attachDevice`,children:`Device (optional)`})}),(0,z.jsx)(v,{id:`attachDevice`,onChange:e=>Y(e.target.value),placeholder:`/dev/sdf`,value:J})]}),(0,z.jsxs)(k,{children:[(0,z.jsx)(A,{children:`Cancel`}),(0,z.jsx)(O,{disabled:H.isPending||!K,onClick:async()=>{try{await H.mutateAsync({volumeId:e,instanceId:K,device:J||void 0}),$(),q(``),Y(``)}catch{}},children:H.isPending?`Attaching…`:`Attach`})]})]})}),(0,z.jsx)(M,{onOpenChange:e=>{e||($(),Z(!1))},open:W===`detach`,children:(0,z.jsxs)(E,{children:[(0,z.jsxs)(j,{children:[(0,z.jsx)(D,{children:`Detach Volume`}),(0,z.jsxs)(T,{children:[`Are you sure you want to detach the volume "`,B.VolumeId,`" from instance "`,B.Attachments?.[0]?.InstanceId,`"?`]})]}),(0,z.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,z.jsx)(`input`,{"aria-label":`Force detach`,checked:X,onChange:e=>Z(e.target.checked),type:`checkbox`}),`Force detach`]}),(0,z.jsxs)(k,{children:[(0,z.jsx)(A,{children:`Cancel`}),(0,z.jsx)(O,{disabled:U.isPending,onClick:async()=>{let t=B?.Attachments?.[0]?.InstanceId;try{await U.mutateAsync({volumeId:e,instanceId:t??void 0,force:X||void 0}),$(),Z(!1)}catch{}},children:U.isPending?`Detaching…`:`Detach`})]})]})})]}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(s,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),(0,z.jsx)(`p`,{className:`text-muted-foreground`,children:`Volume not found.`})]})}export{B as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{Ar as i}from"./awsClient.js";import{Bt as a,Ut as o}from"./auth.js";import{t as s}from"./back-link.js";import{c,i as l,n as ee,s as u,t as te}from"./select.js";import{t as d}from"./trash-2.js";import{n as f,t as p}from"./button.js";import{I as m,N as h,o as g}from"./ec2.js";import{Br as _,Hn as v,Ir as ne,Lr as y,Rt as re,bt as b,m as x}from"./index.js";import{t as S}from"./error-banner.js";import{t as ie}from"./page-heading.js";import{a as C,t as w}from"./field.js";import{a as T,i as E,l as D,n as O,o as k,r as A,s as j,t as M}from"./alert-dialog.js";import{t as ae}from"./delete-confirmation-dialog.js";import{n as N,t as P}from"./detail-row.js";import{t as F}from"./state-badge.js";var I=y(`link-2-off`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7`,key:`10o201`}],[`path`,{d:`M15 7h2a5 5 0 0 1 4 8`,key:`1d3206`}],[`line`,{x1:`8`,x2:`12`,y1:`12`,y2:`12`,key:`rvw6j4`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]),L=y(`link-2`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]),R=t(n()),z=e();function B(){let{id:e}=x.useParams(),t=_(),{data:n}=r(re(e)),{data:y}=r(b),B=n.Volumes?.[0],V=h(),H=g(),U=m(),[W,G]=(0,R.useState)(null),[K,q]=(0,R.useState)(``),[J,Y]=(0,R.useState)(``),[X,Z]=(0,R.useState)(!1),oe=y.Reservations?.flatMap(e=>e.Instances?.filter(e=>e.State?.Name===`running`)??[])??[],Q=B?.State===`available`&&(!B.Attachments||B.Attachments.length===0),$=()=>G(null);return B?.VolumeId?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(s,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),V.error&&(0,z.jsx)(S,{error:V.error,msg:`Failed to delete volume`}),H.error&&(0,z.jsx)(S,{error:H.error,msg:`Failed to attach volume`}),U.error&&(0,z.jsx)(S,{error:U.error,msg:`Failed to detach volume`}),(0,z.jsxs)(`div`,{className:`space-y-6`,children:[(0,z.jsx)(ie,{actions:(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsxs)(p,{disabled:!Q,onClick:()=>G(`delete`),size:`sm`,variant:`destructive`,children:[(0,z.jsx)(d,{className:`size-4`}),`Delete`]}),Q?(0,z.jsx)(i,{className:f({variant:`outline`}),params:{id:B.VolumeId},to:`/ec2/modify-volume/$id`,children:`Resize Volume`}):(0,z.jsx)(p,{disabled:!0,variant:`outline`,children:`Resize Volume`}),Q?(0,z.jsxs)(p,{onClick:()=>G(`attach`),size:`sm`,variant:`outline`,children:[(0,z.jsx)(L,{className:`size-4`}),`Attach`]}):null,B.Attachments&&B.Attachments.length>0?(0,z.jsxs)(p,{onClick:()=>G(`detach`),size:`sm`,variant:`outline`,children:[(0,z.jsx)(I,{className:`size-4`}),`Detach`]}):null,(0,z.jsxs)(i,{className:f({variant:`outline`,size:`sm`}),search:{volumeId:B.VolumeId},to:`/ec2/create-snapshot`,children:[(0,z.jsx)(ne,{className:`size-4`}),`Create Snapshot`]}),(0,z.jsx)(F,{state:B.State})]}),subtitle:`Volume Details`,title:B.VolumeId}),(0,z.jsxs)(N,{children:[(0,z.jsx)(N.Header,{children:`Volume Information`}),(0,z.jsxs)(N.Content,{children:[(0,z.jsx)(P,{label:`Volume ID`,value:B.VolumeId}),(0,z.jsx)(P,{label:`Size`,value:`${B.Size} GiB`}),(0,z.jsx)(P,{label:`Volume Type`,value:B.VolumeType}),(0,z.jsx)(P,{label:`State`,value:B.State}),(0,z.jsx)(P,{label:`Availability Zone`,value:B.AvailabilityZone}),(0,z.jsx)(P,{label:`Create Time`,value:a(B.CreateTime)}),(0,z.jsx)(P,{label:`Encrypted`,value:B.Encrypted?`Yes`:`No`}),(0,z.jsx)(P,{label:`KMS Key ID`,value:B.KmsKeyId})]})]}),B.Attachments&&B.Attachments.length>0&&(0,z.jsxs)(N,{children:[(0,z.jsx)(N.Header,{children:`Attachments`}),B.Attachments.map(e=>(0,z.jsxs)(N.Content,{children:[(0,z.jsx)(P,{label:`Instance ID`,value:e.InstanceId?(0,z.jsx)(i,{className:`text-primary hover:underline`,params:{id:e.InstanceId},to:`/ec2/describe-instances/$id`,children:e.InstanceId}):void 0}),(0,z.jsx)(P,{label:`Device`,value:e.Device}),(0,z.jsx)(P,{label:`Status`,value:e.State}),(0,z.jsx)(P,{label:`Attach Time`,value:a(e.AttachTime)}),(0,z.jsx)(P,{label:`Delete on Termination`,value:e.DeleteOnTermination?`Yes`:`No`})]},e.InstanceId))]})]}),(0,z.jsx)(ae,{description:`Are you sure you want to delete the volume "${B.VolumeId}"? This action cannot be undone.`,isPending:V.isPending,onConfirm:async()=>{try{await V.mutateAsync(e),t({to:`/ec2/describe-volumes`})}finally{$()}},onOpenChange:e=>{e||$()},open:W===`delete`,title:`Delete Volume`}),(0,z.jsx)(M,{onOpenChange:e=>{e||($(),q(``),Y(``))},open:W===`attach`,children:(0,z.jsxs)(E,{children:[(0,z.jsxs)(j,{children:[(0,z.jsx)(D,{children:`Attach Volume`}),(0,z.jsx)(T,{children:`Attach this volume to a running instance.`})]}),(0,z.jsxs)(w,{children:[(0,z.jsx)(C,{children:(0,z.jsx)(`label`,{htmlFor:`attachInstance`,children:`Instance`})}),(0,z.jsxs)(te,{onValueChange:e=>q(e??``),value:K,children:[(0,z.jsx)(u,{className:`w-full`,id:`attachInstance`,children:(0,z.jsx)(c,{placeholder:`Select an instance`})}),(0,z.jsx)(ee,{children:oe.map(e=>{let t=o(e.Tags);return(0,z.jsxs)(l,{value:e.InstanceId??``,children:[e.InstanceId,t?` (${t})`:``]},e.InstanceId)})})]})]}),(0,z.jsxs)(w,{children:[(0,z.jsx)(C,{children:(0,z.jsx)(`label`,{htmlFor:`attachDevice`,children:`Device (optional)`})}),(0,z.jsx)(v,{id:`attachDevice`,onChange:e=>Y(e.target.value),placeholder:`/dev/sdf`,value:J})]}),(0,z.jsxs)(k,{children:[(0,z.jsx)(A,{children:`Cancel`}),(0,z.jsx)(O,{disabled:H.isPending||!K,onClick:async()=>{try{await H.mutateAsync({volumeId:e,instanceId:K,device:J||void 0}),$(),q(``),Y(``)}catch{}},children:H.isPending?`Attaching…`:`Attach`})]})]})}),(0,z.jsx)(M,{onOpenChange:e=>{e||($(),Z(!1))},open:W===`detach`,children:(0,z.jsxs)(E,{children:[(0,z.jsxs)(j,{children:[(0,z.jsx)(D,{children:`Detach Volume`}),(0,z.jsxs)(T,{children:[`Are you sure you want to detach the volume "`,B.VolumeId,`" from instance "`,B.Attachments?.[0]?.InstanceId,`"?`]})]}),(0,z.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,z.jsx)(`input`,{"aria-label":`Force detach`,checked:X,onChange:e=>Z(e.target.checked),type:`checkbox`}),`Force detach`]}),(0,z.jsxs)(k,{children:[(0,z.jsx)(A,{children:`Cancel`}),(0,z.jsx)(O,{disabled:U.isPending,onClick:async()=>{let t=B?.Attachments?.[0]?.InstanceId;try{await U.mutateAsync({volumeId:e,instanceId:t??void 0,force:X||void 0}),$(),Z(!1)}catch{}},children:U.isPending?`Detaching…`:`Detach`})]})]})})]}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(s,{to:`/ec2/describe-volumes`,children:`Back to volumes`}),(0,z.jsx)(`p`,{className:`text-muted-foreground`,children:`Volume not found.`})]})}export{B as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id16.js b/spinifex/services/spinifexui/frontend/dist/assets/_id16.js index 47e5c597a..637ba746a 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id16.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id16.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{kr as i}from"./awsClient.js";import{Ut as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as s}from"./trash-2.js";import{t as c}from"./button.js";import{P as l}from"./ec2.js";import{Br as u,Bt as d,Lt as f,g as p}from"./index.js";import{t as m}from"./error-banner.js";import{t as h}from"./page-heading.js";import{t as g}from"./delete-confirmation-dialog.js";import{n as _,t as v}from"./detail-row.js";import{t as y}from"./state-badge.js";var b=t(n()),x=e();function S(){let{id:e}=p.useParams(),t=u(),{data:n}=r(d(e)),{data:S}=r(f),C=n.Vpcs?.[0],w=l(),[T,E]=(0,b.useState)(!1),D=S.Subnets?.filter(t=>t.VpcId===e)??[],O=async()=>{try{await w.mutateAsync(e),t({to:`/ec2/describe-vpcs`})}finally{E(!1)}};if(!C?.VpcId)return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(o,{to:`/ec2/describe-vpcs`,children:`Back to VPCs`}),(0,x.jsx)(`p`,{className:`text-muted-foreground`,children:`VPC not found.`})]});let k=a(C.Tags);return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(o,{to:`/ec2/describe-vpcs`,children:`Back to VPCs`}),w.error&&(0,x.jsx)(m,{error:w.error,msg:`Failed to delete VPC`}),(0,x.jsxs)(`div`,{className:`space-y-6`,children:[(0,x.jsx)(h,{actions:(0,x.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,x.jsxs)(c,{onClick:()=>E(!0),size:`sm`,variant:`destructive`,children:[(0,x.jsx)(s,{className:`size-4`}),`Delete`]}),(0,x.jsx)(y,{state:C.State})]}),subtitle:`VPC Details`,title:k?`${C.VpcId} (${k})`:C.VpcId}),(0,x.jsxs)(_,{children:[(0,x.jsx)(_.Header,{children:`VPC Information`}),(0,x.jsxs)(_.Content,{children:[(0,x.jsx)(v,{label:`VPC ID`,value:C.VpcId}),(0,x.jsx)(v,{label:`State`,value:C.State}),(0,x.jsx)(v,{label:`CIDR Block`,value:C.CidrBlock}),(0,x.jsx)(v,{label:`Is Default`,value:C.IsDefault?`Yes`:`No`}),(0,x.jsx)(v,{label:`DHCP Options ID`,value:C.DhcpOptionsId}),(0,x.jsx)(v,{label:`Instance Tenancy`,value:C.InstanceTenancy}),(0,x.jsx)(v,{label:`Owner ID`,value:C.OwnerId})]})]}),D.length>0&&(0,x.jsxs)(_,{children:[(0,x.jsxs)(_.Header,{children:[`Subnets (`,D.length,`)`]}),D.map(e=>e.SubnetId?(0,x.jsxs)(_.Content,{children:[(0,x.jsx)(v,{label:`Subnet ID`,value:(0,x.jsx)(i,{className:`text-primary hover:underline`,params:{id:e.SubnetId},to:`/ec2/describe-subnets/$id`,children:e.SubnetId})}),(0,x.jsx)(v,{label:`CIDR Block`,value:e.CidrBlock}),(0,x.jsx)(v,{label:`Availability Zone`,value:e.AvailabilityZone}),(0,x.jsx)(v,{label:`State`,value:e.State})]},e.SubnetId):null)]})]}),(0,x.jsx)(g,{description:`Are you sure you want to delete the VPC "${C.VpcId}"? This action cannot be undone. The VPC must have no associated subnets or internet gateways.`,isPending:w.isPending,onConfirm:O,onOpenChange:E,open:T,title:`Delete VPC`})]})}export{S as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{Ar as i}from"./awsClient.js";import{Ut as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as s}from"./trash-2.js";import{t as c}from"./button.js";import{P as l}from"./ec2.js";import{Br as u,Bt as d,Lt as f,g as p}from"./index.js";import{t as m}from"./error-banner.js";import{t as h}from"./page-heading.js";import{t as g}from"./delete-confirmation-dialog.js";import{n as _,t as v}from"./detail-row.js";import{t as y}from"./state-badge.js";var b=t(n()),x=e();function S(){let{id:e}=p.useParams(),t=u(),{data:n}=r(d(e)),{data:S}=r(f),C=n.Vpcs?.[0],w=l(),[T,E]=(0,b.useState)(!1),D=S.Subnets?.filter(t=>t.VpcId===e)??[],O=async()=>{try{await w.mutateAsync(e),t({to:`/ec2/describe-vpcs`})}finally{E(!1)}};if(!C?.VpcId)return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(o,{to:`/ec2/describe-vpcs`,children:`Back to VPCs`}),(0,x.jsx)(`p`,{className:`text-muted-foreground`,children:`VPC not found.`})]});let k=a(C.Tags);return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(o,{to:`/ec2/describe-vpcs`,children:`Back to VPCs`}),w.error&&(0,x.jsx)(m,{error:w.error,msg:`Failed to delete VPC`}),(0,x.jsxs)(`div`,{className:`space-y-6`,children:[(0,x.jsx)(h,{actions:(0,x.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,x.jsxs)(c,{onClick:()=>E(!0),size:`sm`,variant:`destructive`,children:[(0,x.jsx)(s,{className:`size-4`}),`Delete`]}),(0,x.jsx)(y,{state:C.State})]}),subtitle:`VPC Details`,title:k?`${C.VpcId} (${k})`:C.VpcId}),(0,x.jsxs)(_,{children:[(0,x.jsx)(_.Header,{children:`VPC Information`}),(0,x.jsxs)(_.Content,{children:[(0,x.jsx)(v,{label:`VPC ID`,value:C.VpcId}),(0,x.jsx)(v,{label:`State`,value:C.State}),(0,x.jsx)(v,{label:`CIDR Block`,value:C.CidrBlock}),(0,x.jsx)(v,{label:`Is Default`,value:C.IsDefault?`Yes`:`No`}),(0,x.jsx)(v,{label:`DHCP Options ID`,value:C.DhcpOptionsId}),(0,x.jsx)(v,{label:`Instance Tenancy`,value:C.InstanceTenancy}),(0,x.jsx)(v,{label:`Owner ID`,value:C.OwnerId})]})]}),D.length>0&&(0,x.jsxs)(_,{children:[(0,x.jsxs)(_.Header,{children:[`Subnets (`,D.length,`)`]}),D.map(e=>e.SubnetId?(0,x.jsxs)(_.Content,{children:[(0,x.jsx)(v,{label:`Subnet ID`,value:(0,x.jsx)(i,{className:`text-primary hover:underline`,params:{id:e.SubnetId},to:`/ec2/describe-subnets/$id`,children:e.SubnetId})}),(0,x.jsx)(v,{label:`CIDR Block`,value:e.CidrBlock}),(0,x.jsx)(v,{label:`Availability Zone`,value:e.AvailabilityZone}),(0,x.jsx)(v,{label:`State`,value:e.State})]},e.SubnetId):null)]})]}),(0,x.jsx)(g,{description:`Are you sure you want to delete the VPC "${C.VpcId}"? This action cannot be undone. The VPC must have no associated subnets or internet gateways.`,isPending:w.isPending,onConfirm:O,onOpenChange:E,open:T,title:`Delete VPC`})]})}export{S as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id17.js b/spinifex/services/spinifexui/frontend/dist/assets/_id17.js index 0037c99be..78b52909d 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id17.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id17.js @@ -1,3 +1,3 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useSuspenseQuery.js";import{kr as a}from"./awsClient.js";import{Bt as o,Vt as s}from"./auth.js";import{t as c}from"./button.js";import{a as l,i as u,t as d}from"./ecr.js";import{E as f,T as p,_ as m,w as h}from"./index.js";import{t as g}from"./page-heading.js";import{a as _,i as v,l as y,n as b,o as x,r as S,s as C,t as w}from"./alert-dialog.js";import{t as T}from"./textarea.js";var E=r(),D=t(n(),1),O=e(),k=`ap-southeast-2`;function A(e){if(!e)return``;let t=e.indexOf(`/`);return t===-1?e:e.slice(0,t)}function j(e){let t=(0,E.c)(18),{repositoryName:n,repositoryUri:r}=e,[i,a]=(0,D.useState)(!1),o;t[0]===r?o=t[1]:(o=A(r),t[0]=r,t[1]=o);let s=o,l=r??`${s}/${n}`,u=`aws ecr get-login-password --region ${k} | docker login --username AWS --password-stdin ${s}`,d=`docker build -t ${n} .`,f=`docker tag ${n}:latest ${l}:latest`,p=`docker push ${l}:latest`,m;t[2]!==u||t[3]!==d||t[4]!==f||t[5]!==p?(m=[u,d,f,p],t[2]=u,t[3]=d,t[4]=f,t[5]=p,t[6]=m):m=t[6];let h=m,g;t[7]===h?g=t[8]:(g=async function(){await navigator.clipboard.writeText(h.join(` -`)),a(!0),setTimeout(()=>a(!1),2e3)},t[7]=h,t[8]=g);let _=g,v;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,O.jsx)(`h2`,{className:`text-sm font-medium`,children:`Push commands`}),t[9]=v):v=t[9];let y=i?`Copied`:`Copy`,b;t[10]!==_||t[11]!==y?(b=(0,O.jsxs)(`div`,{className:`mb-2 flex items-center justify-between`,children:[v,(0,O.jsx)(c,{onClick:_,size:`sm`,variant:`outline`,children:y})]}),t[10]=_,t[11]=y,t[12]=b):b=t[12];let x=h.join(` -`),S;t[13]===x?S=t[14]:(S=(0,O.jsx)(`pre`,{className:`overflow-x-auto rounded bg-muted p-3 font-mono text-xs`,children:x}),t[13]=x,t[14]=S);let C;return t[15]!==b||t[16]!==S?(C=(0,O.jsxs)(`div`,{className:`rounded-lg border bg-card p-4`,children:[b,S]}),t[15]=b,t[16]=S,t[17]=C):C=t[17],C}function M(e){let t=(0,E.c)(36),{repositoryName:n}=e,r;t[0]===n?r=t[1]:(r=f(n),t[0]=n,t[1]=r);let{data:a}=i(r),o=l(),s=u(),[d,p]=(0,D.useState)(a??``),m,h;t[2]===a?(m=t[3],h=t[4]):(m=()=>{p(a??``)},h=[a],t[2]=a,t[3]=m,t[4]=h),(0,D.useEffect)(m,h);let g;t[5]!==d||t[6]!==n||t[7]!==o?(g=async function(){try{await o.mutateAsync({repositoryName:n,policyText:d})}catch{}},t[5]=d,t[6]=n,t[7]=o,t[8]=g):g=t[8];let _=g,v;t[9]!==s||t[10]!==n?(v=async function(){try{await s.mutateAsync(n)}catch{}},t[9]=s,t[10]=n,t[11]=v):v=t[11];let y=v,b=o.error??s.error,x;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,O.jsx)(`h2`,{className:`text-sm font-medium`,children:`Repository policy`}),t[12]=x):x=t[12];let S=s.isPending||!a,C=s.isPending?`Deleting…`:`Delete`,w;t[13]!==y||t[14]!==S||t[15]!==C?(w=(0,O.jsx)(c,{disabled:S,onClick:y,size:`sm`,variant:`destructive`,children:C}),t[13]=y,t[14]=S,t[15]=C,t[16]=w):w=t[16];let k;t[17]!==d||t[18]!==o.isPending?(k=o.isPending||d.trim().length===0,t[17]=d,t[18]=o.isPending,t[19]=k):k=t[19];let A=o.isPending?`Saving…`:`Save`,j;t[20]!==_||t[21]!==k||t[22]!==A?(j=(0,O.jsx)(c,{disabled:k,onClick:_,size:`sm`,children:A}),t[20]=_,t[21]=k,t[22]=A,t[23]=j):j=t[23];let M;t[24]!==j||t[25]!==w?(M=(0,O.jsxs)(`div`,{className:`mb-2 flex items-center justify-between`,children:[x,(0,O.jsxs)(`div`,{className:`flex gap-2`,children:[w,j]})]}),t[24]=j,t[25]=w,t[26]=M):M=t[26];let N;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(N=e=>p(e.target.value),t[27]=N):N=t[27];let P;t[28]===d?P=t[29]:(P=(0,O.jsx)(T,{className:`font-mono text-xs`,onChange:N,placeholder:`No policy attached. Paste an IAM policy document to set one.`,rows:10,value:d}),t[28]=d,t[29]=P);let F;t[30]===b?F=t[31]:(F=b&&(0,O.jsx)(`p`,{className:`mt-2 text-sm text-destructive`,children:b.message}),t[30]=b,t[31]=F);let I;return t[32]!==M||t[33]!==P||t[34]!==F?(I=(0,O.jsxs)(`div`,{className:`rounded-lg border bg-card p-4`,children:[M,P,F]}),t[32]=M,t[33]=P,t[34]=F,t[35]=I):I=t[35],I}function N(e){let t=(0,E.c)(52),{repositoryName:n}=e,{data:r}=i(h),l;t[0]===n?l=t[1]:(l=p(n),t[0]=n,t[1]=l);let{data:u}=i(l),f=d(),[m,T]=(0,D.useState)(null),k;t[2]===r.repositories?k=t[3]:(k=r.repositories??[],t[2]=r.repositories,t[3]=k);let A;if(t[4]!==n||t[5]!==k){let e;t[7]===n?e=t[8]:(e=e=>e.repositoryName===n,t[7]=n,t[8]=e),A=k.find(e),t[4]=n,t[5]=k,t[6]=A}else A=t[6];let N=A,P;t[9]===u.imageDetails?P=t[10]:(P=u.imageDetails??[],t[9]=u.imageDetails,t[10]=P);let F=P,I;t[11]!==f||t[12]!==m||t[13]!==n?(I=async function(){if(m)try{await f.mutateAsync({repositoryName:n,imageIds:[{imageDigest:m}]}),T(null)}catch{}},t[11]=f,t[12]=m,t[13]=n,t[14]=I):I=t[14];let L=I,ee=N?.repositoryUri,R;t[15]!==n||t[16]!==ee?(R=(0,O.jsx)(g,{subtitle:ee,title:n}),t[15]=n,t[16]=ee,t[17]=R):R=t[17];let z;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,O.jsx)(`div`,{className:`mb-4`,children:(0,O.jsx)(a,{className:`text-sm text-primary hover:underline`,to:`/ecr/list-repositories`,children:`← Back to repositories`})}),t[18]=z):z=t[18];let te=N?.repositoryUri,B;t[19]!==n||t[20]!==te?(B=(0,O.jsx)(j,{repositoryName:n,repositoryUri:te}),t[19]=n,t[20]=te,t[21]=B):B=t[21];let V;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,O.jsx)(`h2`,{className:`mb-2 text-sm font-medium`,children:`Images`}),t[22]=V):V=t[22];let H;t[23]===F?H=t[24]:(H=(0,O.jsxs)(`div`,{children:[V,F.length>0?(0,O.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,O.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,O.jsx)(`thead`,{children:(0,O.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,O.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Tags`}),(0,O.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Digest`}),(0,O.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Size`}),(0,O.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Pushed`}),(0,O.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,O.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,O.jsx)(`tbody`,{children:F.map(e=>{if(!e.imageDigest)return null;let t=e.imageDigest;return(0,O.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,O.jsx)(`td`,{className:`px-4 py-2`,children:e.imageTags&&e.imageTags.length>0?e.imageTags.join(`, `):``}),(0,O.jsxs)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:[t.slice(0,19),`…`]}),(0,O.jsx)(`td`,{className:`px-4 py-2`,children:s(e.imageSizeInBytes??0)}),(0,O.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:o(e.imagePushedAt)}),(0,O.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,O.jsx)(c,{onClick:()=>T(t),size:`sm`,variant:`destructive`,children:`Delete`})})]},t)})})]})}):(0,O.jsx)(`p`,{className:`text-muted-foreground`,children:`No images pushed yet.`})]}),t[23]=F,t[24]=H);let U;t[25]===n?U=t[26]:(U=(0,O.jsx)(M,{repositoryName:n}),t[25]=n,t[26]=U);let W;t[27]!==B||t[28]!==H||t[29]!==U?(W=(0,O.jsxs)(`div`,{className:`space-y-6`,children:[B,H,U]}),t[27]=B,t[28]=H,t[29]=U,t[30]=W):W=t[30];let G;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(G=e=>!e&&T(null),t[31]=G):G=t[31];let ne=m!==null,K;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(K=(0,O.jsxs)(C,{children:[(0,O.jsx)(y,{children:`Delete image?`}),(0,O.jsx)(_,{children:`This permanently deletes the image manifest and any tags pointing at it. This cannot be undone.`})]}),t[32]=K):K=t[32];let q;t[33]===f.error?q=t[34]:(q=f.error&&(0,O.jsx)(`p`,{className:`text-sm text-destructive`,children:f.error.message}),t[33]=f.error,t[34]=q);let J;t[35]===Symbol.for(`react.memo_cache_sentinel`)?(J=(0,O.jsx)(S,{children:`Cancel`}),t[35]=J):J=t[35];let Y;t[36]===L?Y=t[37]:(Y=e=>{e.preventDefault(),L()},t[36]=L,t[37]=Y);let re=f.isPending?`Deleting…`:`Delete`,X;t[38]!==f.isPending||t[39]!==Y||t[40]!==re?(X=(0,O.jsxs)(x,{children:[J,(0,O.jsx)(b,{disabled:f.isPending,onClick:Y,children:re})]}),t[38]=f.isPending,t[39]=Y,t[40]=re,t[41]=X):X=t[41];let Z;t[42]!==q||t[43]!==X?(Z=(0,O.jsxs)(v,{children:[K,q,X]}),t[42]=q,t[43]=X,t[44]=Z):Z=t[44];let Q;t[45]!==ne||t[46]!==Z?(Q=(0,O.jsx)(w,{onOpenChange:G,open:ne,children:Z}),t[45]=ne,t[46]=Z,t[47]=Q):Q=t[47];let $;return t[48]!==W||t[49]!==Q||t[50]!==R?($=(0,O.jsxs)(O.Fragment,{children:[R,z,W,Q]}),t[48]=W,t[49]=Q,t[50]=R,t[51]=$):$=t[51],$}function P(){let e=(0,E.c)(2),{id:t}=m.useParams(),n=decodeURIComponent(t),r;return e[0]===n?r=e[1]:(r=(0,O.jsx)(N,{repositoryName:n}),e[0]=n,e[1]=r),r}export{P as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useSuspenseQuery.js";import{Ar as a}from"./awsClient.js";import{Bt as o,Vt as s}from"./auth.js";import{t as c}from"./button.js";import{a as l,i as u,o as d,t as f}from"./ecr.js";import{E as p,T as m,_ as h,w as g}from"./index.js";import{t as _}from"./page-heading.js";import{a as v,i as y,l as b,n as x,o as S,r as C,s as w,t as T}from"./alert-dialog.js";import{t as E}from"./textarea.js";import{i as D,n as O,r as k,t as A}from"./tabs.js";import{t as j}from"./badge.js";var M=r(),N=t(n(),1),P=e();function F(e){let t=(0,M.c)(36),{repositoryName:n}=e,r;t[0]===n?r=t[1]:(r=p(n),t[0]=n,t[1]=r);let{data:a}=i(r),o=d(),s=u(),[l,f]=(0,N.useState)(a??``),m,h;t[2]===a?(m=t[3],h=t[4]):(m=()=>{f(a??``)},h=[a],t[2]=a,t[3]=m,t[4]=h),(0,N.useEffect)(m,h);let g;t[5]!==l||t[6]!==n||t[7]!==o?(g=async function(){try{await o.mutateAsync({repositoryName:n,policyText:l})}catch{}},t[5]=l,t[6]=n,t[7]=o,t[8]=g):g=t[8];let _=g,v;t[9]!==s||t[10]!==n?(v=async function(){try{await s.mutateAsync(n)}catch{}},t[9]=s,t[10]=n,t[11]=v):v=t[11];let y=v,b=o.error??s.error,x;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,P.jsx)(`h2`,{className:`text-sm font-medium`,children:`Repository policy`}),t[12]=x):x=t[12];let S=s.isPending||!a,C=s.isPending?`Deleting…`:`Delete`,w;t[13]!==y||t[14]!==S||t[15]!==C?(w=(0,P.jsx)(c,{disabled:S,onClick:y,size:`sm`,variant:`destructive`,children:C}),t[13]=y,t[14]=S,t[15]=C,t[16]=w):w=t[16];let T;t[17]!==l||t[18]!==o.isPending?(T=o.isPending||l.trim().length===0,t[17]=l,t[18]=o.isPending,t[19]=T):T=t[19];let D=o.isPending?`Saving…`:`Save`,O;t[20]!==_||t[21]!==T||t[22]!==D?(O=(0,P.jsx)(c,{disabled:T,onClick:_,size:`sm`,children:D}),t[20]=_,t[21]=T,t[22]=D,t[23]=O):O=t[23];let k;t[24]!==O||t[25]!==w?(k=(0,P.jsxs)(`div`,{className:`mb-2 flex items-center justify-between`,children:[x,(0,P.jsxs)(`div`,{className:`flex gap-2`,children:[w,O]})]}),t[24]=O,t[25]=w,t[26]=k):k=t[26];let A;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(A=e=>f(e.target.value),t[27]=A):A=t[27];let j;t[28]===l?j=t[29]:(j=(0,P.jsx)(E,{className:`font-mono text-xs`,onChange:A,placeholder:`No policy attached. Paste an IAM policy document to set one.`,rows:10,value:l}),t[28]=l,t[29]=j);let F;t[30]===b?F=t[31]:(F=b&&(0,P.jsx)(`p`,{className:`mt-2 text-sm text-destructive`,children:b.message}),t[30]=b,t[31]=F);let I;return t[32]!==k||t[33]!==j||t[34]!==F?(I=(0,P.jsxs)(`div`,{className:`rounded-lg border bg-card p-4`,children:[k,j,F]}),t[32]=k,t[33]=j,t[34]=F,t[35]=I):I=t[35],I}var I=`ap-southeast-2`;function L(e){if(!e)return``;let t=e.indexOf(`/`);return t===-1?e:e.slice(0,t)}function R(e){let t=(0,M.c)(18),{repositoryName:n,repositoryUri:r}=e,[i,a]=(0,N.useState)(!1),o;t[0]===r?o=t[1]:(o=L(r),t[0]=r,t[1]=o);let s=o,l=r??`${s}/${n}`,u=`aws ecr get-login-password --region ${I} | docker login --username AWS --password-stdin ${s}`,d=`docker build -t ${n} .`,f=`docker tag ${n}:latest ${l}:latest`,p=`docker push ${l}:latest`,m;t[2]!==u||t[3]!==d||t[4]!==f||t[5]!==p?(m=[u,d,f,p],t[2]=u,t[3]=d,t[4]=f,t[5]=p,t[6]=m):m=t[6];let h=m,g;t[7]===h?g=t[8]:(g=async function(){await navigator.clipboard.writeText(h.join(` +`)),a(!0),setTimeout(()=>a(!1),2e3)},t[7]=h,t[8]=g);let _=g,v;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,P.jsx)(`h2`,{className:`text-sm font-medium`,children:`Push commands`}),t[9]=v):v=t[9];let y=i?`Copied`:`Copy`,b;t[10]!==_||t[11]!==y?(b=(0,P.jsxs)(`div`,{className:`mb-2 flex items-center justify-between`,children:[v,(0,P.jsx)(c,{onClick:_,size:`sm`,variant:`outline`,children:y})]}),t[10]=_,t[11]=y,t[12]=b):b=t[12];let x=h.join(` +`),S;t[13]===x?S=t[14]:(S=(0,P.jsx)(`pre`,{className:`overflow-x-auto rounded bg-muted p-3 font-mono text-xs`,children:x}),t[13]=x,t[14]=S);let C;return t[15]!==b||t[16]!==S?(C=(0,P.jsxs)(`div`,{className:`rounded-lg border bg-card p-4`,children:[b,S]}),t[15]=b,t[16]=S,t[17]=C):C=t[17],C}function ee(e){let t=(0,M.c)(31),{repositoryName:n,repositoryUri:r,imageTagMutability:i}=e,a=l(),o=i===`IMMUTABLE`,s=o?`MUTABLE`:`IMMUTABLE`,u;t[0]!==s||t[1]!==a||t[2]!==n?(u=async function(){try{await a.mutateAsync({repositoryName:n,imageTagMutability:s})}catch{}},t[0]=s,t[1]=a,t[2]=n,t[3]=u):u=t[3];let d=u,f;t[4]!==n||t[5]!==r?(f=(0,P.jsx)(R,{repositoryName:n,repositoryUri:r}),t[4]=n,t[5]=r,t[6]=f):f=t[6];let p;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,P.jsx)(`h2`,{className:`text-sm font-medium`,children:`Tag immutability`}),t[7]=p):p=t[7];let m=o?`Tags cannot be overwritten to point at a different image.`:`Tags can be overwritten by a new push.`,h;t[8]===m?h=t[9]:(h=(0,P.jsxs)(`div`,{children:[p,(0,P.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:m})]}),t[8]=m,t[9]=h);let g=o?`default`:`outline`,_=o?`Immutable`:`Mutable`,v;t[10]!==g||t[11]!==_?(v=(0,P.jsx)(j,{variant:g,children:_}),t[10]=g,t[11]=_,t[12]=v):v=t[12];let y;t[13]!==h||t[14]!==v?(y=(0,P.jsxs)(`div`,{className:`flex items-center justify-between`,children:[h,v]}),t[13]=h,t[14]=v,t[15]=y):y=t[15];let b;t[16]===a.error?b=t[17]:(b=a.error&&(0,P.jsx)(`p`,{className:`mt-2 text-sm text-destructive`,children:a.error.message}),t[16]=a.error,t[17]=b);let x;t[18]===d?x=t[19]:(x=()=>void d(),t[18]=d,t[19]=x);let S=a.isPending?`Saving…`:o?`Make mutable`:`Make immutable`,C;t[20]!==a.isPending||t[21]!==x||t[22]!==S?(C=(0,P.jsx)(c,{className:`mt-3`,disabled:a.isPending,onClick:x,size:`sm`,variant:`outline`,children:S}),t[20]=a.isPending,t[21]=x,t[22]=S,t[23]=C):C=t[23];let w;t[24]!==b||t[25]!==C||t[26]!==y?(w=(0,P.jsxs)(`div`,{className:`rounded-lg border bg-card p-4`,children:[y,b,C]}),t[24]=b,t[25]=C,t[26]=y,t[27]=w):w=t[27];let T;return t[28]!==w||t[29]!==f?(T=(0,P.jsxs)(`div`,{className:`space-y-6`,children:[f,w]}),t[28]=w,t[29]=f,t[30]=T):T=t[30],T}function z(e){let t=(0,M.c)(53),{repositoryName:n}=e,{data:r}=i(g),l;t[0]===n?l=t[1]:(l=m(n),t[0]=n,t[1]=l);let{data:u}=i(l),d=f(),[p,h]=(0,N.useState)(null),E;t[2]===r.repositories?E=t[3]:(E=r.repositories??[],t[2]=r.repositories,t[3]=E);let j;if(t[4]!==n||t[5]!==E){let e;t[7]===n?e=t[8]:(e=e=>e.repositoryName===n,t[7]=n,t[8]=e),j=E.find(e),t[4]=n,t[5]=E,t[6]=j}else j=t[6];let I=j,L;t[9]===u.imageDetails?L=t[10]:(L=u.imageDetails??[],t[9]=u.imageDetails,t[10]=L);let R=L,z;t[11]!==d||t[12]!==p||t[13]!==n?(z=async function(){if(p)try{await d.mutateAsync({repositoryName:n,imageIds:[{imageDigest:p}]}),h(null)}catch{}},t[11]=d,t[12]=p,t[13]=n,t[14]=z):z=t[14];let te=z,ne=I?.repositoryUri,B;t[15]!==n||t[16]!==ne?(B=(0,P.jsx)(_,{subtitle:ne,title:n}),t[15]=n,t[16]=ne,t[17]=B):B=t[17];let V;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,P.jsx)(`div`,{className:`mb-4`,children:(0,P.jsx)(a,{className:`text-sm text-primary hover:underline`,to:`/ecr/list-repositories`,children:`← Back to repositories`})}),t[18]=V):V=t[18];let H;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,P.jsxs)(O,{children:[(0,P.jsx)(D,{value:`summary`,children:`Summary`}),(0,P.jsx)(D,{value:`images`,children:`Images`}),(0,P.jsx)(D,{value:`permissions`,children:`Permissions`})]}),t[19]=H):H=t[19];let re=I?.imageTagMutability,ie=I?.repositoryUri,U;t[20]!==n||t[21]!==re||t[22]!==ie?(U=(0,P.jsx)(k,{value:`summary`,children:(0,P.jsx)(ee,{imageTagMutability:re,repositoryName:n,repositoryUri:ie})}),t[20]=n,t[21]=re,t[22]=ie,t[23]=U):U=t[23];let W;t[24]===R?W=t[25]:(W=(0,P.jsx)(k,{value:`images`,children:R.length>0?(0,P.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,P.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,P.jsx)(`thead`,{children:(0,P.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,P.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Tags`}),(0,P.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Digest`}),(0,P.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Size`}),(0,P.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Pushed`}),(0,P.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,P.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,P.jsx)(`tbody`,{children:R.map(e=>{if(!e.imageDigest)return null;let t=e.imageDigest;return(0,P.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,P.jsx)(`td`,{className:`px-4 py-2`,children:e.imageTags&&e.imageTags.length>0?e.imageTags.join(`, `):``}),(0,P.jsxs)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:[t.slice(0,19),`…`]}),(0,P.jsx)(`td`,{className:`px-4 py-2`,children:s(e.imageSizeInBytes??0)}),(0,P.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:o(e.imagePushedAt)}),(0,P.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,P.jsx)(c,{onClick:()=>h(t),size:`sm`,variant:`destructive`,children:`Delete`})})]},t)})})]})}):(0,P.jsx)(`p`,{className:`text-muted-foreground`,children:`No images pushed yet.`})}),t[24]=R,t[25]=W);let G;t[26]===n?G=t[27]:(G=(0,P.jsx)(k,{value:`permissions`,children:(0,P.jsx)(F,{repositoryName:n})}),t[26]=n,t[27]=G);let K;t[28]!==U||t[29]!==W||t[30]!==G?(K=(0,P.jsxs)(A,{defaultValue:`summary`,children:[H,U,W,G]}),t[28]=U,t[29]=W,t[30]=G,t[31]=K):K=t[31];let q;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(q=e=>!e&&h(null),t[32]=q):q=t[32];let ae=p!==null,J;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(J=(0,P.jsxs)(w,{children:[(0,P.jsx)(b,{children:`Delete image?`}),(0,P.jsx)(v,{children:`This permanently deletes the image manifest and any tags pointing at it. This cannot be undone.`})]}),t[33]=J):J=t[33];let Y;t[34]===d.error?Y=t[35]:(Y=d.error&&(0,P.jsx)(`p`,{className:`text-sm text-destructive`,children:d.error.message}),t[34]=d.error,t[35]=Y);let oe;t[36]===Symbol.for(`react.memo_cache_sentinel`)?(oe=(0,P.jsx)(C,{children:`Cancel`}),t[36]=oe):oe=t[36];let X;t[37]===te?X=t[38]:(X=e=>{e.preventDefault(),te()},t[37]=te,t[38]=X);let se=d.isPending?`Deleting…`:`Delete`,Z;t[39]!==d.isPending||t[40]!==X||t[41]!==se?(Z=(0,P.jsxs)(S,{children:[oe,(0,P.jsx)(x,{disabled:d.isPending,onClick:X,children:se})]}),t[39]=d.isPending,t[40]=X,t[41]=se,t[42]=Z):Z=t[42];let Q;t[43]!==Y||t[44]!==Z?(Q=(0,P.jsxs)(y,{children:[J,Y,Z]}),t[43]=Y,t[44]=Z,t[45]=Q):Q=t[45];let $;t[46]!==ae||t[47]!==Q?($=(0,P.jsx)(T,{onOpenChange:q,open:ae,children:Q}),t[46]=ae,t[47]=Q,t[48]=$):$=t[48];let ce;return t[49]!==K||t[50]!==$||t[51]!==B?(ce=(0,P.jsxs)(P.Fragment,{children:[B,V,K,$]}),t[49]=K,t[50]=$,t[51]=B,t[52]=ce):ce=t[52],ce}function te(){let e=(0,M.c)(2),{id:t}=h.useParams(),n=decodeURIComponent(t),r;return e[0]===n?r=e[1]:(r=(0,P.jsx)(z,{repositoryName:n}),e[0]=n,e[1]=r),r}export{te as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id3.js b/spinifex/services/spinifexui/frontend/dist/assets/_id3.js index aa27ca360..b11a34f77 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id3.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id3.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useQuery.js";import{t as a}from"./useSuspenseQuery.js";import{kr as o}from"./awsClient.js";import{Bt as s,Ht as c}from"./auth.js";import{t as l}from"./back-link.js";import{c as u,i as d,n as f,s as p,t as m}from"./select.js";import{t as h}from"./rotate-cw.js";import{t as g}from"./trash-2.js";import{t as _}from"./button.js";import{B as v,H as y,J as b,R as x,W as S,X as C,Y as w,r as T,u as E}from"./ec2.js";import{Hn as D,Lr as O,Ut as k,gt as A,ht as j,nt as M,r as N,vt as ee,yt as te}from"./index.js";import{t as P}from"./error-banner.js";import{t as ne}from"./page-heading.js";import{a as F,t as I}from"./field.js";import{a as L,i as R,l as z,n as B,o as V,r as H,s as U,t as re}from"./alert-dialog.js";import{t as W}from"./delete-confirmation-dialog.js";import{n as G,t as K}from"./detail-row.js";import{t as ie}from"./state-badge.js";import{t as ae}from"./ami-details.js";import{r as oe}from"./admin.js";import{t as q}from"./textarea.js";var se=O(`image-plus`,[[`path`,{d:`M16 5h6`,key:`1vod17`}],[`path`,{d:`M19 2v6`,key:`4bpg5p`}],[`path`,{d:`M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5`,key:`1ue2ih`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}]]),ce=O(`pause`,[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]),J=O(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),le=O(`settings-2`,[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]),ue=O(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),Y=t(n(),1),X=e();function de({instanceId:e,open:t,onOpenChange:n}){let r=E(),[i,a]=(0,Y.useState)(``),[o,s]=(0,Y.useState)(``),[c,l]=(0,Y.useState)(null);function u(e){e||(a(``),s(``),l(null)),n(e)}async function d(){try{l((await r.mutateAsync({instanceId:e,name:i,description:o||void 0})).ImageId??null),a(``),s(``)}catch{}}return(0,X.jsx)(re,{onOpenChange:u,open:t,children:(0,X.jsxs)(R,{children:[(0,X.jsxs)(U,{children:[(0,X.jsx)(z,{children:c?`Image Created`:`Create Image (AMI)`}),(0,X.jsx)(L,{children:c?`Image "${c}" was created successfully.`:`Create an AMI from instance "${e}".`})]}),!c&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(I,{children:[(0,X.jsx)(F,{children:(0,X.jsx)(`label`,{htmlFor:`imageName`,children:`Name`})}),(0,X.jsx)(D,{id:`imageName`,onChange:e=>a(e.target.value),placeholder:`my-image`,value:i})]}),(0,X.jsxs)(I,{children:[(0,X.jsx)(F,{children:(0,X.jsx)(`label`,{htmlFor:`imageDescription`,children:`Description`})}),(0,X.jsx)(q,{id:`imageDescription`,onChange:e=>s(e.target.value),placeholder:`Optional description`,rows:2,value:o})]})]}),(0,X.jsxs)(V,{children:[(0,X.jsx)(H,{children:c?`Close`:`Cancel`}),!c&&(0,X.jsx)(B,{disabled:r.isPending||!i.trim(),onClick:d,children:r.isPending?`Creating…`:`Create Image`})]})]})})}var Z=r();function fe(e){let t=(0,Z.c)(31),{instanceId:n}=e,r;t[0]===n?r=t[1]:(r=j(n),t[0]=n,t[1]=r);let{data:a}=i(r),{data:s}=i(M),c=T(),l=x(),[d,h]=(0,Y.useState)(``),g;t[2]===a?.IamInstanceProfileAssociations?g=t[3]:(g=a?.IamInstanceProfileAssociations?.find(Q),t[2]=a?.IamInstanceProfileAssociations,t[3]=g);let v=g,y;t[4]===s?.InstanceProfiles?y=t[5]:(y=s?.InstanceProfiles??[],t[4]=s?.InstanceProfiles,t[5]=y);let b=y,S;t[6]!==c||t[7]!==n||t[8]!==d?(S=async()=>{d&&(await c.mutateAsync({instanceId:n,instanceProfileName:d}),h(``))},t[6]=c,t[7]=n,t[8]=d,t[9]=S):S=t[9];let C=S,w;t[10]!==v||t[11]!==l||t[12]!==n?(w=async()=>{v?.AssociationId&&await l.mutateAsync({associationId:v.AssociationId,instanceId:n})},t[10]=v,t[11]=l,t[12]=n,t[13]=w):w=t[13];let E=w,D;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,X.jsx)(G.Header,{children:`IAM Role`}),t[14]=D):D=t[14];let O;t[15]===c.error?O=t[16]:(O=c.error&&(0,X.jsx)(`div`,{className:`col-span-2`,children:(0,X.jsx)(P,{error:c.error,msg:`Failed to associate instance profile`})}),t[15]=c.error,t[16]=O);let k;t[17]===l.error?k=t[18]:(k=l.error&&(0,X.jsx)(`div`,{className:`col-span-2`,children:(0,X.jsx)(P,{error:l.error,msg:`Failed to disassociate instance profile`})}),t[17]=l.error,t[18]=k);let A;t[19]!==c.isPending||t[20]!==v||t[21]!==l.isPending||t[22]!==C||t[23]!==E||t[24]!==b||t[25]!==d?(A=v?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(K,{label:`Instance Profile ARN`,value:v.IamInstanceProfile?.Arn}),(0,X.jsx)(K,{label:`State`,value:(0,X.jsx)(ie,{state:v.State})}),(0,X.jsx)(`div`,{className:`col-span-2 flex justify-end`,children:(0,X.jsx)(_,{disabled:l.isPending,onClick:E,size:`sm`,variant:`destructive`,children:l.isPending?`Detaching…`:`Detach`})})]}):(0,X.jsxs)(`div`,{className:`col-span-2 space-y-3`,children:[(0,X.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No instance profile is associated. Associate one to flow role credentials to this instance via IMDS.`}),b.length>0?(0,X.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,X.jsxs)(m,{onValueChange:e=>h(e??``),value:d,children:[(0,X.jsx)(p,{className:`w-full`,children:(0,X.jsx)(u,{placeholder:`Select an instance profile`})}),(0,X.jsx)(f,{children:b.map(pe)})]}),(0,X.jsx)(_,{disabled:!d||c.isPending,onClick:C,size:`sm`,children:c.isPending?`Associating…`:`Associate`})]}):(0,X.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`No instance profiles exist.`,` `,(0,X.jsx)(o,{className:`text-primary hover:underline`,to:`/iam/create-instance-profile`,children:`Create one`}),` `,`first.`]})]}),t[19]=c.isPending,t[20]=v,t[21]=l.isPending,t[22]=C,t[23]=E,t[24]=b,t[25]=d,t[26]=A):A=t[26];let N;return t[27]!==O||t[28]!==k||t[29]!==A?(N=(0,X.jsxs)(G,{children:[D,(0,X.jsxs)(G.Content,{children:[O,k,A]})]}),t[27]=O,t[28]=k,t[29]=A,t[30]=N):N=t[30],N}function pe(e){return(0,X.jsx)(d,{value:e.InstanceProfileName??``,children:e.InstanceProfileName},e.InstanceProfileName)}function Q(e){return e.State===`associating`||e.State===`associated`}var $=new Set([`pending`,`stopping`,`shutting-down`,`terminated`]);function me(e){let t=(0,Z.c)(43),{instanceId:n,state:r}=e,i=b(),a=w(),o=S(),s=C(),[c,l]=(0,Y.useState)(!1),u=$.has(r??``),d;t[0]!==n||t[1]!==s?(d=()=>{s.mutate(n,{onSettled:()=>l(!1)})},t[0]=n,t[1]=s,t[2]=d):d=t[2];let f=d;if(u&&r!==`terminated`){let e;return t[3]===r?e=t[4]:(e=(0,X.jsx)(`div`,{className:`rounded-lg border bg-muted/50 p-4`,children:(0,X.jsxs)(`p`,{className:`text-center text-sm text-muted-foreground`,children:[`Instance is `,r,`. Actions will be available once the operation completes.`]})}),t[3]=r,t[4]=e),e}if(r===`terminated`){let e;return t[5]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,X.jsx)(`div`,{className:`rounded-lg border bg-muted/50 p-4`,children:(0,X.jsx)(`p`,{className:`text-center text-sm text-muted-foreground`,children:`This instance has been terminated and cannot be managed.`})}),t[5]=e):e=t[5],e}let p;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,X.jsx)(`h2`,{className:`mb-4 font-semibold`,children:`Instance Actions`}),t[6]=p):p=t[6];let m;t[7]===i.error?m=t[8]:(m=i.error&&(0,X.jsx)(P,{error:i.error,msg:`Failed to start instance`}),t[7]=i.error,t[8]=m);let v;t[9]===a.error?v=t[10]:(v=a.error&&(0,X.jsx)(P,{error:a.error,msg:`Failed to stop instance`}),t[9]=a.error,t[10]=v);let y;t[11]===o.error?y=t[12]:(y=o.error&&(0,X.jsx)(P,{error:o.error,msg:`Failed to reboot instance`}),t[11]=o.error,t[12]=y);let x;t[13]===s.error?x=t[14]:(x=s.error&&(0,X.jsx)(P,{error:s.error,msg:`Failed to terminate instance`}),t[13]=s.error,t[14]=x);let T;t[15]!==n||t[16]!==i||t[17]!==r?(T=r===`stopped`&&(0,X.jsxs)(_,{disabled:i.isPending,onClick:()=>i.mutate(n),size:`sm`,variant:`default`,children:[(0,X.jsx)(J,{className:`size-4`}),i.isPending?`Starting`:`Start`]}),t[15]=n,t[16]=i,t[17]=r,t[18]=T):T=t[18];let E;t[19]!==n||t[20]!==o||t[21]!==r||t[22]!==a?(E=r===`running`&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(_,{disabled:a.isPending,onClick:()=>a.mutate(n),size:`sm`,variant:`outline`,children:[(0,X.jsx)(ce,{className:`size-4`}),a.isPending?`Stopping`:`Stop`]}),(0,X.jsxs)(_,{disabled:o.isPending,onClick:()=>o.mutate(n),size:`sm`,variant:`outline`,children:[(0,X.jsx)(h,{className:`size-4`}),o.isPending?`Rebooting`:`Reboot`]})]}),t[19]=n,t[20]=o,t[21]=r,t[22]=a,t[23]=E):E=t[23];let D;t[24]!==r||t[25]!==s.isPending?(D=(r===`stopped`||r===`running`)&&(0,X.jsxs)(_,{disabled:s.isPending,onClick:()=>l(!0),size:`sm`,variant:`destructive`,children:[(0,X.jsx)(g,{className:`size-4`}),s.isPending?`Terminating`:`Terminate`]}),t[24]=r,t[25]=s.isPending,t[26]=D):D=t[26];let O;t[27]!==T||t[28]!==E||t[29]!==D?(O=(0,X.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[T,E,D]}),t[27]=T,t[28]=E,t[29]=D,t[30]=O):O=t[30];let k=`Are you sure you want to terminate the instance "${n}"? This action cannot be undone.`,A;t[31]!==f||t[32]!==c||t[33]!==k||t[34]!==s.isPending?(A=(0,X.jsx)(W,{confirmLabel:`Terminate`,description:k,isPending:s.isPending,onConfirm:f,onOpenChange:l,open:c,pendingLabel:`Terminating…`,title:`Terminate Instance`}),t[31]=f,t[32]=c,t[33]=k,t[34]=s.isPending,t[35]=A):A=t[35];let j;return t[36]!==O||t[37]!==A||t[38]!==m||t[39]!==v||t[40]!==y||t[41]!==x?(j=(0,X.jsxs)(`div`,{className:`rounded-lg border bg-card p-4`,children:[p,m,v,y,x,O,A]}),t[36]=O,t[37]=A,t[38]=m,t[39]=v,t[40]=y,t[41]=x,t[42]=j):j=t[42],j}function he(){let{id:e}=N.useParams(),{isAdmin:t}=k(),{data:n}=a(ee(e)),r=n.Reservations?.[0]?.Instances?.[0],{data:h}=a(A(r?.ImageId)),g=h?.Images?.[0],{data:b}=a(te),{data:x}=i({...oe,enabled:t,refetchInterval:5e3}),S=x?.vms?.find(t=>t.instance_id===e),C=y(),w=v(),[T,E]=(0,Y.useState)(!1),[D,O]=(0,Y.useState)(``),[j,M]=(0,Y.useState)(!1),[W,q]=(0,Y.useState)(null),[ce,J]=(0,Y.useState)(!1),Z=[...new Set(b.InstanceTypes?.flatMap(e=>e.InstanceType?[e.InstanceType]:[]))].toSorted();if(!r?.InstanceId)return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(l,{to:`/ec2/describe-instances`,children:`Back to instances`}),(0,X.jsx)(`p`,{className:`text-muted-foreground`,children:`Instance not found.`})]});let pe=s(r.LaunchTime),Q=r.State?.Name===`running`,$=r.State?.Name===`stopped`;async function he(){try{await C.mutateAsync({instanceId:e,instanceType:D}),E(!1),O(``)}catch{}}async function ge(){try{let t=await w.mutateAsync(e);q(t.Output?atob(t.Output):`(no output)`),M(!0)}catch{}}return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(l,{to:`/ec2/describe-instances`,children:`Back to instances`}),C.error&&(0,X.jsx)(P,{error:C.error,msg:`Failed to modify instance`}),w.error&&(0,X.jsx)(P,{error:w.error,msg:`Failed to get console output`}),(0,X.jsxs)(`div`,{className:`space-y-6`,children:[(0,X.jsx)(ne,{actions:(0,X.jsxs)(`div`,{className:`flex items-center gap-2`,children:[Q&&(0,X.jsxs)(_,{disabled:w.isPending,onClick:ge,size:`sm`,variant:`outline`,children:[(0,X.jsx)(ue,{className:`size-4`}),w.isPending?`Fetching…`:`View Console`]}),(Q||$)&&(0,X.jsxs)(_,{onClick:()=>J(!0),size:`sm`,variant:`outline`,children:[(0,X.jsx)(se,{className:`size-4`}),`Create Image`]}),$&&(0,X.jsxs)(_,{onClick:()=>{O(r.InstanceType??``),E(!0)},size:`sm`,variant:`outline`,children:[(0,X.jsx)(le,{className:`size-4`}),`Modify Instance`]}),(0,X.jsx)(ie,{state:r.State?.Name})]}),subtitle:`Instance Details`,title:r.InstanceId}),(0,X.jsx)(me,{instanceId:r.InstanceId,state:r.State?.Name}),j&&W!==null&&(0,X.jsxs)(G,{children:[(0,X.jsx)(G.Header,{children:(0,X.jsxs)(`div`,{className:`flex items-center justify-between`,children:[`Console Output`,(0,X.jsx)(_,{onClick:()=>{M(!1),q(null)},size:`sm`,variant:`ghost`,children:`Hide`})]})}),(0,X.jsx)(`div`,{className:`p-4`,children:(0,X.jsx)(`pre`,{className:`max-h-96 overflow-y-auto rounded bg-muted p-3 font-mono text-xs whitespace-pre-wrap`,children:W})})]}),(0,X.jsxs)(G,{children:[(0,X.jsx)(G.Header,{children:`Instance Information`}),(0,X.jsxs)(G.Content,{children:[(0,X.jsx)(K,{label:`Instance ID`,value:r.InstanceId}),(0,X.jsx)(K,{label:`Instance Type`,value:r.InstanceType}),(0,X.jsx)(K,{label:`Instance State`,value:r.State?.Name}),(0,X.jsx)(K,{label:`State Code`,value:r.State?.Code?.toString()}),(0,X.jsx)(K,{label:`Launch Time`,value:pe}),(0,X.jsx)(K,{label:`Availability Zone`,value:r.Placement?.AvailabilityZone}),(0,X.jsx)(K,{label:`Placement Group`,value:r.Placement?.GroupName?(0,X.jsx)(o,{className:`text-primary hover:underline`,to:`/ec2/describe-placement-groups`,children:r.Placement.GroupName}):void 0})]})]}),(r.PrivateIpAddress||r.PublicIpAddress||r.VpcId||r.SubnetId||r.SecurityGroups&&r.SecurityGroups.length>0)&&(0,X.jsxs)(G,{children:[(0,X.jsx)(G.Header,{children:`Network & Security`}),(0,X.jsxs)(G.Content,{children:[(0,X.jsx)(K,{label:`Private IP Address`,value:r.PrivateIpAddress}),(0,X.jsx)(K,{label:`Public IP Address`,value:r.PublicIpAddress}),(0,X.jsx)(K,{label:`Private DNS`,value:r.PrivateDnsName}),(0,X.jsx)(K,{label:`Public DNS`,value:r.PublicDnsName}),(0,X.jsx)(K,{label:`VPC ID`,value:r.VpcId?(0,X.jsx)(o,{className:`text-primary hover:underline`,params:{id:r.VpcId},to:`/ec2/describe-vpcs/$id`,children:r.VpcId}):void 0}),(0,X.jsx)(K,{label:`Subnet ID`,value:r.SubnetId?(0,X.jsx)(o,{className:`text-primary hover:underline`,params:{id:r.SubnetId},to:`/ec2/describe-subnets/$id`,children:r.SubnetId}):void 0}),(0,X.jsx)(K,{label:`Key Name`,value:r.KeyName}),(0,X.jsx)(K,{label:`Security Groups`,value:r.SecurityGroups?.map(e=>e.GroupName).join(`, `)})]})]}),(0,X.jsx)(fe,{instanceId:r.InstanceId}),t&&S?.gpu&&(0,X.jsxs)(G,{children:[(0,X.jsx)(G.Header,{children:`GPU`}),(0,X.jsxs)(G.Content,{children:[(0,X.jsx)(K,{label:`Model`,value:S.gpu.model}),(0,X.jsx)(K,{label:`VRAM`,value:c(S.gpu.vram_mib)}),(0,X.jsx)(K,{label:`Attachment`,value:S.gpu.profile?`MIG slice`:`PCIe passthrough`}),S.gpu.profile&&(0,X.jsx)(K,{label:`Profile`,value:S.gpu.profile}),S.gpu.mdev_path&&(0,X.jsx)(K,{label:`Mdev path`,value:S.gpu.mdev_path}),S.gpu.pci_address&&(0,X.jsx)(K,{label:`PCI address`,value:S.gpu.pci_address})]})]}),r.BlockDeviceMappings&&r.BlockDeviceMappings.length>0&&(0,X.jsxs)(G,{children:[(0,X.jsx)(G.Header,{children:`Block Device Mappings`}),r.BlockDeviceMappings.map(e=>(0,X.jsxs)(G.Content,{children:[(0,X.jsx)(K,{label:`Device Name`,value:e.DeviceName}),(0,X.jsx)(K,{label:`Volume ID`,value:e.Ebs?.VolumeId?(0,X.jsx)(o,{className:`text-primary hover:underline`,params:{id:e.Ebs.VolumeId},to:`/ec2/describe-volumes/$id`,children:e.Ebs.VolumeId}):void 0}),(0,X.jsx)(K,{label:`Status`,value:e.Ebs?.Status}),(0,X.jsx)(K,{label:`Attach Time`,value:s(e.Ebs?.AttachTime)}),(0,X.jsx)(K,{label:`Delete on Termination`,value:e.Ebs?.DeleteOnTermination?`Yes`:`No`})]},e.DeviceName))]}),g&&(0,X.jsx)(ae,{image:g})]}),(0,X.jsx)(re,{onOpenChange:e=>{e||(E(!1),O(``))},open:T,children:(0,X.jsxs)(R,{children:[(0,X.jsxs)(U,{children:[(0,X.jsx)(z,{children:`Modify Instance`}),(0,X.jsxs)(L,{children:[`Select a new instance type for "`,r.InstanceId,`". The instance must be stopped to modify its attributes.`]})]}),(0,X.jsxs)(I,{children:[(0,X.jsx)(F,{children:(0,X.jsx)(`label`,{htmlFor:`instanceType`,children:`Instance Type`})}),(0,X.jsxs)(m,{onValueChange:e=>O(e??``),value:D,children:[(0,X.jsx)(p,{className:`w-full`,id:`instanceType`,children:(0,X.jsx)(u,{})}),(0,X.jsx)(f,{children:Z.map(e=>(0,X.jsx)(d,{value:e,children:e},e))})]})]}),(0,X.jsxs)(V,{children:[(0,X.jsx)(H,{children:`Cancel`}),(0,X.jsx)(B,{disabled:C.isPending||!D||D===r.InstanceType,onClick:he,children:C.isPending?`Saving…`:`Save Changes`})]})]})}),(0,X.jsx)(de,{instanceId:r.InstanceId,onOpenChange:J,open:ce})]})}export{he as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useQuery.js";import{t as a}from"./useSuspenseQuery.js";import{Ar as o}from"./awsClient.js";import{Bt as s,Ht as c}from"./auth.js";import{t as l}from"./back-link.js";import{c as u,i as d,n as f,s as p,t as m}from"./select.js";import{t as h}from"./rotate-cw.js";import{t as g}from"./trash-2.js";import{t as _}from"./button.js";import{B as v,H as y,J as b,R as x,W as S,X as C,Y as w,r as T,u as E}from"./ec2.js";import{Hn as D,Lr as O,Ut as k,gt as A,ht as j,nt as M,r as N,vt as ee,yt as te}from"./index.js";import{t as P}from"./error-banner.js";import{t as ne}from"./page-heading.js";import{a as F,t as I}from"./field.js";import{a as L,i as R,l as z,n as B,o as V,r as H,s as U,t as re}from"./alert-dialog.js";import{t as W}from"./delete-confirmation-dialog.js";import{n as G,t as K}from"./detail-row.js";import{t as ie}from"./state-badge.js";import{t as ae}from"./ami-details.js";import{r as oe}from"./admin.js";import{t as q}from"./textarea.js";var se=O(`image-plus`,[[`path`,{d:`M16 5h6`,key:`1vod17`}],[`path`,{d:`M19 2v6`,key:`4bpg5p`}],[`path`,{d:`M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5`,key:`1ue2ih`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}]]),ce=O(`pause`,[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]),J=O(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),le=O(`settings-2`,[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]),ue=O(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),Y=t(n(),1),X=e();function de({instanceId:e,open:t,onOpenChange:n}){let r=E(),[i,a]=(0,Y.useState)(``),[o,s]=(0,Y.useState)(``),[c,l]=(0,Y.useState)(null);function u(e){e||(a(``),s(``),l(null)),n(e)}async function d(){try{l((await r.mutateAsync({instanceId:e,name:i,description:o||void 0})).ImageId??null),a(``),s(``)}catch{}}return(0,X.jsx)(re,{onOpenChange:u,open:t,children:(0,X.jsxs)(R,{children:[(0,X.jsxs)(U,{children:[(0,X.jsx)(z,{children:c?`Image Created`:`Create Image (AMI)`}),(0,X.jsx)(L,{children:c?`Image "${c}" was created successfully.`:`Create an AMI from instance "${e}".`})]}),!c&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(I,{children:[(0,X.jsx)(F,{children:(0,X.jsx)(`label`,{htmlFor:`imageName`,children:`Name`})}),(0,X.jsx)(D,{id:`imageName`,onChange:e=>a(e.target.value),placeholder:`my-image`,value:i})]}),(0,X.jsxs)(I,{children:[(0,X.jsx)(F,{children:(0,X.jsx)(`label`,{htmlFor:`imageDescription`,children:`Description`})}),(0,X.jsx)(q,{id:`imageDescription`,onChange:e=>s(e.target.value),placeholder:`Optional description`,rows:2,value:o})]})]}),(0,X.jsxs)(V,{children:[(0,X.jsx)(H,{children:c?`Close`:`Cancel`}),!c&&(0,X.jsx)(B,{disabled:r.isPending||!i.trim(),onClick:d,children:r.isPending?`Creating…`:`Create Image`})]})]})})}var Z=r();function fe(e){let t=(0,Z.c)(31),{instanceId:n}=e,r;t[0]===n?r=t[1]:(r=j(n),t[0]=n,t[1]=r);let{data:a}=i(r),{data:s}=i(M),c=T(),l=x(),[d,h]=(0,Y.useState)(``),g;t[2]===a?.IamInstanceProfileAssociations?g=t[3]:(g=a?.IamInstanceProfileAssociations?.find(Q),t[2]=a?.IamInstanceProfileAssociations,t[3]=g);let v=g,y;t[4]===s?.InstanceProfiles?y=t[5]:(y=s?.InstanceProfiles??[],t[4]=s?.InstanceProfiles,t[5]=y);let b=y,S;t[6]!==c||t[7]!==n||t[8]!==d?(S=async()=>{d&&(await c.mutateAsync({instanceId:n,instanceProfileName:d}),h(``))},t[6]=c,t[7]=n,t[8]=d,t[9]=S):S=t[9];let C=S,w;t[10]!==v||t[11]!==l||t[12]!==n?(w=async()=>{v?.AssociationId&&await l.mutateAsync({associationId:v.AssociationId,instanceId:n})},t[10]=v,t[11]=l,t[12]=n,t[13]=w):w=t[13];let E=w,D;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,X.jsx)(G.Header,{children:`IAM Role`}),t[14]=D):D=t[14];let O;t[15]===c.error?O=t[16]:(O=c.error&&(0,X.jsx)(`div`,{className:`col-span-2`,children:(0,X.jsx)(P,{error:c.error,msg:`Failed to associate instance profile`})}),t[15]=c.error,t[16]=O);let k;t[17]===l.error?k=t[18]:(k=l.error&&(0,X.jsx)(`div`,{className:`col-span-2`,children:(0,X.jsx)(P,{error:l.error,msg:`Failed to disassociate instance profile`})}),t[17]=l.error,t[18]=k);let A;t[19]!==c.isPending||t[20]!==v||t[21]!==l.isPending||t[22]!==C||t[23]!==E||t[24]!==b||t[25]!==d?(A=v?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(K,{label:`Instance Profile ARN`,value:v.IamInstanceProfile?.Arn}),(0,X.jsx)(K,{label:`State`,value:(0,X.jsx)(ie,{state:v.State})}),(0,X.jsx)(`div`,{className:`col-span-2 flex justify-end`,children:(0,X.jsx)(_,{disabled:l.isPending,onClick:E,size:`sm`,variant:`destructive`,children:l.isPending?`Detaching…`:`Detach`})})]}):(0,X.jsxs)(`div`,{className:`col-span-2 space-y-3`,children:[(0,X.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No instance profile is associated. Associate one to flow role credentials to this instance via IMDS.`}),b.length>0?(0,X.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,X.jsxs)(m,{onValueChange:e=>h(e??``),value:d,children:[(0,X.jsx)(p,{className:`w-full`,children:(0,X.jsx)(u,{placeholder:`Select an instance profile`})}),(0,X.jsx)(f,{children:b.map(pe)})]}),(0,X.jsx)(_,{disabled:!d||c.isPending,onClick:C,size:`sm`,children:c.isPending?`Associating…`:`Associate`})]}):(0,X.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`No instance profiles exist.`,` `,(0,X.jsx)(o,{className:`text-primary hover:underline`,to:`/iam/create-instance-profile`,children:`Create one`}),` `,`first.`]})]}),t[19]=c.isPending,t[20]=v,t[21]=l.isPending,t[22]=C,t[23]=E,t[24]=b,t[25]=d,t[26]=A):A=t[26];let N;return t[27]!==O||t[28]!==k||t[29]!==A?(N=(0,X.jsxs)(G,{children:[D,(0,X.jsxs)(G.Content,{children:[O,k,A]})]}),t[27]=O,t[28]=k,t[29]=A,t[30]=N):N=t[30],N}function pe(e){return(0,X.jsx)(d,{value:e.InstanceProfileName??``,children:e.InstanceProfileName},e.InstanceProfileName)}function Q(e){return e.State===`associating`||e.State===`associated`}var $=new Set([`pending`,`stopping`,`shutting-down`,`terminated`]);function me(e){let t=(0,Z.c)(43),{instanceId:n,state:r}=e,i=b(),a=w(),o=S(),s=C(),[c,l]=(0,Y.useState)(!1),u=$.has(r??``),d;t[0]!==n||t[1]!==s?(d=()=>{s.mutate(n,{onSettled:()=>l(!1)})},t[0]=n,t[1]=s,t[2]=d):d=t[2];let f=d;if(u&&r!==`terminated`){let e;return t[3]===r?e=t[4]:(e=(0,X.jsx)(`div`,{className:`rounded-lg border bg-muted/50 p-4`,children:(0,X.jsxs)(`p`,{className:`text-center text-sm text-muted-foreground`,children:[`Instance is `,r,`. Actions will be available once the operation completes.`]})}),t[3]=r,t[4]=e),e}if(r===`terminated`){let e;return t[5]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,X.jsx)(`div`,{className:`rounded-lg border bg-muted/50 p-4`,children:(0,X.jsx)(`p`,{className:`text-center text-sm text-muted-foreground`,children:`This instance has been terminated and cannot be managed.`})}),t[5]=e):e=t[5],e}let p;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,X.jsx)(`h2`,{className:`mb-4 font-semibold`,children:`Instance Actions`}),t[6]=p):p=t[6];let m;t[7]===i.error?m=t[8]:(m=i.error&&(0,X.jsx)(P,{error:i.error,msg:`Failed to start instance`}),t[7]=i.error,t[8]=m);let v;t[9]===a.error?v=t[10]:(v=a.error&&(0,X.jsx)(P,{error:a.error,msg:`Failed to stop instance`}),t[9]=a.error,t[10]=v);let y;t[11]===o.error?y=t[12]:(y=o.error&&(0,X.jsx)(P,{error:o.error,msg:`Failed to reboot instance`}),t[11]=o.error,t[12]=y);let x;t[13]===s.error?x=t[14]:(x=s.error&&(0,X.jsx)(P,{error:s.error,msg:`Failed to terminate instance`}),t[13]=s.error,t[14]=x);let T;t[15]!==n||t[16]!==i||t[17]!==r?(T=r===`stopped`&&(0,X.jsxs)(_,{disabled:i.isPending,onClick:()=>i.mutate(n),size:`sm`,variant:`default`,children:[(0,X.jsx)(J,{className:`size-4`}),i.isPending?`Starting`:`Start`]}),t[15]=n,t[16]=i,t[17]=r,t[18]=T):T=t[18];let E;t[19]!==n||t[20]!==o||t[21]!==r||t[22]!==a?(E=r===`running`&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(_,{disabled:a.isPending,onClick:()=>a.mutate(n),size:`sm`,variant:`outline`,children:[(0,X.jsx)(ce,{className:`size-4`}),a.isPending?`Stopping`:`Stop`]}),(0,X.jsxs)(_,{disabled:o.isPending,onClick:()=>o.mutate(n),size:`sm`,variant:`outline`,children:[(0,X.jsx)(h,{className:`size-4`}),o.isPending?`Rebooting`:`Reboot`]})]}),t[19]=n,t[20]=o,t[21]=r,t[22]=a,t[23]=E):E=t[23];let D;t[24]!==r||t[25]!==s.isPending?(D=(r===`stopped`||r===`running`)&&(0,X.jsxs)(_,{disabled:s.isPending,onClick:()=>l(!0),size:`sm`,variant:`destructive`,children:[(0,X.jsx)(g,{className:`size-4`}),s.isPending?`Terminating`:`Terminate`]}),t[24]=r,t[25]=s.isPending,t[26]=D):D=t[26];let O;t[27]!==T||t[28]!==E||t[29]!==D?(O=(0,X.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[T,E,D]}),t[27]=T,t[28]=E,t[29]=D,t[30]=O):O=t[30];let k=`Are you sure you want to terminate the instance "${n}"? This action cannot be undone.`,A;t[31]!==f||t[32]!==c||t[33]!==k||t[34]!==s.isPending?(A=(0,X.jsx)(W,{confirmLabel:`Terminate`,description:k,isPending:s.isPending,onConfirm:f,onOpenChange:l,open:c,pendingLabel:`Terminating…`,title:`Terminate Instance`}),t[31]=f,t[32]=c,t[33]=k,t[34]=s.isPending,t[35]=A):A=t[35];let j;return t[36]!==O||t[37]!==A||t[38]!==m||t[39]!==v||t[40]!==y||t[41]!==x?(j=(0,X.jsxs)(`div`,{className:`rounded-lg border bg-card p-4`,children:[p,m,v,y,x,O,A]}),t[36]=O,t[37]=A,t[38]=m,t[39]=v,t[40]=y,t[41]=x,t[42]=j):j=t[42],j}function he(){let{id:e}=N.useParams(),{isAdmin:t}=k(),{data:n}=a(ee(e)),r=n.Reservations?.[0]?.Instances?.[0],{data:h}=a(A(r?.ImageId)),g=h?.Images?.[0],{data:b}=a(te),{data:x}=i({...oe,enabled:t,refetchInterval:5e3}),S=x?.vms?.find(t=>t.instance_id===e),C=y(),w=v(),[T,E]=(0,Y.useState)(!1),[D,O]=(0,Y.useState)(``),[j,M]=(0,Y.useState)(!1),[W,q]=(0,Y.useState)(null),[ce,J]=(0,Y.useState)(!1),Z=[...new Set(b.InstanceTypes?.flatMap(e=>e.InstanceType?[e.InstanceType]:[]))].toSorted();if(!r?.InstanceId)return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(l,{to:`/ec2/describe-instances`,children:`Back to instances`}),(0,X.jsx)(`p`,{className:`text-muted-foreground`,children:`Instance not found.`})]});let pe=s(r.LaunchTime),Q=r.State?.Name===`running`,$=r.State?.Name===`stopped`;async function he(){try{await C.mutateAsync({instanceId:e,instanceType:D}),E(!1),O(``)}catch{}}async function ge(){try{let t=await w.mutateAsync(e);q(t.Output?atob(t.Output):`(no output)`),M(!0)}catch{}}return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(l,{to:`/ec2/describe-instances`,children:`Back to instances`}),C.error&&(0,X.jsx)(P,{error:C.error,msg:`Failed to modify instance`}),w.error&&(0,X.jsx)(P,{error:w.error,msg:`Failed to get console output`}),(0,X.jsxs)(`div`,{className:`space-y-6`,children:[(0,X.jsx)(ne,{actions:(0,X.jsxs)(`div`,{className:`flex items-center gap-2`,children:[Q&&(0,X.jsxs)(_,{disabled:w.isPending,onClick:ge,size:`sm`,variant:`outline`,children:[(0,X.jsx)(ue,{className:`size-4`}),w.isPending?`Fetching…`:`View Console`]}),(Q||$)&&(0,X.jsxs)(_,{onClick:()=>J(!0),size:`sm`,variant:`outline`,children:[(0,X.jsx)(se,{className:`size-4`}),`Create Image`]}),$&&(0,X.jsxs)(_,{onClick:()=>{O(r.InstanceType??``),E(!0)},size:`sm`,variant:`outline`,children:[(0,X.jsx)(le,{className:`size-4`}),`Modify Instance`]}),(0,X.jsx)(ie,{state:r.State?.Name})]}),subtitle:`Instance Details`,title:r.InstanceId}),(0,X.jsx)(me,{instanceId:r.InstanceId,state:r.State?.Name}),j&&W!==null&&(0,X.jsxs)(G,{children:[(0,X.jsx)(G.Header,{children:(0,X.jsxs)(`div`,{className:`flex items-center justify-between`,children:[`Console Output`,(0,X.jsx)(_,{onClick:()=>{M(!1),q(null)},size:`sm`,variant:`ghost`,children:`Hide`})]})}),(0,X.jsx)(`div`,{className:`p-4`,children:(0,X.jsx)(`pre`,{className:`max-h-96 overflow-y-auto rounded bg-muted p-3 font-mono text-xs whitespace-pre-wrap`,children:W})})]}),(0,X.jsxs)(G,{children:[(0,X.jsx)(G.Header,{children:`Instance Information`}),(0,X.jsxs)(G.Content,{children:[(0,X.jsx)(K,{label:`Instance ID`,value:r.InstanceId}),(0,X.jsx)(K,{label:`Instance Type`,value:r.InstanceType}),(0,X.jsx)(K,{label:`Instance State`,value:r.State?.Name}),(0,X.jsx)(K,{label:`State Code`,value:r.State?.Code?.toString()}),(0,X.jsx)(K,{label:`Launch Time`,value:pe}),(0,X.jsx)(K,{label:`Availability Zone`,value:r.Placement?.AvailabilityZone}),(0,X.jsx)(K,{label:`Placement Group`,value:r.Placement?.GroupName?(0,X.jsx)(o,{className:`text-primary hover:underline`,to:`/ec2/describe-placement-groups`,children:r.Placement.GroupName}):void 0})]})]}),(r.PrivateIpAddress||r.PublicIpAddress||r.VpcId||r.SubnetId||r.SecurityGroups&&r.SecurityGroups.length>0)&&(0,X.jsxs)(G,{children:[(0,X.jsx)(G.Header,{children:`Network & Security`}),(0,X.jsxs)(G.Content,{children:[(0,X.jsx)(K,{label:`Private IP Address`,value:r.PrivateIpAddress}),(0,X.jsx)(K,{label:`Public IP Address`,value:r.PublicIpAddress}),(0,X.jsx)(K,{label:`Private DNS`,value:r.PrivateDnsName}),(0,X.jsx)(K,{label:`Public DNS`,value:r.PublicDnsName}),(0,X.jsx)(K,{label:`VPC ID`,value:r.VpcId?(0,X.jsx)(o,{className:`text-primary hover:underline`,params:{id:r.VpcId},to:`/ec2/describe-vpcs/$id`,children:r.VpcId}):void 0}),(0,X.jsx)(K,{label:`Subnet ID`,value:r.SubnetId?(0,X.jsx)(o,{className:`text-primary hover:underline`,params:{id:r.SubnetId},to:`/ec2/describe-subnets/$id`,children:r.SubnetId}):void 0}),(0,X.jsx)(K,{label:`Key Name`,value:r.KeyName}),(0,X.jsx)(K,{label:`Security Groups`,value:r.SecurityGroups?.map(e=>e.GroupName).join(`, `)})]})]}),(0,X.jsx)(fe,{instanceId:r.InstanceId}),t&&S?.gpu&&(0,X.jsxs)(G,{children:[(0,X.jsx)(G.Header,{children:`GPU`}),(0,X.jsxs)(G.Content,{children:[(0,X.jsx)(K,{label:`Model`,value:S.gpu.model}),(0,X.jsx)(K,{label:`VRAM`,value:c(S.gpu.vram_mib)}),(0,X.jsx)(K,{label:`Attachment`,value:S.gpu.profile?`MIG slice`:`PCIe passthrough`}),S.gpu.profile&&(0,X.jsx)(K,{label:`Profile`,value:S.gpu.profile}),S.gpu.mdev_path&&(0,X.jsx)(K,{label:`Mdev path`,value:S.gpu.mdev_path}),S.gpu.pci_address&&(0,X.jsx)(K,{label:`PCI address`,value:S.gpu.pci_address})]})]}),r.BlockDeviceMappings&&r.BlockDeviceMappings.length>0&&(0,X.jsxs)(G,{children:[(0,X.jsx)(G.Header,{children:`Block Device Mappings`}),r.BlockDeviceMappings.map(e=>(0,X.jsxs)(G.Content,{children:[(0,X.jsx)(K,{label:`Device Name`,value:e.DeviceName}),(0,X.jsx)(K,{label:`Volume ID`,value:e.Ebs?.VolumeId?(0,X.jsx)(o,{className:`text-primary hover:underline`,params:{id:e.Ebs.VolumeId},to:`/ec2/describe-volumes/$id`,children:e.Ebs.VolumeId}):void 0}),(0,X.jsx)(K,{label:`Status`,value:e.Ebs?.Status}),(0,X.jsx)(K,{label:`Attach Time`,value:s(e.Ebs?.AttachTime)}),(0,X.jsx)(K,{label:`Delete on Termination`,value:e.Ebs?.DeleteOnTermination?`Yes`:`No`})]},e.DeviceName))]}),g&&(0,X.jsx)(ae,{image:g})]}),(0,X.jsx)(re,{onOpenChange:e=>{e||(E(!1),O(``))},open:T,children:(0,X.jsxs)(R,{children:[(0,X.jsxs)(U,{children:[(0,X.jsx)(z,{children:`Modify Instance`}),(0,X.jsxs)(L,{children:[`Select a new instance type for "`,r.InstanceId,`". The instance must be stopped to modify its attributes.`]})]}),(0,X.jsxs)(I,{children:[(0,X.jsx)(F,{children:(0,X.jsx)(`label`,{htmlFor:`instanceType`,children:`Instance Type`})}),(0,X.jsxs)(m,{onValueChange:e=>O(e??``),value:D,children:[(0,X.jsx)(p,{className:`w-full`,id:`instanceType`,children:(0,X.jsx)(u,{})}),(0,X.jsx)(f,{children:Z.map(e=>(0,X.jsx)(d,{value:e,children:e},e))})]})]}),(0,X.jsxs)(V,{children:[(0,X.jsx)(H,{children:`Cancel`}),(0,X.jsx)(B,{disabled:C.isPending||!D||D===r.InstanceType,onClick:he,children:C.isPending?`Saving…`:`Save Changes`})]})]})}),(0,X.jsx)(de,{instanceId:r.InstanceId,onOpenChange:J,open:ce})]})}export{he as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id4.js b/spinifex/services/spinifexui/frontend/dist/assets/_id4.js index 3ab9570f0..770227b4a 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id4.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id4.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{kr as i}from"./awsClient.js";import{Ut as a}from"./auth.js";import{t as o}from"./back-link.js";import{c as s,i as c,n as l,s as u,t as d}from"./select.js";import{t as f}from"./trash-2.js";import{t as p}from"./button.js";import{F as m,a as h,w as g}from"./ec2.js";import{Br as _,Vt as v,i as y,xt as b}from"./index.js";import{t as x}from"./error-banner.js";import{t as S}from"./page-heading.js";import{t as C}from"./delete-confirmation-dialog.js";import{n as w,t as T}from"./detail-row.js";var E=t(n()),D=e();function O(){let{id:e}=y.useParams(),t=_(),{data:n}=r(b(e)),{data:O}=r(v),k=h(),A=m(),j=g(),[M,N]=(0,E.useState)(!1),[P,F]=(0,E.useState)(``),I=n.InternetGateways?.[0],L=O.Vpcs??[],R=async()=>{try{await j.mutateAsync(e),t({to:`/ec2/describe-internet-gateways`})}finally{N(!1)}},z=async()=>{P&&await k.mutateAsync({internetGatewayId:e,vpcId:P})},B=async t=>{await A.mutateAsync({internetGatewayId:e,vpcId:t})};if(!I?.InternetGatewayId)return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(o,{to:`/ec2/describe-internet-gateways`,children:`Back to Internet Gateways`}),(0,D.jsx)(`p`,{className:`text-muted-foreground`,children:`Internet Gateway not found.`})]});let V=I.Attachments?.[0],H=!!V?.VpcId,U=a(I.Tags);return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(o,{to:`/ec2/describe-internet-gateways`,children:`Back to Internet Gateways`}),(j.error??k.error??A.error)&&(0,D.jsx)(x,{error:j.error??k.error??A.error??void 0,msg:`Internet Gateway action failed`}),(0,D.jsxs)(`div`,{className:`space-y-6`,children:[(0,D.jsx)(S,{actions:(0,D.jsxs)(p,{disabled:H||j.isPending,onClick:()=>N(!0),size:`sm`,variant:`destructive`,children:[(0,D.jsx)(f,{className:`size-4`}),`Delete`]}),subtitle:`Internet Gateway Details`,title:U?`${I.InternetGatewayId} (${U})`:I.InternetGatewayId}),(0,D.jsxs)(w,{children:[(0,D.jsx)(w.Header,{children:`Internet Gateway Information`}),(0,D.jsxs)(w.Content,{children:[(0,D.jsx)(T,{label:`Internet Gateway ID`,value:I.InternetGatewayId}),(0,D.jsx)(T,{label:`Owner ID`,value:I.OwnerId??`—`}),(0,D.jsx)(T,{label:`State`,value:V?.State??`detached`})]})]}),(0,D.jsxs)(w,{children:[(0,D.jsx)(w.Header,{children:`VPC Attachment`}),(0,D.jsx)(w.Content,{children:H?(0,D.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,D.jsx)(i,{className:`text-primary hover:underline`,params:{id:V.VpcId??``},to:`/ec2/describe-vpcs/$id`,children:V.VpcId}),(0,D.jsx)(p,{disabled:A.isPending,onClick:async()=>await B(V.VpcId??``),size:`sm`,variant:`outline`,children:`Detach`})]}):(0,D.jsxs)(`div`,{className:`flex items-end gap-2`,children:[(0,D.jsx)(`div`,{className:`flex-1`,children:(0,D.jsxs)(d,{onValueChange:e=>F(e??``),value:P,children:[(0,D.jsx)(u,{className:`w-full`,children:(0,D.jsx)(s,{placeholder:`Select a VPC`})}),(0,D.jsx)(l,{children:L.map(e=>{let t=a(e.Tags);return(0,D.jsx)(c,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)})})]})}),(0,D.jsx)(p,{disabled:!P||k.isPending,onClick:z,size:`sm`,children:`Attach`})]})})]})]}),(0,D.jsx)(C,{description:`Are you sure you want to delete the Internet Gateway "${I.InternetGatewayId}"? This action cannot be undone.`,isPending:j.isPending,onConfirm:R,onOpenChange:N,open:M,title:`Delete Internet Gateway`})]})}export{O as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{Ar as i}from"./awsClient.js";import{Ut as a}from"./auth.js";import{t as o}from"./back-link.js";import{c as s,i as c,n as l,s as u,t as d}from"./select.js";import{t as f}from"./trash-2.js";import{t as p}from"./button.js";import{F as m,a as h,w as g}from"./ec2.js";import{Br as _,Vt as v,i as y,xt as b}from"./index.js";import{t as x}from"./error-banner.js";import{t as S}from"./page-heading.js";import{t as C}from"./delete-confirmation-dialog.js";import{n as w,t as T}from"./detail-row.js";var E=t(n()),D=e();function O(){let{id:e}=y.useParams(),t=_(),{data:n}=r(b(e)),{data:O}=r(v),k=h(),A=m(),j=g(),[M,N]=(0,E.useState)(!1),[P,F]=(0,E.useState)(``),I=n.InternetGateways?.[0],L=O.Vpcs??[],R=async()=>{try{await j.mutateAsync(e),t({to:`/ec2/describe-internet-gateways`})}finally{N(!1)}},z=async()=>{P&&await k.mutateAsync({internetGatewayId:e,vpcId:P})},B=async t=>{await A.mutateAsync({internetGatewayId:e,vpcId:t})};if(!I?.InternetGatewayId)return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(o,{to:`/ec2/describe-internet-gateways`,children:`Back to Internet Gateways`}),(0,D.jsx)(`p`,{className:`text-muted-foreground`,children:`Internet Gateway not found.`})]});let V=I.Attachments?.[0],H=!!V?.VpcId,U=a(I.Tags);return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(o,{to:`/ec2/describe-internet-gateways`,children:`Back to Internet Gateways`}),(j.error??k.error??A.error)&&(0,D.jsx)(x,{error:j.error??k.error??A.error??void 0,msg:`Internet Gateway action failed`}),(0,D.jsxs)(`div`,{className:`space-y-6`,children:[(0,D.jsx)(S,{actions:(0,D.jsxs)(p,{disabled:H||j.isPending,onClick:()=>N(!0),size:`sm`,variant:`destructive`,children:[(0,D.jsx)(f,{className:`size-4`}),`Delete`]}),subtitle:`Internet Gateway Details`,title:U?`${I.InternetGatewayId} (${U})`:I.InternetGatewayId}),(0,D.jsxs)(w,{children:[(0,D.jsx)(w.Header,{children:`Internet Gateway Information`}),(0,D.jsxs)(w.Content,{children:[(0,D.jsx)(T,{label:`Internet Gateway ID`,value:I.InternetGatewayId}),(0,D.jsx)(T,{label:`Owner ID`,value:I.OwnerId??`—`}),(0,D.jsx)(T,{label:`State`,value:V?.State??`detached`})]})]}),(0,D.jsxs)(w,{children:[(0,D.jsx)(w.Header,{children:`VPC Attachment`}),(0,D.jsx)(w.Content,{children:H?(0,D.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,D.jsx)(i,{className:`text-primary hover:underline`,params:{id:V.VpcId??``},to:`/ec2/describe-vpcs/$id`,children:V.VpcId}),(0,D.jsx)(p,{disabled:A.isPending,onClick:async()=>await B(V.VpcId??``),size:`sm`,variant:`outline`,children:`Detach`})]}):(0,D.jsxs)(`div`,{className:`flex items-end gap-2`,children:[(0,D.jsx)(`div`,{className:`flex-1`,children:(0,D.jsxs)(d,{onValueChange:e=>F(e??``),value:P,children:[(0,D.jsx)(u,{className:`w-full`,children:(0,D.jsx)(s,{placeholder:`Select a VPC`})}),(0,D.jsx)(l,{children:L.map(e=>{let t=a(e.Tags);return(0,D.jsx)(c,{value:e.VpcId??``,children:t?`${e.VpcId} (${t})`:`${e.VpcId} (${e.CidrBlock})`},e.VpcId)})})]})}),(0,D.jsx)(p,{disabled:!P||k.isPending,onClick:z,size:`sm`,children:`Attach`})]})})]})]}),(0,D.jsx)(C,{description:`Are you sure you want to delete the Internet Gateway "${I.InternetGatewayId}"? This action cannot be undone.`,isPending:j.isPending,onConfirm:R,onOpenChange:N,open:M,title:`Delete Internet Gateway`})]})}export{O as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id7.js b/spinifex/services/spinifexui/frontend/dist/assets/_id7.js index 15dee0783..c7c8681b5 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id7.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id7.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{kr as i}from"./awsClient.js";import{Ut as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as s}from"./trash-2.js";import{t as c}from"./button.js";import{E as l}from"./ec2.js";import{Br as u,Tt as d,s as f}from"./index.js";import{t as p}from"./error-banner.js";import{t as m}from"./page-heading.js";import{t as h}from"./delete-confirmation-dialog.js";import{n as g,t as _}from"./detail-row.js";import{t as v}from"./state-badge.js";var y=t(n()),b=e();function x(){let{id:e}=f.useParams(),t=u(),{data:n}=r(d(e)),x=l(),[S,C]=(0,y.useState)(!1),w=n.NatGateways?.[0],T=async()=>{try{await x.mutateAsync(e),t({to:`/ec2/describe-nat-gateways`})}finally{C(!1)}};if(!w?.NatGatewayId)return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o,{to:`/ec2/describe-nat-gateways`,children:`Back to NAT Gateways`}),(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`NAT Gateway not found.`})]});let E=a(w.Tags),D=w.NatGatewayAddresses?.[0];return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o,{to:`/ec2/describe-nat-gateways`,children:`Back to NAT Gateways`}),x.error&&(0,b.jsx)(p,{error:x.error,msg:`Failed to delete NAT Gateway`}),(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(m,{actions:(0,b.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,b.jsxs)(c,{disabled:x.isPending,onClick:()=>C(!0),size:`sm`,variant:`destructive`,children:[(0,b.jsx)(s,{className:`size-4`}),`Delete`]}),(0,b.jsx)(v,{state:w.State})]}),subtitle:`NAT Gateway Details`,title:E?`${w.NatGatewayId} (${E})`:w.NatGatewayId}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`NAT Gateway Information`}),(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`NAT Gateway ID`,value:w.NatGatewayId}),(0,b.jsx)(_,{label:`State`,value:w.State}),(0,b.jsx)(_,{label:`Connectivity`,value:w.ConnectivityType}),(0,b.jsx)(_,{label:`Subnet ID`,value:w.SubnetId?(0,b.jsx)(i,{className:`text-primary hover:underline`,params:{id:w.SubnetId},to:`/ec2/describe-subnets/$id`,children:w.SubnetId}):`—`}),(0,b.jsx)(_,{label:`VPC ID`,value:w.VpcId?(0,b.jsx)(i,{className:`text-primary hover:underline`,params:{id:w.VpcId},to:`/ec2/describe-vpcs/$id`,children:w.VpcId}):`—`}),(0,b.jsx)(_,{label:`Public IP`,value:D?.PublicIp??`—`}),(0,b.jsx)(_,{label:`Allocation ID`,value:D?.AllocationId?(0,b.jsx)(i,{className:`text-primary hover:underline`,params:{id:D.AllocationId},to:`/ec2/describe-addresses/$id`,children:D.AllocationId}):`—`})]})]})]}),(0,b.jsx)(h,{description:`Are you sure you want to delete the NAT Gateway "${w.NatGatewayId}"? This action cannot be undone. The associated Elastic IP is not released.`,isPending:x.isPending,onConfirm:T,onOpenChange:C,open:S,title:`Delete NAT Gateway`})]})}export{x as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{Ar as i}from"./awsClient.js";import{Ut as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as s}from"./trash-2.js";import{t as c}from"./button.js";import{E as l}from"./ec2.js";import{Br as u,Tt as d,s as f}from"./index.js";import{t as p}from"./error-banner.js";import{t as m}from"./page-heading.js";import{t as h}from"./delete-confirmation-dialog.js";import{n as g,t as _}from"./detail-row.js";import{t as v}from"./state-badge.js";var y=t(n()),b=e();function x(){let{id:e}=f.useParams(),t=u(),{data:n}=r(d(e)),x=l(),[S,C]=(0,y.useState)(!1),w=n.NatGateways?.[0],T=async()=>{try{await x.mutateAsync(e),t({to:`/ec2/describe-nat-gateways`})}finally{C(!1)}};if(!w?.NatGatewayId)return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o,{to:`/ec2/describe-nat-gateways`,children:`Back to NAT Gateways`}),(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`NAT Gateway not found.`})]});let E=a(w.Tags),D=w.NatGatewayAddresses?.[0];return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o,{to:`/ec2/describe-nat-gateways`,children:`Back to NAT Gateways`}),x.error&&(0,b.jsx)(p,{error:x.error,msg:`Failed to delete NAT Gateway`}),(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(m,{actions:(0,b.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,b.jsxs)(c,{disabled:x.isPending,onClick:()=>C(!0),size:`sm`,variant:`destructive`,children:[(0,b.jsx)(s,{className:`size-4`}),`Delete`]}),(0,b.jsx)(v,{state:w.State})]}),subtitle:`NAT Gateway Details`,title:E?`${w.NatGatewayId} (${E})`:w.NatGatewayId}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`NAT Gateway Information`}),(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`NAT Gateway ID`,value:w.NatGatewayId}),(0,b.jsx)(_,{label:`State`,value:w.State}),(0,b.jsx)(_,{label:`Connectivity`,value:w.ConnectivityType}),(0,b.jsx)(_,{label:`Subnet ID`,value:w.SubnetId?(0,b.jsx)(i,{className:`text-primary hover:underline`,params:{id:w.SubnetId},to:`/ec2/describe-subnets/$id`,children:w.SubnetId}):`—`}),(0,b.jsx)(_,{label:`VPC ID`,value:w.VpcId?(0,b.jsx)(i,{className:`text-primary hover:underline`,params:{id:w.VpcId},to:`/ec2/describe-vpcs/$id`,children:w.VpcId}):`—`}),(0,b.jsx)(_,{label:`Public IP`,value:D?.PublicIp??`—`}),(0,b.jsx)(_,{label:`Allocation ID`,value:D?.AllocationId?(0,b.jsx)(i,{className:`text-primary hover:underline`,params:{id:D.AllocationId},to:`/ec2/describe-addresses/$id`,children:D.AllocationId}):`—`})]})]})]}),(0,b.jsx)(h,{description:`Are you sure you want to delete the NAT Gateway "${w.NatGatewayId}"? This action cannot be undone. The associated Elastic IP is not released.`,isPending:x.isPending,onConfirm:T,onOpenChange:C,open:S,title:`Delete NAT Gateway`})]})}export{x as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id8.js b/spinifex/services/spinifexui/frontend/dist/assets/_id8.js index 4faedd73a..05a7a34a2 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id8.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id8.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{kr as i}from"./awsClient.js";import{t as a}from"./back-link.js";import{t as o}from"./trash-2.js";import{t as s}from"./button.js";import{D as c}from"./ec2.js";import{Br as l,Dt as u,bt as d,c as f}from"./index.js";import{t as p}from"./error-banner.js";import{t as m}from"./page-heading.js";import{t as h}from"./delete-confirmation-dialog.js";import{n as g,t as _}from"./detail-row.js";import{t as v}from"./state-badge.js";var y=t(n()),b=e();function x(){let{id:e}=f.useParams(),t=l(),{data:n}=r(u(e)),{data:x}=r(d),S=c(),[C,w]=(0,y.useState)(!1),T=n.PlacementGroups?.[0],E=x.Reservations?.flatMap(e=>e.Instances??[]).filter(e=>e.Placement?.GroupName===T?.GroupName)??[];return T?.GroupId?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(a,{to:`/ec2/describe-placement-groups`,children:`Back to placement groups`}),S.error&&(0,b.jsx)(p,{error:S.error,msg:`Failed to delete placement group`}),(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(m,{actions:(0,b.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,b.jsxs)(s,{onClick:()=>w(!0),size:`sm`,variant:`destructive`,children:[(0,b.jsx)(o,{className:`size-4`}),`Delete`]}),(0,b.jsx)(v,{state:T.State})]}),subtitle:`Placement Group Details`,title:T.GroupName??T.GroupId}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Placement Group Information`}),(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`Group ID`,value:T.GroupId}),(0,b.jsx)(_,{label:`Group Name`,value:T.GroupName}),(0,b.jsx)(_,{label:`Strategy`,value:T.Strategy}),(0,b.jsx)(_,{label:`State`,value:T.State}),(0,b.jsx)(_,{label:`Spread Level`,value:T.SpreadLevel})]})]}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Instances`}),E.length>0?E.map(e=>(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`Instance ID`,value:e.InstanceId?(0,b.jsx)(i,{className:`text-primary hover:underline`,params:{id:e.InstanceId},to:`/ec2/describe-instances/$id`,children:e.InstanceId}):void 0}),(0,b.jsx)(_,{label:`State`,value:e.State?.Name}),(0,b.jsx)(_,{label:`Instance Type`,value:e.InstanceType}),(0,b.jsx)(_,{label:`Availability Zone`,value:e.Placement?.AvailabilityZone})]},e.InstanceId)):(0,b.jsx)(g.Content,{children:(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`No instances in this placement group.`})})]})]}),(0,b.jsx)(h,{description:`Are you sure you want to delete the placement group "${T.GroupName}"? The group must have no running instances.`,isPending:S.isPending,onConfirm:async()=>{if(T?.GroupName)try{await S.mutateAsync(T.GroupName),t({to:`/ec2/describe-placement-groups`})}finally{w(!1)}},onOpenChange:w,open:C,title:`Delete Placement Group`})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(a,{to:`/ec2/describe-placement-groups`,children:`Back to placement groups`}),(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`Placement group not found.`})]})}export{x as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{Ar as i}from"./awsClient.js";import{t as a}from"./back-link.js";import{t as o}from"./trash-2.js";import{t as s}from"./button.js";import{D as c}from"./ec2.js";import{Br as l,Dt as u,bt as d,c as f}from"./index.js";import{t as p}from"./error-banner.js";import{t as m}from"./page-heading.js";import{t as h}from"./delete-confirmation-dialog.js";import{n as g,t as _}from"./detail-row.js";import{t as v}from"./state-badge.js";var y=t(n()),b=e();function x(){let{id:e}=f.useParams(),t=l(),{data:n}=r(u(e)),{data:x}=r(d),S=c(),[C,w]=(0,y.useState)(!1),T=n.PlacementGroups?.[0],E=x.Reservations?.flatMap(e=>e.Instances??[]).filter(e=>e.Placement?.GroupName===T?.GroupName)??[];return T?.GroupId?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(a,{to:`/ec2/describe-placement-groups`,children:`Back to placement groups`}),S.error&&(0,b.jsx)(p,{error:S.error,msg:`Failed to delete placement group`}),(0,b.jsxs)(`div`,{className:`space-y-6`,children:[(0,b.jsx)(m,{actions:(0,b.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,b.jsxs)(s,{onClick:()=>w(!0),size:`sm`,variant:`destructive`,children:[(0,b.jsx)(o,{className:`size-4`}),`Delete`]}),(0,b.jsx)(v,{state:T.State})]}),subtitle:`Placement Group Details`,title:T.GroupName??T.GroupId}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Placement Group Information`}),(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`Group ID`,value:T.GroupId}),(0,b.jsx)(_,{label:`Group Name`,value:T.GroupName}),(0,b.jsx)(_,{label:`Strategy`,value:T.Strategy}),(0,b.jsx)(_,{label:`State`,value:T.State}),(0,b.jsx)(_,{label:`Spread Level`,value:T.SpreadLevel})]})]}),(0,b.jsxs)(g,{children:[(0,b.jsx)(g.Header,{children:`Instances`}),E.length>0?E.map(e=>(0,b.jsxs)(g.Content,{children:[(0,b.jsx)(_,{label:`Instance ID`,value:e.InstanceId?(0,b.jsx)(i,{className:`text-primary hover:underline`,params:{id:e.InstanceId},to:`/ec2/describe-instances/$id`,children:e.InstanceId}):void 0}),(0,b.jsx)(_,{label:`State`,value:e.State?.Name}),(0,b.jsx)(_,{label:`Instance Type`,value:e.InstanceType}),(0,b.jsx)(_,{label:`Availability Zone`,value:e.Placement?.AvailabilityZone})]},e.InstanceId)):(0,b.jsx)(g.Content,{children:(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`No instances in this placement group.`})})]})]}),(0,b.jsx)(h,{description:`Are you sure you want to delete the placement group "${T.GroupName}"? The group must have no running instances.`,isPending:S.isPending,onConfirm:async()=>{if(T?.GroupName)try{await S.mutateAsync(T.GroupName),t({to:`/ec2/describe-placement-groups`})}finally{w(!1)}},onOpenChange:w,open:C,title:`Delete Placement Group`})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(a,{to:`/ec2/describe-placement-groups`,children:`Back to placement groups`}),(0,b.jsx)(`p`,{className:`text-muted-foreground`,children:`Placement group not found.`})]})}export{x as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_id9.js b/spinifex/services/spinifexui/frontend/dist/assets/_id9.js index b961c6e8d..adc1130b4 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_id9.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_id9.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{kr as i}from"./awsClient.js";import{Ut as a}from"./auth.js";import{t as o}from"./back-link.js";import{c as s,i as c,n as l,s as u,t as d}from"./select.js";import{t as f}from"./trash-2.js";import{t as p}from"./button.js";import{O as m,g as h,i as ee,k as te,z as ne}from"./ec2.js";import{At as re,Br as g,Et as ie,Hn as _,Lt as v,St as y,l as ae}from"./index.js";import{a as oe,i as b,n as x,t as S}from"./zod.js";import{t as C}from"./error-banner.js";import{t as w}from"./page-heading.js";import{a as T,r as E,t as D}from"./field.js";import{l as O,r as k}from"./ec22.js";import{t as A}from"./delete-confirmation-dialog.js";import{n as j,t as M}from"./detail-row.js";import{t as se}from"./badge.js";var N=t(n()),P=e();function F(e){return e.GatewayId??e.NatGatewayId??e.NetworkInterfaceId??e.InstanceId??e.VpcPeeringConnectionId??`—`}function I(){let{id:e}=ae.useParams(),t=g(),{data:n}=r(re(e)),{data:I}=r(y),{data:L}=r(ie),{data:R}=r(v),z=te(),B=h(),V=m(),H=ee(),U=ne(),[W,G]=(0,N.useState)(!1),K=n.RouteTables?.[0],q=b({resolver:S(O),defaultValues:{destinationCidrBlock:`0.0.0.0/0`,targetType:`igw`,targetId:``}}),ce=oe({control:q.control,name:`targetType`}),J=b({resolver:S(k),defaultValues:{subnetId:``}});if(!K?.RouteTableId)return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(o,{to:`/ec2/describe-route-tables`,children:`Back to Route Tables`}),(0,P.jsx)(`p`,{className:`text-muted-foreground`,children:`Route Table not found.`})]});let Y=K.RouteTableId,X=a(K.Tags),Z=K.Associations?.some(e=>e.Main)??!1,Q=K.Routes??[],$=(K.Associations??[]).filter(e=>e.SubnetId),le=(I.InternetGateways??[]).filter(e=>e.Attachments?.some(e=>e.VpcId===K.VpcId)),ue=(L.NatGateways??[]).filter(e=>e.VpcId===K.VpcId&&e.State===`available`),de=new Set($.map(e=>e.SubnetId)),fe=(R.Subnets??[]).filter(e=>e.VpcId===K.VpcId&&!de.has(e.SubnetId)),pe=async()=>{try{await z.mutateAsync(Y),t({to:`/ec2/describe-route-tables`})}finally{G(!1)}},me=async e=>{await B.mutateAsync({routeTableId:Y,destinationCidrBlock:e.destinationCidrBlock,gatewayId:e.targetType===`igw`?e.targetId:void 0,natGatewayId:e.targetType===`nat`?e.targetId:void 0}),q.reset({destinationCidrBlock:`0.0.0.0/0`,targetType:`igw`,targetId:``})},he=async e=>{await H.mutateAsync({routeTableId:Y,subnetId:e.subnetId}),J.reset({subnetId:``})};return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(o,{to:`/ec2/describe-route-tables`,children:`Back to Route Tables`}),z.error&&(0,P.jsx)(C,{error:z.error,msg:`Failed to delete Route Table`}),(0,P.jsxs)(`div`,{className:`space-y-6`,children:[(0,P.jsx)(w,{actions:(0,P.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,P.jsxs)(p,{disabled:Z||z.isPending,onClick:()=>G(!0),size:`sm`,variant:`destructive`,children:[(0,P.jsx)(f,{className:`size-4`}),`Delete`]}),Z&&(0,P.jsx)(se,{variant:`secondary`,children:`Main`})]}),subtitle:`Route Table Details`,title:X?`${K.RouteTableId} (${X})`:K.RouteTableId}),(0,P.jsxs)(j,{children:[(0,P.jsx)(j.Header,{children:`Route Table Information`}),(0,P.jsxs)(j.Content,{children:[(0,P.jsx)(M,{label:`Route Table ID`,value:K.RouteTableId}),(0,P.jsx)(M,{label:`Main`,value:Z?`Yes`:`No`}),(0,P.jsx)(M,{label:`VPC ID`,value:K.VpcId?(0,P.jsx)(i,{className:`text-primary hover:underline`,params:{id:K.VpcId},to:`/ec2/describe-vpcs/$id`,children:K.VpcId}):`—`}),(0,P.jsx)(M,{label:`Owner ID`,value:K.OwnerId??`—`})]})]}),(0,P.jsxs)(j,{children:[(0,P.jsx)(j.Header,{children:`Routes`}),(0,P.jsxs)(`div`,{className:`space-y-4 p-4`,children:[(0,P.jsx)(`div`,{className:`overflow-x-auto rounded-md border`,children:(0,P.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,P.jsx)(`thead`,{className:`bg-muted/50 text-left text-muted-foreground`,children:(0,P.jsxs)(`tr`,{children:[(0,P.jsx)(`th`,{className:`p-2 font-medium`,children:`Destination`}),(0,P.jsx)(`th`,{className:`p-2 font-medium`,children:`Target`}),(0,P.jsx)(`th`,{className:`p-2 font-medium`,children:`Status`}),(0,P.jsx)(`th`,{className:`p-2`,children:(0,P.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,P.jsx)(`tbody`,{children:Q.length>0?Q.map(e=>{let t=e.DestinationCidrBlock??e.DestinationPrefixListId??`—`,n=e.GatewayId===`local`,r=e.DestinationCidrBlock;return(0,P.jsxs)(`tr`,{className:`border-t`,children:[(0,P.jsx)(`td`,{className:`p-2 font-mono`,children:t}),(0,P.jsx)(`td`,{className:`p-2 font-mono`,children:F(e)}),(0,P.jsx)(`td`,{className:`p-2`,children:e.State??`—`}),(0,P.jsx)(`td`,{className:`p-2 text-right`,children:!n&&r&&(0,P.jsx)(p,{disabled:V.isPending,onClick:async()=>await V.mutateAsync({routeTableId:Y,destinationCidrBlock:r}),size:`sm`,variant:`ghost`,children:(0,P.jsx)(f,{className:`size-4`})})})]},t)}):(0,P.jsx)(`tr`,{children:(0,P.jsx)(`td`,{className:`p-2 text-muted-foreground`,colSpan:4,children:`No routes.`})})})]})}),(B.error??V.error)&&(0,P.jsx)(C,{error:B.error??V.error??void 0,msg:`Failed to update route`}),(0,P.jsxs)(`form`,{className:`grid items-end gap-3 sm:grid-cols-[1fr_1fr_1fr_auto]`,onSubmit:q.handleSubmit(me),children:[(0,P.jsxs)(D,{children:[(0,P.jsx)(T,{children:(0,P.jsx)(`label`,{htmlFor:`destinationCidrBlock`,children:`Destination`})}),(0,P.jsx)(_,{id:`destinationCidrBlock`,placeholder:`0.0.0.0/0`,...q.register(`destinationCidrBlock`)}),(0,P.jsx)(E,{errors:[q.formState.errors.destinationCidrBlock]})]}),(0,P.jsxs)(D,{children:[(0,P.jsx)(T,{children:(0,P.jsx)(`label`,{htmlFor:`targetType`,children:`Target type`})}),(0,P.jsx)(x,{control:q.control,name:`targetType`,render:({field:e})=>(0,P.jsxs)(d,{onValueChange:t=>{e.onChange(t),q.setValue(`targetId`,``)},value:e.value,children:[(0,P.jsx)(u,{className:`w-full`,id:`targetType`,children:(0,P.jsx)(s,{})}),(0,P.jsxs)(l,{children:[(0,P.jsx)(c,{value:`igw`,children:`Internet Gateway`}),(0,P.jsx)(c,{value:`nat`,children:`NAT Gateway`})]})]})})]}),(0,P.jsxs)(D,{children:[(0,P.jsx)(T,{children:(0,P.jsx)(`label`,{htmlFor:`targetId`,children:`Target`})}),(0,P.jsx)(x,{control:q.control,name:`targetId`,render:({field:e})=>(0,P.jsxs)(d,{onValueChange:t=>e.onChange(t),value:e.value??``,children:[(0,P.jsx)(u,{"aria-invalid":!!q.formState.errors.targetId,className:`w-full`,id:`targetId`,children:(0,P.jsx)(s,{placeholder:`Select target`})}),(0,P.jsx)(l,{children:ce===`igw`?le.map(e=>(0,P.jsx)(c,{value:e.InternetGatewayId??``,children:e.InternetGatewayId},e.InternetGatewayId)):ue.map(e=>(0,P.jsx)(c,{value:e.NatGatewayId??``,children:e.NatGatewayId},e.NatGatewayId))})]})}),(0,P.jsx)(E,{errors:[q.formState.errors.targetId]})]}),(0,P.jsx)(p,{disabled:B.isPending,size:`sm`,type:`submit`,children:`Add route`})]})]})]}),(0,P.jsxs)(j,{children:[(0,P.jsx)(j.Header,{children:`Subnet Associations`}),(0,P.jsxs)(`div`,{className:`space-y-4 p-4`,children:[$.length>0?(0,P.jsx)(`ul`,{className:`space-y-2`,children:$.map(e=>{let t=e.RouteTableAssociationId;return(0,P.jsxs)(`li`,{className:`flex items-center justify-between rounded-md border p-2 text-sm`,children:[(0,P.jsx)(i,{className:`font-mono text-primary hover:underline`,params:{id:e.SubnetId??``},to:`/ec2/describe-subnets/$id`,children:e.SubnetId}),(0,P.jsx)(p,{disabled:!t||U.isPending,onClick:async()=>{t&&await U.mutateAsync(t)},size:`sm`,variant:`ghost`,children:(0,P.jsx)(f,{className:`size-4`})})]},t)})}):(0,P.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No subnet associations.`}),(H.error??U.error)&&(0,P.jsx)(C,{error:H.error??U.error??void 0,msg:`Failed to update association`}),(0,P.jsxs)(`form`,{className:`grid items-end gap-3 sm:grid-cols-[1fr_auto]`,onSubmit:J.handleSubmit(he),children:[(0,P.jsxs)(D,{children:[(0,P.jsx)(T,{children:(0,P.jsx)(`label`,{htmlFor:`subnetId`,children:`Associate subnet`})}),(0,P.jsx)(x,{control:J.control,name:`subnetId`,render:({field:e})=>(0,P.jsxs)(d,{onValueChange:t=>e.onChange(t),value:e.value??``,children:[(0,P.jsx)(u,{"aria-invalid":!!J.formState.errors.subnetId,className:`w-full`,id:`subnetId`,children:(0,P.jsx)(s,{placeholder:`Select a subnet`})}),(0,P.jsx)(l,{children:fe.map(e=>{let t=a(e.Tags);return(0,P.jsx)(c,{value:e.SubnetId??``,children:t?`${e.SubnetId} (${t})`:`${e.SubnetId} (${e.CidrBlock})`},e.SubnetId)})})]})}),(0,P.jsx)(E,{errors:[J.formState.errors.subnetId]})]}),(0,P.jsx)(p,{disabled:H.isPending,size:`sm`,type:`submit`,children:`Associate`})]})]})]})]}),(0,P.jsx)(A,{description:`Are you sure you want to delete the Route Table "${K.RouteTableId}"? This action cannot be undone.`,isPending:z.isPending,onConfirm:pe,onOpenChange:G,open:W,title:`Delete Route Table`})]})}export{I as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{Ar as i}from"./awsClient.js";import{Ut as a}from"./auth.js";import{t as o}from"./back-link.js";import{c as s,i as c,n as l,s as u,t as d}from"./select.js";import{t as f}from"./trash-2.js";import{t as p}from"./button.js";import{O as m,g as h,i as ee,k as te,z as ne}from"./ec2.js";import{At as re,Br as g,Et as ie,Hn as _,Lt as v,St as y,l as ae}from"./index.js";import{a as oe,i as b,n as x,t as S}from"./zod.js";import{t as C}from"./error-banner.js";import{t as w}from"./page-heading.js";import{a as T,r as E,t as D}from"./field.js";import{l as O,r as k}from"./ec22.js";import{t as A}from"./delete-confirmation-dialog.js";import{n as j,t as M}from"./detail-row.js";import{t as se}from"./badge.js";var N=t(n()),P=e();function F(e){return e.GatewayId??e.NatGatewayId??e.NetworkInterfaceId??e.InstanceId??e.VpcPeeringConnectionId??`—`}function I(){let{id:e}=ae.useParams(),t=g(),{data:n}=r(re(e)),{data:I}=r(y),{data:L}=r(ie),{data:R}=r(v),z=te(),B=h(),V=m(),H=ee(),U=ne(),[W,G]=(0,N.useState)(!1),K=n.RouteTables?.[0],q=b({resolver:S(O),defaultValues:{destinationCidrBlock:`0.0.0.0/0`,targetType:`igw`,targetId:``}}),ce=oe({control:q.control,name:`targetType`}),J=b({resolver:S(k),defaultValues:{subnetId:``}});if(!K?.RouteTableId)return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(o,{to:`/ec2/describe-route-tables`,children:`Back to Route Tables`}),(0,P.jsx)(`p`,{className:`text-muted-foreground`,children:`Route Table not found.`})]});let Y=K.RouteTableId,X=a(K.Tags),Z=K.Associations?.some(e=>e.Main)??!1,Q=K.Routes??[],$=(K.Associations??[]).filter(e=>e.SubnetId),le=(I.InternetGateways??[]).filter(e=>e.Attachments?.some(e=>e.VpcId===K.VpcId)),ue=(L.NatGateways??[]).filter(e=>e.VpcId===K.VpcId&&e.State===`available`),de=new Set($.map(e=>e.SubnetId)),fe=(R.Subnets??[]).filter(e=>e.VpcId===K.VpcId&&!de.has(e.SubnetId)),pe=async()=>{try{await z.mutateAsync(Y),t({to:`/ec2/describe-route-tables`})}finally{G(!1)}},me=async e=>{await B.mutateAsync({routeTableId:Y,destinationCidrBlock:e.destinationCidrBlock,gatewayId:e.targetType===`igw`?e.targetId:void 0,natGatewayId:e.targetType===`nat`?e.targetId:void 0}),q.reset({destinationCidrBlock:`0.0.0.0/0`,targetType:`igw`,targetId:``})},he=async e=>{await H.mutateAsync({routeTableId:Y,subnetId:e.subnetId}),J.reset({subnetId:``})};return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(o,{to:`/ec2/describe-route-tables`,children:`Back to Route Tables`}),z.error&&(0,P.jsx)(C,{error:z.error,msg:`Failed to delete Route Table`}),(0,P.jsxs)(`div`,{className:`space-y-6`,children:[(0,P.jsx)(w,{actions:(0,P.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,P.jsxs)(p,{disabled:Z||z.isPending,onClick:()=>G(!0),size:`sm`,variant:`destructive`,children:[(0,P.jsx)(f,{className:`size-4`}),`Delete`]}),Z&&(0,P.jsx)(se,{variant:`secondary`,children:`Main`})]}),subtitle:`Route Table Details`,title:X?`${K.RouteTableId} (${X})`:K.RouteTableId}),(0,P.jsxs)(j,{children:[(0,P.jsx)(j.Header,{children:`Route Table Information`}),(0,P.jsxs)(j.Content,{children:[(0,P.jsx)(M,{label:`Route Table ID`,value:K.RouteTableId}),(0,P.jsx)(M,{label:`Main`,value:Z?`Yes`:`No`}),(0,P.jsx)(M,{label:`VPC ID`,value:K.VpcId?(0,P.jsx)(i,{className:`text-primary hover:underline`,params:{id:K.VpcId},to:`/ec2/describe-vpcs/$id`,children:K.VpcId}):`—`}),(0,P.jsx)(M,{label:`Owner ID`,value:K.OwnerId??`—`})]})]}),(0,P.jsxs)(j,{children:[(0,P.jsx)(j.Header,{children:`Routes`}),(0,P.jsxs)(`div`,{className:`space-y-4 p-4`,children:[(0,P.jsx)(`div`,{className:`overflow-x-auto rounded-md border`,children:(0,P.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,P.jsx)(`thead`,{className:`bg-muted/50 text-left text-muted-foreground`,children:(0,P.jsxs)(`tr`,{children:[(0,P.jsx)(`th`,{className:`p-2 font-medium`,children:`Destination`}),(0,P.jsx)(`th`,{className:`p-2 font-medium`,children:`Target`}),(0,P.jsx)(`th`,{className:`p-2 font-medium`,children:`Status`}),(0,P.jsx)(`th`,{className:`p-2`,children:(0,P.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,P.jsx)(`tbody`,{children:Q.length>0?Q.map(e=>{let t=e.DestinationCidrBlock??e.DestinationPrefixListId??`—`,n=e.GatewayId===`local`,r=e.DestinationCidrBlock;return(0,P.jsxs)(`tr`,{className:`border-t`,children:[(0,P.jsx)(`td`,{className:`p-2 font-mono`,children:t}),(0,P.jsx)(`td`,{className:`p-2 font-mono`,children:F(e)}),(0,P.jsx)(`td`,{className:`p-2`,children:e.State??`—`}),(0,P.jsx)(`td`,{className:`p-2 text-right`,children:!n&&r&&(0,P.jsx)(p,{disabled:V.isPending,onClick:async()=>await V.mutateAsync({routeTableId:Y,destinationCidrBlock:r}),size:`sm`,variant:`ghost`,children:(0,P.jsx)(f,{className:`size-4`})})})]},t)}):(0,P.jsx)(`tr`,{children:(0,P.jsx)(`td`,{className:`p-2 text-muted-foreground`,colSpan:4,children:`No routes.`})})})]})}),(B.error??V.error)&&(0,P.jsx)(C,{error:B.error??V.error??void 0,msg:`Failed to update route`}),(0,P.jsxs)(`form`,{className:`grid items-end gap-3 sm:grid-cols-[1fr_1fr_1fr_auto]`,onSubmit:q.handleSubmit(me),children:[(0,P.jsxs)(D,{children:[(0,P.jsx)(T,{children:(0,P.jsx)(`label`,{htmlFor:`destinationCidrBlock`,children:`Destination`})}),(0,P.jsx)(_,{id:`destinationCidrBlock`,placeholder:`0.0.0.0/0`,...q.register(`destinationCidrBlock`)}),(0,P.jsx)(E,{errors:[q.formState.errors.destinationCidrBlock]})]}),(0,P.jsxs)(D,{children:[(0,P.jsx)(T,{children:(0,P.jsx)(`label`,{htmlFor:`targetType`,children:`Target type`})}),(0,P.jsx)(x,{control:q.control,name:`targetType`,render:({field:e})=>(0,P.jsxs)(d,{onValueChange:t=>{e.onChange(t),q.setValue(`targetId`,``)},value:e.value,children:[(0,P.jsx)(u,{className:`w-full`,id:`targetType`,children:(0,P.jsx)(s,{})}),(0,P.jsxs)(l,{children:[(0,P.jsx)(c,{value:`igw`,children:`Internet Gateway`}),(0,P.jsx)(c,{value:`nat`,children:`NAT Gateway`})]})]})})]}),(0,P.jsxs)(D,{children:[(0,P.jsx)(T,{children:(0,P.jsx)(`label`,{htmlFor:`targetId`,children:`Target`})}),(0,P.jsx)(x,{control:q.control,name:`targetId`,render:({field:e})=>(0,P.jsxs)(d,{onValueChange:t=>e.onChange(t),value:e.value??``,children:[(0,P.jsx)(u,{"aria-invalid":!!q.formState.errors.targetId,className:`w-full`,id:`targetId`,children:(0,P.jsx)(s,{placeholder:`Select target`})}),(0,P.jsx)(l,{children:ce===`igw`?le.map(e=>(0,P.jsx)(c,{value:e.InternetGatewayId??``,children:e.InternetGatewayId},e.InternetGatewayId)):ue.map(e=>(0,P.jsx)(c,{value:e.NatGatewayId??``,children:e.NatGatewayId},e.NatGatewayId))})]})}),(0,P.jsx)(E,{errors:[q.formState.errors.targetId]})]}),(0,P.jsx)(p,{disabled:B.isPending,size:`sm`,type:`submit`,children:`Add route`})]})]})]}),(0,P.jsxs)(j,{children:[(0,P.jsx)(j.Header,{children:`Subnet Associations`}),(0,P.jsxs)(`div`,{className:`space-y-4 p-4`,children:[$.length>0?(0,P.jsx)(`ul`,{className:`space-y-2`,children:$.map(e=>{let t=e.RouteTableAssociationId;return(0,P.jsxs)(`li`,{className:`flex items-center justify-between rounded-md border p-2 text-sm`,children:[(0,P.jsx)(i,{className:`font-mono text-primary hover:underline`,params:{id:e.SubnetId??``},to:`/ec2/describe-subnets/$id`,children:e.SubnetId}),(0,P.jsx)(p,{disabled:!t||U.isPending,onClick:async()=>{t&&await U.mutateAsync(t)},size:`sm`,variant:`ghost`,children:(0,P.jsx)(f,{className:`size-4`})})]},t)})}):(0,P.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No subnet associations.`}),(H.error??U.error)&&(0,P.jsx)(C,{error:H.error??U.error??void 0,msg:`Failed to update association`}),(0,P.jsxs)(`form`,{className:`grid items-end gap-3 sm:grid-cols-[1fr_auto]`,onSubmit:J.handleSubmit(he),children:[(0,P.jsxs)(D,{children:[(0,P.jsx)(T,{children:(0,P.jsx)(`label`,{htmlFor:`subnetId`,children:`Associate subnet`})}),(0,P.jsx)(x,{control:J.control,name:`subnetId`,render:({field:e})=>(0,P.jsxs)(d,{onValueChange:t=>e.onChange(t),value:e.value??``,children:[(0,P.jsx)(u,{"aria-invalid":!!J.formState.errors.subnetId,className:`w-full`,id:`subnetId`,children:(0,P.jsx)(s,{placeholder:`Select a subnet`})}),(0,P.jsx)(l,{children:fe.map(e=>{let t=a(e.Tags);return(0,P.jsx)(c,{value:e.SubnetId??``,children:t?`${e.SubnetId} (${t})`:`${e.SubnetId} (${e.CidrBlock})`},e.SubnetId)})})]})}),(0,P.jsx)(E,{errors:[J.formState.errors.subnetId]})]}),(0,P.jsx)(p,{disabled:H.isPending,size:`sm`,type:`submit`,children:`Associate`})]})]})]})]}),(0,P.jsx)(A,{description:`Are you sure you want to delete the Route Table "${K.RouteTableId}"? This action cannot be undone.`,isPending:z.isPending,onConfirm:pe,onOpenChange:G,open:W,title:`Delete Route Table`})]})}export{I as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_instanceProfileName.js b/spinifex/services/spinifexui/frontend/dist/assets/_instanceProfileName.js index 8922b4ea1..276b749c6 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_instanceProfileName.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_instanceProfileName.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{kr as i}from"./awsClient.js";import{Bt as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as s}from"./trash-2.js";import{t as c}from"./button.js";import{g as l,t as u,u as d}from"./iam.js";import{Br as f,et as p,st as m,y as h}from"./index.js";import{t as g}from"./error-banner.js";import{t as _}from"./page-heading.js";import{t as v}from"./delete-confirmation-dialog.js";import{n as y,t as b}from"./detail-row.js";var x=t(n()),S=e();function C(){let{instanceProfileName:e}=h.useParams(),t=f(),{data:n}=r(p(e)),{data:C}=r(m),w=d(),T=u(),E=l(),[D,O]=(0,x.useState)(!1),[k,A]=(0,x.useState)(!1),[j,M]=(0,x.useState)(null),N=n.InstanceProfile,P=N?.Roles??[],F=C.Roles??[],I=new Set(P.map(e=>e.RoleName)),L=F.filter(e=>e.RoleName&&!I.has(e.RoleName)),R=async()=>{try{await w.mutateAsync(e),t({to:`/iam/list-instance-profiles`})}finally{O(!1)}},z=async t=>{await T.mutateAsync({instanceProfileName:e,roleName:t}),A(!1)},B=async t=>{M(t);try{await E.mutateAsync({instanceProfileName:e,roleName:t})}finally{M(null)}};return N?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(o,{to:`/iam/list-instance-profiles`,children:`Back to instance profiles`}),w.error&&(0,S.jsx)(g,{error:w.error,msg:`Failed to delete instance profile`}),T.error&&(0,S.jsx)(g,{error:T.error,msg:`Failed to add role`}),E.error&&(0,S.jsx)(g,{error:E.error,msg:`Failed to remove role`}),(0,S.jsxs)(`div`,{className:`space-y-6`,children:[(0,S.jsx)(_,{actions:(0,S.jsxs)(c,{onClick:()=>O(!0),size:`sm`,variant:`destructive`,children:[(0,S.jsx)(s,{className:`size-4`}),`Delete`]}),subtitle:`Instance Profile Details`,title:N.InstanceProfileName??``}),(0,S.jsxs)(y,{children:[(0,S.jsx)(y.Header,{children:`Instance Profile Information`}),(0,S.jsxs)(y.Content,{children:[(0,S.jsx)(b,{label:`Name`,value:N.InstanceProfileName}),(0,S.jsx)(b,{label:`ID`,value:N.InstanceProfileId}),(0,S.jsx)(b,{label:`ARN`,value:N.Arn}),(0,S.jsx)(b,{label:`Path`,value:N.Path}),(0,S.jsx)(b,{label:`Created`,value:a(N.CreateDate)})]})]}),(0,S.jsxs)(y,{children:[(0,S.jsx)(y.Header,{children:(0,S.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,S.jsx)(`span`,{children:`Roles`}),(0,S.jsx)(c,{onClick:()=>A(!k),size:`sm`,children:`Add Role`})]})}),(0,S.jsxs)(y.Content,{children:[k&&L.length>0&&(0,S.jsxs)(`div`,{className:`col-span-2 space-y-2 rounded-md border p-3`,children:[(0,S.jsx)(`p`,{className:`text-sm font-medium`,children:`Select a role to add:`}),(0,S.jsx)(`div`,{className:`space-y-1`,children:L.map(e=>(0,S.jsxs)(`button`,{className:`flex w-full items-center justify-between rounded-md p-2 text-left text-sm hover:bg-accent`,disabled:T.isPending,onClick:()=>{e.RoleName&&z(e.RoleName)},type:`button`,children:[(0,S.jsx)(`span`,{children:e.RoleName}),(0,S.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.Arn})]},e.RoleName))})]}),k&&L.length===0&&(0,S.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No roles available to add.`}),P.length>0?(0,S.jsx)(`div`,{className:`col-span-2 space-y-3`,children:P.map(e=>(0,S.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,S.jsx)(i,{className:`text-sm font-medium text-primary hover:underline`,params:{roleName:e.RoleName??``},to:`/iam/list-roles/$roleName`,children:e.RoleName}),(0,S.jsx)(c,{disabled:j===e.RoleName,onClick:()=>{e.RoleName&&B(e.RoleName)},size:`sm`,variant:`outline`,children:`Remove`})]},e.RoleName))}):(0,S.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No roles in this instance profile.`})]})]})]}),(0,S.jsx)(v,{description:`Are you sure you want to delete the instance profile "${e}"? This action cannot be undone. You must remove all roles first.`,isPending:w.isPending,onConfirm:R,onOpenChange:O,open:D,title:`Delete Instance Profile`})]}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(o,{to:`/iam/list-instance-profiles`,children:`Back to instance profiles`}),(0,S.jsx)(`p`,{className:`text-muted-foreground`,children:`Instance profile not found.`})]})}export{C as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{Ar as i}from"./awsClient.js";import{Bt as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as s}from"./trash-2.js";import{t as c}from"./button.js";import{g as l,t as u,u as d}from"./iam.js";import{Br as f,et as p,st as m,y as h}from"./index.js";import{t as g}from"./error-banner.js";import{t as _}from"./page-heading.js";import{t as v}from"./delete-confirmation-dialog.js";import{n as y,t as b}from"./detail-row.js";var x=t(n()),S=e();function C(){let{instanceProfileName:e}=h.useParams(),t=f(),{data:n}=r(p(e)),{data:C}=r(m),w=d(),T=u(),E=l(),[D,O]=(0,x.useState)(!1),[k,A]=(0,x.useState)(!1),[j,M]=(0,x.useState)(null),N=n.InstanceProfile,P=N?.Roles??[],F=C.Roles??[],I=new Set(P.map(e=>e.RoleName)),L=F.filter(e=>e.RoleName&&!I.has(e.RoleName)),R=async()=>{try{await w.mutateAsync(e),t({to:`/iam/list-instance-profiles`})}finally{O(!1)}},z=async t=>{await T.mutateAsync({instanceProfileName:e,roleName:t}),A(!1)},B=async t=>{M(t);try{await E.mutateAsync({instanceProfileName:e,roleName:t})}finally{M(null)}};return N?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(o,{to:`/iam/list-instance-profiles`,children:`Back to instance profiles`}),w.error&&(0,S.jsx)(g,{error:w.error,msg:`Failed to delete instance profile`}),T.error&&(0,S.jsx)(g,{error:T.error,msg:`Failed to add role`}),E.error&&(0,S.jsx)(g,{error:E.error,msg:`Failed to remove role`}),(0,S.jsxs)(`div`,{className:`space-y-6`,children:[(0,S.jsx)(_,{actions:(0,S.jsxs)(c,{onClick:()=>O(!0),size:`sm`,variant:`destructive`,children:[(0,S.jsx)(s,{className:`size-4`}),`Delete`]}),subtitle:`Instance Profile Details`,title:N.InstanceProfileName??``}),(0,S.jsxs)(y,{children:[(0,S.jsx)(y.Header,{children:`Instance Profile Information`}),(0,S.jsxs)(y.Content,{children:[(0,S.jsx)(b,{label:`Name`,value:N.InstanceProfileName}),(0,S.jsx)(b,{label:`ID`,value:N.InstanceProfileId}),(0,S.jsx)(b,{label:`ARN`,value:N.Arn}),(0,S.jsx)(b,{label:`Path`,value:N.Path}),(0,S.jsx)(b,{label:`Created`,value:a(N.CreateDate)})]})]}),(0,S.jsxs)(y,{children:[(0,S.jsx)(y.Header,{children:(0,S.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,S.jsx)(`span`,{children:`Roles`}),(0,S.jsx)(c,{onClick:()=>A(!k),size:`sm`,children:`Add Role`})]})}),(0,S.jsxs)(y.Content,{children:[k&&L.length>0&&(0,S.jsxs)(`div`,{className:`col-span-2 space-y-2 rounded-md border p-3`,children:[(0,S.jsx)(`p`,{className:`text-sm font-medium`,children:`Select a role to add:`}),(0,S.jsx)(`div`,{className:`space-y-1`,children:L.map(e=>(0,S.jsxs)(`button`,{className:`flex w-full items-center justify-between rounded-md p-2 text-left text-sm hover:bg-accent`,disabled:T.isPending,onClick:()=>{e.RoleName&&z(e.RoleName)},type:`button`,children:[(0,S.jsx)(`span`,{children:e.RoleName}),(0,S.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.Arn})]},e.RoleName))})]}),k&&L.length===0&&(0,S.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No roles available to add.`}),P.length>0?(0,S.jsx)(`div`,{className:`col-span-2 space-y-3`,children:P.map(e=>(0,S.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,S.jsx)(i,{className:`text-sm font-medium text-primary hover:underline`,params:{roleName:e.RoleName??``},to:`/iam/list-roles/$roleName`,children:e.RoleName}),(0,S.jsx)(c,{disabled:j===e.RoleName,onClick:()=>{e.RoleName&&B(e.RoleName)},size:`sm`,variant:`outline`,children:`Remove`})]},e.RoleName))}):(0,S.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No roles in this instance profile.`})]})]})]}),(0,S.jsx)(v,{description:`Are you sure you want to delete the instance profile "${e}"? This action cannot be undone. You must remove all roles first.`,isPending:w.isPending,onConfirm:R,onOpenChange:O,open:D,title:`Delete Instance Profile`})]}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(o,{to:`/iam/list-instance-profiles`,children:`Back to instance profiles`}),(0,S.jsx)(`p`,{className:`text-muted-foreground`,children:`Instance profile not found.`})]})}export{C as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/_roleName.js b/spinifex/services/spinifexui/frontend/dist/assets/_roleName.js index da261a41d..34940bc02 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/_roleName.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/_roleName.js @@ -1 +1 @@ -import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{kr as i}from"./awsClient.js";import{Bt as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as s}from"./trash-2.js";import{t as c}from"./button.js";import{f as l,m as u,n as d}from"./iam.js";import{Br as f,Q as p,ot as m,rt as h,tt as g,x as _}from"./index.js";import{t as v}from"./error-banner.js";import{t as y}from"./page-heading.js";import{t as b}from"./delete-confirmation-dialog.js";import{n as x,t as S}from"./detail-row.js";import{t as C}from"./policy-document-viewer.js";var w=t(n()),T=e();function E(){let{roleName:e}=_.useParams(),t=f(),{data:n}=r(m(e)),{data:E}=r(p(e)),{data:D}=r(g(e)),{data:O}=r(h),k=l(),A=d(),j=u(),[M,N]=(0,w.useState)(!1),[P,F]=(0,w.useState)(!1),[I,L]=(0,w.useState)(null),R=n.Role,z=E.AttachedPolicies??[],B=D.InstanceProfiles??[],V=O.Policies??[],H=new Set(z.map(e=>e.PolicyArn)),U=V.filter(e=>e.Arn&&!H.has(e.Arn)),W=R?.AssumeRolePolicyDocument?decodeURIComponent(R.AssumeRolePolicyDocument):null,G=async()=>{try{await k.mutateAsync(e),t({to:`/iam/list-roles`})}finally{N(!1)}},K=async t=>{await A.mutateAsync({roleName:e,policyArn:t}),F(!1)},q=async t=>{L(t);try{await j.mutateAsync({roleName:e,policyArn:t})}finally{L(null)}};return R?(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(o,{to:`/iam/list-roles`,children:`Back to roles`}),k.error&&(0,T.jsx)(v,{error:k.error,msg:`Failed to delete role`}),A.error&&(0,T.jsx)(v,{error:A.error,msg:`Failed to attach policy`}),j.error&&(0,T.jsx)(v,{error:j.error,msg:`Failed to detach policy`}),(0,T.jsxs)(`div`,{className:`space-y-6`,children:[(0,T.jsx)(y,{actions:(0,T.jsxs)(c,{onClick:()=>N(!0),size:`sm`,variant:`destructive`,children:[(0,T.jsx)(s,{className:`size-4`}),`Delete`]}),subtitle:`Role Details`,title:R.RoleName??``}),(0,T.jsxs)(x,{children:[(0,T.jsx)(x.Header,{children:`Role Information`}),(0,T.jsxs)(x.Content,{children:[(0,T.jsx)(S,{label:`Role Name`,value:R.RoleName}),(0,T.jsx)(S,{label:`Role ID`,value:R.RoleId}),(0,T.jsx)(S,{label:`ARN`,value:R.Arn}),(0,T.jsx)(S,{label:`Path`,value:R.Path}),(0,T.jsx)(S,{label:`Description`,value:R.Description??`-`}),(0,T.jsx)(S,{label:`Created`,value:a(R.CreateDate)})]})]}),W&&(0,T.jsxs)(x,{children:[(0,T.jsx)(x.Header,{children:`Trust Policy`}),(0,T.jsx)(`div`,{className:`p-4`,children:(0,T.jsx)(C,{document:W})})]}),(0,T.jsxs)(x,{children:[(0,T.jsx)(x.Header,{children:(0,T.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,T.jsx)(`span`,{children:`Attached Policies`}),(0,T.jsx)(c,{onClick:()=>F(!P),size:`sm`,children:`Attach Policy`})]})}),(0,T.jsxs)(x.Content,{children:[P&&U.length>0&&(0,T.jsxs)(`div`,{className:`col-span-2 space-y-2 rounded-md border p-3`,children:[(0,T.jsx)(`p`,{className:`text-sm font-medium`,children:`Select a policy to attach:`}),(0,T.jsx)(`div`,{className:`space-y-1`,children:U.map(e=>(0,T.jsxs)(`button`,{className:`flex w-full items-center justify-between rounded-md p-2 text-left text-sm hover:bg-accent`,disabled:A.isPending,onClick:()=>{e.Arn&&K(e.Arn)},type:`button`,children:[(0,T.jsx)(`span`,{children:e.PolicyName}),(0,T.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.Arn})]},e.Arn))})]}),P&&U.length===0&&(0,T.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No policies available to attach.`}),z.length>0?(0,T.jsx)(`div`,{className:`col-span-2 space-y-3`,children:z.map(e=>(0,T.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,T.jsxs)(`div`,{className:`space-y-1`,children:[(0,T.jsx)(`p`,{className:`text-sm font-medium`,children:e.PolicyName}),(0,T.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e.PolicyArn})]}),(0,T.jsx)(c,{disabled:I===e.PolicyArn,onClick:()=>{e.PolicyArn&&q(e.PolicyArn)},size:`sm`,variant:`outline`,children:`Detach`})]},e.PolicyArn))}):(0,T.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No attached policies.`})]})]}),(0,T.jsxs)(x,{children:[(0,T.jsx)(x.Header,{children:`Instance Profiles`}),(0,T.jsx)(x.Content,{children:B.length>0?(0,T.jsx)(`div`,{className:`col-span-2 space-y-3`,children:B.map(e=>(0,T.jsxs)(i,{className:`flex items-center justify-between rounded-md border p-3 transition-colors hover:bg-accent`,params:{instanceProfileName:e.InstanceProfileName??``},to:`/iam/list-instance-profiles/$instanceProfileName`,children:[(0,T.jsx)(`p`,{className:`text-sm font-medium`,children:e.InstanceProfileName}),(0,T.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.Arn})]},e.InstanceProfileName))}):(0,T.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`This role is not in any instance profile.`})})]})]}),(0,T.jsx)(b,{description:`Are you sure you want to delete the role "${e}"? This action cannot be undone. You must detach all policies and remove it from all instance profiles first.`,isPending:k.isPending,onConfirm:G,onOpenChange:N,open:M,title:`Delete Role`})]}):(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(o,{to:`/iam/list-roles`,children:`Back to roles`}),(0,T.jsx)(`p`,{className:`text-muted-foreground`,children:`Role not found.`})]})}export{E as component}; \ No newline at end of file +import{n as e,o as t,r as n}from"./compiler-runtime.js";import{t as r}from"./useSuspenseQuery.js";import{Ar as i}from"./awsClient.js";import{Bt as a}from"./auth.js";import{t as o}from"./back-link.js";import{t as s}from"./trash-2.js";import{t as c}from"./button.js";import{f as l,m as u,n as d}from"./iam.js";import{Br as f,Q as p,ot as m,rt as h,tt as g,x as _}from"./index.js";import{t as v}from"./error-banner.js";import{t as y}from"./page-heading.js";import{t as b}from"./delete-confirmation-dialog.js";import{n as x,t as S}from"./detail-row.js";import{t as C}from"./policy-document-viewer.js";var w=t(n()),T=e();function E(){let{roleName:e}=_.useParams(),t=f(),{data:n}=r(m(e)),{data:E}=r(p(e)),{data:D}=r(g(e)),{data:O}=r(h),k=l(),A=d(),j=u(),[M,N]=(0,w.useState)(!1),[P,F]=(0,w.useState)(!1),[I,L]=(0,w.useState)(null),R=n.Role,z=E.AttachedPolicies??[],B=D.InstanceProfiles??[],V=O.Policies??[],H=new Set(z.map(e=>e.PolicyArn)),U=V.filter(e=>e.Arn&&!H.has(e.Arn)),W=R?.AssumeRolePolicyDocument?decodeURIComponent(R.AssumeRolePolicyDocument):null,G=async()=>{try{await k.mutateAsync(e),t({to:`/iam/list-roles`})}finally{N(!1)}},K=async t=>{await A.mutateAsync({roleName:e,policyArn:t}),F(!1)},q=async t=>{L(t);try{await j.mutateAsync({roleName:e,policyArn:t})}finally{L(null)}};return R?(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(o,{to:`/iam/list-roles`,children:`Back to roles`}),k.error&&(0,T.jsx)(v,{error:k.error,msg:`Failed to delete role`}),A.error&&(0,T.jsx)(v,{error:A.error,msg:`Failed to attach policy`}),j.error&&(0,T.jsx)(v,{error:j.error,msg:`Failed to detach policy`}),(0,T.jsxs)(`div`,{className:`space-y-6`,children:[(0,T.jsx)(y,{actions:(0,T.jsxs)(c,{onClick:()=>N(!0),size:`sm`,variant:`destructive`,children:[(0,T.jsx)(s,{className:`size-4`}),`Delete`]}),subtitle:`Role Details`,title:R.RoleName??``}),(0,T.jsxs)(x,{children:[(0,T.jsx)(x.Header,{children:`Role Information`}),(0,T.jsxs)(x.Content,{children:[(0,T.jsx)(S,{label:`Role Name`,value:R.RoleName}),(0,T.jsx)(S,{label:`Role ID`,value:R.RoleId}),(0,T.jsx)(S,{label:`ARN`,value:R.Arn}),(0,T.jsx)(S,{label:`Path`,value:R.Path}),(0,T.jsx)(S,{label:`Description`,value:R.Description??`-`}),(0,T.jsx)(S,{label:`Created`,value:a(R.CreateDate)})]})]}),W&&(0,T.jsxs)(x,{children:[(0,T.jsx)(x.Header,{children:`Trust Policy`}),(0,T.jsx)(`div`,{className:`p-4`,children:(0,T.jsx)(C,{document:W})})]}),(0,T.jsxs)(x,{children:[(0,T.jsx)(x.Header,{children:(0,T.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,T.jsx)(`span`,{children:`Attached Policies`}),(0,T.jsx)(c,{onClick:()=>F(!P),size:`sm`,children:`Attach Policy`})]})}),(0,T.jsxs)(x.Content,{children:[P&&U.length>0&&(0,T.jsxs)(`div`,{className:`col-span-2 space-y-2 rounded-md border p-3`,children:[(0,T.jsx)(`p`,{className:`text-sm font-medium`,children:`Select a policy to attach:`}),(0,T.jsx)(`div`,{className:`space-y-1`,children:U.map(e=>(0,T.jsxs)(`button`,{className:`flex w-full items-center justify-between rounded-md p-2 text-left text-sm hover:bg-accent`,disabled:A.isPending,onClick:()=>{e.Arn&&K(e.Arn)},type:`button`,children:[(0,T.jsx)(`span`,{children:e.PolicyName}),(0,T.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.Arn})]},e.Arn))})]}),P&&U.length===0&&(0,T.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No policies available to attach.`}),z.length>0?(0,T.jsx)(`div`,{className:`col-span-2 space-y-3`,children:z.map(e=>(0,T.jsxs)(`div`,{className:`flex items-center justify-between rounded-md border p-3`,children:[(0,T.jsxs)(`div`,{className:`space-y-1`,children:[(0,T.jsx)(`p`,{className:`text-sm font-medium`,children:e.PolicyName}),(0,T.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e.PolicyArn})]}),(0,T.jsx)(c,{disabled:I===e.PolicyArn,onClick:()=>{e.PolicyArn&&q(e.PolicyArn)},size:`sm`,variant:`outline`,children:`Detach`})]},e.PolicyArn))}):(0,T.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`No attached policies.`})]})]}),(0,T.jsxs)(x,{children:[(0,T.jsx)(x.Header,{children:`Instance Profiles`}),(0,T.jsx)(x.Content,{children:B.length>0?(0,T.jsx)(`div`,{className:`col-span-2 space-y-3`,children:B.map(e=>(0,T.jsxs)(i,{className:`flex items-center justify-between rounded-md border p-3 transition-colors hover:bg-accent`,params:{instanceProfileName:e.InstanceProfileName??``},to:`/iam/list-instance-profiles/$instanceProfileName`,children:[(0,T.jsx)(`p`,{className:`text-sm font-medium`,children:e.InstanceProfileName}),(0,T.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.Arn})]},e.InstanceProfileName))}):(0,T.jsx)(`p`,{className:`col-span-2 text-sm text-muted-foreground`,children:`This role is not in any instance profile.`})})]})]}),(0,T.jsx)(b,{description:`Are you sure you want to delete the role "${e}"? This action cannot be undone. You must detach all policies and remove it from all instance profiles first.`,isPending:k.isPending,onConfirm:G,onOpenChange:N,open:M,title:`Delete Role`})]}):(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(o,{to:`/iam/list-roles`,children:`Back to roles`}),(0,T.jsx)(`p`,{className:`text-muted-foreground`,children:`Role not found.`})]})}export{E as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/ami-details.js b/spinifex/services/spinifexui/frontend/dist/assets/ami-details.js index d2a95c9e1..79ca66568 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/ami-details.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/ami-details.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{kr as n}from"./awsClient.js";import{Bt as r}from"./auth.js";import{n as i,t as a}from"./detail-row.js";var o=t(),s=e();function c(e){let t=(0,o.c)(58),{image:c,showExtendedDetails:u}=e,d=u===void 0?!1:u,f;t[0]===c.CreationDate?f=t[1]:(f=r(c.CreationDate),t[0]=c.CreationDate,t[1]=f);let p=f,m=d?`AMI Information`:`AMI Details`,h;t[2]===m?h=t[3]:(h=(0,s.jsx)(i.Header,{children:m}),t[2]=m,t[3]=h);let g;t[4]!==c.ImageId||t[5]!==d?(g=c.ImageId&&!d?(0,s.jsx)(n,{className:`text-primary hover:underline`,params:{id:c.ImageId},to:`/ec2/describe-images/$id`,children:c.ImageId}):c.ImageId,t[4]=c.ImageId,t[5]=d,t[6]=g):g=t[6];let _;t[7]===g?_=t[8]:(_=(0,s.jsx)(a,{label:`AMI ID`,value:g}),t[7]=g,t[8]=_);let v;t[9]===c.Name?v=t[10]:(v=(0,s.jsx)(a,{label:`AMI Name`,value:c.Name}),t[9]=c.Name,t[10]=v);let y;t[11]===c.Description?y=t[12]:(y=(0,s.jsx)(a,{label:`Description`,value:c.Description}),t[11]=c.Description,t[12]=y);let b;t[13]===c.Architecture?b=t[14]:(b=(0,s.jsx)(a,{label:`Architecture`,value:c.Architecture}),t[13]=c.Architecture,t[14]=b);let x;t[15]===c.VirtualizationType?x=t[16]:(x=(0,s.jsx)(a,{label:`Virtualization Type`,value:c.VirtualizationType}),t[15]=c.VirtualizationType,t[16]=x);let S=c.Platform??`Linux`,C;t[17]===S?C=t[18]:(C=(0,s.jsx)(a,{label:`Platform`,value:S}),t[17]=S,t[18]=C);let w;t[19]===c.PlatformDetails?w=t[20]:(w=(0,s.jsx)(a,{label:`Platform Details`,value:c.PlatformDetails}),t[19]=c.PlatformDetails,t[20]=w);let T;t[21]===c.ImageType?T=t[22]:(T=(0,s.jsx)(a,{label:`Image Type`,value:c.ImageType}),t[21]=c.ImageType,t[22]=T);let E;t[23]===c.RootDeviceType?E=t[24]:(E=(0,s.jsx)(a,{label:`Root Device Type`,value:c.RootDeviceType}),t[23]=c.RootDeviceType,t[24]=E);let D;t[25]===c.RootDeviceName?D=t[26]:(D=(0,s.jsx)(a,{label:`Root Device Name`,value:c.RootDeviceName}),t[25]=c.RootDeviceName,t[26]=D);let O;t[27]===c.OwnerId?O=t[28]:(O=(0,s.jsx)(a,{label:`Owner`,value:c.OwnerId}),t[27]=c.OwnerId,t[28]=O);let k;t[29]===c.State?k=t[30]:(k=(0,s.jsx)(a,{label:`State`,value:c.State}),t[29]=c.State,t[30]=k);let A;t[31]!==p||t[32]!==c.Public||t[33]!==d?(A=d&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a,{label:`Creation Date`,value:p}),(0,s.jsx)(a,{label:`Public`,value:c.Public?`Yes`:`No`})]}),t[31]=p,t[32]=c.Public,t[33]=d,t[34]=A):A=t[34];let j;t[35]!==x||t[36]!==C||t[37]!==w||t[38]!==T||t[39]!==E||t[40]!==D||t[41]!==O||t[42]!==k||t[43]!==A||t[44]!==_||t[45]!==v||t[46]!==y||t[47]!==b?(j=(0,s.jsxs)(i.Content,{children:[_,v,y,b,x,C,w,T,E,D,O,k,A]}),t[35]=x,t[36]=C,t[37]=w,t[38]=T,t[39]=E,t[40]=D,t[41]=O,t[42]=k,t[43]=A,t[44]=_,t[45]=v,t[46]=y,t[47]=b,t[48]=j):j=t[48];let M;t[49]!==j||t[50]!==h?(M=(0,s.jsxs)(i,{children:[h,j]}),t[49]=j,t[50]=h,t[51]=M):M=t[51];let N;t[52]!==c.BlockDeviceMappings||t[53]!==d?(N=d&&c.BlockDeviceMappings&&c.BlockDeviceMappings.length>0&&c.BlockDeviceMappings.map(l),t[52]=c.BlockDeviceMappings,t[53]=d,t[54]=N):N=t[54];let P;return t[55]!==M||t[56]!==N?(P=(0,s.jsxs)(s.Fragment,{children:[M,N]}),t[55]=M,t[56]=N,t[57]=P):P=t[57],P}function l(e){return(0,s.jsxs)(i,{children:[(0,s.jsxs)(i.Header,{children:[`Block Device: `,e.DeviceName]}),(0,s.jsxs)(i.Content,{children:[(0,s.jsx)(a,{label:`Device Name`,value:e.DeviceName}),e.Ebs&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a,{label:`Volume Size`,value:e.Ebs.VolumeSize?`${e.Ebs.VolumeSize} GB`:void 0}),(0,s.jsx)(a,{label:`Volume Type`,value:e.Ebs.VolumeType}),(0,s.jsx)(a,{label:`Delete On Termination`,value:e.Ebs.DeleteOnTermination?`Yes`:`No`}),(0,s.jsx)(a,{label:`Encrypted`,value:e.Ebs.Encrypted?`Yes`:`No`}),e.Ebs.SnapshotId&&(0,s.jsx)(a,{label:`Snapshot ID`,value:(0,s.jsx)(n,{className:`text-primary hover:underline`,params:{id:e.Ebs.SnapshotId},to:`/ec2/describe-snapshots/$id`,children:e.Ebs.SnapshotId})})]}),e.VirtualName&&(0,s.jsx)(a,{label:`Virtual Name`,value:e.VirtualName})]})]},e.DeviceName)}export{c as t}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{Ar as n}from"./awsClient.js";import{Bt as r}from"./auth.js";import{n as i,t as a}from"./detail-row.js";var o=t(),s=e();function c(e){let t=(0,o.c)(58),{image:c,showExtendedDetails:u}=e,d=u===void 0?!1:u,f;t[0]===c.CreationDate?f=t[1]:(f=r(c.CreationDate),t[0]=c.CreationDate,t[1]=f);let p=f,m=d?`AMI Information`:`AMI Details`,h;t[2]===m?h=t[3]:(h=(0,s.jsx)(i.Header,{children:m}),t[2]=m,t[3]=h);let g;t[4]!==c.ImageId||t[5]!==d?(g=c.ImageId&&!d?(0,s.jsx)(n,{className:`text-primary hover:underline`,params:{id:c.ImageId},to:`/ec2/describe-images/$id`,children:c.ImageId}):c.ImageId,t[4]=c.ImageId,t[5]=d,t[6]=g):g=t[6];let _;t[7]===g?_=t[8]:(_=(0,s.jsx)(a,{label:`AMI ID`,value:g}),t[7]=g,t[8]=_);let v;t[9]===c.Name?v=t[10]:(v=(0,s.jsx)(a,{label:`AMI Name`,value:c.Name}),t[9]=c.Name,t[10]=v);let y;t[11]===c.Description?y=t[12]:(y=(0,s.jsx)(a,{label:`Description`,value:c.Description}),t[11]=c.Description,t[12]=y);let b;t[13]===c.Architecture?b=t[14]:(b=(0,s.jsx)(a,{label:`Architecture`,value:c.Architecture}),t[13]=c.Architecture,t[14]=b);let x;t[15]===c.VirtualizationType?x=t[16]:(x=(0,s.jsx)(a,{label:`Virtualization Type`,value:c.VirtualizationType}),t[15]=c.VirtualizationType,t[16]=x);let S=c.Platform??`Linux`,C;t[17]===S?C=t[18]:(C=(0,s.jsx)(a,{label:`Platform`,value:S}),t[17]=S,t[18]=C);let w;t[19]===c.PlatformDetails?w=t[20]:(w=(0,s.jsx)(a,{label:`Platform Details`,value:c.PlatformDetails}),t[19]=c.PlatformDetails,t[20]=w);let T;t[21]===c.ImageType?T=t[22]:(T=(0,s.jsx)(a,{label:`Image Type`,value:c.ImageType}),t[21]=c.ImageType,t[22]=T);let E;t[23]===c.RootDeviceType?E=t[24]:(E=(0,s.jsx)(a,{label:`Root Device Type`,value:c.RootDeviceType}),t[23]=c.RootDeviceType,t[24]=E);let D;t[25]===c.RootDeviceName?D=t[26]:(D=(0,s.jsx)(a,{label:`Root Device Name`,value:c.RootDeviceName}),t[25]=c.RootDeviceName,t[26]=D);let O;t[27]===c.OwnerId?O=t[28]:(O=(0,s.jsx)(a,{label:`Owner`,value:c.OwnerId}),t[27]=c.OwnerId,t[28]=O);let k;t[29]===c.State?k=t[30]:(k=(0,s.jsx)(a,{label:`State`,value:c.State}),t[29]=c.State,t[30]=k);let A;t[31]!==p||t[32]!==c.Public||t[33]!==d?(A=d&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a,{label:`Creation Date`,value:p}),(0,s.jsx)(a,{label:`Public`,value:c.Public?`Yes`:`No`})]}),t[31]=p,t[32]=c.Public,t[33]=d,t[34]=A):A=t[34];let j;t[35]!==x||t[36]!==C||t[37]!==w||t[38]!==T||t[39]!==E||t[40]!==D||t[41]!==O||t[42]!==k||t[43]!==A||t[44]!==_||t[45]!==v||t[46]!==y||t[47]!==b?(j=(0,s.jsxs)(i.Content,{children:[_,v,y,b,x,C,w,T,E,D,O,k,A]}),t[35]=x,t[36]=C,t[37]=w,t[38]=T,t[39]=E,t[40]=D,t[41]=O,t[42]=k,t[43]=A,t[44]=_,t[45]=v,t[46]=y,t[47]=b,t[48]=j):j=t[48];let M;t[49]!==j||t[50]!==h?(M=(0,s.jsxs)(i,{children:[h,j]}),t[49]=j,t[50]=h,t[51]=M):M=t[51];let N;t[52]!==c.BlockDeviceMappings||t[53]!==d?(N=d&&c.BlockDeviceMappings&&c.BlockDeviceMappings.length>0&&c.BlockDeviceMappings.map(l),t[52]=c.BlockDeviceMappings,t[53]=d,t[54]=N):N=t[54];let P;return t[55]!==M||t[56]!==N?(P=(0,s.jsxs)(s.Fragment,{children:[M,N]}),t[55]=M,t[56]=N,t[57]=P):P=t[57],P}function l(e){return(0,s.jsxs)(i,{children:[(0,s.jsxs)(i.Header,{children:[`Block Device: `,e.DeviceName]}),(0,s.jsxs)(i.Content,{children:[(0,s.jsx)(a,{label:`Device Name`,value:e.DeviceName}),e.Ebs&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a,{label:`Volume Size`,value:e.Ebs.VolumeSize?`${e.Ebs.VolumeSize} GB`:void 0}),(0,s.jsx)(a,{label:`Volume Type`,value:e.Ebs.VolumeType}),(0,s.jsx)(a,{label:`Delete On Termination`,value:e.Ebs.DeleteOnTermination?`Yes`:`No`}),(0,s.jsx)(a,{label:`Encrypted`,value:e.Ebs.Encrypted?`Yes`:`No`}),e.Ebs.SnapshotId&&(0,s.jsx)(a,{label:`Snapshot ID`,value:(0,s.jsx)(n,{className:`text-primary hover:underline`,params:{id:e.Ebs.SnapshotId},to:`/ec2/describe-snapshots/$id`,children:e.Ebs.SnapshotId})})]}),e.VirtualName&&(0,s.jsx)(a,{label:`Virtual Name`,value:e.VirtualName})]})]},e.DeviceName)}export{c as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/awsClient.js b/spinifex/services/spinifexui/frontend/dist/assets/awsClient.js index 78ff246cb..b50b81165 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/awsClient.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/awsClient.js @@ -1,2 +1,2 @@ -import{i as e,n as t,o as n,r}from"./compiler-runtime.js";import{A as i,F as a,H as o,N as s,U as c,i as l,p as ee,s as te,t as ne,u as re}from"./useStore.js";import{$ as ie,A as ae,B as oe,C as se,Ct as ce,Dt as le,E as ue,Et as de,F as fe,Ft as pe,G as me,H as he,I as ge,J as _e,K as ve,L as ye,M as be,Mt as xe,N as Se,Nt as Ce,O as we,Ot as Te,P as Ee,Pt as De,Q as Oe,R as ke,S as Ae,St as je,T as Me,Tt as Ne,U as Pe,V as Fe,W as Ie,X as Le,Y as Re,_ as ze,_t as Be,b as Ve,bt as He,ct as Ue,dt as We,et as Ge,ft as Ke,g as qe,gt as Je,ht as Ye,it as Xe,j as Ze,jt as Qe,k as $e,kt as et,mt as tt,nt,ot as rt,pt as it,q as at,r as ot,rt as st,st as ct,tt as eee,ut as tee,v as nee,vt as lt,w as ut,wt as dt,x as ft,xt as pt,y as mt,yt as ht,z as gt}from"./auth.js";import{A as ree,C as _t,D as vt,F as yt,I as bt,M as xt,N as St,O as Ct,P as wt,S as iee,c as aee,f as Tt,j as oee,k as Et,p as see,s as cee,u as Dt,v as Ot,x as kt}from"./tslib.es6.js";import{n as At,r as jt}from"./index.browser.js";var Mt=`Error preloading route! ☝️`,Nt=e((e=>{var t=r();function n(e){var t=`https://react.dev/errors/`+e;if(1{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Nt()})),Ft=n(r(),1);t();var It=n(Pt(),1);function Lt(e,t){let n=l(),r=o(t),{activeProps:ie,inactiveProps:ae,activeOptions:oe,to:se,preload:ce,preloadDelay:le,preloadIntentProximity:ue,hashScrollIntoView:de,replace:fe,startTransition:pe,resetScroll:me,viewTransition:he,children:ge,target:_e,disabled:ve,style:ye,className:be,onClick:xe,onBlur:Se,onFocus:Ce,onMouseEnter:we,onMouseLeave:Te,onTouchStart:Ee,ignoreBlocker:De,params:Oe,search:ke,hash:Ae,state:je,mask:Me,reloadDocument:Ne,unsafeRelative:Pe,from:Fe,_fromLocation:Ie,...Le}=e,Re=te(),ze=Ft.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),Be=ne(n.stores.location,e=>e,(e,t)=>e.href===t.href),Ve=Ft.useMemo(()=>{let e={_fromLocation:Be,...ze};return n.buildLocation(e)},[n,Be,ze]),He=Ve.maskedLocation?Ve.maskedLocation.publicHref:Ve.publicHref,Ue=Ve.maskedLocation?Ve.maskedLocation.external:Ve.external,We=Ft.useMemo(()=>Kt(He,Ue,n.history,ve),[ve,Ue,He,n.history]),Ge=Ft.useMemo(()=>{if(We?.external)return a(We.href,n.protocolAllowlist)?void 0:We.href;if(!qt(se)&&!(typeof se!=`string`||se.indexOf(`:`)===-1))try{return new URL(se),a(se,n.protocolAllowlist)?void 0:se}catch{}},[se,We,n.protocolAllowlist]),Ke=Ft.useMemo(()=>{if(Ge)return!1;if(oe?.exact){if(!re(Be.pathname,Ve.pathname,n.basepath))return!1}else{let e=ee(Be.pathname,n.basepath),t=ee(Ve.pathname,n.basepath);if(!(e.startsWith(t)&&(e.length===t.length||e[t.length]===`/`)))return!1}return(oe?.includeSearch??!0)&&!i(Be.search,Ve.search,{partial:!oe?.exact,ignoreUndefined:!oe?.explicitUndefined})?!1:oe?.includeHash?Re&&Be.hash===Ve.hash:!0},[oe?.exact,oe?.explicitUndefined,oe?.includeHash,oe?.includeSearch,Be,Ge,Re,Ve.hash,Ve.pathname,Ve.search,n.basepath]),qe=Ke?s(ie,{})??zt:Rt,Je=Ke?Rt:s(ae,{})??Rt,Ye=[be,qe.className,Je.className].filter(Boolean).join(` `),Xe=(ye||qe.style||Je.style)&&{...ye,...qe.style,...Je.style},[Ze,Qe]=Ft.useState(!1),$e=Ft.useRef(!1),et=e.reloadDocument||Ge?!1:ce??n.options.defaultPreload,tt=le??n.options.defaultPreloadDelay??0,nt=Ft.useCallback(()=>{n.preloadRoute({...ze,_builtLocation:Ve}).catch(e=>{console.warn(e),console.warn(Mt)})},[n,ze,Ve]);c(r,Ft.useCallback(e=>{e?.isIntersecting&&nt()},[nt]),Wt,{disabled:!!ve||et!==`viewport`}),Ft.useEffect(()=>{$e.current||!ve&&et===`render`&&(nt(),$e.current=!0)},[ve,nt,et]);let rt=e=>{let t=e.currentTarget.getAttribute(`target`),r=_e===void 0?t:_e;if(!ve&&!Yt(e)&&!e.defaultPrevented&&(!r||r===`_self`)&&e.button===0){e.preventDefault(),(0,It.flushSync)(()=>{Qe(!0)});let t=n.subscribe(`onResolved`,()=>{t(),Qe(!1)});n.navigate({...ze,replace:fe,resetScroll:me,hashScrollIntoView:de,startTransition:pe,viewTransition:he,ignoreBlocker:De})}};if(Ge)return{...Le,ref:r,href:Ge,...ge&&{children:ge},..._e&&{target:_e},...ve&&{disabled:ve},...ye&&{style:ye},...be&&{className:be},...xe&&{onClick:xe},...Se&&{onBlur:Se},...Ce&&{onFocus:Ce},...we&&{onMouseEnter:we},...Te&&{onMouseLeave:Te},...Ee&&{onTouchStart:Ee}};let it=e=>{if(ve||et!==`intent`)return;if(!tt){nt();return}let t=e.currentTarget;if(Ut.has(t))return;let n=setTimeout(()=>{Ut.delete(t),nt()},tt);Ut.set(t,n)},at=e=>{ve||et!==`intent`||nt()},ot=e=>{if(ve||!et||!tt)return;let t=e.currentTarget,n=Ut.get(t);n&&(clearTimeout(n),Ut.delete(t))};return{...Le,...qe,...Je,href:We?.href,ref:r,onClick:Gt([xe,rt]),onBlur:Gt([Se,ot]),onFocus:Gt([Ce,it]),onMouseEnter:Gt([we,it]),onMouseLeave:Gt([Te,ot]),onTouchStart:Gt([Ee,at]),disabled:!!ve,target:_e,...Xe&&{style:Xe},...Ye&&{className:Ye},...ve&&Bt,...Ke&&Vt,...Re&&Ze&&Ht}}var Rt={},zt={className:`active`},Bt={role:`link`,"aria-disabled":!0},Vt={"data-status":`active`,"aria-current":`page`},Ht={"data-transitioning":`transitioning`},Ut=new WeakMap,Wt={rootMargin:`100px`},Gt=e=>t=>{for(let n of e)if(n){if(t.defaultPrevented)return;n(t)}};function Kt(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||`/`,external:!1}}function qt(e){if(typeof e!=`string`)return!1;let t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var Jt=Ft.forwardRef((e,t)=>{let{_asChild:n,...r}=e,{type:i,...a}=Lt(r,t),o=typeof r.children==`function`?r.children({isActive:a[`data-status`]===`active`}):r.children;if(!n){let{disabled:e,...t}=a;return Ft.createElement(`a`,t,o)}return Ft.createElement(n,a,o)});function Yt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var Xt=class extends Xe{async serializeRequest(e,t,n){let r=t&&typeof t==`object`?t:{},i=this.serializer,a={},o={},s=await n.endpoint(),c=dt.of(e?.input),l=[],ee=[],te=!1,ne,re=new De({protocol:``,hostname:``,port:void 0,path:``,fragment:void 0,query:a,headers:o,body:void 0});if(s){this.updateServiceEndpoint(re,s),this.setHostPrefix(re,e,r);let t=Ne(e.traits);if(t.http){re.method=t.http[0];let[e,n]=t.http[1].split(`?`);re.path==`/`?re.path=e:re.path+=e;let r=new URLSearchParams(n??``);for(let[e,t]of r)a[e]=t}}for(let[e,t]of c.structIterator()){let n=t.getMergedTraits()??{},s=r[e];if(s==null&&!t.isIdempotencyToken()){if(n.httpLabel&&(re.path.includes(`{${e}+}`)||re.path.includes(`{${e}}`)))throw Error(`No value provided for input HTTP label: ${e}.`);continue}if(n.httpPayload)t.isStreaming()?t.isStructSchema()?r[e]&&(ne=await this.serializeEventStream({eventStream:r[e],requestSchema:c})):ne=s:(i.write(t,s),ne=i.flush());else if(n.httpLabel){i.write(t,s);let n=i.flush();re.path.includes(`{${e}+}`)?re.path=re.path.replace(`{${e}+}`,n.split(`/`).map(ct).join(`/`)):re.path.includes(`{${e}}`)&&(re.path=re.path.replace(`{${e}}`,ct(n)))}else if(n.httpHeader)i.write(t,s),o[n.httpHeader.toLowerCase()]=String(i.flush());else if(typeof n.httpPrefixHeaders==`string`)for(let e in s){let r=s[e],a=n.httpPrefixHeaders+e;i.write([t.getValueSchema(),{httpHeader:a}],r),o[a.toLowerCase()]=i.flush()}else n.httpQuery||n.httpQueryParams?this.serializeQuery(t,s,a):(te=!0,l.push(e),ee.push(t))}if(te&&r){let[e,t]=(c.getName(!0)??`#Unknown`).split(`#`),n=c.getSchema()[6],a=[3,e,t,c.getMergedTraits(),l,ee,void 0];n?a[6]=n:a.pop(),i.write(a,r),ne=i.flush()}return re.headers=o,re.query=a,re.body=ne,re}serializeQuery(e,t,n){let r=this.serializer,i=e.getMergedTraits();if(i.httpQueryParams){for(let r in t)if(!(r in n)){let a=t[r],o=e.getValueSchema();Object.assign(o.getMergedTraits(),{...i,httpQuery:r,httpQueryParams:void 0}),this.serializeQuery(o,a,n)}return}if(e.isListSchema()){let a=!!e.getMergedTraits().sparse,o=[];for(let n of t){r.write([e.getValueSchema(),i],n);let t=r.flush();(a||t!==void 0)&&o.push(t)}n[i.httpQuery]=o}else r.write([e,i],t),n[i.httpQuery]=r.flush()}async deserializeResponse(e,t,n){let r=this.deserializer,i=dt.of(e.output),a={};if(n.statusCode>=300){let i=await Ue(n.body,t);throw i.byteLength>0&&Object.assign(a,await r.read(15,i)),await this.handleError(e,t,n,a,this.deserializeMetadata(n)),Error(`@smithy/core/protocols - HTTP Protocol error handler failed to throw.`)}for(let e in n.headers){let t=n.headers[e];delete n.headers[e],n.headers[e.toLowerCase()]=t}let o=await this.deserializeHttpMessage(i,t,n,a);if(o.length){let e=await Ue(n.body,t);if(e.byteLength>0){let t=await r.read(i,e);for(let e of o)t[e]!=null&&(a[e]=t[e])}}else o.discardResponseBody&&await Ue(n.body,t);return a.$metadata=this.deserializeMetadata(n),a}async deserializeHttpMessage(e,t,n,r,i){let a;a=r instanceof Set?i:r;let o=!0,s=this.deserializer,c=dt.of(e),l=[];for(let[e,r]of c.structIterator()){let i=r.getMemberTraits();if(i.httpPayload){if(o=!1,r.isStreaming())r.isStructSchema()?a[e]=await this.deserializeEventStream({response:n,responseSchema:c}):a[e]=Tt(n.body);else if(n.body){let i=await Ue(n.body,t);i.byteLength>0&&(a[e]=await s.read(r,i))}}else if(i.httpHeader){let t=String(i.httpHeader).toLowerCase(),o=n.headers[t];if(o!=null)if(r.isListSchema()){let n=r.getValueSchema();n.getMergedTraits().httpHeader=t;let i;i=n.isTimestampSchema()&&n.getSchema()===4?_t(o,`,`,2):iee(o);let c=[];for(let e of i)c.push(await s.read(n,e.trim()));a[e]=c}else a[e]=await s.read(r,o)}else if(i.httpPrefixHeaders!==void 0){a[e]={};for(let t in n.headers)if(t.startsWith(i.httpPrefixHeaders)){let o=n.headers[t],c=r.getValueSchema();c.getMergedTraits().httpHeader=t,a[e][t.slice(i.httpPrefixHeaders.length)]=await s.read(c,o)}}else i.httpResponseCode?a[e]=n.statusCode:l.push(e)}return l.discardResponseBody=o,l}},Zt=class extends rt{codecDeserializer;stringDeserializer;constructor(e,t){super(),this.codecDeserializer=e,this.stringDeserializer=new eee(t)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e),this.codecDeserializer.setSerdeContext(e),this.serdeContext=e}read(e,t){let n=dt.of(e),r=n.getMergedTraits(),i=this.serdeContext?.utf8Encoder??St;if(r.httpHeader||r.httpResponseCode)return this.stringDeserializer.read(n,i(t));if(r.httpPayload){if(n.isBlobSchema()){let e=this.serdeContext?.utf8Decoder??yt;return typeof t==`string`?e(t):t}else if(n.isStringSchema())return`byteLength`in t?i(t):t}return this.codecDeserializer.read(n,t)}},Qt=class extends rt{settings;stringBuffer=``;constructor(e){super(),this.settings=e}write(e,t){let n=dt.of(e);switch(typeof t){case`object`:if(t===null){this.stringBuffer=`null`;return}if(n.isTimestampSchema()){if(!(t instanceof Date))throw Error(`@smithy/core/protocols - received non-Date value ${t} when schema expected Date in ${n.getName(!0)}`);switch(nt(n,this.settings)){case 5:this.stringBuffer=t.toISOString().replace(`.000Z`,`Z`);break;case 6:this.stringBuffer=Et(t);break;case 7:this.stringBuffer=String(t.getTime()/1e3);break;default:console.warn(`Missing timestamp format, using epoch seconds`,t),this.stringBuffer=String(t.getTime()/1e3)}return}if(n.isBlobSchema()&&`byteLength`in t){this.stringBuffer=(this.serdeContext?.base64Encoder??wt)(t);return}if(n.isListSchema()&&Array.isArray(t)){let e=``;for(let r of t){this.write([n.getValueSchema(),n.getMergedTraits()],r);let t=this.flush(),i=n.getValueSchema().isTimestampSchema()?t:vt(t);e!==``&&(e+=`, `),e+=i}this.stringBuffer=e;return}this.stringBuffer=JSON.stringify(t,null,2);break;case`string`:let e=n.getMergedTraits().mediaType,r=t;if(e&&((e===`application/json`||e.endsWith(`+json`))&&(r=Ct.from(r)),n.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??wt)(r.toString());return}this.stringBuffer=t;break;default:n.isIdempotencyToken()?this.stringBuffer=Dt():this.stringBuffer=String(t)}}flush(){let e=this.stringBuffer;return this.stringBuffer=``,e}},$t=class{codecSerializer;stringSerializer;buffer;constructor(e,t,n=new Qt(t)){this.codecSerializer=e,this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e),this.stringSerializer.setSerdeContext(e)}write(e,t){let n=dt.of(e),r=n.getMergedTraits();if(r.httpHeader||r.httpLabel||r.httpQuery){this.stringSerializer.write(n,t),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(n,t)}flush(){if(this.buffer!==void 0){let e=this.buffer;return this.buffer=void 0,e}return this.codecSerializer.flush()}};function lee(e,t,n){if(n?.source){let e=n.source;if(typeof t==`number`&&(t>2**53-1||t<-(2**53-1)||e!==String(t)))return e.includes(`.`)?new kt(e,`bigDecimal`):BigInt(e)}return t}var uee=(e,t)=>Ue(e,t).then(e=>(t?.utf8Encoder??St)(e)),dee=(e,t)=>uee(e,t).then(e=>{if(e.length)try{return JSON.parse(e)}catch(t){throw t?.name===`SyntaxError`&&Object.defineProperty(t,"$responseBodyText",{value:e}),t}return{}}),en=(e,t)=>Object.keys(e).find(e=>e.toLowerCase()===t.toLowerCase()),tn=e=>{let t=e;return typeof t==`number`&&(t=t.toString()),t.indexOf(`,`)>=0&&(t=t.split(`,`)[0]),t.indexOf(`:`)>=0&&(t=t.split(`:`)[0]),t.indexOf(`#`)>=0&&(t=t.split(`#`)[1]),t},fee=(e,t)=>nn(e,t,[`header`,`code`,`type`]),pee=(e,t,n=!1)=>nn(e,t,n?[`code`,`header`,`type`]:[`type`,`code`,`header`]),nn=({headers:e},t,n)=>{for(;n.length>0;)switch(n.shift()){case`header`:let n=en(e??{},`x-amzn-errortype`);if(n!==void 0)return tn(e[n]);break;case`code`:let r=en(t??{},`code`);if(r&&t[r]!==void 0)return tn(t[r]);break;case`type`:if(t?.__type!==void 0)return tn(t.__type);break}},mee=class extends mt{settings;constructor(e){super(),this.settings=e}async read(e,t){return this._read(e,typeof t==`string`?JSON.parse(t,lee):await dee(t,this.serdeContext))}readObject(e,t){return this._read(e,t)}_read(e,t){let n=typeof t==`object`&&!!t,r=dt.of(e);if(n){if(r.isStructSchema()){let e=t,n=r.isUnionSchema(),i={},a,{jsonName:o}=this.settings;o&&(a={});let s;n&&(s=new nee(e,i));for(let[t,c]of r.structIterator()){let r=t;o&&(r=c.getMergedTraits().jsonName??r,a[r]=t),n&&s.mark(r),e[r]!=null&&(i[t]=this._read(c,e[r]))}if(n)s.writeUnknown();else if(typeof e.__type==`string`)for(let t in e){let n=e[t],r=o?a[t]??t:t;r in i||(i[r]=n)}return i}if(Array.isArray(t)&&r.isListSchema()){let e=r.getValueSchema(),n=[];for(let r of t)n.push(this._read(e,r));return n}if(r.isMapSchema()){let e=r.getValueSchema(),n={};for(let r in t)n[r]=this._read(e,t[r]);return n}}if(r.isBlobSchema()&&typeof t==`string`)return bt(t);let i=r.getMergedTraits().mediaType;if(r.isStringSchema()&&typeof t==`string`&&i)return i===`application/json`||i.endsWith(`+json`)?Ct.from(t):t;if(r.isTimestampSchema()&&t!=null)switch(nt(r,this.settings)){case 5:return oee(t);case 6:return xt(t);case 7:return ree(t);default:return console.warn(`Missing timestamp format, parsing value with Date constructor:`,t),new Date(t)}if(r.isBigIntegerSchema()&&(typeof t==`number`||typeof t==`string`))return BigInt(t);if(r.isBigDecimalSchema()&&t!=null){if(t instanceof kt)return t;let e=t;return e.type===`bigDecimal`&&`string`in e?new kt(e.string,e.type):new kt(String(t),`bigDecimal`)}if(r.isNumericSchema()&&typeof t==`string`){switch(t){case`Infinity`:return 1/0;case`-Infinity`:return-1/0;case`NaN`:return NaN}return t}if(r.isDocumentSchema())if(n){let e=Array.isArray(t)?[]:{};for(let n in t){let i=t[n];i instanceof kt?e[n]=i:e[n]=this._read(r,i)}return e}else return structuredClone(t);return t}},hee=class{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw Error(`@aws-sdk/core/protocols - JsonReplacer already created.`);if(this.stage===2)throw Error(`@aws-sdk/core/protocols - JsonReplacer exhausted.`);return this.stage=1,(e,t)=>{if(t instanceof kt){let e=`${`Νnv`+ this.counter++}_`+t.string;return this.values.set(`"${e}"`,t.string),e}if(typeof t==`bigint`){let e=t.toString(),n=`${`Νb`+ this.counter++}_`+e;return this.values.set(`"${n}"`,e),n}return t}}replaceInJson(e){if(this.stage===0)throw Error(`@aws-sdk/core/protocols - JsonReplacer not created yet.`);if(this.stage===2)throw Error(`@aws-sdk/core/protocols - JsonReplacer exhausted.`);if(this.stage=2,this.counter===0)return e;for(let[t,n]of this.values)e=e.replace(t,n);return e}},gee=class extends mt{settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,t){this.rootSchema=dt.of(e),this.buffer=this._write(this.rootSchema,t)}flush(){let{rootSchema:e,useReplacer:t}=this;if(this.rootSchema=void 0,this.useReplacer=!1,e?.isStructSchema()||e?.isDocumentSchema()){if(!t)return JSON.stringify(this.buffer);let e=new hee;return e.replaceInJson(JSON.stringify(this.buffer,e.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(e,t){this.write(e,t),typeof this.buffer==`object`&&(this.buffer.__type=dt.of(e).getName(!0))}_write(e,t,n){let r=typeof t==`object`&&!!t,i=dt.of(e);if(r){if(i.isStructSchema()){let e=t,n={},{jsonName:r}=this.settings,a;r&&(a={});let o=0;for(let[t,s]of i.structIterator()){let c=this._write(s,e[t],i);if(c!==void 0){let e=t;r&&(e=s.getMergedTraits().jsonName??t,a[t]=e),n[e]=c,o++}}if(i.isUnionSchema()&&o===0){let{$unknown:t}=e;if(Array.isArray(t)){let[e,r]=t;n[e]=this._write(15,r)}}else if(typeof e.__type==`string`)for(let t in e){let i=e[t],o=r?a[t]??t:t;o in n||(n[o]=this._write(15,i))}return n}if(Array.isArray(t)&&i.isListSchema()){let e=i.getValueSchema(),n=[],r=!!i.getMergedTraits().sparse;for(let i of t)(r||i!=null)&&n.push(this._write(e,i));return n}if(i.isMapSchema()){let e=i.getValueSchema(),n={},r=!!i.getMergedTraits().sparse;for(let i in t){let a=t[i];(r||a!=null)&&(n[i]=this._write(e,a))}return n}if(t instanceof Uint8Array&&(i.isBlobSchema()||i.isDocumentSchema()))return i===this.rootSchema?t:(this.serdeContext?.base64Encoder??wt)(t);if(t instanceof Date&&(i.isTimestampSchema()||i.isDocumentSchema()))switch(nt(i,this.settings)){case 5:return t.toISOString().replace(`.000Z`,`Z`);case 6:return Et(t);case 7:return t.getTime()/1e3;default:return console.warn(`Missing timestamp format, using epoch seconds`,t),t.getTime()/1e3}t instanceof kt&&(this.useReplacer=!0)}if(!(t===null&&n?.isStructSchema())){if(i.isStringSchema()){if(t===void 0&&i.isIdempotencyToken())return Dt();let e=i.getMergedTraits().mediaType;return t!=null&&e&&(e===`application/json`||e.endsWith(`+json`))?Ct.from(t):t}if(typeof t==`number`&&i.isNumericSchema())return Math.abs(t)===1/0||isNaN(t)?String(t):t;if(typeof t==`string`&&i.isBlobSchema())return i===this.rootSchema?t:(this.serdeContext?.base64Encoder??wt)(t);if(typeof t==`bigint`&&(this.useReplacer=!0),i.isDocumentSchema())if(r){let e=Array.isArray(t)?[]:{};for(let n in t){let r=t[n];r instanceof kt?(this.useReplacer=!0,e[n]=r):e[n]=this._write(i,r)}return e}else return structuredClone(t);return t}}},rn=class extends mt{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new gee(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new mee(this.settings);return e.setSerdeContext(this.serdeContext),e}},_ee=class extends st{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:r,jsonCodec:i}){super({defaultNamespace:e,errorTypeRegistries:t}),this.serviceTarget=n,this.codec=i??new rn({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!r,this.mixin=new Ve(this.awsQueryCompatible)}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n);return r.path.endsWith(`/`)||(r.path+=`/`),r.headers[`content-type`]=`application/x-amz-json-${this.getJsonRpcVersion()}`,r.headers[`x-amz-target`]=`${this.serviceTarget}.${e.name}`,this.awsQueryCompatible&&(r.headers[`x-amzn-query-mode`]=`true`),(le(e.input)===`unit`||!r.body)&&(r.body=`{}`),r}getPayloadCodec(){return this.codec}async handleError(e,t,n,r,i){let{awsQueryCompatible:a}=this;a&&this.mixin.setQueryCompatError(r,n);let o=pee(n,r,a)??`Unknown`;this.mixin.compose(this.compositeErrorRegistry,o,this.options.defaultNamespace);let{errorSchema:s,errorMetadata:c}=await this.mixin.getErrorSchemaOrThrowBaseException(o,this.options.defaultNamespace,n,r,i,a?this.mixin.findQueryCompatibleError:void 0),l=dt.of(s),ee=r.message??r.Message??`UnknownError`,te=new((this.compositeErrorRegistry.getErrorCtor(s))??Error)({}),ne={},re=this.codec.createDeserializer();for(let[e,t]of l.structIterator())r[e]!=null&&(ne[e]=re.readObject(t,r[e]));throw a&&this.mixin.queryCompatOutput(r,ne),this.mixin.decorateServiceException(Object.assign(te,c,{$fault:l.getMergedTraits().error,message:ee},ne),r)}},an=class extends _ee{constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:r,jsonCodec:i}){super({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:r,jsonCodec:i})}getShapeId(){return`aws.protocols#awsJson1_1`}getJsonRpcVersion(){return`1.1`}getDefaultContentType(){return`application/x-amz-json-1.1`}},vee=class extends Xt{serializer;deserializer;codec;mixin=new Ve;constructor({defaultNamespace:e,errorTypeRegistries:t}){super({defaultNamespace:e,errorTypeRegistries:t});let n={timestampFormat:{useTrait:!0,default:7},httpBindings:!0,jsonName:!0};this.codec=new rn(n),this.serializer=new $t(this.codec.createSerializer(),n),this.deserializer=new Zt(this.codec.createDeserializer(),n)}getShapeId(){return`aws.protocols#restJson1`}getPayloadCodec(){return this.codec}setSerdeContext(e){this.codec.setSerdeContext(e),super.setSerdeContext(e)}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n),i=dt.of(e.input);if(!r.headers[`content-type`]){let e=this.mixin.resolveRestContentType(this.getDefaultContentType(),i);e&&(r.headers[`content-type`]=e)}return r.body==null&&r.headers[`content-type`]===this.getDefaultContentType()&&(r.body=`{}`),r}async deserializeResponse(e,t,n){let r=await super.deserializeResponse(e,t,n),i=dt.of(e.output);for(let[e,t]of i.structIterator())t.getMemberTraits().httpPayload&&!(e in r)&&(r[e]=null);return r}async handleError(e,t,n,r,i){let a=fee(n,r)??`Unknown`;this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let{errorSchema:o,errorMetadata:s}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,r,i),c=dt.of(o),l=r.message??r.Message??`UnknownError`,ee=new((this.compositeErrorRegistry.getErrorCtor(o))??Error)({});await this.deserializeHttpMessage(o,t,n,r);let te={},ne=this.codec.createDeserializer();for(let[e,t]of c.structIterator()){let n=t.getMergedTraits().jsonName??e;te[e]=ne.readObject(t,r[n])}throw this.mixin.decorateServiceException(Object.assign(ee,s,{$fault:c.getMergedTraits().error,message:l},te),r)}getDefaultContentType(){return`application/json`}},yee=/[&<>"]/g,bee={"&":`&`,"<":`<`,">":`>`,'"':`"`};function xee(e){return e.replace(yee,e=>bee[e])}var See=/[&"'<>\r\n\u0085\u2028]/g,Cee={"&":`&`,'"':`"`,"'":`'`,"<":`<`,">":`>`,"\r":` `,"\n":` `,"…":`…`,"\u2028":`
`};function wee(e){return e.replace(See,e=>Cee[e])}var on=class{value;constructor(e){this.value=e}toString(){return wee(``+this.value)}},sn=class e{name;children;attributes={};static of(t,n,r){let i=new e(t);return n!==void 0&&i.addChildNode(new on(n)),r!==void 0&&i.withName(r),i}constructor(e,t=[]){this.name=e,this.children=t}withName(e){return this.name=e,this}addAttribute(e,t){return this.attributes[e]=t,this}addChildNode(e){return this.children.push(e),this}removeAttribute(e){return delete this.attributes[e],this}n(e){return this.name=e,this}c(e){return this.children.push(e),this}a(e,t){return t!=null&&(this.attributes[e]=t),this}cc(t,n,r=n){if(t[n]!=null){let i=e.of(n,t[n]).withName(r);this.c(i)}}l(e,t,n,r){e[t]!=null&&r().map(e=>{e.withName(n),this.c(e)})}lc(t,n,r,i){if(t[n]!=null){let t=i(),n=new e(r);t.map(e=>{n.c(e)}),this.c(n)}}toString(){let e=!!this.children.length,t=`<${this.name}`,n=this.attributes;for(let e of Object.keys(n)){let r=n[e];r!=null&&(t+=` ${e}="${xee(``+r)}"`)}return t+=e?`>${this.children.map(e=>e.toString()).join(``)}`:`/>`}},Tee=class extends qe{options;constructor(e){super(e),this.options=e,Object.assign(this.serializer.settings,{capitalizeKeys:!0,flattenLists:!0,serializeEmptyLists:!1,ec2:!0})}getShapeId(){return`aws.protocols#ec2Query`}useNestedResult(){return!1}},Eee=(e,t)=>{if(t?.Error?.Code!==void 0)return t.Error.Code;if(t?.Code!==void 0)return t.Code;if(e.statusCode==404)return`NotFound`},Dee=class extends mt{settings;stringBuffer;byteBuffer;buffer;constructor(e){super(),this.settings=e}write(e,t){let n=dt.of(e);if(n.isStringSchema()&&typeof t==`string`)this.stringBuffer=t;else if(n.isBlobSchema())this.byteBuffer=`byteLength`in t?t:(this.serdeContext?.base64Decoder??bt)(t);else{this.buffer=this.writeStruct(n,t,void 0);let e=n.getMergedTraits();e.httpPayload&&!e.xmlName&&this.buffer.withName(n.getName())}}flush(){if(this.byteBuffer!==void 0){let e=this.byteBuffer;return delete this.byteBuffer,e}if(this.stringBuffer!==void 0){let e=this.stringBuffer;return delete this.stringBuffer,e}let e=this.buffer;return this.settings.xmlNamespace&&(e?.attributes?.xmlns||e.addAttribute(`xmlns`,this.settings.xmlNamespace)),delete this.buffer,e.toString()}writeStruct(e,t,n){let r=e.getMergedTraits(),i=e.isMemberSchema()&&!r.httpPayload?e.getMemberTraits().xmlName??e.getMemberName():r.xmlName??e.getName();if(!i||!e.isStructSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${e.getName(!0)}.`);let a=sn.of(i),[o,s]=this.getXmlnsAttribute(e,n);for(let[n,r]of e.structIterator()){let e=t[n];if(e!=null||r.isIdempotencyToken()){if(r.getMergedTraits().xmlAttribute){a.addAttribute(r.getMergedTraits().xmlName??n,this.writeSimple(r,e));continue}if(r.isListSchema())this.writeList(r,e,a,s);else if(r.isMapSchema())this.writeMap(r,e,a,s);else if(r.isStructSchema())a.addChildNode(this.writeStruct(r,e,s));else{let t=sn.of(r.getMergedTraits().xmlName??r.getMemberName());this.writeSimpleInto(r,e,t,s),a.addChildNode(t)}}}let{$unknown:c}=t;if(c&&e.isUnionSchema()&&Array.isArray(c)&&Object.keys(t).length===1){let[e,n]=c,r=sn.of(e);if(typeof n!=`string`)if(t instanceof sn||t instanceof on)a.addChildNode(t);else throw Error(`@aws-sdk - $unknown union member in XML requires value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.`);this.writeSimpleInto(0,n,r,s),a.addChildNode(r)}return s&&a.addAttribute(o,s),a}writeList(e,t,n,r){if(!e.isMemberSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${e.getName(!0)}`);let i=e.getMergedTraits(),a=e.getValueSchema(),o=a.getMergedTraits(),s=!!o.sparse,c=!!i.xmlFlattened,[l,ee]=this.getXmlnsAttribute(e,r),te=(t,n)=>{if(a.isListSchema())this.writeList(a,Array.isArray(n)?n:[n],t,ee);else if(a.isMapSchema())this.writeMap(a,n,t,ee);else if(a.isStructSchema()){let r=this.writeStruct(a,n,ee);t.addChildNode(r.withName(c?i.xmlName??e.getMemberName():o.xmlName??`member`))}else{let r=sn.of(c?i.xmlName??e.getMemberName():o.xmlName??`member`);this.writeSimpleInto(a,n,r,ee),t.addChildNode(r)}};if(c)for(let e of t)(s||e!=null)&&te(n,e);else{let r=sn.of(i.xmlName??e.getMemberName());ee&&r.addAttribute(l,ee);for(let e of t)(s||e!=null)&&te(r,e);n.addChildNode(r)}}writeMap(e,t,n,r,i=!1){if(!e.isMemberSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${e.getName(!0)}`);let a=e.getMergedTraits(),o=e.getKeySchema(),s=o.getMergedTraits().xmlName??`key`,c=e.getValueSchema(),l=c.getMergedTraits(),ee=l.xmlName??`value`,te=!!l.sparse,ne=!!a.xmlFlattened,[re,ie]=this.getXmlnsAttribute(e,r),ae=(e,t,n)=>{let r=sn.of(s,t),[i,a]=this.getXmlnsAttribute(o,ie);a&&r.addAttribute(i,a),e.addChildNode(r);let l=sn.of(ee);c.isListSchema()?this.writeList(c,n,l,ie):c.isMapSchema()?this.writeMap(c,n,l,ie,!0):c.isStructSchema()?l=this.writeStruct(c,n,ie):this.writeSimpleInto(c,n,l,ie),e.addChildNode(l)};if(ne)for(let r in t){let i=t[r];if(te||i!=null){let t=sn.of(a.xmlName??e.getMemberName());ae(t,r,i),n.addChildNode(t)}}else{let r;i||(r=sn.of(a.xmlName??e.getMemberName()),ie&&r.addAttribute(re,ie),n.addChildNode(r));for(let e in t){let a=t[e];if(te||a!=null){let t=sn.of(`entry`);ae(t,e,a),(i?n:r).addChildNode(t)}}}}writeSimple(e,t){if(t===null)throw Error(`@aws-sdk/core/protocols - (XML serializer) cannot write null value.`);let n=dt.of(e),r=null;if(t&&typeof t==`object`)if(n.isBlobSchema())r=(this.serdeContext?.base64Encoder??wt)(t);else if(n.isTimestampSchema()&&t instanceof Date)switch(nt(n,this.settings)){case 5:r=t.toISOString().replace(`.000Z`,`Z`);break;case 6:r=Et(t);break;case 7:r=String(t.getTime()/1e3);break;default:console.warn(`Missing timestamp format, using http date`,t),r=Et(t);break}else if(n.isBigDecimalSchema()&&t)return t instanceof kt?t.string:String(t);else if(n.isMapSchema()||n.isListSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead.`);else throw Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${n.getName(!0)}`);if((n.isBooleanSchema()||n.isNumericSchema()||n.isBigIntegerSchema()||n.isBigDecimalSchema())&&(r=String(t)),n.isStringSchema()&&(r=t===void 0&&n.isIdempotencyToken()?Dt():String(t)),r===null)throw Error(`Unhandled schema-value pair ${n.getName(!0)}=${t}`);return r}writeSimpleInto(e,t,n,r){let i=this.writeSimple(e,t),a=dt.of(e),o=new on(i),[s,c]=this.getXmlnsAttribute(a,r);c&&n.addAttribute(s,c),n.addChildNode(o)}getXmlnsAttribute(e,t){let[n,r]=e.getMergedTraits().xmlNamespace??[];return r&&r!==t?[n?`xmlns:${n}`:`xmlns`,r]:[void 0,void 0]}},Oee=class extends mt{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new Dee(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new ze(this.settings);return e.setSerdeContext(this.serdeContext),e}},kee=class extends Xt{codec;serializer;deserializer;mixin=new Ve;constructor(e){super(e);let t={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new Oee(t),this.serializer=new $t(this.codec.createSerializer(),t),this.deserializer=new Zt(this.codec.createDeserializer(),t)}getPayloadCodec(){return this.codec}getShapeId(){return`aws.protocols#restXml`}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n),i=dt.of(e.input);if(!r.headers[`content-type`]){let e=this.mixin.resolveRestContentType(this.getDefaultContentType(),i);e&&(r.headers[`content-type`]=e)}return typeof r.body==`string`&&r.headers[`content-type`]===this.getDefaultContentType()&&!r.body.startsWith(``+r.body),r}async deserializeResponse(e,t,n){return super.deserializeResponse(e,t,n)}async handleError(e,t,n,r,i){let a=Eee(n,r)??`Unknown`;if(this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace),r.Error&&typeof r.Error==`object`)for(let e of Object.keys(r.Error))r[e]=r.Error[e],e.toLowerCase()===`message`&&(r.message=r.Error[e]);r.RequestId&&!i.requestId&&(i.requestId=r.RequestId);let{errorSchema:o,errorMetadata:s}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,r,i),c=dt.of(o),l=r.Error?.message??r.Error?.Message??r.message??r.Message??`UnknownError`,ee=new((this.compositeErrorRegistry.getErrorCtor(o))??Error)({});await this.deserializeHttpMessage(o,t,n,r);let te={},ne=this.codec.createDeserializer();for(let[e,t]of c.structIterator()){let n=t.getMergedTraits().xmlName??e,i=r.Error?.[n]??r[n];te[e]=ne.readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(ee,s,{$fault:c.getMergedTraits().error,message:l},te),r)}getDefaultContentType(){return`application/xml`}hasUnstructuredPayloadBinding(e){for(let[,t]of e.structIterator())if(t.getMergedTraits().httpPayload)return!(t.isStructSchema()||t.isMapSchema()||t.isListSchema());return!1}},Aee=async(e,t,n)=>({operation:pe(t).operation,region:await xe(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function jee(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`acm`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var Mee=e=>{let t=[];switch(e.operation){default:t.push(jee(e))}return t},Nee=e=>{let t=ue(e);return Object.assign(t,{authSchemePreference:xe(e.authSchemePreference??[])})},Pee=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`acm`}),Fee={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},Iee={name:`@aws-sdk/client-acm`,description:`AWS SDK for JavaScript Acm Client for Node.js, Browser and React Native`,version:`3.1067.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo acm`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.20`,"@aws-sdk/credential-provider-node":`^3.972.55`,"@aws-sdk/types":`^3.973.12`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-acm`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-acm`}},cn=`ref`,ln=-1,un=!0,dn=`isSet`,fn=`PartitionResult`,pn=`booleanEquals`,mn=`getAttr`,hn={[cn]:`Endpoint`},gn={[cn]:fn},_n={},vn=[{[cn]:`Region`}],yn={conditions:[[dn,[hn]],[dn,vn],[`aws.partition`,vn,fn],[pn,[{[cn]:`UseFIPS`},un]],[pn,[{[cn]:`UseDualStack`},un]],[pn,[{fn:mn,argv:[gn,`supportsDualStack`]},un]],[pn,[{fn:mn,argv:[gn,`supportsFIPS`]},un]],[`stringEquals`,[{fn:mn,argv:[gn,`name`]},`aws-us-gov`]]],results:[[ln],[ln,`Invalid Configuration: FIPS and custom endpoint are not supported`],[ln,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[hn,_n],[`https://acm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,_n],[ln,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://acm.{Region}.amazonaws.com`,_n],[`https://acm-fips.{Region}.{PartitionResult#dnsSuffix}`,_n],[ln,`FIPS is enabled but this partition does not support FIPS`],[`https://acm.{Region}.{PartitionResult#dualStackDnsSuffix}`,_n],[ln,`DualStack is enabled but this partition does not support DualStack`],[`https://acm.{Region}.{PartitionResult#dnsSuffix}`,_n],[ln,`Invalid Configuration: Missing Region`]]},bn=2,xn=new Int32Array([-1,1,-1,0,13,3,1,4,100000012,2,5,100000012,3,8,6,4,7,100000011,5,100000009,100000010,4,11,9,6,10,100000008,7,100000006,100000007,5,12,100000005,6,100000004,100000005,3,100000001,14,4,100000002,100000003]),Sn=Ye.from(xn,bn,yn.conditions,yn.results),Cn=new tt({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),wn=(e,t={})=>Cn.get(e,()=>Ke(Sn,{endpointParams:e,logger:t.logger}));it.aws=fe;var Tn=class e extends pt{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},En=class e extends Tn{name=`AccessDeniedException`;$fault=`client`;Message;constructor(t){super({name:`AccessDeniedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Dn=class e extends Tn{name=`InvalidArnException`;$fault=`client`;constructor(t){super({name:`InvalidArnException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},On=class e extends Tn{name=`InvalidParameterException`;$fault=`client`;constructor(t){super({name:`InvalidParameterException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},kn=class e extends Tn{name=`InvalidTagException`;$fault=`client`;constructor(t){super({name:`InvalidTagException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},An=class e extends Tn{name=`ResourceNotFoundException`;$fault=`client`;constructor(t){super({name:`ResourceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},jn=class e extends Tn{name=`TagPolicyException`;$fault=`client`;constructor(t){super({name:`TagPolicyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Mn=class e extends Tn{name=`ThrottlingException`;$fault=`client`;throttlingReasons;constructor(t){super({name:`ThrottlingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.throttlingReasons=t.throttlingReasons}},Nn=class e extends Tn{name=`TooManyTagsException`;$fault=`client`;constructor(t){super({name:`TooManyTagsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Pn=class e extends Tn{name=`ConflictException`;$fault=`client`;constructor(t){super({name:`ConflictException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Fn=class e extends Tn{name=`ResourceInUseException`;$fault=`client`;constructor(t){super({name:`ResourceInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},In=class e extends Tn{name=`RequestInProgressException`;$fault=`client`;constructor(t){super({name:`RequestInProgressException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Ln=class e extends Tn{name=`LimitExceededException`;$fault=`client`;constructor(t){super({name:`LimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Rn=class e extends Tn{name=`InvalidArgsException`;$fault=`client`;constructor(t){super({name:`InvalidArgsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},zn=class e extends Tn{name=`ValidationException`;$fault=`client`;constructor(t){super({name:`ValidationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Bn=class e extends Tn{name=`InvalidDomainValidationOptionsException`;$fault=`client`;constructor(t){super({name:`InvalidDomainValidationOptionsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Vn=class e extends Tn{name=`InvalidStateException`;$fault=`client`;constructor(t){super({name:`InvalidStateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Hn=`AccessDeniedException`,Un=`Certificate`,Wn=`CreatedAt`,Gn=`CertificateArn`,Kn=`CertificateChain`,qn=`ConflictException`,Jn=`CertificateSummary`,Yn=`CertificateSummaryList`,Xn=`CertificateStatuses`,Zn=`DomainName`,Qn=`Exported`,$n=`ExtendedKeyUsages`,er=`ExportOption`,tr=`Filters`,nr=`HasAdditionalSubjectAlternativeNames`,rr=`ImportedAt`,ir=`InvalidArgsException`,ar=`InvalidArnException`,or=`IssuedAt`,sr=`ImportCertificate`,cr=`ImportCertificateRequest`,lr=`ImportCertificateResponse`,ur=`InvalidDomainValidationOptionsException`,dr=`InvalidParameterException`,fr=`InvalidStateException`,pr=`InvalidTagException`,mr=`InUse`,hr=`Includes`,gr=`Key`,_r=`KeyAlgorithm`,vr=`KeyUsages`,yr=`ListCertificates`,br=`ListCertificatesRequest`,xr=`ListCertificatesResponse`,Sr=`LimitExceededException`,Cr=`Message`,wr=`ManagedBy`,Tr=`MaxItems`,Er=`NotAfter`,Dr=`NotBefore`,Or=`NextToken`,kr=`PrivateKey`,Ar=`PrivateKeyBlob`,jr=`RevokedAt`,Mr=`RenewalEligibility`,Nr=`RequestInProgressException`,Pr=`ResourceInUseException`,Fr=`ResourceNotFoundException`,Ir=`Status`,Lr=`SubjectAlternativeNameSummaries`,Rr=`SortBy`,zr=`SortOrder`,Br=`Type`,Vr=`ThrottlingException`,Hr=`TagList`,Ur=`TooManyTagsException`,Wr=`TagPolicyException`,Gr=`ThrottlingReason`,Kr=`ThrottlingReasonList`,qr=`Tags`,Jr=`Tag`,Yr=`Value`,Xr=`ValidationException`,Zr=`awsQueryError`,Qr=`client`,$r=`error`,ei=`extendedKeyUsage`,ti=`exportOption`,ni=`httpError`,ri=`keyTypes`,ii=`keyUsage`,ai=`message`,oi=`managedBy`,si=`reason`,ci=`resource`,li=`smithy.ts.sdk.synthetic.com.amazonaws.acm`,ui=`throttlingReasons`,u=`com.amazonaws.acm`,di=ce.for(li),fi=[-3,li,`ACMServiceException`,0,[],[]];di.registerError(fi,Tn);var pi=ce.for(u),mi=[-3,u,Hn,{[Zr]:[`AccessDenied`,403],[$r]:Qr,[ni]:403},[Cr],[0]];pi.registerError(mi,En);var hi=[-3,u,qn,{[$r]:Qr},[ai],[0]];pi.registerError(hi,Pn);var gi=[-3,u,ir,{[$r]:Qr},[ai],[0]];pi.registerError(gi,Rn);var _i=[-3,u,ar,{[$r]:Qr},[ai],[0]];pi.registerError(_i,Dn);var vi=[-3,u,ur,{[$r]:Qr},[ai],[0]];pi.registerError(vi,Bn);var yi=[-3,u,dr,{[$r]:Qr},[ai],[0]];pi.registerError(yi,On);var bi=[-3,u,fr,{[$r]:Qr},[ai],[0]];pi.registerError(bi,Vn);var xi=[-3,u,pr,{[$r]:Qr},[ai],[0]];pi.registerError(xi,kn);var Si=[-3,u,Sr,{[$r]:Qr},[ai],[0]];pi.registerError(Si,Ln);var Ci=[-3,u,Nr,{[$r]:Qr},[ai],[0]];pi.registerError(Ci,In);var wi=[-3,u,Pr,{[$r]:Qr},[ai],[0]];pi.registerError(wi,Fn);var Ti=[-3,u,Fr,{[$r]:Qr},[ai],[0]];pi.registerError(Ti,An);var Ei=[-3,u,Wr,{[$r]:Qr},[ai],[0]];pi.registerError(Ei,jn);var Lee=[-3,u,Vr,{[Zr]:[`Throttling`,400],[$r]:Qr,[ni]:400},[ai,ui],[0,()=>Qee]];pi.registerError(Lee,Mn);var Ree=[-3,u,Ur,{[$r]:Qr},[ai],[0]];pi.registerError(Ree,Nn);var zee=[-3,u,Xr,{[Zr]:[`ValidationError`,400],[$r]:Qr,[ni]:400},[ai],[0]];pi.registerError(zee,zn);var Bee=[di,pi],Vee=[0,u,Ar,8,21],Hee=[3,u,Jn,0,[Gn,Zn,Lr,nr,Ir,Br,_r,vr,$n,er,mr,Qn,Mr,Dr,Er,Wn,or,rr,jr,wr],[0,0,64,2,0,0,0,64,64,0,2,2,0,4,4,4,4,4,4,0]],Uee=[3,u,tr,0,[ei,ii,ri,ti,oi],[64,64,64,0,0]],Wee=[3,u,cr,0,[Un,kr,Gn,Kn,qr],[21,[()=>Vee,0],0,21,()=>Zee],2],Gee=[3,u,lr,0,[Gn],[0]],Kee=[3,u,br,0,[Xn,hr,Or,Tr,Rr,zr],[64,()=>Uee,0,1,0,0]],qee=[3,u,xr,0,[Or,Yn],[0,()=>Xee]],Jee=[3,u,Jr,0,[gr,Yr],[0,0],1],Yee=[3,u,Gr,0,[si,ci],[0,0]],Xee=[1,u,Yn,0,()=>Hee],Zee=[1,u,Hr,0,()=>Jee],Qee=[1,u,Kr,0,()=>Yee],$ee=[9,u,sr,0,()=>Wee,()=>Gee],ete=[9,u,yr,0,()=>Kee,()=>qee],tte=e=>({apiVersion:`2015-12-08`,base64Decoder:e?.base64Decoder??bt,base64Encoder:e?.base64Encoder??wt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??wn,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Mee,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new ae}],logger:e?.logger??new Be,protocol:e?.protocol??an,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.acm`,errorTypeRegistries:Bee,version:`2015-12-08`,serviceTarget:`CertificateManager`},serviceId:e?.serviceId??`ACM`,urlParser:e?.urlParser??Qe,utf8Decoder:e?.utf8Decoder??yt,utf8Encoder:e?.utf8Encoder??St}),nte=e=>{let t=Se(e),n=()=>t().then(He),r=tte(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Ot,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??ge({serviceId:r.serviceId,clientVersion:Iee.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??et(`Region is missing`),requestHandler:Ae.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Le),sha256:e?.sha256??se,streamCollector:e?.streamCollector??ft,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},rte=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},ite=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),ate=(e,t)=>{let n=Object.assign(Ze(e),lt(e),ie(e),rte(e));return t.forEach(e=>e.configure(n)),Object.assign(e,be(n),ht(n),Ge(n),ite(n))},ote=class extends Te{config;constructor(...[e]){let t=nte(e||{});super(t),this.initConfig=t;let n=ate(Nee(We(ve(Ee(Re(ke(Pee(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(de(this.config)),this.middlewareStack.use(ye(this.config)),this.middlewareStack.use(_e(this.config)),this.middlewareStack.use(Oe(this.config)),this.middlewareStack.use(me(this.config)),this.middlewareStack.use(Ie(this.config)),this.middlewareStack.use(Pe(this.config)),this.middlewareStack.use(he(this.config,{httpAuthSchemeParametersProvider:Aee,identityProviderConfigProvider:async e=>new gt({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(oe(this.config))}destroy(){super.destroy()}},ste=async(e,t,n)=>({operation:pe(t).operation,region:await xe(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function cte(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`ec2`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var lte=e=>{let t=[];switch(e.operation){default:t.push(cte(e))}return t},ute=e=>{let t=ue(e);return Object.assign(t,{authSchemePreference:xe(e.authSchemePreference??[])})},dte=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`ec2`}),fte={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},pte={name:`@aws-sdk/client-ec2`,description:`AWS SDK for JavaScript Ec2 Client for Node.js, Browser and React Native`,version:`3.1067.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo ec2`,test:`yarn g:vitest run --passWithNoTests`,"test:watch":`yarn g:vitest watch --passWithNoTests`,"test:integration":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts --mode development`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.20`,"@aws-sdk/credential-provider-node":`^3.972.55`,"@aws-sdk/middleware-sdk-ec2":`^3.972.34`,"@aws-sdk/types":`^3.973.12`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@smithy/snapshot-testing":`^2.1.7`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ec2`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-ec2`}},Di=`ref`,Oi=-1,ki=!0,Ai=`isSet`,ji=`PartitionResult`,Mi=`booleanEquals`,Ni=`getAttr`,Pi={[Di]:`Endpoint`},Fi={[Di]:ji},Ii={},Li=[{[Di]:`Region`}],Ri={conditions:[[Ai,[Pi]],[Ai,Li],[`aws.partition`,Li,ji],[Mi,[{[Di]:`UseFIPS`},ki]],[Mi,[{[Di]:`UseDualStack`},ki]],[Mi,[{fn:Ni,argv:[Fi,`supportsDualStack`]},ki]],[Mi,[{fn:Ni,argv:[Fi,`supportsFIPS`]},ki]],[`stringEquals`,[{fn:Ni,argv:[Fi,`name`]},`aws-us-gov`]]],results:[[Oi],[Oi,`Invalid Configuration: FIPS and custom endpoint are not supported`],[Oi,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[Pi,Ii],[`https://ec2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,Ii],[Oi,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://ec2.{Region}.amazonaws.com`,Ii],[`https://ec2-fips.{Region}.{PartitionResult#dnsSuffix}`,Ii],[Oi,`FIPS is enabled but this partition does not support FIPS`],[`https://ec2.{Region}.{PartitionResult#dualStackDnsSuffix}`,Ii],[Oi,`DualStack is enabled but this partition does not support DualStack`],[`https://ec2.{Region}.{PartitionResult#dnsSuffix}`,Ii],[Oi,`Invalid Configuration: Missing Region`]]},mte=2,hte=new Int32Array([-1,1,-1,0,13,3,1,4,100000012,2,5,100000012,3,8,6,4,7,100000011,5,100000009,100000010,4,11,9,6,10,100000008,7,100000006,100000007,5,12,100000005,6,100000004,100000005,3,100000001,14,4,100000002,100000003]),gte=Ye.from(hte,mte,Ri.conditions,Ri.results),_te=new tt({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),vte=(e,t={})=>_te.get(e,()=>Ke(gte,{endpointParams:e,logger:t.logger}));it.aws=fe;var yte=class e extends pt{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},zi=`Address`,bte=`AllocateAddressRequest`,xte=`AllocateAddressResult`,Ste=`AssociateAddressRequest`,Cte=`AssociateAddressResult`,wte=`AllAvailabilityZones`,Tte=`AllocateAddress`,Ete=`ApplianceArn`,Dte=`AssociateAddress`,Ote=`AttachedAppliances`,kte=`AttributeBooleanValue`,Ate=`AssociateCarrierIpAddress`,jte=`AdditionalFlexibleNetworkInterfaces`,Mte=`AvailableIpAddressCount`,Bi=`AssignIpv6AddressOnCreation`,Nte=`AttachInternetGateway`,Pte=`AttachInternetGatewayRequest`,Fte=`AssociateIamInstanceProfile`,Ite=`AssociateIamInstanceProfileRequest`,Lte=`AssociateIamInstanceProfileResult`,Rte=`AllocationIdList`,zte=`AssociationIdList`,Vi=`AdditionalInfo`,Hi=`AllocationId`,Ui=`AllocationIds`,Wi=`AssociationId`,Bte=`AssociationIds`,Gi=`AttachmentId`,Vte=`AmiLaunchIndex`,Hte=`AttachmentLimitType`,Ute=`AddressList`,Ki=`AvailabilityMode`,Wte=`AssociatePublicIpAddress`,Gte=`AmazonProvidedIpv6CidrBlock`,Kte=`AutoProvisionZones`,qte=`AutoRecoverySupported`,Jte=`AssociateRouteTableRequest`,Yte=`AssociateRouteTableResult`,Xte=`AssociateRouteTable`,Zte=`AllowReassociation`,Qte=`AllRegions`,qi=`AssociatedResource`,Ji=`AutoRecovery`,Yi=`AssociationState`,$te=`AuthorizeSecurityGroupEgress`,ene=`AuthorizeSecurityGroupEgressRequest`,tne=`AuthorizeSecurityGroupEgressResult`,nne=`AuthorizeSecurityGroupIngressRequest`,rne=`AuthorizeSecurityGroupIngressResult`,ine=`AuthorizeSecurityGroupIngress`,ane=`AutoScalingIps`,Xi=`AmdSevSnp`,one=`AttachmentState`,sne=`ArchitectureTypeList`,Zi=`AttachTime`,cne=`AttachVolumeRequest`,lne=`AttributeValue`,une=`AttachVolume`,Qi=`AvailabilityZone`,$i=`AvailabilityZoneAddress`,ea=`AvailabilityZoneAddresses`,dne=`AvailabilityZoneGeography`,fne=`AvailabilityZoneGeographyList`,ta=`AvailabilityZoneId`,pne=`AvailabilityZoneList`,mne=`AvailabilityZoneMessage`,hne=`AvailabilityZoneMessageList`,gne=`AvailabilityZoneSubGeography`,_ne=`AvailabilityZoneSubGeographyList`,vne=`AvailabilityZones`,na=`Accelerators`,yne=`Addresses`,bne=`Affinity`,ra=`Arn`,ia=`Architecture`,xne=`Associations`,aa=`Association`,Sne=`Attribute`,oa=`Attachment`,sa=`Attachments`,Cne=`BlobAttributeValue`,wne=`BaselineBandwidthInGbps`,ca=`BaselineBandwidthInMbps`,la=`BlockDeviceMapping`,Tne=`BlockDeviceMappingList`,Ene=`BlockDeviceMappingRequestList`,ua=`BlockDeviceMappings`,da=`BlockDurationMinutes`,fa=`BaselineIops`,pa=`BootMode`,ma=`BootModeTypeList`,ha=`BareMetal`,ga=`BlockPublicAccessStates`,_a=`BurstablePerformanceSupported`,va=`BaselineThroughputInMBps`,ya=`BandwidthWeighting`,ba=`BandwidthWeightingTypeList`,xa=`BandwidthWeightings`,Sa=`CidrBlock`,Ca=`CidrBlockAssociationSet`,wa=`CapacityBlockId`,Ta=`CidrBlockState`,Ea=`CoreCountList`,Da=`CoreCount`,Oa=`CpuCredits`,ka=`CompletionDurationMinutes`,Aa=`CreationDate`,ja=`CarrierGatewayId`,Ma=`CurrentGeneration`,Na=`CarrierIp`,Pa=`CurrentInstanceBootMode`,Fa=`CreateInternetGateway`,Ia=`CreateInternetGatewayRequest`,La=`CreateInternetGatewayResult`,Ra=`CreateImageRequest`,za=`CreateImageResult`,Ba=`CidrIp`,Va=`CidrIpv6`,Ha=`CidrIpv4`,Ua=`CoreInfo`,Wa=`CreateImage`,Ga=`CreateKeyPair`,Ka=`CreateKeyPairRequest`,qa=`CoreNetworkArn`,Ja=`CreateNatGateway`,Ya=`CreateNatGatewayRequest`,Xa=`CreateNatGatewayResult`,Za=`CpuOptions`,Qa=`CustomerOwnedIp`,$a=`CustomerOwnedIpv4Pool`,eo=`CpuOptionsRequest`,to=`CreatePlacementGroup`,no=`CreatePlacementGroupRequest`,ro=`CreatePlacementGroupResult`,io=`CapacityReservationId`,ao=`CapacityReservationPreference`,oo=`CreateRouteRequest`,so=`CapacityReservationResourceGroupArn`,co=`CreateRouteResult`,lo=`CapacityReservationSpecificationResponse`,uo=`CapacityReservationSpecification`,fo=`CapacityReservationTarget`,po=`CapacityReservationTargetResponse`,mo=`CreateRouteTableRequest`,ho=`CreateRouteTableResult`,go=`CreateRouteTable`,_o=`CreateRoute`,vo=`CreateSecurityGroup`,yo=`CreateSecurityGroupRequest`,bo=`CreateSecurityGroupResult`,xo=`CopySnapshotRequest`,So=`CopySnapshotRequestPSU`,Co=`CopySnapshotResult`,wo=`CreateSnapshotRequest`,To=`CreateSubnetRequest`,Eo=`CreateSubnetResult`,Do=`CreditSpecificationRequest`,Oo=`CopySnapshot`,ko=`CreditSpecification`,Ao=`CreateSnapshot`,jo=`CreateSubnet`,Mo=`CurrentState`,No=`ClientToken`,Po=`ConnectionTrackingConfiguration`,Fo=`ConnectionTrackingSpecification`,Io=`ConnectionTrackingSpecificationRequest`,Lo=`ConnectionTrackingSpecificationResponse`,Ro=`CompletionTime`,zo=`ConnectivityType`,Bo=`CreateTime`,Vo=`CreateVolumeRequest`,Ho=`CreateVpcRequest`,Uo=`CreateVpcResult`,Wo=`CreateVolume`,Go=`CreateVpc`,Ko=`Code`,qo=`Configured`,Jo=`Count`,Yo=`DescribeAddressesRequest`,Xo=`DescribeAddressesResult`,Zo=`DisassociateAddressRequest`,Qo=`DisableApiStop`,$o=`DisableApiTermination`,es=`DestinationAvailabilityZone`,ts=`DescribeAvailabilityZonesRequest`,ns=`DescribeAvailabilityZonesResult`,rs=`DescribeAvailabilityZones`,is=`DescribeAddresses`,as=`DisassociateAddress`,os=`DestinationCidrBlock`,ss=`DefaultConnectionTrackingConfiguration`,cs=`DefaultCores`,ls=`DataEncryptionKeyId`,us=`DefaultEnaQueueCountPerInterface`,ds=`DefaultForAz`,fs=`DedicatedHostsSupported`,ps=`DeviceIndex`,ms=`DestinationIpv6CidrBlock`,hs=`DeleteInternetGateway`,gs=`DeleteInternetGatewayRequest`,_s=`DescribeInternetGatewaysRequest`,vs=`DescribeInternetGatewaysResult`,ys=`DetachInternetGatewayRequest`,bs=`DescribeInternetGateways`,xs=`DetachInternetGateway`,Ss=`DisassociateIamInstanceProfile`,Cs=`DescribeIamInstanceProfileAssociations`,ws=`DescribeIamInstanceProfileAssociationsRequest`,Ts=`DescribeIamInstanceProfileAssociationsResult`,Es=`DisassociateIamInstanceProfileRequest`,Ds=`DisassociateIamInstanceProfileResult`,Os=`DiskInfoList`,ks=`DescribeImagesRequest`,As=`DescribeImagesResult`,js=`DescribeInstancesRequest`,Ms=`DescribeInstancesResult`,Ns=`DescribeInstanceTypesRequest`,Ps=`DescribeInstanceTypesResult`,Fs=`DescribeInstanceTypes`,Is=`DescribeImages`,Ls=`DescribeInstances`,Rs=`DiskInfo`,zs=`DeleteKeyPair`,Bs=`DeleteKeyPairRequest`,Vs=`DeleteKeyPairResult`,Hs=`DescribeKeyPairsRequest`,Us=`DescribeKeyPairsResult`,Ws=`DescribeKeyPairs`,Gs=`DisableLniAtDeviceIndex`,Ks=`DeviceName`,qs=`DefaultNetworkCardIndex`,Js=`DeleteNatGateway`,Ys=`DeleteNatGatewayRequest`,Xs=`DeleteNatGatewayResult`,Zs=`DescribeNatGatewaysRequest`,Qs=`DescribeNatGatewaysResult`,$s=`DescribeNatGateways`,ec=`DestinationOutpostArn`,tc=`DhcpOptionsId`,nc=`DeleteOnTermination`,rc=`DeletePlacementGroup`,ic=`DeletePlacementGroupRequest`,ac=`DescribePlacementGroupsRequest`,oc=`DescribePlacementGroupsResult`,sc=`DescribePlacementGroups`,cc=`DestinationPrefixListId`,lc=`DeregistrationProtection`,d=`DryRun`,uc=`DeleteRouteRequest`,dc=`DescribeRegionsRequest`,fc=`DescribeRegionsResult`,pc=`DeleteRouteTable`,mc=`DeleteRouteTableRequest`,hc=`DescribeRouteTablesRequest`,gc=`DescribeRouteTablesResult`,_c=`DisassociateRouteTableRequest`,vc=`DescribeRouteTables`,yc=`DisassociateRouteTable`,bc=`DestinationRegion`,xc=`DeleteRoute`,Sc=`DescribeRegions`,Cc=`DeleteSecurityGroup`,wc=`DeleteSecurityGroupRequest`,Tc=`DeleteSecurityGroupResult`,Ec=`DescribeSecurityGroupsRequest`,Dc=`DescribeSecurityGroupsResult`,Oc=`DescribeSecurityGroups`,kc=`DeleteSnapshotRequest`,Ac=`DeleteSubnetRequest`,jc=`DescribeSnapshotsRequest`,Mc=`DescribeSnapshotsResult`,Nc=`DescribeSubnetsRequest`,Pc=`DescribeSubnetsResult`,Fc=`DeleteSnapshot`,Ic=`DeleteSubnet`,Lc=`DescribeSnapshots`,Rc=`DescribeSubnets`,zc=`DefaultTcpEstablishedTimeout`,Bc=`DefaultThreadsPerCore`,Vc=`DeprecationTime`,Hc=`DeleteTime`,Uc=`DefaultUdpStreamTimeout`,Wc=`DefaultUdpTimeout`,Gc=`DefaultVCpus`,Kc=`DeleteVolumeRequest`,qc=`DeleteVpcRequest`,Jc=`DescribeVolumesRequest`,Yc=`DescribeVolumesResult`,Xc=`DescribeVpcsRequest`,Zc=`DescribeVpcsResult`,Qc=`DetachVolumeRequest`,$c=`DeleteVolume`,el=`DeleteVpc`,tl=`DescribeVolumes`,nl=`DescribeVpcs`,rl=`DetachVolume`,il=`Description`,al=`Device`,ol=`Disks`,sl=`Domain`,cl=`EbsBlockDevice`,ll=`ExecutableByStringList`,ul=`ExecutableBy`,dl=`EbsCardIndex`,fl=`EbsCardInfoList`,pl=`EbsCardInfo`,ml=`EbsCards`,hl=`EncryptionControl`,gl=`EnableDns64`,_l=`ElasticFileSystem`,vl=`ElasticFileSystemExclusion`,yl=`ElasticGpuAssociation`,bl=`ElasticGpuAssociationId`,xl=`ElasticGpuAssociationList`,Sl=`ElasticGpuAssociationState`,Cl=`ElasticGpuAssociationTime`,wl=`ElasticGpuAssociations`,Tl=`ElasticGpuId`,El=`ElasticGpuSpecification`,Dl=`ElasticGpuSpecifications`,Ol=`ElasticInferenceAccelerator`,kl=`ElasticInferenceAcceleratorAssociation`,Al=`ElasticInferenceAcceleratorAssociationId`,jl=`ElasticInferenceAcceleratorAssociationList`,Ml=`ElasticInferenceAcceleratorAssociationState`,Nl=`ElasticInferenceAcceleratorAssociationTime`,Pl=`ElasticInferenceAcceleratorArn`,Fl=`ElasticInferenceAcceleratorAssociations`,Il=`ElasticInferenceAccelerators`,Ll=`EbsInstanceBlockDevice`,Rl=`EbsInstanceBlockDeviceSpecification`,zl=`EncryptionInTransitSupported`,Bl=`EbsInfo`,Vl=`EfaInfo`,Hl=`EnableLniAtDeviceIndex`,Ul=`EbsOptimized`,Wl=`EbsOptimizedInfo`,Gl=`EgressOnlyInternetGateway`,Kl=`EgressOnlyInternetGatewayExclusion`,ql=`EgressOnlyInternetGatewayId`,Jl=`EnclaveOptionsRequest`,Yl=`EbsOptimizedSupport`,Xl=`EnclaveOptions`,Zl=`EnablePrimaryIpv6`,Ql=`EnaQueueCount`,$l=`EnableResourceNameDnsAAAARecord`,eu=`EnableResourceNameDnsAAAARecordOnLaunch`,tu=`EnableResourceNameDnsARecord`,nu=`EnableResourceNameDnsARecordOnLaunch`,ru=`EnaSrdEnabled`,iu=`EnaSrdSpecification`,au=`EnaSrdSpecificationRequest`,ou=`EnaSrdSupported`,su=`EnaSrdUdpEnabled`,cu=`EnaSrdUdpSpecification`,lu=`EnaSrdUdpSpecificationRequest`,uu=`EfaSupported`,du=`EncryptionSupport`,fu=`EnaSupport`,pu=`EndTime`,mu=`ExecutableUsers`,hu=`Ebs`,gu=`Enabled`,_u=`Encrypted`,vu=`Endpoint`,yu=`Force`,bu=`FailureCode`,xu=`FpgaDeviceInfo`,Su=`FpgaDeviceInfoList`,Cu=`FpgaDeviceMemoryInfo`,wu=`FlexibleEnaQueuesSupport`,Tu=`FpgaInfo`,Eu=`FilterList`,Du=`FailureMessage`,Ou=`FromPort`,ku=`FastRestored`,Au=`FullSnapshotSizeInBytes`,ju=`FreeTierEligible`,Mu=`Filters`,Nu=`Filter`,Pu=`Fpgas`,Fu=`Groups`,Iu=`GroupArn`,Lu=`GetConsoleOutput`,Ru=`GetConsoleOutputRequest`,zu=`GetConsoleOutputResult`,Bu=`GroupDescription`,Vu=`GpuDeviceInfo`,Hu=`GpuDeviceInfoList`,Uu=`GpuDeviceMemoryInfo`,Wu=`GatewayId`,Gu=`GroupIdentifierList`,Ku=`GroupIdStringList`,qu=`GpuInfo`,Ju=`GroupId`,Yu=`GroupIds`,Xu=`GroupIdentifier`,Zu=`GroupLongName`,Qu=`GroupName`,$u=`GroupNameStringList`,ed=`GroupNames`,td=`GroupOwnerId`,nd=`GpuPartitionSize`,rd=`Geography`,id=`Gpus`,ad=`HiddenByDefault`,od=`HttpEndpoint`,sd=`HostId`,cd=`HibernationOptions`,ld=`HibernationOptionsRequest`,ud=`HttpProtocolIpv6`,dd=`HttpPutResponseHopLimit`,fd=`HostResourceGroupArn`,pd=`HibernationSupported`,md=`HttpTokens`,hd=`HostnameType`,gd=`Hibernate`,_d=`Hypervisor`,vd=`Id`,yd=`Ipv6Addresses`,bd=`Ipv6AddressAttribute`,xd=`Ipv6AddressCount`,Sd=`InstanceAttachmentEnaSrdSpecification`,Cd=`InstanceAttachmentEnaSrdUdpSpecification`,wd=`InferenceAcceleratorInfo`,Td=`Ipv4AddressesPerInterface`,Ed=`Ipv6AddressesPerInterface`,Dd=`Ipv4AddressesPerSecondaryInterface`,Od=`ImageAllowed`,kd=`IpAddress`,Ad=`Ipv6Address`,jd=`InstanceBlockDeviceMapping`,Md=`InstanceBlockDeviceMappingList`,Nd=`InstanceBlockDeviceMappingSpecification`,Pd=`InstanceBlockDeviceMappingSpecificationList`,Fd=`Ipv6CidrBlock`,Id=`Ipv6CidrBlockAssociationSet`,Ld=`Ipv6CidrBlockNetworkBorderGroup`,Rd=`Ipv6CidrBlockState`,zd=`IncludeDeprecated`,Bd=`InferenceDeviceInfo`,Vd=`InferenceDeviceInfoList`,Hd=`InferenceDeviceMemoryInfo`,Ud=`IncludeDisabled`,Wd=`IsDefault`,Gd=`IsEgress`,Kd=`InternetGateway`,qd=`InternetGatewayAttachment`,Jd=`InternetGatewayAttachmentList`,Yd=`InternetGatewayBlockMode`,Xd=`InternetGatewayExclusion`,Zd=`InternetGatewayId`,Qd=`InternetGatewayIdList`,$d=`InternetGatewayIds`,ef=`InternetGatewayList`,tf=`InternetGateways`,f=`InstanceId`,nf=`InstanceIpv6Address`,rf=`InstanceIpv6AddressList`,af=`InstanceInterruptionBehavior`,of=`IamInstanceProfile`,sf=`IamInstanceProfileAssociation`,cf=`IamInstanceProfileAssociationSet`,lf=`IamInstanceProfileAssociations`,uf=`Ipv6IpamPoolId`,df=`Ipv4IpamPoolId`,ff=`InstanceIpv4PrefixList`,pf=`InstanceIpv6PrefixList`,mf=`IamInstanceProfileSpecification`,hf=`InstanceIpv4Prefix`,gf=`InstanceIpv6Prefix`,_f=`InstanceInitiatedShutdownBehavior`,vf=`ImageIdStringList`,yf=`InstanceIdStringList`,bf=`ImageId`,xf=`ImageIds`,Sf=`InstanceIds`,Cf=`ImportKeyPair`,wf=`ImportKeyPairRequest`,Tf=`ImportKeyPairResult`,Ef=`ImageLocation`,Df=`ImageList`,Of=`InstanceLifecycle`,kf=`InstanceList`,Af=`IpList`,jf=`InstanceMaintenanceOptions`,Mf=`InstanceMaintenanceOptionsRequest`,Nf=`InstanceMarketOptionsRequest`,Pf=`InstanceMetadataOptionsRequest`,Ff=`InstanceMetadataOptionsResponse`,If=`InstanceMarketOptions`,Lf=`IncludeManagedResources`,Rf=`InstanceMetadataTags`,zf=`Ipv6Native`,Bf=`InstanceNetworkInterface`,Vf=`InstanceNetworkInterfaceAssociation`,Hf=`InstanceNetworkInterfaceAttachment`,Uf=`InstanceNetworkInterfaceList`,Wf=`InstanceNetworkInterfaceSpecification`,Gf=`InstanceNetworkInterfaceSpecificationList`,Kf=`Ipv6NetmaskLength`,qf=`Ipv4NetmaskLength`,Jf=`InstanceNetworkPerformanceOptions`,Yf=`InstanceNetworkPerformanceOptionsRequest`,Xf=`ImageOwnerAlias`,Zf=`IpOwnerId`,Qf=`InstanceOwnerId`,$f=`InstanceOwningService`,ep=`Ipv6PrefixCount`,tp=`Ipv4PrefixCount`,np=`IpPermissionsEgress`,rp=`IpamPoolId`,ip=`InstancePrivateIpAddress`,ap=`InstancePrivateIpAddressList`,op=`IsPrimaryIpv6`,sp=`IncludePublicKey`,cp=`IpPermissionList`,lp=`Ipv4PrefixList`,up=`Ipv6PrefixList`,dp=`Ipv4PrefixSpecificationRequest`,fp=`Ipv6PrefixSpecificationRequest`,pp=`Ipv6Prefixes`,mp=`IpPermissions`,hp=`IpPermission`,gp=`IpProtocol`,_p=`Ipv6Prefix`,vp=`Ipv6Pool`,yp=`Ipv4Prefixes`,bp=`Ipv4Prefix`,xp=`IsPrimary`,Sp=`IpRangeList`,Cp=`Ipv6RangeList`,wp=`IpRanges`,Tp=`IpRange`,Dne=`Ipv6Ranges`,Ep=`Ipv6Range`,Dp=`InstanceStateChange`,Op=`InstanceStateChangeList`,kp=`InstanceSecondaryInterfaceAttachment`,Ap=`InstanceSecondaryInterfaceList`,jp=`InstanceSecondaryInterfacePrivateIpAddress`,Mp=`InstanceSecondaryInterfacePrivateIpAddressList`,Np=`InstanceSecondaryInterfacePrivateIpAddressListRequest`,Pp=`InstanceSecondaryInterfacePrivateIpAddressRequest`,Fp=`InstanceSecondaryInterfaceSpecificationListRequest`,Ip=`InstanceSecondaryInterfaceSpecificationRequest`,Lp=`InstanceSecondaryInterface`,Rp=`InstanceStorageInfo`,zp=`InstanceStorageSupported`,Bp=`ImdsSupport`,Vp=`InstanceState`,Hp=`IpSource`,Up=`Ipv6Supported`,Wp=`InstanceType`,Gp=`InstanceTypeInfoList`,Kp=`InstanceTypeInfo`,qp=`ImageType`,Jp=`InstanceTenancy`,Yp=`InstanceTypes`,Xp=`InterfaceType`,Zp=`IncludeUnsupportedInRegion`,Qp=`ImageWatermarks`,$p=`ImageWatermarkList`,em=`ImageWatermark`,tm=`Images`,nm=`Image`,rm=`Instance`,im=`Instances`,am=`Iops`,One=`Key`,kne=`KeyFormat`,om=`KeyFingerprint`,sm=`KernelId`,cm=`KmsKeyId`,Ane=`KeyMaterial`,lm=`KeyName`,jne=`KeyNameStringList`,Mne=`KeyNames`,Nne=`KeyPairs`,um=`KeyPairId`,Pne=`KeyPairIdStringList`,Fne=`KeyPairIds`,Ine=`KeyPairInfo`,Lne=`KeyPairList`,Rne=`KeyPair`,dm=`KeyType`,zne=`Kernel`,fm=`LicenseConfigurationArn`,Bne=`LicenseConfigurationRequest`,Vne=`LicenseConfiguration`,Hne=`LambdaExclusion`,Une=`LogicalGpuCount`,pm=`LocalGatewayId`,mm=`LinkedGroupId`,Wne=`LicenseList`,Gne=`LastLaunchedTime`,Kne=`LicenseSpecifications`,qne=`LicenseSpecificationListRequest`,Jne=`LicenseSpecification`,Yne=`LaunchTemplate`,Xne=`LaunchTemplateId`,Zne=`LaunchTemplateName`,Qne=`LaunchTemplateSpecification`,$ne=`LaunchTime`,ere=`Latest`,tre=`Lambda`,nre=`Licenses`,rre=`Location`,hm=`MultiAttachEnabled`,gm=`MediaAcceleratorInfo`,_m=`MacAddress`,vm=`MaximumBandwidthInMbps`,ym=`MapCustomerOwnedIpOnLaunch`,ire=`MaxCount`,are=`MinCount`,ore=`MediaDeviceInfo`,sre=`MediaDeviceInfoList`,cre=`MediaDeviceMemoryInfo`,lre=`MaximumEbsAttachments`,ure=`MaximumEbsCards`,dre=`MaximumEfaInterfaces`,fre=`MaximumEnaQueueCount`,pre=`MaximumEnaQueueCountPerInterface`,bm=`MaximumIops`,mre=`ModifyInstanceAttributeRequest`,hre=`ModifyInstanceAttributeValue`,gre=`ModifyInstanceAttribute`,xm=`MemoryInfo`,_re=`MaximumNetworkCards`,Sm=`MaximumNetworkInterfaces`,Cm=`MetadataOptions`,wm=`MaintenanceOptions`,Tm=`MapPublicIpOnLaunch`,vre=`MaxPrice`,Em=`MaxResults`,yre=`ModifySubnetAttributeRequest`,bre=`ModifySubnetAttribute`,xre=`MaximumSecondaryNetworkInterfaces`,Dm=`ModificationState`,Sre=`MarketType`,Om=`MaximumThroughputInMBps`,Cre=`ModifyVolumeRequest`,wre=`ModifyVolumeResult`,Tre=`ModifyVolume`,Ere=`Main`,km=`Manufacturer`,Dre=`Managed`,Am=`Message`,Ore=`Messages`,jm=`Mode`,Mm=`Monitoring`,Nm=`Name`,Pm=`NetworkBorderGroup`,kre=`NetworkCards`,Fm=`NetworkCardIndex`,Are=`NetworkCardInfoList`,jre=`NetworkCardInfo`,Im=`NoDevice`,Mre=`NeuronDeviceCoreInfo`,Nre=`NeuronDeviceInfo`,Pre=`NeuronDeviceInfoList`,Fre=`NeuronDeviceMemoryInfo`,Ire=`NeuronDevices`,Lre=`NitroEnclavesSupport`,Lm=`NatGateway`,Rre=`NatGatewayAddresses`,zre=`NatGatewayAttachedAppliance`,Bre=`NatGatewayAttachedApplianceList`,Vre=`NatGatewayAddressList`,Hre=`NatGatewayAddress`,Ure=`NatGatewayExclusion`,Rm=`NatGatewayId`,Wre=`NatGatewayIdStringList`,Gre=`NatGatewayIds`,Kre=`NatGatewayList`,qre=`NatGateways`,zm=`NetworkInterfaceId`,Jre=`NetworkInterfaceOwnerId`,Bm=`NetworkInterfaces`,Vm=`NetworkInfo`,Hm=`NeuronInfo`,Um=`NetworkPerformanceOptions`,Wm=`NetworkPerformance`,Yre=`NoReboot`,Gm=`NvmeSupport`,Km=`NitroTpmInfo`,Xre=`NitroTpmSupport`,Zre=`NitroTpmSupportedVersionsList`,p=`NextToken`,qm=`NestedVirtualization`,Qre=`Origin`,Jm=`OutpostArn`,$re=`OwnerAlias`,Ym=`OwnerId`,Xm=`OptInStatus`,eie=`OriginalIops`,tie=`OwnerIds`,nie=`OriginalMultiAttachEnabled`,Zm=`OdbNetworkArn`,rie=`OperatorRequest`,iie=`OperatorResponse`,aie=`OwnerStringList`,oie=`OriginalSize`,sie=`OriginalThroughput`,cie=`OriginalVolumeType`,Qm=`Operator`,lie=`Output`,uie=`Owners`,$m=`Owner`,eh=`Principal`,th=`ProvisionedBandwidth`,die=`PeakBandwidthInGbps`,fie=`ProductCodeId`,pie=`ProductCodeList`,mie=`ProductCodeType`,nh=`PartitionCount`,hie=`ProductCode`,rh=`ProductCodes`,gie=`PrivateDnsHostnameTypeOnLaunch`,ih=`PrivateDnsName`,ah=`PrivateDnsNameOptions`,oh=`PrivateDnsNameOptionsOnLaunch`,_ie=`PrivateDnsNameOptionsRequest`,vie=`PrivateDnsNameOptionsResponse`,sh=`PublicDnsName`,ch=`PlatformDetails`,lh=`PlacementGroup`,uh=`PlacementGroupInfo`,yie=`PlacementGroupIdStringList`,bie=`PlacementGroupList`,xie=`PlacementGroupStrategyList`,Sie=`PlacementGroups`,dh=`PublicIp`,Cie=`PrivateIpAddressCount`,wie=`PrivateIpAddressSpecification`,Tie=`PrivateIpAddressSpecificationList`,fh=`PrivateIpAddress`,ph=`PrivateIpAddresses`,Eie=`PublicIpAddress`,mh=`PublicIpv4Pool`,Die=`PublicIpStringList`,Oie=`PrimaryIpv6`,kie=`PrivateIp`,hh=`ProcessorInfo`,Aie=`PublicIps`,jie=`PublicKey`,Mie=`PublicKeyMaterial`,gh=`PrefixListId`,Nie=`PrefixListIdList`,Pie=`PrefixListIds`,Fie=`PartitionNumber`,_h=`PeeringStatus`,Iie=`PhcSupport`,Lie=`PreviousState`,Rie=`ProvisionTime`,zie=`PresignedUrl`,Bie=`PropagatingVgw`,Vie=`PropagatingVgwList`,Hie=`PropagatingVgws`,Uie=`ParentZoneId`,Wie=`ParentZoneName`,vh=`Platform`,yh=`Placement`,bh=`Primary`,xh=`Progress`,Gie=`Provisioned`,Kie=`Public`,Sh=`Return`,qie=`ReleaseAddressRequest`,Jie=`ReleaseAddress`,Yie=`RestorableByUserIds`,Xie=`RestorableBy`,Ch=`RootDeviceName`,wh=`RootDeviceType`,Zie=`RootDeviceTypeList`,Qie=`RestoreExpiryTime`,$ie=`ResourceExclusions`,eae=`RegionGeography`,tae=`ReferencedGroupId`,nae=`ReferencedGroupInfo`,rae=`RegionGeographyList`,iae=`RunInstancesMonitoringEnabled`,aae=`RebootInstancesRequest`,oae=`RunInstancesRequest`,sae=`RunInstancesUserData`,Th=`RamdiskId`,cae=`ReservationId`,lae=`RebootInstances`,uae=`RequesterId`,dae=`RunInstances`,fae=`RegionList`,pae=`ReservationList`,mae=`RouteList`,hae=`RebootMigrationSupport`,gae=`RebootMigration`,Eh=`RegionName`,_ae=`RegionNameStringList`,vae=`RegionNames`,yae=`ReferencedSecurityGroup`,bae=`RevokeSecurityGroupEgress`,xae=`RevokeSecurityGroupEgressRequest`,Sae=`RevokeSecurityGroupEgressResult`,Cae=`RevokeSecurityGroupIngressRequest`,wae=`RevokeSecurityGroupIngressResult`,Tae=`RevokeSecurityGroupIngress`,Eae=`RevokedSecurityGroupRule`,Dae=`RevokedSecurityGroupRuleList`,Dh=`RevokedSecurityGroupRules`,Oae=`RouteTableAssociation`,kae=`RouteTableAssociationId`,Aae=`RouteTableAssociationList`,jae=`RouteTableAssociationState`,Oh=`RouteTableId`,Mae=`RouteTableIdStringList`,Nae=`RouteTableIds`,Pae=`RouteTableList`,Fae=`ResourceType`,Iae=`RequestTime`,kh=`RouteTable`,Lae=`RouteTables`,Rae=`Ramdisk`,zae=`Regions`,Bae=`Region`,Vae=`Requested`,Hae=`Reservations`,Uae=`Reservation`,Wae=`Route`,Gae=`Routes`,Kae=`SecondaryAllocationIds`,qae=`SecondaryAllocationId`,Jae=`SupportedAdditionalProcessorFeatureList`,Yae=`SubnetArn`,Xae=`SupportedArchitectures`,Zae=`SupportedBootModes`,Qae=`SubnetCidrBlockState`,$ae=`SustainedClockSpeedInGhz`,Ah=`SourceDestCheck`,eoe=`SpreadDomain`,toe=`SupportedFeatures`,noe=`SubGeography`,jh=`SecurityGroupArn`,Mh=`SecurityGroupId`,roe=`SecurityGroupIdStringList`,ioe=`SecurityGroupIds`,aoe=`SecurityGroupList`,Nh=`SecurityGroupRules`,ooe=`SecurityGroupRuleArn`,Ph=`SecurityGroupRuleIds`,soe=`SecurityGroupRuleIdList`,Fh=`SecurityGroupRuleId`,coe=`SecurityGroupRuleList`,loe=`SecurityGroupRule`,uoe=`SecurityGroupStringList`,Ih=`SecurityGroups`,Lh=`SecurityGroup`,doe=`SubnetIds`,foe=`SubnetIpv6CidrBlockAssociation`,poe=`SubnetIpv6CidrBlockAssociationSet`,moe=`SourceImageCreationTime`,hoe=`SizeInGB`,Rh=`SourceImageId`,goe=`SecondaryInterfaceId`,_oe=`SourceInstanceId`,zh=`SizeInMiB`,voe=`SpotInstanceRequestId`,Bh=`SourceImageRegion`,yoe=`StartInstancesRequest`,boe=`StartInstancesResult`,xoe=`StopInstancesRequest`,Soe=`StopInstancesResult`,Coe=`SupportedInRegion`,woe=`SnapshotIdStringList`,Toe=`SubnetIdStringList`,Eoe=`SpotInstanceType`,Vh=`SecondaryInterfaces`,Doe=`SecondaryInterface`,Hh=`SnapshotId`,Ooe=`SnapshotIds`,koe=`StartingInstances`,Aoe=`StartInstances`,joe=`StoppingInstances`,Moe=`StopInstances`,Uh=`SubnetId`,Noe=`SnapshotLocation`,Poe=`SnapshotList`,Wh=`SpreadLevel`,Foe=`SubnetList`,Ioe=`ServiceManaged`,Loe=`SpotMarketOptions`,Gh=`StatusMessage`,Kh=`StateMessage`,Roe=`SecondaryNetworkId`,qh=`SriovNetSupport`,zoe=`SecondaryNetworkSupported`,Boe=`SpotOptions`,Jh=`SkipOsShutdown`,Voe=`SecondaryPrivateIpAddresses`,Yh=`SecondaryPrivateIpAddressCount`,Hoe=`SecondaryPrivateIpAddress`,Uoe=`SupportedRootDeviceTypes`,Woe=`SourceRegion`,Xh=`StateReason`,Zh=`SourceSecurityGroupName`,Qh=`SourceSecurityGroupOwnerId`,Goe=`SourceSnapshotId`,$h=`SecondarySubnetId`,Koe=`SupportedStrategies`,eg=`StartTime`,qoe=`StateTransitionReason`,tg=`SseType`,Joe=`StorageTier`,Yoe=`SupportedUsageClasses`,Xoe=`SensitiveUserData`,Zoe=`SourceVolumeId`,Qoe=`SupportedVirtualizationTypes`,$oe=`SupportedVersions`,ng=`Size`,ese=`Snapshots`,tse=`Snapshot`,rg=`State`,ig=`Status`,ag=`Strategy`,og=`Subnet`,nse=`Subnets`,sg=`Tags`,cg=`TcpEstablishedTimeout`,rse=`TotalFpgaMemoryInMiB`,lg=`TransitGatewayId`,ise=`TotalGpuMemoryInMiB`,ase=`TerminateInstances`,ose=`TotalInferenceMemoryInMiB`,sse=`TerminateInstancesRequest`,cse=`TerminateInstancesResult`,lse=`TargetIops`,use=`TerminatingInstances`,dse=`TagList`,fse=`TargetMultiAttachEnabled`,pse=`TotalMediaMemoryInMiB`,mse=`TotalNeuronDeviceMemoryInMiB`,ug=`ToPort`,dg=`ThreadsPerCore`,hse=`ThreadsPerCoreList`,fg=`TagSpecifications`,gse=`TotalSizeInGB`,_se=`TagSpecificationList`,pg=`TagSpecification`,vse=`TargetSize`,mg=`TpmSupport`,yse=`TargetThroughput`,bse=`TransferType`,xse=`TargetVolumeType`,hg=`Tag`,Sse=`Tenancy`,gg=`Throughput`,_g=`Timestamp`,vg=`Type`,Cse=`UsageClassTypeList`,yg=`UserData`,bg=`UserId`,wse=`UserIdGroupPairs`,Tse=`UserIdGroupPairList`,Ese=`UserIdGroupPair`,xg=`UnknownIpPermissions`,Sg=`UsageOperation`,Dse=`UsageOperationUpdateTime`,Cg=`UdpStreamTimeout`,wg=`UdpTimeout`,Tg=`Value`,Ose=`VolumeAttachmentList`,kse=`VolumeAttachment`,Ase=`VpcCidrBlockAssociation`,jse=`VpcCidrBlockAssociationSet`,Mse=`VpcCidrBlockState`,Eg=`VCpuInfo`,Nse=`ValidCores`,Dg=`VpcEncryptionControl`,Pse=`VpcEncryptionControlConfiguration`,Fse=`VpcEncryptionControlExclusion`,Ise=`VpcEncryptionControlExclusions`,Lse=`VpcEncryptionControlId`,Og=`VpcEndpointId`,kg=`VpcId`,Rse=`VpcIpv6CidrBlockAssociation`,zse=`VpcIpv6CidrBlockAssociationSet`,Ag=`VolumeInitializationRate`,jg=`VolumeIdStringList`,Mg=`VpcIdStringList`,Ng=`VolumeId`,Pg=`VolumeIds`,Fg=`VpcIds`,Ig=`VpcLattice`,Lg=`VpcLatticeExclusion`,Rg=`VolumeList`,zg=`VpcList`,Bg=`VolumeModification`,Vg=`VirtualName`,Hg=`VolumeOwnerId`,Ug=`VpcPeeringConnectionId`,Wg=`VpcPeeringExclusion`,Gg=`VirtualPrivateGateway`,Kg=`VirtualPrivateGatewayExclusion`,qg=`VpcPeering`,Jg=`ValueStringList`,Yg=`VolumeSize`,Xg=`VolumeType`,Zg=`VirtualizationTypeList`,Qg=`ValidThreadsPerCore`,$g=`VirtualizationType`,e_=`ValidUntil`,t_=`Values`,n_=`Version`,r_=`Volumes`,i_=`Volume`,a_=`Vpc`,o_=`Vpcs`,s_=`WatermarkCreationTime`,c_=`WatermarkKey`,l_=`WorkloadsList`,u_=`Workloads`,d_=`ZoneId`,f_=`ZoneIdStringList`,p_=`ZoneIds`,m_=`ZoneName`,h_=`ZoneNameStringList`,g_=`ZoneNames`,__=`ZoneType`,v_=`attachedApplianceSet`,y_=`applianceArn`,b_=`additionalFlexibleNetworkInterfaces`,x_=`allocationId`,S_=`availableIpAddressCount`,C_=`assignIpv6AddressOnCreation`,w_=`additionalInfo`,T_=`associationId`,E_=`attachmentId`,D_=`amiLaunchIndex`,O_=`attachmentLimitType`,k_=`availabilityMode`,A_=`associatePublicIpAddress`,j_=`amazonProvidedIpv6CidrBlock`,M_=`autoProvisionZones`,N_=`autoRecoverySupported`,P_=`allowReassociation`,F_=`associatedResource`,I_=`autoRecovery`,L_=`associationState`,R_=`autoScalingIps`,z_=`amdSevSnp`,B_=`addressesSet`,V_=`associationSet`,H_=`attachmentSet`,U_=`attachmentState`,W_=`attachTime`,G_=`availabilityZone`,K_=`availabilityZoneId`,q_=`availabilityZoneInfo`,J_=`accelerators`,Y_=`affinity`,X_=`arn`,Z_=`architecture`,Q_=`association`,$_=`attachment`,ev=`attribute`,tv=`baselineBandwidthInGbps`,nv=`baselineBandwidthInMbps`,rv=`blockDeviceMapping`,iv=`baselineIops`,av=`bootMode`,ov=`bareMetal`,sv=`blockPublicAccessStates`,cv=`burstablePerformanceSupported`,lv=`baselineThroughputInMBps`,uv=`bandwidthWeighting`,dv=`bandwidthWeightings`,fv=`cidrBlock`,pv=`cidrBlockAssociationSet`,mv=`capacityBlockId`,hv=`cidrBlockState`,gv=`coreCount`,_v=`completionDurationMinutes`,vv=`creationDate`,yv=`carrierGatewayId`,bv=`currentGeneration`,xv=`carrierIp`,Sv=`currentInstanceBootMode`,Cv=`cidrIp`,wv=`cidrIpv6`,Tv=`cidrIpv4`,Ev=`coreInfo`,Dv=`coreNetworkArn`,Ov=`cpuOptions`,kv=`customerOwnedIp`,Av=`customerOwnedIpv4Pool`,jv=`capacityReservationId`,Mv=`capacityReservationPreference`,Nv=`capacityReservationResourceGroupArn`,Pv=`capacityReservationSpecification`,Fv=`capacityReservationTarget`,Iv=`currentState`,Lv=`clientToken`,Rv=`connectionTrackingConfiguration`,zv=`completionTime`,Bv=`connectivityType`,Vv=`createTime`,Hv=`code`,Uv=`configured`,Wv=`count`,Gv=`disableApiTermination`,Kv=`destinationCidrBlock`,qv=`defaultCores`,Jv=`dataEncryptionKeyId`,Yv=`defaultEnaQueueCountPerInterface`,Xv=`defaultForAz`,Zv=`dedicatedHostsSupported`,Qv=`deviceIndex`,$v=`destinationIpv6CidrBlock`,ey=`deviceName`,ty=`defaultNetworkCardIndex`,ny=`dnsName`,ry=`dhcpOptionsId`,iy=`deleteOnTermination`,ay=`destinationPrefixListId`,oy=`deregistrationProtection`,m=`dryRun`,sy=`destinationRegion`,cy=`defaultTcpEstablishedTimeout`,ly=`defaultThreadsPerCore`,uy=`deprecationTime`,dy=`deleteTime`,fy=`defaultUdpStreamTimeout`,py=`defaultUdpTimeout`,my=`defaultVCpus`,hy=`description`,gy=`device`,_y=`disks`,vy=`domain`,yy=`ebsCardIndex`,by=`ebsCardSet`,xy=`encryptionControl`,Sy=`enableDns64`,Cy=`elasticFileSystem`,wy=`elasticGpuAssociationId`,Ty=`elasticGpuAssociationState`,Ey=`elasticGpuAssociationSet`,Dy=`elasticGpuAssociationTime`,Oy=`elasticGpuId`,ky=`elasticInferenceAcceleratorArn`,Ay=`elasticInferenceAcceleratorAssociationId`,jy=`elasticInferenceAcceleratorAssociationState`,My=`elasticInferenceAcceleratorAssociationSet`,Ny=`elasticInferenceAcceleratorAssociationTime`,Py=`encryptionInTransitSupported`,Fy=`ebsInfo`,Iy=`efaInfo`,Ly=`enableLniAtDeviceIndex`,Ry=`ebsOptimized`,zy=`ebsOptimizedInfo`,By=`egressOnlyInternetGateway`,Vy=`egressOnlyInternetGatewayId`,Hy=`ebsOptimizedSupport`,Uy=`enclaveOptions`,Wy=`enaQueueCount`,h=`ec2QueryName`,Gy=`enableResourceNameDnsAAAARecord`,Ky=`enableResourceNameDnsARecord`,qy=`enaSrdEnabled`,Jy=`enaSrdSpecification`,Yy=`enaSrdSupported`,Xy=`enaSrdUdpEnabled`,Zy=`enaSrdUdpSpecification`,Qy=`efaSupported`,$y=`encryptionSupport`,eb=`enaSupport`,tb=`endTime`,nb=`ebs`,rb=`enabled`,ib=`encrypted`,ab=`failureCode`,ob=`flexibleEnaQueuesSupport`,sb=`fpgaInfo`,cb=`failureMessage`,lb=`fromPort`,ub=`fastRestored`,db=`fullSnapshotSizeInBytes`,fb=`freeTierEligible`,pb=`force`,mb=`fpgas`,hb=`groupArn`,gb=`groupDescription`,_b=`gatewayId`,vb=`gpuInfo`,yb=`groupId`,bb=`groupLongName`,xb=`groupName`,Sb=`groupOwnerId`,Cb=`gpuPartitionSize`,wb=`geographySet`,Tb=`groupSet`,Eb=`gpus`,Db=`groups`,Ob=`hypervisor`,kb=`hiddenByDefault`,Ab=`httpEndpoint`,jb=`hostId`,Mb=`hibernationOptions`,Nb=`httpProtocolIpv6`,Pb=`httpPutResponseHopLimit`,Fb=`hostResourceGroupArn`,Ib=`hibernationSupported`,Lb=`httpTokens`,Rb=`hostnameType`,zb=`id`,Bb=`ipv6AddressAttribute`,Vb=`ipv6AddressCount`,Hb=`inferenceAcceleratorInfo`,Ub=`ipv4AddressesPerInterface`,Wb=`ipv6AddressesPerInterface`,Gb=`ipv4AddressesPerSecondaryInterface`,Kb=`ipv6AddressesSet`,qb=`imageAllowed`,Jb=`ipAddress`,Yb=`ipv6Address`,Xb=`ipv6CidrBlock`,Zb=`ipv6CidrBlockAssociationSet`,Qb=`ipv6CidrBlockState`,$b=`isDefault`,ex=`isEgress`,tx=`internetGateway`,nx=`internetGatewayBlockMode`,rx=`internetGatewayId`,ix=`internetGatewaySet`,ax=`instanceId`,ox=`iamInstanceProfile`,sx=`iamInstanceProfileAssociation`,cx=`iamInstanceProfileAssociationSet`,lx=`instanceInitiatedShutdownBehavior`,ux=`imageId`,dx=`imageLocation`,fx=`instanceLifecycle`,px=`instanceMetadataTags`,mx=`ipv6Native`,hx=`imageOwnerAlias`,gx=`imageOwnerId`,_x=`instanceOwnerId`,vx=`ipOwnerId`,yx=`instanceOwningService`,bx=`ipPermissionsEgress`,xx=`isPrimaryIpv6`,Sx=`ipv4PrefixSet`,Cx=`ipv6PrefixSet`,wx=`ipProtocol`,Tx=`ipPermissions`,Ex=`ipv4Prefix`,Dx=`ipv6Pool`,Ox=`ipv6Prefix`,kx=`isPublic`,Ax=`isPrimary`,jx=`ipRanges`,Mx=`ipv6Ranges`,Nx=`instanceStorageInfo`,Px=`instanceStorageSupported`,Fx=`imagesSet`,Ix=`imageState`,Lx=`imdsSupport`,Rx=`instancesSet`,zx=`instanceState`,Bx=`ipSource`,Vx=`ipv6Supported`,Hx=`instanceType`,Ux=`instanceTypeSet`,Wx=`idempotencyToken`,Gx=`imageType`,Kx=`instanceTenancy`,qx=`interfaceType`,Jx=`imageWatermarkSet`,Yx=`iops`,g=`item`,Xx=`key`,Zx=`keyFingerprint`,Qx=`kernelId`,$x=`kmsKeyId`,eS=`keyMaterial`,tS=`keyName`,nS=`keyPairId`,rS=`keySet`,iS=`keyType`,aS=`kernel`,oS=`licenseConfigurationArn`,sS=`logicalGpuCount`,cS=`localGatewayId`,lS=`linkedGroupId`,uS=`lastLaunchedTime`,dS=`licenseSet`,fS=`launchTime`,pS=`lambda`,mS=`multiAttachEnabled`,hS=`mediaAcceleratorInfo`,gS=`macAddress`,_S=`maximumBandwidthInMbps`,vS=`mapCustomerOwnedIpOnLaunch`,yS=`maximumEbsAttachments`,bS=`maximumEbsCards`,xS=`maximumEfaInterfaces`,SS=`maximumEnaQueueCount`,CS=`maximumEnaQueueCountPerInterface`,wS=`maximumIops`,TS=`memoryInfo`,ES=`maximumNetworkCards`,DS=`maximumNetworkInterfaces`,OS=`metadataOptions`,kS=`maintenanceOptions`,AS=`mapPublicIpOnLaunch`,jS=`maxResults`,MS=`messageSet`,NS=`maximumSecondaryNetworkInterfaces`,PS=`modificationState`,FS=`maximumThroughputInMBps`,IS=`main`,LS=`manufacturer`,RS=`managed`,zS=`message`,BS=`monitoring`,VS=`mode`,HS=`name`,US=`networkBorderGroup`,WS=`networkCards`,GS=`networkCardIndex`,KS=`noDevice`,qS=`neuronDevices`,JS=`nitroEnclavesSupport`,YS=`natGateway`,XS=`natGatewayAddressSet`,ZS=`natGatewayId`,QS=`natGatewaySet`,$S=`networkInterfaceId`,eC=`networkInterfaceOwnerId`,tC=`networkInterfaceSet`,nC=`networkInterface`,rC=`networkInfo`,iC=`neuronInfo`,aC=`networkPerformanceOptions`,oC=`networkPerformance`,sC=`noReboot`,cC=`nvmeSupport`,lC=`nitroTpmInfo`,uC=`nitroTpmSupport`,dC=`nextToken`,fC=`nestedVirtualization`,pC=`origin`,mC=`outpostArn`,hC=`ownerAlias`,gC=`ownerId`,_C=`optInStatus`,vC=`originalIops`,yC=`originalMultiAttachEnabled`,bC=`odbNetworkArn`,xC=`originalSize`,SC=`originalThroughput`,CC=`originalVolumeType`,wC=`operator`,TC=`output`,EC=`principal`,DC=`provisionedBandwidth`,OC=`peakBandwidthInGbps`,kC=`productCodes`,AC=`partitionCount`,jC=`productCode`,MC=`privateDnsNameOptions`,NC=`privateDnsNameOptionsOnLaunch`,PC=`privateDnsName`,FC=`publicDnsName`,IC=`platformDetails`,LC=`placementGroup`,RC=`placementGroupInfo`,zC=`placementGroupSet`,BC=`publicIp`,VC=`privateIpAddressesSet`,HC=`privateIpAddressSet`,UC=`privateIpAddress`,WC=`publicIpv4Pool`,GC=`processorInfo`,KC=`privateIp`,qC=`publicKey`,JC=`publicKeyMaterial`,YC=`prefixListId`,XC=`prefixListIds`,ZC=`partitionNumber`,QC=`peeringStatus`,$C=`phcSupport`,ew=`previousState`,tw=`provisionTime`,nw=`presignedUrl`,rw=`propagatingVgwSet`,iw=`parentZoneId`,aw=`parentZoneName`,ow=`platform`,sw=`placement`,cw=`primary`,lw=`progress`,uw=`provisioned`,dw=`return`,fw=`rootDeviceName`,pw=`rootDeviceType`,mw=`restoreExpiryTime`,hw=`regionEndpoint`,gw=`resourceExclusions`,_w=`referencedGroupId`,vw=`referencedGroupInfo`,yw=`reservationId`,bw=`ramdiskId`,xw=`regionInfo`,Sw=`requesterId`,Cw=`rebootMigrationSupport`,ww=`rebootMigration`,Tw=`regionName`,Ew=`revokedSecurityGroupRuleSet`,Dw=`reservationSet`,Ow=`routeSet`,kw=`routeTableAssociationId`,Aw=`routeTableId`,jw=`routeTableSet`,Mw=`resourceType`,Nw=`requestTime`,Pw=`routeTable`,Fw=`ramdisk`,Iw=`reason`,Lw=`requested`,Rw=`smithy.ts.sdk.synthetic.com.amazonaws.ec2`,zw=`supportedArchitectures`,Bw=`subnetArn`,Vw=`supportedBootModes`,Hw=`sustainedClockSpeedInGhz`,Uw=`sourceDestCheck`,Ww=`spreadDomain`,Gw=`supportedFeatures`,Kw=`securityGroupArn`,qw=`securityGroupInfo`,Jw=`securityGroupRuleArn`,Yw=`securityGroupRuleId`,Xw=`securityGroupRuleSet`,Zw=`subGeographySet`,Qw=`sourceImageCreationTime`,$w=`sizeInGB`,eT=`sourceInstanceId`,tT=`secondaryInterfaceId`,nT=`sourceImageId`,rT=`sizeInMiB`,iT=`sourceImageRegion`,aT=`spotInstanceRequestId`,oT=`supportedInRegion`,sT=`secondaryInterfaceSet`,cT=`snapshotId`,lT=`subnetId`,uT=`spreadLevel`,dT=`serviceManaged`,fT=`statusMessage`,pT=`stateMessage`,mT=`secondaryNetworkId`,hT=`secondaryNetworkSupported`,gT=`sriovNetSupport`,_T=`secondaryPrivateIpAddressCount`,vT=`supportedRootDeviceTypes`,yT=`stateReason`,bT=`sourceSecurityGroupName`,xT=`sourceSecurityGroupOwnerId`,ST=`secondarySubnetId`,CT=`snapshotSet`,wT=`subnetSet`,TT=`supportedStrategies`,ET=`startTime`,DT=`sseType`,OT=`storageTier`,kT=`supportedUsageClasses`,AT=`sourceVolumeId`,jT=`supportedVirtualizationTypes`,MT=`supportedVersions`,NT=`size`,PT=`state`,FT=`status`,IT=`strategy`,LT=`subnet`,RT=`tenancy`,zT=`tcpEstablishedTimeout`,BT=`totalFpgaMemoryInMiB`,VT=`transitGatewayId`,HT=`totalGpuMemoryInMiB`,UT=`totalInferenceMemoryInMiB`,WT=`targetIops`,GT=`targetMultiAttachEnabled`,KT=`totalMediaMemoryInMiB`,qT=`totalNeuronDeviceMemoryInMiB`,JT=`toPort`,YT=`threadsPerCore`,XT=`tagSet`,ZT=`totalSizeInGB`,QT=`targetSize`,$T=`tpmSupport`,eE=`targetThroughput`,tE=`transferType`,nE=`targetVolumeType`,rE=`throughput`,iE=`timestamp`,aE=`type`,oE=`userData`,sE=`userId`,cE=`unknownIpPermissionSet`,lE=`usageOperation`,uE=`usageOperationUpdateTime`,dE=`udpStreamTimeout`,fE=`udpTimeout`,pE=`value`,mE=`vCpuInfo`,hE=`validCores`,gE=`vpcEncryptionControlId`,_E=`vpcEndpointId`,vE=`vpcId`,yE=`volumeInitializationRate`,bE=`volumeId`,xE=`vpcLattice`,SE=`volumeModification`,CE=`virtualName`,wE=`volumeOwnerId`,TE=`vpcPeeringConnectionId`,EE=`virtualPrivateGateway`,DE=`vpcPeering`,OE=`volumeSet`,kE=`volumeSize`,AE=`vpcSet`,jE=`volumeType`,ME=`validThreadsPerCore`,NE=`virtualizationType`,PE=`version`,FE=`vpc`,IE=`watermarkCreationTime`,LE=`watermarkKey`,RE=`workloadSet`,_=`xmlName`,zE=`zoneId`,BE=`zoneName`,VE=`zoneState`,HE=`zoneType`,v=`com.amazonaws.ec2`,UE=ce.for(Rw),WE=[-3,Rw,`EC2ServiceException`,0,[],[]];UE.registerError(WE,yte);var GE=[UE],KE=[0,v,So,8,0],qE=[0,v,hre,8,0],JE=[0,v,sae,8,0],YE=[0,v,Xoe,8,0],XE=[3,v,zi,0,[Hi,Wi,sl,zm,Jre,fh,sg,mh,Pm,Qa,$a,Na,Uh,Ioe,f,dh],[[0,{[h]:`AllocationId`,[_]:x_}],[0,{[h]:`AssociationId`,[_]:T_}],[0,{[h]:`Domain`,[_]:vy}],[0,{[h]:`NetworkInterfaceId`,[_]:$S}],[0,{[h]:`NetworkInterfaceOwnerId`,[_]:eC}],[0,{[h]:`PrivateIpAddress`,[_]:UC}],[()=>UN,{[h]:`TagSet`,[_]:XT}],[0,{[h]:`PublicIpv4Pool`,[_]:WC}],[0,{[h]:`NetworkBorderGroup`,[_]:US}],[0,{[h]:`CustomerOwnedIp`,[_]:kv}],[0,{[h]:`CustomerOwnedIpv4Pool`,[_]:Av}],[0,{[h]:`CarrierIp`,[_]:xv}],[0,{[h]:`SubnetId`,[_]:lT}],[0,{[h]:`ServiceManaged`,[_]:dT}],[0,{[h]:`InstanceId`,[_]:ax}],[0,{[h]:`PublicIp`,[_]:BC}]]],ZE=[3,v,bte,0,[sl,zi,mh,Pm,$a,fg,rp,d],[0,0,0,0,0,[()=>WN,{[_]:pg}],0,[2,{[h]:`DryRun`,[_]:m}]]],QE=[3,v,xte,0,[Hi,mh,Pm,sl,Qa,$a,Na,dh],[[0,{[h]:`AllocationId`,[_]:x_}],[0,{[h]:`PublicIpv4Pool`,[_]:WC}],[0,{[h]:`NetworkBorderGroup`,[_]:US}],[0,{[h]:`Domain`,[_]:vy}],[0,{[h]:`CustomerOwnedIp`,[_]:kv}],[0,{[h]:`CustomerOwnedIpv4Pool`,[_]:Av}],[0,{[h]:`CarrierIp`,[_]:xv}],[0,{[h]:`PublicIp`,[_]:BC}]]],$E=[3,v,Ste,0,[Hi,f,dh,d,zm,fh,Zte],[0,0,0,[2,{[h]:`DryRun`,[_]:m}],[0,{[h]:`NetworkInterfaceId`,[_]:$S}],[0,{[h]:`PrivateIpAddress`,[_]:UC}],[2,{[h]:`AllowReassociation`,[_]:P_}]]],eD=[3,v,Cte,0,[Wi],[[0,{[h]:`AssociationId`,[_]:T_}]]],tD=[3,v,Ite,0,[of,f],[[()=>Ak,0],0],2],nD=[3,v,Lte,0,[sf],[[()=>kk,{[h]:`IamInstanceProfileAssociation`,[_]:sx}]]],rD=[3,v,Jte,0,[Oh,Wu,mh,d,Uh],[[0,{[h]:`RouteTableId`,[_]:Aw}],0,0,[2,{[h]:`DryRun`,[_]:m}],[0,{[h]:`SubnetId`,[_]:lT}]],1],iD=[3,v,Yte,0,[Wi,Yi],[[0,{[h]:`AssociationId`,[_]:T_}],[()=>vj,{[h]:`AssociationState`,[_]:L_}]]],aD=[3,v,Pte,0,[Zd,kg,d],[[0,{[h]:`InternetGatewayId`,[_]:rx}],[0,{[h]:`VpcId`,[_]:vE}],[2,{[h]:`DryRun`,[_]:m}]],2],oD=[3,v,cne,0,[al,f,Ng,dl,d],[0,0,0,1,[2,{[h]:`DryRun`,[_]:m}]],3],sD=[3,v,kte,0,[Tg],[[2,{[h]:`Value`,[_]:pE}]]],cD=[3,v,lne,0,[Tg],[[0,{[h]:`Value`,[_]:pE}]]],lD=[3,v,ene,0,[Ju,fg,d,Zh,Qh,gp,Ou,ug,Ba,mp],[[0,{[h]:`GroupId`,[_]:yb}],[()=>WN,{[_]:pg}],[2,{[h]:`DryRun`,[_]:m}],[0,{[h]:`SourceSecurityGroupName`,[_]:bT}],[0,{[h]:`SourceSecurityGroupOwnerId`,[_]:xT}],[0,{[h]:`IpProtocol`,[_]:wx}],[1,{[h]:`FromPort`,[_]:lb}],[1,{[h]:`ToPort`,[_]:JT}],[0,{[h]:`CidrIp`,[_]:Cv}],[()=>YM,{[h]:`IpPermissions`,[_]:Tx}]],1],uD=[3,v,tne,0,[Sh,Nh],[[2,{[h]:`Return`,[_]:dw}],[()=>FN,{[h]:`SecurityGroupRuleSet`,[_]:Xw}]]],dD=[3,v,nne,0,[Ba,Ou,Ju,Qu,mp,gp,Zh,Qh,ug,fg,d],[0,1,0,0,[()=>YM,0],0,0,0,1,[()=>WN,{[_]:pg}],[2,{[h]:`DryRun`,[_]:m}]]],fD=[3,v,rne,0,[Sh,Nh],[[2,{[h]:`Return`,[_]:dw}],[()=>FN,{[h]:`SecurityGroupRuleSet`,[_]:Xw}]]],pD=[3,v,Qi,0,[Xm,Ore,Eh,m_,d_,Qu,Pm,__,Wie,Uie,Zu,rd,noe,rg],[[0,{[h]:`OptInStatus`,[_]:_C}],[()=>iM,{[h]:`MessageSet`,[_]:MS}],[0,{[h]:`RegionName`,[_]:Tw}],[0,{[h]:`ZoneName`,[_]:BE}],[0,{[h]:`ZoneId`,[_]:zE}],[0,{[h]:`GroupName`,[_]:xb}],[0,{[h]:`NetworkBorderGroup`,[_]:US}],[0,{[h]:`ZoneType`,[_]:HE}],[0,{[h]:`ParentZoneName`,[_]:aw}],[0,{[h]:`ParentZoneId`,[_]:iw}],[0,{[h]:`GroupLongName`,[_]:bb}],[()=>nM,{[h]:`GeographySet`,[_]:wb}],[()=>aM,{[h]:`SubGeographySet`,[_]:Zw}],[0,{[h]:`ZoneState`,[_]:VE}]]],mD=[3,v,$i,0,[Qi,ta,Ui],[0,0,[()=>Qj,{[_]:Hi}]]],hD=[3,v,dne,0,[Nm],[[0,{[h]:`Name`,[_]:HS}]]],gD=[3,v,mne,0,[Am],[[0,{[h]:`Message`,[_]:zS}]]],_D=[3,v,gne,0,[Nm],[[0,{[h]:`Name`,[_]:HS}]]],vD=[3,v,Cne,0,[Tg],[[21,{[h]:`Value`,[_]:pE}]]],yD=[3,v,la,0,[hu,Im,Ks,Vg],[[()=>tk,{[h]:`Ebs`,[_]:nb}],[0,{[h]:`NoDevice`,[_]:KS}],[0,{[h]:`DeviceName`,[_]:ey}],[0,{[h]:`VirtualName`,[_]:CE}]]],bD=[3,v,ga,0,[Yd],[[0,{[h]:`InternetGatewayBlockMode`,[_]:nx}]]],xD=[3,v,uo,0,[ao,fo],[0,()=>CD]],SD=[3,v,lo,0,[ao,fo],[[0,{[h]:`CapacityReservationPreference`,[_]:Mv}],[()=>wD,{[h]:`CapacityReservationTarget`,[_]:Fv}]]],CD=[3,v,fo,0,[io,so],[0,0]],wD=[3,v,po,0,[io,so],[[0,{[h]:`CapacityReservationId`,[_]:jv}],[0,{[h]:`CapacityReservationResourceGroupArn`,[_]:Nv}]]],TD=[3,v,Io,0,[cg,Cg,wg],[1,1,1]],ED=[3,v,Lo,0,[cg,Cg,wg],[[1,{[h]:`TcpEstablishedTimeout`,[_]:zT}],[1,{[h]:`UdpStreamTimeout`,[_]:dE}],[1,{[h]:`UdpTimeout`,[_]:fE}]]],DD=[3,v,xo,0,[Woe,Goe,il,ec,bc,_u,cm,zie,fg,ka,es,d],[0,0,0,0,[0,{[h]:`DestinationRegion`,[_]:sy}],[2,{[h]:`Encrypted`,[_]:ib}],[0,{[h]:`KmsKeyId`,[_]:$x}],[()=>KE,{[h]:`PresignedUrl`,[_]:nw}],[()=>WN,{[_]:pg}],1,0,[2,{[h]:`DryRun`,[_]:m}]],2],OD=[3,v,Co,0,[sg,Hh],[[()=>UN,{[h]:`TagSet`,[_]:XT}],[0,{[h]:`SnapshotId`,[_]:cT}]]],kD=[3,v,Za,0,[Da,dg,Xi,qm],[[1,{[h]:`CoreCount`,[_]:gv}],[1,{[h]:`ThreadsPerCore`,[_]:YT}],[0,{[h]:`AmdSevSnp`,[_]:z_}],[0,{[h]:`NestedVirtualization`,[_]:fC}]]],AD=[3,v,eo,0,[Da,dg,Xi,qm],[1,1,0,0]],jD=[3,v,Ra,0,[f,Nm,fg,Noe,d,il,Yre,ua],[[0,{[h]:`InstanceId`,[_]:ax}],[0,{[h]:`Name`,[_]:HS}],[()=>WN,{[_]:pg}],0,[2,{[h]:`DryRun`,[_]:m}],[0,{[h]:`Description`,[_]:hy}],[2,{[h]:`NoReboot`,[_]:sC}],[()=>cM,{[h]:`BlockDeviceMapping`,[_]:rv}]],2],MD=[3,v,za,0,[bf],[[0,{[h]:`ImageId`,[_]:ux}]]],ND=[3,v,Ia,0,[fg,d],[[()=>WN,{[_]:pg}],[2,{[h]:`DryRun`,[_]:m}]]],PD=[3,v,La,0,[Kd],[[()=>pA,{[h]:`InternetGateway`,[_]:tx}]]],FD=[3,v,Ka,0,[lm,dm,fg,kne,d],[0,0,[()=>WN,{[_]:pg}],0,[2,{[h]:`DryRun`,[_]:m}]],1],ID=[3,v,Ya,0,[Ki,Hi,No,d,Uh,kg,ea,fg,zo,fh,Kae,Voe,Yh],[0,0,[0,4],2,0,0,[()=>tM,{[_]:$i}],[()=>WN,{[_]:pg}],0,0,[()=>Qj,{[_]:qae}],[()=>JM,{[_]:Hoe}],1]],LD=[3,v,Xa,0,[No,Lm],[[0,{[h]:`ClientToken`,[_]:Lv}],[()=>PA,{[h]:`NatGateway`,[_]:YS}]]],RD=[3,v,no,0,[nh,fg,Wh,mm,Qm,d,Qu,ag],[1,[()=>WN,{[_]:pg}],0,0,()=>WA,[2,{[h]:`DryRun`,[_]:m}],[0,{[h]:`GroupName`,[_]:xb}],[0,{[h]:`Strategy`,[_]:IT}]]],zD=[3,v,ro,0,[lh],[[()=>qA,{[h]:`PlacementGroup`,[_]:LC}]]],BD=[3,v,oo,0,[Oh,cc,Og,lg,pm,ja,qa,Zm,d,os,Wu,ms,ql,f,zm,Ug,Rm],[[0,{[h]:`RouteTableId`,[_]:Aw}],0,0,0,0,0,0,0,[2,{[h]:`DryRun`,[_]:m}],[0,{[h]:`DestinationCidrBlock`,[_]:Kv}],[0,{[h]:`GatewayId`,[_]:_b}],[0,{[h]:`DestinationIpv6CidrBlock`,[_]:$v}],[0,{[h]:`EgressOnlyInternetGatewayId`,[_]:Vy}],[0,{[h]:`InstanceId`,[_]:ax}],[0,{[h]:`NetworkInterfaceId`,[_]:$S}],[0,{[h]:`VpcPeeringConnectionId`,[_]:TE}],[0,{[h]:`NatGatewayId`,[_]:ZS}]],1],VD=[3,v,co,0,[Sh],[[2,{[h]:`Return`,[_]:dw}]]],HD=[3,v,mo,0,[kg,fg,No,d],[[0,{[h]:`VpcId`,[_]:vE}],[()=>WN,{[_]:pg}],[0,4],[2,{[h]:`DryRun`,[_]:m}]],1],UD=[3,v,ho,0,[kh,No],[[()=>gj,{[h]:`RouteTable`,[_]:Pw}],[0,{[h]:`ClientToken`,[_]:Lv}]]],WD=[3,v,yo,0,[il,Qu,kg,fg,d],[[0,{[_]:Bu}],0,0,[()=>WN,{[_]:pg}],[2,{[h]:`DryRun`,[_]:m}]],2],GD=[3,v,bo,0,[Ju,sg,jh],[[0,{[h]:`GroupId`,[_]:yb}],[()=>UN,{[h]:`TagSet`,[_]:XT}],[0,{[h]:`SecurityGroupArn`,[_]:Kw}]]],KD=[3,v,wo,0,[Ng,il,Jm,fg,rre,d],[0,0,0,[()=>WN,{[_]:pg}],0,[2,{[h]:`DryRun`,[_]:m}]],1],qD=[3,v,To,0,[kg,fg,Qi,ta,Sa,Fd,Jm,zf,df,qf,uf,Kf,d],[0,[()=>WN,{[_]:pg}],0,0,0,0,0,2,0,1,0,1,[2,{[h]:`DryRun`,[_]:m}]],1],JD=[3,v,Eo,0,[og],[[()=>Aj,{[h]:`Subnet`,[_]:LT}]]],YD=[3,v,Vo,0,[Qi,ta,_u,am,cm,Jm,ng,Hh,Xg,fg,hm,gg,No,Ag,Qm,d],[0,0,[2,{[h]:`Encrypted`,[_]:ib}],1,0,0,1,0,0,[()=>WN,{[_]:pg}],2,1,[0,4],1,()=>WA,[2,{[h]:`DryRun`,[_]:m}]]],XD=[3,v,Ho,0,[Sa,vp,Fd,df,qf,uf,Kf,Ld,Dg,fg,d,Jp,Gte],[0,0,0,0,1,0,1,0,()=>Kj,[()=>WN,{[_]:pg}],[2,{[h]:`DryRun`,[_]:m}],[0,{[h]:`InstanceTenancy`,[_]:Kx}],[2,{[h]:`AmazonProvidedIpv6CidrBlock`,[_]:j_}]]],ZD=[3,v,Uo,0,[a_],[[()=>Hj,{[h]:`Vpc`,[_]:FE}]]],QD=[3,v,Do,0,[Oa],[0],1],$D=[3,v,ss,0,[zc,Wc,Uc],[[1,{[h]:`DefaultTcpEstablishedTimeout`,[_]:cy}],[1,{[h]:`DefaultUdpTimeout`,[_]:py}],[1,{[h]:`DefaultUdpStreamTimeout`,[_]:fy}]]],eO=[3,v,gs,0,[Zd,d],[[0,{[h]:`InternetGatewayId`,[_]:rx}],[2,{[h]:`DryRun`,[_]:m}]],1],tO=[3,v,Bs,0,[lm,um,d],[0,0,[2,{[h]:`DryRun`,[_]:m}]]],nO=[3,v,Vs,0,[Sh,um],[[2,{[h]:`Return`,[_]:dw}],[0,{[h]:`KeyPairId`,[_]:nS}]]],rO=[3,v,Ys,0,[Rm,d],[[0,{[_]:Rm}],2],1],iO=[3,v,Xs,0,[Rm],[[0,{[h]:`NatGatewayId`,[_]:ZS}]]],aO=[3,v,ic,0,[Qu,d],[[0,{[h]:`GroupName`,[_]:xb}],[2,{[h]:`DryRun`,[_]:m}]],1],oO=[3,v,uc,0,[Oh,cc,d,os,ms],[[0,{[h]:`RouteTableId`,[_]:Aw}],0,[2,{[h]:`DryRun`,[_]:m}],[0,{[h]:`DestinationCidrBlock`,[_]:Kv}],[0,{[h]:`DestinationIpv6CidrBlock`,[_]:$v}]],1],sO=[3,v,mc,0,[Oh,d],[[0,{[h]:`RouteTableId`,[_]:Aw}],[2,{[h]:`DryRun`,[_]:m}]],1],cO=[3,v,wc,0,[Ju,Qu,d],[0,0,[2,{[h]:`DryRun`,[_]:m}]]],lO=[3,v,Tc,0,[Sh,Ju],[[2,{[h]:`Return`,[_]:dw}],[0,{[h]:`GroupId`,[_]:yb}]]],uO=[3,v,kc,0,[Hh,d],[0,[2,{[h]:`DryRun`,[_]:m}]],1],dO=[3,v,Ac,0,[Uh,d],[0,[2,{[h]:`DryRun`,[_]:m}]],1],fO=[3,v,Kc,0,[Ng,d],[0,[2,{[h]:`DryRun`,[_]:m}]],1],pO=[3,v,qc,0,[kg,d],[0,[2,{[h]:`DryRun`,[_]:m}]],1],mO=[3,v,Yo,0,[Aie,d,Mu,Ui],[[()=>xN,{[_]:dh}],[2,{[h]:`DryRun`,[_]:m}],[()=>vM,{[_]:Nu}],[()=>Qj,{[_]:Hi}]]],hO=[3,v,Xo,0,[yne],[[()=>Zj,{[h]:`AddressesSet`,[_]:B_}]]],gO=[3,v,ts,0,[g_,p_,wte,d,Mu],[[()=>aP,{[_]:m_}],[()=>iP,{[_]:d_}],2,[2,{[h]:`DryRun`,[_]:m}],[()=>vM,{[_]:Nu}]]],_O=[3,v,ns,0,[vne],[[()=>rM,{[h]:`AvailabilityZoneInfo`,[_]:q_}]]],vO=[3,v,ws,0,[Bte,Mu,Em,p],[[()=>eM,{[_]:Wi}],[()=>vM,{[_]:Nu}],1,0]],yO=[3,v,Ts,0,[lf,p],[[()=>wM,{[h]:`IamInstanceProfileAssociationSet`,[_]:cx}],[0,{[h]:`NextToken`,[_]:dC}]]],bO=[3,v,ks,0,[mu,xf,uie,zd,Ud,Em,p,d,Mu],[[()=>_M,{[_]:ul}],[()=>TM,{[_]:bf}],[()=>pN,{[_]:$m}],2,2,1,0,[2,{[h]:`DryRun`,[_]:m}],[()=>vM,{[_]:Nu}]]],xO=[3,v,As,0,[p,tm],[[0,{[h]:`NextToken`,[_]:dC}],[()=>EM,{[h]:`ImagesSet`,[_]:Fx}]]],SO=[3,v,js,0,[Sf,Lf,d,Mu,p,Em],[[()=>jM,{[_]:f}],2,[2,{[h]:`DryRun`,[_]:m}],[()=>vM,{[_]:Nu}],[0,{[h]:`NextToken`,[_]:dC}],[1,{[h]:`MaxResults`,[_]:jS}]]],CO=[3,v,Ms,0,[p,Hae],[[0,{[h]:`NextToken`,[_]:dC}],[()=>TN,{[h]:`ReservationSet`,[_]:Dw}]]],wO=[3,v,Ns,0,[d,Yp,Mu,Em,p,Zp],[2,[64,{[_]:Wp}],[()=>vM,{[_]:Nu}],1,0,2]],TO=[3,v,Ps,0,[Yp,p],[[()=>WM,{[h]:`InstanceTypeSet`,[_]:Ux}],[0,{[h]:`NextToken`,[_]:dC}]]],EO=[3,v,_s,0,[p,Em,d,$d,Mu],[0,1,[2,{[h]:`DryRun`,[_]:m}],[()=>KM,{[h]:`InternetGatewayId`,[_]:rx}],[()=>vM,{[_]:Nu}]]],DO=[3,v,vs,0,[tf,p],[[()=>qM,{[h]:`InternetGatewaySet`,[_]:ix}],[0,{[h]:`NextToken`,[_]:dC}]]],OO=[3,v,Hs,0,[Mne,Fne,sp,d,Mu],[[()=>eN,{[_]:lm}],[()=>tN,{[_]:um}],2,[2,{[h]:`DryRun`,[_]:m}],[()=>vM,{[_]:Nu}]]],kO=[3,v,Us,0,[Nne],[[()=>nN,{[h]:`KeySet`,[_]:rS}]]],AO=[3,v,Zs,0,[d,Nu,Em,Gre,p],[2,[()=>vM,0],1,[()=>cN,{[_]:Rm}],0]],jO=[3,v,Qs,0,[qre,p],[[()=>lN,{[h]:`NatGatewaySet`,[_]:QS}],[0,{[h]:`NextToken`,[_]:dC}]]],MO=[3,v,ac,0,[Yu,d,ed,Mu],[[()=>mN,{[_]:Ju}],[2,{[h]:`DryRun`,[_]:m}],[64,{[h]:`GroupName`,[_]:xb}],[()=>vM,{[_]:Nu}]]],NO=[3,v,oc,0,[Sie],[[()=>hN,{[h]:`PlacementGroupSet`,[_]:zC}]]],PO=[3,v,dc,0,[vae,Qte,d,Mu],[[()=>wN,{[_]:Eh}],2,[2,{[h]:`DryRun`,[_]:m}],[()=>vM,{[_]:Nu}]]],FO=[3,v,fc,0,[zae],[[()=>CN,{[h]:`RegionInfo`,[_]:xw}]]],IO=[3,v,hc,0,[p,Em,d,Nae,Mu],[0,1,[2,{[h]:`DryRun`,[_]:m}],[()=>AN,{[_]:Oh}],[()=>vM,{[_]:Nu}]]],LO=[3,v,gc,0,[Lae,p],[[()=>jN,{[h]:`RouteTableSet`,[_]:jw}],[0,{[h]:`NextToken`,[_]:dC}]]],RO=[3,v,Ec,0,[Yu,ed,p,Em,d,Mu],[[()=>SM,{[_]:Ju}],[()=>CM,{[_]:Qu}],0,1,[2,{[h]:`DryRun`,[_]:m}],[()=>vM,{[_]:Nu}]]],zO=[3,v,Dc,0,[p,Ih],[[0,{[h]:`NextToken`,[_]:dC}],[()=>NN,{[h]:`SecurityGroupInfo`,[_]:qw}]]],BO=[3,v,jc,0,[Em,p,tie,Yie,Ooe,d,Mu],[1,0,[()=>pN,{[_]:$m}],[64,{[_]:Xie}],[()=>LN,{[_]:Hh}],[2,{[h]:`DryRun`,[_]:m}],[()=>vM,{[_]:Nu}]]],VO=[3,v,Mc,0,[p,ese],[[0,{[h]:`NextToken`,[_]:dC}],[()=>RN,{[h]:`SnapshotSet`,[_]:CT}]]],HO=[3,v,Nc,0,[Mu,doe,p,Em,d],[[()=>vM,{[_]:Nu}],[()=>zN,{[_]:Uh}],0,1,[2,{[h]:`DryRun`,[_]:m}]]],UO=[3,v,Pc,0,[p,nse],[[0,{[h]:`NextToken`,[_]:dC}],[()=>VN,{[h]:`SubnetSet`,[_]:wT}]]],WO=[3,v,Jc,0,[Pg,Lf,d,Mu,p,Em],[[()=>ZN,{[_]:Ng}],2,[2,{[h]:`DryRun`,[_]:m}],[()=>vM,{[_]:Nu}],[0,{[h]:`NextToken`,[_]:dC}],[1,{[h]:`MaxResults`,[_]:jS}]]],GO=[3,v,Yc,0,[p,r_],[[0,{[h]:`NextToken`,[_]:dC}],[()=>QN,{[h]:`VolumeSet`,[_]:OE}]]],KO=[3,v,Xc,0,[Mu,Fg,p,Em,d],[[()=>vM,{[_]:Nu}],[()=>eP,{[_]:kg}],0,1,[2,{[h]:`DryRun`,[_]:m}]]],qO=[3,v,Zc,0,[p,o_],[[0,{[h]:`NextToken`,[_]:dC}],[()=>nP,{[h]:`VpcSet`,[_]:AE}]]],JO=[3,v,ys,0,[Zd,kg,d],[[0,{[h]:`InternetGatewayId`,[_]:rx}],[0,{[h]:`VpcId`,[_]:vE}],[2,{[h]:`DryRun`,[_]:m}]],2],YO=[3,v,Qc,0,[Ng,al,yu,f,d],[0,0,2,0,[2,{[h]:`DryRun`,[_]:m}]],1],XO=[3,v,Zo,0,[Wi,dh,d],[0,0,[2,{[h]:`DryRun`,[_]:m}]]],ZO=[3,v,Es,0,[Wi],[0],1],QO=[3,v,Ds,0,[sf],[[()=>kk,{[h]:`IamInstanceProfileAssociation`,[_]:sx}]]],$O=[3,v,_c,0,[Wi,d],[[0,{[h]:`AssociationId`,[_]:T_}],[2,{[h]:`DryRun`,[_]:m}]],1],ek=[3,v,Rs,0,[hoe,Jo,vg],[[1,{[h]:`SizeInGB`,[_]:$w}],[1,{[h]:`Count`,[_]:Wv}],[0,{[h]:`Type`,[_]:aE}]]],tk=[3,v,cl,0,[nc,am,Hh,Yg,Xg,cm,gg,Jm,Qi,_u,Ag,ta,dl],[[2,{[h]:`DeleteOnTermination`,[_]:iy}],[1,{[h]:`Iops`,[_]:Yx}],[0,{[h]:`SnapshotId`,[_]:cT}],[1,{[h]:`VolumeSize`,[_]:kE}],[0,{[h]:`VolumeType`,[_]:jE}],[0,{[h]:`KmsKeyId`,[_]:$x}],[1,{[h]:`Throughput`,[_]:rE}],[0,{[h]:`OutpostArn`,[_]:mC}],[0,{[h]:`AvailabilityZone`,[_]:G_}],[2,{[h]:`Encrypted`,[_]:ib}],1,0,1]],nk=[3,v,pl,0,[dl,ca,va,fa,vm,Om,bm],[[1,{[h]:`EbsCardIndex`,[_]:yy}],[1,{[h]:`BaselineBandwidthInMbps`,[_]:nv}],[1,{[h]:`BaselineThroughputInMBps`,[_]:lv}],[1,{[h]:`BaselineIops`,[_]:iv}],[1,{[h]:`MaximumBandwidthInMbps`,[_]:_S}],[1,{[h]:`MaximumThroughputInMBps`,[_]:FS}],[1,{[h]:`MaximumIops`,[_]:wS}]]],rk=[3,v,Bl,0,[Yl,du,Wl,Gm,lre,Hte,ure,ml],[[0,{[h]:`EbsOptimizedSupport`,[_]:Hy}],[0,{[h]:`EncryptionSupport`,[_]:$y}],[()=>ok,{[h]:`EbsOptimizedInfo`,[_]:zy}],[0,{[h]:`NvmeSupport`,[_]:cC}],[1,{[h]:`MaximumEbsAttachments`,[_]:yS}],[0,{[h]:`AttachmentLimitType`,[_]:O_}],[1,{[h]:`MaximumEbsCards`,[_]:bS}],[()=>fM,{[h]:`EbsCardSet`,[_]:by}]]],ik=[3,v,Ll,0,[Zi,nc,ig,Ng,qi,Hg,Qm,dl],[[4,{[h]:`AttachTime`,[_]:W_}],[2,{[h]:`DeleteOnTermination`,[_]:iy}],[0,{[h]:`Status`,[_]:FT}],[0,{[h]:`VolumeId`,[_]:bE}],[0,{[h]:`AssociatedResource`,[_]:F_}],[0,{[h]:`VolumeOwnerId`,[_]:wE}],[()=>GA,{[h]:`Operator`,[_]:wC}],[1,{[h]:`EbsCardIndex`,[_]:yy}]]],ak=[3,v,Rl,0,[Ng,nc],[[0,{[h]:`VolumeId`,[_]:bE}],[2,{[h]:`DeleteOnTermination`,[_]:iy}]]],ok=[3,v,Wl,0,[ca,va,fa,vm,Om,bm],[[1,{[h]:`BaselineBandwidthInMbps`,[_]:nv}],[1,{[h]:`BaselineThroughputInMBps`,[_]:lv}],[1,{[h]:`BaselineIops`,[_]:iv}],[1,{[h]:`MaximumBandwidthInMbps`,[_]:_S}],[1,{[h]:`MaximumThroughputInMBps`,[_]:FS}],[1,{[h]:`MaximumIops`,[_]:wS}]]],sk=[3,v,Vl,0,[dre],[[1,{[h]:`MaximumEfaInterfaces`,[_]:xS}]]],ck=[3,v,yl,0,[Tl,bl,Sl,Cl],[[0,{[h]:`ElasticGpuId`,[_]:Oy}],[0,{[h]:`ElasticGpuAssociationId`,[_]:wy}],[0,{[h]:`ElasticGpuAssociationState`,[_]:Ty}],[0,{[h]:`ElasticGpuAssociationTime`,[_]:Dy}]]],lk=[3,v,El,0,[vg],[0],1],uk=[3,v,Ol,0,[vg,Jo],[0,1],1],dk=[3,v,kl,0,[Pl,Al,Ml,Nl],[[0,{[h]:`ElasticInferenceAcceleratorArn`,[_]:ky}],[0,{[h]:`ElasticInferenceAcceleratorAssociationId`,[_]:Ay}],[0,{[h]:`ElasticInferenceAcceleratorAssociationState`,[_]:jy}],[4,{[h]:`ElasticInferenceAcceleratorAssociationTime`,[_]:Ny}]]],fk=[3,v,au,0,[ru,cu],[2,()=>pk]],pk=[3,v,lu,0,[su],[2]],mk=[3,v,Xl,0,[gu],[[2,{[h]:`Enabled`,[_]:rb}]]],hk=[3,v,Jl,0,[gu],[2]],gk=[3,v,Nu,0,[Nm,t_],[0,[()=>JN,{[_]:Tg}]]],_k=[3,v,xu,0,[Nm,km,Jo,xm],[[0,{[h]:`Name`,[_]:HS}],[0,{[h]:`Manufacturer`,[_]:LS}],[1,{[h]:`Count`,[_]:Wv}],[()=>vk,{[h]:`MemoryInfo`,[_]:TS}]]],vk=[3,v,Cu,0,[zh],[[1,{[h]:`SizeInMiB`,[_]:rT}]]],yk=[3,v,Tu,0,[Pu,rse],[[()=>yM,{[h]:`Fpgas`,[_]:mb}],[1,{[h]:`TotalFpgaMemoryInMiB`,[_]:BT}]]],bk=[3,v,Ru,0,[f,ere,d],[0,2,[2,{[h]:`DryRun`,[_]:m}]],1],xk=[3,v,zu,0,[f,_g,lie],[[0,{[h]:`InstanceId`,[_]:ax}],[4,{[h]:`Timestamp`,[_]:iE}],[0,{[h]:`Output`,[_]:TC}]]],Sk=[3,v,Vu,0,[Nm,km,Jo,Une,nd,u_,xm],[[0,{[h]:`Name`,[_]:HS}],[0,{[h]:`Manufacturer`,[_]:LS}],[1,{[h]:`Count`,[_]:Wv}],[1,{[h]:`LogicalGpuCount`,[_]:sS}],[1,{[h]:`GpuPartitionSize`,[_]:Cb}],[()=>rP,{[h]:`WorkloadSet`,[_]:RE}],[()=>Ck,{[h]:`MemoryInfo`,[_]:TS}]]],Ck=[3,v,Uu,0,[zh],[[1,{[h]:`SizeInMiB`,[_]:rT}]]],wk=[3,v,qu,0,[id,ise],[[()=>bM,{[h]:`Gpus`,[_]:Eb}],[1,{[h]:`TotalGpuMemoryInMiB`,[_]:HT}]]],Tk=[3,v,Xu,0,[Ju,Qu],[[0,{[h]:`GroupId`,[_]:yb}],[0,{[h]:`GroupName`,[_]:xb}]]],Ek=[3,v,cd,0,[qo],[[2,{[h]:`Configured`,[_]:Uv}]]],Dk=[3,v,ld,0,[qo],[2]],Ok=[3,v,of,0,[ra,vd],[[0,{[h]:`Arn`,[_]:X_}],[0,{[h]:`Id`,[_]:zb}]]],kk=[3,v,sf,0,[Wi,f,of,rg,_g],[[0,{[h]:`AssociationId`,[_]:T_}],[0,{[h]:`InstanceId`,[_]:ax}],[()=>Ok,{[h]:`IamInstanceProfile`,[_]:ox}],[0,{[h]:`State`,[_]:PT}],[4,{[h]:`Timestamp`,[_]:iE}]]],Ak=[3,v,mf,0,[ra,Nm],[[0,{[h]:`Arn`,[_]:X_}],[0,{[h]:`Name`,[_]:HS}]]],jk=[3,v,nm,0,[ch,Sg,ua,il,fu,_d,Xf,Nm,Ch,wh,qh,Xh,sg,$g,pa,mg,Vc,Bp,_oe,lc,Gne,Od,Rh,Bh,ju,Qp,bf,Ef,rg,Ym,Aa,Kie,rh,ia,qp,sm,Th,vh],[[0,{[h]:`PlatformDetails`,[_]:IC}],[0,{[h]:`UsageOperation`,[_]:lE}],[()=>sM,{[h]:`BlockDeviceMapping`,[_]:rv}],[0,{[h]:`Description`,[_]:hy}],[2,{[h]:`EnaSupport`,[_]:eb}],[0,{[h]:`Hypervisor`,[_]:Ob}],[0,{[h]:`ImageOwnerAlias`,[_]:hx}],[0,{[h]:`Name`,[_]:HS}],[0,{[h]:`RootDeviceName`,[_]:fw}],[0,{[h]:`RootDeviceType`,[_]:pw}],[0,{[h]:`SriovNetSupport`,[_]:gT}],[()=>Dj,{[h]:`StateReason`,[_]:yT}],[()=>UN,{[h]:`TagSet`,[_]:XT}],[0,{[h]:`VirtualizationType`,[_]:NE}],[0,{[h]:`BootMode`,[_]:av}],[0,{[h]:`TpmSupport`,[_]:$T}],[0,{[h]:`DeprecationTime`,[_]:uy}],[0,{[h]:`ImdsSupport`,[_]:Lx}],[0,{[h]:`SourceInstanceId`,[_]:eT}],[0,{[h]:`DeregistrationProtection`,[_]:oy}],[0,{[h]:`LastLaunchedTime`,[_]:uS}],[2,{[h]:`ImageAllowed`,[_]:qb}],[0,{[h]:`SourceImageId`,[_]:nT}],[0,{[h]:`SourceImageRegion`,[_]:iT}],[2,{[h]:`FreeTierEligible`,[_]:fb}],[()=>DM,{[h]:`ImageWatermarkSet`,[_]:Jx}],[0,{[h]:`ImageId`,[_]:ux}],[0,{[h]:`ImageLocation`,[_]:dx}],[0,{[h]:`ImageState`,[_]:Ix}],[0,{[h]:`ImageOwnerId`,[_]:gx}],[0,{[h]:`CreationDate`,[_]:vv}],[2,{[h]:`IsPublic`,[_]:kx}],[()=>yN,{[h]:`ProductCodes`,[_]:kC}],[0,{[h]:`Architecture`,[_]:Z_}],[0,{[h]:`ImageType`,[_]:Gx}],[0,{[h]:`KernelId`,[_]:Qx}],[0,{[h]:`RamdiskId`,[_]:bw}],[0,{[h]:`Platform`,[_]:ow}]]],Mk=[3,v,em,0,[c_,Bh,Rh,moe,s_],[[0,{[h]:`WatermarkKey`,[_]:LE}],[0,{[h]:`SourceImageRegion`,[_]:iT}],[0,{[h]:`SourceImageId`,[_]:nT}],[4,{[h]:`SourceImageCreationTime`,[_]:Qw}],[4,{[h]:`WatermarkCreationTime`,[_]:IE}]]],Nk=[3,v,wf,0,[lm,Mie,fg,d],[[0,{[h]:`KeyName`,[_]:tS}],[21,{[h]:`PublicKeyMaterial`,[_]:JC}],[()=>WN,{[_]:pg}],[2,{[h]:`DryRun`,[_]:m}]],2],Pk=[3,v,Tf,0,[om,lm,um,sg],[[0,{[h]:`KeyFingerprint`,[_]:Zx}],[0,{[h]:`KeyName`,[_]:tS}],[0,{[h]:`KeyPairId`,[_]:nS}],[()=>UN,{[h]:`TagSet`,[_]:XT}]]],Fk=[3,v,wd,0,[na,ose],[[()=>OM,{[h]:`Accelerators`,[_]:J_}],[1,{[h]:`TotalInferenceMemoryInMiB`,[_]:UT}]]],Ik=[3,v,Bd,0,[Jo,Nm,km,xm],[[1,{[h]:`Count`,[_]:Wv}],[0,{[h]:`Name`,[_]:HS}],[0,{[h]:`Manufacturer`,[_]:LS}],[()=>Lk,{[h]:`MemoryInfo`,[_]:TS}]]],Lk=[3,v,Hd,0,[zh],[[1,{[h]:`SizeInMiB`,[_]:rT}]]],Rk=[3,v,rm,0,[ia,ua,No,Ul,fu,_d,of,Of,wl,Fl,Bm,Jm,Ch,wh,Ih,Ah,voe,qh,Xh,sg,$g,Za,wa,io,uo,cd,nre,Cm,Xl,pa,ch,Sg,Dse,ah,Ad,mg,wm,Pa,Um,Qm,Vh,f,bf,rg,ih,sh,qoe,lm,Vte,rh,Wp,$ne,yh,sm,Th,vh,Mm,Uh,kg,fh,Eie],[[0,{[h]:`Architecture`,[_]:Z_}],[()=>kM,{[h]:`BlockDeviceMapping`,[_]:rv}],[0,{[h]:`ClientToken`,[_]:Lv}],[2,{[h]:`EbsOptimized`,[_]:Ry}],[2,{[h]:`EnaSupport`,[_]:eb}],[0,{[h]:`Hypervisor`,[_]:Ob}],[()=>Ok,{[h]:`IamInstanceProfile`,[_]:ox}],[0,{[h]:`InstanceLifecycle`,[_]:fx}],[()=>pM,{[h]:`ElasticGpuAssociationSet`,[_]:Ey}],[()=>hM,{[h]:`ElasticInferenceAcceleratorAssociationSet`,[_]:My}],[()=>IM,{[h]:`NetworkInterfaceSet`,[_]:tC}],[0,{[h]:`OutpostArn`,[_]:mC}],[0,{[h]:`RootDeviceName`,[_]:fw}],[0,{[h]:`RootDeviceType`,[_]:pw}],[()=>xM,{[h]:`GroupSet`,[_]:Tb}],[2,{[h]:`SourceDestCheck`,[_]:Uw}],[0,{[h]:`SpotInstanceRequestId`,[_]:aT}],[0,{[h]:`SriovNetSupport`,[_]:gT}],[()=>Dj,{[h]:`StateReason`,[_]:yT}],[()=>UN,{[h]:`TagSet`,[_]:XT}],[0,{[h]:`VirtualizationType`,[_]:NE}],[()=>kD,{[h]:`CpuOptions`,[_]:Ov}],[0,{[h]:`CapacityBlockId`,[_]:mv}],[0,{[h]:`CapacityReservationId`,[_]:jv}],[()=>SD,{[h]:`CapacityReservationSpecification`,[_]:Pv}],[()=>Ek,{[h]:`HibernationOptions`,[_]:Mb}],[()=>rN,{[h]:`LicenseSet`,[_]:dS}],[()=>Xk,{[h]:`MetadataOptions`,[_]:OS}],[()=>mk,{[h]:`EnclaveOptions`,[_]:Uy}],[0,{[h]:`BootMode`,[_]:av}],[0,{[h]:`PlatformDetails`,[_]:IC}],[0,{[h]:`UsageOperation`,[_]:lE}],[4,{[h]:`UsageOperationUpdateTime`,[_]:uE}],[()=>QA,{[h]:`PrivateDnsNameOptions`,[_]:MC}],[0,{[h]:`Ipv6Address`,[_]:Yb}],[0,{[h]:`TpmSupport`,[_]:$T}],[()=>Kk,{[h]:`MaintenanceOptions`,[_]:kS}],[0,{[h]:`CurrentInstanceBootMode`,[_]:Sv}],[()=>tA,{[h]:`NetworkPerformanceOptions`,[_]:aC}],[()=>GA,{[h]:`Operator`,[_]:wC}],[()=>zM,{[h]:`SecondaryInterfaceSet`,[_]:sT}],[0,{[h]:`InstanceId`,[_]:ax}],[0,{[h]:`ImageId`,[_]:ux}],[()=>lA,{[h]:`InstanceState`,[_]:zx}],[0,{[h]:`PrivateDnsName`,[_]:PC}],[0,{[h]:`DnsName`,[_]:ny}],[0,{[h]:`Reason`,[_]:Iw}],[0,{[h]:`KeyName`,[_]:tS}],[1,{[h]:`AmiLaunchIndex`,[_]:D_}],[()=>yN,{[h]:`ProductCodes`,[_]:kC}],[0,{[h]:`InstanceType`,[_]:Hx}],[4,{[h]:`LaunchTime`,[_]:fS}],[()=>KA,{[h]:`Placement`,[_]:sw}],[0,{[h]:`KernelId`,[_]:Qx}],[0,{[h]:`RamdiskId`,[_]:bw}],[0,{[h]:`Platform`,[_]:ow}],[()=>NA,{[h]:`Monitoring`,[_]:BS}],[0,{[h]:`SubnetId`,[_]:lT}],[0,{[h]:`VpcId`,[_]:vE}],[0,{[h]:`PrivateIpAddress`,[_]:UC}],[0,{[h]:`IpAddress`,[_]:Jb}]]],zk=[3,v,Sd,0,[ru,cu],[[2,{[h]:`EnaSrdEnabled`,[_]:qy}],[()=>Bk,{[h]:`EnaSrdUdpSpecification`,[_]:Zy}]]],Bk=[3,v,Cd,0,[su],[[2,{[h]:`EnaSrdUdpEnabled`,[_]:Xy}]]],Vk=[3,v,jd,0,[Ks,hu],[[0,{[h]:`DeviceName`,[_]:ey}],[()=>ik,{[h]:`Ebs`,[_]:nb}]]],Hk=[3,v,Nd,0,[Ks,hu,Vg,Im],[[0,{[h]:`DeviceName`,[_]:ey}],[()=>ak,{[h]:`Ebs`,[_]:nb}],[0,{[h]:`VirtualName`,[_]:CE}],[0,{[h]:`NoDevice`,[_]:KS}]]],Uk=[3,v,hf,0,[bp],[[0,{[h]:`Ipv4Prefix`,[_]:Ex}]]],Wk=[3,v,nf,0,[Ad,op],[[0,{[h]:`Ipv6Address`,[_]:Yb}],[2,{[h]:`IsPrimaryIpv6`,[_]:xx}]]],Gk=[3,v,gf,0,[_p],[[0,{[h]:`Ipv6Prefix`,[_]:Ox}]]],Kk=[3,v,jf,0,[Ji,gae],[[0,{[h]:`AutoRecovery`,[_]:I_}],[0,{[h]:`RebootMigration`,[_]:ww}]]],qk=[3,v,Mf,0,[Ji],[0]],Jk=[3,v,Nf,0,[Sre,Boe],[0,()=>wj]],Yk=[3,v,Pf,0,[md,dd,od,ud,Rf],[0,1,0,0,0]],Xk=[3,v,Ff,0,[rg,md,dd,od,ud,Rf],[[0,{[h]:`State`,[_]:PT}],[0,{[h]:`HttpTokens`,[_]:Lb}],[1,{[h]:`HttpPutResponseHopLimit`,[_]:Pb}],[0,{[h]:`HttpEndpoint`,[_]:Ab}],[0,{[h]:`HttpProtocolIpv6`,[_]:Nb}],[0,{[h]:`InstanceMetadataTags`,[_]:px}]]],Zk=[3,v,Bf,0,[aa,oa,il,Fu,yd,_m,zm,Ym,ih,fh,ph,Ah,ig,Uh,kg,Xp,yp,pp,Po,Qm],[[()=>Qk,{[h]:`Association`,[_]:Q_}],[()=>$k,{[h]:`Attachment`,[_]:$_}],[0,{[h]:`Description`,[_]:hy}],[()=>xM,{[h]:`GroupSet`,[_]:Tb}],[()=>NM,{[h]:`Ipv6AddressesSet`,[_]:Kb}],[0,{[h]:`MacAddress`,[_]:gS}],[0,{[h]:`NetworkInterfaceId`,[_]:$S}],[0,{[h]:`OwnerId`,[_]:gC}],[0,{[h]:`PrivateDnsName`,[_]:PC}],[0,{[h]:`PrivateIpAddress`,[_]:UC}],[()=>RM,{[h]:`PrivateIpAddressesSet`,[_]:VC}],[2,{[h]:`SourceDestCheck`,[_]:Uw}],[0,{[h]:`Status`,[_]:FT}],[0,{[h]:`SubnetId`,[_]:lT}],[0,{[h]:`VpcId`,[_]:vE}],[0,{[h]:`InterfaceType`,[_]:qx}],[()=>MM,{[h]:`Ipv4PrefixSet`,[_]:Sx}],[()=>PM,{[h]:`Ipv6PrefixSet`,[_]:Cx}],[()=>ED,{[h]:`ConnectionTrackingConfiguration`,[_]:Rv}],[()=>GA,{[h]:`Operator`,[_]:wC}]]],Qk=[3,v,Vf,0,[Na,Qa,Zf,sh,dh],[[0,{[h]:`CarrierIp`,[_]:xv}],[0,{[h]:`CustomerOwnedIp`,[_]:kv}],[0,{[h]:`IpOwnerId`,[_]:vx}],[0,{[h]:`PublicDnsName`,[_]:FC}],[0,{[h]:`PublicIp`,[_]:BC}]]],$k=[3,v,Hf,0,[Zi,Gi,nc,ps,ig,Fm,iu,Ql],[[4,{[h]:`AttachTime`,[_]:W_}],[0,{[h]:`AttachmentId`,[_]:E_}],[2,{[h]:`DeleteOnTermination`,[_]:iy}],[1,{[h]:`DeviceIndex`,[_]:Qv}],[0,{[h]:`Status`,[_]:FT}],[1,{[h]:`NetworkCardIndex`,[_]:GS}],[()=>zk,{[h]:`EnaSrdSpecification`,[_]:Jy}],[1,{[h]:`EnaQueueCount`,[_]:Wy}]]],eA=[3,v,Wf,0,[Wte,nc,il,ps,Fu,xd,yd,zm,fh,ph,Yh,Uh,Ate,Xp,Fm,yp,tp,pp,ep,Oie,iu,Fo,Ql],[[2,{[h]:`AssociatePublicIpAddress`,[_]:A_}],[2,{[h]:`DeleteOnTermination`,[_]:iy}],[0,{[h]:`Description`,[_]:hy}],[1,{[h]:`DeviceIndex`,[_]:Qv}],[()=>MN,{[_]:Mh}],[1,{[h]:`Ipv6AddressCount`,[_]:Vb}],[()=>NM,{[h]:`Ipv6Addresses`,[_]:Kb}],[0,{[h]:`NetworkInterfaceId`,[_]:$S}],[0,{[h]:`PrivateIpAddress`,[_]:UC}],[()=>vN,{[h]:`PrivateIpAddresses`,[_]:VC}],[1,{[h]:`SecondaryPrivateIpAddressCount`,[_]:_T}],[0,{[h]:`SubnetId`,[_]:lT}],2,0,1,[()=>ZM,{[_]:bp}],1,[()=>QM,{[_]:_p}],1,2,()=>fk,()=>TD,1]],tA=[3,v,Jf,0,[ya],[[0,{[h]:`BandwidthWeighting`,[_]:uv}]]],nA=[3,v,Yf,0,[ya],[0]],rA=[3,v,ip,0,[aa,bh,ih,fh],[[()=>Qk,{[h]:`Association`,[_]:Q_}],[2,{[h]:`Primary`,[_]:cw}],[0,{[h]:`PrivateDnsName`,[_]:PC}],[0,{[h]:`PrivateIpAddress`,[_]:UC}]]],iA=[3,v,Lp,0,[oa,_m,goe,Ym,ph,Ah,ig,$h,Roe,Xp],[[()=>aA,{[h]:`Attachment`,[_]:$_}],[0,{[h]:`MacAddress`,[_]:gS}],[0,{[h]:`SecondaryInterfaceId`,[_]:tT}],[0,{[h]:`OwnerId`,[_]:gC}],[()=>BM,{[h]:`PrivateIpAddressSet`,[_]:HC}],[2,{[h]:`SourceDestCheck`,[_]:Uw}],[0,{[h]:`Status`,[_]:FT}],[0,{[h]:`SecondarySubnetId`,[_]:ST}],[0,{[h]:`SecondaryNetworkId`,[_]:mT}],[0,{[h]:`InterfaceType`,[_]:qx}]]],aA=[3,v,kp,0,[Zi,Gi,nc,ps,ig,Fm],[[4,{[h]:`AttachTime`,[_]:W_}],[0,{[h]:`AttachmentId`,[_]:E_}],[2,{[h]:`DeleteOnTermination`,[_]:iy}],[1,{[h]:`DeviceIndex`,[_]:Qv}],[0,{[h]:`Status`,[_]:FT}],[1,{[h]:`NetworkCardIndex`,[_]:GS}]]],oA=[3,v,jp,0,[fh],[[0,{[h]:`PrivateIpAddress`,[_]:UC}]]],sA=[3,v,Pp,0,[fh],[0],1],cA=[3,v,Ip,0,[nc,ps,ph,Cie,$h,Xp,Fm],[2,1,[()=>VM,{[_]:fh}],1,0,0,1]],lA=[3,v,Vp,0,[Ko,Nm],[[1,{[h]:`Code`,[_]:Hv}],[0,{[h]:`Name`,[_]:HS}]]],uA=[3,v,Dp,0,[f,Mo,Lie],[[0,{[h]:`InstanceId`,[_]:ax}],[()=>lA,{[h]:`CurrentState`,[_]:Iv}],[()=>lA,{[h]:`PreviousState`,[_]:ew}]]],dA=[3,v,Rp,0,[gse,ol,Gm,du],[[1,{[h]:`TotalSizeInGB`,[_]:ZT}],[()=>dM,{[h]:`Disks`,[_]:_y}],[0,{[h]:`NvmeSupport`,[_]:cC}],[0,{[h]:`EncryptionSupport`,[_]:$y}]]],fA=[3,v,Kp,0,[Wp,Ma,ju,Yoe,Uoe,Qoe,ha,_d,hh,Eg,xm,zp,Rp,Bl,Vm,qu,Tu,uh,wd,pd,_a,fs,qte,Zae,Lre,Xre,Km,gm,Hm,Iie,hae,Coe],[[0,{[h]:`InstanceType`,[_]:Hx}],[2,{[h]:`CurrentGeneration`,[_]:bv}],[2,{[h]:`FreeTierEligible`,[_]:fb}],[()=>KN,{[h]:`SupportedUsageClasses`,[_]:kT}],[()=>DN,{[h]:`SupportedRootDeviceTypes`,[_]:vT}],[()=>YN,{[h]:`SupportedVirtualizationTypes`,[_]:jT}],[2,{[h]:`BareMetal`,[_]:ov}],[0,{[h]:`Hypervisor`,[_]:Ob}],[()=>ej,{[h]:`ProcessorInfo`,[_]:GC}],[()=>Rj,{[h]:`VCpuInfo`,[_]:mE}],[()=>OA,{[h]:`MemoryInfo`,[_]:TS}],[2,{[h]:`InstanceStorageSupported`,[_]:Px}],[()=>dA,{[h]:`InstanceStorageInfo`,[_]:Nx}],[()=>rk,{[h]:`EbsInfo`,[_]:Fy}],[()=>RA,{[h]:`NetworkInfo`,[_]:rC}],[()=>wk,{[h]:`GpuInfo`,[_]:vb}],[()=>yk,{[h]:`FpgaInfo`,[_]:sb}],[()=>JA,{[h]:`PlacementGroupInfo`,[_]:RC}],[()=>Fk,{[h]:`InferenceAcceleratorInfo`,[_]:Hb}],[2,{[h]:`HibernationSupported`,[_]:Ib}],[2,{[h]:`BurstablePerformanceSupported`,[_]:cv}],[2,{[h]:`DedicatedHostsSupported`,[_]:Zv}],[2,{[h]:`AutoRecoverySupported`,[_]:N_}],[()=>lM,{[h]:`SupportedBootModes`,[_]:Vw}],[0,{[h]:`NitroEnclavesSupport`,[_]:JS}],[0,{[h]:`NitroTpmSupport`,[_]:uC}],[()=>UA,{[h]:`NitroTpmInfo`,[_]:lC}],[()=>TA,{[h]:`MediaAcceleratorInfo`,[_]:hS}],[()=>HA,{[h]:`NeuronInfo`,[_]:iC}],[0,{[h]:`PhcSupport`,[_]:$C}],[0,{[h]:`RebootMigrationSupport`,[_]:Cw}],[2,{[h]:`SupportedInRegion`,[_]:oT}]]],pA=[3,v,Kd,0,[sa,Zd,Ym,sg],[[()=>GM,{[h]:`AttachmentSet`,[_]:H_}],[0,{[h]:`InternetGatewayId`,[_]:rx}],[0,{[h]:`OwnerId`,[_]:gC}],[()=>UN,{[h]:`TagSet`,[_]:XT}]]],mA=[3,v,qd,0,[rg,kg],[[0,{[h]:`State`,[_]:PT}],[0,{[h]:`VpcId`,[_]:vE}]]],hA=[3,v,hp,0,[gp,Ou,ug,wse,wp,Dne,Pie],[[0,{[h]:`IpProtocol`,[_]:wx}],[1,{[h]:`FromPort`,[_]:lb}],[1,{[h]:`ToPort`,[_]:JT}],[()=>qN,{[h]:`Groups`,[_]:Db}],[()=>XM,{[h]:`IpRanges`,[_]:jx}],[()=>$M,{[h]:`Ipv6Ranges`,[_]:Mx}],[()=>_N,{[h]:`PrefixListIds`,[_]:XC}]]],gA=[3,v,Tp,0,[il,Ba],[[0,{[h]:`Description`,[_]:hy}],[0,{[h]:`CidrIp`,[_]:Cv}]]],_A=[3,v,dp,0,[bp],[0]],vA=[3,v,fp,0,[_p],[0]],yA=[3,v,Ep,0,[il,Va],[[0,{[h]:`Description`,[_]:hy}],[0,{[h]:`CidrIpv6`,[_]:wv}]]],bA=[3,v,Rne,0,[um,sg,lm,om,Ane],[[0,{[h]:`KeyPairId`,[_]:nS}],[()=>UN,{[h]:`TagSet`,[_]:XT}],[0,{[h]:`KeyName`,[_]:tS}],[0,{[h]:`KeyFingerprint`,[_]:Zx}],[()=>YE,{[h]:`KeyMaterial`,[_]:eS}]]],xA=[3,v,Ine,0,[um,dm,sg,jie,Bo,lm,om],[[0,{[h]:`KeyPairId`,[_]:nS}],[0,{[h]:`KeyType`,[_]:iS}],[()=>UN,{[h]:`TagSet`,[_]:XT}],[0,{[h]:`PublicKey`,[_]:qC}],[4,{[h]:`CreateTime`,[_]:Vv}],[0,{[h]:`KeyName`,[_]:tS}],[0,{[h]:`KeyFingerprint`,[_]:Zx}]]],SA=[3,v,Qne,0,[Xne,Zne,n_],[0,0,0]],CA=[3,v,Vne,0,[fm],[[0,{[h]:`LicenseConfigurationArn`,[_]:oS}]]],wA=[3,v,Bne,0,[fm],[0]],TA=[3,v,gm,0,[na,pse],[[()=>aN,{[h]:`Accelerators`,[_]:J_}],[1,{[h]:`TotalMediaMemoryInMiB`,[_]:KT}]]],EA=[3,v,ore,0,[Jo,Nm,km,xm],[[1,{[h]:`Count`,[_]:Wv}],[0,{[h]:`Name`,[_]:HS}],[0,{[h]:`Manufacturer`,[_]:LS}],[()=>DA,{[h]:`MemoryInfo`,[_]:TS}]]],DA=[3,v,cre,0,[zh],[[1,{[h]:`SizeInMiB`,[_]:rT}]]],OA=[3,v,xm,0,[zh],[[1,{[h]:`SizeInMiB`,[_]:rT}]]],kA=[3,v,mre,0,[f,Ah,Xl,Qo,d,Sne,Tg,ua,$o,Wp,zne,Rae,yg,_f,Fu,Ul,qh,fu],[[0,{[h]:`InstanceId`,[_]:ax}],[()=>sD,0],()=>hk,[()=>sD,0],[2,{[h]:`DryRun`,[_]:m}],[0,{[h]:`Attribute`,[_]:ev}],[()=>qE,{[h]:`Value`,[_]:pE}],[()=>AM,{[h]:`BlockDeviceMapping`,[_]:rv}],[()=>sD,{[h]:`DisableApiTermination`,[_]:Gv}],[()=>cD,{[h]:`InstanceType`,[_]:Hx}],[()=>cD,{[h]:`Kernel`,[_]:aS}],[()=>cD,{[h]:`Ramdisk`,[_]:Fw}],[()=>vD,{[h]:`UserData`,[_]:oE}],[()=>cD,{[h]:`InstanceInitiatedShutdownBehavior`,[_]:lx}],[()=>SM,{[_]:Ju}],[()=>sD,{[h]:`EbsOptimized`,[_]:Ry}],[()=>cD,{[h]:`SriovNetSupport`,[_]:gT}],[()=>sD,{[h]:`EnaSupport`,[_]:eb}]],1],AA=[3,v,yre,0,[Uh,Bi,Tm,ym,$a,gl,gie,nu,eu,Hl,Gs],[[0,{[h]:`SubnetId`,[_]:lT}],[()=>sD,0],[()=>sD,0],[()=>sD,0],0,[()=>sD,0],0,[()=>sD,0],[()=>sD,0],1,[()=>sD,0]],1],jA=[3,v,Cre,0,[Ng,d,ng,Xg,am,gg,hm],[0,2,1,0,1,1,2],1],MA=[3,v,wre,0,[Bg],[[()=>Vj,{[h]:`VolumeModification`,[_]:SE}]]],NA=[3,v,Mm,0,[rg],[[0,{[h]:`State`,[_]:PT}]]],PA=[3,v,Lm,0,[Bo,Hc,bu,Du,Rre,Rm,th,rg,Uh,kg,sg,zo,Ki,ane,Kte,Ote,Oh],[[4,{[h]:`CreateTime`,[_]:Vv}],[4,{[h]:`DeleteTime`,[_]:dy}],[0,{[h]:`FailureCode`,[_]:ab}],[0,{[h]:`FailureMessage`,[_]:cb}],[()=>oN,{[h]:`NatGatewayAddressSet`,[_]:XS}],[0,{[h]:`NatGatewayId`,[_]:ZS}],[()=>rj,{[h]:`ProvisionedBandwidth`,[_]:DC}],[0,{[h]:`State`,[_]:PT}],[0,{[h]:`SubnetId`,[_]:lT}],[0,{[h]:`VpcId`,[_]:vE}],[()=>UN,{[h]:`TagSet`,[_]:XT}],[0,{[h]:`ConnectivityType`,[_]:Bv}],[0,{[h]:`AvailabilityMode`,[_]:k_}],[0,{[h]:`AutoScalingIps`,[_]:R_}],[0,{[h]:`AutoProvisionZones`,[_]:M_}],[()=>sN,{[h]:`AttachedApplianceSet`,[_]:v_}],[0,{[h]:`RouteTableId`,[_]:Aw}]]],FA=[3,v,Hre,0,[Hi,zm,kie,dh,Wi,xp,Du,ig,Qi,ta],[[0,{[h]:`AllocationId`,[_]:x_}],[0,{[h]:`NetworkInterfaceId`,[_]:$S}],[0,{[h]:`PrivateIp`,[_]:KC}],[0,{[h]:`PublicIp`,[_]:BC}],[0,{[h]:`AssociationId`,[_]:T_}],[2,{[h]:`IsPrimary`,[_]:Ax}],[0,{[h]:`FailureMessage`,[_]:cb}],[0,{[h]:`Status`,[_]:FT}],[0,{[h]:`AvailabilityZone`,[_]:G_}],[0,{[h]:`AvailabilityZoneId`,[_]:K_}]]],IA=[3,v,zre,0,[vg,Ete,Og,one,Dm,bu,Du],[[0,{[h]:`Type`,[_]:aE}],[0,{[h]:`ApplianceArn`,[_]:y_}],[0,{[h]:`VpcEndpointId`,[_]:_E}],[0,{[h]:`AttachmentState`,[_]:U_}],[0,{[h]:`ModificationState`,[_]:PS}],[0,{[h]:`FailureCode`,[_]:ab}],[0,{[h]:`FailureMessage`,[_]:cb}]]],LA=[3,v,jre,0,[Fm,Wm,Sm,jte,wne,die,us,fre,pre],[[1,{[h]:`NetworkCardIndex`,[_]:GS}],[0,{[h]:`NetworkPerformance`,[_]:oC}],[1,{[h]:`MaximumNetworkInterfaces`,[_]:DS}],[1,{[h]:`AdditionalFlexibleNetworkInterfaces`,[_]:b_}],[1,{[h]:`BaselineBandwidthInGbps`,[_]:tv}],[1,{[h]:`PeakBandwidthInGbps`,[_]:OC}],[1,{[h]:`DefaultEnaQueueCountPerInterface`,[_]:Yv}],[1,{[h]:`MaximumEnaQueueCount`,[_]:SS}],[1,{[h]:`MaximumEnaQueueCountPerInterface`,[_]:CS}]]],RA=[3,v,Vm,0,[Wm,Sm,_re,qs,kre,Td,Ed,Up,fu,uu,Vl,zl,ou,xa,wu,Po,zoe,xre,Dd],[[0,{[h]:`NetworkPerformance`,[_]:oC}],[1,{[h]:`MaximumNetworkInterfaces`,[_]:DS}],[1,{[h]:`MaximumNetworkCards`,[_]:ES}],[1,{[h]:`DefaultNetworkCardIndex`,[_]:ty}],[()=>uN,{[h]:`NetworkCards`,[_]:WS}],[1,{[h]:`Ipv4AddressesPerInterface`,[_]:Ub}],[1,{[h]:`Ipv6AddressesPerInterface`,[_]:Wb}],[2,{[h]:`Ipv6Supported`,[_]:Vx}],[0,{[h]:`EnaSupport`,[_]:eb}],[2,{[h]:`EfaSupported`,[_]:Qy}],[()=>sk,{[h]:`EfaInfo`,[_]:Iy}],[2,{[h]:`EncryptionInTransitSupported`,[_]:Py}],[2,{[h]:`EnaSrdSupported`,[_]:Yy}],[()=>oM,{[h]:`BandwidthWeightings`,[_]:dv}],[0,{[h]:`FlexibleEnaQueuesSupport`,[_]:ob}],[()=>$D,{[h]:`ConnectionTrackingConfiguration`,[_]:Rv}],[2,{[h]:`SecondaryNetworkSupported`,[_]:hT}],[1,{[h]:`MaximumSecondaryNetworkInterfaces`,[_]:NS}],[1,{[h]:`Ipv4AddressesPerSecondaryInterface`,[_]:Gb}]]],zA=[3,v,Mre,0,[Jo,n_],[[1,{[h]:`Count`,[_]:Wv}],[1,{[h]:`Version`,[_]:PE}]]],BA=[3,v,Nre,0,[Jo,Nm,Ua,xm],[[1,{[h]:`Count`,[_]:Wv}],[0,{[h]:`Name`,[_]:HS}],[()=>zA,{[h]:`CoreInfo`,[_]:Ev}],[()=>VA,{[h]:`MemoryInfo`,[_]:TS}]]],VA=[3,v,Fre,0,[zh],[[1,{[h]:`SizeInMiB`,[_]:rT}]]],HA=[3,v,Hm,0,[Ire,mse],[[()=>dN,{[h]:`NeuronDevices`,[_]:qS}],[1,{[h]:`TotalNeuronDeviceMemoryInMiB`,[_]:qT}]]],UA=[3,v,Km,0,[$oe],[[()=>fN,{[h]:`SupportedVersions`,[_]:MT}]]],WA=[3,v,rie,0,[eh],[0]],GA=[3,v,iie,0,[Dre,eh,ad],[[2,{[h]:`Managed`,[_]:RS}],[0,{[h]:`Principal`,[_]:EC}],[2,{[h]:`HiddenByDefault`,[_]:kb}]]],KA=[3,v,yh,0,[ta,bne,Qu,Fie,sd,Sse,eoe,fd,Ju,Qi],[[0,{[h]:`AvailabilityZoneId`,[_]:K_}],[0,{[h]:`Affinity`,[_]:Y_}],[0,{[h]:`GroupName`,[_]:xb}],[1,{[h]:`PartitionNumber`,[_]:ZC}],[0,{[h]:`HostId`,[_]:jb}],[0,{[h]:`Tenancy`,[_]:RT}],[0,{[h]:`SpreadDomain`,[_]:Ww}],[0,{[h]:`HostResourceGroupArn`,[_]:Fb}],[0,{[h]:`GroupId`,[_]:yb}],[0,{[h]:`AvailabilityZone`,[_]:G_}]]],qA=[3,v,lh,0,[Qu,rg,ag,nh,Ju,sg,Iu,Wh,mm,Qm],[[0,{[h]:`GroupName`,[_]:xb}],[0,{[h]:`State`,[_]:PT}],[0,{[h]:`Strategy`,[_]:IT}],[1,{[h]:`PartitionCount`,[_]:AC}],[0,{[h]:`GroupId`,[_]:yb}],[()=>UN,{[h]:`TagSet`,[_]:XT}],[0,{[h]:`GroupArn`,[_]:hb}],[0,{[h]:`SpreadLevel`,[_]:uT}],[0,{[h]:`LinkedGroupId`,[_]:lS}],[()=>GA,{[h]:`Operator`,[_]:wC}]]],JA=[3,v,uh,0,[Koe],[[()=>gN,{[h]:`SupportedStrategies`,[_]:TT}]]],YA=[3,v,gh,0,[il,gh],[[0,{[h]:`Description`,[_]:hy}],[0,{[h]:`PrefixListId`,[_]:YC}]]],XA=[3,v,oh,0,[hd,tu,$l],[[0,{[h]:`HostnameType`,[_]:Rb}],[2,{[h]:`EnableResourceNameDnsARecord`,[_]:Ky}],[2,{[h]:`EnableResourceNameDnsAAAARecord`,[_]:Gy}]]],ZA=[3,v,_ie,0,[hd,tu,$l],[0,2,2]],QA=[3,v,vie,0,[hd,tu,$l],[[0,{[h]:`HostnameType`,[_]:Rb}],[2,{[h]:`EnableResourceNameDnsARecord`,[_]:Ky}],[2,{[h]:`EnableResourceNameDnsAAAARecord`,[_]:Gy}]]],$A=[3,v,wie,0,[bh,fh],[[2,{[h]:`Primary`,[_]:cw}],[0,{[h]:`PrivateIpAddress`,[_]:UC}]]],ej=[3,v,hh,0,[Xae,$ae,toe,km],[[()=>$j,{[h]:`SupportedArchitectures`,[_]:zw}],[1,{[h]:`SustainedClockSpeedInGhz`,[_]:Hw}],[()=>HN,{[h]:`SupportedFeatures`,[_]:Gw}],[0,{[h]:`Manufacturer`,[_]:LS}]]],tj=[3,v,hie,0,[fie,mie],[[0,{[h]:`ProductCode`,[_]:jC}],[0,{[h]:`Type`,[_]:aE}]]],nj=[3,v,Bie,0,[Wu],[[0,{[h]:`GatewayId`,[_]:_b}]]],rj=[3,v,th,0,[Rie,Gie,Iae,Vae,ig],[[4,{[h]:`ProvisionTime`,[_]:tw}],[0,{[h]:`Provisioned`,[_]:uw}],[4,{[h]:`RequestTime`,[_]:Nw}],[0,{[h]:`Requested`,[_]:Lw}],[0,{[h]:`Status`,[_]:FT}]]],ij=[3,v,aae,0,[Sf,d],[[()=>jM,{[_]:f}],[2,{[h]:`DryRun`,[_]:m}]],1],aj=[3,v,yae,0,[Ju,_h,bg,kg,Ug],[[0,{[h]:`GroupId`,[_]:yb}],[0,{[h]:`PeeringStatus`,[_]:QC}],[0,{[h]:`UserId`,[_]:sE}],[0,{[h]:`VpcId`,[_]:vE}],[0,{[h]:`VpcPeeringConnectionId`,[_]:TE}]]],oj=[3,v,Bae,0,[Xm,rd,Eh,vu],[[0,{[h]:`OptInStatus`,[_]:_C}],[()=>SN,{[h]:`GeographySet`,[_]:wb}],[0,{[h]:`RegionName`,[_]:Tw}],[0,{[h]:`RegionEndpoint`,[_]:hw}]]],sj=[3,v,eae,0,[Nm],[[0,{[h]:`Name`,[_]:HS}]]],cj=[3,v,qie,0,[Hi,dh,Pm,d],[0,0,0,[2,{[h]:`DryRun`,[_]:m}]]],lj=[3,v,Uae,0,[cae,Ym,uae,Fu,im],[[0,{[h]:`ReservationId`,[_]:yw}],[0,{[h]:`OwnerId`,[_]:gC}],[0,{[h]:`RequesterId`,[_]:Sw}],[()=>xM,{[h]:`GroupSet`,[_]:Tb}],[()=>FM,{[h]:`InstancesSet`,[_]:Rx}]]],uj=[3,v,Eae,0,[Fh,Ju,Gd,gp,Ou,ug,Ha,Va,gh,tae,il],[[0,{[h]:`SecurityGroupRuleId`,[_]:Yw}],[0,{[h]:`GroupId`,[_]:yb}],[2,{[h]:`IsEgress`,[_]:ex}],[0,{[h]:`IpProtocol`,[_]:wx}],[1,{[h]:`FromPort`,[_]:lb}],[1,{[h]:`ToPort`,[_]:JT}],[0,{[h]:`CidrIpv4`,[_]:Tv}],[0,{[h]:`CidrIpv6`,[_]:wv}],[0,{[h]:`PrefixListId`,[_]:YC}],[0,{[h]:`ReferencedGroupId`,[_]:_w}],[0,{[h]:`Description`,[_]:hy}]]],dj=[3,v,xae,0,[Ju,Ph,d,Zh,Qh,gp,Ou,ug,Ba,mp],[[0,{[h]:`GroupId`,[_]:yb}],[()=>PN,{[_]:Fh}],[2,{[h]:`DryRun`,[_]:m}],[0,{[h]:`SourceSecurityGroupName`,[_]:bT}],[0,{[h]:`SourceSecurityGroupOwnerId`,[_]:xT}],[0,{[h]:`IpProtocol`,[_]:wx}],[1,{[h]:`FromPort`,[_]:lb}],[1,{[h]:`ToPort`,[_]:JT}],[0,{[h]:`CidrIp`,[_]:Cv}],[()=>YM,{[h]:`IpPermissions`,[_]:Tx}]],1],fj=[3,v,Sae,0,[Sh,xg,Dh],[[2,{[h]:`Return`,[_]:dw}],[()=>YM,{[h]:`UnknownIpPermissionSet`,[_]:cE}],[()=>EN,{[h]:`RevokedSecurityGroupRuleSet`,[_]:Ew}]]],pj=[3,v,Cae,0,[Ba,Ou,Ju,Qu,mp,gp,Zh,Qh,ug,Ph,d],[0,1,0,0,[()=>YM,0],0,0,0,1,[()=>PN,{[_]:Fh}],[2,{[h]:`DryRun`,[_]:m}]]],mj=[3,v,wae,0,[Sh,xg,Dh],[[2,{[h]:`Return`,[_]:dw}],[()=>YM,{[h]:`UnknownIpPermissionSet`,[_]:cE}],[()=>EN,{[h]:`RevokedSecurityGroupRuleSet`,[_]:Ew}]]],hj=[3,v,Wae,0,[os,ms,cc,ql,Wu,f,Qf,Rm,lg,pm,ja,zm,Qre,rg,Ug,qa,Zm,kd],[[0,{[h]:`DestinationCidrBlock`,[_]:Kv}],[0,{[h]:`DestinationIpv6CidrBlock`,[_]:$v}],[0,{[h]:`DestinationPrefixListId`,[_]:ay}],[0,{[h]:`EgressOnlyInternetGatewayId`,[_]:Vy}],[0,{[h]:`GatewayId`,[_]:_b}],[0,{[h]:`InstanceId`,[_]:ax}],[0,{[h]:`InstanceOwnerId`,[_]:_x}],[0,{[h]:`NatGatewayId`,[_]:ZS}],[0,{[h]:`TransitGatewayId`,[_]:VT}],[0,{[h]:`LocalGatewayId`,[_]:cS}],[0,{[h]:`CarrierGatewayId`,[_]:yv}],[0,{[h]:`NetworkInterfaceId`,[_]:$S}],[0,{[h]:`Origin`,[_]:pC}],[0,{[h]:`State`,[_]:PT}],[0,{[h]:`VpcPeeringConnectionId`,[_]:TE}],[0,{[h]:`CoreNetworkArn`,[_]:Dv}],[0,{[h]:`OdbNetworkArn`,[_]:bC}],[0,{[h]:`IpAddress`,[_]:Jb}]]],gj=[3,v,kh,0,[xne,Hie,Oh,Gae,sg,kg,Ym],[[()=>kN,{[h]:`AssociationSet`,[_]:V_}],[()=>bN,{[h]:`PropagatingVgwSet`,[_]:rw}],[0,{[h]:`RouteTableId`,[_]:Aw}],[()=>ON,{[h]:`RouteSet`,[_]:Ow}],[()=>UN,{[h]:`TagSet`,[_]:XT}],[0,{[h]:`VpcId`,[_]:vE}],[0,{[h]:`OwnerId`,[_]:gC}]]],_j=[3,v,Oae,0,[Ere,kae,Oh,Uh,Wu,mh,Yi],[[2,{[h]:`Main`,[_]:IS}],[0,{[h]:`RouteTableAssociationId`,[_]:kw}],[0,{[h]:`RouteTableId`,[_]:Aw}],[0,{[h]:`SubnetId`,[_]:lT}],[0,{[h]:`GatewayId`,[_]:_b}],[0,{[h]:`PublicIpv4Pool`,[_]:WC}],[()=>vj,{[h]:`AssociationState`,[_]:L_}]]],vj=[3,v,jae,0,[rg,Gh],[[0,{[h]:`State`,[_]:PT}],[0,{[h]:`StatusMessage`,[_]:fT}]]],yj=[3,v,iae,0,[gu],[[2,{[h]:`Enabled`,[_]:rb}]],1],bj=[3,v,oae,0,[ire,are,ua,bf,Wp,xd,yd,sm,lm,Mm,yh,Th,ioe,Ih,Uh,yg,El,Il,fg,Yne,If,ko,Za,uo,cd,Kne,Cm,Xl,ah,wm,Qo,Zl,Um,Qm,Vh,d,$o,_f,fh,No,Vi,Bm,of,Ul],[1,1,[()=>cM,{[_]:la}],0,0,1,[()=>NM,{[_]:Ad}],0,0,[()=>yj,0],[()=>KA,0],0,[()=>MN,{[_]:Mh}],[()=>IN,{[_]:Lh}],0,[()=>JE,0],[()=>mM,0],[()=>gM,{[_]:Ol}],[()=>WN,{[_]:pg}],()=>SA,()=>Jk,()=>QD,()=>AD,()=>xD,()=>Dk,[()=>iN,{[_]:Jne}],()=>Yk,()=>hk,()=>ZA,()=>qk,2,2,()=>nA,()=>WA,[()=>HM,{[_]:Doe}],[2,{[h]:`DryRun`,[_]:m}],[2,{[h]:`DisableApiTermination`,[_]:Gv}],[0,{[h]:`InstanceInitiatedShutdownBehavior`,[_]:lx}],[0,{[h]:`PrivateIpAddress`,[_]:UC}],[0,{[h]:`ClientToken`,[Wx]:1,[_]:Lv}],[0,{[h]:`AdditionalInfo`,[_]:w_}],[()=>LM,{[h]:`NetworkInterface`,[_]:nC}],[()=>Ak,{[h]:`IamInstanceProfile`,[_]:ox}],[2,{[h]:`EbsOptimized`,[_]:Ry}]],2],xj=[3,v,Lh,0,[Ju,np,sg,kg,jh,Ym,Qu,il,mp],[[0,{[h]:`GroupId`,[_]:yb}],[()=>YM,{[h]:`IpPermissionsEgress`,[_]:bx}],[()=>UN,{[h]:`TagSet`,[_]:XT}],[0,{[h]:`VpcId`,[_]:vE}],[0,{[h]:`SecurityGroupArn`,[_]:Kw}],[0,{[h]:`OwnerId`,[_]:gC}],[0,{[h]:`GroupName`,[_]:xb}],[0,{[h]:`GroupDescription`,[_]:gb}],[()=>YM,{[h]:`IpPermissions`,[_]:Tx}]]],Sj=[3,v,loe,0,[Fh,Ju,td,Gd,gp,Ou,ug,Ha,Va,gh,nae,il,sg,ooe],[[0,{[h]:`SecurityGroupRuleId`,[_]:Yw}],[0,{[h]:`GroupId`,[_]:yb}],[0,{[h]:`GroupOwnerId`,[_]:Sb}],[2,{[h]:`IsEgress`,[_]:ex}],[0,{[h]:`IpProtocol`,[_]:wx}],[1,{[h]:`FromPort`,[_]:lb}],[1,{[h]:`ToPort`,[_]:JT}],[0,{[h]:`CidrIpv4`,[_]:Tv}],[0,{[h]:`CidrIpv6`,[_]:wv}],[0,{[h]:`PrefixListId`,[_]:YC}],[()=>aj,{[h]:`ReferencedGroupInfo`,[_]:vw}],[0,{[h]:`Description`,[_]:hy}],[()=>UN,{[h]:`TagSet`,[_]:XT}],[0,{[h]:`SecurityGroupRuleArn`,[_]:Jw}]]],Cj=[3,v,tse,0,[$re,Jm,sg,Joe,Qie,tg,Qi,bse,ka,Ro,Au,Hh,Ng,rg,Kh,eg,xh,Ym,il,Yg,_u,cm,ls],[[0,{[h]:`OwnerAlias`,[_]:hC}],[0,{[h]:`OutpostArn`,[_]:mC}],[()=>UN,{[h]:`TagSet`,[_]:XT}],[0,{[h]:`StorageTier`,[_]:OT}],[4,{[h]:`RestoreExpiryTime`,[_]:mw}],[0,{[h]:`SseType`,[_]:DT}],[0,{[h]:`AvailabilityZone`,[_]:G_}],[0,{[h]:`TransferType`,[_]:tE}],[1,{[h]:`CompletionDurationMinutes`,[_]:_v}],[4,{[h]:`CompletionTime`,[_]:zv}],[1,{[h]:`FullSnapshotSizeInBytes`,[_]:db}],[0,{[h]:`SnapshotId`,[_]:cT}],[0,{[h]:`VolumeId`,[_]:bE}],[0,{[h]:`Status`,[_]:FT}],[0,{[h]:`StatusMessage`,[_]:fT}],[4,{[h]:`StartTime`,[_]:ET}],[0,{[h]:`Progress`,[_]:lw}],[0,{[h]:`OwnerId`,[_]:gC}],[0,{[h]:`Description`,[_]:hy}],[1,{[h]:`VolumeSize`,[_]:kE}],[2,{[h]:`Encrypted`,[_]:ib}],[0,{[h]:`KmsKeyId`,[_]:$x}],[0,{[h]:`DataEncryptionKeyId`,[_]:Jv}]]],wj=[3,v,Loe,0,[vre,Eoe,da,e_,af],[0,0,1,4,0]],Tj=[3,v,yoe,0,[Sf,Vi,d],[[()=>jM,{[_]:f}],[0,{[h]:`AdditionalInfo`,[_]:w_}],[2,{[h]:`DryRun`,[_]:m}]],1],Ej=[3,v,boe,0,[koe],[[()=>UM,{[h]:`InstancesSet`,[_]:Rx}]]],Dj=[3,v,Xh,0,[Ko,Am],[[0,{[h]:`Code`,[_]:Hv}],[0,{[h]:`Message`,[_]:zS}]]],Oj=[3,v,xoe,0,[Sf,gd,Jh,d,yu],[[()=>jM,{[_]:f}],2,2,[2,{[h]:`DryRun`,[_]:m}],[2,{[h]:`Force`,[_]:pb}]],1],kj=[3,v,Soe,0,[joe],[[()=>UM,{[h]:`InstancesSet`,[_]:Rx}]]],Aj=[3,v,og,0,[ta,Hl,ym,$a,Ym,Bi,Id,sg,Yae,Jm,gl,zf,oh,ga,vg,Uh,rg,kg,Sa,Mte,Qi,ds,Tm],[[0,{[h]:`AvailabilityZoneId`,[_]:K_}],[1,{[h]:`EnableLniAtDeviceIndex`,[_]:Ly}],[2,{[h]:`MapCustomerOwnedIpOnLaunch`,[_]:vS}],[0,{[h]:`CustomerOwnedIpv4Pool`,[_]:Av}],[0,{[h]:`OwnerId`,[_]:gC}],[2,{[h]:`AssignIpv6AddressOnCreation`,[_]:C_}],[()=>BN,{[h]:`Ipv6CidrBlockAssociationSet`,[_]:Zb}],[()=>UN,{[h]:`TagSet`,[_]:XT}],[0,{[h]:`SubnetArn`,[_]:Bw}],[0,{[h]:`OutpostArn`,[_]:mC}],[2,{[h]:`EnableDns64`,[_]:Sy}],[2,{[h]:`Ipv6Native`,[_]:mx}],[()=>XA,{[h]:`PrivateDnsNameOptionsOnLaunch`,[_]:NC}],[()=>bD,{[h]:`BlockPublicAccessStates`,[_]:sv}],[0,{[h]:`Type`,[_]:aE}],[0,{[h]:`SubnetId`,[_]:lT}],[0,{[h]:`State`,[_]:PT}],[0,{[h]:`VpcId`,[_]:vE}],[0,{[h]:`CidrBlock`,[_]:fv}],[1,{[h]:`AvailableIpAddressCount`,[_]:S_}],[0,{[h]:`AvailabilityZone`,[_]:G_}],[2,{[h]:`DefaultForAz`,[_]:Xv}],[2,{[h]:`MapPublicIpOnLaunch`,[_]:AS}]]],jj=[3,v,Qae,0,[rg,Gh],[[0,{[h]:`State`,[_]:PT}],[0,{[h]:`StatusMessage`,[_]:fT}]]],Mj=[3,v,foe,0,[Wi,Fd,Rd,bd,Hp],[[0,{[h]:`AssociationId`,[_]:T_}],[0,{[h]:`Ipv6CidrBlock`,[_]:Xb}],[()=>jj,{[h]:`Ipv6CidrBlockState`,[_]:Qb}],[0,{[h]:`Ipv6AddressAttribute`,[_]:Bb}],[0,{[h]:`IpSource`,[_]:Bx}]]],Nj=[3,v,hg,0,[One,Tg],[[0,{[h]:`Key`,[_]:Xx}],[0,{[h]:`Value`,[_]:pE}]]],Pj=[3,v,pg,0,[Fae,sg],[[0,{[h]:`ResourceType`,[_]:Mw}],[()=>UN,{[_]:hg}]]],Fj=[3,v,sse,0,[Sf,yu,Jh,d],[[()=>jM,{[_]:f}],2,2,[2,{[h]:`DryRun`,[_]:m}]],1],Ij=[3,v,cse,0,[use],[[()=>UM,{[h]:`InstancesSet`,[_]:Rx}]]],Lj=[3,v,Ese,0,[il,bg,Qu,Ju,kg,Ug,_h],[[0,{[h]:`Description`,[_]:hy}],[0,{[h]:`UserId`,[_]:sE}],[0,{[h]:`GroupName`,[_]:xb}],[0,{[h]:`GroupId`,[_]:yb}],[0,{[h]:`VpcId`,[_]:vE}],[0,{[h]:`VpcPeeringConnectionId`,[_]:TE}],[0,{[h]:`PeeringStatus`,[_]:QC}]]],Rj=[3,v,Eg,0,[Gc,cs,Bc,Nse,Qg],[[1,{[h]:`DefaultVCpus`,[_]:my}],[1,{[h]:`DefaultCores`,[_]:qv}],[1,{[h]:`DefaultThreadsPerCore`,[_]:ly}],[()=>uM,{[h]:`ValidCores`,[_]:hE}],[()=>GN,{[h]:`ValidThreadsPerCore`,[_]:ME}]]],zj=[3,v,i_,0,[ta,Jm,Zoe,am,sg,Xg,ku,hm,gg,tg,Qm,Ag,Ng,ng,Hh,Qi,rg,Bo,sa,_u,cm],[[0,{[h]:`AvailabilityZoneId`,[_]:K_}],[0,{[h]:`OutpostArn`,[_]:mC}],[0,{[h]:`SourceVolumeId`,[_]:AT}],[1,{[h]:`Iops`,[_]:Yx}],[()=>UN,{[h]:`TagSet`,[_]:XT}],[0,{[h]:`VolumeType`,[_]:jE}],[2,{[h]:`FastRestored`,[_]:ub}],[2,{[h]:`MultiAttachEnabled`,[_]:mS}],[1,{[h]:`Throughput`,[_]:rE}],[0,{[h]:`SseType`,[_]:DT}],[()=>GA,{[h]:`Operator`,[_]:wC}],[1,{[h]:`VolumeInitializationRate`,[_]:yE}],[0,{[h]:`VolumeId`,[_]:bE}],[1,{[h]:`Size`,[_]:NT}],[0,{[h]:`SnapshotId`,[_]:cT}],[0,{[h]:`AvailabilityZone`,[_]:G_}],[0,{[h]:`Status`,[_]:FT}],[4,{[h]:`CreateTime`,[_]:Vv}],[()=>XN,{[h]:`AttachmentSet`,[_]:H_}],[2,{[h]:`Encrypted`,[_]:ib}],[0,{[h]:`KmsKeyId`,[_]:$x}]]],Bj=[3,v,kse,0,[nc,qi,$f,dl,Ng,f,al,rg,Zi],[[2,{[h]:`DeleteOnTermination`,[_]:iy}],[0,{[h]:`AssociatedResource`,[_]:F_}],[0,{[h]:`InstanceOwningService`,[_]:yx}],[1,{[h]:`EbsCardIndex`,[_]:yy}],[0,{[h]:`VolumeId`,[_]:bE}],[0,{[h]:`InstanceId`,[_]:ax}],[0,{[h]:`Device`,[_]:gy}],[0,{[h]:`Status`,[_]:FT}],[4,{[h]:`AttachTime`,[_]:W_}]]],Vj=[3,v,Bg,0,[Ng,Dm,Gh,vse,lse,xse,yse,fse,oie,eie,cie,sie,nie,xh,eg,pu],[[0,{[h]:`VolumeId`,[_]:bE}],[0,{[h]:`ModificationState`,[_]:PS}],[0,{[h]:`StatusMessage`,[_]:fT}],[1,{[h]:`TargetSize`,[_]:QT}],[1,{[h]:`TargetIops`,[_]:WT}],[0,{[h]:`TargetVolumeType`,[_]:nE}],[1,{[h]:`TargetThroughput`,[_]:eE}],[2,{[h]:`TargetMultiAttachEnabled`,[_]:GT}],[1,{[h]:`OriginalSize`,[_]:xC}],[1,{[h]:`OriginalIops`,[_]:vC}],[0,{[h]:`OriginalVolumeType`,[_]:CC}],[1,{[h]:`OriginalThroughput`,[_]:SC}],[2,{[h]:`OriginalMultiAttachEnabled`,[_]:yC}],[1,{[h]:`Progress`,[_]:lw}],[4,{[h]:`StartTime`,[_]:ET}],[4,{[h]:`EndTime`,[_]:tb}]]],Hj=[3,v,a_,0,[Ym,Jp,Id,Ca,Wd,hl,sg,ga,kg,rg,Sa,tc],[[0,{[h]:`OwnerId`,[_]:gC}],[0,{[h]:`InstanceTenancy`,[_]:Kx}],[()=>tP,{[h]:`Ipv6CidrBlockAssociationSet`,[_]:Zb}],[()=>$N,{[h]:`CidrBlockAssociationSet`,[_]:pv}],[2,{[h]:`IsDefault`,[_]:$b}],[()=>Gj,{[h]:`EncryptionControl`,[_]:xy}],[()=>UN,{[h]:`TagSet`,[_]:XT}],[()=>bD,{[h]:`BlockPublicAccessStates`,[_]:sv}],[0,{[h]:`VpcId`,[_]:vE}],[0,{[h]:`State`,[_]:PT}],[0,{[h]:`CidrBlock`,[_]:fv}],[0,{[h]:`DhcpOptionsId`,[_]:ry}]]],Uj=[3,v,Ase,0,[Wi,Sa,Ta],[[0,{[h]:`AssociationId`,[_]:T_}],[0,{[h]:`CidrBlock`,[_]:fv}],[()=>Wj,{[h]:`CidrBlockState`,[_]:hv}]]],Wj=[3,v,Mse,0,[rg,Gh],[[0,{[h]:`State`,[_]:PT}],[0,{[h]:`StatusMessage`,[_]:fT}]]],Gj=[3,v,Dg,0,[kg,Lse,jm,rg,Kh,$ie,sg],[[0,{[h]:`VpcId`,[_]:vE}],[0,{[h]:`VpcEncryptionControlId`,[_]:gE}],[0,{[h]:`Mode`,[_]:VS}],[0,{[h]:`State`,[_]:PT}],[0,{[h]:`StateMessage`,[_]:pT}],[()=>Jj,{[h]:`ResourceExclusions`,[_]:gw}],[()=>UN,{[h]:`TagSet`,[_]:XT}]]],Kj=[3,v,Pse,0,[jm,Xd,Kl,Ure,Kg,Wg,Hne,Lg,vl],[0,0,0,0,0,0,0,0,0],1],qj=[3,v,Fse,0,[rg,Kh],[[0,{[h]:`State`,[_]:PT}],[0,{[h]:`StateMessage`,[_]:pT}]]],Jj=[3,v,Ise,0,[Kd,Gl,Lm,Gg,qg,tre,Ig,_l],[[()=>qj,{[h]:`InternetGateway`,[_]:tx}],[()=>qj,{[h]:`EgressOnlyInternetGateway`,[_]:By}],[()=>qj,{[h]:`NatGateway`,[_]:YS}],[()=>qj,{[h]:`VirtualPrivateGateway`,[_]:EE}],[()=>qj,{[h]:`VpcPeering`,[_]:DE}],[()=>qj,{[h]:`Lambda`,[_]:pS}],[()=>qj,{[h]:`VpcLattice`,[_]:xE}],[()=>qj,{[h]:`ElasticFileSystem`,[_]:Cy}]]],Yj=[3,v,Rse,0,[Wi,Fd,Rd,Pm,vp,bd,Hp],[[0,{[h]:`AssociationId`,[_]:T_}],[0,{[h]:`Ipv6CidrBlock`,[_]:Xb}],[()=>Wj,{[h]:`Ipv6CidrBlockState`,[_]:Qb}],[0,{[h]:`NetworkBorderGroup`,[_]:US}],[0,{[h]:`Ipv6Pool`,[_]:Dx}],[0,{[h]:`Ipv6AddressAttribute`,[_]:Bb}],[0,{[h]:`IpSource`,[_]:Bx}]]],Xj=`unit`,Zj=[1,v,Ute,0,[()=>XE,{[_]:g}]],Qj=[1,v,Rte,0,[0,{[_]:Hi}]],$j=[1,v,sne,0,[0,{[_]:g}]],eM=[1,v,zte,0,[0,{[_]:Wi}]],tM=[1,v,ea,0,[()=>mD,{[_]:$i}]],nM=[1,v,fne,0,[()=>hD,{[_]:g}]],rM=[1,v,pne,0,[()=>pD,{[_]:g}]],iM=[1,v,hne,0,[()=>gD,{[_]:g}]],aM=[1,v,_ne,0,[()=>_D,{[_]:g}]],oM=[1,v,ba,0,[0,{[_]:g}]],sM=[1,v,Tne,0,[()=>yD,{[_]:g}]],cM=[1,v,Ene,0,[()=>yD,{[_]:la}]],lM=[1,v,ma,0,[0,{[_]:g}]],uM=[1,v,Ea,0,[1,{[_]:g}]],dM=[1,v,Os,0,[()=>ek,{[_]:g}]],fM=[1,v,fl,0,[()=>nk,{[_]:g}]],pM=[1,v,xl,0,[()=>ck,{[_]:g}]],mM=[1,v,Dl,0,[()=>lk,{[_]:g}]],hM=[1,v,jl,0,[()=>dk,{[_]:g}]],gM=[1,v,Il,0,[()=>uk,{[_]:g}]],_M=[1,v,ll,0,[0,{[_]:ul}]],vM=[1,v,Eu,0,[()=>gk,{[_]:Nu}]],yM=[1,v,Su,0,[()=>_k,{[_]:g}]],bM=[1,v,Hu,0,[()=>Sk,{[_]:g}]],xM=[1,v,Gu,0,[()=>Tk,{[_]:g}]],SM=[1,v,Ku,0,[0,{[_]:yb}]],CM=[1,v,$u,0,[0,{[_]:Qu}]],wM=[1,v,cf,0,[()=>kk,{[_]:g}]],TM=[1,v,vf,0,[0,{[_]:bf}]],EM=[1,v,Df,0,[()=>jk,{[_]:g}]],DM=[1,v,$p,0,[()=>Mk,{[_]:g}]],OM=[1,v,Vd,0,[()=>Ik,0]],kM=[1,v,Md,0,[()=>Vk,{[_]:g}]],AM=[1,v,Pd,0,[()=>Hk,{[_]:g}]],jM=[1,v,yf,0,[0,{[_]:f}]],MM=[1,v,ff,0,[()=>Uk,{[_]:g}]],NM=[1,v,rf,0,[()=>Wk,{[_]:g}]],PM=[1,v,pf,0,[()=>Gk,{[_]:g}]],FM=[1,v,kf,0,[()=>Rk,{[_]:g}]],IM=[1,v,Uf,0,[()=>Zk,{[_]:g}]],LM=[1,v,Gf,0,[()=>eA,{[_]:g}]],RM=[1,v,ap,0,[()=>rA,{[_]:g}]],zM=[1,v,Ap,0,[()=>iA,{[_]:g}]],BM=[1,v,Mp,0,[()=>oA,{[_]:g}]],VM=[1,v,Np,0,[()=>sA,{[_]:g}]],HM=[1,v,Fp,0,[()=>cA,{[_]:g}]],UM=[1,v,Op,0,[()=>uA,{[_]:g}]],WM=[1,v,Gp,0,[()=>fA,{[_]:g}]],GM=[1,v,Jd,0,[()=>mA,{[_]:g}]],KM=[1,v,Qd,0,[0,{[_]:g}]],qM=[1,v,ef,0,[()=>pA,{[_]:g}]],JM=[1,v,Af,0,[0,{[_]:g}]],YM=[1,v,cp,0,[()=>hA,{[_]:g}]],XM=[1,v,Sp,0,[()=>gA,{[_]:g}]],ZM=[1,v,lp,0,[()=>_A,{[_]:g}]],QM=[1,v,up,0,[()=>vA,{[_]:g}]],$M=[1,v,Cp,0,[()=>yA,{[_]:g}]],eN=[1,v,jne,0,[0,{[_]:lm}]],tN=[1,v,Pne,0,[0,{[_]:um}]],nN=[1,v,Lne,0,[()=>xA,{[_]:g}]],rN=[1,v,Wne,0,[()=>CA,{[_]:g}]],iN=[1,v,qne,0,[()=>wA,{[_]:g}]],aN=[1,v,sre,0,[()=>EA,{[_]:g}]],oN=[1,v,Vre,0,[()=>FA,{[_]:g}]],sN=[1,v,Bre,0,[()=>IA,{[_]:g}]],cN=[1,v,Wre,0,[0,{[_]:g}]],lN=[1,v,Kre,0,[()=>PA,{[_]:g}]],uN=[1,v,Are,0,[()=>LA,{[_]:g}]],dN=[1,v,Pre,0,[()=>BA,{[_]:g}]],fN=[1,v,Zre,0,[0,{[_]:g}]],pN=[1,v,aie,0,[0,{[_]:$m}]],mN=[1,v,yie,0,[0,{[_]:Ju}]],hN=[1,v,bie,0,[()=>qA,{[_]:g}]],gN=[1,v,xie,0,[0,{[_]:g}]],_N=[1,v,Nie,0,[()=>YA,{[_]:g}]],vN=[1,v,Tie,0,[()=>$A,{[_]:g}]],yN=[1,v,pie,0,[()=>tj,{[_]:g}]],bN=[1,v,Vie,0,[()=>nj,{[_]:g}]],xN=[1,v,Die,0,[0,{[_]:dh}]],SN=[1,v,rae,0,[()=>sj,{[_]:g}]],CN=[1,v,fae,0,[()=>oj,{[_]:g}]],wN=[1,v,_ae,0,[0,{[_]:Eh}]],TN=[1,v,pae,0,[()=>lj,{[_]:g}]],EN=[1,v,Dae,0,[()=>uj,{[_]:g}]],DN=[1,v,Zie,0,[0,{[_]:g}]],ON=[1,v,mae,0,[()=>hj,{[_]:g}]],kN=[1,v,Aae,0,[()=>_j,{[_]:g}]],AN=[1,v,Mae,0,[0,{[_]:g}]],jN=[1,v,Pae,0,[()=>gj,{[_]:g}]],MN=[1,v,roe,0,[0,{[_]:Mh}]],NN=[1,v,aoe,0,[()=>xj,{[_]:g}]],PN=[1,v,soe,0,[0,{[_]:g}]],FN=[1,v,coe,0,[()=>Sj,{[_]:g}]],IN=[1,v,uoe,0,[0,{[_]:Lh}]],LN=[1,v,woe,0,[0,{[_]:Hh}]],RN=[1,v,Poe,0,[()=>Cj,{[_]:g}]],zN=[1,v,Toe,0,[0,{[_]:Uh}]],BN=[1,v,poe,0,[()=>Mj,{[_]:g}]],VN=[1,v,Foe,0,[()=>Aj,{[_]:g}]],HN=[1,v,Jae,0,[0,{[_]:g}]],UN=[1,v,dse,0,[()=>Nj,{[_]:g}]],WN=[1,v,_se,0,[()=>Pj,{[_]:g}]],GN=[1,v,hse,0,[1,{[_]:g}]],KN=[1,v,Cse,0,[0,{[_]:g}]],qN=[1,v,Tse,0,[()=>Lj,{[_]:g}]],JN=[1,v,Jg,0,[0,{[_]:g}]],YN=[1,v,Zg,0,[0,{[_]:g}]],XN=[1,v,Ose,0,[()=>Bj,{[_]:g}]],ZN=[1,v,jg,0,[0,{[_]:Ng}]],QN=[1,v,Rg,0,[()=>zj,{[_]:g}]],$N=[1,v,jse,0,[()=>Uj,{[_]:g}]],eP=[1,v,Mg,0,[0,{[_]:kg}]],tP=[1,v,zse,0,[()=>Yj,{[_]:g}]],nP=[1,v,zg,0,[()=>Hj,{[_]:g}]],rP=[1,v,l_,0,[0,{[_]:g}]],iP=[1,v,f_,0,[0,{[_]:d_}]],aP=[1,v,h_,0,[0,{[_]:m_}]],oP=[9,v,Tte,0,()=>ZE,()=>QE],sP=[9,v,Dte,0,()=>$E,()=>eD],cP=[9,v,Fte,0,()=>tD,()=>nD],lP=[9,v,Xte,0,()=>rD,()=>iD],uP=[9,v,Nte,0,()=>aD,()=>Xj],dP=[9,v,une,0,()=>oD,()=>Bj],fP=[9,v,$te,0,()=>lD,()=>uD],pP=[9,v,ine,0,()=>dD,()=>fD],mP=[9,v,Oo,0,()=>DD,()=>OD],hP=[9,v,Wa,0,()=>jD,()=>MD],gP=[9,v,Fa,0,()=>ND,()=>PD],_P=[9,v,Ga,0,()=>FD,()=>bA],vP=[9,v,Ja,0,()=>ID,()=>LD],yP=[9,v,to,0,()=>RD,()=>zD],bP=[9,v,_o,0,()=>BD,()=>VD],xP=[9,v,go,0,()=>HD,()=>UD],SP=[9,v,vo,0,()=>WD,()=>GD],CP=[9,v,Ao,0,()=>KD,()=>Cj],wP=[9,v,jo,0,()=>qD,()=>JD],TP=[9,v,Wo,0,()=>YD,()=>zj],EP=[9,v,Go,0,()=>XD,()=>ZD],DP=[9,v,hs,0,()=>eO,()=>Xj],OP=[9,v,zs,0,()=>tO,()=>nO],kP=[9,v,Js,0,()=>rO,()=>iO],AP=[9,v,rc,0,()=>aO,()=>Xj],jP=[9,v,xc,0,()=>oO,()=>Xj],MP=[9,v,pc,0,()=>sO,()=>Xj],NP=[9,v,Cc,0,()=>cO,()=>lO],PP=[9,v,Fc,0,()=>uO,()=>Xj],FP=[9,v,Ic,0,()=>dO,()=>Xj],IP=[9,v,$c,0,()=>fO,()=>Xj],LP=[9,v,el,0,()=>pO,()=>Xj],RP=[9,v,is,0,()=>mO,()=>hO],zP=[9,v,rs,0,()=>gO,()=>_O],BP=[9,v,Cs,0,()=>vO,()=>yO],VP=[9,v,Is,0,()=>bO,()=>xO],HP=[9,v,Ls,0,()=>SO,()=>CO],UP=[9,v,Fs,0,()=>wO,()=>TO],WP=[9,v,bs,0,()=>EO,()=>DO],GP=[9,v,Ws,0,()=>OO,()=>kO],KP=[9,v,$s,0,()=>AO,()=>jO],qP=[9,v,sc,0,()=>MO,()=>NO],JP=[9,v,Sc,0,()=>PO,()=>FO],YP=[9,v,vc,0,()=>IO,()=>LO],XP=[9,v,Oc,0,()=>RO,()=>zO],ZP=[9,v,Lc,0,()=>BO,()=>VO],QP=[9,v,Rc,0,()=>HO,()=>UO],$P=[9,v,tl,0,()=>WO,()=>GO],eF=[9,v,nl,0,()=>KO,()=>qO],tF=[9,v,xs,0,()=>JO,()=>Xj],nF=[9,v,rl,0,()=>YO,()=>Bj],rF=[9,v,as,0,()=>XO,()=>Xj],iF=[9,v,Ss,0,()=>ZO,()=>QO],aF=[9,v,yc,0,()=>$O,()=>Xj],oF=[9,v,Lu,0,()=>bk,()=>xk],sF=[9,v,Cf,0,()=>Nk,()=>Pk],cF=[9,v,gre,0,()=>kA,()=>Xj],lF=[9,v,bre,0,()=>AA,()=>Xj],uF=[9,v,Tre,0,()=>jA,()=>MA],dF=[9,v,lae,0,()=>ij,()=>Xj],fF=[9,v,Jie,0,()=>cj,()=>Xj],pF=[9,v,bae,0,()=>dj,()=>fj],mF=[9,v,Tae,0,()=>pj,()=>mj],hF=[9,v,dae,0,()=>bj,()=>lj],gF=[9,v,Aoe,0,()=>Tj,()=>Ej],_F=[9,v,Moe,0,()=>Oj,()=>kj],vF=[9,v,ase,0,()=>Fj,()=>Ij],yF=e=>({apiVersion:`2016-11-15`,base64Decoder:e?.base64Decoder??bt,base64Encoder:e?.base64Encoder??wt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??vte,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??lte,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new ae}],logger:e?.logger??new Be,protocol:e?.protocol??Tee,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.ec2`,errorTypeRegistries:GE,xmlNamespace:`http://ec2.amazonaws.com/doc/2016-11-15`,version:`2016-11-15`,serviceTarget:`AmazonEC2`},serviceId:e?.serviceId??`EC2`,urlParser:e?.urlParser??Qe,utf8Decoder:e?.utf8Decoder??yt,utf8Encoder:e?.utf8Encoder??St}),bF=e=>{let t=Se(e),n=()=>t().then(He),r=yF(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Ot,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??ge({serviceId:r.serviceId,clientVersion:pte.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??et(`Region is missing`),requestHandler:Ae.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Le),sha256:e?.sha256??se,streamCollector:e?.streamCollector??ft,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},xF=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},SF=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),CF=(e,t)=>{let n=Object.assign(Ze(e),lt(e),ie(e),xF(e));return t.forEach(e=>e.configure(n)),Object.assign(e,be(n),ht(n),Ge(n),SF(n))},wF=class extends Te{config;constructor(...[e]){let t=bF(e||{});super(t),this.initConfig=t;let n=CF(ute(We(ve(Ee(Re(ke(dte(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(de(this.config)),this.middlewareStack.use(ye(this.config)),this.middlewareStack.use(_e(this.config)),this.middlewareStack.use(Oe(this.config)),this.middlewareStack.use(me(this.config)),this.middlewareStack.use(Ie(this.config)),this.middlewareStack.use(Pe(this.config)),this.middlewareStack.use(he(this.config,{httpAuthSchemeParametersProvider:ste,identityProviderConfigProvider:async e=>new gt({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(oe(this.config))}destroy(){super.destroy()}},TF=e=>typeof e==`string`&&e.indexOf(`arn:`)===0&&e.split(`:`).length>=6,EF=async(e,t,n)=>({operation:pe(t).operation,region:await xe(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function DF(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`ecr`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var OF=e=>{let t=[];switch(e.operation){default:t.push(DF(e))}return t},kF=e=>{let t=ue(e);return Object.assign(t,{authSchemePreference:xe(e.authSchemePreference??[])})},AF=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`ecr`}),jF={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},MF={name:`@aws-sdk/client-ecr`,description:`AWS SDK for JavaScript Ecr Client for Node.js, Browser and React Native`,version:`3.1068.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo ecr`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts --mode development`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.20`,"@aws-sdk/credential-provider-node":`^3.972.55`,"@aws-sdk/types":`^3.973.12`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ecr`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-ecr`}},NF=`ref`,PF=-1,FF=!0,IF=`isSet`,LF=`PartitionResult`,RF=`stringEquals`,zF=`booleanEquals`,BF=`getAttr`,VF={[NF]:`Endpoint`},HF={fn:BF,argv:[{[NF]:LF},`name`]},UF={[NF]:LF},WF={},GF=[{[NF]:`Region`}],KF={conditions:[[IF,[VF]],[IF,GF],[`aws.partition`,GF,LF],[RF,[HF,`aws-eusc`]],[RF,[HF,`aws-iso-f`]],[RF,[HF,`aws-iso-e`]],[RF,[HF,`aws-iso-b`]],[RF,[HF,`aws-iso`]],[RF,[HF,`aws-cn`]],[RF,[HF,`aws-us-gov`]],[RF,[HF,`aws`]],[zF,[{[NF]:`UseFIPS`},FF]],[zF,[{fn:BF,argv:[UF,`supportsFIPS`]},FF]],[zF,[{[NF]:`UseDualStack`},FF]],[zF,[{fn:BF,argv:[UF,`supportsDualStack`]},FF]]],results:[[PF],[PF,`Invalid Configuration: FIPS and custom endpoint are not supported`],[PF,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[VF,WF],[`https://api.ecr.{Region}.{PartitionResult#dnsSuffix}`,WF],[`https://ecr.{Region}.{PartitionResult#dualStackDnsSuffix}`,WF],[`https://api.ecr-fips.{Region}.{PartitionResult#dnsSuffix}`,WF],[`https://ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,WF],[`https://api.ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,WF],[PF,`FIPS and DualStack are enabled, but this partition does not support one or both`],[PF,`FIPS is enabled but this partition does not support FIPS`],[`https://api.ecr.{Region}.{PartitionResult#dualStackDnsSuffix}`,WF],[PF,`DualStack is enabled but this partition does not support DualStack`],[PF,`Invalid Configuration: Missing Region`]]},qF=2,JF=new Int32Array([-1,1,-1,0,23,3,1,4,100000013,2,5,100000013,3,20,6,4,20,7,5,20,8,6,20,9,7,20,10,8,20,11,9,20,12,10,20,13,11,16,14,13,15,100000004,14,100000011,100000012,12,18,17,13,100000009,100000010,13,19,100000006,14,100000008,100000009,11,22,21,13,100000005,100000004,13,100000007,100000006,11,100000001,24,13,100000002,100000003]),YF=Ye.from(JF,qF,KF.conditions,KF.results),XF=new tt({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),ZF=(e,t={})=>XF.get(e,()=>Ke(YF,{endpointParams:e,logger:t.logger}));it.aws=fe;var y=class e extends pt{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},QF=class e extends y{name=`InvalidParameterException`;$fault=`client`;constructor(t){super({name:`InvalidParameterException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},$F=class e extends y{name=`RepositoryNotFoundException`;$fault=`client`;constructor(t){super({name:`RepositoryNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},eI=class e extends y{name=`ServerException`;$fault=`server`;constructor(t){super({name:`ServerException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},tI=class e extends y{name=`LimitExceededException`;$fault=`client`;constructor(t){super({name:`LimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},nI=class e extends y{name=`UnableToGetUpstreamImageException`;$fault=`client`;constructor(t){super({name:`UnableToGetUpstreamImageException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},rI=class e extends y{name=`ValidationException`;$fault=`client`;constructor(t){super({name:`ValidationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},iI=class e extends y{name=`EmptyUploadException`;$fault=`client`;constructor(t){super({name:`EmptyUploadException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},aI=class e extends y{name=`InvalidLayerException`;$fault=`client`;constructor(t){super({name:`InvalidLayerException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},oI=class e extends y{name=`KmsException`;$fault=`client`;kmsError;constructor(t){super({name:`KmsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.kmsError=t.kmsError}},sI=class e extends y{name=`LayerAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`LayerAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},cI=class e extends y{name=`LayerPartTooSmallException`;$fault=`client`;constructor(t){super({name:`LayerPartTooSmallException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},lI=class e extends y{name=`UploadNotFoundException`;$fault=`client`;constructor(t){super({name:`UploadNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},uI=class e extends y{name=`PullThroughCacheRuleAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`PullThroughCacheRuleAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},dI=class e extends y{name=`SecretNotFoundException`;$fault=`client`;constructor(t){super({name:`SecretNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},fI=class e extends y{name=`UnableToAccessSecretException`;$fault=`client`;constructor(t){super({name:`UnableToAccessSecretException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},pI=class e extends y{name=`UnableToDecryptSecretValueException`;$fault=`client`;constructor(t){super({name:`UnableToDecryptSecretValueException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},mI=class e extends y{name=`UnsupportedUpstreamRegistryException`;$fault=`client`;constructor(t){super({name:`UnsupportedUpstreamRegistryException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},hI=class e extends y{name=`InvalidTagParameterException`;$fault=`client`;constructor(t){super({name:`InvalidTagParameterException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},gI=class e extends y{name=`RepositoryAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`RepositoryAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},_I=class e extends y{name=`TooManyTagsException`;$fault=`client`;constructor(t){super({name:`TooManyTagsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},vI=class e extends y{name=`TemplateAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`TemplateAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},yI=class e extends y{name=`LifecyclePolicyNotFoundException`;$fault=`client`;constructor(t){super({name:`LifecyclePolicyNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},bI=class e extends y{name=`PullThroughCacheRuleNotFoundException`;$fault=`client`;constructor(t){super({name:`PullThroughCacheRuleNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},xI=class e extends y{name=`RegistryPolicyNotFoundException`;$fault=`client`;constructor(t){super({name:`RegistryPolicyNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},SI=class e extends y{name=`RepositoryNotEmptyException`;$fault=`client`;constructor(t){super({name:`RepositoryNotEmptyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},CI=class e extends y{name=`TemplateNotFoundException`;$fault=`client`;constructor(t){super({name:`TemplateNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},wI=class e extends y{name=`RepositoryPolicyNotFoundException`;$fault=`client`;constructor(t){super({name:`RepositoryPolicyNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},TI=class e extends y{name=`SigningConfigurationNotFoundException`;$fault=`client`;constructor(t){super({name:`SigningConfigurationNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},EI=class e extends y{name=`ExclusionNotFoundException`;$fault=`client`;constructor(t){super({name:`ExclusionNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},DI=class e extends y{name=`ImageNotFoundException`;$fault=`client`;constructor(t){super({name:`ImageNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},OI=class e extends y{name=`ScanNotFoundException`;$fault=`client`;constructor(t){super({name:`ScanNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},kI=class e extends y{name=`LayerInaccessibleException`;$fault=`client`;constructor(t){super({name:`LayerInaccessibleException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},AI=class e extends y{name=`LayersNotFoundException`;$fault=`client`;constructor(t){super({name:`LayersNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},jI=class e extends y{name=`UnableToGetUpstreamLayerException`;$fault=`client`;constructor(t){super({name:`UnableToGetUpstreamLayerException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},MI=class e extends y{name=`LifecyclePolicyPreviewNotFoundException`;$fault=`client`;constructor(t){super({name:`LifecyclePolicyPreviewNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},NI=class e extends y{name=`UnableToListUpstreamImageReferrersException`;$fault=`client`;constructor(t){super({name:`UnableToListUpstreamImageReferrersException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},PI=class e extends y{name=`ImageAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`ImageAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},FI=class e extends y{name=`ImageDigestDoesNotMatchException`;$fault=`client`;constructor(t){super({name:`ImageDigestDoesNotMatchException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},II=class e extends y{name=`ImageTagAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`ImageTagAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},LI=class e extends y{name=`ReferencedImagesNotFoundException`;$fault=`client`;constructor(t){super({name:`ReferencedImagesNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},RI=class e extends y{name=`BlockedByOrganizationPolicyException`;$fault=`client`;constructor(t){super({name:`BlockedByOrganizationPolicyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},zI=class e extends y{name=`ExclusionAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`ExclusionAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},BI=class e extends y{name=`ImageArchivedException`;$fault=`client`;constructor(t){super({name:`ImageArchivedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},VI=class e extends y{name=`UnsupportedImageTypeException`;$fault=`client`;constructor(t){super({name:`UnsupportedImageTypeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},HI=class e extends y{name=`LifecyclePolicyPreviewInProgressException`;$fault=`client`;constructor(t){super({name:`LifecyclePolicyPreviewInProgressException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},UI=class e extends y{name=`ImageStorageClassUpdateNotSupportedException`;$fault=`client`;constructor(t){super({name:`ImageStorageClassUpdateNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},WI=class e extends y{name=`InvalidLayerPartException`;$fault=`client`;registryId;repositoryName;uploadId;lastValidByteReceived;constructor(t){super({name:`InvalidLayerPartException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.registryId=t.registryId,this.repositoryName=t.repositoryName,this.uploadId=t.uploadId,this.lastValidByteReceived=t.lastValidByteReceived}},GI=`BlockedByOrganizationPolicyException`,KI=`BatchDeleteImage`,qI=`BatchDeleteImageRequest`,JI=`BatchDeleteImageResponse`,YI=`CreateRepository`,XI=`CreateRepositoryRequest`,ZI=`CreateRepositoryResponse`,QI=`DescribeImages`,$I=`DescribeImagesFilter`,eL=`DescribeImagesRequest`,tL=`DescribeImagesResponse`,nL=`DeleteRepository`,rL=`DeleteRepositoryPolicyRequest`,iL=`DeleteRepositoryPolicyResponse`,aL=`DeleteRepositoryPolicy`,oL=`DeleteRepositoryRequest`,sL=`DeleteRepositoryResponse`,cL=`DescribeRepositoriesRequest`,lL=`DescribeRepositoriesResponse`,uL=`DescribeRepositories`,dL=`ExclusionAlreadyExistsException`,fL=`EncryptionConfiguration`,pL=`ExclusionNotFoundException`,mL=`EmptyUploadException`,hL=`GetRepositoryPolicyRequest`,gL=`GetRepositoryPolicyResponse`,_L=`GetRepositoryPolicy`,vL=`ImageArchivedException`,yL=`ImageAlreadyExistsException`,bL=`ImageDetail`,xL=`ImageDigestDoesNotMatchException`,SL=`ImageDetailList`,CL=`ImageFailure`,wL=`ImageFailureList`,TL=`ImageIdentifier`,EL=`ImageIdentifierList`,DL=`InvalidLayerException`,OL=`InvalidLayerPartException`,kL=`ImageNotFoundException`,AL=`InvalidParameterException`,jL=`ImageScanningConfiguration`,ML=`ImageStorageClassUpdateNotSupportedException`,NL=`ImageScanFindingsSummary`,PL=`ImageScanStatus`,FL=`ImageTagAlreadyExistsException`,IL=`ImageTagMutabilityExclusionFilter`,LL=`ImageTagMutabilityExclusionFilters`,RL=`InvalidTagParameterException`,zL=`Key`,BL=`KmsException`,VL=`LayerAlreadyExistsException`,HL=`LimitExceededException`,UL=`LayerInaccessibleException`,WL=`LayersNotFoundException`,GL=`LifecyclePolicyNotFoundException`,KL=`LifecyclePolicyPreviewInProgressException`,qL=`LifecyclePolicyPreviewNotFoundException`,JL=`LayerPartTooSmallException`,YL=`PullThroughCacheRuleAlreadyExistsException`,XL=`PullThroughCacheRuleNotFoundException`,ZL=`RepositoryAlreadyExistsException`,QL=`ReferencedImagesNotFoundException`,$L=`RepositoryList`,eR=`RepositoryNotEmptyException`,tR=`RepositoryNotFoundException`,nR=`RegistryPolicyNotFoundException`,rR=`RepositoryPolicyNotFoundException`,iR=`Repository`,aR=`SigningConfigurationNotFoundException`,oR=`ServerException`,sR=`ScanNotFoundException`,cR=`SecretNotFoundException`,lR=`SetRepositoryPolicy`,uR=`SetRepositoryPolicyRequest`,dR=`SetRepositoryPolicyResponse`,fR=`Tag`,pR=`TemplateAlreadyExistsException`,mR=`TagList`,hR=`TooManyTagsException`,gR=`TemplateNotFoundException`,_R=`UnsupportedImageTypeException`,vR=`UploadNotFoundException`,yR=`UnableToAccessSecretException`,bR=`UnableToDecryptSecretValueException`,xR=`UnableToGetUpstreamImageException`,SR=`UnableToGetUpstreamLayerException`,CR=`UnableToListUpstreamImageReferrersException`,wR=`UnsupportedUpstreamRegistryException`,TR=`Value`,ER=`ValidationException`,DR=`artifactMediaType`,b=`client`,OR=`createdAt`,kR=`description`,x=`error`,AR=`encryptionConfiguration`,jR=`encryptionType`,MR=`failures`,NR=`failureCode`,PR=`failureReason`,FR=`findingSeverityCounts`,IR=`filterType`,LR=`filter`,RR=`force`,zR=`httpError`,BR=`imageDetails`,VR=`imageDigest`,HR=`imageIds`,UR=`imageId`,WR=`imageManifestMediaType`,GR=`imagePushedAt`,KR=`imageStatus`,qR=`imageScanningConfiguration`,JR=`imageScanCompletedAt`,YR=`imageScanFindingsSummary`,XR=`imageSizeInBytes`,ZR=`imageScanStatus`,QR=`imageTags`,$R=`imageTagMutability`,ez=`imageTagMutabilityExclusionFilters`,tz=`imageTag`,nz=`kmsError`,rz=`kmsKey`,iz=`lastArchivedAt`,az=`lastActivatedAt`,oz=`lastRecordedPullTime`,sz=`lastValidByteReceived`,S=`message`,cz=`maxResults`,lz=`nextToken`,uz=`policyText`,dz=`repositoryArn`,fz=`registryId`,pz=`repositoryName`,mz=`repositoryNames`,hz=`repositoryUri`,gz=`repository`,_z=`repositories`,vz=`smithy.ts.sdk.synthetic.com.amazonaws.ecr`,yz=`subjectManifestDigest`,bz=`scanOnPush`,xz=`server`,Sz=`status`,Cz=`tags`,wz=`tagStatus`,Tz=`uploadId`,Ez=`vulnerabilitySourceUpdatedAt`,C=`com.amazonaws.ecr`,Dz=ce.for(vz),Oz=[-3,vz,`ECRServiceException`,0,[],[]];Dz.registerError(Oz,y);var w=ce.for(C),kz=[-3,C,GI,{[x]:b},[S],[0]];w.registerError(kz,RI);var Az=[-3,C,mL,{[x]:b},[S],[0]];w.registerError(Az,iI);var jz=[-3,C,dL,{[x]:b},[S],[0]];w.registerError(jz,zI);var Mz=[-3,C,pL,{[x]:b},[S],[0]];w.registerError(Mz,EI);var Nz=[-3,C,yL,{[x]:b},[S],[0]];w.registerError(Nz,PI);var Pz=[-3,C,vL,{[x]:b},[S],[0]];w.registerError(Pz,BI);var Fz=[-3,C,xL,{[x]:b},[S],[0]];w.registerError(Fz,FI);var Iz=[-3,C,kL,{[x]:b},[S],[0]];w.registerError(Iz,DI);var Lz=[-3,C,ML,{[x]:b},[S],[0]];w.registerError(Lz,UI);var Rz=[-3,C,FL,{[x]:b},[S],[0]];w.registerError(Rz,II);var zz=[-3,C,DL,{[x]:b},[S],[0]];w.registerError(zz,aI);var Bz=[-3,C,OL,{[x]:b},[fz,pz,Tz,sz,S],[0,0,0,1,0]];w.registerError(Bz,WI);var Vz=[-3,C,AL,{[x]:b},[S],[0]];w.registerError(Vz,QF);var Hz=[-3,C,RL,{[x]:b},[S],[0]];w.registerError(Hz,hI);var Uz=[-3,C,BL,{[x]:b},[S,nz],[0,0]];w.registerError(Uz,oI);var Wz=[-3,C,VL,{[x]:b},[S],[0]];w.registerError(Wz,sI);var Gz=[-3,C,UL,{[x]:b},[S],[0]];w.registerError(Gz,kI);var Kz=[-3,C,JL,{[x]:b},[S],[0]];w.registerError(Kz,cI);var qz=[-3,C,WL,{[x]:b},[S],[0]];w.registerError(qz,AI);var Jz=[-3,C,GL,{[x]:b},[S],[0]];w.registerError(Jz,yI);var Yz=[-3,C,KL,{[x]:b},[S],[0]];w.registerError(Yz,HI);var Xz=[-3,C,qL,{[x]:b},[S],[0]];w.registerError(Xz,MI);var Zz=[-3,C,HL,{[x]:b},[S],[0]];w.registerError(Zz,tI);var Qz=[-3,C,YL,{[x]:b},[S],[0]];w.registerError(Qz,uI);var $z=[-3,C,XL,{[x]:b},[S],[0]];w.registerError($z,bI);var eB=[-3,C,QL,{[x]:b},[S],[0]];w.registerError(eB,LI);var tB=[-3,C,nR,{[x]:b},[S],[0]];w.registerError(tB,xI);var nB=[-3,C,ZL,{[x]:b},[S],[0]];w.registerError(nB,gI);var rB=[-3,C,eR,{[x]:b},[S],[0]];w.registerError(rB,SI);var iB=[-3,C,tR,{[x]:b},[S],[0]];w.registerError(iB,$F);var aB=[-3,C,rR,{[x]:b},[S],[0]];w.registerError(aB,wI);var oB=[-3,C,sR,{[x]:b},[S],[0]];w.registerError(oB,OI);var sB=[-3,C,cR,{[x]:b},[S],[0]];w.registerError(sB,dI);var cB=[-3,C,oR,{[x]:xz},[S],[0]];w.registerError(cB,eI);var lB=[-3,C,aR,{[x]:b},[S],[0]];w.registerError(lB,TI);var uB=[-3,C,pR,{[x]:b},[S],[0]];w.registerError(uB,vI);var dB=[-3,C,gR,{[x]:b},[S],[0]];w.registerError(dB,CI);var fB=[-3,C,hR,{[x]:b},[S],[0]];w.registerError(fB,_I);var pB=[-3,C,yR,{[x]:b},[S],[0]];w.registerError(pB,fI);var mB=[-3,C,bR,{[x]:b},[S],[0]];w.registerError(mB,pI);var hB=[-3,C,xR,{[x]:b},[S],[0]];w.registerError(hB,nI);var gB=[-3,C,SR,{[x]:b},[S],[0]];w.registerError(gB,jI);var _B=[-3,C,CR,{[x]:b},[S],[0]];w.registerError(_B,NI);var vB=[-3,C,_R,{[x]:b},[S],[0]];w.registerError(vB,VI);var yB=[-3,C,wR,{[x]:b},[S],[0]];w.registerError(yB,mI);var bB=[-3,C,vR,{[x]:b},[S],[0]];w.registerError(bB,lI);var xB=[-3,C,ER,{[x]:b,[zR]:400},[S],[0]];w.registerError(xB,rI);var SB=[Dz,w],CB=[3,C,qI,0,[pz,HR,fz],[0,()=>QB,0],2],wB=[3,C,JI,0,[HR,MR],[()=>QB,()=>ZB]],TB=[3,C,XI,0,[pz,fz,Cz,$R,ez,qR,AR],[0,0,()=>tV,0,()=>$B,()=>UB,()=>IB],1],EB=[3,C,ZI,0,[gz],[()=>KB]],DB=[3,C,rL,0,[pz,fz],[0,0],1],OB=[3,C,iL,0,[fz,pz,uz],[0,0,0]],kB=[3,C,oL,0,[pz,fz,RR],[0,0,2],1],AB=[3,C,sL,0,[gz],[()=>KB]],jB=[3,C,$I,0,[wz,KR],[0,0]],MB=[3,C,eL,0,[pz,fz,HR,lz,cz,LR],[0,0,()=>QB,0,1,()=>jB],1],NB=[3,C,tL,0,[BR,lz],[()=>XB,0]],PB=[3,C,cL,0,[fz,mz,lz,cz],[0,64,0,1]],FB=[3,C,lL,0,[_z,lz],[()=>eV,0]],IB=[3,C,fL,0,[jR,rz],[0,0],1],LB=[3,C,hL,0,[pz,fz],[0,0],1],RB=[3,C,gL,0,[fz,pz,uz],[0,0,0]],zB=[3,C,bL,0,[fz,pz,VR,QR,XR,GR,ZR,YR,WR,DR,oz,yz,KR,iz,az],[0,0,0,64,1,4,()=>WB,()=>HB,0,0,4,0,0,4,4]],BB=[3,C,CL,0,[UR,NR,PR],[()=>VB,0,0]],VB=[3,C,TL,0,[VR,tz],[0,0]],HB=[3,C,NL,0,[JR,Ez,FR],[4,4,129]],UB=[3,C,jL,0,[bz],[2]],WB=[3,C,PL,0,[Sz,kR],[0,0]],GB=[3,C,IL,0,[IR,LR],[0,0],2],KB=[3,C,iR,0,[dz,fz,pz,hz,OR,$R,ez,qR,AR],[0,0,0,0,4,0,()=>$B,()=>UB,()=>IB]],qB=[3,C,uR,0,[pz,uz,fz,RR],[0,0,0,2],2],JB=[3,C,dR,0,[fz,pz,uz],[0,0,0]],YB=[3,C,fR,0,[zL,TR],[0,0],2],XB=[1,C,SL,0,()=>zB],ZB=[1,C,wL,0,()=>BB],QB=[1,C,EL,0,()=>VB],$B=[1,C,LL,0,()=>GB],eV=[1,C,$L,0,()=>KB],tV=[1,C,mR,0,()=>YB],nV=[9,C,KI,0,()=>CB,()=>wB],rV=[9,C,YI,0,()=>TB,()=>EB],iV=[9,C,nL,0,()=>kB,()=>AB],aV=[9,C,aL,0,()=>DB,()=>OB],oV=[9,C,QI,0,()=>MB,()=>NB],sV=[9,C,uL,0,()=>PB,()=>FB],cV=[9,C,_L,0,()=>LB,()=>RB],lV=[9,C,lR,0,()=>qB,()=>JB],uV=e=>({apiVersion:`2015-09-21`,base64Decoder:e?.base64Decoder??bt,base64Encoder:e?.base64Encoder??wt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??ZF,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??OF,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new ae}],logger:e?.logger??new Be,protocol:e?.protocol??an,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.ecr`,errorTypeRegistries:SB,xmlNamespace:`http://ecr.amazonaws.com/doc/2015-09-21/`,version:`2015-09-21`,serviceTarget:`AmazonEC2ContainerRegistry_V20150921`},serviceId:e?.serviceId??`ECR`,urlParser:e?.urlParser??Qe,utf8Decoder:e?.utf8Decoder??yt,utf8Encoder:e?.utf8Encoder??St}),dV=e=>{let t=Se(e),n=()=>t().then(He),r=uV(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Ot,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??ge({serviceId:r.serviceId,clientVersion:MF.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??et(`Region is missing`),requestHandler:Ae.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Le),sha256:e?.sha256??se,streamCollector:e?.streamCollector??ft,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},fV=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},pV=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),mV=(e,t)=>{let n=Object.assign(Ze(e),lt(e),ie(e),fV(e));return t.forEach(e=>e.configure(n)),Object.assign(e,be(n),ht(n),Ge(n),pV(n))},hV=class extends Te{config;constructor(...[e]){let t=dV(e||{});super(t),this.initConfig=t;let n=mV(kF(We(ve(Ee(Re(ke(AF(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(de(this.config)),this.middlewareStack.use(ye(this.config)),this.middlewareStack.use(_e(this.config)),this.middlewareStack.use(Oe(this.config)),this.middlewareStack.use(me(this.config)),this.middlewareStack.use(Ie(this.config)),this.middlewareStack.use(Pe(this.config)),this.middlewareStack.use(he(this.config,{httpAuthSchemeParametersProvider:EF,identityProviderConfigProvider:async e=>new gt({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(oe(this.config))}destroy(){super.destroy()}},gV=async(e,t,n)=>({operation:pe(t).operation,region:await xe(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function _V(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`eks`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var vV=e=>{let t=[];switch(e.operation){default:t.push(_V(e))}return t},yV=e=>{let t=ue(e);return Object.assign(t,{authSchemePreference:xe(e.authSchemePreference??[])})},bV=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`eks`}),xV={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},SV={name:`@aws-sdk/client-eks`,description:`AWS SDK for JavaScript Eks Client for Node.js, Browser and React Native`,version:`3.1067.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo eks`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.20`,"@aws-sdk/credential-provider-node":`^3.972.55`,"@aws-sdk/types":`^3.973.12`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-eks`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-eks`}},CV=`ref`,wV=-1,TV=!0,EV=`isSet`,DV=`PartitionResult`,OV=`booleanEquals`,kV=`getAttr`,AV=`stringEquals`,jV={[CV]:`Endpoint`},MV={[CV]:DV},NV={fn:kV,argv:[MV,`name`]},PV={},FV=[{[CV]:`Region`}],IV={conditions:[[EV,[jV]],[EV,FV],[`aws.partition`,FV,DV],[OV,[{[CV]:`UseFIPS`},TV]],[OV,[{[CV]:`UseDualStack`},TV]],[OV,[{fn:kV,argv:[MV,`supportsDualStack`]},TV]],[OV,[{fn:kV,argv:[MV,`supportsFIPS`]},TV]],[AV,[NV,`aws`]],[AV,[NV,`aws-us-gov`]]],results:[[wV],[wV,`Invalid Configuration: FIPS and custom endpoint are not supported`],[wV,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[jV,PV],[`https://eks-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,PV],[wV,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://fips.eks.{Region}.amazonaws.com`,PV],[`https://eks.{Region}.amazonaws.com`,PV],[`https://eks-fips.{Region}.{PartitionResult#dnsSuffix}`,PV],[wV,`FIPS is enabled but this partition does not support FIPS`],[`https://eks.{Region}.{PartitionResult#dualStackDnsSuffix}`,PV],[wV,`DualStack is enabled but this partition does not support DualStack`],[`https://eks.{Region}.{PartitionResult#dnsSuffix}`,PV],[wV,`Invalid Configuration: Missing Region`]]},LV=2,RV=new Int32Array([-1,1,-1,0,14,3,1,4,100000013,2,5,100000013,3,8,6,4,7,100000012,5,100000010,100000011,4,12,9,6,10,100000009,7,100000006,11,8,100000007,100000008,5,13,100000005,6,100000004,100000005,3,100000001,15,4,100000002,100000003]),zV=Ye.from(RV,LV,IV.conditions,IV.results),BV=new tt({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),VV=(e,t={})=>BV.get(e,()=>Ke(zV,{endpointParams:e,logger:t.logger}));it.aws=fe;var HV=class e extends pt{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},UV=class e extends HV{name=`AccessDeniedException`;$fault=`client`;constructor(t){super({name:`AccessDeniedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},WV=class e extends HV{name=`InvalidParameterException`;$fault=`client`;clusterName;nodegroupName;fargateProfileName;addonName;subscriptionId;constructor(t){super({name:`InvalidParameterException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.fargateProfileName=t.fargateProfileName,this.addonName=t.addonName,this.subscriptionId=t.subscriptionId}},GV=class e extends HV{name=`InvalidRequestException`;$fault=`client`;clusterName;nodegroupName;addonName;subscriptionId;constructor(t){super({name:`InvalidRequestException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.addonName=t.addonName,this.subscriptionId=t.subscriptionId}},KV=class e extends HV{name=`ResourceNotFoundException`;$fault=`client`;clusterName;nodegroupName;fargateProfileName;addonName;subscriptionId;constructor(t){super({name:`ResourceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.fargateProfileName=t.fargateProfileName,this.addonName=t.addonName,this.subscriptionId=t.subscriptionId}},qV=class e extends HV{name=`ServerException`;$fault=`server`;clusterName;nodegroupName;addonName;subscriptionId;constructor(t){super({name:`ServerException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.addonName=t.addonName,this.subscriptionId=t.subscriptionId}},JV=class e extends HV{name=`ClientException`;$fault=`client`;clusterName;nodegroupName;addonName;subscriptionId;constructor(t){super({name:`ClientException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.addonName=t.addonName,this.subscriptionId=t.subscriptionId}},YV=class e extends HV{name=`ResourceInUseException`;$fault=`client`;clusterName;nodegroupName;addonName;constructor(t){super({name:`ResourceInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.addonName=t.addonName}},XV=class e extends HV{name=`ThrottlingException`;$fault=`client`;clusterName;constructor(t){super({name:`ThrottlingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName}},ZV=class e extends HV{name=`ResourceLimitExceededException`;$fault=`client`;clusterName;nodegroupName;subscriptionId;constructor(t){super({name:`ResourceLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.subscriptionId=t.subscriptionId}},QV=class e extends HV{name=`ServiceUnavailableException`;$fault=`server`;constructor(t){super({name:`ServiceUnavailableException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},$V=class e extends HV{name=`UnsupportedAvailabilityZoneException`;$fault=`client`;clusterName;nodegroupName;validZones;constructor(t){super({name:`UnsupportedAvailabilityZoneException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.validZones=t.validZones}},eH=class e extends HV{name=`BadRequestException`;$fault=`client`;constructor(t){super({name:`BadRequestException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},tH=class e extends HV{name=`NotFoundException`;$fault=`client`;constructor(t){super({name:`NotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},nH=class e extends HV{name=`ResourcePropagationDelayException`;$fault=`client`;constructor(t){super({name:`ResourcePropagationDelayException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},rH=class e extends HV{name=`InvalidStateException`;$fault=`client`;clusterName;constructor(t){super({name:`InvalidStateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName}},iH=`Addon`,aH=`AssociatedAccessPolicy`,oH=`AssociatedAccessPoliciesList`,sH=`AssociateAccessPolicyRequest`,cH=`AssociateAccessPolicyResponse`,lH=`AssociateAccessPolicy`,uH=`AccessConfigResponse`,dH=`AccessDeniedException`,fH=`AccessEntry`,pH=`AddonHealth`,mH=`AddonInfo`,hH=`AddonIssueList`,gH=`AddonIssue`,_H=`AddonNamespaceConfigRequest`,vH=`AddonNamespaceConfigResponse`,yH=`AccessPolicy`,bH=`AddonPodIdentityAssociations`,xH=`AddonPodIdentityAssociationsList`,SH=`AccessPoliciesList`,CH=`AccessScope`,wH=`AutoScalingGroup`,TH=`AutoScalingGroupList`,EH=`AddonVersionInfo`,DH=`AddonVersionInfoList`,OH=`Addons`,kH=`BadRequestException`,AH=`BlockStorage`,jH=`CreateAddon`,MH=`CreateAccessConfigRequest`,NH=`CreateAccessEntry`,PH=`CreateAccessEntryRequest`,FH=`CreateAccessEntryResponse`,IH=`CreateAddonRequest`,LH=`CreateAddonResponse`,RH=`ComputeConfigRequest`,zH=`ComputeConfigResponse`,BH=`ConnectorConfigResponse`,VH=`CreateClusterRequest`,HH=`CreateClusterResponse`,UH=`CreateCluster`,WH=`ClientException`,GH=`ClusterHealth`,KH=`ClusterIssueList`,qH=`ClusterIssue`,JH=`CreateNodegroup`,YH=`CreateNodegroupRequest`,XH=`CreateNodegroupResponse`,ZH=`ControlPlanePlacementRequest`,QH=`ControlPlanePlacementResponse`,$H=`ControlPlaneScalingConfig`,eU=`Certificate`,tU=`Cluster`,nU=`Compatibility`,rU=`Compatibilities`,iU=`DeleteAddon`,aU=`DeleteAccessEntry`,oU=`DeleteAccessEntryRequest`,sU=`DeleteAccessEntryResponse`,cU=`DescribeAccessEntryRequest`,lU=`DescribeAccessEntryResponse`,uU=`DescribeAccessEntry`,dU=`DisassociateAccessPolicy`,fU=`DisassociateAccessPolicyRequest`,pU=`DisassociateAccessPolicyResponse`,mU=`DeleteAddonRequest`,hU=`DeleteAddonResponse`,gU=`DescribeAddonRequest`,_U=`DescribeAddonResponse`,vU=`DescribeAddonVersions`,yU=`DescribeAddonVersionsRequest`,bU=`DescribeAddonVersionsResponse`,xU=`DescribeAddon`,SU=`DeleteClusterRequest`,CU=`DeleteClusterResponse`,wU=`DescribeClusterRequest`,TU=`DescribeClusterResponse`,EU=`DeleteCluster`,DU=`DescribeCluster`,OU=`DeleteNodegroup`,kU=`DeleteNodegroupRequest`,AU=`DeleteNodegroupResponse`,jU=`DescribeNodegroupRequest`,MU=`DescribeNodegroupResponse`,NU=`DescribeNodegroup`,PU=`EncryptionConfig`,FU=`EncryptionConfigList`,IU=`ErrorDetail`,LU=`ErrorDetails`,RU=`ElasticLoadBalancing`,zU=`EtcdPlacementRequest`,BU=`EtcdPlacementResponse`,VU=`Identity`,HU=`IssueList`,UU=`InvalidParameterException`,WU=`InvalidRequestException`,GU=`InvalidStateException`,KU=`Issue`,qU=`KubernetesNetworkConfigRequest`,JU=`KubernetesNetworkConfigResponse`,YU=`ListAddons`,XU=`ListAssociatedAccessPolicies`,ZU=`ListAssociatedAccessPoliciesRequest`,QU=`ListAssociatedAccessPoliciesResponse`,$U=`ListAccessEntries`,eW=`ListAccessEntriesRequest`,tW=`ListAccessEntriesResponse`,nW=`ListAccessPolicies`,rW=`ListAccessPoliciesRequest`,iW=`ListAccessPoliciesResponse`,aW=`ListAddonsRequest`,oW=`ListAddonsResponse`,sW=`ListClustersRequest`,cW=`ListClustersResponse`,lW=`ListClusters`,uW=`ListNodegroups`,dW=`ListNodegroupsRequest`,fW=`ListNodegroupsResponse`,pW=`LogSetup`,mW=`LogSetups`,hW=`LaunchTemplateSpecification`,gW=`Logging`,_W=`MarketplaceInformation`,vW=`Nodegroup`,yW=`NotFoundException`,bW=`NodegroupHealth`,xW=`NodegroupResources`,SW=`NodeRepairConfig`,CW=`NodeRepairConfigOverrides`,wW=`NodeRepairConfigOverridesList`,TW=`NodegroupScalingConfig`,EW=`NodegroupUpdateConfig`,DW=`OutpostConfigRequest`,OW=`OutpostConfigResponse`,kW=`OIDC`,AW=`Provider`,jW=`RemoteAccessConfig`,MW=`ResourceInUseException`,NW=`ResourceLimitExceededException`,PW=`RemoteNetworkConfigRequest`,FW=`RemoteNetworkConfigResponse`,IW=`ResourceNotFoundException`,LW=`RemoteNodeNetwork`,RW=`RemoteNodeNetworkList`,zW=`ResourcePropagationDelayException`,BW=`RemotePodNetwork`,VW=`RemotePodNetworkList`,HW=`StorageConfigRequest`,UW=`StorageConfigResponse`,WW=`ServerException`,GW=`ServiceUnavailableException`,KW=`Taint`,qW=`ThrottlingException`,JW=`Update`,YW=`UpdateAddon`,XW=`UpdateAddonRequest`,ZW=`UpdateAddonResponse`,QW=`UnsupportedAvailabilityZoneException`,$W=`UpdateLabelsPayload`,eG=`UpdateNodegroupConfig`,tG=`UpdateNodegroupConfigRequest`,nG=`UpdateNodegroupConfigResponse`,rG=`UpdateNodegroupVersion`,iG=`UpdateNodegroupVersionRequest`,aG=`UpdateNodegroupVersionResponse`,oG=`UpdateParam`,sG=`UpgradePolicyRequest`,cG=`UpgradePolicyResponse`,lG=`UpdateParams`,uG=`UpdateTaintsPayload`,dG=`VpcConfigRequest`,fG=`VpcConfigResponse`,pG=`WarmPoolConfig`,mG=`ZonalShiftConfigRequest`,hG=`ZonalShiftConfigResponse`,gG=`arn`,_G=`addonArn`,vG=`associatedAccessPolicy`,yG=`associatedAccessPolicies`,bG=`associatedAt`,xG=`accessConfig`,SG=`activationCode`,CG=`activationExpiry`,wG=`accessEntryArn`,TG=`accessEntry`,EG=`accessEntries`,DG=`activationId`,OG=`authenticationMode`,kG=`addonName`,AG=`addOrUpdateLabels`,jG=`addOrUpdateTaints`,MG=`accessPolicies`,NG=`associatedPolicyArn`,PG=`accessScope`,FG=`autoScalingGroups`,IG=`amiType`,LG=`addonVersion`,RG=`addonVersions`,zG=`addon`,BG=`addons`,VG=`architecture`,HG=`bootstrapClusterCreatorAdminPermissions`,UG=`blockStorage`,WG=`bootstrapSelfManagedAddons`,GG=`client`,KG=`createdAt`,qG=`certificateAuthority`,JG=`connectorConfig`,YG=`computeConfig`,XG=`clusterLogging`,T=`clusterName`,ZG=`controlPlaneInstanceType`,QG=`controlPlanePlacement`,$G=`controlPlaneScalingConfig`,eK=`clientRequestToken`,tK=`clusterSecurityGroupId`,nK=`computeTypes`,rK=`capacityType`,iK=`configurationValues`,aK=`clusterVersion`,oK=`cidrs`,sK=`cluster`,cK=`clusters`,lK=`code`,uK=`compatibilities`,dK=`data`,fK=`defaultNamespace`,pK=`deletionProtection`,mK=`diskSize`,hK=`desiredSize`,gK=`defaultVersion`,_K=`error`,vK=`encryptionConfig`,yK=`errorCode`,bK=`etcdInstanceType`,xK=`elasticLoadBalancing`,SK=`errorMessage`,CK=`etcdPlacement`,wK=`endpointPublicAccess`,TK=`endpointPrivateAccess`,EK=`ec2SshKey`,DK=`effect`,OK=`enabled`,kK=`endpoint`,AK=`errors`,jK=`fargateProfileName`,MK=`force`,NK=`groupName`,PK=`health`,FK=`httpError`,E=`httpQuery`,D=`http`,IK=`issues`,LK=`ipFamily`,RK=`instanceTypes`,zK=`id`,BK=`identity`,VK=`include`,HK=`issuer`,UK=`key`,WK=`keyArn`,GK=`kubernetesGroups`,KK=`kubernetesNetworkConfig`,qK=`kubernetesVersion`,JK=`logging`,YK=`launchTemplate`,XK=`labels`,ZK=`message`,QK=`modifiedAt`,$K=`maxGroupPreparedCapacity`,eq=`marketplaceInformation`,tq=`maxParallelNodesRepairedCount`,nq=`maxParallelNodesRepairedPercentage`,rq=`maxResults`,iq=`minRepairWaitTimeMins`,aq=`minSize`,oq=`maxSize`,sq=`maxUnavailable`,cq=`maxUnhealthyNodeThresholdCount`,lq=`maxUnhealthyNodeThresholdPercentage`,uq=`maxUnavailablePercentage`,dq=`name`,fq=`nodegroupArn`,pq=`namespaceConfig`,mq=`nodeMonitoringCondition`,hq=`nodegroupName`,gq=`nodePools`,_q=`nodeRole`,vq=`nodeRoleArn`,yq=`nodeRepairConfig`,bq=`nodeRepairConfigOverrides`,O=`nextToken`,xq=`nodeUnhealthyReason`,Sq=`namespaces`,Cq=`namespace`,wq=`nodegroup`,Tq=`nodegroups`,Eq=`owner`,Dq=`outpostArns`,Oq=`outpostConfig`,kq=`oidc`,Aq=`owners`,jq=`publisher`,Mq=`principalArn`,Nq=`publicAccessCidrs`,Pq=`policyArn`,Fq=`productId`,Iq=`podIdentityAssociations`,Lq=`poolState`,Rq=`productUrl`,zq=`platformVersion`,Bq=`platformVersions`,Vq=`params`,Hq=`provider`,Uq=`preserve`,Wq=`publishers`,Gq=`roleArn`,Kq=`remoteAccessSecurityGroup`,qq=`remoteAccess`,Jq=`repairAction`,Yq=`requiresConfiguration`,Xq=`resolveConflicts`,Zq=`resourceIds`,Qq=`requiresIamPermissions`,$q=`removeLabels`,eJ=`remoteNetworkConfig`,tJ=`remoteNodeNetworks`,nJ=`reuseOnScaleIn`,rJ=`remotePodNetworks`,iJ=`removeTaints`,aJ=`releaseVersion`,oJ=`resourcesVpcConfig`,sJ=`resources`,cJ=`smithy.ts.sdk.synthetic.com.amazonaws.eks`,lJ=`serviceAccount`,uJ=`serviceAccountRoleArn`,dJ=`storageConfig`,fJ=`scalingConfig`,pJ=`securityGroupIds`,mJ=`subscriptionId`,hJ=`serviceIpv4Cidr`,gJ=`serviceIpv6Cidr`,_J=`subnetIds`,vJ=`spreadLevel`,yJ=`sourceSecurityGroups`,bJ=`supportType`,xJ=`server`,SJ=`status`,CJ=`subnets`,wJ=`tags`,TJ=`taintsList`,EJ=`taints`,DJ=`tier`,OJ=`type`,kJ=`types`,AJ=`username`,jJ=`updateConfig`,MJ=`upgradePolicy`,NJ=`updateStrategy`,PJ=`update`,FJ=`version`,IJ=`vpcId`,LJ=`validZones`,RJ=`value`,zJ=`warmPoolConfig`,BJ=`zonalShiftConfig`,k=`com.amazonaws.eks`,VJ=ce.for(cJ),HJ=[-3,cJ,`EKSServiceException`,0,[],[]];VJ.registerError(HJ,HV);var UJ=ce.for(k),WJ=[-3,k,dH,{[_K]:GG,[FK]:403},[ZK],[0]];UJ.registerError(WJ,UV);var GJ=[-3,k,kH,{[_K]:GG,[FK]:400},[ZK],[0]];UJ.registerError(GJ,eH);var KJ=[-3,k,WH,{[_K]:GG,[FK]:400},[T,hq,kG,mJ,ZK],[0,0,0,0,0]];UJ.registerError(KJ,JV);var qJ=[-3,k,UU,{[_K]:GG,[FK]:400},[T,hq,jK,kG,mJ,ZK],[0,0,0,0,0,0]];UJ.registerError(qJ,WV);var JJ=[-3,k,WU,{[_K]:GG,[FK]:400},[T,hq,kG,mJ,ZK],[0,0,0,0,0]];UJ.registerError(JJ,GV);var YJ=[-3,k,GU,{[_K]:GG,[FK]:400},[T,ZK],[0,0]];UJ.registerError(YJ,rH);var XJ=[-3,k,yW,{[_K]:GG,[FK]:404},[ZK],[0]];UJ.registerError(XJ,tH);var ZJ=[-3,k,MW,{[_K]:GG,[FK]:409},[T,hq,kG,ZK],[0,0,0,0]];UJ.registerError(ZJ,YV);var QJ=[-3,k,NW,{[_K]:GG,[FK]:400},[T,hq,mJ,ZK],[0,0,0,0]];UJ.registerError(QJ,ZV);var $J=[-3,k,IW,{[_K]:GG,[FK]:404},[T,hq,jK,kG,mJ,ZK],[0,0,0,0,0,0]];UJ.registerError($J,KV);var eY=[-3,k,zW,{[_K]:GG,[FK]:428},[ZK],[0]];UJ.registerError(eY,nH);var tY=[-3,k,WW,{[_K]:xJ,[FK]:500},[T,hq,kG,mJ,ZK],[0,0,0,0,0]];UJ.registerError(tY,qV);var nY=[-3,k,GW,{[_K]:xJ,[FK]:503},[ZK],[0]];UJ.registerError(nY,QV);var rY=[-3,k,qW,{[_K]:GG,[FK]:429},[T,ZK],[0,0]];UJ.registerError(rY,XV);var iY=[-3,k,QW,{[_K]:GG,[FK]:400},[ZK,T,hq,LJ],[0,0,0,64]];UJ.registerError(iY,$V);var aY=[VJ,UJ],oY=[3,k,uH,0,[HG,OG],[2,0]],sY=[3,k,fH,0,[T,Mq,GK,wG,KG,QK,wJ,AJ,OJ],[0,0,64,0,4,4,128,0,0]],cY=[3,k,yH,0,[dq,gG],[0,0]],lY=[3,k,CH,0,[OJ,Sq],[0,64]],uY=[3,k,iH,0,[kG,T,SJ,LG,PK,_G,KG,QK,uJ,wJ,jq,Eq,eq,iK,Iq,pq],[0,0,0,0,()=>dY,0,4,4,0,128,0,0,()=>NX,0,64,()=>hY]],dY=[3,k,pH,0,[IK],[()=>_Z]],fY=[3,k,mH,0,[kG,OJ,RG,jq,Eq,eq,fK],[0,0,()=>bZ,0,0,()=>NX,0]],pY=[3,k,gH,0,[lK,ZK,Zq],[0,0,64]],mY=[3,k,_H,0,[Cq],[0]],hY=[3,k,vH,0,[Cq],[0]],gY=[3,k,bH,0,[lJ,Gq],[0,0],2],_Y=[3,k,EH,0,[LG,VG,nK,uK,Yq,Qq],[0,64,64,()=>wZ,2,2]],vY=[3,k,sH,0,[T,Mq,Pq,PG],[[0,1],[0,1],0,()=>lY],4],yY=[3,k,cH,0,[T,Mq,vG],[0,0,()=>bY]],bY=[3,k,aH,0,[Pq,PG,bG,QK],[0,()=>lY,4,4]],xY=[3,k,wH,0,[dq],[0]],SY=[3,k,AH,0,[OK],[2]],CY=[3,k,eU,0,[dK],[0]],wY=[3,k,tU,0,[dq,gG,KG,FJ,kK,Gq,oJ,KK,JK,BK,SJ,qG,eK,zq,wJ,vK,JG,zK,PK,Oq,xG,MJ,BJ,eJ,YG,dJ,pK,$G],[0,0,4,0,0,0,()=>fZ,()=>_X,()=>jX,()=>mX,0,()=>CY,0,0,128,()=>TZ,()=>AY,0,()=>TY,()=>UX,()=>oY,()=>uZ,()=>hZ,()=>qX,()=>kY,()=>ZX,2,()=>NY]],TY=[3,k,GH,0,[IK],[()=>CZ]],EY=[3,k,qH,0,[lK,ZK,Zq],[0,0,64]],DY=[3,k,nU,0,[aK,Bq,gK],[0,64,2]],OY=[3,k,RH,0,[OK,gq,vq],[2,64,0]],kY=[3,k,zH,0,[OK,gq,vq],[2,64,0]],AY=[3,k,BH,0,[DG,SG,CG,Hq,Gq],[0,0,4,0,0]],jY=[3,k,ZH,0,[NK,vJ],[0,0]],MY=[3,k,QH,0,[NK,vJ],[0,0]],NY=[3,k,$H,0,[DJ],[0]],PY=[3,k,MH,0,[HG,OG],[2,0]],FY=[3,k,PH,0,[T,Mq,GK,wJ,eK,AJ,OJ],[[0,1],0,64,128,[0,4],0,0],2],IY=[3,k,FH,0,[TG],[()=>sY]],LY=[3,k,IH,0,[T,kG,LG,uJ,Xq,eK,wJ,iK,Iq,pq],[[0,1],0,0,0,0,[0,4],128,0,()=>vZ,()=>mY],2],RY=[3,k,LH,0,[zG],[()=>uY]],zY=[3,k,VH,0,[dq,Gq,oJ,FJ,KK,JK,eK,wJ,vK,Oq,xG,WG,MJ,BJ,eJ,YG,dJ,pK,$G],[0,0,()=>dZ,0,()=>gX,()=>jX,[0,4],128,()=>TZ,()=>HX,()=>PY,2,()=>lZ,()=>mZ,()=>KX,()=>OY,()=>XX,2,()=>NY],3],BY=[3,k,HH,0,[sK],[()=>wY]],VY=[3,k,YH,0,[T,hq,CJ,_q,fJ,mK,RK,IG,qq,XK,EJ,wJ,eK,YK,jJ,yq,rK,FJ,aJ,zJ],[[0,1],0,64,0,()=>LX,1,64,0,()=>GX,128,()=>MZ,128,[0,4],()=>vX,()=>RX,()=>zX,0,0,0,()=>pZ],4],HY=[3,k,XH,0,[wq],[()=>PX]],UY=[3,k,oU,0,[T,Mq],[[0,1],[0,1]],2],WY=[3,k,sU,0,[],[]],GY=[3,k,mU,0,[T,kG,Uq],[[0,1],[0,1],[2,{[E]:Uq}]],2],KY=[3,k,hU,0,[zG],[()=>uY]],qY=[3,k,SU,0,[dq],[[0,1]],1],JY=[3,k,CU,0,[sK],[()=>wY]],YY=[3,k,kU,0,[T,hq],[[0,1],[0,1]],2],XY=[3,k,AU,0,[wq],[()=>PX]],ZY=[3,k,cU,0,[T,Mq],[[0,1],[0,1]],2],QY=[3,k,lU,0,[TG],[()=>sY]],$Y=[3,k,gU,0,[T,kG],[[0,1],[0,1]],2],eX=[3,k,_U,0,[zG],[()=>uY]],tX=[3,k,yU,0,[qK,rq,O,kG,kJ,Wq,Aq],[[0,{[E]:qK}],[1,{[E]:rq}],[0,{[E]:O}],[0,{[E]:kG}],[64,{[E]:kJ}],[64,{[E]:Wq}],[64,{[E]:Aq}]]],nX=[3,k,bU,0,[BG,O],[()=>yZ,0]],rX=[3,k,wU,0,[dq],[[0,1]],1],iX=[3,k,TU,0,[sK],[()=>wY]],aX=[3,k,jU,0,[T,hq],[[0,1],[0,1]],2],oX=[3,k,MU,0,[wq],[()=>PX]],sX=[3,k,fU,0,[T,Mq,Pq],[[0,1],[0,1],[0,1]],3],cX=[3,k,pU,0,[],[]],lX=[3,k,RU,0,[OK],[2]],uX=[3,k,PU,0,[sJ,Hq],[64,()=>WX]],dX=[3,k,IU,0,[yK,SK,Zq],[0,0,64]],fX=[3,k,zU,0,[vJ],[0]],pX=[3,k,BU,0,[vJ],[0]],mX=[3,k,VU,0,[kq],[()=>VX]],hX=[3,k,KU,0,[lK,ZK,Zq],[0,0,64]],gX=[3,k,qU,0,[hJ,LK,xK],[0,0,()=>lX]],_X=[3,k,JU,0,[hJ,gJ,LK,xK],[0,0,0,()=>lX]],vX=[3,k,hW,0,[dq,FJ,zK],[0,0,0]],yX=[3,k,eW,0,[T,NG,rq,O],[[0,1],[0,{[E]:NG}],[1,{[E]:rq}],[0,{[E]:O}]],1],bX=[3,k,tW,0,[EG,O],[64,0]],xX=[3,k,rW,0,[rq,O],[[1,{[E]:rq}],[0,{[E]:O}]]],SX=[3,k,iW,0,[MG,O],[()=>gZ,0]],CX=[3,k,aW,0,[T,rq,O],[[0,1],[1,{[E]:rq}],[0,{[E]:O}]],1],wX=[3,k,oW,0,[BG,O],[64,0]],TX=[3,k,ZU,0,[T,Mq,rq,O],[[0,1],[0,1],[1,{[E]:rq}],[0,{[E]:O}]],2],EX=[3,k,QU,0,[T,Mq,O,yG],[0,0,0,()=>xZ]],DX=[3,k,sW,0,[rq,O,VK],[[1,{[E]:rq}],[0,{[E]:O}],[64,{[E]:VK}]]],OX=[3,k,cW,0,[cK,O],[64,0]],kX=[3,k,dW,0,[T,rq,O],[[0,1],[1,{[E]:rq}],[0,{[E]:O}]],1],AX=[3,k,fW,0,[Tq,O],[64,0]],jX=[3,k,gW,0,[XG],[()=>OZ]],MX=[3,k,pW,0,[kJ,OK],[64,2]],NX=[3,k,_W,0,[Fq,Rq],[0,0]],PX=[3,k,vW,0,[hq,fq,T,FJ,aJ,KG,QK,SJ,rK,fJ,RK,CJ,qq,IG,_q,XK,EJ,sJ,mK,PK,jJ,yq,YK,wJ,zJ],[0,0,0,0,0,4,4,0,0,()=>LX,64,64,()=>GX,0,0,128,()=>MZ,()=>IX,1,()=>FX,()=>RX,()=>zX,()=>vX,128,()=>pZ]],FX=[3,k,bW,0,[IK],[()=>DZ]],IX=[3,k,xW,0,[FG,Kq],[()=>SZ,0]],LX=[3,k,TW,0,[aq,oq,hK],[1,1,1]],RX=[3,k,EW,0,[sq,uq,NJ],[1,1,0]],zX=[3,k,SW,0,[OK,cq,lq,tq,nq,bq],[2,1,1,1,1,()=>kZ]],BX=[3,k,CW,0,[mq,xq,iq,Jq],[0,0,1,0]],VX=[3,k,kW,0,[HK],[0]],HX=[3,k,DW,0,[Dq,ZG,QG,bK,CK],[64,0,()=>jY,0,()=>fX],2],UX=[3,k,OW,0,[Dq,ZG,QG,bK,CK],[64,0,()=>MY,0,()=>pX],2],WX=[3,k,AW,0,[WK],[0]],GX=[3,k,jW,0,[EK,yJ],[0,64]],KX=[3,k,PW,0,[tJ,rJ],[()=>AZ,()=>jZ]],qX=[3,k,FW,0,[tJ,rJ],[()=>AZ,()=>jZ]],JX=[3,k,LW,0,[oK],[64]],YX=[3,k,BW,0,[oK],[64]],XX=[3,k,HW,0,[UG],[()=>SY]],ZX=[3,k,UW,0,[UG],[()=>SY]],QX=[3,k,KW,0,[UK,RJ,DK],[0,0,0]],$X=[3,k,JW,0,[zK,SJ,OJ,Vq,KG,AK],[0,0,0,()=>NZ,4,()=>EZ]],eZ=[3,k,XW,0,[T,kG,LG,uJ,Xq,eK,iK,Iq],[[0,1],[0,1],0,0,0,[0,4],0,()=>vZ],2],tZ=[3,k,ZW,0,[PJ],[()=>$X]],nZ=[3,k,$W,0,[AG,$q],[128,64]],rZ=[3,k,tG,0,[T,hq,XK,EJ,fJ,jJ,yq,zJ,eK],[[0,1],[0,1],()=>nZ,()=>cZ,()=>LX,()=>RX,()=>zX,()=>pZ,[0,4]],2],iZ=[3,k,nG,0,[PJ],[()=>$X]],aZ=[3,k,iG,0,[T,hq,FJ,aJ,YK,MK,eK],[[0,1],[0,1],0,0,()=>vX,2,[0,4]],2],oZ=[3,k,aG,0,[PJ],[()=>$X]],sZ=[3,k,oG,0,[OJ,RJ],[0,0]],cZ=[3,k,uG,0,[jG,iJ],[()=>MZ,()=>MZ]],lZ=[3,k,sG,0,[bJ],[0]],uZ=[3,k,cG,0,[bJ],[0]],dZ=[3,k,dG,0,[_J,pJ,wK,TK,Nq],[64,64,2,2,64]],fZ=[3,k,fG,0,[_J,pJ,tK,IJ,wK,TK,Nq],[64,64,0,0,2,2,64]],pZ=[3,k,pG,0,[OK,aq,$K,Lq,nJ],[2,1,1,0,2]],mZ=[3,k,mG,0,[OK],[2]],hZ=[3,k,hG,0,[OK],[2]],gZ=[1,k,SH,0,()=>cY],_Z=[1,k,hH,0,()=>pY],vZ=[1,k,xH,0,()=>gY],yZ=[1,k,OH,0,()=>fY],bZ=[1,k,DH,0,()=>_Y],xZ=[1,k,oH,0,()=>bY],SZ=[1,k,TH,0,()=>xY],CZ=[1,k,KH,0,()=>EY],wZ=[1,k,rU,0,()=>DY],TZ=[1,k,FU,0,()=>uX],EZ=[1,k,LU,0,()=>dX],DZ=[1,k,HU,0,()=>hX],OZ=[1,k,mW,0,()=>MX],kZ=[1,k,wW,0,()=>BX],AZ=[1,k,RW,0,()=>JX],jZ=[1,k,VW,0,()=>YX],MZ=[1,k,TJ,0,()=>QX],NZ=[1,k,lG,0,()=>sZ],PZ=[9,k,lH,{[D]:[`POST`,`/clusters/{clusterName}/access-entries/{principalArn}/access-policies`,200]},()=>vY,()=>yY],FZ=[9,k,NH,{[D]:[`POST`,`/clusters/{clusterName}/access-entries`,200]},()=>FY,()=>IY],IZ=[9,k,jH,{[D]:[`POST`,`/clusters/{clusterName}/addons`,200]},()=>LY,()=>RY],LZ=[9,k,UH,{[D]:[`POST`,`/clusters`,200]},()=>zY,()=>BY],RZ=[9,k,JH,{[D]:[`POST`,`/clusters/{clusterName}/node-groups`,200]},()=>VY,()=>HY],zZ=[9,k,aU,{[D]:[`DELETE`,`/clusters/{clusterName}/access-entries/{principalArn}`,200]},()=>UY,()=>WY],BZ=[9,k,iU,{[D]:[`DELETE`,`/clusters/{clusterName}/addons/{addonName}`,200]},()=>GY,()=>KY],VZ=[9,k,EU,{[D]:[`DELETE`,`/clusters/{name}`,200]},()=>qY,()=>JY],HZ=[9,k,OU,{[D]:[`DELETE`,`/clusters/{clusterName}/node-groups/{nodegroupName}`,200]},()=>YY,()=>XY],UZ=[9,k,uU,{[D]:[`GET`,`/clusters/{clusterName}/access-entries/{principalArn}`,200]},()=>ZY,()=>QY],WZ=[9,k,xU,{[D]:[`GET`,`/clusters/{clusterName}/addons/{addonName}`,200]},()=>$Y,()=>eX],GZ=[9,k,vU,{[D]:[`GET`,`/addons/supported-versions`,200]},()=>tX,()=>nX],KZ=[9,k,DU,{[D]:[`GET`,`/clusters/{name}`,200]},()=>rX,()=>iX],qZ=[9,k,NU,{[D]:[`GET`,`/clusters/{clusterName}/node-groups/{nodegroupName}`,200]},()=>aX,()=>oX],JZ=[9,k,dU,{[D]:[`DELETE`,`/clusters/{clusterName}/access-entries/{principalArn}/access-policies/{policyArn}`,200]},()=>sX,()=>cX],YZ=[9,k,$U,{[D]:[`GET`,`/clusters/{clusterName}/access-entries`,200]},()=>yX,()=>bX],XZ=[9,k,nW,{[D]:[`GET`,`/access-policies`,200]},()=>xX,()=>SX],ZZ=[9,k,YU,{[D]:[`GET`,`/clusters/{clusterName}/addons`,200]},()=>CX,()=>wX],QZ=[9,k,XU,{[D]:[`GET`,`/clusters/{clusterName}/access-entries/{principalArn}/access-policies`,200]},()=>TX,()=>EX],$Z=[9,k,lW,{[D]:[`GET`,`/clusters`,200]},()=>DX,()=>OX],eQ=[9,k,uW,{[D]:[`GET`,`/clusters/{clusterName}/node-groups`,200]},()=>kX,()=>AX],tQ=[9,k,YW,{[D]:[`POST`,`/clusters/{clusterName}/addons/{addonName}/update`,200]},()=>eZ,()=>tZ],nQ=[9,k,eG,{[D]:[`POST`,`/clusters/{clusterName}/node-groups/{nodegroupName}/update-config`,200]},()=>rZ,()=>iZ],rQ=[9,k,rG,{[D]:[`POST`,`/clusters/{clusterName}/node-groups/{nodegroupName}/update-version`,200]},()=>aZ,()=>oZ],iQ=e=>({apiVersion:`2017-11-01`,base64Decoder:e?.base64Decoder??bt,base64Encoder:e?.base64Encoder??wt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??VV,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??vV,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new ae}],logger:e?.logger??new Be,protocol:e?.protocol??vee,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.eks`,errorTypeRegistries:aY,version:`2017-11-01`,serviceTarget:`AWSWesleyFrontend`},serviceId:e?.serviceId??`EKS`,urlParser:e?.urlParser??Qe,utf8Decoder:e?.utf8Decoder??yt,utf8Encoder:e?.utf8Encoder??St}),aQ=e=>{let t=Se(e),n=()=>t().then(He),r=iQ(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Ot,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??ge({serviceId:r.serviceId,clientVersion:SV.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??et(`Region is missing`),requestHandler:Ae.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Le),sha256:e?.sha256??se,streamCollector:e?.streamCollector??ft,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},oQ=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},sQ=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),cQ=(e,t)=>{let n=Object.assign(Ze(e),lt(e),ie(e),oQ(e));return t.forEach(e=>e.configure(n)),Object.assign(e,be(n),ht(n),Ge(n),sQ(n))},lQ=class extends Te{config;constructor(...[e]){let t=aQ(e||{});super(t),this.initConfig=t;let n=cQ(yV(We(ve(Ee(Re(ke(bV(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(de(this.config)),this.middlewareStack.use(ye(this.config)),this.middlewareStack.use(_e(this.config)),this.middlewareStack.use(Oe(this.config)),this.middlewareStack.use(me(this.config)),this.middlewareStack.use(Ie(this.config)),this.middlewareStack.use(Pe(this.config)),this.middlewareStack.use(he(this.config,{httpAuthSchemeParametersProvider:gV,identityProviderConfigProvider:async e=>new gt({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(oe(this.config))}destroy(){super.destroy()}},uQ=async(e,t,n)=>({operation:pe(t).operation,region:await xe(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function dQ(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`elasticloadbalancing`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var fQ=e=>{let t=[];switch(e.operation){default:t.push(dQ(e))}return t},pQ=e=>{let t=ue(e);return Object.assign(t,{authSchemePreference:xe(e.authSchemePreference??[])})},mQ=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`elasticloadbalancing`}),hQ={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},gQ={name:`@aws-sdk/client-elastic-load-balancing-v2`,description:`AWS SDK for JavaScript Elastic Load Balancing V2 Client for Node.js, Browser and React Native`,version:`3.1067.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo elastic-load-balancing-v2`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts --mode development`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.20`,"@aws-sdk/credential-provider-node":`^3.972.55`,"@aws-sdk/types":`^3.973.12`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-elastic-load-balancing-v2`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-elastic-load-balancing-v2`}},_Q=`ref`,vQ=-1,yQ=!0,bQ=`isSet`,xQ=`PartitionResult`,SQ=`booleanEquals`,CQ=`getAttr`,wQ={[_Q]:`Endpoint`},TQ={[_Q]:xQ},EQ={},DQ=[{[_Q]:`Region`}],OQ={conditions:[[bQ,[wQ]],[bQ,DQ],[`aws.partition`,DQ,xQ],[SQ,[{[_Q]:`UseFIPS`},yQ]],[SQ,[{[_Q]:`UseDualStack`},yQ]],[SQ,[{fn:CQ,argv:[TQ,`supportsDualStack`]},yQ]],[SQ,[{fn:CQ,argv:[TQ,`supportsFIPS`]},yQ]],[`stringEquals`,[{fn:CQ,argv:[TQ,`name`]},`aws-us-gov`]]],results:[[vQ],[vQ,`Invalid Configuration: FIPS and custom endpoint are not supported`],[vQ,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[wQ,EQ],[`https://elasticloadbalancing-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,EQ],[vQ,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://elasticloadbalancing.{Region}.amazonaws.com`,EQ],[`https://elasticloadbalancing-fips.{Region}.{PartitionResult#dnsSuffix}`,EQ],[vQ,`FIPS is enabled but this partition does not support FIPS`],[`https://elasticloadbalancing.{Region}.{PartitionResult#dualStackDnsSuffix}`,EQ],[vQ,`DualStack is enabled but this partition does not support DualStack`],[`https://elasticloadbalancing.{Region}.{PartitionResult#dnsSuffix}`,EQ],[vQ,`Invalid Configuration: Missing Region`]]},kQ=2,AQ=new Int32Array([-1,1,-1,0,13,3,1,4,100000012,2,5,100000012,3,8,6,4,7,100000011,5,100000009,100000010,4,11,9,6,10,100000008,7,100000006,100000007,5,12,100000005,6,100000004,100000005,3,100000001,14,4,100000002,100000003]),jQ=Ye.from(AQ,kQ,OQ.conditions,OQ.results),MQ=new tt({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),NQ=(e,t={})=>MQ.get(e,()=>Ke(jQ,{endpointParams:e,logger:t.logger}));it.aws=fe;var A=class e extends pt{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},PQ=class e extends A{name=`CertificateNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`CertificateNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},FQ=class e extends A{name=`ListenerNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`ListenerNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},IQ=class e extends A{name=`TooManyCertificatesException`;$fault=`client`;Message;constructor(t){super({name:`TooManyCertificatesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},LQ=class e extends A{name=`DuplicateTagKeysException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateTagKeysException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},RQ=class e extends A{name=`LoadBalancerNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`LoadBalancerNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},zQ=class e extends A{name=`RuleNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`RuleNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},BQ=class e extends A{name=`TargetGroupNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`TargetGroupNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},VQ=class e extends A{name=`TooManyTagsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTagsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},HQ=class e extends A{name=`TrustStoreNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},UQ=class e extends A{name=`InvalidRevocationContentException`;$fault=`client`;Message;constructor(t){super({name:`InvalidRevocationContentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},WQ=class e extends A{name=`RevocationContentNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`RevocationContentNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},GQ=class e extends A{name=`TooManyTrustStoreRevocationEntriesException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTrustStoreRevocationEntriesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},KQ=class e extends A{name=`AllocationIdNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`AllocationIdNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},qQ=class e extends A{name=`ALPNPolicyNotSupportedException`;$fault=`client`;Message;constructor(t){super({name:`ALPNPolicyNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},JQ=class e extends A{name=`AvailabilityZoneNotSupportedException`;$fault=`client`;Message;constructor(t){super({name:`AvailabilityZoneNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},YQ=class e extends A{name=`CaCertificatesBundleNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`CaCertificatesBundleNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},XQ=class e extends A{name=`CapacityDecreaseRequestsLimitExceededException`;$fault=`client`;Message;constructor(t){super({name:`CapacityDecreaseRequestsLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},ZQ=class e extends A{name=`CapacityReservationPendingException`;$fault=`client`;Message;constructor(t){super({name:`CapacityReservationPendingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},QQ=class e extends A{name=`CapacityUnitsLimitExceededException`;$fault=`client`;Message;constructor(t){super({name:`CapacityUnitsLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},$Q=class e extends A{name=`DuplicateListenerException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateListenerException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},e$=class e extends A{name=`IncompatibleProtocolsException`;$fault=`client`;Message;constructor(t){super({name:`IncompatibleProtocolsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},t$=class e extends A{name=`InvalidConfigurationRequestException`;$fault=`client`;Message;constructor(t){super({name:`InvalidConfigurationRequestException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},n$=class e extends A{name=`InvalidLoadBalancerActionException`;$fault=`client`;Message;constructor(t){super({name:`InvalidLoadBalancerActionException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},r$=class e extends A{name=`SSLPolicyNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`SSLPolicyNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},i$=class e extends A{name=`TargetGroupAssociationLimitException`;$fault=`client`;Message;constructor(t){super({name:`TargetGroupAssociationLimitException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},a$=class e extends A{name=`TooManyActionsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyActionsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},o$=class e extends A{name=`TooManyListenersException`;$fault=`client`;Message;constructor(t){super({name:`TooManyListenersException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},s$=class e extends A{name=`TooManyRegistrationsForTargetIdException`;$fault=`client`;Message;constructor(t){super({name:`TooManyRegistrationsForTargetIdException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},c$=class e extends A{name=`TooManyTargetsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTargetsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},l$=class e extends A{name=`TooManyUniqueTargetGroupsPerLoadBalancerException`;$fault=`client`;Message;constructor(t){super({name:`TooManyUniqueTargetGroupsPerLoadBalancerException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},u$=class e extends A{name=`TrustStoreNotReadyException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreNotReadyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},d$=class e extends A{name=`UnsupportedProtocolException`;$fault=`client`;Message;constructor(t){super({name:`UnsupportedProtocolException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},f$=class e extends A{name=`DuplicateLoadBalancerNameException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateLoadBalancerNameException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},p$=class e extends A{name=`InvalidSchemeException`;$fault=`client`;Message;constructor(t){super({name:`InvalidSchemeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},m$=class e extends A{name=`InvalidSecurityGroupException`;$fault=`client`;Message;constructor(t){super({name:`InvalidSecurityGroupException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},h$=class e extends A{name=`InvalidSubnetException`;$fault=`client`;Message;constructor(t){super({name:`InvalidSubnetException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},g$=class e extends A{name=`OperationNotPermittedException`;$fault=`client`;Message;constructor(t){super({name:`OperationNotPermittedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},_$=class e extends A{name=`ResourceInUseException`;$fault=`client`;Message;constructor(t){super({name:`ResourceInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},v$=class e extends A{name=`SubnetNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`SubnetNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},y$=class e extends A{name=`TooManyLoadBalancersException`;$fault=`client`;Message;constructor(t){super({name:`TooManyLoadBalancersException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},b$=class e extends A{name=`PriorityInUseException`;$fault=`client`;Message;constructor(t){super({name:`PriorityInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},x$=class e extends A{name=`TooManyRulesException`;$fault=`client`;Message;constructor(t){super({name:`TooManyRulesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},S$=class e extends A{name=`TooManyTargetGroupsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTargetGroupsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},C$=class e extends A{name=`DuplicateTargetGroupNameException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateTargetGroupNameException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},w$=class e extends A{name=`DuplicateTrustStoreNameException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateTrustStoreNameException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},T$=class e extends A{name=`InvalidCaCertificatesBundleException`;$fault=`client`;Message;constructor(t){super({name:`InvalidCaCertificatesBundleException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},E$=class e extends A{name=`TooManyTrustStoresException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTrustStoresException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},D$=class e extends A{name=`DeleteAssociationSameAccountException`;$fault=`client`;Message;constructor(t){super({name:`DeleteAssociationSameAccountException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},O$=class e extends A{name=`TrustStoreAssociationNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreAssociationNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},k$=class e extends A{name=`TrustStoreInUseException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},A$=class e extends A{name=`InvalidTargetException`;$fault=`client`;Message;constructor(t){super({name:`InvalidTargetException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},j$=class e extends A{name=`HealthUnavailableException`;$fault=`server`;Message;constructor(t){super({name:`HealthUnavailableException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},M$=class e extends A{name=`RevocationIdNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`RevocationIdNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},N$=class e extends A{name=`ResourceNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`ResourceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},P$=class e extends A{name=`InsufficientCapacityException`;$fault=`server`;Message;constructor(t){super({name:`InsufficientCapacityException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},F$=class e extends A{name=`PriorRequestNotCompleteException`;$fault=`client`;Message;constructor(t){super({name:`PriorRequestNotCompleteException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},I$=`Action`,L$=`AdditionalClaims`,R$=`AuthenticateCognitoActionConfig`,z$=`AuthenticateCognitoConfig`,B$=`AnomalyDetection`,V$=`AuthorizationEndpoint`,H$=`AllocationId`,U$=`AllocationIdNotFoundException`,W$=`ALPNPolicyNotSupportedException`,G$=`AdministrativeOverride`,K$=`AuthenticateOidcActionConfig`,q$=`AuthenticateOidcConfig`,J$=`AlpnPolicy`,Y$=`AuthenticationRequestExtraParams`,X$=`AddTags`,Z$=`AddTagsInput`,Q$=`AddTagsOutput`,$$=`AdvertiseTrustStoreCaNames`,e1=`AvailabilityZone`,t1=`AvailabilityZoneNotSupportedException`,n1=`AvailabilityZones`,r1=`Actions`,i1=`Attributes`,a1=`Certificates`,o1=`CertificateArn`,s1=`CaCertificatesBundleNotFoundException`,c1=`CapacityDecreaseRequestsLimitExceededException`,l1=`CanonicalHostedZoneId`,u1=`ClientId`,d1=`CertificateList`,f1=`CreateLoadBalancer`,p1=`CreateLoadBalancerInput`,m1=`CreateLoadBalancerOutput`,h1=`CreateListenerInput`,g1=`CreateListenerOutput`,_1=`CreateListener`,v1=`CertificateNotFoundException`,y1=`CustomerOwnedIpv4Pool`,b1=`CreateRule`,x1=`CreateRuleInput`,S1=`CreateRuleOutput`,C1=`CapacityReservationPendingException`,w1=`ClientSecret`,T1=`ContentType`,E1=`CreateTargetGroup`,D1=`CreateTargetGroupInput`,O1=`CreateTargetGroupOutput`,k1=`CreatedTime`,A1=`CapacityUnitsLimitExceededException`,j1=`Certificate`,M1=`Cipher`,N1=`Ciphers`,P1=`Code`,F1=`Conditions`,I1=`Description`,L1=`DefaultActions`,R1=`DeleteAssociationSameAccountException`,z1=`DeleteListener`,B1=`DeleteLoadBalancer`,V1=`DescribeLoadBalancerAttributes`,H1=`DescribeLoadBalancerAttributesInput`,U1=`DescribeLoadBalancerAttributesOutput`,W1=`DeleteLoadBalancerInput`,G1=`DescribeLoadBalancersInput`,K1=`DuplicateLoadBalancerNameException`,q1=`DeleteLoadBalancerOutput`,J1=`DescribeLoadBalancersOutput`,Y1=`DescribeLoadBalancers`,X1=`DuplicateListenerException`,Z1=`DeleteListenerInput`,Q1=`DescribeListenersInput`,$1=`DeleteListenerOutput`,e0=`DescribeListenersOutput`,t0=`DescribeListeners`,n0=`DNSName`,r0=`DeleteRule`,i0=`DeleteRuleInput`,a0=`DescribeRulesInput`,o0=`DeleteRuleOutput`,s0=`DescribeRulesOutput`,c0=`DescribeRules`,l0=`DurationSeconds`,u0=`DescribeSSLPolicies`,d0=`DescribeSSLPoliciesInput`,f0=`DescribeSSLPoliciesOutput`,p0=`DeregisterTargets`,m0=`DeleteTargetGroup`,h0=`DescribeTargetGroupAttributes`,g0=`DescribeTargetGroupAttributesInput`,_0=`DescribeTargetGroupAttributesOutput`,v0=`DeleteTargetGroupInput`,y0=`DescribeTargetGroupsInput`,b0=`DuplicateTargetGroupNameException`,x0=`DeleteTargetGroupOutput`,S0=`DescribeTargetGroupsOutput`,C0=`DescribeTargetGroups`,w0=`DescribeTargetHealth`,T0=`DescribeTargetHealthInput`,E0=`DescribeTargetHealthOutput`,D0=`DeregisterTargetsInput`,O0=`DescribeTagsInput`,k0=`DuplicateTagKeysException`,A0=`DeregisterTargetsOutput`,j0=`DescribeTagsOutput`,M0=`DuplicateTrustStoreNameException`,N0=`DescribeTags`,P0=`Enabled`,F0=`EnablePrefixForIpv6SourceNat`,I0=`EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic`,L0=`Format`,R0=`ForwardActionConfig`,z0=`ForwardConfig`,B0=`FixedResponseActionConfig`,V0=`FixedResponseConfig`,H0=`Field`,U0=`GrpcCode`,W0=`Host`,G0=`HttpCode`,K0=`HealthCheckEnabled`,q0=`HealthCheckIntervalSeconds`,J0=`HealthCheckProtocol`,Y0=`HealthCheckPort`,X0=`HealthCheckPath`,Z0=`HealthCheckTimeoutSeconds`,Q0=`HostHeaderConfig`,$0=`HostHeaderConditionConfig`,e2=`HttpHeaderConditionConfig`,t2=`HttpHeaderConfig`,n2=`HttpHeaderName`,r2=`HostHeaderRewriteConfig`,i2=`HttpRequestMethodConfig`,a2=`HttpRequestMethodConditionConfig`,o2=`HealthyThresholdCount`,s2=`HealthUnavailableException`,c2=`Issuer`,l2=`IpAddress`,u2=`IpAddressType`,d2=`InvalidCaCertificatesBundleException`,f2=`IgnoreClientCertificateExpiry`,p2=`InsufficientCapacityException`,m2=`InvalidConfigurationRequestException`,h2=`IsDefault`,g2=`Ipv4IpamPoolId`,_2=`InvalidLoadBalancerActionException`,v2=`IpamPools`,y2=`IPv6Address`,b2=`IncompatibleProtocolsException`,x2=`InvalidRevocationContentException`,S2=`InvalidSchemeException`,C2=`InvalidSubnetException`,w2=`InvalidSecurityGroupException`,T2=`InvalidTargetException`,E2=`Id`,D2=`Include`,O2=`JwksEndpoint`,k2=`JwtValidationActionAdditionalClaim`,A2=`JwtValidationActionAdditionalClaims`,j2=`JwtValidationActionConfig`,M2=`JwtValidationConfig`,N2=`Key`,P2=`Listeners`,F2=`ListenerArn`,I2=`ListenerArns`,L2=`LoadBalancers`,R2=`LoadBalancerAddresses`,z2=`LoadBalancerArn`,B2=`LoadBalancerArns`,Bse=`LoadBalancerAddress`,Vse=`LoadBalancerAttribute`,Hse=`LoadBalancerAttributes`,Use=`LoadBalancerName`,Wse=`LoadBalancerNotFoundException`,Gse=`LoadBalancerState`,Kse=`LoadBalancerType`,qse=`LoadBalancer`,Jse=`ListenerNotFoundException`,Yse=`Listener`,j=`Message`,V2=`MutualAuthentication`,Xse=`MutualAuthenticationAttributes`,Zse=`MessageBody`,Qse=`MitigationInEffect`,$se=`ModifyListener`,ece=`ModifyLoadBalancerAttributes`,tce=`ModifyLoadBalancerAttributesInput`,nce=`ModifyLoadBalancerAttributesOutput`,rce=`ModifyListenerInput`,ice=`ModifyListenerOutput`,ace=`ModifyRule`,oce=`ModifyRuleInput`,sce=`ModifyRuleOutput`,cce=`ModifyTargetGroupAttributes`,lce=`ModifyTargetGroupAttributesInput`,uce=`ModifyTargetGroupAttributesOutput`,H2=`Matcher`,U2=`Marker`,dce=`Mode`,W2=`Name`,G2=`NextMarker`,K2=`Names`,fce=`Order`,pce=`OutpostId`,mce=`OperationNotPermittedException`,q2=`OnUnauthenticatedRequest`,J2=`Priority`,Y2=`PrivateIPv4Address`,hce=`PriorityInUseException`,gce=`PathPatternConfig`,_ce=`PathPatternConditionConfig`,vce=`PriorRequestNotCompleteException`,X2=`PageSize`,Z2=`ProtocolVersion`,yce=`Path`,Q2=`Port`,$2=`Protocol`,bce=`Query`,xce=`QueryStringConfig`,Sce=`QueryStringConditionConfig`,Cce=`QuicServerId`,wce=`QueryStringKeyValuePair`,Tce=`QueryStringKeyValuePairList`,e4=`Reason`,t4=`ResourceArns`,Ece=`RedirectActionConfig`,Dce=`ResourceArn`,n4=`RuleArn`,Oce=`RuleArns`,kce=`RedirectConfig`,Ace=`RewriteConfigList`,jce=`RuleConditionList`,Mce=`RevocationContentNotFoundException`,Nce=`RewriteConfig`,Pce=`RuleCondition`,Fce=`RevocationIdNotFoundException`,Ice=`ResourceInUseException`,Lce=`ResourceNotFoundException`,Rce=`RuleNotFoundException`,zce=`RegisterTargetsInput`,Bce=`RemoveTagsInput`,Vce=`RuleTransformList`,Hce=`RegisterTargetsOutput`,Uce=`RemoveTagsOutput`,Wce=`ResetTransforms`,Gce=`RegisterTargets`,Kce=`RemoveTags`,qce=`RuleTransform`,r4=`RegexValues`,Jce=`Result`,Yce=`Regex`,Xce=`Replace`,i4=`Rewrites`,a4=`Rules`,Zce=`Rule`,o4=`State`,s4=`StatusCode`,c4=`SessionCookieName`,l4=`SecurityGroups`,Qce=`SecurityGroupIds`,u4=`SubnetId`,$ce=`SourceIpConfig`,ele=`SourceIpConditionConfig`,tle=`SupportedLoadBalancerTypes`,d4=`SubnetMappings`,nle=`SubnetMapping`,rle=`SubnetNotFoundException`,ile=`SourceNatIpv6Prefixes`,ale=`SourceNatIpv6Prefix`,f4=`SslPolicy`,p4=`SslPolicies`,ole=`SslProtocols`,sle=`SetSubnets`,cle=`SetSecurityGroups`,lle=`SetSecurityGroupsInput`,ule=`SetSecurityGroupsOutput`,dle=`SetSubnetsInput`,fle=`SSLPolicyNotFoundException`,ple=`SetSubnetsOutput`,m4=`SessionTimeout`,h4=`Scope`,g4=`Scheme`,_4=`Subnets`,v4=`Type`,y4=`TargetControlPort`,b4=`TagDescriptions`,mle=`TagDescription`,hle=`TargetDescription`,gle=`TargetDescriptions`,_le=`TokenEndpoint`,x4=`TargetGroups`,S4=`TargetGroupArn`,vle=`TargetGroupAssociationLimitException`,yle=`TargetGroupArns`,ble=`TargetGroupAttribute`,xle=`TargetGroupAttributes`,Sle=`TargetGroupList`,Cle=`TargetGroupName`,wle=`TargetGroupNotFoundException`,C4=`TargetGroupStickinessConfig`,Tle=`TargetGroupTuple`,Ele=`TargetGroup`,w4=`TargetHealth`,T4=`TargetHealthDescriptions`,Dle=`TargetHealthDescription`,Ole=`TagKeys`,kle=`TagList`,Ale=`TooManyActionsException`,jle=`TooManyCertificatesException`,Mle=`TooManyLoadBalancersException`,Nle=`TooManyListenersException`,Ple=`TooManyRulesException`,Fle=`TooManyRegistrationsForTargetIdException`,Ile=`TooManyTagsException`,Lle=`TooManyTargetsException`,Rle=`TooManyTargetGroupsException`,zle=`TooManyTrustStoresException`,Ble=`TooManyTrustStoreRevocationEntriesException`,Vle=`TooManyUniqueTargetGroupsPerLoadBalancerException`,Hle=`TrustStoreArn`,Ule=`TrustStoreAssociationNotFoundException`,Wle=`TrustStoreAssociationStatus`,Gle=`TrustStoreInUseException`,Kle=`TrustStoreNotFoundException`,qle=`TrustStoreNotReadyException`,E4=`TargetType`,D4=`Tags`,Jle=`Tag`,O4=`Targets`,Yle=`Target`,k4=`Transforms`,Xle=`UseExistingClientSecret`,Zle=`UserInfoEndpoint`,Qle=`UserPoolArn`,$le=`UserPoolClientId`,eue=`UserPoolDomain`,tue=`UnsupportedProtocolException`,A4=`UrlRewriteConfig`,j4=`UnhealthyThresholdCount`,M4=`Values`,N4=`VpcId`,P4=`Value`,nue=`Weight`,rue=`ZoneName`,M=`awsQueryError`,N=`client`,P=`error`,F=`httpError`,F4=`smithy.ts.sdk.synthetic.com.amazonaws.elasticloadbalancingv2`,I4=`server`,I=`com.amazonaws.elasticloadbalancingv2`,L4=ce.for(F4),iue=[-3,F4,`ElasticLoadBalancingV2ServiceException`,0,[],[]];L4.registerError(iue,A);var L=ce.for(I),aue=[-3,I,U$,{[M]:[`AllocationIdNotFound`,400],[P]:N,[F]:400},[j],[0]];L.registerError(aue,KQ);var oue=[-3,I,W$,{[M]:[`ALPNPolicyNotFound`,400],[P]:N,[F]:400},[j],[0]];L.registerError(oue,qQ);var sue=[-3,I,t1,{[M]:[`AvailabilityZoneNotSupported`,400],[P]:N,[F]:400},[j],[0]];L.registerError(sue,JQ);var cue=[-3,I,s1,{[M]:[`CaCertificatesBundleNotFound`,400],[P]:N,[F]:400},[j],[0]];L.registerError(cue,YQ);var lue=[-3,I,c1,{[M]:[`CapacityDecreaseRequestLimitExceeded`,400],[P]:N,[F]:400},[j],[0]];L.registerError(lue,XQ);var uue=[-3,I,C1,{[M]:[`CapacityReservationPending`,400],[P]:N,[F]:400},[j],[0]];L.registerError(uue,ZQ);var due=[-3,I,A1,{[M]:[`CapacityUnitsLimitExceeded`,400],[P]:N,[F]:400},[j],[0]];L.registerError(due,QQ);var fue=[-3,I,v1,{[M]:[`CertificateNotFound`,400],[P]:N,[F]:400},[j],[0]];L.registerError(fue,PQ);var pue=[-3,I,R1,{[M]:[`DeleteAssociationSameAccount`,400],[P]:N,[F]:400},[j],[0]];L.registerError(pue,D$);var mue=[-3,I,X1,{[M]:[`DuplicateListener`,400],[P]:N,[F]:400},[j],[0]];L.registerError(mue,$Q);var hue=[-3,I,K1,{[M]:[`DuplicateLoadBalancerName`,400],[P]:N,[F]:400},[j],[0]];L.registerError(hue,f$);var gue=[-3,I,k0,{[M]:[`DuplicateTagKeys`,400],[P]:N,[F]:400},[j],[0]];L.registerError(gue,LQ);var _ue=[-3,I,b0,{[M]:[`DuplicateTargetGroupName`,400],[P]:N,[F]:400},[j],[0]];L.registerError(_ue,C$);var vue=[-3,I,M0,{[M]:[`DuplicateTrustStoreName`,400],[P]:N,[F]:400},[j],[0]];L.registerError(vue,w$);var yue=[-3,I,s2,{[M]:[`HealthUnavailable`,500],[P]:I4,[F]:500},[j],[0]];L.registerError(yue,j$);var bue=[-3,I,b2,{[M]:[`IncompatibleProtocols`,400],[P]:N,[F]:400},[j],[0]];L.registerError(bue,e$);var xue=[-3,I,p2,{[M]:[`InsufficientCapacity`,500],[P]:I4,[F]:500},[j],[0]];L.registerError(xue,P$);var Sue=[-3,I,d2,{[M]:[`InvalidCaCertificatesBundle`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Sue,T$);var Cue=[-3,I,m2,{[M]:[`InvalidConfigurationRequest`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Cue,t$);var wue=[-3,I,_2,{[M]:[`InvalidLoadBalancerAction`,400],[P]:N,[F]:400},[j],[0]];L.registerError(wue,n$);var Tue=[-3,I,x2,{[M]:[`InvalidRevocationContent`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Tue,UQ);var Eue=[-3,I,S2,{[M]:[`InvalidScheme`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Eue,p$);var Due=[-3,I,w2,{[M]:[`InvalidSecurityGroup`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Due,m$);var Oue=[-3,I,C2,{[M]:[`InvalidSubnet`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Oue,h$);var kue=[-3,I,T2,{[M]:[`InvalidTarget`,400],[P]:N,[F]:400},[j],[0]];L.registerError(kue,A$);var Aue=[-3,I,Jse,{[M]:[`ListenerNotFound`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Aue,FQ);var jue=[-3,I,Wse,{[M]:[`LoadBalancerNotFound`,400],[P]:N,[F]:400},[j],[0]];L.registerError(jue,RQ);var Mue=[-3,I,mce,{[M]:[`OperationNotPermitted`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Mue,g$);var Nue=[-3,I,hce,{[M]:[`PriorityInUse`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Nue,b$);var Pue=[-3,I,vce,{[M]:[`PriorRequestNotComplete`,429],[P]:N,[F]:429},[j],[0]];L.registerError(Pue,F$);var Fue=[-3,I,Ice,{[M]:[`ResourceInUse`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Fue,_$);var Iue=[-3,I,Lce,{[M]:[`ResourceNotFound`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Iue,N$);var Lue=[-3,I,Mce,{[M]:[`RevocationContentNotFound`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Lue,WQ);var Rue=[-3,I,Fce,{[M]:[`RevocationIdNotFound`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Rue,M$);var zue=[-3,I,Rce,{[M]:[`RuleNotFound`,400],[P]:N,[F]:400},[j],[0]];L.registerError(zue,zQ);var Bue=[-3,I,fle,{[M]:[`SSLPolicyNotFound`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Bue,r$);var Vue=[-3,I,rle,{[M]:[`SubnetNotFound`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Vue,v$);var Hue=[-3,I,vle,{[M]:[`TargetGroupAssociationLimit`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Hue,i$);var Uue=[-3,I,wle,{[M]:[`TargetGroupNotFound`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Uue,BQ);var Wue=[-3,I,Ale,{[M]:[`TooManyActions`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Wue,a$);var Gue=[-3,I,jle,{[M]:[`TooManyCertificates`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Gue,IQ);var Kue=[-3,I,Nle,{[M]:[`TooManyListeners`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Kue,o$);var que=[-3,I,Mle,{[M]:[`TooManyLoadBalancers`,400],[P]:N,[F]:400},[j],[0]];L.registerError(que,y$);var Jue=[-3,I,Fle,{[M]:[`TooManyRegistrationsForTargetId`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Jue,s$);var Yue=[-3,I,Ple,{[M]:[`TooManyRules`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Yue,x$);var Xue=[-3,I,Ile,{[M]:[`TooManyTags`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Xue,VQ);var Zue=[-3,I,Rle,{[M]:[`TooManyTargetGroups`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Zue,S$);var Que=[-3,I,Lle,{[M]:[`TooManyTargets`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Que,c$);var $ue=[-3,I,Ble,{[M]:[`TooManyTrustStoreRevocationEntries`,400],[P]:N,[F]:400},[j],[0]];L.registerError($ue,GQ);var ede=[-3,I,zle,{[M]:[`TooManyTrustStores`,400],[P]:N,[F]:400},[j],[0]];L.registerError(ede,E$);var tde=[-3,I,Vle,{[M]:[`TooManyUniqueTargetGroupsPerLoadBalancer`,400],[P]:N,[F]:400},[j],[0]];L.registerError(tde,l$);var nde=[-3,I,Ule,{[M]:[`AssociationNotFound`,400],[P]:N,[F]:400},[j],[0]];L.registerError(nde,O$);var rde=[-3,I,Gle,{[M]:[`TrustStoreInUse`,400],[P]:N,[F]:400},[j],[0]];L.registerError(rde,k$);var ide=[-3,I,Kle,{[M]:[`TrustStoreNotFound`,400],[P]:N,[F]:400},[j],[0]];L.registerError(ide,HQ);var ade=[-3,I,qle,{[M]:[`TrustStoreNotReady`,400],[P]:N,[F]:400},[j],[0]];L.registerError(ade,u$);var ode=[-3,I,tue,{[M]:[`UnsupportedProtocol`,400],[P]:N,[F]:400},[j],[0]];L.registerError(ode,d$);var sde=[L4,L],cde=[3,I,I$,0,[v4,S4,q$,z$,fce,kce,V0,z0,M2],[0,0,()=>mde,()=>pde,1,()=>wfe,()=>efe,()=>tfe,()=>sfe],1],lde=[3,I,Z$,0,[t4,D4],[64,()=>$4],2],ude=[3,I,Q$,0,[],[]],dde=[3,I,G$,0,[o4,e4,I1],[0,0,0]],fde=[3,I,B$,0,[Jce,Qse],[0,0]],pde=[3,I,R$,0,[Qle,$le,eue,c4,h4,m4,Y$,q2],[0,0,0,0,0,1,128,0],3],mde=[3,I,K$,0,[c2,V$,_le,Zle,u1,w1,c4,h4,m4,Y$,q2,Xle],[0,0,0,0,0,0,0,0,1,128,0,2],5],hde=[3,I,e1,0,[rue,u4,pce,R2,ile],[0,0,0,()=>Zfe,64]],gde=[3,I,j1,0,[o1,h2],[0,2]],_de=[3,I,M1,0,[W2,J2],[0,1]],vde=[3,I,h1,0,[z2,L1,$2,Q2,f4,a1,J$,D4,V2],[0,()=>H4,0,1,0,()=>W4,64,()=>$4,()=>B4],2],yde=[3,I,g1,0,[P2],[()=>G4]],bde=[3,I,p1,0,[W2,_4,d4,l4,g4,D4,v4,u2,y1,F0,v2],[0,64,()=>Q4,64,0,()=>$4,0,0,0,0,()=>R4],1],xde=[3,I,m1,0,[L2],[()=>q4]],Sde=[3,I,x1,0,[F2,F1,J2,r1,D4,k4],[0,()=>Y4,1,()=>H4,()=>$4,()=>Z4],4],Cde=[3,I,S1,0,[a4],[()=>X4]],wde=[3,I,D1,0,[W2,$2,Z2,Q2,N4,J0,Y0,K0,X0,q0,Z0,o2,j4,H2,E4,D4,u2,y4],[0,0,0,1,0,0,0,2,0,1,1,1,1,()=>z4,0,()=>$4,0,1],1],Tde=[3,I,O1,0,[x4],[()=>n3]],Ede=[3,I,Z1,0,[F2],[0],1],Dde=[3,I,$1,0,[],[]],Ode=[3,I,W1,0,[z2],[0],1],kde=[3,I,q1,0,[],[]],Ade=[3,I,i0,0,[n4],[0],1],jde=[3,I,o0,0,[],[]],Mde=[3,I,v0,0,[S4],[0],1],Nde=[3,I,x0,0,[],[]],Pde=[3,I,D0,0,[S4,O4],[0,()=>e3],2],Fde=[3,I,A0,0,[],[]],Ide=[3,I,Q1,0,[z2,I2,U2,X2],[0,64,0,1]],Lde=[3,I,e0,0,[P2,G2],[()=>G4,0]],Rde=[3,I,H1,0,[z2],[0],1],zde=[3,I,U1,0,[i1],[()=>K4]],Bde=[3,I,G1,0,[B2,K2,U2,X2],[64,64,0,1]],Vde=[3,I,J1,0,[L2,G2],[()=>q4,0]],Hde=[3,I,a0,0,[F2,Oce,U2,X2],[0,64,0,1]],Ude=[3,I,s0,0,[a4,G2],[()=>X4,0]],Wde=[3,I,d0,0,[K2,U2,X2,Kse],[64,0,1,0]],Gde=[3,I,f0,0,[p4,G2],[()=>$fe,0]],Kde=[3,I,O0,0,[t4],[64],1],qde=[3,I,j0,0,[b4],[()=>epe]],Jde=[3,I,g0,0,[S4],[0],1],Yde=[3,I,_0,0,[i1],[()=>t3]],Xde=[3,I,y0,0,[z2,yle,K2,U2,X2],[0,64,64,0,1]],Zde=[3,I,S0,0,[x4,G2],[()=>n3,0]],Qde=[3,I,T0,0,[S4,O4,D2],[0,()=>e3,64],1],$de=[3,I,E0,0,[T4],[()=>npe]],efe=[3,I,B0,0,[s4,Zse,T1],[0,0,0],1],tfe=[3,I,R0,0,[x4,C4],[()=>tpe,()=>Wfe]],nfe=[3,I,$0,0,[M4,r4],[64,64]],rfe=[3,I,r2,0,[i4],[()=>J4]],ife=[3,I,e2,0,[n2,M4,r4],[0,64,64]],afe=[3,I,a2,0,[M4],[64]],R4=[3,I,v2,0,[g2],[0]],ofe=[3,I,k2,0,[L0,W2,M4],[0,0,64],3],sfe=[3,I,j2,0,[O2,c2,L$],[0,0,()=>Xfe],2],cfe=[3,I,Yse,0,[F2,z2,Q2,$2,a1,f4,L1,J$,V2],[0,0,1,0,()=>W4,0,()=>H4,64,()=>B4]],lfe=[3,I,qse,0,[z2,n0,l1,k1,Use,g4,N4,o4,v4,n1,l4,u2,y1,I0,F0,v2],[0,0,0,4,0,0,0,()=>ffe,0,()=>U4,64,0,0,0,0,()=>R4]],ufe=[3,I,Bse,0,[l2,H$,Y2,y2],[0,0,0,0]],dfe=[3,I,Vse,0,[N2,P4],[0,0]],ffe=[3,I,Gse,0,[P1,e4],[0,0]],z4=[3,I,H2,0,[G0,U0],[0,0]],pfe=[3,I,rce,0,[F2,Q2,$2,f4,a1,L1,J$,V2],[0,1,0,0,()=>W4,()=>H4,64,()=>B4],1],mfe=[3,I,ice,0,[P2],[()=>G4]],hfe=[3,I,tce,0,[z2,i1],[0,()=>K4],2],gfe=[3,I,nce,0,[i1],[()=>K4]],_fe=[3,I,oce,0,[n4,F1,r1,k4,Wce],[0,()=>Y4,()=>H4,()=>Z4,2],1],vfe=[3,I,sce,0,[a4],[()=>X4]],yfe=[3,I,lce,0,[S4,i1],[0,()=>t3],2],bfe=[3,I,uce,0,[i1],[()=>t3]],B4=[3,I,Xse,0,[dce,Hle,f2,Wle,$$],[0,0,2,0,0]],xfe=[3,I,_ce,0,[M4,r4],[64,64]],Sfe=[3,I,Sce,0,[M4],[()=>Qfe]],Cfe=[3,I,wce,0,[N2,P4],[0,0]],wfe=[3,I,Ece,0,[s4,$2,Q2,W0,yce,bce],[0,0,0,0,0,0],1],Tfe=[3,I,zce,0,[S4,O4],[0,()=>e3],2],Efe=[3,I,Hce,0,[],[]],Dfe=[3,I,Bce,0,[t4,Ole],[64,64],2],Ofe=[3,I,Uce,0,[],[]],kfe=[3,I,Nce,0,[Yce,Xce],[0,0],2],Afe=[3,I,Zce,0,[n4,J2,F1,r1,h2,k4],[0,0,()=>Y4,()=>H4,2,()=>Z4]],jfe=[3,I,Pce,0,[H0,M4,Q0,gce,t2,xce,i2,$ce,r4],[0,64,()=>nfe,()=>xfe,()=>ife,()=>Sfe,()=>afe,()=>Lfe,64]],Mfe=[3,I,qce,0,[v4,r2,A4],[0,()=>rfe,()=>Jfe],1],Nfe=[3,I,lle,0,[z2,l4,I0],[0,64,0],2],Pfe=[3,I,ule,0,[Qce,I0],[64,0]],Ffe=[3,I,dle,0,[z2,_4,d4,u2,F0],[0,64,()=>Q4,0,0],1],Ife=[3,I,ple,0,[n1,u2,F0],[()=>U4,0,0]],Lfe=[3,I,ele,0,[M4],[64]],Rfe=[3,I,f4,0,[ole,N1,W2,tle],[64,()=>Yfe,0,64]],zfe=[3,I,nle,0,[u4,H$,Y2,y2,ale],[0,0,0,0,0]],Bfe=[3,I,Jle,0,[N2,P4],[0,0],1],Vfe=[3,I,mle,0,[Dce,D4],[0,()=>$4]],V4=[3,I,hle,0,[E2,Q2,e1,Cce],[0,1,0,0],1],Hfe=[3,I,Ele,0,[S4,Cle,$2,Q2,N4,J0,Y0,K0,q0,Z0,o2,j4,X0,H2,B2,E4,Z2,u2,y4],[0,0,0,1,0,0,0,2,1,1,1,1,0,()=>z4,64,0,0,0,1]],Ufe=[3,I,ble,0,[N2,P4],[0,0]],Wfe=[3,I,C4,0,[P0,l0],[2,1]],Gfe=[3,I,Tle,0,[S4,nue],[0,1]],Kfe=[3,I,w4,0,[o4,e4,I1],[0,0,0]],qfe=[3,I,Dle,0,[Yle,Y0,w4,B$,G$],[()=>V4,0,()=>Kfe,()=>fde,()=>dde]],Jfe=[3,I,A4,0,[i4],[()=>J4]],H4=[1,I,r1,0,()=>cde],U4=[1,I,n1,0,()=>hde],W4=[1,I,d1,0,()=>gde],Yfe=[1,I,N1,0,()=>_de],Xfe=[1,I,A2,0,()=>ofe],G4=[1,I,P2,0,()=>cfe],Zfe=[1,I,R2,0,()=>ufe],K4=[1,I,Hse,0,()=>dfe],q4=[1,I,L2,0,()=>lfe],Qfe=[1,I,Tce,0,()=>Cfe],J4=[1,I,Ace,0,()=>kfe],Y4=[1,I,jce,0,()=>jfe],X4=[1,I,a4,0,()=>Afe],Z4=[1,I,Vce,0,()=>Mfe],$fe=[1,I,p4,0,()=>Rfe],Q4=[1,I,d4,0,()=>zfe],epe=[1,I,b4,0,()=>Vfe],$4=[1,I,kle,0,()=>Bfe],e3=[1,I,gle,0,()=>V4],t3=[1,I,xle,0,()=>Ufe],tpe=[1,I,Sle,0,()=>Gfe],n3=[1,I,x4,0,()=>Hfe],npe=[1,I,T4,0,()=>qfe],rpe=[9,I,X$,0,()=>lde,()=>ude],ipe=[9,I,_1,0,()=>vde,()=>yde],ape=[9,I,f1,0,()=>bde,()=>xde],ope=[9,I,b1,0,()=>Sde,()=>Cde],spe=[9,I,E1,0,()=>wde,()=>Tde],cpe=[9,I,z1,0,()=>Ede,()=>Dde],lpe=[9,I,B1,0,()=>Ode,()=>kde],upe=[9,I,r0,0,()=>Ade,()=>jde],dpe=[9,I,m0,0,()=>Mde,()=>Nde],fpe=[9,I,p0,0,()=>Pde,()=>Fde],ppe=[9,I,t0,0,()=>Ide,()=>Lde],mpe=[9,I,V1,0,()=>Rde,()=>zde],hpe=[9,I,Y1,0,()=>Bde,()=>Vde],gpe=[9,I,c0,0,()=>Hde,()=>Ude],_pe=[9,I,u0,0,()=>Wde,()=>Gde],vpe=[9,I,N0,0,()=>Kde,()=>qde],ype=[9,I,h0,0,()=>Jde,()=>Yde],bpe=[9,I,C0,0,()=>Xde,()=>Zde],xpe=[9,I,w0,0,()=>Qde,()=>$de],Spe=[9,I,$se,0,()=>pfe,()=>mfe],Cpe=[9,I,ece,0,()=>hfe,()=>gfe],wpe=[9,I,ace,0,()=>_fe,()=>vfe],Tpe=[9,I,cce,0,()=>yfe,()=>bfe],Epe=[9,I,Gce,0,()=>Tfe,()=>Efe],Dpe=[9,I,Kce,0,()=>Dfe,()=>Ofe],Ope=[9,I,cle,0,()=>Nfe,()=>Pfe],kpe=[9,I,sle,0,()=>Ffe,()=>Ife],Ape=e=>({apiVersion:`2015-12-01`,base64Decoder:e?.base64Decoder??bt,base64Encoder:e?.base64Encoder??wt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??NQ,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??fQ,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new ae}],logger:e?.logger??new Be,protocol:e?.protocol??qe,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.elasticloadbalancingv2`,errorTypeRegistries:sde,xmlNamespace:`http://elasticloadbalancing.amazonaws.com/doc/2015-12-01/`,version:`2015-12-01`,serviceTarget:`ElasticLoadBalancing_v10`},serviceId:e?.serviceId??`Elastic Load Balancing v2`,urlParser:e?.urlParser??Qe,utf8Decoder:e?.utf8Decoder??yt,utf8Encoder:e?.utf8Encoder??St}),jpe=e=>{let t=Se(e),n=()=>t().then(He),r=Ape(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Ot,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??ge({serviceId:r.serviceId,clientVersion:gQ.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??et(`Region is missing`),requestHandler:Ae.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Le),sha256:e?.sha256??se,streamCollector:e?.streamCollector??ft,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},Mpe=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},Npe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Ppe=(e,t)=>{let n=Object.assign(Ze(e),lt(e),ie(e),Mpe(e));return t.forEach(e=>e.configure(n)),Object.assign(e,be(n),ht(n),Ge(n),Npe(n))},Fpe=class extends Te{config;constructor(...[e]){let t=jpe(e||{});super(t),this.initConfig=t;let n=Ppe(pQ(We(ve(Ee(Re(ke(mQ(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(de(this.config)),this.middlewareStack.use(ye(this.config)),this.middlewareStack.use(_e(this.config)),this.middlewareStack.use(Oe(this.config)),this.middlewareStack.use(me(this.config)),this.middlewareStack.use(Ie(this.config)),this.middlewareStack.use(Pe(this.config)),this.middlewareStack.use(he(this.config,{httpAuthSchemeParametersProvider:uQ,identityProviderConfigProvider:async e=>new gt({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(oe(this.config))}destroy(){super.destroy()}},Ipe=async(e,t,n)=>({operation:pe(t).operation,region:await xe(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Lpe(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`iam`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var Rpe=e=>{let t=[];switch(e.operation){default:t.push(Lpe(e))}return t},zpe=e=>{let t=ue(e);return Object.assign(t,{authSchemePreference:xe(e.authSchemePreference??[])})},Bpe=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`iam`}),Vpe={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},Hpe={name:`@aws-sdk/client-iam`,description:`AWS SDK for JavaScript Iam Client for Node.js, Browser and React Native`,version:`3.1067.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo iam`,test:`yarn g:vitest run --passWithNoTests`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts --mode development`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`,"test:integration":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:watch":`yarn g:vitest watch --passWithNoTests`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.20`,"@aws-sdk/credential-provider-node":`^3.972.55`,"@aws-sdk/types":`^3.973.12`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@smithy/snapshot-testing":`^2.1.7`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-iam`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-iam`}},r3=`ref`,i3=`authSchemes`,a3=`name`,o3=`signingRegion`,s3=-1,c3=!0,l3=`isSet`,u3=`PartitionResult`,d3=`booleanEquals`,f3=`stringEquals`,p3=`getAttr`,m3=`sigv4`,h3={[r3]:`Endpoint`},g3={fn:p3,argv:[{[r3]:u3},`name`]},_3={[r3]:u3},v3={[i3]:[{[a3]:m3,[o3]:`us-east-1`}]},y3={[i3]:[{[a3]:m3,[o3]:`cn-north-1`}]},b3={[i3]:[{[a3]:m3,[o3]:`us-gov-west-1`}]},x3={[i3]:[{[a3]:m3,[o3]:`us-iso-east-1`}]},S3={[i3]:[{[a3]:m3,[o3]:`us-isob-east-1`}]},C3={[i3]:[{[a3]:m3,[o3]:`{PartitionResult#implicitGlobalRegion}`}]},w3=[{[r3]:`Region`}],T3={conditions:[[l3,[h3]],[l3,w3],[`aws.partition`,w3,u3],[d3,[{[r3]:`UseFIPS`},c3]],[d3,[{[r3]:`UseDualStack`},c3]],[f3,[g3,`aws`]],[f3,[g3,`aws-cn`]],[f3,[g3,`aws-us-gov`]],[d3,[{fn:p3,argv:[_3,`supportsDualStack`]},c3]],[f3,[g3,`aws-iso`]],[f3,[g3,`aws-iso-b`]],[d3,[{fn:p3,argv:[_3,`supportsFIPS`]},c3]],[f3,[g3,`aws-iso-e`]],[f3,[g3,`aws-iso-f`]],[f3,[g3,`aws-eusc`]]],results:[[s3],[s3,`Invalid Configuration: FIPS and custom endpoint are not supported`],[s3,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[h3,{}],[`https://iam.global.api.aws`,v3],[`https://iam-fips.global.api.aws`,v3],[`https://iam.global.api.amazonwebservices.com.cn`,y3],[`https://iam.cn-north-1.amazonaws.com.cn`,y3],[`https://iam.us-gov.api.aws`,b3],[`https://iam.us-gov.amazonaws.com`,b3],[`https://iam.us-iso-east-1.c2s.ic.gov`,x3],[`https://iam-fips.us-iso-east-1.c2s.ic.gov`,x3],[`https://iam.us-isob-east-1.sc2s.sgov.gov`,S3],[`https://iam-fips.us-isob-east-1.sc2s.sgov.gov`,S3],[`https://iam.eu-isoe-west-1.cloud.adc-e.uk`,{[i3]:[{[a3]:m3,[o3]:`eu-isoe-west-1`}]}],[`https://iam.us-isof-south-1.csp.hci.ic.gov`,{[i3]:[{[a3]:m3,[o3]:`us-isof-south-1`}]}],[`https://iam.eusc-de-east-1.amazonaws.eu`,{[i3]:[{[a3]:m3,[o3]:`eusc-de-east-1`}]}],[`https://iam-fips.{PartitionResult#dualStackDnsSuffix}`,C3],[s3,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://iam-fips.{PartitionResult#dnsSuffix}`,C3],[s3,`FIPS is enabled but this partition does not support FIPS`],[`https://iam.{PartitionResult#dualStackDnsSuffix}`,C3],[s3,`DualStack is enabled but this partition does not support DualStack`],[`https://iam.{PartitionResult#dnsSuffix}`,C3],[s3,`Invalid Configuration: Missing Region`]]},Upe=2,Wpe=new Int32Array([-1,1,-1,0,27,3,1,4,100000024,2,5,100000024,3,18,6,4,14,7,6,100000007,8,7,100000009,9,9,100000010,10,10,100000012,11,12,100000014,12,13,100000015,13,14,100000016,100000023,5,100000004,15,6,100000006,16,7,100000008,17,8,100000021,100000022,4,23,19,7,100000009,20,9,100000011,21,10,100000013,22,11,100000019,100000020,5,100000005,24,7,100000008,25,8,26,100000018,11,100000017,100000018,3,100000001,28,4,100000002,100000003]),Gpe=Ye.from(Wpe,Upe,T3.conditions,T3.results),Kpe=new tt({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),qpe=(e,t={})=>Kpe.get(e,()=>Ke(Gpe,{endpointParams:e,logger:t.logger}));it.aws=fe;var R=class e extends pt{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},Jpe=class e extends R{name=`ConcurrentModificationException`;$fault=`client`;constructor(t){super({name:`ConcurrentModificationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Ype=class e extends R{name=`NoSuchEntityException`;$fault=`client`;constructor(t){super({name:`NoSuchEntityException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Xpe=class e extends R{name=`ServiceFailureException`;$fault=`server`;constructor(t){super({name:`ServiceFailureException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},Zpe=class e extends R{name=`AccountNotManagementOrDelegatedAdministratorException`;$fault=`client`;Message;constructor(t){super({name:`AccountNotManagementOrDelegatedAdministratorException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Qpe=class e extends R{name=`InvalidInputException`;$fault=`client`;constructor(t){super({name:`InvalidInputException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},$pe=class e extends R{name=`LimitExceededException`;$fault=`client`;constructor(t){super({name:`LimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},eme=class e extends R{name=`EntityAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`EntityAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},tme=class e extends R{name=`UnmodifiableEntityException`;$fault=`client`;constructor(t){super({name:`UnmodifiableEntityException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},nme=class e extends R{name=`PolicyNotAttachableException`;$fault=`client`;constructor(t){super({name:`PolicyNotAttachableException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},rme=class e extends R{name=`EntityTemporarilyUnmodifiableException`;$fault=`client`;constructor(t){super({name:`EntityTemporarilyUnmodifiableException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ime=class e extends R{name=`InvalidUserTypeException`;$fault=`client`;constructor(t){super({name:`InvalidUserTypeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ame=class e extends R{name=`PasswordPolicyViolationException`;$fault=`client`;constructor(t){super({name:`PasswordPolicyViolationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ome=class e extends R{name=`OpenIdIdpCommunicationErrorException`;$fault=`client`;constructor(t){super({name:`OpenIdIdpCommunicationErrorException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},sme=class e extends R{name=`MalformedPolicyDocumentException`;$fault=`client`;constructor(t){super({name:`MalformedPolicyDocumentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},cme=class e extends R{name=`ServiceNotSupportedException`;$fault=`client`;constructor(t){super({name:`ServiceNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},lme=class e extends R{name=`DeleteConflictException`;$fault=`client`;constructor(t){super({name:`DeleteConflictException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ume=class e extends R{name=`OrganizationNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`OrganizationNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},dme=class e extends R{name=`OrganizationNotInAllFeaturesModeException`;$fault=`client`;Message;constructor(t){super({name:`OrganizationNotInAllFeaturesModeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},fme=class e extends R{name=`ServiceAccessNotEnabledException`;$fault=`client`;Message;constructor(t){super({name:`ServiceAccessNotEnabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},pme=class e extends R{name=`FeatureDisabledException`;$fault=`client`;constructor(t){super({name:`FeatureDisabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},mme=class e extends R{name=`InvalidAuthenticationCodeException`;$fault=`client`;constructor(t){super({name:`InvalidAuthenticationCodeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},hme=class e extends R{name=`CallerIsNotManagementAccountException`;$fault=`client`;Message;constructor(t){super({name:`CallerIsNotManagementAccountException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},gme=class e extends R{name=`FeatureEnabledException`;$fault=`client`;constructor(t){super({name:`FeatureEnabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},_me=class e extends R{name=`ReportGenerationLimitExceededException`;$fault=`client`;constructor(t){super({name:`ReportGenerationLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},vme=class e extends R{name=`CredentialReportExpiredException`;$fault=`client`;constructor(t){super({name:`CredentialReportExpiredException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},yme=class e extends R{name=`CredentialReportNotPresentException`;$fault=`client`;constructor(t){super({name:`CredentialReportNotPresentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},bme=class e extends R{name=`CredentialReportNotReadyException`;$fault=`client`;constructor(t){super({name:`CredentialReportNotReadyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},xme=class e extends R{name=`UnrecognizedPublicKeyEncodingException`;$fault=`client`;constructor(t){super({name:`UnrecognizedPublicKeyEncodingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Sme=class e extends R{name=`PolicyEvaluationException`;$fault=`server`;constructor(t){super({name:`PolicyEvaluationException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},Cme=class e extends R{name=`KeyPairMismatchException`;$fault=`client`;constructor(t){super({name:`KeyPairMismatchException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},wme=class e extends R{name=`MalformedCertificateException`;$fault=`client`;constructor(t){super({name:`MalformedCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Tme=class e extends R{name=`DuplicateCertificateException`;$fault=`client`;constructor(t){super({name:`DuplicateCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Eme=class e extends R{name=`InvalidCertificateException`;$fault=`client`;constructor(t){super({name:`InvalidCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Dme=class e extends R{name=`DuplicateSSHPublicKeyException`;$fault=`client`;constructor(t){super({name:`DuplicateSSHPublicKeyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Ome=class e extends R{name=`InvalidPublicKeyException`;$fault=`client`;constructor(t){super({name:`InvalidPublicKeyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},E3=`Arn`,kme=`AttachmentCount`,D3=`AccessKey`,O3=`AccessKeyId`,k3=`AccessKeyMetadata`,Ame=`AccountNotManagementOrDelegatedAdministratorException`,jme=`AttachedPolicy`,Mme=`AttachedPermissionsBoundary`,A3=`AttachedPolicies`,Nme=`AttachRolePolicy`,j3=`AssumeRolePolicyDocument`,Pme=`AttachRolePolicyRequest`,Fme=`AddRoleToInstanceProfile`,Ime=`AddRoleToInstanceProfileRequest`,Lme=`AttachUserPolicy`,Rme=`AttachUserPolicyRequest`,zme=`CreateAccessKey`,Bme=`CreateAccessKeyRequest`,Vme=`CreateAccessKeyResponse`,M3=`CreateDate`,Hme=`CallerIsNotManagementAccountException`,Ume=`CreateInstanceProfile`,Wme=`CreateInstanceProfileRequest`,Gme=`CreateInstanceProfileResponse`,Kme=`ConcurrentModificationException`,qme=`CreatePolicyRequest`,Jme=`CreatePolicyResponse`,Yme=`CreatePolicy`,Xme=`CreateRole`,Zme=`CredentialReportExpiredException`,Qme=`CredentialReportNotPresentException`,$me=`CredentialReportNotReadyException`,ehe=`CreateRoleRequest`,the=`CreateRoleResponse`,nhe=`CreateUser`,rhe=`CreateUserRequest`,ihe=`CreateUserResponse`,N3=`Description`,ahe=`DeleteAccessKey`,ohe=`DeleteAccessKeyRequest`,she=`DeleteConflictException`,che=`DuplicateCertificateException`,lhe=`DeleteInstanceProfile`,uhe=`DeleteInstanceProfileRequest`,dhe=`DeletePolicyRequest`,fhe=`DeletePolicy`,phe=`DetachRolePolicyRequest`,mhe=`DetachRolePolicy`,hhe=`DeleteRoleRequest`,ghe=`DeleteRole`,_he=`DuplicateSSHPublicKeyException`,vhe=`DeleteUser`,yhe=`DetachUserPolicyRequest`,bhe=`DetachUserPolicy`,xhe=`DeleteUserRequest`,She=`DefaultVersionId`,Che=`Document`,whe=`EntityAlreadyExistsException`,The=`EntityTemporarilyUnmodifiableException`,Ehe=`FeatureDisabledException`,Dhe=`FeatureEnabledException`,Ohe=`GetInstanceProfile`,khe=`GetInstanceProfileRequest`,Ahe=`GetInstanceProfileResponse`,jhe=`GetPolicy`,Mhe=`GetPolicyRequest`,Nhe=`GetPolicyResponse`,Phe=`GetPolicyVersion`,Fhe=`GetPolicyVersionRequest`,Ihe=`GetPolicyVersionResponse`,Lhe=`GetRole`,Rhe=`GetRoleRequest`,zhe=`GetRoleResponse`,Bhe=`GetUser`,Vhe=`GetUserRequest`,Hhe=`GetUserResponse`,Uhe=`IsAttachable`,Whe=`InvalidAuthenticationCodeException`,Ghe=`InvalidCertificateException`,Khe=`IsDefaultVersion`,qhe=`InvalidInputException`,P3=`InstanceProfile`,Jhe=`InstanceProfileId`,Yhe=`InvalidPublicKeyException`,F3=`InstanceProfileName`,I3=`InstanceProfiles`,L3=`IsTruncated`,Xhe=`InvalidUserTypeException`,Zhe=`Key`,Qhe=`KeyPairMismatchException`,$he=`ListAccessKeys`,ege=`ListAccessKeysRequest`,tge=`ListAccessKeysResponse`,nge=`ListAttachedRolePolicies`,rge=`ListAttachedRolePoliciesRequest`,ige=`ListAttachedRolePoliciesResponse`,age=`ListAttachedUserPolicies`,oge=`ListAttachedUserPoliciesRequest`,sge=`ListAttachedUserPoliciesResponse`,cge=`LimitExceededException`,lge=`ListInstanceProfiles`,uge=`ListInstanceProfilesForRole`,dge=`ListInstanceProfilesForRoleRequest`,fge=`ListInstanceProfilesForRoleResponse`,pge=`ListInstanceProfilesRequest`,mge=`ListInstanceProfilesResponse`,hge=`ListPoliciesRequest`,gge=`ListPoliciesResponse`,_ge=`ListPolicies`,vge=`ListRoles`,yge=`ListRolesRequest`,bge=`ListRolesResponse`,xge=`ListUsers`,Sge=`LastUsedDate`,Cge=`ListUsersRequest`,wge=`ListUsersResponse`,R3=`Message`,Tge=`MalformedCertificateException`,z3=`MaxItems`,Ege=`MalformedPolicyDocumentException`,B3=`MaxSessionDuration`,V3=`Marker`,Dge=`NoSuchEntityException`,Oge=`OnlyAttached`,kge=`OpenIdIdpCommunicationErrorException`,Age=`OrganizationNotFoundException`,jge=`OrganizationNotInAllFeaturesModeException`,H3=`PolicyArn`,U3=`PermissionsBoundary`,Mge=`PermissionsBoundaryArn`,Nge=`PermissionsBoundaryType`,Pge=`PermissionsBoundaryUsageCount`,Fge=`PolicyDocument`,Ige=`PolicyEvaluationException`,Lge=`PolicyId`,Rge=`PasswordLastUsed`,W3=`PolicyName`,zge=`PolicyNotAttachableException`,Bge=`PasswordPolicyViolationException`,G3=`PathPrefix`,Vge=`PolicyUsageFilter`,K3=`PolicyVersion`,q3=`Path`,J3=`Policy`,Hge=`Policies`,Uge=`Region`,Wge=`ReportGenerationLimitExceededException`,Gge=`RoleId`,Y3=`RoleLastUsed`,X3=`RoleName`,Kge=`RemoveRoleFromInstanceProfile`,qge=`RemoveRoleFromInstanceProfileRequest`,Z3=`Role`,Q3=`Roles`,$3=`Status`,Jge=`SecretAccessKey`,Yge=`ServiceAccessNotEnabledException`,Xge=`ServiceFailureException`,Zge=`ServiceNotSupportedException`,Qge=`Scope`,e6=`Tags`,$ge=`Tag`,e_e=`UpdateAccessKey`,t_e=`UpdateAccessKeyRequest`,n_e=`UpdateDate`,r_e=`UnmodifiableEntityException`,i_e=`UserId`,t6=`UserName`,a_e=`UnrecognizedPublicKeyEncodingException`,n6=`User`,o_e=`Users`,r6=`VersionId`,s_e=`Value`,c_e=`accessKeyMetadataListType`,l_e=`accessKeySecretType`,u_e=`attachedPoliciesListType`,z=`awsQueryError`,B=`client`,V=`error`,H=`httpError`,d_e=`instanceProfileListType`,U=`message`,f_e=`policyListType`,p_e=`roleListType`,i6=`smithy.ts.sdk.synthetic.com.amazonaws.iam`,a6=`server`,m_e=`tagListType`,h_e=`userListType`,W=`com.amazonaws.iam`,o6=ce.for(i6),g_e=[-3,i6,`IAMServiceException`,0,[],[]];o6.registerError(g_e,R);var G=ce.for(W),__e=[-3,W,Ame,{[V]:B,[H]:400},[R3],[0]];G.registerError(__e,Zpe);var v_e=[-3,W,Hme,{[V]:B,[H]:400},[R3],[0]];G.registerError(v_e,hme);var y_e=[-3,W,Kme,{[z]:[`ConcurrentModification`,409],[V]:B,[H]:409},[U],[0]];G.registerError(y_e,Jpe);var b_e=[-3,W,Zme,{[z]:[`ReportExpired`,410],[V]:B,[H]:410},[U],[0]];G.registerError(b_e,vme);var x_e=[-3,W,Qme,{[z]:[`ReportNotPresent`,410],[V]:B,[H]:410},[U],[0]];G.registerError(x_e,yme);var S_e=[-3,W,$me,{[z]:[`ReportInProgress`,404],[V]:B,[H]:404},[U],[0]];G.registerError(S_e,bme);var C_e=[-3,W,she,{[z]:[`DeleteConflict`,409],[V]:B,[H]:409},[U],[0]];G.registerError(C_e,lme);var w_e=[-3,W,che,{[z]:[`DuplicateCertificate`,409],[V]:B,[H]:409},[U],[0]];G.registerError(w_e,Tme);var T_e=[-3,W,_he,{[z]:[`DuplicateSSHPublicKey`,400],[V]:B,[H]:400},[U],[0]];G.registerError(T_e,Dme);var E_e=[-3,W,whe,{[z]:[`EntityAlreadyExists`,409],[V]:B,[H]:409},[U],[0]];G.registerError(E_e,eme);var D_e=[-3,W,The,{[z]:[`EntityTemporarilyUnmodifiable`,409],[V]:B,[H]:409},[U],[0]];G.registerError(D_e,rme);var O_e=[-3,W,Ehe,{[z]:[`FeatureDisabled`,404],[V]:B,[H]:404},[U],[0]];G.registerError(O_e,pme);var k_e=[-3,W,Dhe,{[z]:[`FeatureEnabled`,409],[V]:B,[H]:409},[U],[0]];G.registerError(k_e,gme);var A_e=[-3,W,Whe,{[z]:[`InvalidAuthenticationCode`,403],[V]:B,[H]:403},[U],[0]];G.registerError(A_e,mme);var j_e=[-3,W,Ghe,{[z]:[`InvalidCertificate`,400],[V]:B,[H]:400},[U],[0]];G.registerError(j_e,Eme);var M_e=[-3,W,qhe,{[z]:[`InvalidInput`,400],[V]:B,[H]:400},[U],[0]];G.registerError(M_e,Qpe);var N_e=[-3,W,Yhe,{[z]:[`InvalidPublicKey`,400],[V]:B,[H]:400},[U],[0]];G.registerError(N_e,Ome);var P_e=[-3,W,Xhe,{[z]:[`InvalidUserType`,400],[V]:B,[H]:400},[U],[0]];G.registerError(P_e,ime);var F_e=[-3,W,Qhe,{[z]:[`KeyPairMismatch`,400],[V]:B,[H]:400},[U],[0]];G.registerError(F_e,Cme);var I_e=[-3,W,cge,{[z]:[`LimitExceeded`,409],[V]:B,[H]:409},[U],[0]];G.registerError(I_e,$pe);var L_e=[-3,W,Tge,{[z]:[`MalformedCertificate`,400],[V]:B,[H]:400},[U],[0]];G.registerError(L_e,wme);var R_e=[-3,W,Ege,{[z]:[`MalformedPolicyDocument`,400],[V]:B,[H]:400},[U],[0]];G.registerError(R_e,sme);var z_e=[-3,W,Dge,{[z]:[`NoSuchEntity`,404],[V]:B,[H]:404},[U],[0]];G.registerError(z_e,Ype);var B_e=[-3,W,kge,{[z]:[`OpenIdIdpCommunicationError`,400],[V]:B,[H]:400},[U],[0]];G.registerError(B_e,ome);var V_e=[-3,W,Age,{[V]:B,[H]:400},[R3],[0]];G.registerError(V_e,ume);var H_e=[-3,W,jge,{[V]:B,[H]:400},[R3],[0]];G.registerError(H_e,dme);var U_e=[-3,W,Bge,{[z]:[`PasswordPolicyViolation`,400],[V]:B,[H]:400},[U],[0]];G.registerError(U_e,ame);var W_e=[-3,W,Ige,{[z]:[`PolicyEvaluation`,500],[V]:a6,[H]:500},[U],[0]];G.registerError(W_e,Sme);var G_e=[-3,W,zge,{[z]:[`PolicyNotAttachable`,400],[V]:B,[H]:400},[U],[0]];G.registerError(G_e,nme);var K_e=[-3,W,Wge,{[z]:[`ReportGenerationLimitExceeded`,409],[V]:B,[H]:409},[U],[0]];G.registerError(K_e,_me);var q_e=[-3,W,Yge,{[V]:B,[H]:400},[R3],[0]];G.registerError(q_e,fme);var J_e=[-3,W,Xge,{[z]:[`ServiceFailure`,500],[V]:a6,[H]:500},[U],[0]];G.registerError(J_e,Xpe);var Y_e=[-3,W,Zge,{[z]:[`NotSupportedService`,404],[V]:B,[H]:404},[U],[0]];G.registerError(Y_e,cme);var X_e=[-3,W,r_e,{[z]:[`UnmodifiableEntity`,400],[V]:B,[H]:400},[U],[0]];G.registerError(X_e,tme);var Z_e=[-3,W,a_e,{[z]:[`UnrecognizedPublicKeyEncoding`,400],[V]:B,[H]:400},[U],[0]];G.registerError(Z_e,xme);var Q_e=[o6,G],$_e=[0,W,l_e,8,0],eve=[3,W,D3,0,[t6,O3,$3,Jge,M3],[0,0,0,[()=>$_e,0],4],4],tve=[3,W,k3,0,[t6,O3,$3,M3],[0,0,0,4]],nve=[3,W,Ime,0,[F3,X3],[0,0],2],s6=[3,W,Mme,0,[Nge,Mge],[0,0]],rve=[3,W,jme,0,[W3,H3],[0,0]],ive=[3,W,Pme,0,[X3,H3],[0,0],2],ave=[3,W,Rme,0,[t6,H3],[0,0],2],ove=[3,W,Bme,0,[t6],[0]],sve=[3,W,Vme,0,[D3],[[()=>eve,0]],1],cve=[3,W,Wme,0,[F3,q3,e6],[0,0,()=>g6],1],lve=[3,W,Gme,0,[P3],[()=>c6],1],uve=[3,W,qme,0,[W3,Fge,q3,N3,e6],[0,0,0,0,()=>g6],2],dve=[3,W,Jme,0,[J3],[()=>l6]],fve=[3,W,ehe,0,[X3,j3,q3,N3,B3,U3,e6],[0,0,0,0,1,0,()=>g6],2],pve=[3,W,the,0,[Z3],[()=>u6],1],mve=[3,W,rhe,0,[t6,q3,U3,e6],[0,0,0,()=>g6],1],hve=[3,W,ihe,0,[n6],[()=>d6]],gve=[3,W,ohe,0,[O3,t6],[0,0],1],_ve=[3,W,uhe,0,[F3],[0],1],vve=[3,W,dhe,0,[H3],[0],1],yve=[3,W,hhe,0,[X3],[0],1],bve=[3,W,xhe,0,[t6],[0],1],xve=[3,W,phe,0,[X3,H3],[0,0],2],Sve=[3,W,yhe,0,[t6,H3],[0,0],2],Cve=[3,W,khe,0,[F3],[0],1],wve=[3,W,Ahe,0,[P3],[()=>c6],1],Tve=[3,W,Mhe,0,[H3],[0],1],Eve=[3,W,Nhe,0,[J3],[()=>l6]],Dve=[3,W,Fhe,0,[H3,r6],[0,0],2],Ove=[3,W,Ihe,0,[K3],[()=>Yve]],kve=[3,W,Rhe,0,[X3],[0],1],Ave=[3,W,zhe,0,[Z3],[()=>u6],1],jve=[3,W,Vhe,0,[t6],[0]],Mve=[3,W,Hhe,0,[n6],[()=>d6],1],c6=[3,W,P3,0,[q3,F3,Jhe,E3,M3,Q3,e6],[0,0,0,0,4,()=>h6,()=>g6],6],Nve=[3,W,ege,0,[t6,V3,z3],[0,0,1]],Pve=[3,W,tge,0,[k3,L3,V3],[()=>eye,2,0],1],Fve=[3,W,rge,0,[X3,G3,V3,z3],[0,0,0,1],1],Ive=[3,W,ige,0,[A3,L3,V3],[()=>p6,2,0]],Lve=[3,W,oge,0,[t6,G3,V3,z3],[0,0,0,1],1],Rve=[3,W,sge,0,[A3,L3,V3],[()=>p6,2,0]],zve=[3,W,dge,0,[X3,V3,z3],[0,0,1],1],Bve=[3,W,fge,0,[I3,L3,V3],[()=>m6,2,0],1],Vve=[3,W,pge,0,[G3,V3,z3],[0,0,1]],Hve=[3,W,mge,0,[I3,L3,V3],[()=>m6,2,0],1],Uve=[3,W,hge,0,[Qge,Oge,G3,Vge,V3,z3],[0,2,0,0,0,1]],Wve=[3,W,gge,0,[Hge,L3,V3],[()=>tye,2,0]],Gve=[3,W,yge,0,[G3,V3,z3],[0,0,1]],Kve=[3,W,bge,0,[Q3,L3,V3],[()=>h6,2,0],1],qve=[3,W,Cge,0,[G3,V3,z3],[0,0,1]],Jve=[3,W,wge,0,[o_e,L3,V3],[()=>nye,2,0],1],l6=[3,W,J3,0,[W3,Lge,E3,q3,She,kme,Pge,Uhe,N3,M3,n_e,e6],[0,0,0,0,0,1,1,2,0,4,4,()=>g6]],Yve=[3,W,K3,0,[Che,r6,Khe,M3],[0,0,2,4]],Xve=[3,W,qge,0,[F3,X3],[0,0],2],u6=[3,W,Z3,0,[q3,X3,Gge,E3,M3,j3,N3,B3,U3,e6,Y3],[0,0,0,0,4,0,0,1,()=>s6,()=>g6,()=>Zve],5],Zve=[3,W,Y3,0,[Sge,Uge],[4,0]],Qve=[3,W,$ge,0,[Zhe,s_e],[0,0],2],$ve=[3,W,t_e,0,[O3,$3,t6],[0,0,0],2],d6=[3,W,n6,0,[q3,t6,i_e,E3,M3,Rge,U3,e6],[0,0,0,0,4,4,()=>s6,()=>g6],5],f6=`unit`,eye=[1,W,c_e,0,()=>tve],p6=[1,W,u_e,0,()=>rve],m6=[1,W,d_e,0,()=>c6],tye=[1,W,f_e,0,()=>l6],h6=[1,W,p_e,0,()=>u6],g6=[1,W,m_e,0,()=>Qve],nye=[1,W,h_e,0,()=>d6],rye=[9,W,Fme,0,()=>nve,()=>f6],iye=[9,W,Nme,0,()=>ive,()=>f6],aye=[9,W,Lme,0,()=>ave,()=>f6],oye=[9,W,zme,0,()=>ove,()=>sve],sye=[9,W,Ume,0,()=>cve,()=>lve],cye=[9,W,Yme,0,()=>uve,()=>dve],lye=[9,W,Xme,0,()=>fve,()=>pve],uye=[9,W,nhe,0,()=>mve,()=>hve],dye=[9,W,ahe,0,()=>gve,()=>f6],fye=[9,W,lhe,0,()=>_ve,()=>f6],pye=[9,W,fhe,0,()=>vve,()=>f6],mye=[9,W,ghe,0,()=>yve,()=>f6],hye=[9,W,vhe,0,()=>bve,()=>f6],gye=[9,W,mhe,0,()=>xve,()=>f6],_ye=[9,W,bhe,0,()=>Sve,()=>f6],vye=[9,W,Ohe,0,()=>Cve,()=>wve],yye=[9,W,jhe,0,()=>Tve,()=>Eve],bye=[9,W,Phe,0,()=>Dve,()=>Ove],xye=[9,W,Lhe,0,()=>kve,()=>Ave],Sye=[9,W,Bhe,0,()=>jve,()=>Mve],Cye=[9,W,$he,0,()=>Nve,()=>Pve],wye=[9,W,nge,0,()=>Fve,()=>Ive],Tye=[9,W,age,0,()=>Lve,()=>Rve],Eye=[9,W,lge,0,()=>Vve,()=>Hve],Dye=[9,W,uge,0,()=>zve,()=>Bve],Oye=[9,W,_ge,0,()=>Uve,()=>Wve],kye=[9,W,vge,0,()=>Gve,()=>Kve],Aye=[9,W,xge,0,()=>qve,()=>Jve],jye=[9,W,Kge,0,()=>Xve,()=>f6],Mye=[9,W,e_e,0,()=>$ve,()=>f6],Nye=e=>({apiVersion:`2010-05-08`,base64Decoder:e?.base64Decoder??bt,base64Encoder:e?.base64Encoder??wt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??qpe,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Rpe,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new ae}],logger:e?.logger??new Be,protocol:e?.protocol??qe,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.iam`,errorTypeRegistries:Q_e,xmlNamespace:`https://iam.amazonaws.com/doc/2010-05-08/`,version:`2010-05-08`,serviceTarget:`AWSIdentityManagementV20100508`},serviceId:e?.serviceId??`IAM`,urlParser:e?.urlParser??Qe,utf8Decoder:e?.utf8Decoder??yt,utf8Encoder:e?.utf8Encoder??St}),Pye=e=>{let t=Se(e),n=()=>t().then(He),r=Nye(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Ot,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??ge({serviceId:r.serviceId,clientVersion:Hpe.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??et(`Region is missing`),requestHandler:Ae.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Le),sha256:e?.sha256??se,streamCollector:e?.streamCollector??ft,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},Fye=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},Iye=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Lye=(e,t)=>{let n=Object.assign(Ze(e),lt(e),ie(e),Fye(e));return t.forEach(e=>e.configure(n)),Object.assign(e,be(n),ht(n),Ge(n),Iye(n))},Rye=class extends Te{config;constructor(...[e]){let t=Pye(e||{});super(t),this.initConfig=t;let n=Lye(zpe(We(ve(Ee(Re(ke(Bpe(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(de(this.config)),this.middlewareStack.use(ye(this.config)),this.middlewareStack.use(_e(this.config)),this.middlewareStack.use(Oe(this.config)),this.middlewareStack.use(me(this.config)),this.middlewareStack.use(Ie(this.config)),this.middlewareStack.use(Pe(this.config)),this.middlewareStack.use(he(this.config,{httpAuthSchemeParametersProvider:Ipe,identityProviderConfigProvider:async e=>new gt({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(oe(this.config))}destroy(){super.destroy()}},_6={WHEN_SUPPORTED:`WHEN_SUPPORTED`,WHEN_REQUIRED:`WHEN_REQUIRED`},zye=_6.WHEN_SUPPORTED,Bye={WHEN_SUPPORTED:`WHEN_SUPPORTED`,WHEN_REQUIRED:`WHEN_REQUIRED`},Vye=_6.WHEN_SUPPORTED,v6;(function(e){e.MD5=`MD5`,e.CRC32=`CRC32`,e.CRC32C=`CRC32C`,e.CRC64NVME=`CRC64NVME`,e.SHA1=`SHA1`,e.SHA256=`SHA256`})(v6||={});var Hye;(function(e){e.HEADER=`header`,e.TRAILER=`trailer`})(Hye||={});var Uye=v6.CRC32,Wye=e=>{let{requestChecksumCalculation:t,responseChecksumValidation:n,requestStreamBufferSize:r}=e;return Object.assign(e,{requestChecksumCalculation:xe(t??zye),responseChecksumValidation:xe(n??Vye),requestStreamBufferSize:Number(r??0),checksumAlgorithms:e.checksumAlgorithms??{}})},Gye=e=>(t,n)=>async r=>{let i=await e.region(),a=e.region,o=()=>{};n.__s3RegionRedirect&&(Object.defineProperty(e,"region",{writable:!1,value:async()=>n.__s3RegionRedirect}),o=()=>Object.defineProperty(e,"region",{writable:!0,value:a}));try{let a=await t(r);if(n.__s3RegionRedirect&&(o(),i!==await e.region()))throw Error(`Region was not restored following S3 region redirect.`);return a}catch(e){throw o(),e}},Kye={tags:[`REGION_REDIRECT`,`S3`],name:`regionRedirectEndpointMiddleware`,override:!0,relation:`before`,toMiddleware:`endpointV2Middleware`};function qye(e){return(t,n)=>async r=>{try{return await t(r)}catch(i){if(e.followRegionRedirects){let a=i?.$metadata?.httpStatusCode,o=n.commandName===`HeadBucketCommand`,s=i?.$response?.headers?.[`x-amz-bucket-region`];if(s&&(a===301||a===400&&(i?.name===`IllegalLocationConstraintException`||o))){try{let t=s;n.logger?.debug(`Redirecting from ${await e.region()} to ${t}`),n.__s3RegionRedirect=t}catch(e){throw Error(`Region redirect failed: `+e)}return t(r)}}throw i}}}var Jye={step:`initialize`,tags:[`REGION_REDIRECT`,`S3`],name:`regionRedirectMiddleware`,override:!0},Yye=e=>({applyToStack:t=>{t.add(qye(e),Jye),t.addRelativeTo(Gye(e),Kye)}}),Xye=class e{data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=3e4;constructor(e={}){this.data=e}get(e){let t=this.data[e];if(t)return t}set(e,t){return this.data[e]=t,t}delete(e){delete this.data[e]}async purgeExpired(){let t=Date.now();if(!(this.lastPurgeTime+e.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>t))for(let e in this.data){let n=this.data[e];if(!n.isRefreshing){let r=await n.identity;r.expiration&&r.expiration.getTime()(t.expiration?.getTime()??0){i.set(r,new y6(Promise.resolve(e)))})),t)):i.set(r,new y6(this.getIdentity(r))).identity}async getIdentity(e){await this.cache.purgeExpired().catch(e=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache: -`+e)});let t=await this.createSessionFn(e);if(!t.Credentials?.AccessKeyId||!t.Credentials?.SecretAccessKey)throw Error(`s3#createSession response credential missing AccessKeyId or SecretAccessKey.`);return{accessKeyId:t.Credentials.AccessKeyId,secretAccessKey:t.Credentials.SecretAccessKey,sessionToken:t.Credentials.SessionToken,expiration:t.Credentials.Expiration?new Date(t.Credentials.Expiration):void 0}}},Qye=(e,{session:t})=>{let[n,r]=t,{forcePathStyle:i,useAccelerateEndpoint:a,disableMultiregionAccessPoints:o,followRegionRedirects:s,s3ExpressIdentityProvider:c,bucketEndpoint:l,expectContinueHeader:ee}=e;return Object.assign(e,{forcePathStyle:i??!1,useAccelerateEndpoint:a??!1,disableMultiregionAccessPoints:o??!1,followRegionRedirects:s??!1,s3ExpressIdentityProvider:c??new Zye(async e=>n().send(new r({Bucket:e}))),bucketEndpoint:l??!1,expectContinueHeader:ee??2097152})},$ye=`sigv4-s3express`,ebe=`x-amz-s3session-token`,tbe=e=>(t,n)=>async r=>{if(n.endpointV2){let t=n.endpointV2,i=t.properties?.authSchemes?.[0]?.name===$ye;if((t.properties?.backend===`S3Express`||t.properties?.bucketType===`Directory`)&&(at(n,`S3_EXPRESS_BUCKET`,`J`),n.isS3ExpressBucket=!0),i){let t=r.input.Bucket;if(t){let i=await e.s3ExpressIdentityProvider.getS3ExpressIdentity(await e.credentials(),{Bucket:t});n.s3ExpressIdentity=i,De.isInstance(r.request)&&i.sessionToken&&(r.request.headers[ebe]=i.sessionToken)}}}return t(r)},nbe={name:`s3ExpressMiddleware`,step:`build`,tags:[`S3`,`S3_EXPRESS`],override:!0},rbe=e=>({applyToStack:t=>{t.add(tbe(e),nbe)}}),ibe=async(e,t,n,r)=>{let i=await r.signWithCredentials(n,e,{});if(i.headers[`X-Amz-Security-Token`]||i.headers[`x-amz-security-token`])throw Error(`X-Amz-Security-Token must not be set for s3-express requests.`);return i},abe=e=>e=>{throw e},obe=(e,t)=>{},sbe=e=>(t,n)=>async r=>{if(!De.isInstance(r.request))return t(r);let i=pe(n).selectedHttpAuthScheme;if(!i)throw Error(`No HttpAuthScheme was selected: unable to sign request`);let{httpAuthOption:{signingProperties:a={}},identity:o,signer:s}=i,c;c=n.s3ExpressIdentity?await ibe(n.s3ExpressIdentity,a,r.request,await e.signer()):await s.sign(r.request,o,a);let l=await t({...r,request:c}).catch((s.errorHandler||abe)(a));return(s.successHandler||obe)(l.response,a),l},cbe=e=>({applyToStack:t=>{t.addRelativeTo(sbe(e),Fe)}});function lbe(e){return new ReadableStream({start(t){t.enqueue(e),t.close()}})}var ube={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},dbe=e=>(t,n)=>async r=>{let i=await t(r),{response:a}=i;if(!Ce.isInstance(a))return i;let{statusCode:o,body:s}=a;if(o<200||o>=300)return i;let c=await fbe(s,e);if(a.body=lbe(c),c.length===0&&ube[n.commandName]){let e=Error(`S3 aborted request`);throw e.$metadata={httpStatusCode:503},e.name=`InternalError`,e}let l=e.utf8Encoder(c.subarray(c.length-16));return l&&l.endsWith(``)&&(a.statusCode=503),i},fbe=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),pbe={relation:`after`,toMiddleware:`deserializerMiddleware`,tags:[`THROW_200_EXCEPTIONS`,`S3`],name:`throw200ExceptionsMiddleware`,override:!0},b6=e=>({applyToStack:t=>{t.addRelativeTo(dbe(e),pbe)}});function mbe(e){return(t,n)=>async r=>{if(e.bucketEndpoint){let e=n.endpointV2;if(e){let t=r.input.Bucket;if(typeof t==`string`)try{let r=new URL(t);n.endpointV2={...e,url:r}}catch(e){let r=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${t} could not be parsed as URL.`;throw n.logger?.constructor?.name===`NoOpLogger`?console.warn(r):n.logger?.warn?.(r),e}}}return t(r)}}var hbe={name:`bucketEndpointMiddleware`,override:!0,relation:`after`,toMiddleware:`endpointV2Middleware`};function gbe({bucketEndpoint:e}){return t=>async n=>{let{input:{Bucket:r}}=n;if(!e&&typeof r==`string`&&!TF(r)&&r.indexOf(`/`)>=0){let e=Error(`Bucket name shouldn't contain '/', received '${r}'`);throw e.name=`InvalidBucketName`,e}return t({...n})}}var _be={step:`initialize`,tags:[`VALIDATE_BUCKET_NAME`],name:`validateBucketNameMiddleware`,override:!0},vbe=e=>({applyToStack:t=>{t.add(gbe(e),_be),t.addRelativeTo(mbe(e),hbe)}}),ybe=class extends kee{async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n),i=dt.of(e.input),a=i.getSchema(),o=0,s=a[6]??0;if(t&&typeof t==`object`)for(let[e,n]of i.structIterator()){if(++o>s)break;if(e===`Bucket`){if(!t.Bucket&&n.getMergedTraits().httpLabel)throw Error(`No value provided for input HTTP label: Bucket.`);break}}return r}};function bbe(e){return t=>async n=>{let{request:r}=n;if(e.expectContinueHeader!==!1&&De.isInstance(r)&&r.body&&e.runtime===`node`&&e.requestHandler?.constructor?.name!==`FetchHttpHandler`){let t=!0;if(typeof e.expectContinueHeader==`number`)try{t=(Number(r.headers?.[`content-length`])??e.bodyLengthChecker?.(r.body)??1/0)>=e.expectContinueHeader}catch{}else t=!!e.expectContinueHeader;t&&(r.headers.Expect=`100-continue`)}return t({...n,request:r})}}var xbe={step:`build`,tags:[`SET_EXPECT_HEADER`,`EXPECT_HEADER`],name:`addExpectContinueMiddleware`,override:!0},Sbe=e=>({applyToStack:t=>{t.add(bbe(e),xbe)}}),K=`ref`,q=`argv`,x6=`backend`,S6=`authSchemes`,C6=`disableDoubleEncoding`,w6=`signingName`,T6=`signingRegion`,E6=`signingRegionSet`,J=-1,Y=!0,D6=!1,O6=`isSet`,k6=`booleanEquals`,X=`stringEquals`,A6=`coalesce`,j6=`substring`,M6=``,N6=`aws.partition`,P6=`partitionResult`,F6=`accessPointSuffix`,I6=`regionPrefix`,L6=e=>`outpostId_ssa_`+e+M6,R6=`hardwareType`,z6=`ite`,B6=`isValidHostLabel`,V6=`sigv4`,H6=`aws.isVirtualHostableS3Bucket`,U6=`url`,W6=`getAttr`,G6=`bucketArn`,K6=`--`,q6=`arnType`,J6=`accesspoint`,Y6=e=>`accessPointName_ssa_`+e+M6,X6=`s3-object-lambda`,Z6=`s3-outposts`,Q6=`bucketPartition`,$6=`us-east-1`,e8=`outpostType`,t8=`name`,n8=`s3`,r8=`{url#scheme}://{Bucket}.{url#authority}{url#path}`,i8=`{url#scheme}://{url#authority}{url#path}`,a8=`{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}`,o8=`https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}`,s8=`https://{Bucket}.s3.{partitionResult#dnsSuffix}`,c8=e=>`{url#scheme}://{accessPointName_ssa_`+e+`}-{bucketArn#accountId}.{url#authority}{url#path}`,l8=e=>"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName_ssa_"+e+"}`",u8=`sigv4a`,d8=`{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}`,f8=`https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,p8=`https://s3.{partitionResult#dnsSuffix}`,m8={[K]:`UseFIPS`},h8={[K]:`UseDualStack`},g8={[K]:`Bucket`},_8={fn:W6,[q]:[{[K]:P6},t8]},v8={[K]:U6},y8={[K]:`Region`},b8={[K]:G6},x8={[K]:q6},S8={[K]:`accessPointName_ssa_1`},C8={fn:W6,[q]:[b8,`region`]},w8={[K]:R6},T8={fn:W6,[q]:[b8,`service`]},E8={fn:W6,[q]:[b8,`accountId`]},D8={[x6]:`S3Express`,[S6]:[{[C6]:!0,[t8]:`{_s3e_auth}`,[w6]:`s3express`,[T6]:`{Region}`}]},O8={[x6]:`S3Express`,[S6]:[{[C6]:!0,[t8]:V6,[w6]:`s3express`,[T6]:`{Region}`}]},k8={[S6]:[{[C6]:!0,[t8]:u8,[w6]:Z6,[E6]:[`*`]},{[C6]:!0,[t8]:V6,[w6]:Z6,[T6]:`{Region}`}]},A8={[S6]:[{[C6]:!0,[t8]:V6,[w6]:n8,[T6]:$6}]},j8={[S6]:[{[C6]:!0,[t8]:V6,[w6]:n8,[T6]:`{Region}`}]},M8={[S6]:[{[C6]:!0,[t8]:V6,[w6]:X6,[T6]:`{bucketArn#region}`}]},N8={[S6]:[{[C6]:!0,[t8]:V6,[w6]:n8,[T6]:`{bucketArn#region}`}]},P8={[S6]:[{[C6]:!0,[t8]:u8,[w6]:Z6,[E6]:[`*`]},{[C6]:!0,[t8]:V6,[w6]:Z6,[T6]:`{bucketArn#region}`}]},F8={[S6]:[{[C6]:!0,[t8]:V6,[w6]:X6,[T6]:`{Region}`}]},I8=[y8],L8=[{[K]:`Endpoint`}],R8=[g8],z8=[g8,0,7,!0],B8=[b8,`resourceId[1]`],Cbe=[`*`],V8={conditions:[[O6,I8],[k6,[{[K]:`Accelerate`},Y]],[k6,[m8,Y]],[k6,[h8,Y]],[O6,L8],[O6,R8],[X,[{fn:A6,[q]:[{fn:j6,[q]:[g8,0,6,Y]},M6]},`--x-s3`]],[X,[{fn:A6,[q]:[{fn:j6,[q]:z8},M6]},`--xa-s3`]],[N6,I8,P6],[j6,z8,F6],[X,[{[K]:F6},`--op-s3`]],[j6,[g8,8,12,Y],I6],[j6,[g8,32,49,Y],L6(2)],[j6,[g8,49,50,Y],R6],[k6,[{[K]:`ForcePathStyle`},Y]],[X,[_8,`aws-cn`]],[z6,[h8,`.dualstack`,M6],`_s3e_ds`],[B6,[{[K]:L6(2)},D6]],[z6,[m8,`-fips`,M6],`_s3e_fips`],[z6,[{fn:A6,[q]:[{[K]:`DisableS3ExpressSessionAuth`},D6]},V6,`sigv4-s3express`],`_s3e_auth`],[H6,[g8,D6]],[`parseURL`,L8,U6],[k6,[{fn:A6,[q]:[{[K]:`UseS3ExpressControlEndpoint`},D6]},Y]],[H6,[g8,Y]],[X,[{fn:W6,[q]:[v8,`scheme`]},`http`]],[B6,[y8,D6]],[`aws.parseArn`,R8,G6],[W6,[{fn:`split`,[q]:[g8,K6,0]},`[-2]`],`s3expressAvailabilityZoneId`],[X,[{fn:A6,[q]:[{fn:j6,[q]:[g8,0,4,D6]},M6]},`arn:`]],[X,[{fn:A6,[q]:[{fn:j6,[q]:[g8,16,18,Y]},M6]},K6]],[k6,[{fn:W6,[q]:[v8,`isIp`]},Y]],[X,[{fn:A6,[q]:[{fn:j6,[q]:[g8,21,23,Y]},M6]},K6]],[X,[{fn:A6,[q]:[{fn:j6,[q]:[g8,27,29,Y]},M6]},K6]],[X,[{[K]:I6},`beta`]],[`uriEncode`,R8,`uri_encoded_bucket`],[B6,[y8,Y]],[k6,[{fn:A6,[q]:[{[K]:`UseObjectLambdaEndpoint`},D6]},Y]],[W6,[b8,`resourceId[0]`],q6],[X,[x8,M6]],[X,[x8,J6]],[W6,B8,Y6(1)],[X,[S8,M6]],[X,[C8,M6]],[X,[{fn:A6,[q]:[{fn:j6,[q]:[g8,14,16,Y]},M6]},K6]],[X,[w8,`e`]],[X,[w8,`o`]],[X,[y8,`aws-global`]],[X,[{fn:A6,[q]:[{fn:j6,[q]:[g8,19,21,Y]},M6]},K6]],[X,[T8,X6]],[k6,[{fn:A6,[q]:[{[K]:`DisableAccessPoints`},D6]},Y]],[X,[T8,Z6]],[N6,[C8],Q6],[B6,[S8,Y]],[X,[{fn:A6,[q]:[{fn:j6,[q]:[g8,26,28,Y]},M6]},K6]],[X,[{fn:A6,[q]:[{fn:j6,[q]:[g8,15,17,Y]},M6]},K6]],[W6,[b8,`resourceId[4]`]],[X,[{fn:A6,[q]:[{fn:j6,[q]:[g8,20,22,Y]},M6]},K6]],[k6,[{[K]:`UseGlobalEndpoint`},Y]],[X,[y8,$6]],[W6,B8,L6(1)],[k6,[{fn:A6,[q]:[{[K]:`UseArnRegion`},Y]},Y]],[B6,[{[K]:L6(1)},D6]],[W6,[b8,`resourceId[2]`],e8],[X,[y8,C8]],[X,[{fn:W6,[q]:[{[K]:Q6},t8]},_8]],[k6,[{[K]:`DisableMultiRegionAccessPoints`},Y]],[B6,[C8,Y]],[X,[{fn:W6,[q]:[b8,`partition`]},_8]],[X,[E8,M6]],[X,[T8,n8]],[B6,[E8,D6]],[W6,[b8,`resourceId[3]`],Y6(2)],[B6,[S8,D6]],[X,[{[K]:e8},J6]],[B6,[{[K]:Y6(2)},D6]]],results:[[J],[J,`Accelerate cannot be used with FIPS`],[J,`Cannot set dual-stack in combination with a custom endpoint.`],[J,`A custom endpoint cannot be combined with FIPS`],[J,`A custom endpoint cannot be combined with S3 Accelerate`],[J,`Partition does not support FIPS`],[J,`S3Express does not support S3 Accelerate.`],[`{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}`,D8],[r8,D8],[J,`S3Express bucket name is not a valid virtual hostable name.`],[`https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,O8],[`https://{Bucket}.s3express{_s3e_fips}-{s3expressAvailabilityZoneId}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}`,D8],[J,`Unrecognized S3Express bucket name format.`],[i8,D8],[`https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}`,O8],[J,`Expected a endpoint to be specified but no endpoint was found`],[`https://{Bucket}.ec2.{url#authority}`,k8],[`https://{Bucket}.ec2.s3-outposts.{Region}.{partitionResult#dnsSuffix}`,k8],[`https://{Bucket}.op-{outpostId_ssa_2}.{url#authority}`,k8],[`https://{Bucket}.op-{outpostId_ssa_2}.s3-outposts.{Region}.{partitionResult#dnsSuffix}`,k8],[J,`Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"`],[J,`Invalid Outposts Bucket alias - it must be a valid bucket name.`],[J,"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`."],[J,"Custom endpoint `{Endpoint}` was not a valid URI"],[J,`S3 Accelerate cannot be used in this region`],[`https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}`,A8],[`https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}`,j8],[`https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}`,A8],[`https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}`,j8],[`https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}`,A8],[`https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}`,j8],[`https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}`,A8],[`https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}`,j8],[a8,A8],[r8,A8],[a8,j8],[r8,j8],[o8,A8],[o8,j8],[s8,A8],[s8,j8],[`https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}`,j8],[J,`Invalid region: region was not a valid DNS name.`],[J,`S3 Object Lambda does not support Dual-stack`],[J,`S3 Object Lambda does not support S3 Accelerate`],[J,`Access points are not supported for this operation`],[J,"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`"],[J,`Invalid ARN: Missing account id`],[c8(1),M8],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}`,M8],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}`,M8],[J,l8(1)],[J,"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`"],[J,"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)"],[J,"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`"],[J,"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`."],[J,`Invalid ARN: bucket ARN is missing a region`],[J,"Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided"],[J,"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`"],[J,`Access Points do not support S3 Accelerate`],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}`,N8],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}`,N8],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}`,N8],[c8(1),N8],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}`,N8],[J,`Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}`],[J,`S3 MRAP does not support dual-stack`],[J,`S3 MRAP does not support FIPS`],[J,`S3 MRAP does not support S3 Accelerate`],[J,`Invalid configuration: Multi-Region Access Point ARNs are disabled.`],[`https://{accessPointName_ssa_1}.accesspoint.s3-global.{partitionResult#dnsSuffix}`,{[S6]:[{[C6]:Y,name:u8,[w6]:n8,[E6]:Cbe}]}],[J,"Client was configured for partition `{partitionResult#name}` but bucket referred to partition `{bucketArn#partition}`"],[J,`Invalid Access Point Name`],[J,`S3 Outposts does not support Dual-stack`],[J,`S3 Outposts does not support FIPS`],[J,`S3 Outposts does not support S3 Accelerate`],[J,`Invalid Arn: Outpost Access Point ARN contains sub resources`],[`https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.{url#authority}`,P8],[`https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}`,P8],[J,l8(2)],[J,"Expected an outpost type `accesspoint`, found {outpostType}"],[J,`Invalid ARN: expected an access point name`],[J,`Invalid ARN: Expected a 4-component resource`],[J,"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId_ssa_1}`"],[J,`Invalid ARN: The Outpost Id was not set`],[J,`Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})`],[J,`Invalid ARN: No ARN type specified`],[J,"Invalid ARN: `{Bucket}` was not a valid ARN"],[J,`Path-style addressing cannot be used with ARN buckets`],[`https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,A8],[`https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,j8],[`https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,A8],[`https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,j8],[`https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,A8],[`https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,j8],[d8,A8],[d8,j8],[f8,A8],[f8,j8],[`https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,j8],[J,`Path-style addressing cannot be used with S3 Accelerate`],[i8,F8],[`https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}`,F8],[`https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}`,F8],[`https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}`,A8],[`https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}`,j8],[`https://s3-fips.us-east-1.{partitionResult#dnsSuffix}`,A8],[`https://s3-fips.{Region}.{partitionResult#dnsSuffix}`,j8],[`https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}`,A8],[`https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}`,j8],[i8,A8],[i8,j8],[p8,A8],[p8,j8],[`https://s3.{Region}.{partitionResult#dnsSuffix}`,j8],[J,`A region must be set when sending requests to S3.`]]},wbe=2,Tbe=new Int32Array([-1,1,-1,0,3,100000115,1,424,4,2,272,5,3,233,6,4,85,7,5,15,8,8,9,100000115,16,10,13,18,11,13,19,12,13,22,100000014,13,35,14,100000042,36,100000103,435,6,271,16,7,270,17,8,19,18,14,501,106,9,20,24,10,21,24,11,22,24,12,23,24,13,547,24,14,77,25,20,73,26,26,27,78,37,28,100000086,38,100000086,29,39,47,30,48,100000058,31,50,32,100000085,51,33,136,55,100000076,34,59,35,100000084,60,39,36,61,37,100000083,62,38,146,63,41,100000046,61,40,100000083,62,41,150,64,42,100000054,66,43,100000053,70,44,100000052,71,45,100000081,73,46,100000080,74,100000078,100000079,40,48,100000057,41,100000057,49,42,185,50,48,62,51,49,100000045,52,51,53,526,60,56,54,62,100000055,55,63,57,100000046,62,100000055,57,64,58,100000054,66,59,100000053,69,60,100000065,70,61,100000052,72,100000064,100000051,49,100000045,63,51,64,526,60,67,65,62,100000055,66,63,68,100000046,62,100000055,68,64,69,100000054,66,70,100000053,68,100000047,71,70,72,100000052,72,100000050,100000051,25,74,100000042,46,100000039,75,57,76,100000041,58,100000040,100000041,26,100000088,78,28,100000087,79,34,82,80,35,81,545,36,100000103,100000115,46,100000097,83,57,84,100000099,58,100000098,100000099,5,101,86,8,87,100000115,16,88,89,18,91,89,19,90,92,21,97,95,19,93,92,21,98,95,21,97,94,22,100000014,95,35,96,100000042,36,100000103,100000042,22,100000013,98,35,99,100000042,36,100000101,100,46,100000110,100000111,6,214,102,7,208,103,8,119,104,14,118,105,21,106,100000023,26,107,502,37,108,100000086,38,100000086,109,39,112,110,48,100000058,111,50,136,100000085,40,113,100000057,41,100000057,114,42,115,500,48,100000056,116,52,117,100000072,65,100000069,100000072,21,501,100000023,9,120,124,10,121,124,11,122,124,12,123,124,13,202,124,14,195,125,20,190,126,21,127,100000023,23,128,129,24,189,129,26,130,197,37,131,100000086,38,100000086,132,39,159,133,48,100000058,134,50,135,100000085,51,141,136,55,100000076,137,59,138,100000084,60,100000083,139,61,140,100000083,63,100000083,100000046,55,100000076,142,59,143,100000084,60,148,144,61,145,100000083,62,147,146,63,150,100000046,63,153,100000046,61,149,100000083,62,153,150,64,151,100000054,66,152,100000053,70,100000082,100000052,64,154,100000054,66,155,100000053,70,156,100000052,71,157,100000081,73,158,100000080,74,100000077,100000079,40,160,100000057,41,100000057,161,42,185,162,48,174,163,49,100000045,164,51,165,526,60,168,166,62,100000055,167,63,169,100000046,62,100000055,169,64,170,100000054,66,171,100000053,69,172,100000065,70,173,100000052,72,100000063,100000051,49,100000045,175,51,176,526,60,179,177,62,100000055,178,63,180,100000046,62,100000055,180,64,181,100000054,66,182,100000053,68,100000047,183,70,184,100000052,72,100000048,100000051,48,100000056,186,52,187,100000072,65,100000069,188,67,100000070,100000071,25,100000036,100000042,21,191,100000023,25,192,100000042,30,194,193,46,100000034,100000036,46,100000033,100000035,21,196,100000023,26,100000088,197,28,100000087,198,34,201,199,35,200,545,36,100000101,100000115,46,100000095,100000096,17,203,100000022,20,204,100000021,21,205,550,33,206,550,44,100000016,207,45,100000018,100000020,8,209,215,16,210,220,18,211,220,19,212,224,20,213,227,21,231,401,8,218,215,19,216,100000009,20,217,227,21,231,100000009,16,219,220,18,223,220,19,221,224,20,222,227,21,231,100000012,19,226,224,20,225,100000009,21,100000009,100000012,20,230,227,21,228,100000009,30,229,100000009,34,100000007,100000009,21,231,415,30,232,100000008,34,100000007,100000008,4,100000002,234,5,235,480,6,271,236,7,270,237,8,238,491,9,239,243,10,240,243,11,241,243,12,242,243,13,547,243,14,266,244,20,264,245,26,246,267,37,247,100000086,38,100000086,248,39,249,518,40,250,100000057,41,100000057,251,42,538,252,48,100000043,253,49,100000045,254,51,255,526,60,258,256,62,100000055,257,63,259,100000046,62,100000055,259,64,260,100000054,66,261,100000053,69,262,100000065,70,263,100000052,72,100000062,100000051,25,265,100000042,46,100000031,100000032,26,100000088,267,28,100000087,268,34,269,544,46,100000093,100000094,8,397,100000009,8,407,100000009,3,346,273,4,100000003,274,5,284,275,8,276,100000115,15,100000005,277,16,278,281,18,279,281,19,280,281,22,100000014,281,35,282,100000042,36,100000102,283,46,100000106,100000107,6,405,285,7,395,286,8,295,287,14,501,288,26,289,502,37,290,100000086,38,100000086,291,39,292,307,40,293,100000057,41,100000057,294,42,335,500,9,296,300,10,297,300,11,298,300,12,299,300,13,394,300,14,339,301,15,100000005,302,20,337,303,26,304,341,37,305,100000086,38,100000086,306,39,309,307,48,100000058,308,50,100000074,100000085,40,310,100000057,41,100000057,311,42,335,312,48,324,313,49,100000045,314,51,315,526,60,318,316,62,100000055,317,63,319,100000046,62,100000055,319,64,320,100000054,66,321,100000053,69,322,100000065,70,323,100000052,72,100000061,100000051,49,100000045,325,51,326,526,60,329,327,62,100000055,328,63,330,100000046,62,100000055,330,64,331,100000054,66,332,100000053,68,100000047,333,70,334,100000052,72,100000049,100000051,48,100000056,336,52,100000067,100000072,25,338,100000042,46,100000027,100000028,15,100000005,340,26,100000088,341,28,100000087,342,34,345,343,35,344,545,36,100000102,100000115,46,100000091,100000092,4,100000002,347,5,357,348,8,349,100000115,15,100000005,350,16,351,354,18,352,354,19,353,354,22,100000014,354,35,355,100000042,36,100000043,356,46,100000104,100000105,6,405,358,7,395,359,8,360,491,9,361,365,10,362,365,11,363,365,12,364,365,13,394,365,14,389,366,15,100000005,367,20,387,368,26,369,391,37,370,100000086,38,100000086,371,39,372,518,40,373,100000057,41,100000057,374,42,538,375,48,100000043,376,49,100000045,377,51,378,526,60,381,379,62,100000055,380,63,382,100000046,62,100000055,382,64,383,100000054,66,384,100000053,69,385,100000065,70,386,100000052,72,100000060,100000051,25,388,100000042,46,100000025,100000026,15,100000005,390,26,100000088,391,28,100000087,392,34,393,544,46,100000089,100000090,15,100000005,547,8,396,100000009,15,100000005,397,16,398,410,18,399,410,19,400,410,20,401,100000009,27,402,100000012,29,100000011,403,31,100000011,404,32,100000011,422,8,406,100000009,15,100000005,407,16,408,410,18,409,410,19,411,410,20,100000012,100000009,20,414,412,22,413,100000009,34,100000010,100000009,22,416,415,27,419,100000012,27,418,417,34,100000010,100000012,34,100000010,419,43,100000011,420,47,100000011,421,53,100000011,422,54,100000011,423,56,100000011,100000012,2,100000001,425,3,478,426,4,100000004,427,5,438,428,8,429,100000115,16,430,433,18,431,433,19,432,433,22,100000014,433,35,434,100000042,36,100000044,435,46,100000112,436,57,437,100000114,58,100000113,100000114,6,100000006,439,7,100000006,440,8,450,441,14,501,442,26,443,502,37,444,100000086,38,100000086,445,39,446,465,40,447,100000057,41,100000057,448,42,471,449,48,100000044,500,9,451,455,10,452,455,11,453,455,12,454,455,13,547,455,14,473,456,15,460,457,20,458,461,25,459,100000042,46,100000037,100000038,20,540,461,26,462,474,37,463,100000086,38,100000086,464,39,467,465,48,100000058,466,50,100000075,100000085,40,468,100000057,41,100000057,469,42,471,470,48,100000044,524,48,100000044,472,52,100000068,100000072,26,100000088,474,28,100000087,475,34,100000100,476,35,477,545,36,100000044,100000115,4,100000002,479,5,488,480,8,481,100000115,16,482,485,18,483,485,19,484,485,22,100000014,485,35,486,100000042,36,100000043,487,46,100000108,100000109,6,100000006,489,7,100000006,490,8,503,491,14,501,492,26,493,502,37,494,100000086,38,100000086,495,39,496,518,40,497,100000057,41,100000057,498,42,538,499,48,100000043,500,49,100000045,526,26,100000088,502,28,100000087,100000115,9,504,508,10,505,508,11,506,508,12,507,508,13,547,508,14,541,509,15,513,510,20,511,514,25,512,100000042,46,100000029,100000030,20,540,514,26,515,542,37,516,100000086,38,100000086,517,39,520,518,48,100000058,519,50,100000073,100000085,40,521,100000057,41,100000057,522,42,538,523,48,100000043,524,49,100000045,525,51,529,526,60,100000055,527,62,100000055,528,63,100000055,100000046,60,532,530,62,100000055,531,63,533,100000046,62,100000055,533,64,534,100000054,66,535,100000053,69,536,100000065,70,537,100000052,72,100000059,100000051,48,100000043,539,52,100000066,100000072,25,100000024,100000042,26,100000088,542,28,100000087,543,34,100000100,544,35,546,545,36,100000042,100000115,36,100000043,100000115,17,548,100000022,20,549,100000021,33,552,550,44,100000017,551,45,100000019,100000020,44,100000015,553,45,100000015,100000020]),Ebe=Ye.from(Tbe,wbe,V8.conditions,V8.results),Dbe=new tt({size:50,params:[`Accelerate`,`Bucket`,`DisableAccessPoints`,`DisableMultiRegionAccessPoints`,`DisableS3ExpressSessionAuth`,`Endpoint`,`ForcePathStyle`,`Region`,`UseArnRegion`,`UseDualStack`,`UseFIPS`,`UseGlobalEndpoint`,`UseObjectLambdaEndpoint`,`UseS3ExpressControlEndpoint`]}),H8=(e,t={})=>Dbe.get(e,()=>Ke(Ebe,{endpointParams:e,logger:t.logger}));it.aws=fe;var Obe=(e=>async(t,n,r)=>{if(!r)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let i=await e(t,n,r),a=pe(n)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!a)throw Error(`getEndpointParameterInstructions() is not defined on '${n.commandName}'`);let o=await Je(r,{getEndpointParameterInstructions:a},t);return Object.assign(i,o)})(async(e,t,n)=>({operation:pe(t).operation,region:await xe(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}));function U8(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`s3`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function W8(e){return{schemeId:`aws.auth#sigv4a`,signingProperties:{name:`s3`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var kbe=((e,t,n)=>r=>{let i=e(r).properties?.authSchemes;if(!i)return t(r);let a=[];for(let e of i){let{name:t,properties:o={},...s}=e,c=t.toLowerCase();t!==c&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${t}' to '${c}'`);let l;if(c===`sigv4a`){l=`aws.auth#sigv4a`;let e=i.find(e=>{let t=e.name.toLowerCase();return t!==`sigv4a`&&t.startsWith(`sigv4`)});if(Me.sigv4aDependency()===`none`&&e)continue}else if(c.startsWith(`sigv4`))l=`aws.auth#sigv4`;else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${c}'`);let ee=n[l];if(!ee)throw Error(`Could not find HttpAuthOption create function for '${l}'`);let te=ee(r);te.schemeId=l,te.signingProperties={...te.signingProperties||{},...s,...o},a.push(te)}return a})(H8,e=>{let t=[];switch(e.operation){default:t.push(U8(e)),t.push(W8(e))}return t},{"aws.auth#sigv4":U8,"aws.auth#sigv4a":W8}),Abe=e=>{let t=we(ue(e));return Object.assign(t,{authSchemePreference:xe(e.authSchemePreference??[])})},jbe=e=>Object.assign(e,{useFipsEndpoint:e.useFipsEndpoint??!1,useDualstackEndpoint:e.useDualstackEndpoint??!1,forcePathStyle:e.forcePathStyle??!1,useAccelerateEndpoint:e.useAccelerateEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,disableMultiregionAccessPoints:e.disableMultiregionAccessPoints??!1,defaultSigningName:`s3`,clientContextParams:e.clientContextParams??{}}),G8={ForcePathStyle:{type:`clientContextParams`,name:`forcePathStyle`},UseArnRegion:{type:`clientContextParams`,name:`useArnRegion`},DisableMultiRegionAccessPoints:{type:`clientContextParams`,name:`disableMultiregionAccessPoints`},Accelerate:{type:`clientContextParams`,name:`useAccelerateEndpoint`},DisableS3ExpressSessionAuth:{type:`clientContextParams`,name:`disableS3ExpressSessionAuth`},UseGlobalEndpoint:{type:`builtInParams`,name:`useGlobalEndpoint`},UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},K8=class e extends pt{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},Mbe=class e extends K8{name=`NoSuchUpload`;$fault=`client`;constructor(t){super({name:`NoSuchUpload`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Nbe=class e extends K8{name=`AccessDenied`;$fault=`client`;constructor(t){super({name:`AccessDenied`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Pbe=class e extends K8{name=`ObjectNotInActiveTierError`;$fault=`client`;constructor(t){super({name:`ObjectNotInActiveTierError`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Fbe=class e extends K8{name=`BucketAlreadyExists`;$fault=`client`;constructor(t){super({name:`BucketAlreadyExists`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Ibe=class e extends K8{name=`BucketAlreadyOwnedByYou`;$fault=`client`;constructor(t){super({name:`BucketAlreadyOwnedByYou`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Lbe=class e extends K8{name=`NoSuchBucket`;$fault=`client`;constructor(t){super({name:`NoSuchBucket`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Rbe=class e extends K8{name=`InvalidObjectState`;$fault=`client`;StorageClass;AccessTier;constructor(t){super({name:`InvalidObjectState`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.StorageClass=t.StorageClass,this.AccessTier=t.AccessTier}},zbe=class e extends K8{name=`NoSuchKey`;$fault=`client`;constructor(t){super({name:`NoSuchKey`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Bbe=class e extends K8{name=`NotFound`;$fault=`client`;constructor(t){super({name:`NotFound`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Vbe=class e extends K8{name=`EncryptionTypeMismatch`;$fault=`client`;constructor(t){super({name:`EncryptionTypeMismatch`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Hbe=class e extends K8{name=`InvalidRequest`;$fault=`client`;constructor(t){super({name:`InvalidRequest`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Ube=class e extends K8{name=`InvalidWriteOffset`;$fault=`client`;constructor(t){super({name:`InvalidWriteOffset`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Wbe=class e extends K8{name=`TooManyParts`;$fault=`client`;constructor(t){super({name:`TooManyParts`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Gbe=class e extends K8{name=`IdempotencyParameterMismatch`;$fault=`client`;constructor(t){super({name:`IdempotencyParameterMismatch`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Kbe=class e extends K8{name=`ObjectAlreadyInActiveTierError`;$fault=`client`;constructor(t){super({name:`ObjectAlreadyInActiveTierError`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},q8=`ACL`,qbe=`AccessDenied`,Jbe=`AbortDate`,J8=`AccessKeyId`,Ybe=`AbortMultipartUpload`,Xbe=`AbortMultipartUploadOutput`,Zbe=`AbortMultipartUploadRequest`,Qbe=`AcceptRanges`,$be=`AbortRuleId`,exe=`AccessTier`,Y8=`Bucket`,X8=`BucketArn`,txe=`BucketAlreadyExists`,nxe=`BucketAlreadyOwnedByYou`,rxe=`BypassGovernanceRetention`,ixe=`BucketInfo`,Z8=`BucketKeyEnabled`,axe=`BucketNamespace`,Q8=`BucketRegion`,$8=`Body`,e5=`Buckets`,t5=`ChecksumAlgorithm`,oxe=`CreateBucket`,n5=`CreateBucketConfiguration`,sxe=`CreateBucketOutput`,cxe=`CreateBucketRequest`,r5=`CacheControl`,i5=`ChecksumCRC32`,a5=`ChecksumCRC32C`,o5=`ChecksumCRC64NVME`,s5=`Cache-Control`,lxe=`CreationDate`,c5=`Content-Disposition`,l5=`ContentDisposition`,u5=`Content-Encoding`,d5=`ContentEncoding`,f5=`ContentLanguage`,p5=`Content-Language`,m5=`Content-Length`,h5=`ContentLength`,g5=`Content-MD5`,_5=`ChecksumMD5`,v5=`ContentMD5`,uxe=`CompletedMultipartUpload`,dxe=`CompleteMultipartUploadOutput`,fxe=`CreateMultipartUploadOutput`,pxe=`CompleteMultipartUploadResult`,mxe=`CompleteMultipartUploadRequest`,hxe=`CreateMultipartUploadRequest`,y5=`CompleteMultipartUpload`,gxe=`CreateMultipartUpload`,_xe=`ChecksumMode`,vxe=`CommonPrefix`,yxe=`CommonPrefixList`,bxe=`CompletedPartList`,xxe=`CompletedPart`,Sxe=`CommonPrefixes`,Cxe=`ContentRange`,wxe=`Content-Range`,b5=`ChecksumSHA1`,x5=`ChecksumSHA256`,S5=`ChecksumSHA512`,Txe=`CreateSessionOutput`,Exe=`CreateSessionResult`,Dxe=`CreateSessionRequest`,Oxe=`CreateSession`,C5=`ChecksumType`,w5=`Content-Type`,T5=`ContentType`,E5=`ContinuationToken`,D5=`ChecksumXXHASH64`,O5=`ChecksumXXHASH3`,k5=`ChecksumXXHASH128`,kxe=`Contents`,A5=`Credentials`,j5=`DeleteMarker`,Axe=`DisplayName`,jxe=`DeleteObjectOutput`,Mxe=`DeleteObjectRequest`,Nxe=`DeleteObject`,Pxe=`DataRedundancy`,M5=`Delimiter`,N5=`Expiration`,P5=`ExpectedBucketOwner`,F5=`ExpiresString`,Fxe=`EncryptionTypeMismatch`,I5=`ETag`,L5=`EncodingType`,R5=`Expires`,Ixe=`FetchOwner`,z5=`GrantFullControl`,Lxe=`GetObject`,Rxe=`GetObjectOutput`,zxe=`GetObjectRequest`,B5=`GrantRead`,V5=`GrantReadACP`,Bxe=`GrantWrite`,H5=`GrantWriteACP`,Vxe=`ID`,U5=`IfMatch`,Hxe=`IfMatchInitiatedTime`,Uxe=`IfMatchLastModifiedTime`,Wxe=`IfMatchSize`,Gxe=`If-Modified-Since`,Kxe=`IfModifiedSince`,qxe=`InitiateMultipartUploadResult`,W5=`If-Match`,G5=`IfNoneMatch`,K5=`If-None-Match`,Jxe=`InvalidObjectState`,Yxe=`IdempotencyParameterMismatch`,Xxe=`InvalidRequest`,Zxe=`IsRestoreInProgress`,Qxe=`IsTruncated`,$xe=`IfUnmodifiedSince`,eSe=`If-Unmodified-Since`,tSe=`InvalidWriteOffset`,q5=`Key`,nSe=`KeyCount`,J5=`Location`,rSe=`ListAllMyBucketsResult`,iSe=`ListBuckets`,aSe=`ListBucketsOutput`,oSe=`ListBucketsRequest`,sSe=`ListBucketResult`,cSe=`LocationConstraint`,lSe=`LocationInfo`,Y5=`LastModified`,uSe=`Last-Modified`,dSe=`ListObjectsV2`,fSe=`ListObjectsV2Output`,pSe=`ListObjectsV2Request`,X5=`Metadata`,mSe=`MaxBuckets`,hSe=`MFA`,Z5=`MaxKeys`,gSe=`MissingMeta`,_Se=`MpuObjectSize`,vSe=`MultipartUpload`,Q5=`Name`,ySe=`NextContinuationToken`,bSe=`NotFound`,xSe=`NoSuchBucket`,SSe=`NoSuchKey`,CSe=`NoSuchUpload`,$5=`Owner`,wSe=`ObjectAlreadyInActiveTierError`,TSe=`ObjectLockEnabledForBucket`,e7=`ObjectLockLegalHoldStatus`,t7=`ObjectLockMode`,n7=`ObjectLockRetainUntilDate`,ESe=`ObjectList`,DSe=`ObjectNotInActiveTierError`,OSe=`ObjectOwnership`,kSe=`OptionalObjectAttributes`,ASe=`Object`,r7=`Prefix`,jSe=`PartsCount`,i7=`PartNumber`,MSe=`PutObject`,NSe=`PutObjectOutput`,PSe=`PutObjectRequest`,FSe=`PutObjectTagging`,ISe=`PutObjectTaggingOutput`,LSe=`PutObjectTaggingRequest`,RSe=`Parts`,zSe=`Part`,a7=`RequestCharged`,BSe=`ResponseCacheControl`,VSe=`ResponseContentDisposition`,HSe=`ResponseContentEncoding`,USe=`ResponseContentLanguage`,WSe=`ResponseContentType`,GSe=`ResponseExpires`,KSe=`RestoreExpiryDate`,o7=`RequestPayer`,qSe=`ReplicationStatus`,s7=`RestoreStatus`,c7=`Range`,JSe=`Restore`,l7=`StartAfter`,u7=`SecretAccessKey`,YSe=`StreamingBlob`,d7=`StorageClass`,XSe=`SessionCredentialValue`,ZSe=`SessionCredentials`,QSe=`SessionMode`,f7=`ServerSideEncryption`,p7=`SSECustomerAlgorithm`,m7=`SSECustomerKey`,h7=`SSECustomerKeyMD5`,g7=`SSEKMSEncryptionContext`,_7=`SSEKMSKeyId`,v7=`SessionToken`,y7=`Size`,$Se=`Tags`,eCe=`TagCount`,tCe=`TooManyParts`,b7=`TagSet`,x7=`Tag`,S7=`Tagging`,C7=`Type`,w7=`UploadId`,nCe=`UploadPart`,rCe=`UploadPartOutput`,iCe=`UploadPartRequest`,aCe=`Value`,T7=`VersionId`,oCe=`WriteOffsetBytes`,E7=`WebsiteRedirectLocation`,sCe=`accept-ranges`,cCe=`bucket-region`,D7=`client`,O7=`continuation-token`,lCe=`delimiter`,k7=`error`,uCe=`encoding-type`,dCe=`fetch-owner`,A7=`http`,j7=`httpChecksum`,M7=`httpError`,Z=`httpHeader`,N7=`httpPayload`,P7=`httpPrefixHeaders`,Q=`httpQuery`,fCe=`max-buckets`,pCe=`max-keys`,F7=`prefix`,I7=`partNumber`,mCe=`response-cache-control`,hCe=`response-content-disposition`,gCe=`response-content-encoding`,_Ce=`response-content-language`,vCe=`response-content-type`,yCe=`response-expires`,L7=`smithy.ts.sdk.synthetic.com.amazonaws.s3`,bCe=`start-after`,xCe=`streaming`,R7=`uploadId`,z7=`versionId`,B7=`xmlFlattened`,V7=`xmlName`,H7=`x-amz-acl`,SCe=`x-amz-abort-date`,CCe=`x-amz-abort-rule-id`,wCe=`x-amz-bucket-arn`,TCe=`x-amz-bypass-governance-retention`,ECe=`x-amz-bucket-namespace`,DCe=`x-amz-bucket-object-lock-enabled`,U7=`x-amz-checksum-algorithm`,W7=`x-amz-checksum-crc32`,G7=`x-amz-checksum-crc32c`,K7=`x-amz-checksum-crc64nvme`,q7=`x-amz-checksum-md5`,OCe=`x-amz-checksum-mode`,J7=`x-amz-checksum-sha1`,Y7=`x-amz-checksum-sha256`,X7=`x-amz-checksum-sha512`,kCe=`x-amz-create-session-mode`,Z7=`x-amz-checksum-type`,Q7=`x-amz-checksum-xxhash64`,$7=`x-amz-checksum-xxhash3`,e9=`x-amz-checksum-xxhash128`,t9=`x-amz-delete-marker`,n9=`x-amz-expiration`,r9=`x-amz-expected-bucket-owner`,i9=`x-amz-grant-full-control`,a9=`x-amz-grant-read`,o9=`x-amz-grant-read-acp`,ACe=`x-amz-grant-write`,s9=`x-amz-grant-write-acp`,jCe=`x-amz-if-match-initiated-time`,MCe=`x-amz-if-match-last-modified-time`,NCe=`x-amz-if-match-size`,c9=`x-amz-meta-`,PCe=`x-amz-mfa`,FCe=`x-amz-missing-meta`,ICe=`x-amz-mp-object-size`,LCe=`x-amz-mp-parts-count`,l9=`x-amz-object-lock-legal-hold`,u9=`x-amz-object-lock-mode`,d9=`x-amz-object-lock-retain-until-date`,RCe=`x-amz-object-ownership`,zCe=`x-amz-optional-object-attributes`,BCe=`x-amz-object-size`,VCe=`x-amz-restore`,f9=`x-amz-request-charged`,p9=`x-amz-request-payer`,HCe=`x-amz-replication-status`,m9=`x-amz-storage-class`,h9=`x-amz-sdk-checksum-algorithm`,g9=`x-amz-server-side-encryption`,_9=`x-amz-server-side-encryption-aws-kms-key-id`,v9=`x-amz-server-side-encryption-bucket-key-enabled`,y9=`x-amz-server-side-encryption-context`,b9=`x-amz-server-side-encryption-customer-algorithm`,x9=`x-amz-server-side-encryption-customer-key`,S9=`x-amz-server-side-encryption-customer-key-MD5`,C9=`x-amz-tagging`,UCe=`x-amz-tagging-count`,w9=`x-amz-version-id`,WCe=`x-amz-write-offset-bytes`,T9=`x-amz-website-redirect-location`,$=`com.amazonaws.s3`,E9=ce.for(L7),GCe=[-3,L7,`S3ServiceException`,0,[],[]];E9.registerError(GCe,K8);var D9=ce.for($),KCe=[-3,$,qbe,{[k7]:D7,[M7]:403},[],[]];D9.registerError(KCe,Nbe);var qCe=[-3,$,txe,{[k7]:D7,[M7]:409},[],[]];D9.registerError(qCe,Fbe);var JCe=[-3,$,nxe,{[k7]:D7,[M7]:409},[],[]];D9.registerError(JCe,Ibe);var YCe=[-3,$,Fxe,{[k7]:D7,[M7]:400},[],[]];D9.registerError(YCe,Vbe);var XCe=[-3,$,Yxe,{[k7]:D7,[M7]:400},[],[]];D9.registerError(XCe,Gbe);var ZCe=[-3,$,Jxe,{[k7]:D7,[M7]:403},[d7,exe],[0,0]];D9.registerError(ZCe,Rbe);var QCe=[-3,$,Xxe,{[k7]:D7,[M7]:400},[],[]];D9.registerError(QCe,Hbe);var $Ce=[-3,$,tSe,{[k7]:D7,[M7]:400},[],[]];D9.registerError($Ce,Ube);var ewe=[-3,$,xSe,{[k7]:D7,[M7]:404},[],[]];D9.registerError(ewe,Lbe);var twe=[-3,$,SSe,{[k7]:D7,[M7]:404},[],[]];D9.registerError(twe,zbe);var nwe=[-3,$,CSe,{[k7]:D7,[M7]:404},[],[]];D9.registerError(nwe,Mbe);var rwe=[-3,$,bSe,{[k7]:D7},[],[]];D9.registerError(rwe,Bbe);var iwe=[-3,$,wSe,{[k7]:D7,[M7]:403},[],[]];D9.registerError(iwe,Kbe);var awe=[-3,$,DSe,{[k7]:D7,[M7]:403},[],[]];D9.registerError(awe,Pbe);var owe=[-3,$,tCe,{[k7]:D7,[M7]:400},[],[]];D9.registerError(owe,Wbe);var swe=[E9,D9],O9=[0,$,XSe,8,0],k9=[0,$,m7,8,0],A9=[0,$,g7,8,0],j9=[0,$,_7,8,0],M9=[0,$,YSe,{[xCe]:1},42],cwe=[3,$,Xbe,0,[a7],[[0,{[Z]:f9}]]],lwe=[3,$,Zbe,0,[Y8,q5,w7,o7,P5,Hxe],[[0,1],[0,1],[0,{[Q]:R7}],[0,{[Z]:p9}],[0,{[Z]:r9}],[6,{[Z]:jCe}]],3],uwe=[3,$,Y8,0,[Q5,lxe,Q8,X8],[0,4,0,0]],dwe=[3,$,ixe,0,[Pxe,C7],[0,0]],fwe=[3,$,vxe,0,[r7],[0]],pwe=[3,$,uxe,0,[RSe],[[()=>Kwe,{[B7]:1,[V7]:zSe}]]],mwe=[3,$,xxe,0,[I5,i5,a5,o5,b5,x5,S5,_5,D5,O5,k5,i7],[0,0,0,0,0,0,0,0,0,0,0,1]],hwe=[3,$,dxe,{[V7]:pxe},[J5,Y8,q5,N5,I5,i5,a5,o5,b5,x5,S5,_5,D5,O5,k5,C5,f7,T7,_7,Z8,a7],[0,0,0,[0,{[Z]:n9}],0,0,0,0,0,0,0,0,0,0,0,0,[0,{[Z]:g9}],[0,{[Z]:w9}],[()=>j9,{[Z]:_9}],[2,{[Z]:v9}],[0,{[Z]:f9}]]],gwe=[3,$,mxe,0,[Y8,q5,w7,vSe,i5,a5,o5,b5,x5,S5,_5,D5,O5,k5,C5,_Se,o7,P5,U5,G5,p7,m7,h7],[[0,1],[0,1],[0,{[Q]:R7}],[()=>pwe,{[N7]:1,[V7]:y5}],[0,{[Z]:W7}],[0,{[Z]:G7}],[0,{[Z]:K7}],[0,{[Z]:J7}],[0,{[Z]:Y7}],[0,{[Z]:X7}],[0,{[Z]:q7}],[0,{[Z]:Q7}],[0,{[Z]:$7}],[0,{[Z]:e9}],[0,{[Z]:Z7}],[1,{[Z]:ICe}],[0,{[Z]:p9}],[0,{[Z]:r9}],[0,{[Z]:W5}],[0,{[Z]:K5}],[0,{[Z]:b9}],[()=>k9,{[Z]:x9}],[0,{[Z]:S9}]],3],_we=[3,$,n5,0,[cSe,J5,Y8,$Se],[0,()=>Mwe,()=>dwe,[()=>P9,0]]],vwe=[3,$,sxe,0,[J5,X8],[[0,{[Z]:J5}],[0,{[Z]:wCe}]]],ywe=[3,$,cxe,0,[Y8,q8,n5,z5,B5,V5,Bxe,H5,TSe,OSe,axe],[[0,1],[0,{[Z]:H7}],[()=>_we,{[N7]:1,[V7]:n5}],[0,{[Z]:i9}],[0,{[Z]:a9}],[0,{[Z]:o9}],[0,{[Z]:ACe}],[0,{[Z]:s9}],[2,{[Z]:DCe}],[0,{[Z]:RCe}],[0,{[Z]:ECe}]],1],bwe=[3,$,fxe,{[V7]:qxe},[Jbe,$be,Y8,q5,w7,f7,p7,h7,_7,g7,Z8,a7,t5,C5],[[4,{[Z]:SCe}],[0,{[Z]:CCe}],[0,{[V7]:Y8}],0,0,[0,{[Z]:g9}],[0,{[Z]:b9}],[0,{[Z]:S9}],[()=>j9,{[Z]:_9}],[()=>A9,{[Z]:y9}],[2,{[Z]:v9}],[0,{[Z]:f9}],[0,{[Z]:U7}],[0,{[Z]:Z7}]]],xwe=[3,$,hxe,0,[Y8,q5,q8,r5,l5,d5,f5,T5,R5,z5,B5,V5,H5,X5,f7,d7,E7,p7,m7,h7,_7,g7,Z8,o7,S7,t7,n7,e7,P5,t5,C5],[[0,1],[0,1],[0,{[Z]:H7}],[0,{[Z]:s5}],[0,{[Z]:c5}],[0,{[Z]:u5}],[0,{[Z]:p5}],[0,{[Z]:w5}],[4,{[Z]:R5}],[0,{[Z]:i9}],[0,{[Z]:a9}],[0,{[Z]:o9}],[0,{[Z]:s9}],[128,{[P7]:c9}],[0,{[Z]:g9}],[0,{[Z]:m9}],[0,{[Z]:T9}],[0,{[Z]:b9}],[()=>k9,{[Z]:x9}],[0,{[Z]:S9}],[()=>j9,{[Z]:_9}],[()=>A9,{[Z]:y9}],[2,{[Z]:v9}],[0,{[Z]:p9}],[0,{[Z]:C9}],[0,{[Z]:u9}],[5,{[Z]:d9}],[0,{[Z]:l9}],[0,{[Z]:r9}],[0,{[Z]:U7}],[0,{[Z]:Z7}]],2],Swe=[3,$,Txe,{[V7]:Exe},[A5,f7,_7,g7,Z8],[[()=>zwe,{[V7]:A5}],[0,{[Z]:g9}],[()=>j9,{[Z]:_9}],[()=>A9,{[Z]:y9}],[2,{[Z]:v9}]],1],Cwe=[3,$,Dxe,0,[Y8,QSe,f7,_7,g7,Z8],[[0,1],[0,{[Z]:kCe}],[0,{[Z]:g9}],[()=>j9,{[Z]:_9}],[()=>A9,{[Z]:y9}],[2,{[Z]:v9}]],1],wwe=[3,$,jxe,0,[j5,T7,a7],[[2,{[Z]:t9}],[0,{[Z]:w9}],[0,{[Z]:f9}]]],Twe=[3,$,Mxe,0,[Y8,q5,hSe,T7,o7,rxe,P5,U5,Uxe,Wxe],[[0,1],[0,1],[0,{[Z]:PCe}],[0,{[Q]:z7}],[0,{[Z]:p9}],[2,{[Z]:TCe}],[0,{[Z]:r9}],[0,{[Z]:W5}],[6,{[Z]:MCe}],[1,{[Z]:NCe}]],2],Ewe=[3,$,Rxe,0,[$8,j5,Qbe,N5,JSe,Y5,h5,I5,i5,a5,o5,b5,x5,S5,_5,D5,O5,k5,C5,gSe,T7,r5,l5,d5,f5,Cxe,T5,R5,F5,E7,f7,X5,p7,h7,_7,Z8,d7,a7,qSe,jSe,eCe,t7,n7,e7],[[()=>M9,16],[2,{[Z]:t9}],[0,{[Z]:sCe}],[0,{[Z]:n9}],[0,{[Z]:VCe}],[4,{[Z]:uSe}],[1,{[Z]:m5}],[0,{[Z]:I5}],[0,{[Z]:W7}],[0,{[Z]:G7}],[0,{[Z]:K7}],[0,{[Z]:J7}],[0,{[Z]:Y7}],[0,{[Z]:X7}],[0,{[Z]:q7}],[0,{[Z]:Q7}],[0,{[Z]:$7}],[0,{[Z]:e9}],[0,{[Z]:Z7}],[1,{[Z]:FCe}],[0,{[Z]:w9}],[0,{[Z]:s5}],[0,{[Z]:c5}],[0,{[Z]:u5}],[0,{[Z]:p5}],[0,{[Z]:wxe}],[0,{[Z]:w5}],[4,{[Z]:R5}],[0,{[Z]:F5}],[0,{[Z]:T9}],[0,{[Z]:g9}],[128,{[P7]:c9}],[0,{[Z]:b9}],[0,{[Z]:S9}],[()=>j9,{[Z]:_9}],[2,{[Z]:v9}],[0,{[Z]:m9}],[0,{[Z]:f9}],[0,{[Z]:HCe}],[1,{[Z]:LCe}],[1,{[Z]:UCe}],[0,{[Z]:u9}],[5,{[Z]:d9}],[0,{[Z]:l9}]]],Dwe=[3,$,zxe,0,[Y8,q5,U5,Kxe,G5,$xe,c7,BSe,VSe,HSe,USe,WSe,GSe,T7,p7,m7,h7,o7,i7,P5,_xe],[[0,1],[0,1],[0,{[Z]:W5}],[4,{[Z]:Gxe}],[0,{[Z]:K5}],[4,{[Z]:eSe}],[0,{[Z]:c7}],[0,{[Q]:mCe}],[0,{[Q]:hCe}],[0,{[Q]:gCe}],[0,{[Q]:_Ce}],[0,{[Q]:vCe}],[6,{[Q]:yCe}],[0,{[Q]:z7}],[0,{[Z]:b9}],[()=>k9,{[Z]:x9}],[0,{[Z]:S9}],[0,{[Z]:p9}],[1,{[Q]:I7}],[0,{[Z]:r9}],[0,{[Z]:OCe}]],2],Owe=[3,$,aSe,{[V7]:rSe},[e5,$5,E5,r7],[[()=>Wwe,0],()=>N9,0,0]],kwe=[3,$,oSe,0,[mSe,E5,r7,Q8],[[1,{[Q]:fCe}],[0,{[Q]:O7}],[0,{[Q]:F7}],[0,{[Q]:cCe}]]],Awe=[3,$,fSe,{[V7]:sSe},[Qxe,kxe,Q5,r7,M5,Z5,Sxe,L5,nSe,E5,ySe,l7,a7],[2,[()=>qwe,{[B7]:1}],0,0,0,1,[()=>Gwe,{[B7]:1}],0,1,0,0,0,[0,{[Z]:f9}]]],jwe=[3,$,pSe,0,[Y8,M5,L5,Z5,r7,E5,Ixe,l7,o7,P5,kSe],[[0,1],[0,{[Q]:lCe}],[0,{[Q]:uCe}],[1,{[Q]:pCe}],[0,{[Q]:F7}],[0,{[Q]:O7}],[2,{[Q]:dCe}],[0,{[Q]:bCe}],[0,{[Z]:p9}],[0,{[Z]:r9}],[64,{[Z]:zCe}]],1],Mwe=[3,$,lSe,0,[C7,Q5],[0,0]],Nwe=[3,$,ASe,0,[q5,Y5,I5,t5,C5,y7,d7,$5,s7],[0,4,0,[64,{[B7]:1}],0,1,0,()=>N9,()=>Rwe]],N9=[3,$,$5,0,[Axe,Vxe],[0,0]],Pwe=[3,$,NSe,0,[N5,I5,i5,a5,o5,b5,x5,S5,_5,D5,O5,k5,C5,f7,T7,p7,h7,_7,g7,Z8,y7,a7],[[0,{[Z]:n9}],[0,{[Z]:I5}],[0,{[Z]:W7}],[0,{[Z]:G7}],[0,{[Z]:K7}],[0,{[Z]:J7}],[0,{[Z]:Y7}],[0,{[Z]:X7}],[0,{[Z]:q7}],[0,{[Z]:Q7}],[0,{[Z]:$7}],[0,{[Z]:e9}],[0,{[Z]:Z7}],[0,{[Z]:g9}],[0,{[Z]:w9}],[0,{[Z]:b9}],[0,{[Z]:S9}],[()=>j9,{[Z]:_9}],[()=>A9,{[Z]:y9}],[2,{[Z]:v9}],[1,{[Z]:BCe}],[0,{[Z]:f9}]]],Fwe=[3,$,PSe,0,[Y8,q5,q8,$8,r5,l5,d5,f5,h5,v5,T5,t5,i5,a5,o5,b5,x5,S5,_5,D5,O5,k5,R5,U5,G5,z5,B5,V5,H5,oCe,X5,f7,d7,E7,p7,m7,h7,_7,g7,Z8,o7,S7,t7,n7,e7,P5],[[0,1],[0,1],[0,{[Z]:H7}],[()=>M9,16],[0,{[Z]:s5}],[0,{[Z]:c5}],[0,{[Z]:u5}],[0,{[Z]:p5}],[1,{[Z]:m5}],[0,{[Z]:g5}],[0,{[Z]:w5}],[0,{[Z]:h9}],[0,{[Z]:W7}],[0,{[Z]:G7}],[0,{[Z]:K7}],[0,{[Z]:J7}],[0,{[Z]:Y7}],[0,{[Z]:X7}],[0,{[Z]:q7}],[0,{[Z]:Q7}],[0,{[Z]:$7}],[0,{[Z]:e9}],[4,{[Z]:R5}],[0,{[Z]:W5}],[0,{[Z]:K5}],[0,{[Z]:i9}],[0,{[Z]:a9}],[0,{[Z]:o9}],[0,{[Z]:s9}],[1,{[Z]:WCe}],[128,{[P7]:c9}],[0,{[Z]:g9}],[0,{[Z]:m9}],[0,{[Z]:T9}],[0,{[Z]:b9}],[()=>k9,{[Z]:x9}],[0,{[Z]:S9}],[()=>j9,{[Z]:_9}],[()=>A9,{[Z]:y9}],[2,{[Z]:v9}],[0,{[Z]:p9}],[0,{[Z]:C9}],[0,{[Z]:u9}],[5,{[Z]:d9}],[0,{[Z]:l9}],[0,{[Z]:r9}]],2],Iwe=[3,$,ISe,0,[T7],[[0,{[Z]:w9}]]],Lwe=[3,$,LSe,0,[Y8,q5,S7,T7,v5,t5,P5,o7],[[0,1],[0,1],[()=>Vwe,{[N7]:1,[V7]:S7}],[0,{[Q]:z7}],[0,{[Z]:g5}],[0,{[Z]:h9}],[0,{[Z]:r9}],[0,{[Z]:p9}]],3],Rwe=[3,$,s7,0,[Zxe,KSe],[2,4]],zwe=[3,$,ZSe,0,[J8,u7,v7,N5],[[0,{[V7]:J8}],[()=>O9,{[V7]:u7}],[()=>O9,{[V7]:v7}],[4,{[V7]:N5}]],4],Bwe=[3,$,x7,0,[q5,aCe],[0,0],2],Vwe=[3,$,S7,0,[b7],[[()=>P9,0]],1],Hwe=[3,$,rCe,0,[f7,I5,i5,a5,o5,b5,x5,S5,_5,D5,O5,k5,p7,h7,_7,Z8,a7],[[0,{[Z]:g9}],[0,{[Z]:I5}],[0,{[Z]:W7}],[0,{[Z]:G7}],[0,{[Z]:K7}],[0,{[Z]:J7}],[0,{[Z]:Y7}],[0,{[Z]:X7}],[0,{[Z]:q7}],[0,{[Z]:Q7}],[0,{[Z]:$7}],[0,{[Z]:e9}],[0,{[Z]:b9}],[0,{[Z]:S9}],[()=>j9,{[Z]:_9}],[2,{[Z]:v9}],[0,{[Z]:f9}]]],Uwe=[3,$,iCe,0,[Y8,q5,i7,w7,$8,h5,v5,t5,i5,a5,o5,b5,x5,S5,_5,D5,O5,k5,p7,m7,h7,o7,P5],[[0,1],[0,1],[1,{[Q]:I7}],[0,{[Q]:R7}],[()=>M9,16],[1,{[Z]:m5}],[0,{[Z]:g5}],[0,{[Z]:h9}],[0,{[Z]:W7}],[0,{[Z]:G7}],[0,{[Z]:K7}],[0,{[Z]:J7}],[0,{[Z]:Y7}],[0,{[Z]:X7}],[0,{[Z]:q7}],[0,{[Z]:Q7}],[0,{[Z]:$7}],[0,{[Z]:e9}],[0,{[Z]:b9}],[()=>k9,{[Z]:x9}],[0,{[Z]:S9}],[0,{[Z]:p9}],[0,{[Z]:r9}]],4],Wwe=[1,$,e5,0,[()=>uwe,{[V7]:Y8}]],Gwe=[1,$,yxe,0,()=>fwe],Kwe=[1,$,bxe,0,()=>mwe],qwe=[1,$,ESe,0,[()=>Nwe,0]],P9=[1,$,b7,0,[()=>Bwe,{[V7]:x7}]],Jwe=[9,$,Ybe,{[A7]:[`DELETE`,`/{Key+}?x-id=AbortMultipartUpload`,204]},()=>lwe,()=>cwe],Ywe=[9,$,y5,{[A7]:[`POST`,`/{Key+}`,200]},()=>gwe,()=>hwe],Xwe=[9,$,oxe,{[A7]:[`PUT`,`/`,200]},()=>ywe,()=>vwe],Zwe=[9,$,gxe,{[A7]:[`POST`,`/{Key+}?uploads`,200]},()=>xwe,()=>bwe],Qwe=[9,$,Oxe,{[A7]:[`GET`,`/?session`,200]},()=>Cwe,()=>Swe],$we=[9,$,Nxe,{[A7]:[`DELETE`,`/{Key+}?x-id=DeleteObject`,204]},()=>Twe,()=>wwe],eTe=[9,$,Lxe,{[j7]:`-`,[A7]:[`GET`,`/{Key+}?x-id=GetObject`,200]},()=>Dwe,()=>Ewe],tTe=[9,$,iSe,{[A7]:[`GET`,`/?x-id=ListBuckets`,200]},()=>kwe,()=>Owe],nTe=[9,$,dSe,{[A7]:[`GET`,`/?list-type=2`,200]},()=>jwe,()=>Awe],rTe=[9,$,MSe,{[j7]:`-`,[A7]:[`PUT`,`/{Key+}?x-id=PutObject`,200]},()=>Fwe,()=>Pwe],iTe=[9,$,FSe,{[j7]:`-`,[A7]:[`PUT`,`/{Key+}?tagging`,200]},()=>Lwe,()=>Iwe],aTe=[9,$,nCe,{[j7]:`-`,[A7]:[`PUT`,`/{Key+}?x-id=UploadPart`,200]},()=>Uwe,()=>Hwe],oTe=class extends je.classBuilder().ep({...G8,DisableS3ExpressSessionAuth:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[tee(n,e.getEndpointParameterInstructions()),b6(n)]}).s(`AmazonS3`,`CreateSession`,{}).n(`S3Client`,`CreateSessionCommand`).sc(Qwe).build(){},sTe={name:`@aws-sdk/client-s3`,description:`AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native`,version:`3.1067.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo s3`,test:`yarn g:vitest run`,"test:browser":`node ./test/browser-build/esbuild && yarn g:vitest run -c vitest.config.browser.mts`,"test:browser:watch":`node ./test/browser-build/esbuild && yarn g:vitest watch -c vitest.config.browser.mts`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts && yarn test:browser`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`,"test:integration":`yarn g:vitest run -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest watch -c vitest.config.integ.mts`,"test:watch":`yarn g:vitest watch`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha1-browser":`5.2.0`,"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.20`,"@aws-sdk/credential-provider-node":`^3.972.55`,"@aws-sdk/middleware-flexible-checksums":`^3.974.30`,"@aws-sdk/middleware-sdk-s3":`^3.972.51`,"@aws-sdk/signature-v4-multi-region":`^3.996.34`,"@aws-sdk/types":`^3.973.12`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@aws-sdk/signature-v4-crt":`3.1067.0`,"@smithy/snapshot-testing":`^2.1.7`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-s3`}};function F9(e){return typeof e==`string`?e.length===0:e.byteLength===0}var I9={name:`SHA-1`},L9={name:`HMAC`,hash:I9},cTe=new Uint8Array([218,57,163,238,94,107,75,13,50,85,191,239,149,96,24,144,175,216,7,9]),lTe={};function R9(){return typeof window<`u`?window:typeof self<`u`?self:lTe}var uTe=function(){function e(e){this.toHash=new Uint8Array,e!==void 0&&(this.key=new Promise(function(t,n){R9().crypto.subtle.importKey(`raw`,z9(e),L9,!1,[`sign`]).then(t,n)}),this.key.catch(function(){}))}return e.prototype.update=function(e){if(!F9(e)){var t=z9(e),n=new Uint8Array(this.toHash.byteLength+t.byteLength);n.set(this.toHash,0),n.set(t,this.toHash.byteLength),this.toHash=n}},e.prototype.digest=function(){var e=this;return this.key?this.key.then(function(t){return R9().crypto.subtle.sign(L9,t,e.toHash).then(function(e){return new Uint8Array(e)})}):F9(this.toHash)?Promise.resolve(cTe):Promise.resolve().then(function(){return R9().crypto.subtle.digest(I9,e.toHash)}).then(function(e){return Promise.resolve(new Uint8Array(e))})},e.prototype.reset=function(){this.toHash=new Uint8Array},e}();function z9(e){return typeof e==`string`?aee(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var dTe=function(){function e(e){if(ut(R9()))this.hash=new uTe(e);else throw Error(`SHA1 not supported`)}return e.prototype.update=function(e,t){this.hash.update(cee(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}();async function fTe(e,t,n=1024*1024){let r=e.size,i=0;for(;i{n.update(e)}),n.digest()},mTe=[1732584193,4023233417,2562383102,271733878],hTe=class{state;buffer;bufferLength;bytesHashed;finished;constructor(){this.reset()}update(e){if(gTe(e))return;if(this.finished)throw Error(`Attempted to update an already finished hash.`);let t=_Te(e),n=0,{byteLength:r}=t;for(this.bytesHashed+=r;r>0;)this.buffer.setUint8(this.bufferLength++,t[n++]),r--,this.bufferLength===64&&(this.hashBuffer(),this.bufferLength=0)}async digest(){if(!this.finished){let{buffer:e,bufferLength:t,bytesHashed:n}=this,r=n*8;if(e.setUint8(this.bufferLength++,128),t%64>=56){for(let t=this.bufferLength;t<64;t++)e.setUint8(t,0);this.hashBuffer(),this.bufferLength=0}for(let t=this.bufferLength;t<56;t++)e.setUint8(t,0);e.setUint32(56,r>>>0,!0),e.setUint32(60,Math.floor(r/4294967296),!0),this.hashBuffer(),this.finished=!0}let e=new DataView(new ArrayBuffer(16));for(let t=0;t<4;t++)e.setUint32(t*4,this.state[t],!0);return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}hashBuffer(){let{buffer:e,state:t}=this,n=t[0],r=t[1],i=t[2],a=t[3];n=V9(n,r,i,a,e.getUint32(0,!0),7,3614090360),a=V9(a,n,r,i,e.getUint32(4,!0),12,3905402710),i=V9(i,a,n,r,e.getUint32(8,!0),17,606105819),r=V9(r,i,a,n,e.getUint32(12,!0),22,3250441966),n=V9(n,r,i,a,e.getUint32(16,!0),7,4118548399),a=V9(a,n,r,i,e.getUint32(20,!0),12,1200080426),i=V9(i,a,n,r,e.getUint32(24,!0),17,2821735955),r=V9(r,i,a,n,e.getUint32(28,!0),22,4249261313),n=V9(n,r,i,a,e.getUint32(32,!0),7,1770035416),a=V9(a,n,r,i,e.getUint32(36,!0),12,2336552879),i=V9(i,a,n,r,e.getUint32(40,!0),17,4294925233),r=V9(r,i,a,n,e.getUint32(44,!0),22,2304563134),n=V9(n,r,i,a,e.getUint32(48,!0),7,1804603682),a=V9(a,n,r,i,e.getUint32(52,!0),12,4254626195),i=V9(i,a,n,r,e.getUint32(56,!0),17,2792965006),r=V9(r,i,a,n,e.getUint32(60,!0),22,1236535329),n=H9(n,r,i,a,e.getUint32(4,!0),5,4129170786),a=H9(a,n,r,i,e.getUint32(24,!0),9,3225465664),i=H9(i,a,n,r,e.getUint32(44,!0),14,643717713),r=H9(r,i,a,n,e.getUint32(0,!0),20,3921069994),n=H9(n,r,i,a,e.getUint32(20,!0),5,3593408605),a=H9(a,n,r,i,e.getUint32(40,!0),9,38016083),i=H9(i,a,n,r,e.getUint32(60,!0),14,3634488961),r=H9(r,i,a,n,e.getUint32(16,!0),20,3889429448),n=H9(n,r,i,a,e.getUint32(36,!0),5,568446438),a=H9(a,n,r,i,e.getUint32(56,!0),9,3275163606),i=H9(i,a,n,r,e.getUint32(12,!0),14,4107603335),r=H9(r,i,a,n,e.getUint32(32,!0),20,1163531501),n=H9(n,r,i,a,e.getUint32(52,!0),5,2850285829),a=H9(a,n,r,i,e.getUint32(8,!0),9,4243563512),i=H9(i,a,n,r,e.getUint32(28,!0),14,1735328473),r=H9(r,i,a,n,e.getUint32(48,!0),20,2368359562),n=U9(n,r,i,a,e.getUint32(20,!0),4,4294588738),a=U9(a,n,r,i,e.getUint32(32,!0),11,2272392833),i=U9(i,a,n,r,e.getUint32(44,!0),16,1839030562),r=U9(r,i,a,n,e.getUint32(56,!0),23,4259657740),n=U9(n,r,i,a,e.getUint32(4,!0),4,2763975236),a=U9(a,n,r,i,e.getUint32(16,!0),11,1272893353),i=U9(i,a,n,r,e.getUint32(28,!0),16,4139469664),r=U9(r,i,a,n,e.getUint32(40,!0),23,3200236656),n=U9(n,r,i,a,e.getUint32(52,!0),4,681279174),a=U9(a,n,r,i,e.getUint32(0,!0),11,3936430074),i=U9(i,a,n,r,e.getUint32(12,!0),16,3572445317),r=U9(r,i,a,n,e.getUint32(24,!0),23,76029189),n=U9(n,r,i,a,e.getUint32(36,!0),4,3654602809),a=U9(a,n,r,i,e.getUint32(48,!0),11,3873151461),i=U9(i,a,n,r,e.getUint32(60,!0),16,530742520),r=U9(r,i,a,n,e.getUint32(8,!0),23,3299628645),n=W9(n,r,i,a,e.getUint32(0,!0),6,4096336452),a=W9(a,n,r,i,e.getUint32(28,!0),10,1126891415),i=W9(i,a,n,r,e.getUint32(56,!0),15,2878612391),r=W9(r,i,a,n,e.getUint32(20,!0),21,4237533241),n=W9(n,r,i,a,e.getUint32(48,!0),6,1700485571),a=W9(a,n,r,i,e.getUint32(12,!0),10,2399980690),i=W9(i,a,n,r,e.getUint32(40,!0),15,4293915773),r=W9(r,i,a,n,e.getUint32(4,!0),21,2240044497),n=W9(n,r,i,a,e.getUint32(32,!0),6,1873313359),a=W9(a,n,r,i,e.getUint32(60,!0),10,4264355552),i=W9(i,a,n,r,e.getUint32(24,!0),15,2734768916),r=W9(r,i,a,n,e.getUint32(52,!0),21,1309151649),n=W9(n,r,i,a,e.getUint32(16,!0),6,4149444226),a=W9(a,n,r,i,e.getUint32(44,!0),10,3174756917),i=W9(i,a,n,r,e.getUint32(8,!0),15,718787259),r=W9(r,i,a,n,e.getUint32(36,!0),21,3951481745),t[0]=n+t[0]&4294967295,t[1]=r+t[1]&4294967295,t[2]=i+t[2]&4294967295,t[3]=a+t[3]&4294967295}reset(){this.state=Uint32Array.from(mTe),this.buffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}};function B9(e,t,n,r,i,a){return t=(t+e&4294967295)+(r+a&4294967295)&4294967295,(t<>>32-i)+n&4294967295}function V9(e,t,n,r,i,a,o){return B9(t&n|~t&r,e,t,i,a,o)}function H9(e,t,n,r,i,a,o){return B9(t&r|n&~r,e,t,i,a,o)}function U9(e,t,n,r,i,a,o){return B9(t^n^r,e,t,i,a,o)}function W9(e,t,n,r,i,a,o){return B9(n^(t|~r),e,t,i,a,o)}function gTe(e){return typeof e==`string`?e.length===0:e.byteLength===0}function _Te(e){return typeof e==`string`?yt(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var vTe=e=>({apiVersion:`2006-03-01`,base64Decoder:e?.base64Decoder??bt,base64Encoder:e?.base64Encoder??wt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??H8,extensions:e?.extensions??[],getAwsChunkedEncodingStream:e?.getAwsChunkedEncodingStream??see,httpAuthSchemeProvider:e?.httpAuthSchemeProvider??kbe,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new ae},{schemeId:`aws.auth#sigv4a`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4a`),signer:new $e}],logger:e?.logger??new Be,protocol:e?.protocol??ybe,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.s3`,errorTypeRegistries:swe,xmlNamespace:`http://s3.amazonaws.com/doc/2006-03-01/`,version:`2006-03-01`,serviceTarget:`AmazonS3`},sdkStreamMixin:e?.sdkStreamMixin??Tt,serviceId:e?.serviceId??`S3`,signerConstructor:e?.signerConstructor??Me,signingEscapePath:e?.signingEscapePath??!1,urlParser:e?.urlParser??Qe,useArnRegion:e?.useArnRegion??void 0,utf8Decoder:e?.utf8Decoder??yt,utf8Encoder:e?.utf8Encoder??St}),yTe=e=>{let t=Se(e),n=()=>t().then(He),r=vTe(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Ot,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??ge({serviceId:r.serviceId,clientVersion:sTe.version}),eventStreamSerdeProvider:e?.eventStreamSerdeProvider??jt,maxAttempts:e?.maxAttempts??3,md5:e?.md5??hTe,region:e?.region??et(`Region is missing`),requestHandler:Ae.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Le),sha1:e?.sha1??dTe,sha256:e?.sha256??se,streamCollector:e?.streamCollector??ft,streamHasher:e?.streamHasher??pTe,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},bTe=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},xTe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),STe=(e,t)=>{let n=Object.assign(Ze(e),lt(e),ie(e),bTe(e));return t.forEach(e=>e.configure(n)),Object.assign(e,be(n),ht(n),Ge(n),xTe(n))},CTe=class extends Te{config;constructor(...[e]){let t=yTe(e||{});super(t),this.initConfig=t;let n=STe(Qye(Abe(At(We(ve(Ee(Re(Wye(ke(jbe(t))))))))),{session:[()=>this,oTe]}),e?.extensions||[]);this.config=n,this.middlewareStack.use(de(this.config)),this.middlewareStack.use(ye(this.config)),this.middlewareStack.use(_e(this.config)),this.middlewareStack.use(Oe(this.config)),this.middlewareStack.use(me(this.config)),this.middlewareStack.use(Ie(this.config)),this.middlewareStack.use(Pe(this.config)),this.middlewareStack.use(he(this.config,{httpAuthSchemeParametersProvider:Obe,identityProviderConfigProvider:async e=>new gt({"aws.auth#sigv4":e.credentials,"aws.auth#sigv4a":e.credentials})})),this.middlewareStack.use(oe(this.config)),this.middlewareStack.use(vbe(this.config)),this.middlewareStack.use(Sbe(this.config)),this.middlewareStack.use(Yye(this.config)),this.middlewareStack.use(rbe(this.config)),this.middlewareStack.use(cbe(this.config))}destroy(){super.destroy()}},G9=`ap-southeast-2`,K9=`${window.location.protocol}//localhost:9999`,wTe=`${window.location.protocol}//localhost:8443`,q9=null,J9=null,Y9=null,X9=null,Z9=null,Q9=null,$9=null;function TTe(){if(!q9){let e=ot();if(!e)throw Error(`AWS credentials not configured`);q9=new wF({endpoint:K9,region:G9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),q9.middlewareStack.add(e=>async t=>(De.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return q9}function ETe(){if(!J9){let e=ot();if(!e)throw Error(`AWS credentials not configured`);J9=new lQ({endpoint:K9,region:G9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),J9.middlewareStack.add(e=>async t=>(De.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return J9}function DTe(){if(!Y9){let e=ot();if(!e)throw Error(`AWS credentials not configured`);Y9=new Fpe({endpoint:K9,region:G9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),Y9.middlewareStack.add(e=>async t=>(De.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return Y9}function OTe(){if(!X9){let e=ot();if(!e)throw Error(`AWS credentials not configured`);X9=new ote({endpoint:K9,region:G9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),X9.middlewareStack.add(e=>async t=>(De.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return X9}function kTe(){if(!Z9){let e=ot();if(!e)throw Error(`AWS credentials not configured`);Z9=new Rye({endpoint:K9,region:G9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),Z9.middlewareStack.add(e=>async t=>(De.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return Z9}function ATe(){if(!$9){let e=ot();if(!e)throw Error(`AWS credentials not configured`);$9=new hV({endpoint:K9,region:G9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),$9.middlewareStack.add(e=>async t=>(De.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return $9}function jTe(){if(!Q9){let e=ot();if(!e)throw Error(`AWS credentials not configured`);Q9=new CTe({endpoint:wTe,region:G9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken},forcePathStyle:!0}),Q9.middlewareStack.add(e=>async t=>(De.isInstance(t.request)&&t.request.path.endsWith(`/`)&&t.request.path!==`/`&&(t.request.path=t.request.path.slice(0,-1)),await e(t)),{step:`build`,name:`removeTrailingSlash`}),Q9.middlewareStack.add(e=>async t=>(De.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/s3${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return Q9}function MTe(){q9=null,J9=null,Y9=null,X9=null,Z9=null,Q9=null,$9=null}export{Aye as $,qP as $n,nQ as $t,sye as A,wP as An,Pt as Ar,hQ as At,_ye as B,PP as Bn,UZ as Bt,Uye as C,_P as Cn,_F as Cr,Cpe as Ct,iye as D,xP as Dn,ete as Dr,Dpe as Dt,rye as E,bP as En,$ee as Er,Epe as Et,fye as F,kP as Fn,RZ as Ft,Sye as G,zP as Gn,JZ as Gt,yye as H,IP as Hn,GZ as Ht,pye as I,AP as In,zZ as It,Tye as J,UP as Jn,ZZ as Jt,Cye as K,BP as Kn,YZ as Kt,mye as L,jP as Ln,BZ as Lt,lye as M,EP as Mn,FZ as Mt,uye as N,DP as Nn,IZ as Nt,aye as O,SP as On,Fee as Or,Ope as Ot,dye as P,OP as Pn,LZ as Pt,kye as Q,KP as Qn,tQ as Qt,hye as R,MP as Rn,VZ as Rt,v6 as S,gP as Sn,gF as Sr,Spe as St,Bye as T,yP as Tn,fte as Tr,Tpe as Tt,bye as U,LP as Un,KZ as Ut,vye as V,FP as Vn,WZ as Vt,xye as W,RP as Wn,qZ as Wt,Dye as X,WP as Xn,$Z as Xt,Eye as Y,HP as Yn,QZ as Yt,Oye as Z,GP as Zn,eQ as Zt,rTe as _,dP as _n,dF as _r,_pe as _t,ETe as a,aV as an,$P as ar,ape as at,G8 as b,mP as bn,mF as br,bpe as bt,jTe as c,cV as cn,nF as cr,cpe as ct,Xwe as d,jF as dn,aF as dr,dpe as dt,rQ as en,JP as er,jye as et,Zwe as f,oP as fn,oF as fr,fpe as ft,nTe as g,uP as gn,uF as gr,gpe as gt,tTe as h,lP as hn,lF as hr,hpe as ht,ATe as i,iV as in,QP as ir,ipe as it,cye as j,TP as jn,PZ as jt,oye as k,CP as kn,Jt as kr,kpe as kt,Jwe as l,lV as ln,rF as lr,lpe as lt,eTe as m,cP as mn,cF as mr,mpe as mt,OTe as n,nV as nn,XP as nr,Vpe as nt,DTe as o,oV as on,eF as or,ope as ot,$we as p,sP as pn,sF as pr,ppe as pt,wye as q,VP as qn,XZ as qt,TTe as r,rV as rn,ZP as rr,rpe as rt,kTe as s,sV as sn,tF as sr,spe as st,MTe as t,xV as tn,YP as tr,Mye as tt,Ywe as u,wI as un,iF as ur,upe as ut,iTe as v,fP as vn,fF as vr,vpe as vt,_6 as w,vP as wn,vF as wr,wpe as wt,b6 as x,hP as xn,hF as xr,xpe as xt,aTe as y,pP as yn,pF as yr,ype as yt,gye as z,NP as zn,HZ as zt}; \ No newline at end of file +import{i as e,n as t,o as n,r}from"./compiler-runtime.js";import{A as i,F as a,H as o,N as s,U as c,i as l,p as ee,s as te,t as ne,u}from"./useStore.js";import{$ as re,A as ie,B as ae,C as oe,Ct as se,Dt as ce,E as le,Et as ue,F as de,Ft as fe,G as pe,H as me,I as he,J as ge,K as _e,L as ve,M as ye,Mt as be,N as xe,Nt as Se,O as Ce,Ot as we,P as Te,Pt as Ee,Q as De,R as Oe,S as ke,St as Ae,T as je,Tt as Me,U as Ne,V as Pe,W as Fe,X as Ie,Y as Le,_ as Re,_t as ze,b as Be,bt as Ve,ct as He,dt as Ue,et as We,ft as Ge,g as Ke,gt as qe,ht as Je,it as Ye,j as Xe,jt as Ze,k as Qe,kt as $e,mt as et,nt as tt,ot as nt,pt as rt,q as it,r as at,rt as ot,st,tt as eee,ut as tee,v as nee,vt as ct,w as lt,wt as ut,x as dt,xt as ft,y as pt,yt as mt,z as ht}from"./auth.js";import{A as ree,C as gt,D as _t,F as vt,I as yt,M as bt,N as xt,O as St,P as Ct,S as iee,c as aee,f as wt,j as oee,k as Tt,p as see,s as cee,u as Et,v as Dt,x as Ot}from"./tslib.es6.js";import{n as kt,r as At}from"./index.browser.js";var jt=`Error preloading route! ☝️`,Mt=e((e=>{var t=r();function n(e){var t=`https://react.dev/errors/`+e;if(1{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Mt()})),Pt=n(r(),1);t();var Ft=n(Nt(),1);function It(e,t){let n=l(),r=o(t),{activeProps:re,inactiveProps:ie,activeOptions:ae,to:oe,preload:se,preloadDelay:ce,preloadIntentProximity:le,hashScrollIntoView:ue,replace:de,startTransition:fe,resetScroll:pe,viewTransition:me,children:he,target:ge,disabled:_e,style:ve,className:ye,onClick:be,onBlur:xe,onFocus:Se,onMouseEnter:Ce,onMouseLeave:we,onTouchStart:Te,ignoreBlocker:Ee,params:De,search:Oe,hash:ke,state:Ae,mask:je,reloadDocument:Me,unsafeRelative:Ne,from:Pe,_fromLocation:Fe,...Ie}=e,Le=te(),Re=Pt.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),ze=ne(n.stores.location,e=>e,(e,t)=>e.href===t.href),Be=Pt.useMemo(()=>{let e={_fromLocation:ze,...Re};return n.buildLocation(e)},[n,ze,Re]),Ve=Be.maskedLocation?Be.maskedLocation.publicHref:Be.publicHref,He=Be.maskedLocation?Be.maskedLocation.external:Be.external,Ue=Pt.useMemo(()=>Gt(Ve,He,n.history,_e),[_e,He,Ve,n.history]),We=Pt.useMemo(()=>{if(Ue?.external)return a(Ue.href,n.protocolAllowlist)?void 0:Ue.href;if(!Kt(oe)&&!(typeof oe!=`string`||oe.indexOf(`:`)===-1))try{return new URL(oe),a(oe,n.protocolAllowlist)?void 0:oe}catch{}},[oe,Ue,n.protocolAllowlist]),Ge=Pt.useMemo(()=>{if(We)return!1;if(ae?.exact){if(!u(ze.pathname,Be.pathname,n.basepath))return!1}else{let e=ee(ze.pathname,n.basepath),t=ee(Be.pathname,n.basepath);if(!(e.startsWith(t)&&(e.length===t.length||e[t.length]===`/`)))return!1}return(ae?.includeSearch??!0)&&!i(ze.search,Be.search,{partial:!ae?.exact,ignoreUndefined:!ae?.explicitUndefined})?!1:ae?.includeHash?Le&&ze.hash===Be.hash:!0},[ae?.exact,ae?.explicitUndefined,ae?.includeHash,ae?.includeSearch,ze,We,Le,Be.hash,Be.pathname,Be.search,n.basepath]),Ke=Ge?s(re,{})??Rt:Lt,qe=Ge?Lt:s(ie,{})??Lt,Je=[ye,Ke.className,qe.className].filter(Boolean).join(` `),Ye=(ve||Ke.style||qe.style)&&{...ve,...Ke.style,...qe.style},[Xe,Ze]=Pt.useState(!1),Qe=Pt.useRef(!1),$e=e.reloadDocument||We?!1:se??n.options.defaultPreload,et=ce??n.options.defaultPreloadDelay??0,tt=Pt.useCallback(()=>{n.preloadRoute({...Re,_builtLocation:Be}).catch(e=>{console.warn(e),console.warn(jt)})},[n,Re,Be]);c(r,Pt.useCallback(e=>{e?.isIntersecting&&tt()},[tt]),Ut,{disabled:!!_e||$e!==`viewport`}),Pt.useEffect(()=>{Qe.current||!_e&&$e===`render`&&(tt(),Qe.current=!0)},[_e,tt,$e]);let nt=e=>{let t=e.currentTarget.getAttribute(`target`),r=ge===void 0?t:ge;if(!_e&&!Jt(e)&&!e.defaultPrevented&&(!r||r===`_self`)&&e.button===0){e.preventDefault(),(0,Ft.flushSync)(()=>{Ze(!0)});let t=n.subscribe(`onResolved`,()=>{t(),Ze(!1)});n.navigate({...Re,replace:de,resetScroll:pe,hashScrollIntoView:ue,startTransition:fe,viewTransition:me,ignoreBlocker:Ee})}};if(We)return{...Ie,ref:r,href:We,...he&&{children:he},...ge&&{target:ge},..._e&&{disabled:_e},...ve&&{style:ve},...ye&&{className:ye},...be&&{onClick:be},...xe&&{onBlur:xe},...Se&&{onFocus:Se},...Ce&&{onMouseEnter:Ce},...we&&{onMouseLeave:we},...Te&&{onTouchStart:Te}};let rt=e=>{if(_e||$e!==`intent`)return;if(!et){tt();return}let t=e.currentTarget;if(Ht.has(t))return;let n=setTimeout(()=>{Ht.delete(t),tt()},et);Ht.set(t,n)},it=e=>{_e||$e!==`intent`||tt()},at=e=>{if(_e||!$e||!et)return;let t=e.currentTarget,n=Ht.get(t);n&&(clearTimeout(n),Ht.delete(t))};return{...Ie,...Ke,...qe,href:Ue?.href,ref:r,onClick:Wt([be,nt]),onBlur:Wt([xe,at]),onFocus:Wt([Se,rt]),onMouseEnter:Wt([Ce,rt]),onMouseLeave:Wt([we,at]),onTouchStart:Wt([Te,it]),disabled:!!_e,target:ge,...Ye&&{style:Ye},...Je&&{className:Je},..._e&&zt,...Ge&&Bt,...Le&&Xe&&Vt}}var Lt={},Rt={className:`active`},zt={role:`link`,"aria-disabled":!0},Bt={"data-status":`active`,"aria-current":`page`},Vt={"data-transitioning":`transitioning`},Ht=new WeakMap,Ut={rootMargin:`100px`},Wt=e=>t=>{for(let n of e)if(n){if(t.defaultPrevented)return;n(t)}};function Gt(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||`/`,external:!1}}function Kt(e){if(typeof e!=`string`)return!1;let t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var qt=Pt.forwardRef((e,t)=>{let{_asChild:n,...r}=e,{type:i,...a}=It(r,t),o=typeof r.children==`function`?r.children({isActive:a[`data-status`]===`active`}):r.children;if(!n){let{disabled:e,...t}=a;return Pt.createElement(`a`,t,o)}return Pt.createElement(n,a,o)});function Jt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var Yt=class extends Ye{async serializeRequest(e,t,n){let r=t&&typeof t==`object`?t:{},i=this.serializer,a={},o={},s=await n.endpoint(),c=ut.of(e?.input),l=[],ee=[],te=!1,ne,u=new Ee({protocol:``,hostname:``,port:void 0,path:``,fragment:void 0,query:a,headers:o,body:void 0});if(s){this.updateServiceEndpoint(u,s),this.setHostPrefix(u,e,r);let t=Me(e.traits);if(t.http){u.method=t.http[0];let[e,n]=t.http[1].split(`?`);u.path==`/`?u.path=e:u.path+=e;let r=new URLSearchParams(n??``);for(let[e,t]of r)a[e]=t}}for(let[e,t]of c.structIterator()){let n=t.getMergedTraits()??{},s=r[e];if(s==null&&!t.isIdempotencyToken()){if(n.httpLabel&&(u.path.includes(`{${e}+}`)||u.path.includes(`{${e}}`)))throw Error(`No value provided for input HTTP label: ${e}.`);continue}if(n.httpPayload)t.isStreaming()?t.isStructSchema()?r[e]&&(ne=await this.serializeEventStream({eventStream:r[e],requestSchema:c})):ne=s:(i.write(t,s),ne=i.flush());else if(n.httpLabel){i.write(t,s);let n=i.flush();u.path.includes(`{${e}+}`)?u.path=u.path.replace(`{${e}+}`,n.split(`/`).map(st).join(`/`)):u.path.includes(`{${e}}`)&&(u.path=u.path.replace(`{${e}}`,st(n)))}else if(n.httpHeader)i.write(t,s),o[n.httpHeader.toLowerCase()]=String(i.flush());else if(typeof n.httpPrefixHeaders==`string`)for(let e in s){let r=s[e],a=n.httpPrefixHeaders+e;i.write([t.getValueSchema(),{httpHeader:a}],r),o[a.toLowerCase()]=i.flush()}else n.httpQuery||n.httpQueryParams?this.serializeQuery(t,s,a):(te=!0,l.push(e),ee.push(t))}if(te&&r){let[e,t]=(c.getName(!0)??`#Unknown`).split(`#`),n=c.getSchema()[6],a=[3,e,t,c.getMergedTraits(),l,ee,void 0];n?a[6]=n:a.pop(),i.write(a,r),ne=i.flush()}return u.headers=o,u.query=a,u.body=ne,u}serializeQuery(e,t,n){let r=this.serializer,i=e.getMergedTraits();if(i.httpQueryParams){for(let r in t)if(!(r in n)){let a=t[r],o=e.getValueSchema();Object.assign(o.getMergedTraits(),{...i,httpQuery:r,httpQueryParams:void 0}),this.serializeQuery(o,a,n)}return}if(e.isListSchema()){let a=!!e.getMergedTraits().sparse,o=[];for(let n of t){r.write([e.getValueSchema(),i],n);let t=r.flush();(a||t!==void 0)&&o.push(t)}n[i.httpQuery]=o}else r.write([e,i],t),n[i.httpQuery]=r.flush()}async deserializeResponse(e,t,n){let r=this.deserializer,i=ut.of(e.output),a={};if(n.statusCode>=300){let i=await He(n.body,t);throw i.byteLength>0&&Object.assign(a,await r.read(15,i)),await this.handleError(e,t,n,a,this.deserializeMetadata(n)),Error(`@smithy/core/protocols - HTTP Protocol error handler failed to throw.`)}for(let e in n.headers){let t=n.headers[e];delete n.headers[e],n.headers[e.toLowerCase()]=t}let o=await this.deserializeHttpMessage(i,t,n,a);if(o.length){let e=await He(n.body,t);if(e.byteLength>0){let t=await r.read(i,e);for(let e of o)t[e]!=null&&(a[e]=t[e])}}else o.discardResponseBody&&await He(n.body,t);return a.$metadata=this.deserializeMetadata(n),a}async deserializeHttpMessage(e,t,n,r,i){let a;a=r instanceof Set?i:r;let o=!0,s=this.deserializer,c=ut.of(e),l=[];for(let[e,r]of c.structIterator()){let i=r.getMemberTraits();if(i.httpPayload){if(o=!1,r.isStreaming())r.isStructSchema()?a[e]=await this.deserializeEventStream({response:n,responseSchema:c}):a[e]=wt(n.body);else if(n.body){let i=await He(n.body,t);i.byteLength>0&&(a[e]=await s.read(r,i))}}else if(i.httpHeader){let t=String(i.httpHeader).toLowerCase(),o=n.headers[t];if(o!=null)if(r.isListSchema()){let n=r.getValueSchema();n.getMergedTraits().httpHeader=t;let i;i=n.isTimestampSchema()&&n.getSchema()===4?gt(o,`,`,2):iee(o);let c=[];for(let e of i)c.push(await s.read(n,e.trim()));a[e]=c}else a[e]=await s.read(r,o)}else if(i.httpPrefixHeaders!==void 0){a[e]={};for(let t in n.headers)if(t.startsWith(i.httpPrefixHeaders)){let o=n.headers[t],c=r.getValueSchema();c.getMergedTraits().httpHeader=t,a[e][t.slice(i.httpPrefixHeaders.length)]=await s.read(c,o)}}else i.httpResponseCode?a[e]=n.statusCode:l.push(e)}return l.discardResponseBody=o,l}},Xt=class extends nt{codecDeserializer;stringDeserializer;constructor(e,t){super(),this.codecDeserializer=e,this.stringDeserializer=new eee(t)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e),this.codecDeserializer.setSerdeContext(e),this.serdeContext=e}read(e,t){let n=ut.of(e),r=n.getMergedTraits(),i=this.serdeContext?.utf8Encoder??xt;if(r.httpHeader||r.httpResponseCode)return this.stringDeserializer.read(n,i(t));if(r.httpPayload){if(n.isBlobSchema()){let e=this.serdeContext?.utf8Decoder??vt;return typeof t==`string`?e(t):t}else if(n.isStringSchema())return`byteLength`in t?i(t):t}return this.codecDeserializer.read(n,t)}},Zt=class extends nt{settings;stringBuffer=``;constructor(e){super(),this.settings=e}write(e,t){let n=ut.of(e);switch(typeof t){case`object`:if(t===null){this.stringBuffer=`null`;return}if(n.isTimestampSchema()){if(!(t instanceof Date))throw Error(`@smithy/core/protocols - received non-Date value ${t} when schema expected Date in ${n.getName(!0)}`);switch(tt(n,this.settings)){case 5:this.stringBuffer=t.toISOString().replace(`.000Z`,`Z`);break;case 6:this.stringBuffer=Tt(t);break;case 7:this.stringBuffer=String(t.getTime()/1e3);break;default:console.warn(`Missing timestamp format, using epoch seconds`,t),this.stringBuffer=String(t.getTime()/1e3)}return}if(n.isBlobSchema()&&`byteLength`in t){this.stringBuffer=(this.serdeContext?.base64Encoder??Ct)(t);return}if(n.isListSchema()&&Array.isArray(t)){let e=``;for(let r of t){this.write([n.getValueSchema(),n.getMergedTraits()],r);let t=this.flush(),i=n.getValueSchema().isTimestampSchema()?t:_t(t);e!==``&&(e+=`, `),e+=i}this.stringBuffer=e;return}this.stringBuffer=JSON.stringify(t,null,2);break;case`string`:let e=n.getMergedTraits().mediaType,r=t;if(e&&((e===`application/json`||e.endsWith(`+json`))&&(r=St.from(r)),n.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??Ct)(r.toString());return}this.stringBuffer=t;break;default:n.isIdempotencyToken()?this.stringBuffer=Et():this.stringBuffer=String(t)}}flush(){let e=this.stringBuffer;return this.stringBuffer=``,e}},Qt=class{codecSerializer;stringSerializer;buffer;constructor(e,t,n=new Zt(t)){this.codecSerializer=e,this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e),this.stringSerializer.setSerdeContext(e)}write(e,t){let n=ut.of(e),r=n.getMergedTraits();if(r.httpHeader||r.httpLabel||r.httpQuery){this.stringSerializer.write(n,t),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(n,t)}flush(){if(this.buffer!==void 0){let e=this.buffer;return this.buffer=void 0,e}return this.codecSerializer.flush()}};function lee(e,t,n){if(n?.source){let e=n.source;if(typeof t==`number`&&(t>2**53-1||t<-(2**53-1)||e!==String(t)))return e.includes(`.`)?new Ot(e,`bigDecimal`):BigInt(e)}return t}var uee=(e,t)=>He(e,t).then(e=>(t?.utf8Encoder??xt)(e)),dee=(e,t)=>uee(e,t).then(e=>{if(e.length)try{return JSON.parse(e)}catch(t){throw t?.name===`SyntaxError`&&Object.defineProperty(t,"$responseBodyText",{value:e}),t}return{}}),$t=(e,t)=>Object.keys(e).find(e=>e.toLowerCase()===t.toLowerCase()),en=e=>{let t=e;return typeof t==`number`&&(t=t.toString()),t.indexOf(`,`)>=0&&(t=t.split(`,`)[0]),t.indexOf(`:`)>=0&&(t=t.split(`:`)[0]),t.indexOf(`#`)>=0&&(t=t.split(`#`)[1]),t},fee=(e,t)=>tn(e,t,[`header`,`code`,`type`]),pee=(e,t,n=!1)=>tn(e,t,n?[`code`,`header`,`type`]:[`type`,`code`,`header`]),tn=({headers:e},t,n)=>{for(;n.length>0;)switch(n.shift()){case`header`:let n=$t(e??{},`x-amzn-errortype`);if(n!==void 0)return en(e[n]);break;case`code`:let r=$t(t??{},`code`);if(r&&t[r]!==void 0)return en(t[r]);break;case`type`:if(t?.__type!==void 0)return en(t.__type);break}},mee=class extends pt{settings;constructor(e){super(),this.settings=e}async read(e,t){return this._read(e,typeof t==`string`?JSON.parse(t,lee):await dee(t,this.serdeContext))}readObject(e,t){return this._read(e,t)}_read(e,t){let n=typeof t==`object`&&!!t,r=ut.of(e);if(n){if(r.isStructSchema()){let e=t,n=r.isUnionSchema(),i={},a,{jsonName:o}=this.settings;o&&(a={});let s;n&&(s=new nee(e,i));for(let[t,c]of r.structIterator()){let r=t;o&&(r=c.getMergedTraits().jsonName??r,a[r]=t),n&&s.mark(r),e[r]!=null&&(i[t]=this._read(c,e[r]))}if(n)s.writeUnknown();else if(typeof e.__type==`string`)for(let t in e){let n=e[t],r=o?a[t]??t:t;r in i||(i[r]=n)}return i}if(Array.isArray(t)&&r.isListSchema()){let e=r.getValueSchema(),n=[];for(let r of t)n.push(this._read(e,r));return n}if(r.isMapSchema()){let e=r.getValueSchema(),n={};for(let r in t)n[r]=this._read(e,t[r]);return n}}if(r.isBlobSchema()&&typeof t==`string`)return yt(t);let i=r.getMergedTraits().mediaType;if(r.isStringSchema()&&typeof t==`string`&&i)return i===`application/json`||i.endsWith(`+json`)?St.from(t):t;if(r.isTimestampSchema()&&t!=null)switch(tt(r,this.settings)){case 5:return oee(t);case 6:return bt(t);case 7:return ree(t);default:return console.warn(`Missing timestamp format, parsing value with Date constructor:`,t),new Date(t)}if(r.isBigIntegerSchema()&&(typeof t==`number`||typeof t==`string`))return BigInt(t);if(r.isBigDecimalSchema()&&t!=null){if(t instanceof Ot)return t;let e=t;return e.type===`bigDecimal`&&`string`in e?new Ot(e.string,e.type):new Ot(String(t),`bigDecimal`)}if(r.isNumericSchema()&&typeof t==`string`){switch(t){case`Infinity`:return 1/0;case`-Infinity`:return-1/0;case`NaN`:return NaN}return t}if(r.isDocumentSchema())if(n){let e=Array.isArray(t)?[]:{};for(let n in t){let i=t[n];i instanceof Ot?e[n]=i:e[n]=this._read(r,i)}return e}else return structuredClone(t);return t}},hee=class{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw Error(`@aws-sdk/core/protocols - JsonReplacer already created.`);if(this.stage===2)throw Error(`@aws-sdk/core/protocols - JsonReplacer exhausted.`);return this.stage=1,(e,t)=>{if(t instanceof Ot){let e=`${`Νnv`+ this.counter++}_`+t.string;return this.values.set(`"${e}"`,t.string),e}if(typeof t==`bigint`){let e=t.toString(),n=`${`Νb`+ this.counter++}_`+e;return this.values.set(`"${n}"`,e),n}return t}}replaceInJson(e){if(this.stage===0)throw Error(`@aws-sdk/core/protocols - JsonReplacer not created yet.`);if(this.stage===2)throw Error(`@aws-sdk/core/protocols - JsonReplacer exhausted.`);if(this.stage=2,this.counter===0)return e;for(let[t,n]of this.values)e=e.replace(t,n);return e}},gee=class extends pt{settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,t){this.rootSchema=ut.of(e),this.buffer=this._write(this.rootSchema,t)}flush(){let{rootSchema:e,useReplacer:t}=this;if(this.rootSchema=void 0,this.useReplacer=!1,e?.isStructSchema()||e?.isDocumentSchema()){if(!t)return JSON.stringify(this.buffer);let e=new hee;return e.replaceInJson(JSON.stringify(this.buffer,e.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(e,t){this.write(e,t),typeof this.buffer==`object`&&(this.buffer.__type=ut.of(e).getName(!0))}_write(e,t,n){let r=typeof t==`object`&&!!t,i=ut.of(e);if(r){if(i.isStructSchema()){let e=t,n={},{jsonName:r}=this.settings,a;r&&(a={});let o=0;for(let[t,s]of i.structIterator()){let c=this._write(s,e[t],i);if(c!==void 0){let e=t;r&&(e=s.getMergedTraits().jsonName??t,a[t]=e),n[e]=c,o++}}if(i.isUnionSchema()&&o===0){let{$unknown:t}=e;if(Array.isArray(t)){let[e,r]=t;n[e]=this._write(15,r)}}else if(typeof e.__type==`string`)for(let t in e){let i=e[t],o=r?a[t]??t:t;o in n||(n[o]=this._write(15,i))}return n}if(Array.isArray(t)&&i.isListSchema()){let e=i.getValueSchema(),n=[],r=!!i.getMergedTraits().sparse;for(let i of t)(r||i!=null)&&n.push(this._write(e,i));return n}if(i.isMapSchema()){let e=i.getValueSchema(),n={},r=!!i.getMergedTraits().sparse;for(let i in t){let a=t[i];(r||a!=null)&&(n[i]=this._write(e,a))}return n}if(t instanceof Uint8Array&&(i.isBlobSchema()||i.isDocumentSchema()))return i===this.rootSchema?t:(this.serdeContext?.base64Encoder??Ct)(t);if(t instanceof Date&&(i.isTimestampSchema()||i.isDocumentSchema()))switch(tt(i,this.settings)){case 5:return t.toISOString().replace(`.000Z`,`Z`);case 6:return Tt(t);case 7:return t.getTime()/1e3;default:return console.warn(`Missing timestamp format, using epoch seconds`,t),t.getTime()/1e3}t instanceof Ot&&(this.useReplacer=!0)}if(!(t===null&&n?.isStructSchema())){if(i.isStringSchema()){if(t===void 0&&i.isIdempotencyToken())return Et();let e=i.getMergedTraits().mediaType;return t!=null&&e&&(e===`application/json`||e.endsWith(`+json`))?St.from(t):t}if(typeof t==`number`&&i.isNumericSchema())return Math.abs(t)===1/0||isNaN(t)?String(t):t;if(typeof t==`string`&&i.isBlobSchema())return i===this.rootSchema?t:(this.serdeContext?.base64Encoder??Ct)(t);if(typeof t==`bigint`&&(this.useReplacer=!0),i.isDocumentSchema())if(r){let e=Array.isArray(t)?[]:{};for(let n in t){let r=t[n];r instanceof Ot?(this.useReplacer=!0,e[n]=r):e[n]=this._write(i,r)}return e}else return structuredClone(t);return t}}},nn=class extends pt{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new gee(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new mee(this.settings);return e.setSerdeContext(this.serdeContext),e}},_ee=class extends ot{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:r,jsonCodec:i}){super({defaultNamespace:e,errorTypeRegistries:t}),this.serviceTarget=n,this.codec=i??new nn({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!r,this.mixin=new Be(this.awsQueryCompatible)}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n);return r.path.endsWith(`/`)||(r.path+=`/`),r.headers[`content-type`]=`application/x-amz-json-${this.getJsonRpcVersion()}`,r.headers[`x-amz-target`]=`${this.serviceTarget}.${e.name}`,this.awsQueryCompatible&&(r.headers[`x-amzn-query-mode`]=`true`),(ce(e.input)===`unit`||!r.body)&&(r.body=`{}`),r}getPayloadCodec(){return this.codec}async handleError(e,t,n,r,i){let{awsQueryCompatible:a}=this;a&&this.mixin.setQueryCompatError(r,n);let o=pee(n,r,a)??`Unknown`;this.mixin.compose(this.compositeErrorRegistry,o,this.options.defaultNamespace);let{errorSchema:s,errorMetadata:c}=await this.mixin.getErrorSchemaOrThrowBaseException(o,this.options.defaultNamespace,n,r,i,a?this.mixin.findQueryCompatibleError:void 0),l=ut.of(s),ee=r.message??r.Message??`UnknownError`,te=new((this.compositeErrorRegistry.getErrorCtor(s))??Error)({}),ne={},u=this.codec.createDeserializer();for(let[e,t]of l.structIterator())r[e]!=null&&(ne[e]=u.readObject(t,r[e]));throw a&&this.mixin.queryCompatOutput(r,ne),this.mixin.decorateServiceException(Object.assign(te,c,{$fault:l.getMergedTraits().error,message:ee},ne),r)}},rn=class extends _ee{constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:r,jsonCodec:i}){super({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:r,jsonCodec:i})}getShapeId(){return`aws.protocols#awsJson1_1`}getJsonRpcVersion(){return`1.1`}getDefaultContentType(){return`application/x-amz-json-1.1`}},vee=class extends Yt{serializer;deserializer;codec;mixin=new Be;constructor({defaultNamespace:e,errorTypeRegistries:t}){super({defaultNamespace:e,errorTypeRegistries:t});let n={timestampFormat:{useTrait:!0,default:7},httpBindings:!0,jsonName:!0};this.codec=new nn(n),this.serializer=new Qt(this.codec.createSerializer(),n),this.deserializer=new Xt(this.codec.createDeserializer(),n)}getShapeId(){return`aws.protocols#restJson1`}getPayloadCodec(){return this.codec}setSerdeContext(e){this.codec.setSerdeContext(e),super.setSerdeContext(e)}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n),i=ut.of(e.input);if(!r.headers[`content-type`]){let e=this.mixin.resolveRestContentType(this.getDefaultContentType(),i);e&&(r.headers[`content-type`]=e)}return r.body==null&&r.headers[`content-type`]===this.getDefaultContentType()&&(r.body=`{}`),r}async deserializeResponse(e,t,n){let r=await super.deserializeResponse(e,t,n),i=ut.of(e.output);for(let[e,t]of i.structIterator())t.getMemberTraits().httpPayload&&!(e in r)&&(r[e]=null);return r}async handleError(e,t,n,r,i){let a=fee(n,r)??`Unknown`;this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let{errorSchema:o,errorMetadata:s}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,r,i),c=ut.of(o),l=r.message??r.Message??`UnknownError`,ee=new((this.compositeErrorRegistry.getErrorCtor(o))??Error)({});await this.deserializeHttpMessage(o,t,n,r);let te={},ne=this.codec.createDeserializer();for(let[e,t]of c.structIterator()){let n=t.getMergedTraits().jsonName??e;te[e]=ne.readObject(t,r[n])}throw this.mixin.decorateServiceException(Object.assign(ee,s,{$fault:c.getMergedTraits().error,message:l},te),r)}getDefaultContentType(){return`application/json`}},yee=/[&<>"]/g,bee={"&":`&`,"<":`<`,">":`>`,'"':`"`};function xee(e){return e.replace(yee,e=>bee[e])}var See=/[&"'<>\r\n\u0085\u2028]/g,Cee={"&":`&`,'"':`"`,"'":`'`,"<":`<`,">":`>`,"\r":` `,"\n":` `,"…":`…`,"\u2028":`
`};function wee(e){return e.replace(See,e=>Cee[e])}var an=class{value;constructor(e){this.value=e}toString(){return wee(``+this.value)}},on=class e{name;children;attributes={};static of(t,n,r){let i=new e(t);return n!==void 0&&i.addChildNode(new an(n)),r!==void 0&&i.withName(r),i}constructor(e,t=[]){this.name=e,this.children=t}withName(e){return this.name=e,this}addAttribute(e,t){return this.attributes[e]=t,this}addChildNode(e){return this.children.push(e),this}removeAttribute(e){return delete this.attributes[e],this}n(e){return this.name=e,this}c(e){return this.children.push(e),this}a(e,t){return t!=null&&(this.attributes[e]=t),this}cc(t,n,r=n){if(t[n]!=null){let i=e.of(n,t[n]).withName(r);this.c(i)}}l(e,t,n,r){e[t]!=null&&r().map(e=>{e.withName(n),this.c(e)})}lc(t,n,r,i){if(t[n]!=null){let t=i(),n=new e(r);t.map(e=>{n.c(e)}),this.c(n)}}toString(){let e=!!this.children.length,t=`<${this.name}`,n=this.attributes;for(let e of Object.keys(n)){let r=n[e];r!=null&&(t+=` ${e}="${xee(``+r)}"`)}return t+=e?`>${this.children.map(e=>e.toString()).join(``)}`:`/>`}},Tee=class extends Ke{options;constructor(e){super(e),this.options=e,Object.assign(this.serializer.settings,{capitalizeKeys:!0,flattenLists:!0,serializeEmptyLists:!1,ec2:!0})}getShapeId(){return`aws.protocols#ec2Query`}useNestedResult(){return!1}},Eee=(e,t)=>{if(t?.Error?.Code!==void 0)return t.Error.Code;if(t?.Code!==void 0)return t.Code;if(e.statusCode==404)return`NotFound`},Dee=class extends pt{settings;stringBuffer;byteBuffer;buffer;constructor(e){super(),this.settings=e}write(e,t){let n=ut.of(e);if(n.isStringSchema()&&typeof t==`string`)this.stringBuffer=t;else if(n.isBlobSchema())this.byteBuffer=`byteLength`in t?t:(this.serdeContext?.base64Decoder??yt)(t);else{this.buffer=this.writeStruct(n,t,void 0);let e=n.getMergedTraits();e.httpPayload&&!e.xmlName&&this.buffer.withName(n.getName())}}flush(){if(this.byteBuffer!==void 0){let e=this.byteBuffer;return delete this.byteBuffer,e}if(this.stringBuffer!==void 0){let e=this.stringBuffer;return delete this.stringBuffer,e}let e=this.buffer;return this.settings.xmlNamespace&&(e?.attributes?.xmlns||e.addAttribute(`xmlns`,this.settings.xmlNamespace)),delete this.buffer,e.toString()}writeStruct(e,t,n){let r=e.getMergedTraits(),i=e.isMemberSchema()&&!r.httpPayload?e.getMemberTraits().xmlName??e.getMemberName():r.xmlName??e.getName();if(!i||!e.isStructSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${e.getName(!0)}.`);let a=on.of(i),[o,s]=this.getXmlnsAttribute(e,n);for(let[n,r]of e.structIterator()){let e=t[n];if(e!=null||r.isIdempotencyToken()){if(r.getMergedTraits().xmlAttribute){a.addAttribute(r.getMergedTraits().xmlName??n,this.writeSimple(r,e));continue}if(r.isListSchema())this.writeList(r,e,a,s);else if(r.isMapSchema())this.writeMap(r,e,a,s);else if(r.isStructSchema())a.addChildNode(this.writeStruct(r,e,s));else{let t=on.of(r.getMergedTraits().xmlName??r.getMemberName());this.writeSimpleInto(r,e,t,s),a.addChildNode(t)}}}let{$unknown:c}=t;if(c&&e.isUnionSchema()&&Array.isArray(c)&&Object.keys(t).length===1){let[e,n]=c,r=on.of(e);if(typeof n!=`string`)if(t instanceof on||t instanceof an)a.addChildNode(t);else throw Error(`@aws-sdk - $unknown union member in XML requires value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.`);this.writeSimpleInto(0,n,r,s),a.addChildNode(r)}return s&&a.addAttribute(o,s),a}writeList(e,t,n,r){if(!e.isMemberSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${e.getName(!0)}`);let i=e.getMergedTraits(),a=e.getValueSchema(),o=a.getMergedTraits(),s=!!o.sparse,c=!!i.xmlFlattened,[l,ee]=this.getXmlnsAttribute(e,r),te=(t,n)=>{if(a.isListSchema())this.writeList(a,Array.isArray(n)?n:[n],t,ee);else if(a.isMapSchema())this.writeMap(a,n,t,ee);else if(a.isStructSchema()){let r=this.writeStruct(a,n,ee);t.addChildNode(r.withName(c?i.xmlName??e.getMemberName():o.xmlName??`member`))}else{let r=on.of(c?i.xmlName??e.getMemberName():o.xmlName??`member`);this.writeSimpleInto(a,n,r,ee),t.addChildNode(r)}};if(c)for(let e of t)(s||e!=null)&&te(n,e);else{let r=on.of(i.xmlName??e.getMemberName());ee&&r.addAttribute(l,ee);for(let e of t)(s||e!=null)&&te(r,e);n.addChildNode(r)}}writeMap(e,t,n,r,i=!1){if(!e.isMemberSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${e.getName(!0)}`);let a=e.getMergedTraits(),o=e.getKeySchema(),s=o.getMergedTraits().xmlName??`key`,c=e.getValueSchema(),l=c.getMergedTraits(),ee=l.xmlName??`value`,te=!!l.sparse,ne=!!a.xmlFlattened,[u,re]=this.getXmlnsAttribute(e,r),ie=(e,t,n)=>{let r=on.of(s,t),[i,a]=this.getXmlnsAttribute(o,re);a&&r.addAttribute(i,a),e.addChildNode(r);let l=on.of(ee);c.isListSchema()?this.writeList(c,n,l,re):c.isMapSchema()?this.writeMap(c,n,l,re,!0):c.isStructSchema()?l=this.writeStruct(c,n,re):this.writeSimpleInto(c,n,l,re),e.addChildNode(l)};if(ne)for(let r in t){let i=t[r];if(te||i!=null){let t=on.of(a.xmlName??e.getMemberName());ie(t,r,i),n.addChildNode(t)}}else{let r;i||(r=on.of(a.xmlName??e.getMemberName()),re&&r.addAttribute(u,re),n.addChildNode(r));for(let e in t){let a=t[e];if(te||a!=null){let t=on.of(`entry`);ie(t,e,a),(i?n:r).addChildNode(t)}}}}writeSimple(e,t){if(t===null)throw Error(`@aws-sdk/core/protocols - (XML serializer) cannot write null value.`);let n=ut.of(e),r=null;if(t&&typeof t==`object`)if(n.isBlobSchema())r=(this.serdeContext?.base64Encoder??Ct)(t);else if(n.isTimestampSchema()&&t instanceof Date)switch(tt(n,this.settings)){case 5:r=t.toISOString().replace(`.000Z`,`Z`);break;case 6:r=Tt(t);break;case 7:r=String(t.getTime()/1e3);break;default:console.warn(`Missing timestamp format, using http date`,t),r=Tt(t);break}else if(n.isBigDecimalSchema()&&t)return t instanceof Ot?t.string:String(t);else if(n.isMapSchema()||n.isListSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead.`);else throw Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${n.getName(!0)}`);if((n.isBooleanSchema()||n.isNumericSchema()||n.isBigIntegerSchema()||n.isBigDecimalSchema())&&(r=String(t)),n.isStringSchema()&&(r=t===void 0&&n.isIdempotencyToken()?Et():String(t)),r===null)throw Error(`Unhandled schema-value pair ${n.getName(!0)}=${t}`);return r}writeSimpleInto(e,t,n,r){let i=this.writeSimple(e,t),a=ut.of(e),o=new an(i),[s,c]=this.getXmlnsAttribute(a,r);c&&n.addAttribute(s,c),n.addChildNode(o)}getXmlnsAttribute(e,t){let[n,r]=e.getMergedTraits().xmlNamespace??[];return r&&r!==t?[n?`xmlns:${n}`:`xmlns`,r]:[void 0,void 0]}},Oee=class extends pt{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new Dee(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new Re(this.settings);return e.setSerdeContext(this.serdeContext),e}},kee=class extends Yt{codec;serializer;deserializer;mixin=new Be;constructor(e){super(e);let t={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new Oee(t),this.serializer=new Qt(this.codec.createSerializer(),t),this.deserializer=new Xt(this.codec.createDeserializer(),t)}getPayloadCodec(){return this.codec}getShapeId(){return`aws.protocols#restXml`}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n),i=ut.of(e.input);if(!r.headers[`content-type`]){let e=this.mixin.resolveRestContentType(this.getDefaultContentType(),i);e&&(r.headers[`content-type`]=e)}return typeof r.body==`string`&&r.headers[`content-type`]===this.getDefaultContentType()&&!r.body.startsWith(``+r.body),r}async deserializeResponse(e,t,n){return super.deserializeResponse(e,t,n)}async handleError(e,t,n,r,i){let a=Eee(n,r)??`Unknown`;if(this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace),r.Error&&typeof r.Error==`object`)for(let e of Object.keys(r.Error))r[e]=r.Error[e],e.toLowerCase()===`message`&&(r.message=r.Error[e]);r.RequestId&&!i.requestId&&(i.requestId=r.RequestId);let{errorSchema:o,errorMetadata:s}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,r,i),c=ut.of(o),l=r.Error?.message??r.Error?.Message??r.message??r.Message??`UnknownError`,ee=new((this.compositeErrorRegistry.getErrorCtor(o))??Error)({});await this.deserializeHttpMessage(o,t,n,r);let te={},ne=this.codec.createDeserializer();for(let[e,t]of c.structIterator()){let n=t.getMergedTraits().xmlName??e,i=r.Error?.[n]??r[n];te[e]=ne.readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(ee,s,{$fault:c.getMergedTraits().error,message:l},te),r)}getDefaultContentType(){return`application/xml`}hasUnstructuredPayloadBinding(e){for(let[,t]of e.structIterator())if(t.getMergedTraits().httpPayload)return!(t.isStructSchema()||t.isMapSchema()||t.isListSchema());return!1}},Aee=async(e,t,n)=>({operation:fe(t).operation,region:await be(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function jee(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`acm`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var Mee=e=>{let t=[];switch(e.operation){default:t.push(jee(e))}return t},Nee=e=>{let t=le(e);return Object.assign(t,{authSchemePreference:be(e.authSchemePreference??[])})},Pee=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`acm`}),Fee={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},Iee={name:`@aws-sdk/client-acm`,description:`AWS SDK for JavaScript Acm Client for Node.js, Browser and React Native`,version:`3.1067.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo acm`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.20`,"@aws-sdk/credential-provider-node":`^3.972.55`,"@aws-sdk/types":`^3.973.12`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-acm`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-acm`}},sn=`ref`,cn=-1,ln=!0,un=`isSet`,dn=`PartitionResult`,fn=`booleanEquals`,pn=`getAttr`,mn={[sn]:`Endpoint`},hn={[sn]:dn},gn={},_n=[{[sn]:`Region`}],vn={conditions:[[un,[mn]],[un,_n],[`aws.partition`,_n,dn],[fn,[{[sn]:`UseFIPS`},ln]],[fn,[{[sn]:`UseDualStack`},ln]],[fn,[{fn:pn,argv:[hn,`supportsDualStack`]},ln]],[fn,[{fn:pn,argv:[hn,`supportsFIPS`]},ln]],[`stringEquals`,[{fn:pn,argv:[hn,`name`]},`aws-us-gov`]]],results:[[cn],[cn,`Invalid Configuration: FIPS and custom endpoint are not supported`],[cn,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[mn,gn],[`https://acm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,gn],[cn,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://acm.{Region}.amazonaws.com`,gn],[`https://acm-fips.{Region}.{PartitionResult#dnsSuffix}`,gn],[cn,`FIPS is enabled but this partition does not support FIPS`],[`https://acm.{Region}.{PartitionResult#dualStackDnsSuffix}`,gn],[cn,`DualStack is enabled but this partition does not support DualStack`],[`https://acm.{Region}.{PartitionResult#dnsSuffix}`,gn],[cn,`Invalid Configuration: Missing Region`]]},yn=2,bn=new Int32Array([-1,1,-1,0,13,3,1,4,100000012,2,5,100000012,3,8,6,4,7,100000011,5,100000009,100000010,4,11,9,6,10,100000008,7,100000006,100000007,5,12,100000005,6,100000004,100000005,3,100000001,14,4,100000002,100000003]),xn=Je.from(bn,yn,vn.conditions,vn.results),Sn=new et({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),Cn=(e,t={})=>Sn.get(e,()=>Ge(xn,{endpointParams:e,logger:t.logger}));rt.aws=de;var wn=class e extends ft{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},Tn=class e extends wn{name=`AccessDeniedException`;$fault=`client`;Message;constructor(t){super({name:`AccessDeniedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},En=class e extends wn{name=`InvalidArnException`;$fault=`client`;constructor(t){super({name:`InvalidArnException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Dn=class e extends wn{name=`InvalidParameterException`;$fault=`client`;constructor(t){super({name:`InvalidParameterException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},On=class e extends wn{name=`InvalidTagException`;$fault=`client`;constructor(t){super({name:`InvalidTagException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},kn=class e extends wn{name=`ResourceNotFoundException`;$fault=`client`;constructor(t){super({name:`ResourceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},An=class e extends wn{name=`TagPolicyException`;$fault=`client`;constructor(t){super({name:`TagPolicyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},jn=class e extends wn{name=`ThrottlingException`;$fault=`client`;throttlingReasons;constructor(t){super({name:`ThrottlingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.throttlingReasons=t.throttlingReasons}},Mn=class e extends wn{name=`TooManyTagsException`;$fault=`client`;constructor(t){super({name:`TooManyTagsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Nn=class e extends wn{name=`ConflictException`;$fault=`client`;constructor(t){super({name:`ConflictException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Pn=class e extends wn{name=`ResourceInUseException`;$fault=`client`;constructor(t){super({name:`ResourceInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Fn=class e extends wn{name=`RequestInProgressException`;$fault=`client`;constructor(t){super({name:`RequestInProgressException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},In=class e extends wn{name=`LimitExceededException`;$fault=`client`;constructor(t){super({name:`LimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Ln=class e extends wn{name=`InvalidArgsException`;$fault=`client`;constructor(t){super({name:`InvalidArgsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Rn=class e extends wn{name=`ValidationException`;$fault=`client`;constructor(t){super({name:`ValidationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},zn=class e extends wn{name=`InvalidDomainValidationOptionsException`;$fault=`client`;constructor(t){super({name:`InvalidDomainValidationOptionsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Bn=class e extends wn{name=`InvalidStateException`;$fault=`client`;constructor(t){super({name:`InvalidStateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Vn=`AccessDeniedException`,Hn=`Certificate`,Un=`CreatedAt`,Wn=`CertificateArn`,Gn=`CertificateChain`,Kn=`ConflictException`,qn=`CertificateSummary`,Jn=`CertificateSummaryList`,Yn=`CertificateStatuses`,Xn=`DomainName`,Zn=`Exported`,Qn=`ExtendedKeyUsages`,$n=`ExportOption`,er=`Filters`,tr=`HasAdditionalSubjectAlternativeNames`,nr=`ImportedAt`,rr=`InvalidArgsException`,ir=`InvalidArnException`,ar=`IssuedAt`,or=`ImportCertificate`,sr=`ImportCertificateRequest`,cr=`ImportCertificateResponse`,lr=`InvalidDomainValidationOptionsException`,ur=`InvalidParameterException`,dr=`InvalidStateException`,fr=`InvalidTagException`,pr=`InUse`,mr=`Includes`,hr=`Key`,gr=`KeyAlgorithm`,_r=`KeyUsages`,vr=`ListCertificates`,yr=`ListCertificatesRequest`,br=`ListCertificatesResponse`,xr=`LimitExceededException`,Sr=`Message`,Cr=`ManagedBy`,wr=`MaxItems`,Tr=`NotAfter`,Er=`NotBefore`,Dr=`NextToken`,Or=`PrivateKey`,kr=`PrivateKeyBlob`,Ar=`RevokedAt`,jr=`RenewalEligibility`,Mr=`RequestInProgressException`,Nr=`ResourceInUseException`,Pr=`ResourceNotFoundException`,Fr=`Status`,Ir=`SubjectAlternativeNameSummaries`,Lr=`SortBy`,Rr=`SortOrder`,zr=`Type`,Br=`ThrottlingException`,Vr=`TagList`,Hr=`TooManyTagsException`,Ur=`TagPolicyException`,Wr=`ThrottlingReason`,Gr=`ThrottlingReasonList`,Kr=`Tags`,qr=`Tag`,Jr=`Value`,Yr=`ValidationException`,Xr=`awsQueryError`,Zr=`client`,Qr=`error`,$r=`extendedKeyUsage`,ei=`exportOption`,ti=`httpError`,ni=`keyTypes`,ri=`keyUsage`,ii=`message`,ai=`managedBy`,oi=`reason`,si=`resource`,ci=`smithy.ts.sdk.synthetic.com.amazonaws.acm`,li=`throttlingReasons`,d=`com.amazonaws.acm`,ui=se.for(ci),di=[-3,ci,`ACMServiceException`,0,[],[]];ui.registerError(di,wn);var fi=se.for(d),pi=[-3,d,Vn,{[Xr]:[`AccessDenied`,403],[Qr]:Zr,[ti]:403},[Sr],[0]];fi.registerError(pi,Tn);var mi=[-3,d,Kn,{[Qr]:Zr},[ii],[0]];fi.registerError(mi,Nn);var hi=[-3,d,rr,{[Qr]:Zr},[ii],[0]];fi.registerError(hi,Ln);var gi=[-3,d,ir,{[Qr]:Zr},[ii],[0]];fi.registerError(gi,En);var _i=[-3,d,lr,{[Qr]:Zr},[ii],[0]];fi.registerError(_i,zn);var vi=[-3,d,ur,{[Qr]:Zr},[ii],[0]];fi.registerError(vi,Dn);var yi=[-3,d,dr,{[Qr]:Zr},[ii],[0]];fi.registerError(yi,Bn);var bi=[-3,d,fr,{[Qr]:Zr},[ii],[0]];fi.registerError(bi,On);var xi=[-3,d,xr,{[Qr]:Zr},[ii],[0]];fi.registerError(xi,In);var Si=[-3,d,Mr,{[Qr]:Zr},[ii],[0]];fi.registerError(Si,Fn);var Ci=[-3,d,Nr,{[Qr]:Zr},[ii],[0]];fi.registerError(Ci,Pn);var wi=[-3,d,Pr,{[Qr]:Zr},[ii],[0]];fi.registerError(wi,kn);var Ti=[-3,d,Ur,{[Qr]:Zr},[ii],[0]];fi.registerError(Ti,An);var Lee=[-3,d,Br,{[Xr]:[`Throttling`,400],[Qr]:Zr,[ti]:400},[ii,li],[0,()=>Qee]];fi.registerError(Lee,jn);var Ree=[-3,d,Hr,{[Qr]:Zr},[ii],[0]];fi.registerError(Ree,Mn);var zee=[-3,d,Yr,{[Xr]:[`ValidationError`,400],[Qr]:Zr,[ti]:400},[ii],[0]];fi.registerError(zee,Rn);var Bee=[ui,fi],Vee=[0,d,kr,8,21],Hee=[3,d,qn,0,[Wn,Xn,Ir,tr,Fr,zr,gr,_r,Qn,$n,pr,Zn,jr,Er,Tr,Un,ar,nr,Ar,Cr],[0,0,64,2,0,0,0,64,64,0,2,2,0,4,4,4,4,4,4,0]],Uee=[3,d,er,0,[$r,ri,ni,ei,ai],[64,64,64,0,0]],Wee=[3,d,sr,0,[Hn,Or,Wn,Gn,Kr],[21,[()=>Vee,0],0,21,()=>Zee],2],Gee=[3,d,cr,0,[Wn],[0]],Kee=[3,d,yr,0,[Yn,mr,Dr,wr,Lr,Rr],[64,()=>Uee,0,1,0,0]],qee=[3,d,br,0,[Dr,Jn],[0,()=>Xee]],Jee=[3,d,qr,0,[hr,Jr],[0,0],1],Yee=[3,d,Wr,0,[oi,si],[0,0]],Xee=[1,d,Jn,0,()=>Hee],Zee=[1,d,Vr,0,()=>Jee],Qee=[1,d,Gr,0,()=>Yee],$ee=[9,d,or,0,()=>Wee,()=>Gee],ete=[9,d,vr,0,()=>Kee,()=>qee],tte=e=>({apiVersion:`2015-12-08`,base64Decoder:e?.base64Decoder??yt,base64Encoder:e?.base64Encoder??Ct,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Cn,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Mee,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new ie}],logger:e?.logger??new ze,protocol:e?.protocol??rn,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.acm`,errorTypeRegistries:Bee,version:`2015-12-08`,serviceTarget:`CertificateManager`},serviceId:e?.serviceId??`ACM`,urlParser:e?.urlParser??Ze,utf8Decoder:e?.utf8Decoder??vt,utf8Encoder:e?.utf8Encoder??xt}),nte=e=>{let t=xe(e),n=()=>t().then(Ve),r=tte(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Dt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??he({serviceId:r.serviceId,clientVersion:Iee.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??$e(`Region is missing`),requestHandler:ke.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Ie),sha256:e?.sha256??oe,streamCollector:e?.streamCollector??dt,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},rte=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},ite=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),ate=(e,t)=>{let n=Object.assign(Xe(e),ct(e),re(e),rte(e));return t.forEach(e=>e.configure(n)),Object.assign(e,ye(n),mt(n),We(n),ite(n))},ote=class extends we{config;constructor(...[e]){let t=nte(e||{});super(t),this.initConfig=t;let n=ate(Nee(Ue(_e(Te(Le(Oe(Pee(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(ue(this.config)),this.middlewareStack.use(ve(this.config)),this.middlewareStack.use(ge(this.config)),this.middlewareStack.use(De(this.config)),this.middlewareStack.use(pe(this.config)),this.middlewareStack.use(Fe(this.config)),this.middlewareStack.use(Ne(this.config)),this.middlewareStack.use(me(this.config,{httpAuthSchemeParametersProvider:Aee,identityProviderConfigProvider:async e=>new ht({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(ae(this.config))}destroy(){super.destroy()}},ste=async(e,t,n)=>({operation:fe(t).operation,region:await be(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function cte(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`ec2`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var lte=e=>{let t=[];switch(e.operation){default:t.push(cte(e))}return t},ute=e=>{let t=le(e);return Object.assign(t,{authSchemePreference:be(e.authSchemePreference??[])})},dte=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`ec2`}),fte={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},pte={name:`@aws-sdk/client-ec2`,description:`AWS SDK for JavaScript Ec2 Client for Node.js, Browser and React Native`,version:`3.1067.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo ec2`,test:`yarn g:vitest run --passWithNoTests`,"test:watch":`yarn g:vitest watch --passWithNoTests`,"test:integration":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts --mode development`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.20`,"@aws-sdk/credential-provider-node":`^3.972.55`,"@aws-sdk/middleware-sdk-ec2":`^3.972.34`,"@aws-sdk/types":`^3.973.12`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@smithy/snapshot-testing":`^2.1.7`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ec2`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-ec2`}},Ei=`ref`,Di=-1,Oi=!0,ki=`isSet`,Ai=`PartitionResult`,ji=`booleanEquals`,Mi=`getAttr`,Ni={[Ei]:`Endpoint`},Pi={[Ei]:Ai},Fi={},Ii=[{[Ei]:`Region`}],Li={conditions:[[ki,[Ni]],[ki,Ii],[`aws.partition`,Ii,Ai],[ji,[{[Ei]:`UseFIPS`},Oi]],[ji,[{[Ei]:`UseDualStack`},Oi]],[ji,[{fn:Mi,argv:[Pi,`supportsDualStack`]},Oi]],[ji,[{fn:Mi,argv:[Pi,`supportsFIPS`]},Oi]],[`stringEquals`,[{fn:Mi,argv:[Pi,`name`]},`aws-us-gov`]]],results:[[Di],[Di,`Invalid Configuration: FIPS and custom endpoint are not supported`],[Di,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[Ni,Fi],[`https://ec2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,Fi],[Di,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://ec2.{Region}.amazonaws.com`,Fi],[`https://ec2-fips.{Region}.{PartitionResult#dnsSuffix}`,Fi],[Di,`FIPS is enabled but this partition does not support FIPS`],[`https://ec2.{Region}.{PartitionResult#dualStackDnsSuffix}`,Fi],[Di,`DualStack is enabled but this partition does not support DualStack`],[`https://ec2.{Region}.{PartitionResult#dnsSuffix}`,Fi],[Di,`Invalid Configuration: Missing Region`]]},mte=2,hte=new Int32Array([-1,1,-1,0,13,3,1,4,100000012,2,5,100000012,3,8,6,4,7,100000011,5,100000009,100000010,4,11,9,6,10,100000008,7,100000006,100000007,5,12,100000005,6,100000004,100000005,3,100000001,14,4,100000002,100000003]),gte=Je.from(hte,mte,Li.conditions,Li.results),_te=new et({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),vte=(e,t={})=>_te.get(e,()=>Ge(gte,{endpointParams:e,logger:t.logger}));rt.aws=de;var yte=class e extends ft{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},Ri=`Address`,bte=`AllocateAddressRequest`,xte=`AllocateAddressResult`,Ste=`AssociateAddressRequest`,Cte=`AssociateAddressResult`,wte=`AllAvailabilityZones`,Tte=`AllocateAddress`,Ete=`ApplianceArn`,Dte=`AssociateAddress`,Ote=`AttachedAppliances`,kte=`AttributeBooleanValue`,Ate=`AssociateCarrierIpAddress`,jte=`AdditionalFlexibleNetworkInterfaces`,Mte=`AvailableIpAddressCount`,zi=`AssignIpv6AddressOnCreation`,Nte=`AttachInternetGateway`,Pte=`AttachInternetGatewayRequest`,Fte=`AssociateIamInstanceProfile`,Ite=`AssociateIamInstanceProfileRequest`,Lte=`AssociateIamInstanceProfileResult`,Rte=`AllocationIdList`,zte=`AssociationIdList`,Bi=`AdditionalInfo`,Vi=`AllocationId`,Hi=`AllocationIds`,Ui=`AssociationId`,Bte=`AssociationIds`,Wi=`AttachmentId`,Vte=`AmiLaunchIndex`,Hte=`AttachmentLimitType`,Ute=`AddressList`,Gi=`AvailabilityMode`,Wte=`AssociatePublicIpAddress`,Gte=`AmazonProvidedIpv6CidrBlock`,Kte=`AutoProvisionZones`,qte=`AutoRecoverySupported`,Jte=`AssociateRouteTableRequest`,Yte=`AssociateRouteTableResult`,Xte=`AssociateRouteTable`,Zte=`AllowReassociation`,Qte=`AllRegions`,Ki=`AssociatedResource`,qi=`AutoRecovery`,Ji=`AssociationState`,$te=`AuthorizeSecurityGroupEgress`,ene=`AuthorizeSecurityGroupEgressRequest`,tne=`AuthorizeSecurityGroupEgressResult`,nne=`AuthorizeSecurityGroupIngressRequest`,rne=`AuthorizeSecurityGroupIngressResult`,ine=`AuthorizeSecurityGroupIngress`,ane=`AutoScalingIps`,Yi=`AmdSevSnp`,one=`AttachmentState`,sne=`ArchitectureTypeList`,Xi=`AttachTime`,cne=`AttachVolumeRequest`,lne=`AttributeValue`,une=`AttachVolume`,Zi=`AvailabilityZone`,Qi=`AvailabilityZoneAddress`,$i=`AvailabilityZoneAddresses`,dne=`AvailabilityZoneGeography`,fne=`AvailabilityZoneGeographyList`,ea=`AvailabilityZoneId`,pne=`AvailabilityZoneList`,mne=`AvailabilityZoneMessage`,hne=`AvailabilityZoneMessageList`,gne=`AvailabilityZoneSubGeography`,_ne=`AvailabilityZoneSubGeographyList`,vne=`AvailabilityZones`,ta=`Accelerators`,yne=`Addresses`,bne=`Affinity`,na=`Arn`,ra=`Architecture`,xne=`Associations`,ia=`Association`,Sne=`Attribute`,aa=`Attachment`,oa=`Attachments`,Cne=`BlobAttributeValue`,wne=`BaselineBandwidthInGbps`,sa=`BaselineBandwidthInMbps`,ca=`BlockDeviceMapping`,Tne=`BlockDeviceMappingList`,Ene=`BlockDeviceMappingRequestList`,la=`BlockDeviceMappings`,ua=`BlockDurationMinutes`,da=`BaselineIops`,fa=`BootMode`,pa=`BootModeTypeList`,ma=`BareMetal`,ha=`BlockPublicAccessStates`,ga=`BurstablePerformanceSupported`,_a=`BaselineThroughputInMBps`,va=`BandwidthWeighting`,ya=`BandwidthWeightingTypeList`,ba=`BandwidthWeightings`,xa=`CidrBlock`,Sa=`CidrBlockAssociationSet`,Ca=`CapacityBlockId`,wa=`CidrBlockState`,Ta=`CoreCountList`,Ea=`CoreCount`,Da=`CpuCredits`,Oa=`CompletionDurationMinutes`,ka=`CreationDate`,Aa=`CarrierGatewayId`,ja=`CurrentGeneration`,Ma=`CarrierIp`,Na=`CurrentInstanceBootMode`,Pa=`CreateInternetGateway`,Fa=`CreateInternetGatewayRequest`,Ia=`CreateInternetGatewayResult`,La=`CreateImageRequest`,Ra=`CreateImageResult`,za=`CidrIp`,Ba=`CidrIpv6`,Va=`CidrIpv4`,Ha=`CoreInfo`,Ua=`CreateImage`,Wa=`CreateKeyPair`,Ga=`CreateKeyPairRequest`,Ka=`CoreNetworkArn`,qa=`CreateNatGateway`,Ja=`CreateNatGatewayRequest`,Ya=`CreateNatGatewayResult`,Xa=`CpuOptions`,Za=`CustomerOwnedIp`,Qa=`CustomerOwnedIpv4Pool`,$a=`CpuOptionsRequest`,eo=`CreatePlacementGroup`,to=`CreatePlacementGroupRequest`,no=`CreatePlacementGroupResult`,ro=`CapacityReservationId`,io=`CapacityReservationPreference`,ao=`CreateRouteRequest`,oo=`CapacityReservationResourceGroupArn`,so=`CreateRouteResult`,co=`CapacityReservationSpecificationResponse`,lo=`CapacityReservationSpecification`,uo=`CapacityReservationTarget`,fo=`CapacityReservationTargetResponse`,po=`CreateRouteTableRequest`,mo=`CreateRouteTableResult`,ho=`CreateRouteTable`,go=`CreateRoute`,_o=`CreateSecurityGroup`,vo=`CreateSecurityGroupRequest`,yo=`CreateSecurityGroupResult`,bo=`CopySnapshotRequest`,xo=`CopySnapshotRequestPSU`,So=`CopySnapshotResult`,Co=`CreateSnapshotRequest`,wo=`CreateSubnetRequest`,To=`CreateSubnetResult`,Eo=`CreditSpecificationRequest`,Do=`CopySnapshot`,Oo=`CreditSpecification`,ko=`CreateSnapshot`,Ao=`CreateSubnet`,jo=`CurrentState`,Mo=`ClientToken`,No=`ConnectionTrackingConfiguration`,Po=`ConnectionTrackingSpecification`,Fo=`ConnectionTrackingSpecificationRequest`,Io=`ConnectionTrackingSpecificationResponse`,Lo=`CompletionTime`,Ro=`ConnectivityType`,zo=`CreateTime`,Bo=`CreateVolumeRequest`,Vo=`CreateVpcRequest`,Ho=`CreateVpcResult`,Uo=`CreateVolume`,Wo=`CreateVpc`,Go=`Code`,Ko=`Configured`,qo=`Count`,Jo=`DescribeAddressesRequest`,Yo=`DescribeAddressesResult`,Xo=`DisassociateAddressRequest`,Zo=`DisableApiStop`,Qo=`DisableApiTermination`,$o=`DestinationAvailabilityZone`,es=`DescribeAvailabilityZonesRequest`,ts=`DescribeAvailabilityZonesResult`,ns=`DescribeAvailabilityZones`,rs=`DescribeAddresses`,is=`DisassociateAddress`,as=`DestinationCidrBlock`,os=`DefaultConnectionTrackingConfiguration`,ss=`DefaultCores`,cs=`DataEncryptionKeyId`,ls=`DefaultEnaQueueCountPerInterface`,us=`DefaultForAz`,ds=`DedicatedHostsSupported`,fs=`DeviceIndex`,ps=`DestinationIpv6CidrBlock`,ms=`DeleteInternetGateway`,hs=`DeleteInternetGatewayRequest`,gs=`DescribeInternetGatewaysRequest`,_s=`DescribeInternetGatewaysResult`,vs=`DetachInternetGatewayRequest`,ys=`DescribeInternetGateways`,bs=`DetachInternetGateway`,xs=`DisassociateIamInstanceProfile`,Ss=`DescribeIamInstanceProfileAssociations`,Cs=`DescribeIamInstanceProfileAssociationsRequest`,ws=`DescribeIamInstanceProfileAssociationsResult`,Ts=`DisassociateIamInstanceProfileRequest`,Es=`DisassociateIamInstanceProfileResult`,Ds=`DiskInfoList`,Os=`DescribeImagesRequest`,ks=`DescribeImagesResult`,As=`DescribeInstancesRequest`,js=`DescribeInstancesResult`,Ms=`DescribeInstanceTypesRequest`,Ns=`DescribeInstanceTypesResult`,Ps=`DescribeInstanceTypes`,Fs=`DescribeImages`,Is=`DescribeInstances`,Ls=`DiskInfo`,Rs=`DeleteKeyPair`,zs=`DeleteKeyPairRequest`,Bs=`DeleteKeyPairResult`,Vs=`DescribeKeyPairsRequest`,Hs=`DescribeKeyPairsResult`,Us=`DescribeKeyPairs`,Ws=`DisableLniAtDeviceIndex`,Gs=`DeviceName`,Ks=`DefaultNetworkCardIndex`,qs=`DeleteNatGateway`,Js=`DeleteNatGatewayRequest`,Ys=`DeleteNatGatewayResult`,Xs=`DescribeNatGatewaysRequest`,Zs=`DescribeNatGatewaysResult`,Qs=`DescribeNatGateways`,$s=`DestinationOutpostArn`,ec=`DhcpOptionsId`,tc=`DeleteOnTermination`,nc=`DeletePlacementGroup`,rc=`DeletePlacementGroupRequest`,ic=`DescribePlacementGroupsRequest`,ac=`DescribePlacementGroupsResult`,oc=`DescribePlacementGroups`,sc=`DestinationPrefixListId`,cc=`DeregistrationProtection`,f=`DryRun`,lc=`DeleteRouteRequest`,uc=`DescribeRegionsRequest`,dc=`DescribeRegionsResult`,fc=`DeleteRouteTable`,pc=`DeleteRouteTableRequest`,mc=`DescribeRouteTablesRequest`,hc=`DescribeRouteTablesResult`,gc=`DisassociateRouteTableRequest`,_c=`DescribeRouteTables`,vc=`DisassociateRouteTable`,yc=`DestinationRegion`,bc=`DeleteRoute`,xc=`DescribeRegions`,Sc=`DeleteSecurityGroup`,Cc=`DeleteSecurityGroupRequest`,wc=`DeleteSecurityGroupResult`,Tc=`DescribeSecurityGroupsRequest`,Ec=`DescribeSecurityGroupsResult`,Dc=`DescribeSecurityGroups`,Oc=`DeleteSnapshotRequest`,kc=`DeleteSubnetRequest`,Ac=`DescribeSnapshotsRequest`,jc=`DescribeSnapshotsResult`,Mc=`DescribeSubnetsRequest`,Nc=`DescribeSubnetsResult`,Pc=`DeleteSnapshot`,Fc=`DeleteSubnet`,Ic=`DescribeSnapshots`,Lc=`DescribeSubnets`,Rc=`DefaultTcpEstablishedTimeout`,zc=`DefaultThreadsPerCore`,Bc=`DeprecationTime`,Vc=`DeleteTime`,Hc=`DefaultUdpStreamTimeout`,Uc=`DefaultUdpTimeout`,Wc=`DefaultVCpus`,Gc=`DeleteVolumeRequest`,Kc=`DeleteVpcRequest`,qc=`DescribeVolumesRequest`,Jc=`DescribeVolumesResult`,Yc=`DescribeVpcsRequest`,Xc=`DescribeVpcsResult`,Zc=`DetachVolumeRequest`,Qc=`DeleteVolume`,$c=`DeleteVpc`,el=`DescribeVolumes`,tl=`DescribeVpcs`,nl=`DetachVolume`,rl=`Description`,il=`Device`,al=`Disks`,ol=`Domain`,sl=`EbsBlockDevice`,cl=`ExecutableByStringList`,ll=`ExecutableBy`,ul=`EbsCardIndex`,dl=`EbsCardInfoList`,fl=`EbsCardInfo`,pl=`EbsCards`,ml=`EncryptionControl`,hl=`EnableDns64`,gl=`ElasticFileSystem`,_l=`ElasticFileSystemExclusion`,vl=`ElasticGpuAssociation`,yl=`ElasticGpuAssociationId`,bl=`ElasticGpuAssociationList`,xl=`ElasticGpuAssociationState`,Sl=`ElasticGpuAssociationTime`,Cl=`ElasticGpuAssociations`,wl=`ElasticGpuId`,Tl=`ElasticGpuSpecification`,El=`ElasticGpuSpecifications`,Dl=`ElasticInferenceAccelerator`,Ol=`ElasticInferenceAcceleratorAssociation`,kl=`ElasticInferenceAcceleratorAssociationId`,Al=`ElasticInferenceAcceleratorAssociationList`,jl=`ElasticInferenceAcceleratorAssociationState`,Ml=`ElasticInferenceAcceleratorAssociationTime`,Nl=`ElasticInferenceAcceleratorArn`,Pl=`ElasticInferenceAcceleratorAssociations`,Fl=`ElasticInferenceAccelerators`,Il=`EbsInstanceBlockDevice`,Ll=`EbsInstanceBlockDeviceSpecification`,Rl=`EncryptionInTransitSupported`,zl=`EbsInfo`,Bl=`EfaInfo`,Vl=`EnableLniAtDeviceIndex`,Hl=`EbsOptimized`,Ul=`EbsOptimizedInfo`,Wl=`EgressOnlyInternetGateway`,Gl=`EgressOnlyInternetGatewayExclusion`,Kl=`EgressOnlyInternetGatewayId`,ql=`EnclaveOptionsRequest`,Jl=`EbsOptimizedSupport`,Yl=`EnclaveOptions`,Xl=`EnablePrimaryIpv6`,Zl=`EnaQueueCount`,Ql=`EnableResourceNameDnsAAAARecord`,$l=`EnableResourceNameDnsAAAARecordOnLaunch`,eu=`EnableResourceNameDnsARecord`,tu=`EnableResourceNameDnsARecordOnLaunch`,nu=`EnaSrdEnabled`,ru=`EnaSrdSpecification`,iu=`EnaSrdSpecificationRequest`,au=`EnaSrdSupported`,ou=`EnaSrdUdpEnabled`,su=`EnaSrdUdpSpecification`,cu=`EnaSrdUdpSpecificationRequest`,lu=`EfaSupported`,uu=`EncryptionSupport`,du=`EnaSupport`,fu=`EndTime`,pu=`ExecutableUsers`,mu=`Ebs`,hu=`Enabled`,gu=`Encrypted`,_u=`Endpoint`,vu=`Force`,yu=`FailureCode`,bu=`FpgaDeviceInfo`,xu=`FpgaDeviceInfoList`,Su=`FpgaDeviceMemoryInfo`,Cu=`FlexibleEnaQueuesSupport`,wu=`FpgaInfo`,Tu=`FilterList`,Eu=`FailureMessage`,Du=`FromPort`,Ou=`FastRestored`,ku=`FullSnapshotSizeInBytes`,Au=`FreeTierEligible`,ju=`Filters`,Mu=`Filter`,Nu=`Fpgas`,Pu=`Groups`,Fu=`GroupArn`,Iu=`GetConsoleOutput`,Lu=`GetConsoleOutputRequest`,Ru=`GetConsoleOutputResult`,zu=`GroupDescription`,Bu=`GpuDeviceInfo`,Vu=`GpuDeviceInfoList`,Hu=`GpuDeviceMemoryInfo`,Uu=`GatewayId`,Wu=`GroupIdentifierList`,Gu=`GroupIdStringList`,Ku=`GpuInfo`,qu=`GroupId`,Ju=`GroupIds`,Yu=`GroupIdentifier`,Xu=`GroupLongName`,Zu=`GroupName`,Qu=`GroupNameStringList`,$u=`GroupNames`,ed=`GroupOwnerId`,td=`GpuPartitionSize`,nd=`Geography`,rd=`Gpus`,id=`HiddenByDefault`,ad=`HttpEndpoint`,od=`HostId`,sd=`HibernationOptions`,cd=`HibernationOptionsRequest`,ld=`HttpProtocolIpv6`,ud=`HttpPutResponseHopLimit`,dd=`HostResourceGroupArn`,fd=`HibernationSupported`,pd=`HttpTokens`,md=`HostnameType`,hd=`Hibernate`,gd=`Hypervisor`,_d=`Id`,vd=`Ipv6Addresses`,yd=`Ipv6AddressAttribute`,bd=`Ipv6AddressCount`,xd=`InstanceAttachmentEnaSrdSpecification`,Sd=`InstanceAttachmentEnaSrdUdpSpecification`,Cd=`InferenceAcceleratorInfo`,wd=`Ipv4AddressesPerInterface`,Td=`Ipv6AddressesPerInterface`,Ed=`Ipv4AddressesPerSecondaryInterface`,Dd=`ImageAllowed`,Od=`IpAddress`,kd=`Ipv6Address`,Ad=`InstanceBlockDeviceMapping`,jd=`InstanceBlockDeviceMappingList`,Md=`InstanceBlockDeviceMappingSpecification`,Nd=`InstanceBlockDeviceMappingSpecificationList`,Pd=`Ipv6CidrBlock`,Fd=`Ipv6CidrBlockAssociationSet`,Id=`Ipv6CidrBlockNetworkBorderGroup`,Ld=`Ipv6CidrBlockState`,Rd=`IncludeDeprecated`,zd=`InferenceDeviceInfo`,Bd=`InferenceDeviceInfoList`,Vd=`InferenceDeviceMemoryInfo`,Hd=`IncludeDisabled`,Ud=`IsDefault`,Wd=`IsEgress`,Gd=`InternetGateway`,Kd=`InternetGatewayAttachment`,qd=`InternetGatewayAttachmentList`,Jd=`InternetGatewayBlockMode`,Yd=`InternetGatewayExclusion`,Xd=`InternetGatewayId`,Zd=`InternetGatewayIdList`,Qd=`InternetGatewayIds`,$d=`InternetGatewayList`,ef=`InternetGateways`,tf=`InstanceId`,nf=`InstanceIpv6Address`,rf=`InstanceIpv6AddressList`,af=`InstanceInterruptionBehavior`,of=`IamInstanceProfile`,sf=`IamInstanceProfileAssociation`,cf=`IamInstanceProfileAssociationSet`,lf=`IamInstanceProfileAssociations`,uf=`Ipv6IpamPoolId`,df=`Ipv4IpamPoolId`,ff=`InstanceIpv4PrefixList`,pf=`InstanceIpv6PrefixList`,mf=`IamInstanceProfileSpecification`,hf=`InstanceIpv4Prefix`,gf=`InstanceIpv6Prefix`,_f=`InstanceInitiatedShutdownBehavior`,vf=`ImageIdStringList`,yf=`InstanceIdStringList`,bf=`ImageId`,xf=`ImageIds`,Sf=`InstanceIds`,Cf=`ImportKeyPair`,wf=`ImportKeyPairRequest`,Tf=`ImportKeyPairResult`,Ef=`ImageLocation`,Df=`ImageList`,Of=`InstanceLifecycle`,kf=`InstanceList`,Af=`IpList`,jf=`InstanceMaintenanceOptions`,Mf=`InstanceMaintenanceOptionsRequest`,Nf=`InstanceMarketOptionsRequest`,Pf=`InstanceMetadataOptionsRequest`,Ff=`InstanceMetadataOptionsResponse`,If=`InstanceMarketOptions`,Lf=`IncludeManagedResources`,Rf=`InstanceMetadataTags`,zf=`Ipv6Native`,Bf=`InstanceNetworkInterface`,Vf=`InstanceNetworkInterfaceAssociation`,Hf=`InstanceNetworkInterfaceAttachment`,Uf=`InstanceNetworkInterfaceList`,Wf=`InstanceNetworkInterfaceSpecification`,Gf=`InstanceNetworkInterfaceSpecificationList`,Kf=`Ipv6NetmaskLength`,qf=`Ipv4NetmaskLength`,Jf=`InstanceNetworkPerformanceOptions`,Yf=`InstanceNetworkPerformanceOptionsRequest`,Xf=`ImageOwnerAlias`,Zf=`IpOwnerId`,Qf=`InstanceOwnerId`,$f=`InstanceOwningService`,ep=`Ipv6PrefixCount`,tp=`Ipv4PrefixCount`,np=`IpPermissionsEgress`,rp=`IpamPoolId`,ip=`InstancePrivateIpAddress`,ap=`InstancePrivateIpAddressList`,op=`IsPrimaryIpv6`,sp=`IncludePublicKey`,cp=`IpPermissionList`,lp=`Ipv4PrefixList`,up=`Ipv6PrefixList`,dp=`Ipv4PrefixSpecificationRequest`,fp=`Ipv6PrefixSpecificationRequest`,pp=`Ipv6Prefixes`,mp=`IpPermissions`,hp=`IpPermission`,gp=`IpProtocol`,_p=`Ipv6Prefix`,vp=`Ipv6Pool`,yp=`Ipv4Prefixes`,bp=`Ipv4Prefix`,xp=`IsPrimary`,Sp=`IpRangeList`,Cp=`Ipv6RangeList`,wp=`IpRanges`,Tp=`IpRange`,Ep=`Ipv6Ranges`,Dp=`Ipv6Range`,Op=`InstanceStateChange`,kp=`InstanceStateChangeList`,Ap=`InstanceSecondaryInterfaceAttachment`,jp=`InstanceSecondaryInterfaceList`,Mp=`InstanceSecondaryInterfacePrivateIpAddress`,Np=`InstanceSecondaryInterfacePrivateIpAddressList`,Pp=`InstanceSecondaryInterfacePrivateIpAddressListRequest`,Fp=`InstanceSecondaryInterfacePrivateIpAddressRequest`,Ip=`InstanceSecondaryInterfaceSpecificationListRequest`,Lp=`InstanceSecondaryInterfaceSpecificationRequest`,Rp=`InstanceSecondaryInterface`,zp=`InstanceStorageInfo`,Bp=`InstanceStorageSupported`,Vp=`ImdsSupport`,Hp=`InstanceState`,Up=`IpSource`,Wp=`Ipv6Supported`,Gp=`InstanceType`,Kp=`InstanceTypeInfoList`,qp=`InstanceTypeInfo`,Jp=`ImageType`,Yp=`InstanceTenancy`,Xp=`InstanceTypes`,Zp=`InterfaceType`,Qp=`IncludeUnsupportedInRegion`,$p=`ImageWatermarks`,em=`ImageWatermarkList`,tm=`ImageWatermark`,Dne=`Images`,One=`Image`,kne=`Instance`,Ane=`Instances`,nm=`Iops`,jne=`Key`,Mne=`KeyFormat`,rm=`KeyFingerprint`,im=`KernelId`,am=`KmsKeyId`,Nne=`KeyMaterial`,om=`KeyName`,Pne=`KeyNameStringList`,Fne=`KeyNames`,Ine=`KeyPairs`,sm=`KeyPairId`,Lne=`KeyPairIdStringList`,Rne=`KeyPairIds`,zne=`KeyPairInfo`,Bne=`KeyPairList`,Vne=`KeyPair`,cm=`KeyType`,Hne=`Kernel`,lm=`LicenseConfigurationArn`,Une=`LicenseConfigurationRequest`,Wne=`LicenseConfiguration`,Gne=`LambdaExclusion`,Kne=`LogicalGpuCount`,um=`LocalGatewayId`,dm=`LinkedGroupId`,qne=`LicenseList`,Jne=`LastLaunchedTime`,Yne=`LicenseSpecifications`,Xne=`LicenseSpecificationListRequest`,Zne=`LicenseSpecification`,Qne=`LaunchTemplate`,$ne=`LaunchTemplateId`,ere=`LaunchTemplateName`,tre=`LaunchTemplateSpecification`,nre=`LaunchTime`,rre=`Latest`,ire=`Lambda`,are=`Licenses`,ore=`Location`,fm=`MultiAttachEnabled`,pm=`MediaAcceleratorInfo`,mm=`MacAddress`,hm=`MaximumBandwidthInMbps`,gm=`MapCustomerOwnedIpOnLaunch`,sre=`MaxCount`,cre=`MinCount`,lre=`MediaDeviceInfo`,ure=`MediaDeviceInfoList`,dre=`MediaDeviceMemoryInfo`,fre=`MaximumEbsAttachments`,pre=`MaximumEbsCards`,mre=`MaximumEfaInterfaces`,hre=`MaximumEnaQueueCount`,gre=`MaximumEnaQueueCountPerInterface`,_m=`MaximumIops`,_re=`ModifyInstanceAttributeRequest`,vre=`ModifyInstanceAttributeValue`,yre=`ModifyInstanceAttribute`,vm=`MemoryInfo`,bre=`MaximumNetworkCards`,ym=`MaximumNetworkInterfaces`,bm=`MetadataOptions`,xm=`MaintenanceOptions`,Sm=`MapPublicIpOnLaunch`,xre=`MaxPrice`,Cm=`MaxResults`,Sre=`ModifySubnetAttributeRequest`,Cre=`ModifySubnetAttribute`,wre=`MaximumSecondaryNetworkInterfaces`,wm=`ModificationState`,Tre=`MarketType`,Tm=`MaximumThroughputInMBps`,Ere=`ModifyVolumeRequest`,Dre=`ModifyVolumeResult`,Ore=`ModifyVolume`,kre=`Main`,Em=`Manufacturer`,Are=`Managed`,Dm=`Message`,jre=`Messages`,Om=`Mode`,km=`Monitoring`,Am=`Name`,jm=`NetworkBorderGroup`,Mre=`NetworkCards`,Mm=`NetworkCardIndex`,Nre=`NetworkCardInfoList`,Pre=`NetworkCardInfo`,Nm=`NoDevice`,Fre=`NeuronDeviceCoreInfo`,Ire=`NeuronDeviceInfo`,Lre=`NeuronDeviceInfoList`,Rre=`NeuronDeviceMemoryInfo`,zre=`NeuronDevices`,Bre=`NitroEnclavesSupport`,Pm=`NatGateway`,Vre=`NatGatewayAddresses`,Hre=`NatGatewayAttachedAppliance`,Ure=`NatGatewayAttachedApplianceList`,Wre=`NatGatewayAddressList`,Gre=`NatGatewayAddress`,Kre=`NatGatewayExclusion`,Fm=`NatGatewayId`,qre=`NatGatewayIdStringList`,Jre=`NatGatewayIds`,Yre=`NatGatewayList`,Xre=`NatGateways`,Im=`NetworkInterfaceId`,Zre=`NetworkInterfaceOwnerId`,Lm=`NetworkInterfaces`,Rm=`NetworkInfo`,zm=`NeuronInfo`,Bm=`NetworkPerformanceOptions`,Vm=`NetworkPerformance`,Qre=`NoReboot`,Hm=`NvmeSupport`,Um=`NitroTpmInfo`,$re=`NitroTpmSupport`,eie=`NitroTpmSupportedVersionsList`,p=`NextToken`,Wm=`NestedVirtualization`,tie=`Origin`,Gm=`OutpostArn`,nie=`OwnerAlias`,Km=`OwnerId`,qm=`OptInStatus`,rie=`OriginalIops`,iie=`OwnerIds`,aie=`OriginalMultiAttachEnabled`,Jm=`OdbNetworkArn`,oie=`OperatorRequest`,sie=`OperatorResponse`,cie=`OwnerStringList`,lie=`OriginalSize`,uie=`OriginalThroughput`,die=`OriginalVolumeType`,Ym=`Operator`,fie=`Output`,pie=`Owners`,Xm=`Owner`,Zm=`Principal`,Qm=`ProvisionedBandwidth`,mie=`PeakBandwidthInGbps`,hie=`ProductCodeId`,gie=`ProductCodeList`,_ie=`ProductCodeType`,$m=`PartitionCount`,vie=`ProductCode`,eh=`ProductCodes`,yie=`PrivateDnsHostnameTypeOnLaunch`,th=`PrivateDnsName`,nh=`PrivateDnsNameOptions`,rh=`PrivateDnsNameOptionsOnLaunch`,bie=`PrivateDnsNameOptionsRequest`,xie=`PrivateDnsNameOptionsResponse`,ih=`PublicDnsName`,ah=`PlatformDetails`,oh=`PlacementGroup`,sh=`PlacementGroupInfo`,Sie=`PlacementGroupIdStringList`,Cie=`PlacementGroupList`,wie=`PlacementGroupStrategyList`,Tie=`PlacementGroups`,ch=`PublicIp`,Eie=`PrivateIpAddressCount`,Die=`PrivateIpAddressSpecification`,Oie=`PrivateIpAddressSpecificationList`,lh=`PrivateIpAddress`,uh=`PrivateIpAddresses`,kie=`PublicIpAddress`,dh=`PublicIpv4Pool`,Aie=`PublicIpStringList`,jie=`PrimaryIpv6`,Mie=`PrivateIp`,fh=`ProcessorInfo`,Nie=`PublicIps`,Pie=`PublicKey`,Fie=`PublicKeyMaterial`,ph=`PrefixListId`,Iie=`PrefixListIdList`,Lie=`PrefixListIds`,Rie=`PartitionNumber`,mh=`PeeringStatus`,zie=`PhcSupport`,Bie=`PreviousState`,Vie=`ProvisionTime`,Hie=`PresignedUrl`,Uie=`PropagatingVgw`,Wie=`PropagatingVgwList`,Gie=`PropagatingVgws`,Kie=`ParentZoneId`,qie=`ParentZoneName`,hh=`Platform`,gh=`Placement`,_h=`Primary`,vh=`Progress`,Jie=`Provisioned`,Yie=`Public`,yh=`Return`,Xie=`ReleaseAddressRequest`,Zie=`ReleaseAddress`,Qie=`RestorableByUserIds`,$ie=`RestorableBy`,bh=`RootDeviceName`,xh=`RootDeviceType`,eae=`RootDeviceTypeList`,tae=`RestoreExpiryTime`,nae=`ResourceExclusions`,rae=`RegionGeography`,iae=`ReferencedGroupId`,aae=`ReferencedGroupInfo`,oae=`RegionGeographyList`,sae=`RunInstancesMonitoringEnabled`,cae=`RebootInstancesRequest`,lae=`RunInstancesRequest`,uae=`RunInstancesUserData`,Sh=`RamdiskId`,dae=`ReservationId`,fae=`RebootInstances`,pae=`RequesterId`,mae=`RunInstances`,hae=`RegionList`,gae=`ReservationList`,_ae=`RouteList`,vae=`RebootMigrationSupport`,yae=`RebootMigration`,Ch=`RegionName`,bae=`RegionNameStringList`,xae=`RegionNames`,Sae=`ReferencedSecurityGroup`,Cae=`RevokeSecurityGroupEgress`,wae=`RevokeSecurityGroupEgressRequest`,Tae=`RevokeSecurityGroupEgressResult`,Eae=`RevokeSecurityGroupIngressRequest`,Dae=`RevokeSecurityGroupIngressResult`,Oae=`RevokeSecurityGroupIngress`,kae=`RevokedSecurityGroupRule`,Aae=`RevokedSecurityGroupRuleList`,wh=`RevokedSecurityGroupRules`,jae=`RouteTableAssociation`,Mae=`RouteTableAssociationId`,Nae=`RouteTableAssociationList`,Pae=`RouteTableAssociationState`,Th=`RouteTableId`,Fae=`RouteTableIdStringList`,Iae=`RouteTableIds`,Lae=`RouteTableList`,Rae=`ResourceType`,zae=`RequestTime`,Eh=`RouteTable`,Bae=`RouteTables`,Vae=`Ramdisk`,Hae=`Regions`,Uae=`Region`,Wae=`Requested`,Gae=`Reservations`,Kae=`Reservation`,qae=`Route`,Jae=`Routes`,Yae=`SecondaryAllocationIds`,Xae=`SecondaryAllocationId`,Zae=`SupportedAdditionalProcessorFeatureList`,Qae=`SubnetArn`,$ae=`SupportedArchitectures`,eoe=`SupportedBootModes`,toe=`SubnetCidrBlockState`,noe=`SustainedClockSpeedInGhz`,Dh=`SourceDestCheck`,roe=`SpreadDomain`,ioe=`SupportedFeatures`,aoe=`SubGeography`,Oh=`SecurityGroupArn`,kh=`SecurityGroupId`,ooe=`SecurityGroupIdStringList`,soe=`SecurityGroupIds`,coe=`SecurityGroupList`,Ah=`SecurityGroupRules`,loe=`SecurityGroupRuleArn`,jh=`SecurityGroupRuleIds`,uoe=`SecurityGroupRuleIdList`,Mh=`SecurityGroupRuleId`,doe=`SecurityGroupRuleList`,foe=`SecurityGroupRule`,poe=`SecurityGroupStringList`,Nh=`SecurityGroups`,Ph=`SecurityGroup`,moe=`SubnetIds`,hoe=`SubnetIpv6CidrBlockAssociation`,goe=`SubnetIpv6CidrBlockAssociationSet`,_oe=`SourceImageCreationTime`,voe=`SizeInGB`,Fh=`SourceImageId`,yoe=`SecondaryInterfaceId`,boe=`SourceInstanceId`,Ih=`SizeInMiB`,xoe=`SpotInstanceRequestId`,Lh=`SourceImageRegion`,Soe=`StartInstancesRequest`,Coe=`StartInstancesResult`,woe=`StopInstancesRequest`,Toe=`StopInstancesResult`,Eoe=`SupportedInRegion`,Doe=`SnapshotIdStringList`,Ooe=`SubnetIdStringList`,koe=`SpotInstanceType`,Rh=`SecondaryInterfaces`,Aoe=`SecondaryInterface`,zh=`SnapshotId`,joe=`SnapshotIds`,Moe=`StartingInstances`,Noe=`StartInstances`,Poe=`StoppingInstances`,Foe=`StopInstances`,Bh=`SubnetId`,Ioe=`SnapshotLocation`,Loe=`SnapshotList`,Vh=`SpreadLevel`,Roe=`SubnetList`,zoe=`ServiceManaged`,Boe=`SpotMarketOptions`,Hh=`StatusMessage`,Uh=`StateMessage`,Voe=`SecondaryNetworkId`,Wh=`SriovNetSupport`,Hoe=`SecondaryNetworkSupported`,Uoe=`SpotOptions`,Gh=`SkipOsShutdown`,Woe=`SecondaryPrivateIpAddresses`,Kh=`SecondaryPrivateIpAddressCount`,Goe=`SecondaryPrivateIpAddress`,Koe=`SupportedRootDeviceTypes`,qoe=`SourceRegion`,qh=`StateReason`,Jh=`SourceSecurityGroupName`,Yh=`SourceSecurityGroupOwnerId`,Joe=`SourceSnapshotId`,Xh=`SecondarySubnetId`,Yoe=`SupportedStrategies`,Zh=`StartTime`,Xoe=`StateTransitionReason`,Qh=`SseType`,Zoe=`StorageTier`,Qoe=`SupportedUsageClasses`,$oe=`SensitiveUserData`,ese=`SourceVolumeId`,tse=`SupportedVirtualizationTypes`,nse=`SupportedVersions`,$h=`Size`,rse=`Snapshots`,ise=`Snapshot`,eg=`State`,tg=`Status`,ng=`Strategy`,rg=`Subnet`,ase=`Subnets`,ig=`Tags`,ag=`TcpEstablishedTimeout`,ose=`TotalFpgaMemoryInMiB`,og=`TransitGatewayId`,sse=`TotalGpuMemoryInMiB`,cse=`TerminateInstances`,lse=`TotalInferenceMemoryInMiB`,use=`TerminateInstancesRequest`,dse=`TerminateInstancesResult`,fse=`TargetIops`,pse=`TerminatingInstances`,mse=`TagList`,hse=`TargetMultiAttachEnabled`,gse=`TotalMediaMemoryInMiB`,_se=`TotalNeuronDeviceMemoryInMiB`,sg=`ToPort`,cg=`ThreadsPerCore`,vse=`ThreadsPerCoreList`,lg=`TagSpecifications`,yse=`TotalSizeInGB`,bse=`TagSpecificationList`,ug=`TagSpecification`,xse=`TargetSize`,dg=`TpmSupport`,Sse=`TargetThroughput`,Cse=`TransferType`,wse=`TargetVolumeType`,fg=`Tag`,Tse=`Tenancy`,pg=`Throughput`,mg=`Timestamp`,hg=`Type`,Ese=`UsageClassTypeList`,gg=`UserData`,_g=`UserId`,Dse=`UserIdGroupPairs`,Ose=`UserIdGroupPairList`,kse=`UserIdGroupPair`,vg=`UnknownIpPermissions`,yg=`UsageOperation`,Ase=`UsageOperationUpdateTime`,bg=`UdpStreamTimeout`,xg=`UdpTimeout`,Sg=`Value`,jse=`VolumeAttachmentList`,Mse=`VolumeAttachment`,Nse=`VpcCidrBlockAssociation`,Pse=`VpcCidrBlockAssociationSet`,Fse=`VpcCidrBlockState`,Cg=`VCpuInfo`,Ise=`ValidCores`,wg=`VpcEncryptionControl`,Lse=`VpcEncryptionControlConfiguration`,Rse=`VpcEncryptionControlExclusion`,zse=`VpcEncryptionControlExclusions`,Bse=`VpcEncryptionControlId`,Tg=`VpcEndpointId`,Eg=`VpcId`,Vse=`VpcIpv6CidrBlockAssociation`,Hse=`VpcIpv6CidrBlockAssociationSet`,Dg=`VolumeInitializationRate`,Og=`VolumeIdStringList`,kg=`VpcIdStringList`,Ag=`VolumeId`,jg=`VolumeIds`,Mg=`VpcIds`,Ng=`VpcLattice`,Pg=`VpcLatticeExclusion`,Fg=`VolumeList`,Ig=`VpcList`,Lg=`VolumeModification`,Rg=`VirtualName`,zg=`VolumeOwnerId`,Bg=`VpcPeeringConnectionId`,Vg=`VpcPeeringExclusion`,Hg=`VirtualPrivateGateway`,Ug=`VirtualPrivateGatewayExclusion`,Wg=`VpcPeering`,Gg=`ValueStringList`,Kg=`VolumeSize`,qg=`VolumeType`,Jg=`VirtualizationTypeList`,Yg=`ValidThreadsPerCore`,Xg=`VirtualizationType`,Zg=`ValidUntil`,Qg=`Values`,$g=`Version`,e_=`Volumes`,t_=`Volume`,n_=`Vpc`,r_=`Vpcs`,i_=`WatermarkCreationTime`,a_=`WatermarkKey`,o_=`WorkloadsList`,s_=`Workloads`,c_=`ZoneId`,l_=`ZoneIdStringList`,u_=`ZoneIds`,d_=`ZoneName`,f_=`ZoneNameStringList`,p_=`ZoneNames`,m_=`ZoneType`,h_=`attachedApplianceSet`,g_=`applianceArn`,__=`additionalFlexibleNetworkInterfaces`,v_=`allocationId`,y_=`availableIpAddressCount`,b_=`assignIpv6AddressOnCreation`,x_=`additionalInfo`,S_=`associationId`,C_=`attachmentId`,w_=`amiLaunchIndex`,T_=`attachmentLimitType`,E_=`availabilityMode`,D_=`associatePublicIpAddress`,O_=`amazonProvidedIpv6CidrBlock`,k_=`autoProvisionZones`,A_=`autoRecoverySupported`,j_=`allowReassociation`,M_=`associatedResource`,N_=`autoRecovery`,P_=`associationState`,F_=`autoScalingIps`,I_=`amdSevSnp`,L_=`addressesSet`,R_=`associationSet`,z_=`attachmentSet`,B_=`attachmentState`,V_=`attachTime`,H_=`availabilityZone`,U_=`availabilityZoneId`,W_=`availabilityZoneInfo`,G_=`accelerators`,K_=`affinity`,q_=`arn`,J_=`architecture`,Y_=`association`,X_=`attachment`,Z_=`attribute`,Q_=`baselineBandwidthInGbps`,$_=`baselineBandwidthInMbps`,ev=`blockDeviceMapping`,tv=`baselineIops`,nv=`bootMode`,rv=`bareMetal`,iv=`blockPublicAccessStates`,av=`burstablePerformanceSupported`,ov=`baselineThroughputInMBps`,sv=`bandwidthWeighting`,cv=`bandwidthWeightings`,lv=`cidrBlock`,uv=`cidrBlockAssociationSet`,dv=`capacityBlockId`,fv=`cidrBlockState`,pv=`coreCount`,mv=`completionDurationMinutes`,hv=`creationDate`,gv=`carrierGatewayId`,_v=`currentGeneration`,vv=`carrierIp`,yv=`currentInstanceBootMode`,bv=`cidrIp`,xv=`cidrIpv6`,Sv=`cidrIpv4`,Cv=`coreInfo`,wv=`coreNetworkArn`,Tv=`cpuOptions`,Ev=`customerOwnedIp`,Dv=`customerOwnedIpv4Pool`,Ov=`capacityReservationId`,kv=`capacityReservationPreference`,Av=`capacityReservationResourceGroupArn`,jv=`capacityReservationSpecification`,Mv=`capacityReservationTarget`,Nv=`currentState`,Pv=`clientToken`,Fv=`connectionTrackingConfiguration`,Iv=`completionTime`,Lv=`connectivityType`,Rv=`createTime`,zv=`code`,Bv=`configured`,Vv=`count`,Hv=`disableApiTermination`,Uv=`destinationCidrBlock`,Wv=`defaultCores`,Gv=`dataEncryptionKeyId`,Kv=`defaultEnaQueueCountPerInterface`,qv=`defaultForAz`,Jv=`dedicatedHostsSupported`,Yv=`deviceIndex`,Xv=`destinationIpv6CidrBlock`,Zv=`deviceName`,Qv=`defaultNetworkCardIndex`,$v=`dnsName`,ey=`dhcpOptionsId`,ty=`deleteOnTermination`,ny=`destinationPrefixListId`,ry=`deregistrationProtection`,m=`dryRun`,iy=`destinationRegion`,ay=`defaultTcpEstablishedTimeout`,oy=`defaultThreadsPerCore`,sy=`deprecationTime`,cy=`deleteTime`,ly=`defaultUdpStreamTimeout`,uy=`defaultUdpTimeout`,dy=`defaultVCpus`,fy=`description`,py=`device`,my=`disks`,hy=`domain`,gy=`ebsCardIndex`,_y=`ebsCardSet`,vy=`encryptionControl`,yy=`enableDns64`,by=`elasticFileSystem`,xy=`elasticGpuAssociationId`,Sy=`elasticGpuAssociationState`,Cy=`elasticGpuAssociationSet`,wy=`elasticGpuAssociationTime`,Ty=`elasticGpuId`,Ey=`elasticInferenceAcceleratorArn`,Dy=`elasticInferenceAcceleratorAssociationId`,Oy=`elasticInferenceAcceleratorAssociationState`,ky=`elasticInferenceAcceleratorAssociationSet`,Ay=`elasticInferenceAcceleratorAssociationTime`,jy=`encryptionInTransitSupported`,My=`ebsInfo`,Ny=`efaInfo`,Py=`enableLniAtDeviceIndex`,Fy=`ebsOptimized`,Iy=`ebsOptimizedInfo`,Ly=`egressOnlyInternetGateway`,Ry=`egressOnlyInternetGatewayId`,zy=`ebsOptimizedSupport`,By=`enclaveOptions`,Vy=`enaQueueCount`,h=`ec2QueryName`,Hy=`enableResourceNameDnsAAAARecord`,Uy=`enableResourceNameDnsARecord`,Wy=`enaSrdEnabled`,Gy=`enaSrdSpecification`,Ky=`enaSrdSupported`,qy=`enaSrdUdpEnabled`,Jy=`enaSrdUdpSpecification`,Yy=`efaSupported`,Xy=`encryptionSupport`,Zy=`enaSupport`,Qy=`endTime`,$y=`ebs`,eb=`enabled`,tb=`encrypted`,nb=`failureCode`,rb=`flexibleEnaQueuesSupport`,ib=`fpgaInfo`,ab=`failureMessage`,ob=`fromPort`,sb=`fastRestored`,cb=`fullSnapshotSizeInBytes`,lb=`freeTierEligible`,ub=`force`,db=`fpgas`,fb=`groupArn`,pb=`groupDescription`,mb=`gatewayId`,hb=`gpuInfo`,gb=`groupId`,_b=`groupLongName`,vb=`groupName`,yb=`groupOwnerId`,bb=`gpuPartitionSize`,xb=`geographySet`,Sb=`groupSet`,Cb=`gpus`,wb=`groups`,Tb=`hypervisor`,Eb=`hiddenByDefault`,Db=`httpEndpoint`,Ob=`hostId`,kb=`hibernationOptions`,Ab=`httpProtocolIpv6`,jb=`httpPutResponseHopLimit`,Mb=`hostResourceGroupArn`,Nb=`hibernationSupported`,Pb=`httpTokens`,Fb=`hostnameType`,Ib=`id`,Lb=`ipv6AddressAttribute`,Rb=`ipv6AddressCount`,zb=`inferenceAcceleratorInfo`,Bb=`ipv4AddressesPerInterface`,Vb=`ipv6AddressesPerInterface`,Hb=`ipv4AddressesPerSecondaryInterface`,Ub=`ipv6AddressesSet`,Wb=`imageAllowed`,Gb=`ipAddress`,Kb=`ipv6Address`,qb=`ipv6CidrBlock`,Jb=`ipv6CidrBlockAssociationSet`,Yb=`ipv6CidrBlockState`,Xb=`isDefault`,Zb=`isEgress`,Qb=`internetGateway`,$b=`internetGatewayBlockMode`,ex=`internetGatewayId`,tx=`internetGatewaySet`,nx=`instanceId`,rx=`iamInstanceProfile`,ix=`iamInstanceProfileAssociation`,ax=`iamInstanceProfileAssociationSet`,ox=`instanceInitiatedShutdownBehavior`,sx=`imageId`,cx=`imageLocation`,lx=`instanceLifecycle`,ux=`instanceMetadataTags`,dx=`ipv6Native`,fx=`imageOwnerAlias`,px=`imageOwnerId`,mx=`instanceOwnerId`,hx=`ipOwnerId`,gx=`instanceOwningService`,_x=`ipPermissionsEgress`,vx=`isPrimaryIpv6`,yx=`ipv4PrefixSet`,bx=`ipv6PrefixSet`,xx=`ipProtocol`,Sx=`ipPermissions`,Cx=`ipv4Prefix`,wx=`ipv6Pool`,Tx=`ipv6Prefix`,Ex=`isPublic`,Dx=`isPrimary`,Ox=`ipRanges`,kx=`ipv6Ranges`,Ax=`instanceStorageInfo`,jx=`instanceStorageSupported`,Mx=`imagesSet`,Nx=`imageState`,Px=`imdsSupport`,Fx=`instancesSet`,Ix=`instanceState`,Lx=`ipSource`,Rx=`ipv6Supported`,zx=`instanceType`,Bx=`instanceTypeSet`,Vx=`idempotencyToken`,Hx=`imageType`,Ux=`instanceTenancy`,Wx=`interfaceType`,Gx=`imageWatermarkSet`,Kx=`iops`,g=`item`,qx=`key`,Jx=`keyFingerprint`,Yx=`kernelId`,Xx=`kmsKeyId`,Zx=`keyMaterial`,Qx=`keyName`,$x=`keyPairId`,eS=`keySet`,tS=`keyType`,nS=`kernel`,rS=`licenseConfigurationArn`,iS=`logicalGpuCount`,aS=`localGatewayId`,oS=`linkedGroupId`,sS=`lastLaunchedTime`,cS=`licenseSet`,lS=`launchTime`,uS=`lambda`,dS=`multiAttachEnabled`,fS=`mediaAcceleratorInfo`,pS=`macAddress`,mS=`maximumBandwidthInMbps`,hS=`mapCustomerOwnedIpOnLaunch`,gS=`maximumEbsAttachments`,_S=`maximumEbsCards`,vS=`maximumEfaInterfaces`,yS=`maximumEnaQueueCount`,bS=`maximumEnaQueueCountPerInterface`,xS=`maximumIops`,SS=`memoryInfo`,CS=`maximumNetworkCards`,wS=`maximumNetworkInterfaces`,TS=`metadataOptions`,ES=`maintenanceOptions`,DS=`mapPublicIpOnLaunch`,OS=`maxResults`,kS=`messageSet`,AS=`maximumSecondaryNetworkInterfaces`,jS=`modificationState`,MS=`maximumThroughputInMBps`,NS=`main`,PS=`manufacturer`,FS=`managed`,IS=`message`,LS=`monitoring`,RS=`mode`,zS=`name`,BS=`networkBorderGroup`,VS=`networkCards`,HS=`networkCardIndex`,US=`noDevice`,WS=`neuronDevices`,GS=`nitroEnclavesSupport`,KS=`natGateway`,qS=`natGatewayAddressSet`,JS=`natGatewayId`,YS=`natGatewaySet`,XS=`networkInterfaceId`,ZS=`networkInterfaceOwnerId`,QS=`networkInterfaceSet`,$S=`networkInterface`,eC=`networkInfo`,tC=`neuronInfo`,nC=`networkPerformanceOptions`,rC=`networkPerformance`,iC=`noReboot`,aC=`nvmeSupport`,oC=`nitroTpmInfo`,sC=`nitroTpmSupport`,cC=`nextToken`,lC=`nestedVirtualization`,uC=`origin`,dC=`outpostArn`,fC=`ownerAlias`,pC=`ownerId`,mC=`optInStatus`,hC=`originalIops`,gC=`originalMultiAttachEnabled`,_C=`odbNetworkArn`,vC=`originalSize`,yC=`originalThroughput`,bC=`originalVolumeType`,xC=`operator`,SC=`output`,CC=`principal`,wC=`provisionedBandwidth`,TC=`peakBandwidthInGbps`,EC=`productCodes`,DC=`partitionCount`,OC=`productCode`,kC=`privateDnsNameOptions`,AC=`privateDnsNameOptionsOnLaunch`,jC=`privateDnsName`,MC=`publicDnsName`,NC=`platformDetails`,PC=`placementGroup`,FC=`placementGroupInfo`,IC=`placementGroupSet`,LC=`publicIp`,RC=`privateIpAddressesSet`,zC=`privateIpAddressSet`,BC=`privateIpAddress`,VC=`publicIpv4Pool`,HC=`processorInfo`,UC=`privateIp`,WC=`publicKey`,GC=`publicKeyMaterial`,KC=`prefixListId`,qC=`prefixListIds`,JC=`partitionNumber`,YC=`peeringStatus`,XC=`phcSupport`,ZC=`previousState`,QC=`provisionTime`,$C=`presignedUrl`,ew=`propagatingVgwSet`,tw=`parentZoneId`,nw=`parentZoneName`,rw=`platform`,iw=`placement`,aw=`primary`,ow=`progress`,sw=`provisioned`,cw=`return`,lw=`rootDeviceName`,uw=`rootDeviceType`,dw=`restoreExpiryTime`,fw=`regionEndpoint`,pw=`resourceExclusions`,mw=`referencedGroupId`,hw=`referencedGroupInfo`,gw=`reservationId`,_w=`ramdiskId`,vw=`regionInfo`,yw=`requesterId`,bw=`rebootMigrationSupport`,xw=`rebootMigration`,Sw=`regionName`,Cw=`revokedSecurityGroupRuleSet`,ww=`reservationSet`,Tw=`routeSet`,Ew=`routeTableAssociationId`,Dw=`routeTableId`,Ow=`routeTableSet`,kw=`resourceType`,Aw=`requestTime`,jw=`routeTable`,Mw=`ramdisk`,Nw=`reason`,Pw=`requested`,Fw=`smithy.ts.sdk.synthetic.com.amazonaws.ec2`,Iw=`supportedArchitectures`,Lw=`subnetArn`,Rw=`supportedBootModes`,zw=`sustainedClockSpeedInGhz`,Bw=`sourceDestCheck`,Vw=`spreadDomain`,Hw=`supportedFeatures`,Uw=`securityGroupArn`,Ww=`securityGroupInfo`,Gw=`securityGroupRuleArn`,Kw=`securityGroupRuleId`,qw=`securityGroupRuleSet`,Jw=`subGeographySet`,Yw=`sourceImageCreationTime`,Xw=`sizeInGB`,Zw=`sourceInstanceId`,Qw=`secondaryInterfaceId`,$w=`sourceImageId`,eT=`sizeInMiB`,tT=`sourceImageRegion`,nT=`spotInstanceRequestId`,rT=`supportedInRegion`,iT=`secondaryInterfaceSet`,aT=`snapshotId`,oT=`subnetId`,sT=`spreadLevel`,cT=`serviceManaged`,lT=`statusMessage`,uT=`stateMessage`,dT=`secondaryNetworkId`,fT=`secondaryNetworkSupported`,pT=`sriovNetSupport`,mT=`secondaryPrivateIpAddressCount`,hT=`supportedRootDeviceTypes`,gT=`stateReason`,_T=`sourceSecurityGroupName`,vT=`sourceSecurityGroupOwnerId`,yT=`secondarySubnetId`,bT=`snapshotSet`,xT=`subnetSet`,ST=`supportedStrategies`,CT=`startTime`,wT=`sseType`,TT=`storageTier`,ET=`supportedUsageClasses`,DT=`sourceVolumeId`,OT=`supportedVirtualizationTypes`,kT=`supportedVersions`,AT=`size`,jT=`state`,MT=`status`,NT=`strategy`,PT=`subnet`,FT=`tenancy`,IT=`tcpEstablishedTimeout`,LT=`totalFpgaMemoryInMiB`,RT=`transitGatewayId`,zT=`totalGpuMemoryInMiB`,BT=`totalInferenceMemoryInMiB`,VT=`targetIops`,HT=`targetMultiAttachEnabled`,UT=`totalMediaMemoryInMiB`,WT=`totalNeuronDeviceMemoryInMiB`,GT=`toPort`,KT=`threadsPerCore`,qT=`tagSet`,JT=`totalSizeInGB`,YT=`targetSize`,XT=`tpmSupport`,ZT=`targetThroughput`,QT=`transferType`,$T=`targetVolumeType`,eE=`throughput`,tE=`timestamp`,nE=`type`,rE=`userData`,iE=`userId`,aE=`unknownIpPermissionSet`,oE=`usageOperation`,sE=`usageOperationUpdateTime`,cE=`udpStreamTimeout`,lE=`udpTimeout`,uE=`value`,dE=`vCpuInfo`,fE=`validCores`,pE=`vpcEncryptionControlId`,mE=`vpcEndpointId`,hE=`vpcId`,gE=`volumeInitializationRate`,_E=`volumeId`,vE=`vpcLattice`,yE=`volumeModification`,bE=`virtualName`,xE=`volumeOwnerId`,SE=`vpcPeeringConnectionId`,CE=`virtualPrivateGateway`,wE=`vpcPeering`,TE=`volumeSet`,EE=`volumeSize`,DE=`vpcSet`,OE=`volumeType`,kE=`validThreadsPerCore`,AE=`virtualizationType`,jE=`version`,ME=`vpc`,NE=`watermarkCreationTime`,PE=`watermarkKey`,FE=`workloadSet`,_=`xmlName`,IE=`zoneId`,LE=`zoneName`,RE=`zoneState`,zE=`zoneType`,v=`com.amazonaws.ec2`,BE=se.for(Fw),VE=[-3,Fw,`EC2ServiceException`,0,[],[]];BE.registerError(VE,yte);var HE=[BE],UE=[0,v,xo,8,0],WE=[0,v,vre,8,0],GE=[0,v,uae,8,0],KE=[0,v,$oe,8,0],qE=[3,v,Ri,0,[Vi,Ui,ol,Im,Zre,lh,ig,dh,jm,Za,Qa,Ma,Bh,zoe,tf,ch],[[0,{[h]:`AllocationId`,[_]:v_}],[0,{[h]:`AssociationId`,[_]:S_}],[0,{[h]:`Domain`,[_]:hy}],[0,{[h]:`NetworkInterfaceId`,[_]:XS}],[0,{[h]:`NetworkInterfaceOwnerId`,[_]:ZS}],[0,{[h]:`PrivateIpAddress`,[_]:BC}],[()=>BN,{[h]:`TagSet`,[_]:qT}],[0,{[h]:`PublicIpv4Pool`,[_]:VC}],[0,{[h]:`NetworkBorderGroup`,[_]:BS}],[0,{[h]:`CustomerOwnedIp`,[_]:Ev}],[0,{[h]:`CustomerOwnedIpv4Pool`,[_]:Dv}],[0,{[h]:`CarrierIp`,[_]:vv}],[0,{[h]:`SubnetId`,[_]:oT}],[0,{[h]:`ServiceManaged`,[_]:cT}],[0,{[h]:`InstanceId`,[_]:nx}],[0,{[h]:`PublicIp`,[_]:LC}]]],JE=[3,v,bte,0,[ol,Ri,dh,jm,Qa,lg,rp,f],[0,0,0,0,0,[()=>VN,{[_]:ug}],0,[2,{[h]:`DryRun`,[_]:m}]]],YE=[3,v,xte,0,[Vi,dh,jm,ol,Za,Qa,Ma,ch],[[0,{[h]:`AllocationId`,[_]:v_}],[0,{[h]:`PublicIpv4Pool`,[_]:VC}],[0,{[h]:`NetworkBorderGroup`,[_]:BS}],[0,{[h]:`Domain`,[_]:hy}],[0,{[h]:`CustomerOwnedIp`,[_]:Ev}],[0,{[h]:`CustomerOwnedIpv4Pool`,[_]:Dv}],[0,{[h]:`CarrierIp`,[_]:vv}],[0,{[h]:`PublicIp`,[_]:LC}]]],XE=[3,v,Ste,0,[Vi,tf,ch,f,Im,lh,Zte],[0,0,0,[2,{[h]:`DryRun`,[_]:m}],[0,{[h]:`NetworkInterfaceId`,[_]:XS}],[0,{[h]:`PrivateIpAddress`,[_]:BC}],[2,{[h]:`AllowReassociation`,[_]:j_}]]],ZE=[3,v,Cte,0,[Ui],[[0,{[h]:`AssociationId`,[_]:S_}]]],QE=[3,v,Ite,0,[of,tf],[[()=>Dk,0],0],2],$E=[3,v,Lte,0,[sf],[[()=>Ek,{[h]:`IamInstanceProfileAssociation`,[_]:ix}]]],eD=[3,v,Jte,0,[Th,Uu,dh,f,Bh],[[0,{[h]:`RouteTableId`,[_]:Dw}],0,0,[2,{[h]:`DryRun`,[_]:m}],[0,{[h]:`SubnetId`,[_]:oT}]],1],tD=[3,v,Yte,0,[Ui,Ji],[[0,{[h]:`AssociationId`,[_]:S_}],[()=>hj,{[h]:`AssociationState`,[_]:P_}]]],nD=[3,v,Pte,0,[Xd,Eg,f],[[0,{[h]:`InternetGatewayId`,[_]:ex}],[0,{[h]:`VpcId`,[_]:hE}],[2,{[h]:`DryRun`,[_]:m}]],2],rD=[3,v,cne,0,[il,tf,Ag,ul,f],[0,0,0,1,[2,{[h]:`DryRun`,[_]:m}]],3],iD=[3,v,kte,0,[Sg],[[2,{[h]:`Value`,[_]:uE}]]],aD=[3,v,lne,0,[Sg],[[0,{[h]:`Value`,[_]:uE}]]],oD=[3,v,ene,0,[qu,lg,f,Jh,Yh,gp,Du,sg,za,mp],[[0,{[h]:`GroupId`,[_]:gb}],[()=>VN,{[_]:ug}],[2,{[h]:`DryRun`,[_]:m}],[0,{[h]:`SourceSecurityGroupName`,[_]:_T}],[0,{[h]:`SourceSecurityGroupOwnerId`,[_]:vT}],[0,{[h]:`IpProtocol`,[_]:xx}],[1,{[h]:`FromPort`,[_]:ob}],[1,{[h]:`ToPort`,[_]:GT}],[0,{[h]:`CidrIp`,[_]:bv}],[()=>KM,{[h]:`IpPermissions`,[_]:Sx}]],1],sD=[3,v,tne,0,[yh,Ah],[[2,{[h]:`Return`,[_]:cw}],[()=>MN,{[h]:`SecurityGroupRuleSet`,[_]:qw}]]],cD=[3,v,nne,0,[za,Du,qu,Zu,mp,gp,Jh,Yh,sg,lg,f],[0,1,0,0,[()=>KM,0],0,0,0,1,[()=>VN,{[_]:ug}],[2,{[h]:`DryRun`,[_]:m}]]],lD=[3,v,rne,0,[yh,Ah],[[2,{[h]:`Return`,[_]:cw}],[()=>MN,{[h]:`SecurityGroupRuleSet`,[_]:qw}]]],uD=[3,v,Zi,0,[qm,jre,Ch,d_,c_,Zu,jm,m_,qie,Kie,Xu,nd,aoe,eg],[[0,{[h]:`OptInStatus`,[_]:mC}],[()=>tM,{[h]:`MessageSet`,[_]:kS}],[0,{[h]:`RegionName`,[_]:Sw}],[0,{[h]:`ZoneName`,[_]:LE}],[0,{[h]:`ZoneId`,[_]:IE}],[0,{[h]:`GroupName`,[_]:vb}],[0,{[h]:`NetworkBorderGroup`,[_]:BS}],[0,{[h]:`ZoneType`,[_]:zE}],[0,{[h]:`ParentZoneName`,[_]:nw}],[0,{[h]:`ParentZoneId`,[_]:tw}],[0,{[h]:`GroupLongName`,[_]:_b}],[()=>$j,{[h]:`GeographySet`,[_]:xb}],[()=>nM,{[h]:`SubGeographySet`,[_]:Jw}],[0,{[h]:`ZoneState`,[_]:RE}]]],dD=[3,v,Qi,0,[Zi,ea,Hi],[0,0,[()=>Yj,{[_]:Vi}]]],fD=[3,v,dne,0,[Am],[[0,{[h]:`Name`,[_]:zS}]]],pD=[3,v,mne,0,[Dm],[[0,{[h]:`Message`,[_]:IS}]]],mD=[3,v,gne,0,[Am],[[0,{[h]:`Name`,[_]:zS}]]],hD=[3,v,Cne,0,[Sg],[[21,{[h]:`Value`,[_]:uE}]]],gD=[3,v,ca,0,[mu,Nm,Gs,Rg],[[()=>QO,{[h]:`Ebs`,[_]:$y}],[0,{[h]:`NoDevice`,[_]:US}],[0,{[h]:`DeviceName`,[_]:Zv}],[0,{[h]:`VirtualName`,[_]:bE}]]],_D=[3,v,ha,0,[Jd],[[0,{[h]:`InternetGatewayBlockMode`,[_]:$b}]]],vD=[3,v,lo,0,[io,uo],[0,()=>bD]],yD=[3,v,co,0,[io,uo],[[0,{[h]:`CapacityReservationPreference`,[_]:kv}],[()=>xD,{[h]:`CapacityReservationTarget`,[_]:Mv}]]],bD=[3,v,uo,0,[ro,oo],[0,0]],xD=[3,v,fo,0,[ro,oo],[[0,{[h]:`CapacityReservationId`,[_]:Ov}],[0,{[h]:`CapacityReservationResourceGroupArn`,[_]:Av}]]],SD=[3,v,Fo,0,[ag,bg,xg],[1,1,1]],CD=[3,v,Io,0,[ag,bg,xg],[[1,{[h]:`TcpEstablishedTimeout`,[_]:IT}],[1,{[h]:`UdpStreamTimeout`,[_]:cE}],[1,{[h]:`UdpTimeout`,[_]:lE}]]],wD=[3,v,bo,0,[qoe,Joe,rl,$s,yc,gu,am,Hie,lg,Oa,$o,f],[0,0,0,0,[0,{[h]:`DestinationRegion`,[_]:iy}],[2,{[h]:`Encrypted`,[_]:tb}],[0,{[h]:`KmsKeyId`,[_]:Xx}],[()=>UE,{[h]:`PresignedUrl`,[_]:$C}],[()=>VN,{[_]:ug}],1,0,[2,{[h]:`DryRun`,[_]:m}]],2],TD=[3,v,So,0,[ig,zh],[[()=>BN,{[h]:`TagSet`,[_]:qT}],[0,{[h]:`SnapshotId`,[_]:aT}]]],ED=[3,v,Xa,0,[Ea,cg,Yi,Wm],[[1,{[h]:`CoreCount`,[_]:pv}],[1,{[h]:`ThreadsPerCore`,[_]:KT}],[0,{[h]:`AmdSevSnp`,[_]:I_}],[0,{[h]:`NestedVirtualization`,[_]:lC}]]],DD=[3,v,$a,0,[Ea,cg,Yi,Wm],[1,1,0,0]],OD=[3,v,La,0,[tf,Am,lg,Ioe,f,rl,Qre,la],[[0,{[h]:`InstanceId`,[_]:nx}],[0,{[h]:`Name`,[_]:zS}],[()=>VN,{[_]:ug}],0,[2,{[h]:`DryRun`,[_]:m}],[0,{[h]:`Description`,[_]:fy}],[2,{[h]:`NoReboot`,[_]:iC}],[()=>aM,{[h]:`BlockDeviceMapping`,[_]:ev}]],2],kD=[3,v,Ra,0,[bf],[[0,{[h]:`ImageId`,[_]:sx}]]],AD=[3,v,Fa,0,[lg,f],[[()=>VN,{[_]:ug}],[2,{[h]:`DryRun`,[_]:m}]]],jD=[3,v,Ia,0,[Gd],[[()=>uA,{[h]:`InternetGateway`,[_]:Qb}]]],MD=[3,v,Ga,0,[om,cm,lg,Mne,f],[0,0,[()=>VN,{[_]:ug}],0,[2,{[h]:`DryRun`,[_]:m}]],1],ND=[3,v,Ja,0,[Gi,Vi,Mo,f,Bh,Eg,$i,lg,Ro,lh,Yae,Woe,Kh],[0,0,[0,4],2,0,0,[()=>Qj,{[_]:Qi}],[()=>VN,{[_]:ug}],0,0,[()=>Yj,{[_]:Xae}],[()=>GM,{[_]:Goe}],1]],PD=[3,v,Ya,0,[Mo,Pm],[[0,{[h]:`ClientToken`,[_]:Pv}],[()=>jA,{[h]:`NatGateway`,[_]:KS}]]],FD=[3,v,to,0,[$m,lg,Vh,dm,Ym,f,Zu,ng],[1,[()=>VN,{[_]:ug}],0,0,()=>VA,[2,{[h]:`DryRun`,[_]:m}],[0,{[h]:`GroupName`,[_]:vb}],[0,{[h]:`Strategy`,[_]:NT}]]],ID=[3,v,no,0,[oh],[[()=>WA,{[h]:`PlacementGroup`,[_]:PC}]]],LD=[3,v,ao,0,[Th,sc,Tg,og,um,Aa,Ka,Jm,f,as,Uu,ps,Kl,tf,Im,Bg,Fm],[[0,{[h]:`RouteTableId`,[_]:Dw}],0,0,0,0,0,0,0,[2,{[h]:`DryRun`,[_]:m}],[0,{[h]:`DestinationCidrBlock`,[_]:Uv}],[0,{[h]:`GatewayId`,[_]:mb}],[0,{[h]:`DestinationIpv6CidrBlock`,[_]:Xv}],[0,{[h]:`EgressOnlyInternetGatewayId`,[_]:Ry}],[0,{[h]:`InstanceId`,[_]:nx}],[0,{[h]:`NetworkInterfaceId`,[_]:XS}],[0,{[h]:`VpcPeeringConnectionId`,[_]:SE}],[0,{[h]:`NatGatewayId`,[_]:JS}]],1],RD=[3,v,so,0,[yh],[[2,{[h]:`Return`,[_]:cw}]]],zD=[3,v,po,0,[Eg,lg,Mo,f],[[0,{[h]:`VpcId`,[_]:hE}],[()=>VN,{[_]:ug}],[0,4],[2,{[h]:`DryRun`,[_]:m}]],1],BD=[3,v,mo,0,[Eh,Mo],[[()=>pj,{[h]:`RouteTable`,[_]:jw}],[0,{[h]:`ClientToken`,[_]:Pv}]]],VD=[3,v,vo,0,[rl,Zu,Eg,lg,f],[[0,{[_]:zu}],0,0,[()=>VN,{[_]:ug}],[2,{[h]:`DryRun`,[_]:m}]],2],HD=[3,v,yo,0,[qu,ig,Oh],[[0,{[h]:`GroupId`,[_]:gb}],[()=>BN,{[h]:`TagSet`,[_]:qT}],[0,{[h]:`SecurityGroupArn`,[_]:Uw}]]],UD=[3,v,Co,0,[Ag,rl,Gm,lg,ore,f],[0,0,0,[()=>VN,{[_]:ug}],0,[2,{[h]:`DryRun`,[_]:m}]],1],WD=[3,v,wo,0,[Eg,lg,Zi,ea,xa,Pd,Gm,zf,df,qf,uf,Kf,f],[0,[()=>VN,{[_]:ug}],0,0,0,0,0,2,0,1,0,1,[2,{[h]:`DryRun`,[_]:m}]],1],GD=[3,v,To,0,[rg],[[()=>Dj,{[h]:`Subnet`,[_]:PT}]]],KD=[3,v,Bo,0,[Zi,ea,gu,nm,am,Gm,$h,zh,qg,lg,fm,pg,Mo,Dg,Ym,f],[0,0,[2,{[h]:`Encrypted`,[_]:tb}],1,0,0,1,0,0,[()=>VN,{[_]:ug}],2,1,[0,4],1,()=>VA,[2,{[h]:`DryRun`,[_]:m}]]],qD=[3,v,Vo,0,[xa,vp,Pd,df,qf,uf,Kf,Id,wg,lg,f,Yp,Gte],[0,0,0,0,1,0,1,0,()=>Uj,[()=>VN,{[_]:ug}],[2,{[h]:`DryRun`,[_]:m}],[0,{[h]:`InstanceTenancy`,[_]:Ux}],[2,{[h]:`AmazonProvidedIpv6CidrBlock`,[_]:O_}]]],JD=[3,v,Ho,0,[n_],[[()=>zj,{[h]:`Vpc`,[_]:ME}]]],YD=[3,v,Eo,0,[Da],[0],1],XD=[3,v,os,0,[Rc,Uc,Hc],[[1,{[h]:`DefaultTcpEstablishedTimeout`,[_]:ay}],[1,{[h]:`DefaultUdpTimeout`,[_]:uy}],[1,{[h]:`DefaultUdpStreamTimeout`,[_]:ly}]]],ZD=[3,v,hs,0,[Xd,f],[[0,{[h]:`InternetGatewayId`,[_]:ex}],[2,{[h]:`DryRun`,[_]:m}]],1],QD=[3,v,zs,0,[om,sm,f],[0,0,[2,{[h]:`DryRun`,[_]:m}]]],$D=[3,v,Bs,0,[yh,sm],[[2,{[h]:`Return`,[_]:cw}],[0,{[h]:`KeyPairId`,[_]:$x}]]],eO=[3,v,Js,0,[Fm,f],[[0,{[_]:Fm}],2],1],tO=[3,v,Ys,0,[Fm],[[0,{[h]:`NatGatewayId`,[_]:JS}]]],nO=[3,v,rc,0,[Zu,f],[[0,{[h]:`GroupName`,[_]:vb}],[2,{[h]:`DryRun`,[_]:m}]],1],rO=[3,v,lc,0,[Th,sc,f,as,ps],[[0,{[h]:`RouteTableId`,[_]:Dw}],0,[2,{[h]:`DryRun`,[_]:m}],[0,{[h]:`DestinationCidrBlock`,[_]:Uv}],[0,{[h]:`DestinationIpv6CidrBlock`,[_]:Xv}]],1],iO=[3,v,pc,0,[Th,f],[[0,{[h]:`RouteTableId`,[_]:Dw}],[2,{[h]:`DryRun`,[_]:m}]],1],aO=[3,v,Cc,0,[qu,Zu,f],[0,0,[2,{[h]:`DryRun`,[_]:m}]]],oO=[3,v,wc,0,[yh,qu],[[2,{[h]:`Return`,[_]:cw}],[0,{[h]:`GroupId`,[_]:gb}]]],sO=[3,v,Oc,0,[zh,f],[0,[2,{[h]:`DryRun`,[_]:m}]],1],cO=[3,v,kc,0,[Bh,f],[0,[2,{[h]:`DryRun`,[_]:m}]],1],lO=[3,v,Gc,0,[Ag,f],[0,[2,{[h]:`DryRun`,[_]:m}]],1],uO=[3,v,Kc,0,[Eg,f],[0,[2,{[h]:`DryRun`,[_]:m}]],1],dO=[3,v,Jo,0,[Nie,f,ju,Hi],[[()=>vN,{[_]:ch}],[2,{[h]:`DryRun`,[_]:m}],[()=>hM,{[_]:Mu}],[()=>Yj,{[_]:Vi}]]],fO=[3,v,Yo,0,[yne],[[()=>Jj,{[h]:`AddressesSet`,[_]:L_}]]],pO=[3,v,es,0,[p_,u_,wte,f,ju],[[()=>nP,{[_]:d_}],[()=>tP,{[_]:c_}],2,[2,{[h]:`DryRun`,[_]:m}],[()=>hM,{[_]:Mu}]]],mO=[3,v,ts,0,[vne],[[()=>eM,{[h]:`AvailabilityZoneInfo`,[_]:W_}]]],hO=[3,v,Cs,0,[Bte,ju,Cm,p],[[()=>Zj,{[_]:Ui}],[()=>hM,{[_]:Mu}],1,0]],gO=[3,v,ws,0,[lf,p],[[()=>xM,{[h]:`IamInstanceProfileAssociationSet`,[_]:ax}],[0,{[h]:`NextToken`,[_]:cC}]]],_O=[3,v,Os,0,[pu,xf,pie,Rd,Hd,Cm,p,f,ju],[[()=>mM,{[_]:ll}],[()=>SM,{[_]:bf}],[()=>uN,{[_]:Xm}],2,2,1,0,[2,{[h]:`DryRun`,[_]:m}],[()=>hM,{[_]:Mu}]]],vO=[3,v,ks,0,[p,Dne],[[0,{[h]:`NextToken`,[_]:cC}],[()=>CM,{[h]:`ImagesSet`,[_]:Mx}]]],yO=[3,v,As,0,[Sf,Lf,f,ju,p,Cm],[[()=>OM,{[_]:tf}],2,[2,{[h]:`DryRun`,[_]:m}],[()=>hM,{[_]:Mu}],[0,{[h]:`NextToken`,[_]:cC}],[1,{[h]:`MaxResults`,[_]:OS}]]],bO=[3,v,js,0,[p,Gae],[[0,{[h]:`NextToken`,[_]:cC}],[()=>SN,{[h]:`ReservationSet`,[_]:ww}]]],xO=[3,v,Ms,0,[f,Xp,ju,Cm,p,Qp],[2,[64,{[_]:Gp}],[()=>hM,{[_]:Mu}],1,0,2]],SO=[3,v,Ns,0,[Xp,p],[[()=>VM,{[h]:`InstanceTypeSet`,[_]:Bx}],[0,{[h]:`NextToken`,[_]:cC}]]],CO=[3,v,gs,0,[p,Cm,f,Qd,ju],[0,1,[2,{[h]:`DryRun`,[_]:m}],[()=>UM,{[h]:`InternetGatewayId`,[_]:ex}],[()=>hM,{[_]:Mu}]]],wO=[3,v,_s,0,[ef,p],[[()=>WM,{[h]:`InternetGatewaySet`,[_]:tx}],[0,{[h]:`NextToken`,[_]:cC}]]],TO=[3,v,Vs,0,[Fne,Rne,sp,f,ju],[[()=>ZM,{[_]:om}],[()=>QM,{[_]:sm}],2,[2,{[h]:`DryRun`,[_]:m}],[()=>hM,{[_]:Mu}]]],EO=[3,v,Hs,0,[Ine],[[()=>$M,{[h]:`KeySet`,[_]:eS}]]],DO=[3,v,Xs,0,[f,Mu,Cm,Jre,p],[2,[()=>hM,0],1,[()=>aN,{[_]:Fm}],0]],OO=[3,v,Zs,0,[Xre,p],[[()=>oN,{[h]:`NatGatewaySet`,[_]:YS}],[0,{[h]:`NextToken`,[_]:cC}]]],kO=[3,v,ic,0,[Ju,f,$u,ju],[[()=>dN,{[_]:qu}],[2,{[h]:`DryRun`,[_]:m}],[64,{[h]:`GroupName`,[_]:vb}],[()=>hM,{[_]:Mu}]]],AO=[3,v,ac,0,[Tie],[[()=>fN,{[h]:`PlacementGroupSet`,[_]:IC}]]],jO=[3,v,uc,0,[xae,Qte,f,ju],[[()=>xN,{[_]:Ch}],2,[2,{[h]:`DryRun`,[_]:m}],[()=>hM,{[_]:Mu}]]],MO=[3,v,dc,0,[Hae],[[()=>bN,{[h]:`RegionInfo`,[_]:vw}]]],NO=[3,v,mc,0,[p,Cm,f,Iae,ju],[0,1,[2,{[h]:`DryRun`,[_]:m}],[()=>DN,{[_]:Th}],[()=>hM,{[_]:Mu}]]],PO=[3,v,hc,0,[Bae,p],[[()=>ON,{[h]:`RouteTableSet`,[_]:Ow}],[0,{[h]:`NextToken`,[_]:cC}]]],FO=[3,v,Tc,0,[Ju,$u,p,Cm,f,ju],[[()=>yM,{[_]:qu}],[()=>bM,{[_]:Zu}],0,1,[2,{[h]:`DryRun`,[_]:m}],[()=>hM,{[_]:Mu}]]],IO=[3,v,Ec,0,[p,Nh],[[0,{[h]:`NextToken`,[_]:cC}],[()=>AN,{[h]:`SecurityGroupInfo`,[_]:Ww}]]],LO=[3,v,Ac,0,[Cm,p,iie,Qie,joe,f,ju],[1,0,[()=>uN,{[_]:Xm}],[64,{[_]:$ie}],[()=>PN,{[_]:zh}],[2,{[h]:`DryRun`,[_]:m}],[()=>hM,{[_]:Mu}]]],RO=[3,v,jc,0,[p,rse],[[0,{[h]:`NextToken`,[_]:cC}],[()=>FN,{[h]:`SnapshotSet`,[_]:bT}]]],zO=[3,v,Mc,0,[ju,moe,p,Cm,f],[[()=>hM,{[_]:Mu}],[()=>IN,{[_]:Bh}],0,1,[2,{[h]:`DryRun`,[_]:m}]]],BO=[3,v,Nc,0,[p,ase],[[0,{[h]:`NextToken`,[_]:cC}],[()=>RN,{[h]:`SubnetSet`,[_]:xT}]]],VO=[3,v,qc,0,[jg,Lf,f,ju,p,Cm],[[()=>JN,{[_]:Ag}],2,[2,{[h]:`DryRun`,[_]:m}],[()=>hM,{[_]:Mu}],[0,{[h]:`NextToken`,[_]:cC}],[1,{[h]:`MaxResults`,[_]:OS}]]],HO=[3,v,Jc,0,[p,e_],[[0,{[h]:`NextToken`,[_]:cC}],[()=>YN,{[h]:`VolumeSet`,[_]:TE}]]],UO=[3,v,Yc,0,[ju,Mg,p,Cm,f],[[()=>hM,{[_]:Mu}],[()=>ZN,{[_]:Eg}],0,1,[2,{[h]:`DryRun`,[_]:m}]]],WO=[3,v,Xc,0,[p,r_],[[0,{[h]:`NextToken`,[_]:cC}],[()=>$N,{[h]:`VpcSet`,[_]:DE}]]],GO=[3,v,vs,0,[Xd,Eg,f],[[0,{[h]:`InternetGatewayId`,[_]:ex}],[0,{[h]:`VpcId`,[_]:hE}],[2,{[h]:`DryRun`,[_]:m}]],2],KO=[3,v,Zc,0,[Ag,il,vu,tf,f],[0,0,2,0,[2,{[h]:`DryRun`,[_]:m}]],1],qO=[3,v,Xo,0,[Ui,ch,f],[0,0,[2,{[h]:`DryRun`,[_]:m}]]],JO=[3,v,Ts,0,[Ui],[0],1],YO=[3,v,Es,0,[sf],[[()=>Ek,{[h]:`IamInstanceProfileAssociation`,[_]:ix}]]],XO=[3,v,gc,0,[Ui,f],[[0,{[h]:`AssociationId`,[_]:S_}],[2,{[h]:`DryRun`,[_]:m}]],1],ZO=[3,v,Ls,0,[voe,qo,hg],[[1,{[h]:`SizeInGB`,[_]:Xw}],[1,{[h]:`Count`,[_]:Vv}],[0,{[h]:`Type`,[_]:nE}]]],QO=[3,v,sl,0,[tc,nm,zh,Kg,qg,am,pg,Gm,Zi,gu,Dg,ea,ul],[[2,{[h]:`DeleteOnTermination`,[_]:ty}],[1,{[h]:`Iops`,[_]:Kx}],[0,{[h]:`SnapshotId`,[_]:aT}],[1,{[h]:`VolumeSize`,[_]:EE}],[0,{[h]:`VolumeType`,[_]:OE}],[0,{[h]:`KmsKeyId`,[_]:Xx}],[1,{[h]:`Throughput`,[_]:eE}],[0,{[h]:`OutpostArn`,[_]:dC}],[0,{[h]:`AvailabilityZone`,[_]:H_}],[2,{[h]:`Encrypted`,[_]:tb}],1,0,1]],$O=[3,v,fl,0,[ul,sa,_a,da,hm,Tm,_m],[[1,{[h]:`EbsCardIndex`,[_]:gy}],[1,{[h]:`BaselineBandwidthInMbps`,[_]:$_}],[1,{[h]:`BaselineThroughputInMBps`,[_]:ov}],[1,{[h]:`BaselineIops`,[_]:tv}],[1,{[h]:`MaximumBandwidthInMbps`,[_]:mS}],[1,{[h]:`MaximumThroughputInMBps`,[_]:MS}],[1,{[h]:`MaximumIops`,[_]:xS}]]],ek=[3,v,zl,0,[Jl,uu,Ul,Hm,fre,Hte,pre,pl],[[0,{[h]:`EbsOptimizedSupport`,[_]:zy}],[0,{[h]:`EncryptionSupport`,[_]:Xy}],[()=>rk,{[h]:`EbsOptimizedInfo`,[_]:Iy}],[0,{[h]:`NvmeSupport`,[_]:aC}],[1,{[h]:`MaximumEbsAttachments`,[_]:gS}],[0,{[h]:`AttachmentLimitType`,[_]:T_}],[1,{[h]:`MaximumEbsCards`,[_]:_S}],[()=>lM,{[h]:`EbsCardSet`,[_]:_y}]]],tk=[3,v,Il,0,[Xi,tc,tg,Ag,Ki,zg,Ym,ul],[[4,{[h]:`AttachTime`,[_]:V_}],[2,{[h]:`DeleteOnTermination`,[_]:ty}],[0,{[h]:`Status`,[_]:MT}],[0,{[h]:`VolumeId`,[_]:_E}],[0,{[h]:`AssociatedResource`,[_]:M_}],[0,{[h]:`VolumeOwnerId`,[_]:xE}],[()=>HA,{[h]:`Operator`,[_]:xC}],[1,{[h]:`EbsCardIndex`,[_]:gy}]]],nk=[3,v,Ll,0,[Ag,tc],[[0,{[h]:`VolumeId`,[_]:_E}],[2,{[h]:`DeleteOnTermination`,[_]:ty}]]],rk=[3,v,Ul,0,[sa,_a,da,hm,Tm,_m],[[1,{[h]:`BaselineBandwidthInMbps`,[_]:$_}],[1,{[h]:`BaselineThroughputInMBps`,[_]:ov}],[1,{[h]:`BaselineIops`,[_]:tv}],[1,{[h]:`MaximumBandwidthInMbps`,[_]:mS}],[1,{[h]:`MaximumThroughputInMBps`,[_]:MS}],[1,{[h]:`MaximumIops`,[_]:xS}]]],ik=[3,v,Bl,0,[mre],[[1,{[h]:`MaximumEfaInterfaces`,[_]:vS}]]],ak=[3,v,vl,0,[wl,yl,xl,Sl],[[0,{[h]:`ElasticGpuId`,[_]:Ty}],[0,{[h]:`ElasticGpuAssociationId`,[_]:xy}],[0,{[h]:`ElasticGpuAssociationState`,[_]:Sy}],[0,{[h]:`ElasticGpuAssociationTime`,[_]:wy}]]],ok=[3,v,Tl,0,[hg],[0],1],sk=[3,v,Dl,0,[hg,qo],[0,1],1],ck=[3,v,Ol,0,[Nl,kl,jl,Ml],[[0,{[h]:`ElasticInferenceAcceleratorArn`,[_]:Ey}],[0,{[h]:`ElasticInferenceAcceleratorAssociationId`,[_]:Dy}],[0,{[h]:`ElasticInferenceAcceleratorAssociationState`,[_]:Oy}],[4,{[h]:`ElasticInferenceAcceleratorAssociationTime`,[_]:Ay}]]],lk=[3,v,iu,0,[nu,su],[2,()=>uk]],uk=[3,v,cu,0,[ou],[2]],dk=[3,v,Yl,0,[hu],[[2,{[h]:`Enabled`,[_]:eb}]]],fk=[3,v,ql,0,[hu],[2]],pk=[3,v,Mu,0,[Am,Qg],[0,[()=>GN,{[_]:Sg}]]],mk=[3,v,bu,0,[Am,Em,qo,vm],[[0,{[h]:`Name`,[_]:zS}],[0,{[h]:`Manufacturer`,[_]:PS}],[1,{[h]:`Count`,[_]:Vv}],[()=>hk,{[h]:`MemoryInfo`,[_]:SS}]]],hk=[3,v,Su,0,[Ih],[[1,{[h]:`SizeInMiB`,[_]:eT}]]],gk=[3,v,wu,0,[Nu,ose],[[()=>gM,{[h]:`Fpgas`,[_]:db}],[1,{[h]:`TotalFpgaMemoryInMiB`,[_]:LT}]]],_k=[3,v,Lu,0,[tf,rre,f],[0,2,[2,{[h]:`DryRun`,[_]:m}]],1],vk=[3,v,Ru,0,[tf,mg,fie],[[0,{[h]:`InstanceId`,[_]:nx}],[4,{[h]:`Timestamp`,[_]:tE}],[0,{[h]:`Output`,[_]:SC}]]],yk=[3,v,Bu,0,[Am,Em,qo,Kne,td,s_,vm],[[0,{[h]:`Name`,[_]:zS}],[0,{[h]:`Manufacturer`,[_]:PS}],[1,{[h]:`Count`,[_]:Vv}],[1,{[h]:`LogicalGpuCount`,[_]:iS}],[1,{[h]:`GpuPartitionSize`,[_]:bb}],[()=>eP,{[h]:`WorkloadSet`,[_]:FE}],[()=>bk,{[h]:`MemoryInfo`,[_]:SS}]]],bk=[3,v,Hu,0,[Ih],[[1,{[h]:`SizeInMiB`,[_]:eT}]]],xk=[3,v,Ku,0,[rd,sse],[[()=>_M,{[h]:`Gpus`,[_]:Cb}],[1,{[h]:`TotalGpuMemoryInMiB`,[_]:zT}]]],Sk=[3,v,Yu,0,[qu,Zu],[[0,{[h]:`GroupId`,[_]:gb}],[0,{[h]:`GroupName`,[_]:vb}]]],Ck=[3,v,sd,0,[Ko],[[2,{[h]:`Configured`,[_]:Bv}]]],wk=[3,v,cd,0,[Ko],[2]],Tk=[3,v,of,0,[na,_d],[[0,{[h]:`Arn`,[_]:q_}],[0,{[h]:`Id`,[_]:Ib}]]],Ek=[3,v,sf,0,[Ui,tf,of,eg,mg],[[0,{[h]:`AssociationId`,[_]:S_}],[0,{[h]:`InstanceId`,[_]:nx}],[()=>Tk,{[h]:`IamInstanceProfile`,[_]:rx}],[0,{[h]:`State`,[_]:jT}],[4,{[h]:`Timestamp`,[_]:tE}]]],Dk=[3,v,mf,0,[na,Am],[[0,{[h]:`Arn`,[_]:q_}],[0,{[h]:`Name`,[_]:zS}]]],Ok=[3,v,One,0,[ah,yg,la,rl,du,gd,Xf,Am,bh,xh,Wh,qh,ig,Xg,fa,dg,Bc,Vp,boe,cc,Jne,Dd,Fh,Lh,Au,$p,bf,Ef,eg,Km,ka,Yie,eh,ra,Jp,im,Sh,hh],[[0,{[h]:`PlatformDetails`,[_]:NC}],[0,{[h]:`UsageOperation`,[_]:oE}],[()=>iM,{[h]:`BlockDeviceMapping`,[_]:ev}],[0,{[h]:`Description`,[_]:fy}],[2,{[h]:`EnaSupport`,[_]:Zy}],[0,{[h]:`Hypervisor`,[_]:Tb}],[0,{[h]:`ImageOwnerAlias`,[_]:fx}],[0,{[h]:`Name`,[_]:zS}],[0,{[h]:`RootDeviceName`,[_]:lw}],[0,{[h]:`RootDeviceType`,[_]:uw}],[0,{[h]:`SriovNetSupport`,[_]:pT}],[()=>wj,{[h]:`StateReason`,[_]:gT}],[()=>BN,{[h]:`TagSet`,[_]:qT}],[0,{[h]:`VirtualizationType`,[_]:AE}],[0,{[h]:`BootMode`,[_]:nv}],[0,{[h]:`TpmSupport`,[_]:XT}],[0,{[h]:`DeprecationTime`,[_]:sy}],[0,{[h]:`ImdsSupport`,[_]:Px}],[0,{[h]:`SourceInstanceId`,[_]:Zw}],[0,{[h]:`DeregistrationProtection`,[_]:ry}],[0,{[h]:`LastLaunchedTime`,[_]:sS}],[2,{[h]:`ImageAllowed`,[_]:Wb}],[0,{[h]:`SourceImageId`,[_]:$w}],[0,{[h]:`SourceImageRegion`,[_]:tT}],[2,{[h]:`FreeTierEligible`,[_]:lb}],[()=>wM,{[h]:`ImageWatermarkSet`,[_]:Gx}],[0,{[h]:`ImageId`,[_]:sx}],[0,{[h]:`ImageLocation`,[_]:cx}],[0,{[h]:`ImageState`,[_]:Nx}],[0,{[h]:`ImageOwnerId`,[_]:px}],[0,{[h]:`CreationDate`,[_]:hv}],[2,{[h]:`IsPublic`,[_]:Ex}],[()=>gN,{[h]:`ProductCodes`,[_]:EC}],[0,{[h]:`Architecture`,[_]:J_}],[0,{[h]:`ImageType`,[_]:Hx}],[0,{[h]:`KernelId`,[_]:Yx}],[0,{[h]:`RamdiskId`,[_]:_w}],[0,{[h]:`Platform`,[_]:rw}]]],kk=[3,v,tm,0,[a_,Lh,Fh,_oe,i_],[[0,{[h]:`WatermarkKey`,[_]:PE}],[0,{[h]:`SourceImageRegion`,[_]:tT}],[0,{[h]:`SourceImageId`,[_]:$w}],[4,{[h]:`SourceImageCreationTime`,[_]:Yw}],[4,{[h]:`WatermarkCreationTime`,[_]:NE}]]],Ak=[3,v,wf,0,[om,Fie,lg,f],[[0,{[h]:`KeyName`,[_]:Qx}],[21,{[h]:`PublicKeyMaterial`,[_]:GC}],[()=>VN,{[_]:ug}],[2,{[h]:`DryRun`,[_]:m}]],2],jk=[3,v,Tf,0,[rm,om,sm,ig],[[0,{[h]:`KeyFingerprint`,[_]:Jx}],[0,{[h]:`KeyName`,[_]:Qx}],[0,{[h]:`KeyPairId`,[_]:$x}],[()=>BN,{[h]:`TagSet`,[_]:qT}]]],Mk=[3,v,Cd,0,[ta,lse],[[()=>TM,{[h]:`Accelerators`,[_]:G_}],[1,{[h]:`TotalInferenceMemoryInMiB`,[_]:BT}]]],Nk=[3,v,zd,0,[qo,Am,Em,vm],[[1,{[h]:`Count`,[_]:Vv}],[0,{[h]:`Name`,[_]:zS}],[0,{[h]:`Manufacturer`,[_]:PS}],[()=>Pk,{[h]:`MemoryInfo`,[_]:SS}]]],Pk=[3,v,Vd,0,[Ih],[[1,{[h]:`SizeInMiB`,[_]:eT}]]],Fk=[3,v,kne,0,[ra,la,Mo,Hl,du,gd,of,Of,Cl,Pl,Lm,Gm,bh,xh,Nh,Dh,xoe,Wh,qh,ig,Xg,Xa,Ca,ro,lo,sd,are,bm,Yl,fa,ah,yg,Ase,nh,kd,dg,xm,Na,Bm,Ym,Rh,tf,bf,eg,th,ih,Xoe,om,Vte,eh,Gp,nre,gh,im,Sh,hh,km,Bh,Eg,lh,kie],[[0,{[h]:`Architecture`,[_]:J_}],[()=>EM,{[h]:`BlockDeviceMapping`,[_]:ev}],[0,{[h]:`ClientToken`,[_]:Pv}],[2,{[h]:`EbsOptimized`,[_]:Fy}],[2,{[h]:`EnaSupport`,[_]:Zy}],[0,{[h]:`Hypervisor`,[_]:Tb}],[()=>Tk,{[h]:`IamInstanceProfile`,[_]:rx}],[0,{[h]:`InstanceLifecycle`,[_]:lx}],[()=>uM,{[h]:`ElasticGpuAssociationSet`,[_]:Cy}],[()=>fM,{[h]:`ElasticInferenceAcceleratorAssociationSet`,[_]:ky}],[()=>NM,{[h]:`NetworkInterfaceSet`,[_]:QS}],[0,{[h]:`OutpostArn`,[_]:dC}],[0,{[h]:`RootDeviceName`,[_]:lw}],[0,{[h]:`RootDeviceType`,[_]:uw}],[()=>vM,{[h]:`GroupSet`,[_]:Sb}],[2,{[h]:`SourceDestCheck`,[_]:Bw}],[0,{[h]:`SpotInstanceRequestId`,[_]:nT}],[0,{[h]:`SriovNetSupport`,[_]:pT}],[()=>wj,{[h]:`StateReason`,[_]:gT}],[()=>BN,{[h]:`TagSet`,[_]:qT}],[0,{[h]:`VirtualizationType`,[_]:AE}],[()=>ED,{[h]:`CpuOptions`,[_]:Tv}],[0,{[h]:`CapacityBlockId`,[_]:dv}],[0,{[h]:`CapacityReservationId`,[_]:Ov}],[()=>yD,{[h]:`CapacityReservationSpecification`,[_]:jv}],[()=>Ck,{[h]:`HibernationOptions`,[_]:kb}],[()=>eN,{[h]:`LicenseSet`,[_]:cS}],[()=>qk,{[h]:`MetadataOptions`,[_]:TS}],[()=>dk,{[h]:`EnclaveOptions`,[_]:By}],[0,{[h]:`BootMode`,[_]:nv}],[0,{[h]:`PlatformDetails`,[_]:NC}],[0,{[h]:`UsageOperation`,[_]:oE}],[4,{[h]:`UsageOperationUpdateTime`,[_]:sE}],[()=>YA,{[h]:`PrivateDnsNameOptions`,[_]:kC}],[0,{[h]:`Ipv6Address`,[_]:Kb}],[0,{[h]:`TpmSupport`,[_]:XT}],[()=>Uk,{[h]:`MaintenanceOptions`,[_]:ES}],[0,{[h]:`CurrentInstanceBootMode`,[_]:yv}],[()=>Qk,{[h]:`NetworkPerformanceOptions`,[_]:nC}],[()=>HA,{[h]:`Operator`,[_]:xC}],[()=>IM,{[h]:`SecondaryInterfaceSet`,[_]:iT}],[0,{[h]:`InstanceId`,[_]:nx}],[0,{[h]:`ImageId`,[_]:sx}],[()=>oA,{[h]:`InstanceState`,[_]:Ix}],[0,{[h]:`PrivateDnsName`,[_]:jC}],[0,{[h]:`DnsName`,[_]:$v}],[0,{[h]:`Reason`,[_]:Nw}],[0,{[h]:`KeyName`,[_]:Qx}],[1,{[h]:`AmiLaunchIndex`,[_]:w_}],[()=>gN,{[h]:`ProductCodes`,[_]:EC}],[0,{[h]:`InstanceType`,[_]:zx}],[4,{[h]:`LaunchTime`,[_]:lS}],[()=>UA,{[h]:`Placement`,[_]:iw}],[0,{[h]:`KernelId`,[_]:Yx}],[0,{[h]:`RamdiskId`,[_]:_w}],[0,{[h]:`Platform`,[_]:rw}],[()=>AA,{[h]:`Monitoring`,[_]:LS}],[0,{[h]:`SubnetId`,[_]:oT}],[0,{[h]:`VpcId`,[_]:hE}],[0,{[h]:`PrivateIpAddress`,[_]:BC}],[0,{[h]:`IpAddress`,[_]:Gb}]]],Ik=[3,v,xd,0,[nu,su],[[2,{[h]:`EnaSrdEnabled`,[_]:Wy}],[()=>Lk,{[h]:`EnaSrdUdpSpecification`,[_]:Jy}]]],Lk=[3,v,Sd,0,[ou],[[2,{[h]:`EnaSrdUdpEnabled`,[_]:qy}]]],Rk=[3,v,Ad,0,[Gs,mu],[[0,{[h]:`DeviceName`,[_]:Zv}],[()=>tk,{[h]:`Ebs`,[_]:$y}]]],zk=[3,v,Md,0,[Gs,mu,Rg,Nm],[[0,{[h]:`DeviceName`,[_]:Zv}],[()=>nk,{[h]:`Ebs`,[_]:$y}],[0,{[h]:`VirtualName`,[_]:bE}],[0,{[h]:`NoDevice`,[_]:US}]]],Bk=[3,v,hf,0,[bp],[[0,{[h]:`Ipv4Prefix`,[_]:Cx}]]],Vk=[3,v,nf,0,[kd,op],[[0,{[h]:`Ipv6Address`,[_]:Kb}],[2,{[h]:`IsPrimaryIpv6`,[_]:vx}]]],Hk=[3,v,gf,0,[_p],[[0,{[h]:`Ipv6Prefix`,[_]:Tx}]]],Uk=[3,v,jf,0,[qi,yae],[[0,{[h]:`AutoRecovery`,[_]:N_}],[0,{[h]:`RebootMigration`,[_]:xw}]]],Wk=[3,v,Mf,0,[qi],[0]],Gk=[3,v,Nf,0,[Tre,Uoe],[0,()=>xj]],Kk=[3,v,Pf,0,[pd,ud,ad,ld,Rf],[0,1,0,0,0]],qk=[3,v,Ff,0,[eg,pd,ud,ad,ld,Rf],[[0,{[h]:`State`,[_]:jT}],[0,{[h]:`HttpTokens`,[_]:Pb}],[1,{[h]:`HttpPutResponseHopLimit`,[_]:jb}],[0,{[h]:`HttpEndpoint`,[_]:Db}],[0,{[h]:`HttpProtocolIpv6`,[_]:Ab}],[0,{[h]:`InstanceMetadataTags`,[_]:ux}]]],Jk=[3,v,Bf,0,[ia,aa,rl,Pu,vd,mm,Im,Km,th,lh,uh,Dh,tg,Bh,Eg,Zp,yp,pp,No,Ym],[[()=>Yk,{[h]:`Association`,[_]:Y_}],[()=>Xk,{[h]:`Attachment`,[_]:X_}],[0,{[h]:`Description`,[_]:fy}],[()=>vM,{[h]:`GroupSet`,[_]:Sb}],[()=>AM,{[h]:`Ipv6AddressesSet`,[_]:Ub}],[0,{[h]:`MacAddress`,[_]:pS}],[0,{[h]:`NetworkInterfaceId`,[_]:XS}],[0,{[h]:`OwnerId`,[_]:pC}],[0,{[h]:`PrivateDnsName`,[_]:jC}],[0,{[h]:`PrivateIpAddress`,[_]:BC}],[()=>FM,{[h]:`PrivateIpAddressesSet`,[_]:RC}],[2,{[h]:`SourceDestCheck`,[_]:Bw}],[0,{[h]:`Status`,[_]:MT}],[0,{[h]:`SubnetId`,[_]:oT}],[0,{[h]:`VpcId`,[_]:hE}],[0,{[h]:`InterfaceType`,[_]:Wx}],[()=>kM,{[h]:`Ipv4PrefixSet`,[_]:yx}],[()=>jM,{[h]:`Ipv6PrefixSet`,[_]:bx}],[()=>CD,{[h]:`ConnectionTrackingConfiguration`,[_]:Fv}],[()=>HA,{[h]:`Operator`,[_]:xC}]]],Yk=[3,v,Vf,0,[Ma,Za,Zf,ih,ch],[[0,{[h]:`CarrierIp`,[_]:vv}],[0,{[h]:`CustomerOwnedIp`,[_]:Ev}],[0,{[h]:`IpOwnerId`,[_]:hx}],[0,{[h]:`PublicDnsName`,[_]:MC}],[0,{[h]:`PublicIp`,[_]:LC}]]],Xk=[3,v,Hf,0,[Xi,Wi,tc,fs,tg,Mm,ru,Zl],[[4,{[h]:`AttachTime`,[_]:V_}],[0,{[h]:`AttachmentId`,[_]:C_}],[2,{[h]:`DeleteOnTermination`,[_]:ty}],[1,{[h]:`DeviceIndex`,[_]:Yv}],[0,{[h]:`Status`,[_]:MT}],[1,{[h]:`NetworkCardIndex`,[_]:HS}],[()=>Ik,{[h]:`EnaSrdSpecification`,[_]:Gy}],[1,{[h]:`EnaQueueCount`,[_]:Vy}]]],Zk=[3,v,Wf,0,[Wte,tc,rl,fs,Pu,bd,vd,Im,lh,uh,Kh,Bh,Ate,Zp,Mm,yp,tp,pp,ep,jie,ru,Po,Zl],[[2,{[h]:`AssociatePublicIpAddress`,[_]:D_}],[2,{[h]:`DeleteOnTermination`,[_]:ty}],[0,{[h]:`Description`,[_]:fy}],[1,{[h]:`DeviceIndex`,[_]:Yv}],[()=>kN,{[_]:kh}],[1,{[h]:`Ipv6AddressCount`,[_]:Rb}],[()=>AM,{[h]:`Ipv6Addresses`,[_]:Ub}],[0,{[h]:`NetworkInterfaceId`,[_]:XS}],[0,{[h]:`PrivateIpAddress`,[_]:BC}],[()=>hN,{[h]:`PrivateIpAddresses`,[_]:RC}],[1,{[h]:`SecondaryPrivateIpAddressCount`,[_]:mT}],[0,{[h]:`SubnetId`,[_]:oT}],2,0,1,[()=>JM,{[_]:bp}],1,[()=>YM,{[_]:_p}],1,2,()=>lk,()=>SD,1]],Qk=[3,v,Jf,0,[va],[[0,{[h]:`BandwidthWeighting`,[_]:sv}]]],$k=[3,v,Yf,0,[va],[0]],eA=[3,v,ip,0,[ia,_h,th,lh],[[()=>Yk,{[h]:`Association`,[_]:Y_}],[2,{[h]:`Primary`,[_]:aw}],[0,{[h]:`PrivateDnsName`,[_]:jC}],[0,{[h]:`PrivateIpAddress`,[_]:BC}]]],tA=[3,v,Rp,0,[aa,mm,yoe,Km,uh,Dh,tg,Xh,Voe,Zp],[[()=>nA,{[h]:`Attachment`,[_]:X_}],[0,{[h]:`MacAddress`,[_]:pS}],[0,{[h]:`SecondaryInterfaceId`,[_]:Qw}],[0,{[h]:`OwnerId`,[_]:pC}],[()=>LM,{[h]:`PrivateIpAddressSet`,[_]:zC}],[2,{[h]:`SourceDestCheck`,[_]:Bw}],[0,{[h]:`Status`,[_]:MT}],[0,{[h]:`SecondarySubnetId`,[_]:yT}],[0,{[h]:`SecondaryNetworkId`,[_]:dT}],[0,{[h]:`InterfaceType`,[_]:Wx}]]],nA=[3,v,Ap,0,[Xi,Wi,tc,fs,tg,Mm],[[4,{[h]:`AttachTime`,[_]:V_}],[0,{[h]:`AttachmentId`,[_]:C_}],[2,{[h]:`DeleteOnTermination`,[_]:ty}],[1,{[h]:`DeviceIndex`,[_]:Yv}],[0,{[h]:`Status`,[_]:MT}],[1,{[h]:`NetworkCardIndex`,[_]:HS}]]],rA=[3,v,Mp,0,[lh],[[0,{[h]:`PrivateIpAddress`,[_]:BC}]]],iA=[3,v,Fp,0,[lh],[0],1],aA=[3,v,Lp,0,[tc,fs,uh,Eie,Xh,Zp,Mm],[2,1,[()=>RM,{[_]:lh}],1,0,0,1]],oA=[3,v,Hp,0,[Go,Am],[[1,{[h]:`Code`,[_]:zv}],[0,{[h]:`Name`,[_]:zS}]]],sA=[3,v,Op,0,[tf,jo,Bie],[[0,{[h]:`InstanceId`,[_]:nx}],[()=>oA,{[h]:`CurrentState`,[_]:Nv}],[()=>oA,{[h]:`PreviousState`,[_]:ZC}]]],cA=[3,v,zp,0,[yse,al,Hm,uu],[[1,{[h]:`TotalSizeInGB`,[_]:JT}],[()=>cM,{[h]:`Disks`,[_]:my}],[0,{[h]:`NvmeSupport`,[_]:aC}],[0,{[h]:`EncryptionSupport`,[_]:Xy}]]],lA=[3,v,qp,0,[Gp,ja,Au,Qoe,Koe,tse,ma,gd,fh,Cg,vm,Bp,zp,zl,Rm,Ku,wu,sh,Cd,fd,ga,ds,qte,eoe,Bre,$re,Um,pm,zm,zie,vae,Eoe],[[0,{[h]:`InstanceType`,[_]:zx}],[2,{[h]:`CurrentGeneration`,[_]:_v}],[2,{[h]:`FreeTierEligible`,[_]:lb}],[()=>UN,{[h]:`SupportedUsageClasses`,[_]:ET}],[()=>wN,{[h]:`SupportedRootDeviceTypes`,[_]:hT}],[()=>KN,{[h]:`SupportedVirtualizationTypes`,[_]:OT}],[2,{[h]:`BareMetal`,[_]:rv}],[0,{[h]:`Hypervisor`,[_]:Tb}],[()=>ZA,{[h]:`ProcessorInfo`,[_]:HC}],[()=>Fj,{[h]:`VCpuInfo`,[_]:dE}],[()=>TA,{[h]:`MemoryInfo`,[_]:SS}],[2,{[h]:`InstanceStorageSupported`,[_]:jx}],[()=>cA,{[h]:`InstanceStorageInfo`,[_]:Ax}],[()=>ek,{[h]:`EbsInfo`,[_]:My}],[()=>FA,{[h]:`NetworkInfo`,[_]:eC}],[()=>xk,{[h]:`GpuInfo`,[_]:hb}],[()=>gk,{[h]:`FpgaInfo`,[_]:ib}],[()=>GA,{[h]:`PlacementGroupInfo`,[_]:FC}],[()=>Mk,{[h]:`InferenceAcceleratorInfo`,[_]:zb}],[2,{[h]:`HibernationSupported`,[_]:Nb}],[2,{[h]:`BurstablePerformanceSupported`,[_]:av}],[2,{[h]:`DedicatedHostsSupported`,[_]:Jv}],[2,{[h]:`AutoRecoverySupported`,[_]:A_}],[()=>oM,{[h]:`SupportedBootModes`,[_]:Rw}],[0,{[h]:`NitroEnclavesSupport`,[_]:GS}],[0,{[h]:`NitroTpmSupport`,[_]:sC}],[()=>BA,{[h]:`NitroTpmInfo`,[_]:oC}],[()=>SA,{[h]:`MediaAcceleratorInfo`,[_]:fS}],[()=>zA,{[h]:`NeuronInfo`,[_]:tC}],[0,{[h]:`PhcSupport`,[_]:XC}],[0,{[h]:`RebootMigrationSupport`,[_]:bw}],[2,{[h]:`SupportedInRegion`,[_]:rT}]]],uA=[3,v,Gd,0,[oa,Xd,Km,ig],[[()=>HM,{[h]:`AttachmentSet`,[_]:z_}],[0,{[h]:`InternetGatewayId`,[_]:ex}],[0,{[h]:`OwnerId`,[_]:pC}],[()=>BN,{[h]:`TagSet`,[_]:qT}]]],dA=[3,v,Kd,0,[eg,Eg],[[0,{[h]:`State`,[_]:jT}],[0,{[h]:`VpcId`,[_]:hE}]]],fA=[3,v,hp,0,[gp,Du,sg,Dse,wp,Ep,Lie],[[0,{[h]:`IpProtocol`,[_]:xx}],[1,{[h]:`FromPort`,[_]:ob}],[1,{[h]:`ToPort`,[_]:GT}],[()=>WN,{[h]:`Groups`,[_]:wb}],[()=>qM,{[h]:`IpRanges`,[_]:Ox}],[()=>XM,{[h]:`Ipv6Ranges`,[_]:kx}],[()=>mN,{[h]:`PrefixListIds`,[_]:qC}]]],pA=[3,v,Tp,0,[rl,za],[[0,{[h]:`Description`,[_]:fy}],[0,{[h]:`CidrIp`,[_]:bv}]]],mA=[3,v,dp,0,[bp],[0]],hA=[3,v,fp,0,[_p],[0]],gA=[3,v,Dp,0,[rl,Ba],[[0,{[h]:`Description`,[_]:fy}],[0,{[h]:`CidrIpv6`,[_]:xv}]]],_A=[3,v,Vne,0,[sm,ig,om,rm,Nne],[[0,{[h]:`KeyPairId`,[_]:$x}],[()=>BN,{[h]:`TagSet`,[_]:qT}],[0,{[h]:`KeyName`,[_]:Qx}],[0,{[h]:`KeyFingerprint`,[_]:Jx}],[()=>KE,{[h]:`KeyMaterial`,[_]:Zx}]]],vA=[3,v,zne,0,[sm,cm,ig,Pie,zo,om,rm],[[0,{[h]:`KeyPairId`,[_]:$x}],[0,{[h]:`KeyType`,[_]:tS}],[()=>BN,{[h]:`TagSet`,[_]:qT}],[0,{[h]:`PublicKey`,[_]:WC}],[4,{[h]:`CreateTime`,[_]:Rv}],[0,{[h]:`KeyName`,[_]:Qx}],[0,{[h]:`KeyFingerprint`,[_]:Jx}]]],yA=[3,v,tre,0,[$ne,ere,$g],[0,0,0]],bA=[3,v,Wne,0,[lm],[[0,{[h]:`LicenseConfigurationArn`,[_]:rS}]]],xA=[3,v,Une,0,[lm],[0]],SA=[3,v,pm,0,[ta,gse],[[()=>nN,{[h]:`Accelerators`,[_]:G_}],[1,{[h]:`TotalMediaMemoryInMiB`,[_]:UT}]]],CA=[3,v,lre,0,[qo,Am,Em,vm],[[1,{[h]:`Count`,[_]:Vv}],[0,{[h]:`Name`,[_]:zS}],[0,{[h]:`Manufacturer`,[_]:PS}],[()=>wA,{[h]:`MemoryInfo`,[_]:SS}]]],wA=[3,v,dre,0,[Ih],[[1,{[h]:`SizeInMiB`,[_]:eT}]]],TA=[3,v,vm,0,[Ih],[[1,{[h]:`SizeInMiB`,[_]:eT}]]],EA=[3,v,_re,0,[tf,Dh,Yl,Zo,f,Sne,Sg,la,Qo,Gp,Hne,Vae,gg,_f,Pu,Hl,Wh,du],[[0,{[h]:`InstanceId`,[_]:nx}],[()=>iD,0],()=>fk,[()=>iD,0],[2,{[h]:`DryRun`,[_]:m}],[0,{[h]:`Attribute`,[_]:Z_}],[()=>WE,{[h]:`Value`,[_]:uE}],[()=>DM,{[h]:`BlockDeviceMapping`,[_]:ev}],[()=>iD,{[h]:`DisableApiTermination`,[_]:Hv}],[()=>aD,{[h]:`InstanceType`,[_]:zx}],[()=>aD,{[h]:`Kernel`,[_]:nS}],[()=>aD,{[h]:`Ramdisk`,[_]:Mw}],[()=>hD,{[h]:`UserData`,[_]:rE}],[()=>aD,{[h]:`InstanceInitiatedShutdownBehavior`,[_]:ox}],[()=>yM,{[_]:qu}],[()=>iD,{[h]:`EbsOptimized`,[_]:Fy}],[()=>aD,{[h]:`SriovNetSupport`,[_]:pT}],[()=>iD,{[h]:`EnaSupport`,[_]:Zy}]],1],DA=[3,v,Sre,0,[Bh,zi,Sm,gm,Qa,hl,yie,tu,$l,Vl,Ws],[[0,{[h]:`SubnetId`,[_]:oT}],[()=>iD,0],[()=>iD,0],[()=>iD,0],0,[()=>iD,0],0,[()=>iD,0],[()=>iD,0],1,[()=>iD,0]],1],OA=[3,v,Ere,0,[Ag,f,$h,qg,nm,pg,fm],[0,2,1,0,1,1,2],1],kA=[3,v,Dre,0,[Lg],[[()=>Rj,{[h]:`VolumeModification`,[_]:yE}]]],AA=[3,v,km,0,[eg],[[0,{[h]:`State`,[_]:jT}]]],jA=[3,v,Pm,0,[zo,Vc,yu,Eu,Vre,Fm,Qm,eg,Bh,Eg,ig,Ro,Gi,ane,Kte,Ote,Th],[[4,{[h]:`CreateTime`,[_]:Rv}],[4,{[h]:`DeleteTime`,[_]:cy}],[0,{[h]:`FailureCode`,[_]:nb}],[0,{[h]:`FailureMessage`,[_]:ab}],[()=>rN,{[h]:`NatGatewayAddressSet`,[_]:qS}],[0,{[h]:`NatGatewayId`,[_]:JS}],[()=>ej,{[h]:`ProvisionedBandwidth`,[_]:wC}],[0,{[h]:`State`,[_]:jT}],[0,{[h]:`SubnetId`,[_]:oT}],[0,{[h]:`VpcId`,[_]:hE}],[()=>BN,{[h]:`TagSet`,[_]:qT}],[0,{[h]:`ConnectivityType`,[_]:Lv}],[0,{[h]:`AvailabilityMode`,[_]:E_}],[0,{[h]:`AutoScalingIps`,[_]:F_}],[0,{[h]:`AutoProvisionZones`,[_]:k_}],[()=>iN,{[h]:`AttachedApplianceSet`,[_]:h_}],[0,{[h]:`RouteTableId`,[_]:Dw}]]],MA=[3,v,Gre,0,[Vi,Im,Mie,ch,Ui,xp,Eu,tg,Zi,ea],[[0,{[h]:`AllocationId`,[_]:v_}],[0,{[h]:`NetworkInterfaceId`,[_]:XS}],[0,{[h]:`PrivateIp`,[_]:UC}],[0,{[h]:`PublicIp`,[_]:LC}],[0,{[h]:`AssociationId`,[_]:S_}],[2,{[h]:`IsPrimary`,[_]:Dx}],[0,{[h]:`FailureMessage`,[_]:ab}],[0,{[h]:`Status`,[_]:MT}],[0,{[h]:`AvailabilityZone`,[_]:H_}],[0,{[h]:`AvailabilityZoneId`,[_]:U_}]]],NA=[3,v,Hre,0,[hg,Ete,Tg,one,wm,yu,Eu],[[0,{[h]:`Type`,[_]:nE}],[0,{[h]:`ApplianceArn`,[_]:g_}],[0,{[h]:`VpcEndpointId`,[_]:mE}],[0,{[h]:`AttachmentState`,[_]:B_}],[0,{[h]:`ModificationState`,[_]:jS}],[0,{[h]:`FailureCode`,[_]:nb}],[0,{[h]:`FailureMessage`,[_]:ab}]]],PA=[3,v,Pre,0,[Mm,Vm,ym,jte,wne,mie,ls,hre,gre],[[1,{[h]:`NetworkCardIndex`,[_]:HS}],[0,{[h]:`NetworkPerformance`,[_]:rC}],[1,{[h]:`MaximumNetworkInterfaces`,[_]:wS}],[1,{[h]:`AdditionalFlexibleNetworkInterfaces`,[_]:__}],[1,{[h]:`BaselineBandwidthInGbps`,[_]:Q_}],[1,{[h]:`PeakBandwidthInGbps`,[_]:TC}],[1,{[h]:`DefaultEnaQueueCountPerInterface`,[_]:Kv}],[1,{[h]:`MaximumEnaQueueCount`,[_]:yS}],[1,{[h]:`MaximumEnaQueueCountPerInterface`,[_]:bS}]]],FA=[3,v,Rm,0,[Vm,ym,bre,Ks,Mre,wd,Td,Wp,du,lu,Bl,Rl,au,ba,Cu,No,Hoe,wre,Ed],[[0,{[h]:`NetworkPerformance`,[_]:rC}],[1,{[h]:`MaximumNetworkInterfaces`,[_]:wS}],[1,{[h]:`MaximumNetworkCards`,[_]:CS}],[1,{[h]:`DefaultNetworkCardIndex`,[_]:Qv}],[()=>sN,{[h]:`NetworkCards`,[_]:VS}],[1,{[h]:`Ipv4AddressesPerInterface`,[_]:Bb}],[1,{[h]:`Ipv6AddressesPerInterface`,[_]:Vb}],[2,{[h]:`Ipv6Supported`,[_]:Rx}],[0,{[h]:`EnaSupport`,[_]:Zy}],[2,{[h]:`EfaSupported`,[_]:Yy}],[()=>ik,{[h]:`EfaInfo`,[_]:Ny}],[2,{[h]:`EncryptionInTransitSupported`,[_]:jy}],[2,{[h]:`EnaSrdSupported`,[_]:Ky}],[()=>rM,{[h]:`BandwidthWeightings`,[_]:cv}],[0,{[h]:`FlexibleEnaQueuesSupport`,[_]:rb}],[()=>XD,{[h]:`ConnectionTrackingConfiguration`,[_]:Fv}],[2,{[h]:`SecondaryNetworkSupported`,[_]:fT}],[1,{[h]:`MaximumSecondaryNetworkInterfaces`,[_]:AS}],[1,{[h]:`Ipv4AddressesPerSecondaryInterface`,[_]:Hb}]]],IA=[3,v,Fre,0,[qo,$g],[[1,{[h]:`Count`,[_]:Vv}],[1,{[h]:`Version`,[_]:jE}]]],LA=[3,v,Ire,0,[qo,Am,Ha,vm],[[1,{[h]:`Count`,[_]:Vv}],[0,{[h]:`Name`,[_]:zS}],[()=>IA,{[h]:`CoreInfo`,[_]:Cv}],[()=>RA,{[h]:`MemoryInfo`,[_]:SS}]]],RA=[3,v,Rre,0,[Ih],[[1,{[h]:`SizeInMiB`,[_]:eT}]]],zA=[3,v,zm,0,[zre,_se],[[()=>cN,{[h]:`NeuronDevices`,[_]:WS}],[1,{[h]:`TotalNeuronDeviceMemoryInMiB`,[_]:WT}]]],BA=[3,v,Um,0,[nse],[[()=>lN,{[h]:`SupportedVersions`,[_]:kT}]]],VA=[3,v,oie,0,[Zm],[0]],HA=[3,v,sie,0,[Are,Zm,id],[[2,{[h]:`Managed`,[_]:FS}],[0,{[h]:`Principal`,[_]:CC}],[2,{[h]:`HiddenByDefault`,[_]:Eb}]]],UA=[3,v,gh,0,[ea,bne,Zu,Rie,od,Tse,roe,dd,qu,Zi],[[0,{[h]:`AvailabilityZoneId`,[_]:U_}],[0,{[h]:`Affinity`,[_]:K_}],[0,{[h]:`GroupName`,[_]:vb}],[1,{[h]:`PartitionNumber`,[_]:JC}],[0,{[h]:`HostId`,[_]:Ob}],[0,{[h]:`Tenancy`,[_]:FT}],[0,{[h]:`SpreadDomain`,[_]:Vw}],[0,{[h]:`HostResourceGroupArn`,[_]:Mb}],[0,{[h]:`GroupId`,[_]:gb}],[0,{[h]:`AvailabilityZone`,[_]:H_}]]],WA=[3,v,oh,0,[Zu,eg,ng,$m,qu,ig,Fu,Vh,dm,Ym],[[0,{[h]:`GroupName`,[_]:vb}],[0,{[h]:`State`,[_]:jT}],[0,{[h]:`Strategy`,[_]:NT}],[1,{[h]:`PartitionCount`,[_]:DC}],[0,{[h]:`GroupId`,[_]:gb}],[()=>BN,{[h]:`TagSet`,[_]:qT}],[0,{[h]:`GroupArn`,[_]:fb}],[0,{[h]:`SpreadLevel`,[_]:sT}],[0,{[h]:`LinkedGroupId`,[_]:oS}],[()=>HA,{[h]:`Operator`,[_]:xC}]]],GA=[3,v,sh,0,[Yoe],[[()=>pN,{[h]:`SupportedStrategies`,[_]:ST}]]],KA=[3,v,ph,0,[rl,ph],[[0,{[h]:`Description`,[_]:fy}],[0,{[h]:`PrefixListId`,[_]:KC}]]],qA=[3,v,rh,0,[md,eu,Ql],[[0,{[h]:`HostnameType`,[_]:Fb}],[2,{[h]:`EnableResourceNameDnsARecord`,[_]:Uy}],[2,{[h]:`EnableResourceNameDnsAAAARecord`,[_]:Hy}]]],JA=[3,v,bie,0,[md,eu,Ql],[0,2,2]],YA=[3,v,xie,0,[md,eu,Ql],[[0,{[h]:`HostnameType`,[_]:Fb}],[2,{[h]:`EnableResourceNameDnsARecord`,[_]:Uy}],[2,{[h]:`EnableResourceNameDnsAAAARecord`,[_]:Hy}]]],XA=[3,v,Die,0,[_h,lh],[[2,{[h]:`Primary`,[_]:aw}],[0,{[h]:`PrivateIpAddress`,[_]:BC}]]],ZA=[3,v,fh,0,[$ae,noe,ioe,Em],[[()=>Xj,{[h]:`SupportedArchitectures`,[_]:Iw}],[1,{[h]:`SustainedClockSpeedInGhz`,[_]:zw}],[()=>zN,{[h]:`SupportedFeatures`,[_]:Hw}],[0,{[h]:`Manufacturer`,[_]:PS}]]],QA=[3,v,vie,0,[hie,_ie],[[0,{[h]:`ProductCode`,[_]:OC}],[0,{[h]:`Type`,[_]:nE}]]],$A=[3,v,Uie,0,[Uu],[[0,{[h]:`GatewayId`,[_]:mb}]]],ej=[3,v,Qm,0,[Vie,Jie,zae,Wae,tg],[[4,{[h]:`ProvisionTime`,[_]:QC}],[0,{[h]:`Provisioned`,[_]:sw}],[4,{[h]:`RequestTime`,[_]:Aw}],[0,{[h]:`Requested`,[_]:Pw}],[0,{[h]:`Status`,[_]:MT}]]],tj=[3,v,cae,0,[Sf,f],[[()=>OM,{[_]:tf}],[2,{[h]:`DryRun`,[_]:m}]],1],nj=[3,v,Sae,0,[qu,mh,_g,Eg,Bg],[[0,{[h]:`GroupId`,[_]:gb}],[0,{[h]:`PeeringStatus`,[_]:YC}],[0,{[h]:`UserId`,[_]:iE}],[0,{[h]:`VpcId`,[_]:hE}],[0,{[h]:`VpcPeeringConnectionId`,[_]:SE}]]],rj=[3,v,Uae,0,[qm,nd,Ch,_u],[[0,{[h]:`OptInStatus`,[_]:mC}],[()=>yN,{[h]:`GeographySet`,[_]:xb}],[0,{[h]:`RegionName`,[_]:Sw}],[0,{[h]:`RegionEndpoint`,[_]:fw}]]],ij=[3,v,rae,0,[Am],[[0,{[h]:`Name`,[_]:zS}]]],aj=[3,v,Xie,0,[Vi,ch,jm,f],[0,0,0,[2,{[h]:`DryRun`,[_]:m}]]],oj=[3,v,Kae,0,[dae,Km,pae,Pu,Ane],[[0,{[h]:`ReservationId`,[_]:gw}],[0,{[h]:`OwnerId`,[_]:pC}],[0,{[h]:`RequesterId`,[_]:yw}],[()=>vM,{[h]:`GroupSet`,[_]:Sb}],[()=>MM,{[h]:`InstancesSet`,[_]:Fx}]]],sj=[3,v,kae,0,[Mh,qu,Wd,gp,Du,sg,Va,Ba,ph,iae,rl],[[0,{[h]:`SecurityGroupRuleId`,[_]:Kw}],[0,{[h]:`GroupId`,[_]:gb}],[2,{[h]:`IsEgress`,[_]:Zb}],[0,{[h]:`IpProtocol`,[_]:xx}],[1,{[h]:`FromPort`,[_]:ob}],[1,{[h]:`ToPort`,[_]:GT}],[0,{[h]:`CidrIpv4`,[_]:Sv}],[0,{[h]:`CidrIpv6`,[_]:xv}],[0,{[h]:`PrefixListId`,[_]:KC}],[0,{[h]:`ReferencedGroupId`,[_]:mw}],[0,{[h]:`Description`,[_]:fy}]]],cj=[3,v,wae,0,[qu,jh,f,Jh,Yh,gp,Du,sg,za,mp],[[0,{[h]:`GroupId`,[_]:gb}],[()=>jN,{[_]:Mh}],[2,{[h]:`DryRun`,[_]:m}],[0,{[h]:`SourceSecurityGroupName`,[_]:_T}],[0,{[h]:`SourceSecurityGroupOwnerId`,[_]:vT}],[0,{[h]:`IpProtocol`,[_]:xx}],[1,{[h]:`FromPort`,[_]:ob}],[1,{[h]:`ToPort`,[_]:GT}],[0,{[h]:`CidrIp`,[_]:bv}],[()=>KM,{[h]:`IpPermissions`,[_]:Sx}]],1],lj=[3,v,Tae,0,[yh,vg,wh],[[2,{[h]:`Return`,[_]:cw}],[()=>KM,{[h]:`UnknownIpPermissionSet`,[_]:aE}],[()=>CN,{[h]:`RevokedSecurityGroupRuleSet`,[_]:Cw}]]],uj=[3,v,Eae,0,[za,Du,qu,Zu,mp,gp,Jh,Yh,sg,jh,f],[0,1,0,0,[()=>KM,0],0,0,0,1,[()=>jN,{[_]:Mh}],[2,{[h]:`DryRun`,[_]:m}]]],dj=[3,v,Dae,0,[yh,vg,wh],[[2,{[h]:`Return`,[_]:cw}],[()=>KM,{[h]:`UnknownIpPermissionSet`,[_]:aE}],[()=>CN,{[h]:`RevokedSecurityGroupRuleSet`,[_]:Cw}]]],fj=[3,v,qae,0,[as,ps,sc,Kl,Uu,tf,Qf,Fm,og,um,Aa,Im,tie,eg,Bg,Ka,Jm,Od],[[0,{[h]:`DestinationCidrBlock`,[_]:Uv}],[0,{[h]:`DestinationIpv6CidrBlock`,[_]:Xv}],[0,{[h]:`DestinationPrefixListId`,[_]:ny}],[0,{[h]:`EgressOnlyInternetGatewayId`,[_]:Ry}],[0,{[h]:`GatewayId`,[_]:mb}],[0,{[h]:`InstanceId`,[_]:nx}],[0,{[h]:`InstanceOwnerId`,[_]:mx}],[0,{[h]:`NatGatewayId`,[_]:JS}],[0,{[h]:`TransitGatewayId`,[_]:RT}],[0,{[h]:`LocalGatewayId`,[_]:aS}],[0,{[h]:`CarrierGatewayId`,[_]:gv}],[0,{[h]:`NetworkInterfaceId`,[_]:XS}],[0,{[h]:`Origin`,[_]:uC}],[0,{[h]:`State`,[_]:jT}],[0,{[h]:`VpcPeeringConnectionId`,[_]:SE}],[0,{[h]:`CoreNetworkArn`,[_]:wv}],[0,{[h]:`OdbNetworkArn`,[_]:_C}],[0,{[h]:`IpAddress`,[_]:Gb}]]],pj=[3,v,Eh,0,[xne,Gie,Th,Jae,ig,Eg,Km],[[()=>EN,{[h]:`AssociationSet`,[_]:R_}],[()=>_N,{[h]:`PropagatingVgwSet`,[_]:ew}],[0,{[h]:`RouteTableId`,[_]:Dw}],[()=>TN,{[h]:`RouteSet`,[_]:Tw}],[()=>BN,{[h]:`TagSet`,[_]:qT}],[0,{[h]:`VpcId`,[_]:hE}],[0,{[h]:`OwnerId`,[_]:pC}]]],mj=[3,v,jae,0,[kre,Mae,Th,Bh,Uu,dh,Ji],[[2,{[h]:`Main`,[_]:NS}],[0,{[h]:`RouteTableAssociationId`,[_]:Ew}],[0,{[h]:`RouteTableId`,[_]:Dw}],[0,{[h]:`SubnetId`,[_]:oT}],[0,{[h]:`GatewayId`,[_]:mb}],[0,{[h]:`PublicIpv4Pool`,[_]:VC}],[()=>hj,{[h]:`AssociationState`,[_]:P_}]]],hj=[3,v,Pae,0,[eg,Hh],[[0,{[h]:`State`,[_]:jT}],[0,{[h]:`StatusMessage`,[_]:lT}]]],gj=[3,v,sae,0,[hu],[[2,{[h]:`Enabled`,[_]:eb}]],1],_j=[3,v,lae,0,[sre,cre,la,bf,Gp,bd,vd,im,om,km,gh,Sh,soe,Nh,Bh,gg,Tl,Fl,lg,Qne,If,Oo,Xa,lo,sd,Yne,bm,Yl,nh,xm,Zo,Xl,Bm,Ym,Rh,f,Qo,_f,lh,Mo,Bi,Lm,of,Hl],[1,1,[()=>aM,{[_]:ca}],0,0,1,[()=>AM,{[_]:kd}],0,0,[()=>gj,0],[()=>UA,0],0,[()=>kN,{[_]:kh}],[()=>NN,{[_]:Ph}],0,[()=>GE,0],[()=>dM,0],[()=>pM,{[_]:Dl}],[()=>VN,{[_]:ug}],()=>yA,()=>Gk,()=>YD,()=>DD,()=>vD,()=>wk,[()=>tN,{[_]:Zne}],()=>Kk,()=>fk,()=>JA,()=>Wk,2,2,()=>$k,()=>VA,[()=>zM,{[_]:Aoe}],[2,{[h]:`DryRun`,[_]:m}],[2,{[h]:`DisableApiTermination`,[_]:Hv}],[0,{[h]:`InstanceInitiatedShutdownBehavior`,[_]:ox}],[0,{[h]:`PrivateIpAddress`,[_]:BC}],[0,{[h]:`ClientToken`,[Vx]:1,[_]:Pv}],[0,{[h]:`AdditionalInfo`,[_]:x_}],[()=>PM,{[h]:`NetworkInterface`,[_]:$S}],[()=>Dk,{[h]:`IamInstanceProfile`,[_]:rx}],[2,{[h]:`EbsOptimized`,[_]:Fy}]],2],vj=[3,v,Ph,0,[qu,np,ig,Eg,Oh,Km,Zu,rl,mp],[[0,{[h]:`GroupId`,[_]:gb}],[()=>KM,{[h]:`IpPermissionsEgress`,[_]:_x}],[()=>BN,{[h]:`TagSet`,[_]:qT}],[0,{[h]:`VpcId`,[_]:hE}],[0,{[h]:`SecurityGroupArn`,[_]:Uw}],[0,{[h]:`OwnerId`,[_]:pC}],[0,{[h]:`GroupName`,[_]:vb}],[0,{[h]:`GroupDescription`,[_]:pb}],[()=>KM,{[h]:`IpPermissions`,[_]:Sx}]]],yj=[3,v,foe,0,[Mh,qu,ed,Wd,gp,Du,sg,Va,Ba,ph,aae,rl,ig,loe],[[0,{[h]:`SecurityGroupRuleId`,[_]:Kw}],[0,{[h]:`GroupId`,[_]:gb}],[0,{[h]:`GroupOwnerId`,[_]:yb}],[2,{[h]:`IsEgress`,[_]:Zb}],[0,{[h]:`IpProtocol`,[_]:xx}],[1,{[h]:`FromPort`,[_]:ob}],[1,{[h]:`ToPort`,[_]:GT}],[0,{[h]:`CidrIpv4`,[_]:Sv}],[0,{[h]:`CidrIpv6`,[_]:xv}],[0,{[h]:`PrefixListId`,[_]:KC}],[()=>nj,{[h]:`ReferencedGroupInfo`,[_]:hw}],[0,{[h]:`Description`,[_]:fy}],[()=>BN,{[h]:`TagSet`,[_]:qT}],[0,{[h]:`SecurityGroupRuleArn`,[_]:Gw}]]],bj=[3,v,ise,0,[nie,Gm,ig,Zoe,tae,Qh,Zi,Cse,Oa,Lo,ku,zh,Ag,eg,Uh,Zh,vh,Km,rl,Kg,gu,am,cs],[[0,{[h]:`OwnerAlias`,[_]:fC}],[0,{[h]:`OutpostArn`,[_]:dC}],[()=>BN,{[h]:`TagSet`,[_]:qT}],[0,{[h]:`StorageTier`,[_]:TT}],[4,{[h]:`RestoreExpiryTime`,[_]:dw}],[0,{[h]:`SseType`,[_]:wT}],[0,{[h]:`AvailabilityZone`,[_]:H_}],[0,{[h]:`TransferType`,[_]:QT}],[1,{[h]:`CompletionDurationMinutes`,[_]:mv}],[4,{[h]:`CompletionTime`,[_]:Iv}],[1,{[h]:`FullSnapshotSizeInBytes`,[_]:cb}],[0,{[h]:`SnapshotId`,[_]:aT}],[0,{[h]:`VolumeId`,[_]:_E}],[0,{[h]:`Status`,[_]:MT}],[0,{[h]:`StatusMessage`,[_]:lT}],[4,{[h]:`StartTime`,[_]:CT}],[0,{[h]:`Progress`,[_]:ow}],[0,{[h]:`OwnerId`,[_]:pC}],[0,{[h]:`Description`,[_]:fy}],[1,{[h]:`VolumeSize`,[_]:EE}],[2,{[h]:`Encrypted`,[_]:tb}],[0,{[h]:`KmsKeyId`,[_]:Xx}],[0,{[h]:`DataEncryptionKeyId`,[_]:Gv}]]],xj=[3,v,Boe,0,[xre,koe,ua,Zg,af],[0,0,1,4,0]],Sj=[3,v,Soe,0,[Sf,Bi,f],[[()=>OM,{[_]:tf}],[0,{[h]:`AdditionalInfo`,[_]:x_}],[2,{[h]:`DryRun`,[_]:m}]],1],Cj=[3,v,Coe,0,[Moe],[[()=>BM,{[h]:`InstancesSet`,[_]:Fx}]]],wj=[3,v,qh,0,[Go,Dm],[[0,{[h]:`Code`,[_]:zv}],[0,{[h]:`Message`,[_]:IS}]]],Tj=[3,v,woe,0,[Sf,hd,Gh,f,vu],[[()=>OM,{[_]:tf}],2,2,[2,{[h]:`DryRun`,[_]:m}],[2,{[h]:`Force`,[_]:ub}]],1],Ej=[3,v,Toe,0,[Poe],[[()=>BM,{[h]:`InstancesSet`,[_]:Fx}]]],Dj=[3,v,rg,0,[ea,Vl,gm,Qa,Km,zi,Fd,ig,Qae,Gm,hl,zf,rh,ha,hg,Bh,eg,Eg,xa,Mte,Zi,us,Sm],[[0,{[h]:`AvailabilityZoneId`,[_]:U_}],[1,{[h]:`EnableLniAtDeviceIndex`,[_]:Py}],[2,{[h]:`MapCustomerOwnedIpOnLaunch`,[_]:hS}],[0,{[h]:`CustomerOwnedIpv4Pool`,[_]:Dv}],[0,{[h]:`OwnerId`,[_]:pC}],[2,{[h]:`AssignIpv6AddressOnCreation`,[_]:b_}],[()=>LN,{[h]:`Ipv6CidrBlockAssociationSet`,[_]:Jb}],[()=>BN,{[h]:`TagSet`,[_]:qT}],[0,{[h]:`SubnetArn`,[_]:Lw}],[0,{[h]:`OutpostArn`,[_]:dC}],[2,{[h]:`EnableDns64`,[_]:yy}],[2,{[h]:`Ipv6Native`,[_]:dx}],[()=>qA,{[h]:`PrivateDnsNameOptionsOnLaunch`,[_]:AC}],[()=>_D,{[h]:`BlockPublicAccessStates`,[_]:iv}],[0,{[h]:`Type`,[_]:nE}],[0,{[h]:`SubnetId`,[_]:oT}],[0,{[h]:`State`,[_]:jT}],[0,{[h]:`VpcId`,[_]:hE}],[0,{[h]:`CidrBlock`,[_]:lv}],[1,{[h]:`AvailableIpAddressCount`,[_]:y_}],[0,{[h]:`AvailabilityZone`,[_]:H_}],[2,{[h]:`DefaultForAz`,[_]:qv}],[2,{[h]:`MapPublicIpOnLaunch`,[_]:DS}]]],Oj=[3,v,toe,0,[eg,Hh],[[0,{[h]:`State`,[_]:jT}],[0,{[h]:`StatusMessage`,[_]:lT}]]],kj=[3,v,hoe,0,[Ui,Pd,Ld,yd,Up],[[0,{[h]:`AssociationId`,[_]:S_}],[0,{[h]:`Ipv6CidrBlock`,[_]:qb}],[()=>Oj,{[h]:`Ipv6CidrBlockState`,[_]:Yb}],[0,{[h]:`Ipv6AddressAttribute`,[_]:Lb}],[0,{[h]:`IpSource`,[_]:Lx}]]],Aj=[3,v,fg,0,[jne,Sg],[[0,{[h]:`Key`,[_]:qx}],[0,{[h]:`Value`,[_]:uE}]]],jj=[3,v,ug,0,[Rae,ig],[[0,{[h]:`ResourceType`,[_]:kw}],[()=>BN,{[_]:fg}]]],Mj=[3,v,use,0,[Sf,vu,Gh,f],[[()=>OM,{[_]:tf}],2,2,[2,{[h]:`DryRun`,[_]:m}]],1],Nj=[3,v,dse,0,[pse],[[()=>BM,{[h]:`InstancesSet`,[_]:Fx}]]],Pj=[3,v,kse,0,[rl,_g,Zu,qu,Eg,Bg,mh],[[0,{[h]:`Description`,[_]:fy}],[0,{[h]:`UserId`,[_]:iE}],[0,{[h]:`GroupName`,[_]:vb}],[0,{[h]:`GroupId`,[_]:gb}],[0,{[h]:`VpcId`,[_]:hE}],[0,{[h]:`VpcPeeringConnectionId`,[_]:SE}],[0,{[h]:`PeeringStatus`,[_]:YC}]]],Fj=[3,v,Cg,0,[Wc,ss,zc,Ise,Yg],[[1,{[h]:`DefaultVCpus`,[_]:dy}],[1,{[h]:`DefaultCores`,[_]:Wv}],[1,{[h]:`DefaultThreadsPerCore`,[_]:oy}],[()=>sM,{[h]:`ValidCores`,[_]:fE}],[()=>HN,{[h]:`ValidThreadsPerCore`,[_]:kE}]]],Ij=[3,v,t_,0,[ea,Gm,ese,nm,ig,qg,Ou,fm,pg,Qh,Ym,Dg,Ag,$h,zh,Zi,eg,zo,oa,gu,am],[[0,{[h]:`AvailabilityZoneId`,[_]:U_}],[0,{[h]:`OutpostArn`,[_]:dC}],[0,{[h]:`SourceVolumeId`,[_]:DT}],[1,{[h]:`Iops`,[_]:Kx}],[()=>BN,{[h]:`TagSet`,[_]:qT}],[0,{[h]:`VolumeType`,[_]:OE}],[2,{[h]:`FastRestored`,[_]:sb}],[2,{[h]:`MultiAttachEnabled`,[_]:dS}],[1,{[h]:`Throughput`,[_]:eE}],[0,{[h]:`SseType`,[_]:wT}],[()=>HA,{[h]:`Operator`,[_]:xC}],[1,{[h]:`VolumeInitializationRate`,[_]:gE}],[0,{[h]:`VolumeId`,[_]:_E}],[1,{[h]:`Size`,[_]:AT}],[0,{[h]:`SnapshotId`,[_]:aT}],[0,{[h]:`AvailabilityZone`,[_]:H_}],[0,{[h]:`Status`,[_]:MT}],[4,{[h]:`CreateTime`,[_]:Rv}],[()=>qN,{[h]:`AttachmentSet`,[_]:z_}],[2,{[h]:`Encrypted`,[_]:tb}],[0,{[h]:`KmsKeyId`,[_]:Xx}]]],Lj=[3,v,Mse,0,[tc,Ki,$f,ul,Ag,tf,il,eg,Xi],[[2,{[h]:`DeleteOnTermination`,[_]:ty}],[0,{[h]:`AssociatedResource`,[_]:M_}],[0,{[h]:`InstanceOwningService`,[_]:gx}],[1,{[h]:`EbsCardIndex`,[_]:gy}],[0,{[h]:`VolumeId`,[_]:_E}],[0,{[h]:`InstanceId`,[_]:nx}],[0,{[h]:`Device`,[_]:py}],[0,{[h]:`Status`,[_]:MT}],[4,{[h]:`AttachTime`,[_]:V_}]]],Rj=[3,v,Lg,0,[Ag,wm,Hh,xse,fse,wse,Sse,hse,lie,rie,die,uie,aie,vh,Zh,fu],[[0,{[h]:`VolumeId`,[_]:_E}],[0,{[h]:`ModificationState`,[_]:jS}],[0,{[h]:`StatusMessage`,[_]:lT}],[1,{[h]:`TargetSize`,[_]:YT}],[1,{[h]:`TargetIops`,[_]:VT}],[0,{[h]:`TargetVolumeType`,[_]:$T}],[1,{[h]:`TargetThroughput`,[_]:ZT}],[2,{[h]:`TargetMultiAttachEnabled`,[_]:HT}],[1,{[h]:`OriginalSize`,[_]:vC}],[1,{[h]:`OriginalIops`,[_]:hC}],[0,{[h]:`OriginalVolumeType`,[_]:bC}],[1,{[h]:`OriginalThroughput`,[_]:yC}],[2,{[h]:`OriginalMultiAttachEnabled`,[_]:gC}],[1,{[h]:`Progress`,[_]:ow}],[4,{[h]:`StartTime`,[_]:CT}],[4,{[h]:`EndTime`,[_]:Qy}]]],zj=[3,v,n_,0,[Km,Yp,Fd,Sa,Ud,ml,ig,ha,Eg,eg,xa,ec],[[0,{[h]:`OwnerId`,[_]:pC}],[0,{[h]:`InstanceTenancy`,[_]:Ux}],[()=>QN,{[h]:`Ipv6CidrBlockAssociationSet`,[_]:Jb}],[()=>XN,{[h]:`CidrBlockAssociationSet`,[_]:uv}],[2,{[h]:`IsDefault`,[_]:Xb}],[()=>Hj,{[h]:`EncryptionControl`,[_]:vy}],[()=>BN,{[h]:`TagSet`,[_]:qT}],[()=>_D,{[h]:`BlockPublicAccessStates`,[_]:iv}],[0,{[h]:`VpcId`,[_]:hE}],[0,{[h]:`State`,[_]:jT}],[0,{[h]:`CidrBlock`,[_]:lv}],[0,{[h]:`DhcpOptionsId`,[_]:ey}]]],Bj=[3,v,Nse,0,[Ui,xa,wa],[[0,{[h]:`AssociationId`,[_]:S_}],[0,{[h]:`CidrBlock`,[_]:lv}],[()=>Vj,{[h]:`CidrBlockState`,[_]:fv}]]],Vj=[3,v,Fse,0,[eg,Hh],[[0,{[h]:`State`,[_]:jT}],[0,{[h]:`StatusMessage`,[_]:lT}]]],Hj=[3,v,wg,0,[Eg,Bse,Om,eg,Uh,nae,ig],[[0,{[h]:`VpcId`,[_]:hE}],[0,{[h]:`VpcEncryptionControlId`,[_]:pE}],[0,{[h]:`Mode`,[_]:RS}],[0,{[h]:`State`,[_]:jT}],[0,{[h]:`StateMessage`,[_]:uT}],[()=>Gj,{[h]:`ResourceExclusions`,[_]:pw}],[()=>BN,{[h]:`TagSet`,[_]:qT}]]],Uj=[3,v,Lse,0,[Om,Yd,Gl,Kre,Ug,Vg,Gne,Pg,_l],[0,0,0,0,0,0,0,0,0],1],Wj=[3,v,Rse,0,[eg,Uh],[[0,{[h]:`State`,[_]:jT}],[0,{[h]:`StateMessage`,[_]:uT}]]],Gj=[3,v,zse,0,[Gd,Wl,Pm,Hg,Wg,ire,Ng,gl],[[()=>Wj,{[h]:`InternetGateway`,[_]:Qb}],[()=>Wj,{[h]:`EgressOnlyInternetGateway`,[_]:Ly}],[()=>Wj,{[h]:`NatGateway`,[_]:KS}],[()=>Wj,{[h]:`VirtualPrivateGateway`,[_]:CE}],[()=>Wj,{[h]:`VpcPeering`,[_]:wE}],[()=>Wj,{[h]:`Lambda`,[_]:uS}],[()=>Wj,{[h]:`VpcLattice`,[_]:vE}],[()=>Wj,{[h]:`ElasticFileSystem`,[_]:by}]]],Kj=[3,v,Vse,0,[Ui,Pd,Ld,jm,vp,yd,Up],[[0,{[h]:`AssociationId`,[_]:S_}],[0,{[h]:`Ipv6CidrBlock`,[_]:qb}],[()=>Vj,{[h]:`Ipv6CidrBlockState`,[_]:Yb}],[0,{[h]:`NetworkBorderGroup`,[_]:BS}],[0,{[h]:`Ipv6Pool`,[_]:wx}],[0,{[h]:`Ipv6AddressAttribute`,[_]:Lb}],[0,{[h]:`IpSource`,[_]:Lx}]]],qj=`unit`,Jj=[1,v,Ute,0,[()=>qE,{[_]:g}]],Yj=[1,v,Rte,0,[0,{[_]:Vi}]],Xj=[1,v,sne,0,[0,{[_]:g}]],Zj=[1,v,zte,0,[0,{[_]:Ui}]],Qj=[1,v,$i,0,[()=>dD,{[_]:Qi}]],$j=[1,v,fne,0,[()=>fD,{[_]:g}]],eM=[1,v,pne,0,[()=>uD,{[_]:g}]],tM=[1,v,hne,0,[()=>pD,{[_]:g}]],nM=[1,v,_ne,0,[()=>mD,{[_]:g}]],rM=[1,v,ya,0,[0,{[_]:g}]],iM=[1,v,Tne,0,[()=>gD,{[_]:g}]],aM=[1,v,Ene,0,[()=>gD,{[_]:ca}]],oM=[1,v,pa,0,[0,{[_]:g}]],sM=[1,v,Ta,0,[1,{[_]:g}]],cM=[1,v,Ds,0,[()=>ZO,{[_]:g}]],lM=[1,v,dl,0,[()=>$O,{[_]:g}]],uM=[1,v,bl,0,[()=>ak,{[_]:g}]],dM=[1,v,El,0,[()=>ok,{[_]:g}]],fM=[1,v,Al,0,[()=>ck,{[_]:g}]],pM=[1,v,Fl,0,[()=>sk,{[_]:g}]],mM=[1,v,cl,0,[0,{[_]:ll}]],hM=[1,v,Tu,0,[()=>pk,{[_]:Mu}]],gM=[1,v,xu,0,[()=>mk,{[_]:g}]],_M=[1,v,Vu,0,[()=>yk,{[_]:g}]],vM=[1,v,Wu,0,[()=>Sk,{[_]:g}]],yM=[1,v,Gu,0,[0,{[_]:gb}]],bM=[1,v,Qu,0,[0,{[_]:Zu}]],xM=[1,v,cf,0,[()=>Ek,{[_]:g}]],SM=[1,v,vf,0,[0,{[_]:bf}]],CM=[1,v,Df,0,[()=>Ok,{[_]:g}]],wM=[1,v,em,0,[()=>kk,{[_]:g}]],TM=[1,v,Bd,0,[()=>Nk,0]],EM=[1,v,jd,0,[()=>Rk,{[_]:g}]],DM=[1,v,Nd,0,[()=>zk,{[_]:g}]],OM=[1,v,yf,0,[0,{[_]:tf}]],kM=[1,v,ff,0,[()=>Bk,{[_]:g}]],AM=[1,v,rf,0,[()=>Vk,{[_]:g}]],jM=[1,v,pf,0,[()=>Hk,{[_]:g}]],MM=[1,v,kf,0,[()=>Fk,{[_]:g}]],NM=[1,v,Uf,0,[()=>Jk,{[_]:g}]],PM=[1,v,Gf,0,[()=>Zk,{[_]:g}]],FM=[1,v,ap,0,[()=>eA,{[_]:g}]],IM=[1,v,jp,0,[()=>tA,{[_]:g}]],LM=[1,v,Np,0,[()=>rA,{[_]:g}]],RM=[1,v,Pp,0,[()=>iA,{[_]:g}]],zM=[1,v,Ip,0,[()=>aA,{[_]:g}]],BM=[1,v,kp,0,[()=>sA,{[_]:g}]],VM=[1,v,Kp,0,[()=>lA,{[_]:g}]],HM=[1,v,qd,0,[()=>dA,{[_]:g}]],UM=[1,v,Zd,0,[0,{[_]:g}]],WM=[1,v,$d,0,[()=>uA,{[_]:g}]],GM=[1,v,Af,0,[0,{[_]:g}]],KM=[1,v,cp,0,[()=>fA,{[_]:g}]],qM=[1,v,Sp,0,[()=>pA,{[_]:g}]],JM=[1,v,lp,0,[()=>mA,{[_]:g}]],YM=[1,v,up,0,[()=>hA,{[_]:g}]],XM=[1,v,Cp,0,[()=>gA,{[_]:g}]],ZM=[1,v,Pne,0,[0,{[_]:om}]],QM=[1,v,Lne,0,[0,{[_]:sm}]],$M=[1,v,Bne,0,[()=>vA,{[_]:g}]],eN=[1,v,qne,0,[()=>bA,{[_]:g}]],tN=[1,v,Xne,0,[()=>xA,{[_]:g}]],nN=[1,v,ure,0,[()=>CA,{[_]:g}]],rN=[1,v,Wre,0,[()=>MA,{[_]:g}]],iN=[1,v,Ure,0,[()=>NA,{[_]:g}]],aN=[1,v,qre,0,[0,{[_]:g}]],oN=[1,v,Yre,0,[()=>jA,{[_]:g}]],sN=[1,v,Nre,0,[()=>PA,{[_]:g}]],cN=[1,v,Lre,0,[()=>LA,{[_]:g}]],lN=[1,v,eie,0,[0,{[_]:g}]],uN=[1,v,cie,0,[0,{[_]:Xm}]],dN=[1,v,Sie,0,[0,{[_]:qu}]],fN=[1,v,Cie,0,[()=>WA,{[_]:g}]],pN=[1,v,wie,0,[0,{[_]:g}]],mN=[1,v,Iie,0,[()=>KA,{[_]:g}]],hN=[1,v,Oie,0,[()=>XA,{[_]:g}]],gN=[1,v,gie,0,[()=>QA,{[_]:g}]],_N=[1,v,Wie,0,[()=>$A,{[_]:g}]],vN=[1,v,Aie,0,[0,{[_]:ch}]],yN=[1,v,oae,0,[()=>ij,{[_]:g}]],bN=[1,v,hae,0,[()=>rj,{[_]:g}]],xN=[1,v,bae,0,[0,{[_]:Ch}]],SN=[1,v,gae,0,[()=>oj,{[_]:g}]],CN=[1,v,Aae,0,[()=>sj,{[_]:g}]],wN=[1,v,eae,0,[0,{[_]:g}]],TN=[1,v,_ae,0,[()=>fj,{[_]:g}]],EN=[1,v,Nae,0,[()=>mj,{[_]:g}]],DN=[1,v,Fae,0,[0,{[_]:g}]],ON=[1,v,Lae,0,[()=>pj,{[_]:g}]],kN=[1,v,ooe,0,[0,{[_]:kh}]],AN=[1,v,coe,0,[()=>vj,{[_]:g}]],jN=[1,v,uoe,0,[0,{[_]:g}]],MN=[1,v,doe,0,[()=>yj,{[_]:g}]],NN=[1,v,poe,0,[0,{[_]:Ph}]],PN=[1,v,Doe,0,[0,{[_]:zh}]],FN=[1,v,Loe,0,[()=>bj,{[_]:g}]],IN=[1,v,Ooe,0,[0,{[_]:Bh}]],LN=[1,v,goe,0,[()=>kj,{[_]:g}]],RN=[1,v,Roe,0,[()=>Dj,{[_]:g}]],zN=[1,v,Zae,0,[0,{[_]:g}]],BN=[1,v,mse,0,[()=>Aj,{[_]:g}]],VN=[1,v,bse,0,[()=>jj,{[_]:g}]],HN=[1,v,vse,0,[1,{[_]:g}]],UN=[1,v,Ese,0,[0,{[_]:g}]],WN=[1,v,Ose,0,[()=>Pj,{[_]:g}]],GN=[1,v,Gg,0,[0,{[_]:g}]],KN=[1,v,Jg,0,[0,{[_]:g}]],qN=[1,v,jse,0,[()=>Lj,{[_]:g}]],JN=[1,v,Og,0,[0,{[_]:Ag}]],YN=[1,v,Fg,0,[()=>Ij,{[_]:g}]],XN=[1,v,Pse,0,[()=>Bj,{[_]:g}]],ZN=[1,v,kg,0,[0,{[_]:Eg}]],QN=[1,v,Hse,0,[()=>Kj,{[_]:g}]],$N=[1,v,Ig,0,[()=>zj,{[_]:g}]],eP=[1,v,o_,0,[0,{[_]:g}]],tP=[1,v,l_,0,[0,{[_]:c_}]],nP=[1,v,f_,0,[0,{[_]:d_}]],rP=[9,v,Tte,0,()=>JE,()=>YE],iP=[9,v,Dte,0,()=>XE,()=>ZE],aP=[9,v,Fte,0,()=>QE,()=>$E],oP=[9,v,Xte,0,()=>eD,()=>tD],sP=[9,v,Nte,0,()=>nD,()=>qj],cP=[9,v,une,0,()=>rD,()=>Lj],lP=[9,v,$te,0,()=>oD,()=>sD],uP=[9,v,ine,0,()=>cD,()=>lD],dP=[9,v,Do,0,()=>wD,()=>TD],fP=[9,v,Ua,0,()=>OD,()=>kD],pP=[9,v,Pa,0,()=>AD,()=>jD],mP=[9,v,Wa,0,()=>MD,()=>_A],hP=[9,v,qa,0,()=>ND,()=>PD],gP=[9,v,eo,0,()=>FD,()=>ID],_P=[9,v,go,0,()=>LD,()=>RD],vP=[9,v,ho,0,()=>zD,()=>BD],yP=[9,v,_o,0,()=>VD,()=>HD],bP=[9,v,ko,0,()=>UD,()=>bj],xP=[9,v,Ao,0,()=>WD,()=>GD],SP=[9,v,Uo,0,()=>KD,()=>Ij],CP=[9,v,Wo,0,()=>qD,()=>JD],wP=[9,v,ms,0,()=>ZD,()=>qj],TP=[9,v,Rs,0,()=>QD,()=>$D],EP=[9,v,qs,0,()=>eO,()=>tO],DP=[9,v,nc,0,()=>nO,()=>qj],OP=[9,v,bc,0,()=>rO,()=>qj],kP=[9,v,fc,0,()=>iO,()=>qj],AP=[9,v,Sc,0,()=>aO,()=>oO],jP=[9,v,Pc,0,()=>sO,()=>qj],MP=[9,v,Fc,0,()=>cO,()=>qj],NP=[9,v,Qc,0,()=>lO,()=>qj],PP=[9,v,$c,0,()=>uO,()=>qj],FP=[9,v,rs,0,()=>dO,()=>fO],IP=[9,v,ns,0,()=>pO,()=>mO],LP=[9,v,Ss,0,()=>hO,()=>gO],RP=[9,v,Fs,0,()=>_O,()=>vO],zP=[9,v,Is,0,()=>yO,()=>bO],BP=[9,v,Ps,0,()=>xO,()=>SO],VP=[9,v,ys,0,()=>CO,()=>wO],HP=[9,v,Us,0,()=>TO,()=>EO],UP=[9,v,Qs,0,()=>DO,()=>OO],WP=[9,v,oc,0,()=>kO,()=>AO],GP=[9,v,xc,0,()=>jO,()=>MO],KP=[9,v,_c,0,()=>NO,()=>PO],qP=[9,v,Dc,0,()=>FO,()=>IO],JP=[9,v,Ic,0,()=>LO,()=>RO],YP=[9,v,Lc,0,()=>zO,()=>BO],XP=[9,v,el,0,()=>VO,()=>HO],ZP=[9,v,tl,0,()=>UO,()=>WO],QP=[9,v,bs,0,()=>GO,()=>qj],$P=[9,v,nl,0,()=>KO,()=>Lj],eF=[9,v,is,0,()=>qO,()=>qj],tF=[9,v,xs,0,()=>JO,()=>YO],nF=[9,v,vc,0,()=>XO,()=>qj],rF=[9,v,Iu,0,()=>_k,()=>vk],iF=[9,v,Cf,0,()=>Ak,()=>jk],aF=[9,v,yre,0,()=>EA,()=>qj],oF=[9,v,Cre,0,()=>DA,()=>qj],sF=[9,v,Ore,0,()=>OA,()=>kA],cF=[9,v,fae,0,()=>tj,()=>qj],lF=[9,v,Zie,0,()=>aj,()=>qj],uF=[9,v,Cae,0,()=>cj,()=>lj],dF=[9,v,Oae,0,()=>uj,()=>dj],fF=[9,v,mae,0,()=>_j,()=>oj],pF=[9,v,Noe,0,()=>Sj,()=>Cj],mF=[9,v,Foe,0,()=>Tj,()=>Ej],hF=[9,v,cse,0,()=>Mj,()=>Nj],gF=e=>({apiVersion:`2016-11-15`,base64Decoder:e?.base64Decoder??yt,base64Encoder:e?.base64Encoder??Ct,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??vte,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??lte,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new ie}],logger:e?.logger??new ze,protocol:e?.protocol??Tee,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.ec2`,errorTypeRegistries:HE,xmlNamespace:`http://ec2.amazonaws.com/doc/2016-11-15`,version:`2016-11-15`,serviceTarget:`AmazonEC2`},serviceId:e?.serviceId??`EC2`,urlParser:e?.urlParser??Ze,utf8Decoder:e?.utf8Decoder??vt,utf8Encoder:e?.utf8Encoder??xt}),_F=e=>{let t=xe(e),n=()=>t().then(Ve),r=gF(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Dt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??he({serviceId:r.serviceId,clientVersion:pte.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??$e(`Region is missing`),requestHandler:ke.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Ie),sha256:e?.sha256??oe,streamCollector:e?.streamCollector??dt,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},vF=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},yF=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),bF=(e,t)=>{let n=Object.assign(Xe(e),ct(e),re(e),vF(e));return t.forEach(e=>e.configure(n)),Object.assign(e,ye(n),mt(n),We(n),yF(n))},xF=class extends we{config;constructor(...[e]){let t=_F(e||{});super(t),this.initConfig=t;let n=bF(ute(Ue(_e(Te(Le(Oe(dte(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(ue(this.config)),this.middlewareStack.use(ve(this.config)),this.middlewareStack.use(ge(this.config)),this.middlewareStack.use(De(this.config)),this.middlewareStack.use(pe(this.config)),this.middlewareStack.use(Fe(this.config)),this.middlewareStack.use(Ne(this.config)),this.middlewareStack.use(me(this.config,{httpAuthSchemeParametersProvider:ste,identityProviderConfigProvider:async e=>new ht({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(ae(this.config))}destroy(){super.destroy()}},SF=e=>typeof e==`string`&&e.indexOf(`arn:`)===0&&e.split(`:`).length>=6,CF=async(e,t,n)=>({operation:fe(t).operation,region:await be(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function wF(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`ecr`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var TF=e=>{let t=[];switch(e.operation){default:t.push(wF(e))}return t},EF=e=>{let t=le(e);return Object.assign(t,{authSchemePreference:be(e.authSchemePreference??[])})},DF=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`ecr`}),OF={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},kF={name:`@aws-sdk/client-ecr`,description:`AWS SDK for JavaScript Ecr Client for Node.js, Browser and React Native`,version:`3.1068.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo ecr`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts --mode development`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.20`,"@aws-sdk/credential-provider-node":`^3.972.55`,"@aws-sdk/types":`^3.973.12`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ecr`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-ecr`}},AF=`ref`,jF=-1,MF=!0,NF=`isSet`,PF=`PartitionResult`,FF=`stringEquals`,IF=`booleanEquals`,LF=`getAttr`,RF={[AF]:`Endpoint`},zF={fn:LF,argv:[{[AF]:PF},`name`]},BF={[AF]:PF},VF={},HF=[{[AF]:`Region`}],UF={conditions:[[NF,[RF]],[NF,HF],[`aws.partition`,HF,PF],[FF,[zF,`aws-eusc`]],[FF,[zF,`aws-iso-f`]],[FF,[zF,`aws-iso-e`]],[FF,[zF,`aws-iso-b`]],[FF,[zF,`aws-iso`]],[FF,[zF,`aws-cn`]],[FF,[zF,`aws-us-gov`]],[FF,[zF,`aws`]],[IF,[{[AF]:`UseFIPS`},MF]],[IF,[{fn:LF,argv:[BF,`supportsFIPS`]},MF]],[IF,[{[AF]:`UseDualStack`},MF]],[IF,[{fn:LF,argv:[BF,`supportsDualStack`]},MF]]],results:[[jF],[jF,`Invalid Configuration: FIPS and custom endpoint are not supported`],[jF,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[RF,VF],[`https://api.ecr.{Region}.{PartitionResult#dnsSuffix}`,VF],[`https://ecr.{Region}.{PartitionResult#dualStackDnsSuffix}`,VF],[`https://api.ecr-fips.{Region}.{PartitionResult#dnsSuffix}`,VF],[`https://ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,VF],[`https://api.ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,VF],[jF,`FIPS and DualStack are enabled, but this partition does not support one or both`],[jF,`FIPS is enabled but this partition does not support FIPS`],[`https://api.ecr.{Region}.{PartitionResult#dualStackDnsSuffix}`,VF],[jF,`DualStack is enabled but this partition does not support DualStack`],[jF,`Invalid Configuration: Missing Region`]]},WF=2,GF=new Int32Array([-1,1,-1,0,23,3,1,4,100000013,2,5,100000013,3,20,6,4,20,7,5,20,8,6,20,9,7,20,10,8,20,11,9,20,12,10,20,13,11,16,14,13,15,100000004,14,100000011,100000012,12,18,17,13,100000009,100000010,13,19,100000006,14,100000008,100000009,11,22,21,13,100000005,100000004,13,100000007,100000006,11,100000001,24,13,100000002,100000003]),KF=Je.from(GF,WF,UF.conditions,UF.results),qF=new et({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),JF=(e,t={})=>qF.get(e,()=>Ge(KF,{endpointParams:e,logger:t.logger}));rt.aws=de;var y=class e extends ft{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},YF=class e extends y{name=`InvalidParameterException`;$fault=`client`;constructor(t){super({name:`InvalidParameterException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},XF=class e extends y{name=`RepositoryNotFoundException`;$fault=`client`;constructor(t){super({name:`RepositoryNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ZF=class e extends y{name=`ServerException`;$fault=`server`;constructor(t){super({name:`ServerException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},QF=class e extends y{name=`LimitExceededException`;$fault=`client`;constructor(t){super({name:`LimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},$F=class e extends y{name=`UnableToGetUpstreamImageException`;$fault=`client`;constructor(t){super({name:`UnableToGetUpstreamImageException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},eI=class e extends y{name=`ValidationException`;$fault=`client`;constructor(t){super({name:`ValidationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},tI=class e extends y{name=`EmptyUploadException`;$fault=`client`;constructor(t){super({name:`EmptyUploadException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},nI=class e extends y{name=`InvalidLayerException`;$fault=`client`;constructor(t){super({name:`InvalidLayerException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},rI=class e extends y{name=`KmsException`;$fault=`client`;kmsError;constructor(t){super({name:`KmsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.kmsError=t.kmsError}},iI=class e extends y{name=`LayerAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`LayerAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},aI=class e extends y{name=`LayerPartTooSmallException`;$fault=`client`;constructor(t){super({name:`LayerPartTooSmallException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},oI=class e extends y{name=`UploadNotFoundException`;$fault=`client`;constructor(t){super({name:`UploadNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},sI=class e extends y{name=`PullThroughCacheRuleAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`PullThroughCacheRuleAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},cI=class e extends y{name=`SecretNotFoundException`;$fault=`client`;constructor(t){super({name:`SecretNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},lI=class e extends y{name=`UnableToAccessSecretException`;$fault=`client`;constructor(t){super({name:`UnableToAccessSecretException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},uI=class e extends y{name=`UnableToDecryptSecretValueException`;$fault=`client`;constructor(t){super({name:`UnableToDecryptSecretValueException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},dI=class e extends y{name=`UnsupportedUpstreamRegistryException`;$fault=`client`;constructor(t){super({name:`UnsupportedUpstreamRegistryException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},fI=class e extends y{name=`InvalidTagParameterException`;$fault=`client`;constructor(t){super({name:`InvalidTagParameterException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},pI=class e extends y{name=`RepositoryAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`RepositoryAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},mI=class e extends y{name=`TooManyTagsException`;$fault=`client`;constructor(t){super({name:`TooManyTagsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},hI=class e extends y{name=`TemplateAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`TemplateAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},gI=class e extends y{name=`LifecyclePolicyNotFoundException`;$fault=`client`;constructor(t){super({name:`LifecyclePolicyNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},_I=class e extends y{name=`PullThroughCacheRuleNotFoundException`;$fault=`client`;constructor(t){super({name:`PullThroughCacheRuleNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},vI=class e extends y{name=`RegistryPolicyNotFoundException`;$fault=`client`;constructor(t){super({name:`RegistryPolicyNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},yI=class e extends y{name=`RepositoryNotEmptyException`;$fault=`client`;constructor(t){super({name:`RepositoryNotEmptyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},bI=class e extends y{name=`TemplateNotFoundException`;$fault=`client`;constructor(t){super({name:`TemplateNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},xI=class e extends y{name=`RepositoryPolicyNotFoundException`;$fault=`client`;constructor(t){super({name:`RepositoryPolicyNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},SI=class e extends y{name=`SigningConfigurationNotFoundException`;$fault=`client`;constructor(t){super({name:`SigningConfigurationNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},CI=class e extends y{name=`ExclusionNotFoundException`;$fault=`client`;constructor(t){super({name:`ExclusionNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},wI=class e extends y{name=`ImageNotFoundException`;$fault=`client`;constructor(t){super({name:`ImageNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},TI=class e extends y{name=`ScanNotFoundException`;$fault=`client`;constructor(t){super({name:`ScanNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},EI=class e extends y{name=`LayerInaccessibleException`;$fault=`client`;constructor(t){super({name:`LayerInaccessibleException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},DI=class e extends y{name=`LayersNotFoundException`;$fault=`client`;constructor(t){super({name:`LayersNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},OI=class e extends y{name=`UnableToGetUpstreamLayerException`;$fault=`client`;constructor(t){super({name:`UnableToGetUpstreamLayerException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},kI=class e extends y{name=`LifecyclePolicyPreviewNotFoundException`;$fault=`client`;constructor(t){super({name:`LifecyclePolicyPreviewNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},AI=class e extends y{name=`UnableToListUpstreamImageReferrersException`;$fault=`client`;constructor(t){super({name:`UnableToListUpstreamImageReferrersException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},jI=class e extends y{name=`ImageAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`ImageAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},MI=class e extends y{name=`ImageDigestDoesNotMatchException`;$fault=`client`;constructor(t){super({name:`ImageDigestDoesNotMatchException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},NI=class e extends y{name=`ImageTagAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`ImageTagAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},PI=class e extends y{name=`ReferencedImagesNotFoundException`;$fault=`client`;constructor(t){super({name:`ReferencedImagesNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},FI=class e extends y{name=`BlockedByOrganizationPolicyException`;$fault=`client`;constructor(t){super({name:`BlockedByOrganizationPolicyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},II=class e extends y{name=`ExclusionAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`ExclusionAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},LI=class e extends y{name=`ImageArchivedException`;$fault=`client`;constructor(t){super({name:`ImageArchivedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},RI=class e extends y{name=`UnsupportedImageTypeException`;$fault=`client`;constructor(t){super({name:`UnsupportedImageTypeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},zI=class e extends y{name=`LifecyclePolicyPreviewInProgressException`;$fault=`client`;constructor(t){super({name:`LifecyclePolicyPreviewInProgressException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},BI=class e extends y{name=`ImageStorageClassUpdateNotSupportedException`;$fault=`client`;constructor(t){super({name:`ImageStorageClassUpdateNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},VI=class e extends y{name=`InvalidLayerPartException`;$fault=`client`;registryId;repositoryName;uploadId;lastValidByteReceived;constructor(t){super({name:`InvalidLayerPartException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.registryId=t.registryId,this.repositoryName=t.repositoryName,this.uploadId=t.uploadId,this.lastValidByteReceived=t.lastValidByteReceived}},HI=`BlockedByOrganizationPolicyException`,UI=`BatchDeleteImage`,WI=`BatchDeleteImageRequest`,GI=`BatchDeleteImageResponse`,KI=`CreateRepository`,qI=`CreateRepositoryRequest`,JI=`CreateRepositoryResponse`,YI=`DescribeImages`,XI=`DescribeImagesFilter`,ZI=`DescribeImagesRequest`,QI=`DescribeImagesResponse`,$I=`DeleteRepository`,eL=`DeleteRepositoryPolicyRequest`,tL=`DeleteRepositoryPolicyResponse`,nL=`DeleteRepositoryPolicy`,rL=`DeleteRepositoryRequest`,iL=`DeleteRepositoryResponse`,aL=`DescribeRepositoriesRequest`,oL=`DescribeRepositoriesResponse`,sL=`DescribeRepositories`,cL=`ExclusionAlreadyExistsException`,lL=`EncryptionConfiguration`,uL=`ExclusionNotFoundException`,dL=`EmptyUploadException`,fL=`GetRepositoryPolicyRequest`,pL=`GetRepositoryPolicyResponse`,mL=`GetRepositoryPolicy`,hL=`ImageArchivedException`,gL=`ImageAlreadyExistsException`,_L=`ImageDetail`,vL=`ImageDigestDoesNotMatchException`,yL=`ImageDetailList`,bL=`ImageFailure`,xL=`ImageFailureList`,SL=`ImageIdentifier`,CL=`ImageIdentifierList`,wL=`InvalidLayerException`,TL=`InvalidLayerPartException`,EL=`ImageNotFoundException`,DL=`InvalidParameterException`,OL=`ImageScanningConfiguration`,kL=`ImageStorageClassUpdateNotSupportedException`,AL=`ImageScanFindingsSummary`,jL=`ImageScanStatus`,ML=`ImageTagAlreadyExistsException`,NL=`ImageTagMutabilityExclusionFilter`,PL=`ImageTagMutabilityExclusionFilters`,FL=`InvalidTagParameterException`,IL=`Key`,LL=`KmsException`,RL=`LayerAlreadyExistsException`,zL=`LimitExceededException`,BL=`LayerInaccessibleException`,VL=`LayersNotFoundException`,HL=`LifecyclePolicyNotFoundException`,UL=`LifecyclePolicyPreviewInProgressException`,WL=`LifecyclePolicyPreviewNotFoundException`,GL=`LayerPartTooSmallException`,KL=`PutImageTagMutability`,qL=`PutImageTagMutabilityRequest`,JL=`PutImageTagMutabilityResponse`,YL=`PullThroughCacheRuleAlreadyExistsException`,XL=`PullThroughCacheRuleNotFoundException`,ZL=`RepositoryAlreadyExistsException`,QL=`ReferencedImagesNotFoundException`,$L=`RepositoryList`,eR=`RepositoryNotEmptyException`,tR=`RepositoryNotFoundException`,nR=`RegistryPolicyNotFoundException`,rR=`RepositoryPolicyNotFoundException`,iR=`Repository`,aR=`SigningConfigurationNotFoundException`,oR=`ServerException`,sR=`ScanNotFoundException`,cR=`SecretNotFoundException`,lR=`SetRepositoryPolicy`,uR=`SetRepositoryPolicyRequest`,dR=`SetRepositoryPolicyResponse`,fR=`Tag`,pR=`TemplateAlreadyExistsException`,mR=`TagList`,hR=`TooManyTagsException`,gR=`TemplateNotFoundException`,_R=`UnsupportedImageTypeException`,vR=`UploadNotFoundException`,yR=`UnableToAccessSecretException`,bR=`UnableToDecryptSecretValueException`,xR=`UnableToGetUpstreamImageException`,SR=`UnableToGetUpstreamLayerException`,CR=`UnableToListUpstreamImageReferrersException`,wR=`UnsupportedUpstreamRegistryException`,TR=`Value`,ER=`ValidationException`,DR=`artifactMediaType`,b=`client`,OR=`createdAt`,kR=`description`,x=`error`,AR=`encryptionConfiguration`,jR=`encryptionType`,MR=`failures`,NR=`failureCode`,PR=`failureReason`,FR=`findingSeverityCounts`,IR=`filterType`,LR=`filter`,RR=`force`,zR=`httpError`,BR=`imageDetails`,VR=`imageDigest`,HR=`imageIds`,UR=`imageId`,WR=`imageManifestMediaType`,GR=`imagePushedAt`,KR=`imageStatus`,qR=`imageScanningConfiguration`,JR=`imageScanCompletedAt`,YR=`imageScanFindingsSummary`,XR=`imageSizeInBytes`,ZR=`imageScanStatus`,QR=`imageTags`,$R=`imageTagMutability`,ez=`imageTagMutabilityExclusionFilters`,tz=`imageTag`,nz=`kmsError`,rz=`kmsKey`,iz=`lastArchivedAt`,az=`lastActivatedAt`,oz=`lastRecordedPullTime`,sz=`lastValidByteReceived`,S=`message`,cz=`maxResults`,lz=`nextToken`,uz=`policyText`,dz=`repositoryArn`,fz=`registryId`,pz=`repositoryName`,mz=`repositoryNames`,hz=`repositoryUri`,gz=`repository`,_z=`repositories`,vz=`smithy.ts.sdk.synthetic.com.amazonaws.ecr`,yz=`subjectManifestDigest`,bz=`scanOnPush`,xz=`server`,Sz=`status`,Cz=`tags`,wz=`tagStatus`,Tz=`uploadId`,Ez=`vulnerabilitySourceUpdatedAt`,C=`com.amazonaws.ecr`,Dz=se.for(vz),Oz=[-3,vz,`ECRServiceException`,0,[],[]];Dz.registerError(Oz,y);var w=se.for(C),kz=[-3,C,HI,{[x]:b},[S],[0]];w.registerError(kz,FI);var Az=[-3,C,dL,{[x]:b},[S],[0]];w.registerError(Az,tI);var jz=[-3,C,cL,{[x]:b},[S],[0]];w.registerError(jz,II);var Mz=[-3,C,uL,{[x]:b},[S],[0]];w.registerError(Mz,CI);var Nz=[-3,C,gL,{[x]:b},[S],[0]];w.registerError(Nz,jI);var Pz=[-3,C,hL,{[x]:b},[S],[0]];w.registerError(Pz,LI);var Fz=[-3,C,vL,{[x]:b},[S],[0]];w.registerError(Fz,MI);var Iz=[-3,C,EL,{[x]:b},[S],[0]];w.registerError(Iz,wI);var Lz=[-3,C,kL,{[x]:b},[S],[0]];w.registerError(Lz,BI);var Rz=[-3,C,ML,{[x]:b},[S],[0]];w.registerError(Rz,NI);var zz=[-3,C,wL,{[x]:b},[S],[0]];w.registerError(zz,nI);var Bz=[-3,C,TL,{[x]:b},[fz,pz,Tz,sz,S],[0,0,0,1,0]];w.registerError(Bz,VI);var Vz=[-3,C,DL,{[x]:b},[S],[0]];w.registerError(Vz,YF);var Hz=[-3,C,FL,{[x]:b},[S],[0]];w.registerError(Hz,fI);var Uz=[-3,C,LL,{[x]:b},[S,nz],[0,0]];w.registerError(Uz,rI);var Wz=[-3,C,RL,{[x]:b},[S],[0]];w.registerError(Wz,iI);var Gz=[-3,C,BL,{[x]:b},[S],[0]];w.registerError(Gz,EI);var Kz=[-3,C,GL,{[x]:b},[S],[0]];w.registerError(Kz,aI);var qz=[-3,C,VL,{[x]:b},[S],[0]];w.registerError(qz,DI);var Jz=[-3,C,HL,{[x]:b},[S],[0]];w.registerError(Jz,gI);var Yz=[-3,C,UL,{[x]:b},[S],[0]];w.registerError(Yz,zI);var Xz=[-3,C,WL,{[x]:b},[S],[0]];w.registerError(Xz,kI);var Zz=[-3,C,zL,{[x]:b},[S],[0]];w.registerError(Zz,QF);var Qz=[-3,C,YL,{[x]:b},[S],[0]];w.registerError(Qz,sI);var $z=[-3,C,XL,{[x]:b},[S],[0]];w.registerError($z,_I);var eB=[-3,C,QL,{[x]:b},[S],[0]];w.registerError(eB,PI);var tB=[-3,C,nR,{[x]:b},[S],[0]];w.registerError(tB,vI);var nB=[-3,C,ZL,{[x]:b},[S],[0]];w.registerError(nB,pI);var rB=[-3,C,eR,{[x]:b},[S],[0]];w.registerError(rB,yI);var iB=[-3,C,tR,{[x]:b},[S],[0]];w.registerError(iB,XF);var aB=[-3,C,rR,{[x]:b},[S],[0]];w.registerError(aB,xI);var oB=[-3,C,sR,{[x]:b},[S],[0]];w.registerError(oB,TI);var sB=[-3,C,cR,{[x]:b},[S],[0]];w.registerError(sB,cI);var cB=[-3,C,oR,{[x]:xz},[S],[0]];w.registerError(cB,ZF);var lB=[-3,C,aR,{[x]:b},[S],[0]];w.registerError(lB,SI);var uB=[-3,C,pR,{[x]:b},[S],[0]];w.registerError(uB,hI);var dB=[-3,C,gR,{[x]:b},[S],[0]];w.registerError(dB,bI);var fB=[-3,C,hR,{[x]:b},[S],[0]];w.registerError(fB,mI);var pB=[-3,C,yR,{[x]:b},[S],[0]];w.registerError(pB,lI);var mB=[-3,C,bR,{[x]:b},[S],[0]];w.registerError(mB,uI);var hB=[-3,C,xR,{[x]:b},[S],[0]];w.registerError(hB,$F);var gB=[-3,C,SR,{[x]:b},[S],[0]];w.registerError(gB,OI);var _B=[-3,C,CR,{[x]:b},[S],[0]];w.registerError(_B,AI);var vB=[-3,C,_R,{[x]:b},[S],[0]];w.registerError(vB,RI);var yB=[-3,C,wR,{[x]:b},[S],[0]];w.registerError(yB,dI);var bB=[-3,C,vR,{[x]:b},[S],[0]];w.registerError(bB,oI);var xB=[-3,C,ER,{[x]:b,[zR]:400},[S],[0]];w.registerError(xB,eI);var SB=[Dz,w],CB=[3,C,WI,0,[pz,HR,fz],[0,()=>eV,0],2],wB=[3,C,GI,0,[HR,MR],[()=>eV,()=>$B]],TB=[3,C,qI,0,[pz,fz,Cz,$R,ez,qR,AR],[0,0,()=>rV,0,()=>tV,()=>UB,()=>IB],1],EB=[3,C,JI,0,[gz],[()=>JB]],DB=[3,C,eL,0,[pz,fz],[0,0],1],OB=[3,C,tL,0,[fz,pz,uz],[0,0,0]],kB=[3,C,rL,0,[pz,fz,RR],[0,0,2],1],AB=[3,C,iL,0,[gz],[()=>JB]],jB=[3,C,XI,0,[wz,KR],[0,0]],MB=[3,C,ZI,0,[pz,fz,HR,lz,cz,LR],[0,0,()=>eV,0,1,()=>jB],1],NB=[3,C,QI,0,[BR,lz],[()=>QB,0]],PB=[3,C,aL,0,[fz,mz,lz,cz],[0,64,0,1]],FB=[3,C,oL,0,[_z,lz],[()=>nV,0]],IB=[3,C,lL,0,[jR,rz],[0,0],1],LB=[3,C,fL,0,[pz,fz],[0,0],1],RB=[3,C,pL,0,[fz,pz,uz],[0,0,0]],zB=[3,C,_L,0,[fz,pz,VR,QR,XR,GR,ZR,YR,WR,DR,oz,yz,KR,iz,az],[0,0,0,64,1,4,()=>WB,()=>HB,0,0,4,0,0,4,4]],BB=[3,C,bL,0,[UR,NR,PR],[()=>VB,0,0]],VB=[3,C,SL,0,[VR,tz],[0,0]],HB=[3,C,AL,0,[JR,Ez,FR],[4,4,129]],UB=[3,C,OL,0,[bz],[2]],WB=[3,C,jL,0,[Sz,kR],[0,0]],GB=[3,C,NL,0,[IR,LR],[0,0],2],KB=[3,C,qL,0,[pz,$R,fz,ez],[0,0,0,()=>tV],2],qB=[3,C,JL,0,[fz,pz,$R,ez],[0,0,0,()=>tV]],JB=[3,C,iR,0,[dz,fz,pz,hz,OR,$R,ez,qR,AR],[0,0,0,0,4,0,()=>tV,()=>UB,()=>IB]],YB=[3,C,uR,0,[pz,uz,fz,RR],[0,0,0,2],2],XB=[3,C,dR,0,[fz,pz,uz],[0,0,0]],ZB=[3,C,fR,0,[IL,TR],[0,0],2],QB=[1,C,yL,0,()=>zB],$B=[1,C,xL,0,()=>BB],eV=[1,C,CL,0,()=>VB],tV=[1,C,PL,0,()=>GB],nV=[1,C,$L,0,()=>JB],rV=[1,C,mR,0,()=>ZB],iV=[9,C,UI,0,()=>CB,()=>wB],aV=[9,C,KI,0,()=>TB,()=>EB],oV=[9,C,$I,0,()=>kB,()=>AB],sV=[9,C,nL,0,()=>DB,()=>OB],cV=[9,C,YI,0,()=>MB,()=>NB],lV=[9,C,sL,0,()=>PB,()=>FB],uV=[9,C,mL,0,()=>LB,()=>RB],dV=[9,C,KL,0,()=>KB,()=>qB],fV=[9,C,lR,0,()=>YB,()=>XB],pV=e=>({apiVersion:`2015-09-21`,base64Decoder:e?.base64Decoder??yt,base64Encoder:e?.base64Encoder??Ct,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??JF,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??TF,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new ie}],logger:e?.logger??new ze,protocol:e?.protocol??rn,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.ecr`,errorTypeRegistries:SB,xmlNamespace:`http://ecr.amazonaws.com/doc/2015-09-21/`,version:`2015-09-21`,serviceTarget:`AmazonEC2ContainerRegistry_V20150921`},serviceId:e?.serviceId??`ECR`,urlParser:e?.urlParser??Ze,utf8Decoder:e?.utf8Decoder??vt,utf8Encoder:e?.utf8Encoder??xt}),mV=e=>{let t=xe(e),n=()=>t().then(Ve),r=pV(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Dt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??he({serviceId:r.serviceId,clientVersion:kF.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??$e(`Region is missing`),requestHandler:ke.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Ie),sha256:e?.sha256??oe,streamCollector:e?.streamCollector??dt,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},hV=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},gV=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),_V=(e,t)=>{let n=Object.assign(Xe(e),ct(e),re(e),hV(e));return t.forEach(e=>e.configure(n)),Object.assign(e,ye(n),mt(n),We(n),gV(n))},vV=class extends we{config;constructor(...[e]){let t=mV(e||{});super(t),this.initConfig=t;let n=_V(EF(Ue(_e(Te(Le(Oe(DF(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(ue(this.config)),this.middlewareStack.use(ve(this.config)),this.middlewareStack.use(ge(this.config)),this.middlewareStack.use(De(this.config)),this.middlewareStack.use(pe(this.config)),this.middlewareStack.use(Fe(this.config)),this.middlewareStack.use(Ne(this.config)),this.middlewareStack.use(me(this.config,{httpAuthSchemeParametersProvider:CF,identityProviderConfigProvider:async e=>new ht({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(ae(this.config))}destroy(){super.destroy()}},yV=async(e,t,n)=>({operation:fe(t).operation,region:await be(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function bV(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`eks`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var xV=e=>{let t=[];switch(e.operation){default:t.push(bV(e))}return t},SV=e=>{let t=le(e);return Object.assign(t,{authSchemePreference:be(e.authSchemePreference??[])})},CV=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`eks`}),wV={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},TV={name:`@aws-sdk/client-eks`,description:`AWS SDK for JavaScript Eks Client for Node.js, Browser and React Native`,version:`3.1067.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo eks`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.20`,"@aws-sdk/credential-provider-node":`^3.972.55`,"@aws-sdk/types":`^3.973.12`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-eks`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-eks`}},EV=`ref`,DV=-1,OV=!0,kV=`isSet`,AV=`PartitionResult`,jV=`booleanEquals`,MV=`getAttr`,NV=`stringEquals`,PV={[EV]:`Endpoint`},FV={[EV]:AV},IV={fn:MV,argv:[FV,`name`]},LV={},RV=[{[EV]:`Region`}],zV={conditions:[[kV,[PV]],[kV,RV],[`aws.partition`,RV,AV],[jV,[{[EV]:`UseFIPS`},OV]],[jV,[{[EV]:`UseDualStack`},OV]],[jV,[{fn:MV,argv:[FV,`supportsDualStack`]},OV]],[jV,[{fn:MV,argv:[FV,`supportsFIPS`]},OV]],[NV,[IV,`aws`]],[NV,[IV,`aws-us-gov`]]],results:[[DV],[DV,`Invalid Configuration: FIPS and custom endpoint are not supported`],[DV,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[PV,LV],[`https://eks-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,LV],[DV,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://fips.eks.{Region}.amazonaws.com`,LV],[`https://eks.{Region}.amazonaws.com`,LV],[`https://eks-fips.{Region}.{PartitionResult#dnsSuffix}`,LV],[DV,`FIPS is enabled but this partition does not support FIPS`],[`https://eks.{Region}.{PartitionResult#dualStackDnsSuffix}`,LV],[DV,`DualStack is enabled but this partition does not support DualStack`],[`https://eks.{Region}.{PartitionResult#dnsSuffix}`,LV],[DV,`Invalid Configuration: Missing Region`]]},BV=2,VV=new Int32Array([-1,1,-1,0,14,3,1,4,100000013,2,5,100000013,3,8,6,4,7,100000012,5,100000010,100000011,4,12,9,6,10,100000009,7,100000006,11,8,100000007,100000008,5,13,100000005,6,100000004,100000005,3,100000001,15,4,100000002,100000003]),HV=Je.from(VV,BV,zV.conditions,zV.results),UV=new et({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),WV=(e,t={})=>UV.get(e,()=>Ge(HV,{endpointParams:e,logger:t.logger}));rt.aws=de;var GV=class e extends ft{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},KV=class e extends GV{name=`AccessDeniedException`;$fault=`client`;constructor(t){super({name:`AccessDeniedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},qV=class e extends GV{name=`InvalidParameterException`;$fault=`client`;clusterName;nodegroupName;fargateProfileName;addonName;subscriptionId;constructor(t){super({name:`InvalidParameterException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.fargateProfileName=t.fargateProfileName,this.addonName=t.addonName,this.subscriptionId=t.subscriptionId}},JV=class e extends GV{name=`InvalidRequestException`;$fault=`client`;clusterName;nodegroupName;addonName;subscriptionId;constructor(t){super({name:`InvalidRequestException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.addonName=t.addonName,this.subscriptionId=t.subscriptionId}},YV=class e extends GV{name=`ResourceNotFoundException`;$fault=`client`;clusterName;nodegroupName;fargateProfileName;addonName;subscriptionId;constructor(t){super({name:`ResourceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.fargateProfileName=t.fargateProfileName,this.addonName=t.addonName,this.subscriptionId=t.subscriptionId}},XV=class e extends GV{name=`ServerException`;$fault=`server`;clusterName;nodegroupName;addonName;subscriptionId;constructor(t){super({name:`ServerException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.addonName=t.addonName,this.subscriptionId=t.subscriptionId}},ZV=class e extends GV{name=`ClientException`;$fault=`client`;clusterName;nodegroupName;addonName;subscriptionId;constructor(t){super({name:`ClientException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.addonName=t.addonName,this.subscriptionId=t.subscriptionId}},QV=class e extends GV{name=`ResourceInUseException`;$fault=`client`;clusterName;nodegroupName;addonName;constructor(t){super({name:`ResourceInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.addonName=t.addonName}},$V=class e extends GV{name=`ThrottlingException`;$fault=`client`;clusterName;constructor(t){super({name:`ThrottlingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName}},eH=class e extends GV{name=`ResourceLimitExceededException`;$fault=`client`;clusterName;nodegroupName;subscriptionId;constructor(t){super({name:`ResourceLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.subscriptionId=t.subscriptionId}},tH=class e extends GV{name=`ServiceUnavailableException`;$fault=`server`;constructor(t){super({name:`ServiceUnavailableException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},nH=class e extends GV{name=`UnsupportedAvailabilityZoneException`;$fault=`client`;clusterName;nodegroupName;validZones;constructor(t){super({name:`UnsupportedAvailabilityZoneException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName,this.nodegroupName=t.nodegroupName,this.validZones=t.validZones}},rH=class e extends GV{name=`BadRequestException`;$fault=`client`;constructor(t){super({name:`BadRequestException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},iH=class e extends GV{name=`NotFoundException`;$fault=`client`;constructor(t){super({name:`NotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},aH=class e extends GV{name=`ResourcePropagationDelayException`;$fault=`client`;constructor(t){super({name:`ResourcePropagationDelayException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},oH=class e extends GV{name=`InvalidStateException`;$fault=`client`;clusterName;constructor(t){super({name:`InvalidStateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.clusterName=t.clusterName}},sH=`Addon`,cH=`AssociatedAccessPolicy`,lH=`AssociatedAccessPoliciesList`,uH=`AssociateAccessPolicyRequest`,dH=`AssociateAccessPolicyResponse`,fH=`AssociateAccessPolicy`,pH=`AccessConfigResponse`,mH=`AccessDeniedException`,hH=`AccessEntry`,gH=`AddonHealth`,_H=`AddonInfo`,vH=`AddonIssueList`,yH=`AddonIssue`,bH=`AddonNamespaceConfigRequest`,xH=`AddonNamespaceConfigResponse`,SH=`AccessPolicy`,CH=`AddonPodIdentityAssociations`,wH=`AddonPodIdentityAssociationsList`,TH=`AccessPoliciesList`,EH=`AccessScope`,DH=`AutoScalingGroup`,OH=`AutoScalingGroupList`,kH=`AddonVersionInfo`,AH=`AddonVersionInfoList`,jH=`Addons`,MH=`BadRequestException`,NH=`BlockStorage`,PH=`CreateAddon`,FH=`CreateAccessConfigRequest`,IH=`CreateAccessEntry`,LH=`CreateAccessEntryRequest`,RH=`CreateAccessEntryResponse`,zH=`CreateAddonRequest`,BH=`CreateAddonResponse`,VH=`ComputeConfigRequest`,HH=`ComputeConfigResponse`,UH=`ConnectorConfigResponse`,WH=`CreateClusterRequest`,GH=`CreateClusterResponse`,KH=`CreateCluster`,qH=`ClientException`,JH=`ClusterHealth`,YH=`ClusterIssueList`,XH=`ClusterIssue`,ZH=`CreateNodegroup`,QH=`CreateNodegroupRequest`,$H=`CreateNodegroupResponse`,eU=`ControlPlanePlacementRequest`,tU=`ControlPlanePlacementResponse`,nU=`ControlPlaneScalingConfig`,rU=`Certificate`,iU=`Cluster`,aU=`Compatibility`,oU=`Compatibilities`,sU=`DeleteAddon`,cU=`DeleteAccessEntry`,lU=`DeleteAccessEntryRequest`,uU=`DeleteAccessEntryResponse`,dU=`DescribeAccessEntryRequest`,fU=`DescribeAccessEntryResponse`,pU=`DescribeAccessEntry`,mU=`DisassociateAccessPolicy`,hU=`DisassociateAccessPolicyRequest`,gU=`DisassociateAccessPolicyResponse`,_U=`DeleteAddonRequest`,vU=`DeleteAddonResponse`,yU=`DescribeAddonRequest`,bU=`DescribeAddonResponse`,xU=`DescribeAddonVersions`,SU=`DescribeAddonVersionsRequest`,CU=`DescribeAddonVersionsResponse`,wU=`DescribeAddon`,TU=`DeleteClusterRequest`,EU=`DeleteClusterResponse`,DU=`DescribeClusterRequest`,OU=`DescribeClusterResponse`,kU=`DeleteCluster`,AU=`DescribeCluster`,jU=`DeleteNodegroup`,MU=`DeleteNodegroupRequest`,NU=`DeleteNodegroupResponse`,PU=`DescribeNodegroupRequest`,FU=`DescribeNodegroupResponse`,IU=`DescribeNodegroup`,LU=`EncryptionConfig`,RU=`EncryptionConfigList`,zU=`ErrorDetail`,BU=`ErrorDetails`,VU=`ElasticLoadBalancing`,HU=`EtcdPlacementRequest`,UU=`EtcdPlacementResponse`,WU=`Identity`,GU=`IssueList`,KU=`InvalidParameterException`,qU=`InvalidRequestException`,JU=`InvalidStateException`,YU=`Issue`,XU=`KubernetesNetworkConfigRequest`,ZU=`KubernetesNetworkConfigResponse`,QU=`ListAddons`,$U=`ListAssociatedAccessPolicies`,eW=`ListAssociatedAccessPoliciesRequest`,tW=`ListAssociatedAccessPoliciesResponse`,nW=`ListAccessEntries`,rW=`ListAccessEntriesRequest`,iW=`ListAccessEntriesResponse`,aW=`ListAccessPolicies`,oW=`ListAccessPoliciesRequest`,sW=`ListAccessPoliciesResponse`,cW=`ListAddonsRequest`,lW=`ListAddonsResponse`,uW=`ListClustersRequest`,dW=`ListClustersResponse`,fW=`ListClusters`,pW=`ListNodegroups`,mW=`ListNodegroupsRequest`,hW=`ListNodegroupsResponse`,gW=`LogSetup`,_W=`LogSetups`,vW=`LaunchTemplateSpecification`,yW=`Logging`,bW=`MarketplaceInformation`,xW=`Nodegroup`,SW=`NotFoundException`,CW=`NodegroupHealth`,wW=`NodegroupResources`,TW=`NodeRepairConfig`,EW=`NodeRepairConfigOverrides`,DW=`NodeRepairConfigOverridesList`,OW=`NodegroupScalingConfig`,kW=`NodegroupUpdateConfig`,AW=`OutpostConfigRequest`,jW=`OutpostConfigResponse`,MW=`OIDC`,NW=`Provider`,PW=`RemoteAccessConfig`,FW=`ResourceInUseException`,IW=`ResourceLimitExceededException`,LW=`RemoteNetworkConfigRequest`,RW=`RemoteNetworkConfigResponse`,zW=`ResourceNotFoundException`,BW=`RemoteNodeNetwork`,VW=`RemoteNodeNetworkList`,HW=`ResourcePropagationDelayException`,UW=`RemotePodNetwork`,WW=`RemotePodNetworkList`,GW=`StorageConfigRequest`,KW=`StorageConfigResponse`,qW=`ServerException`,JW=`ServiceUnavailableException`,YW=`Taint`,XW=`ThrottlingException`,ZW=`Update`,QW=`UpdateAddon`,$W=`UpdateAddonRequest`,eG=`UpdateAddonResponse`,tG=`UnsupportedAvailabilityZoneException`,nG=`UpdateLabelsPayload`,rG=`UpdateNodegroupConfig`,iG=`UpdateNodegroupConfigRequest`,aG=`UpdateNodegroupConfigResponse`,oG=`UpdateNodegroupVersion`,sG=`UpdateNodegroupVersionRequest`,cG=`UpdateNodegroupVersionResponse`,lG=`UpdateParam`,uG=`UpgradePolicyRequest`,dG=`UpgradePolicyResponse`,fG=`UpdateParams`,pG=`UpdateTaintsPayload`,mG=`VpcConfigRequest`,hG=`VpcConfigResponse`,gG=`WarmPoolConfig`,_G=`ZonalShiftConfigRequest`,vG=`ZonalShiftConfigResponse`,yG=`arn`,bG=`addonArn`,xG=`associatedAccessPolicy`,SG=`associatedAccessPolicies`,CG=`associatedAt`,wG=`accessConfig`,TG=`activationCode`,EG=`activationExpiry`,DG=`accessEntryArn`,OG=`accessEntry`,kG=`accessEntries`,AG=`activationId`,jG=`authenticationMode`,MG=`addonName`,NG=`addOrUpdateLabels`,PG=`addOrUpdateTaints`,FG=`accessPolicies`,IG=`associatedPolicyArn`,LG=`accessScope`,RG=`autoScalingGroups`,zG=`amiType`,BG=`addonVersion`,VG=`addonVersions`,HG=`addon`,UG=`addons`,WG=`architecture`,GG=`bootstrapClusterCreatorAdminPermissions`,KG=`blockStorage`,qG=`bootstrapSelfManagedAddons`,JG=`client`,YG=`createdAt`,XG=`certificateAuthority`,ZG=`connectorConfig`,QG=`computeConfig`,$G=`clusterLogging`,T=`clusterName`,eK=`controlPlaneInstanceType`,tK=`controlPlanePlacement`,nK=`controlPlaneScalingConfig`,rK=`clientRequestToken`,iK=`clusterSecurityGroupId`,aK=`computeTypes`,oK=`capacityType`,sK=`configurationValues`,cK=`clusterVersion`,lK=`cidrs`,uK=`cluster`,dK=`clusters`,fK=`code`,pK=`compatibilities`,mK=`data`,hK=`defaultNamespace`,gK=`deletionProtection`,_K=`diskSize`,vK=`desiredSize`,yK=`defaultVersion`,bK=`error`,xK=`encryptionConfig`,SK=`errorCode`,CK=`etcdInstanceType`,wK=`elasticLoadBalancing`,TK=`errorMessage`,EK=`etcdPlacement`,DK=`endpointPublicAccess`,OK=`endpointPrivateAccess`,kK=`ec2SshKey`,AK=`effect`,jK=`enabled`,MK=`endpoint`,NK=`errors`,PK=`fargateProfileName`,FK=`force`,IK=`groupName`,LK=`health`,RK=`httpError`,E=`httpQuery`,D=`http`,zK=`issues`,BK=`ipFamily`,VK=`instanceTypes`,HK=`id`,UK=`identity`,WK=`include`,GK=`issuer`,KK=`key`,qK=`keyArn`,JK=`kubernetesGroups`,YK=`kubernetesNetworkConfig`,XK=`kubernetesVersion`,ZK=`logging`,QK=`launchTemplate`,$K=`labels`,eq=`message`,tq=`modifiedAt`,nq=`maxGroupPreparedCapacity`,rq=`marketplaceInformation`,iq=`maxParallelNodesRepairedCount`,aq=`maxParallelNodesRepairedPercentage`,oq=`maxResults`,sq=`minRepairWaitTimeMins`,cq=`minSize`,lq=`maxSize`,uq=`maxUnavailable`,dq=`maxUnhealthyNodeThresholdCount`,fq=`maxUnhealthyNodeThresholdPercentage`,pq=`maxUnavailablePercentage`,mq=`name`,hq=`nodegroupArn`,gq=`namespaceConfig`,_q=`nodeMonitoringCondition`,vq=`nodegroupName`,yq=`nodePools`,bq=`nodeRole`,xq=`nodeRoleArn`,Sq=`nodeRepairConfig`,Cq=`nodeRepairConfigOverrides`,O=`nextToken`,wq=`nodeUnhealthyReason`,Tq=`namespaces`,Eq=`namespace`,Dq=`nodegroup`,Oq=`nodegroups`,kq=`owner`,Aq=`outpostArns`,jq=`outpostConfig`,Mq=`oidc`,Nq=`owners`,Pq=`publisher`,Fq=`principalArn`,Iq=`publicAccessCidrs`,Lq=`policyArn`,Rq=`productId`,zq=`podIdentityAssociations`,Bq=`poolState`,Vq=`productUrl`,Hq=`platformVersion`,Uq=`platformVersions`,Wq=`params`,Gq=`provider`,Kq=`preserve`,qq=`publishers`,Jq=`roleArn`,Yq=`remoteAccessSecurityGroup`,Xq=`remoteAccess`,Zq=`repairAction`,Qq=`requiresConfiguration`,$q=`resolveConflicts`,eJ=`resourceIds`,tJ=`requiresIamPermissions`,nJ=`removeLabels`,rJ=`remoteNetworkConfig`,iJ=`remoteNodeNetworks`,aJ=`reuseOnScaleIn`,oJ=`remotePodNetworks`,sJ=`removeTaints`,cJ=`releaseVersion`,lJ=`resourcesVpcConfig`,uJ=`resources`,dJ=`smithy.ts.sdk.synthetic.com.amazonaws.eks`,fJ=`serviceAccount`,pJ=`serviceAccountRoleArn`,mJ=`storageConfig`,hJ=`scalingConfig`,gJ=`securityGroupIds`,_J=`subscriptionId`,vJ=`serviceIpv4Cidr`,yJ=`serviceIpv6Cidr`,bJ=`subnetIds`,xJ=`spreadLevel`,SJ=`sourceSecurityGroups`,CJ=`supportType`,wJ=`server`,TJ=`status`,EJ=`subnets`,DJ=`tags`,OJ=`taintsList`,kJ=`taints`,AJ=`tier`,jJ=`type`,MJ=`types`,NJ=`username`,PJ=`updateConfig`,FJ=`upgradePolicy`,IJ=`updateStrategy`,LJ=`update`,RJ=`version`,zJ=`vpcId`,BJ=`validZones`,VJ=`value`,HJ=`warmPoolConfig`,UJ=`zonalShiftConfig`,k=`com.amazonaws.eks`,WJ=se.for(dJ),GJ=[-3,dJ,`EKSServiceException`,0,[],[]];WJ.registerError(GJ,GV);var KJ=se.for(k),qJ=[-3,k,mH,{[bK]:JG,[RK]:403},[eq],[0]];KJ.registerError(qJ,KV);var JJ=[-3,k,MH,{[bK]:JG,[RK]:400},[eq],[0]];KJ.registerError(JJ,rH);var YJ=[-3,k,qH,{[bK]:JG,[RK]:400},[T,vq,MG,_J,eq],[0,0,0,0,0]];KJ.registerError(YJ,ZV);var XJ=[-3,k,KU,{[bK]:JG,[RK]:400},[T,vq,PK,MG,_J,eq],[0,0,0,0,0,0]];KJ.registerError(XJ,qV);var ZJ=[-3,k,qU,{[bK]:JG,[RK]:400},[T,vq,MG,_J,eq],[0,0,0,0,0]];KJ.registerError(ZJ,JV);var QJ=[-3,k,JU,{[bK]:JG,[RK]:400},[T,eq],[0,0]];KJ.registerError(QJ,oH);var $J=[-3,k,SW,{[bK]:JG,[RK]:404},[eq],[0]];KJ.registerError($J,iH);var eY=[-3,k,FW,{[bK]:JG,[RK]:409},[T,vq,MG,eq],[0,0,0,0]];KJ.registerError(eY,QV);var tY=[-3,k,IW,{[bK]:JG,[RK]:400},[T,vq,_J,eq],[0,0,0,0]];KJ.registerError(tY,eH);var nY=[-3,k,zW,{[bK]:JG,[RK]:404},[T,vq,PK,MG,_J,eq],[0,0,0,0,0,0]];KJ.registerError(nY,YV);var rY=[-3,k,HW,{[bK]:JG,[RK]:428},[eq],[0]];KJ.registerError(rY,aH);var iY=[-3,k,qW,{[bK]:wJ,[RK]:500},[T,vq,MG,_J,eq],[0,0,0,0,0]];KJ.registerError(iY,XV);var aY=[-3,k,JW,{[bK]:wJ,[RK]:503},[eq],[0]];KJ.registerError(aY,tH);var oY=[-3,k,XW,{[bK]:JG,[RK]:429},[T,eq],[0,0]];KJ.registerError(oY,$V);var sY=[-3,k,tG,{[bK]:JG,[RK]:400},[eq,T,vq,BJ],[0,0,0,64]];KJ.registerError(sY,nH);var cY=[WJ,KJ],lY=[3,k,pH,0,[GG,jG],[2,0]],uY=[3,k,hH,0,[T,Fq,JK,DG,YG,tq,DJ,NJ,jJ],[0,0,64,0,4,4,128,0,0]],dY=[3,k,SH,0,[mq,yG],[0,0]],fY=[3,k,EH,0,[jJ,Tq],[0,64]],pY=[3,k,sH,0,[MG,T,TJ,BG,LK,bG,YG,tq,pJ,DJ,Pq,kq,rq,sK,zq,gq],[0,0,0,0,()=>mY,0,4,4,0,128,0,0,()=>IX,0,64,()=>vY]],mY=[3,k,gH,0,[zK],[()=>bZ]],hY=[3,k,_H,0,[MG,jJ,VG,Pq,kq,rq,hK],[0,0,()=>CZ,0,0,()=>IX,0]],gY=[3,k,yH,0,[fK,eq,eJ],[0,0,64]],_Y=[3,k,bH,0,[Eq],[0]],vY=[3,k,xH,0,[Eq],[0]],yY=[3,k,CH,0,[fJ,Jq],[0,0],2],bY=[3,k,kH,0,[BG,WG,aK,pK,Qq,tJ],[0,64,64,()=>DZ,2,2]],xY=[3,k,uH,0,[T,Fq,Lq,LG],[[0,1],[0,1],0,()=>fY],4],SY=[3,k,dH,0,[T,Fq,xG],[0,0,()=>CY]],CY=[3,k,cH,0,[Lq,LG,CG,tq],[0,()=>fY,4,4]],wY=[3,k,DH,0,[mq],[0]],TY=[3,k,NH,0,[jK],[2]],EY=[3,k,rU,0,[mK],[0]],DY=[3,k,iU,0,[mq,yG,YG,RJ,MK,Jq,lJ,YK,ZK,UK,TJ,XG,rK,Hq,DJ,xK,ZG,HK,LK,jq,wG,FJ,UJ,rJ,QG,mJ,gK,nK],[0,0,4,0,0,0,()=>hZ,()=>bX,()=>PX,()=>_X,0,()=>EY,0,0,128,()=>OZ,()=>NY,0,()=>OY,()=>KX,()=>lY,()=>pZ,()=>vZ,()=>XX,()=>MY,()=>eZ,2,()=>IY]],OY=[3,k,JH,0,[zK],[()=>EZ]],kY=[3,k,XH,0,[fK,eq,eJ],[0,0,64]],AY=[3,k,aU,0,[cK,Uq,yK],[0,64,2]],jY=[3,k,VH,0,[jK,yq,xq],[2,64,0]],MY=[3,k,HH,0,[jK,yq,xq],[2,64,0]],NY=[3,k,UH,0,[AG,TG,EG,Gq,Jq],[0,0,4,0,0]],PY=[3,k,eU,0,[IK,xJ],[0,0]],FY=[3,k,tU,0,[IK,xJ],[0,0]],IY=[3,k,nU,0,[AJ],[0]],LY=[3,k,FH,0,[GG,jG],[2,0]],RY=[3,k,LH,0,[T,Fq,JK,DJ,rK,NJ,jJ],[[0,1],0,64,128,[0,4],0,0],2],zY=[3,k,RH,0,[OG],[()=>uY]],BY=[3,k,zH,0,[T,MG,BG,pJ,$q,rK,DJ,sK,zq,gq],[[0,1],0,0,0,0,[0,4],128,0,()=>xZ,()=>_Y],2],VY=[3,k,BH,0,[HG],[()=>pY]],HY=[3,k,WH,0,[mq,Jq,lJ,RJ,YK,ZK,rK,DJ,xK,jq,wG,qG,FJ,UJ,rJ,QG,mJ,gK,nK],[0,0,()=>mZ,0,()=>yX,()=>PX,[0,4],128,()=>OZ,()=>GX,()=>LY,2,()=>fZ,()=>_Z,()=>YX,()=>jY,()=>$X,2,()=>IY],3],UY=[3,k,GH,0,[uK],[()=>DY]],WY=[3,k,QH,0,[T,vq,EJ,bq,hJ,_K,VK,zG,Xq,$K,kJ,DJ,rK,QK,PJ,Sq,oK,RJ,cJ,HJ],[[0,1],0,64,0,()=>BX,1,64,0,()=>JX,128,()=>FZ,128,[0,4],()=>xX,()=>VX,()=>HX,0,0,0,()=>gZ],4],GY=[3,k,$H,0,[Dq],[()=>LX]],KY=[3,k,lU,0,[T,Fq],[[0,1],[0,1]],2],qY=[3,k,uU,0,[],[]],JY=[3,k,_U,0,[T,MG,Kq],[[0,1],[0,1],[2,{[E]:Kq}]],2],YY=[3,k,vU,0,[HG],[()=>pY]],XY=[3,k,TU,0,[mq],[[0,1]],1],ZY=[3,k,EU,0,[uK],[()=>DY]],QY=[3,k,MU,0,[T,vq],[[0,1],[0,1]],2],$Y=[3,k,NU,0,[Dq],[()=>LX]],eX=[3,k,dU,0,[T,Fq],[[0,1],[0,1]],2],tX=[3,k,fU,0,[OG],[()=>uY]],nX=[3,k,yU,0,[T,MG],[[0,1],[0,1]],2],rX=[3,k,bU,0,[HG],[()=>pY]],iX=[3,k,SU,0,[XK,oq,O,MG,MJ,qq,Nq],[[0,{[E]:XK}],[1,{[E]:oq}],[0,{[E]:O}],[0,{[E]:MG}],[64,{[E]:MJ}],[64,{[E]:qq}],[64,{[E]:Nq}]]],aX=[3,k,CU,0,[UG,O],[()=>SZ,0]],oX=[3,k,DU,0,[mq],[[0,1]],1],sX=[3,k,OU,0,[uK],[()=>DY]],cX=[3,k,PU,0,[T,vq],[[0,1],[0,1]],2],lX=[3,k,FU,0,[Dq],[()=>LX]],uX=[3,k,hU,0,[T,Fq,Lq],[[0,1],[0,1],[0,1]],3],dX=[3,k,gU,0,[],[]],fX=[3,k,VU,0,[jK],[2]],pX=[3,k,LU,0,[uJ,Gq],[64,()=>qX]],mX=[3,k,zU,0,[SK,TK,eJ],[0,0,64]],hX=[3,k,HU,0,[xJ],[0]],gX=[3,k,UU,0,[xJ],[0]],_X=[3,k,WU,0,[Mq],[()=>WX]],vX=[3,k,YU,0,[fK,eq,eJ],[0,0,64]],yX=[3,k,XU,0,[vJ,BK,wK],[0,0,()=>fX]],bX=[3,k,ZU,0,[vJ,yJ,BK,wK],[0,0,0,()=>fX]],xX=[3,k,vW,0,[mq,RJ,HK],[0,0,0]],SX=[3,k,rW,0,[T,IG,oq,O],[[0,1],[0,{[E]:IG}],[1,{[E]:oq}],[0,{[E]:O}]],1],CX=[3,k,iW,0,[kG,O],[64,0]],wX=[3,k,oW,0,[oq,O],[[1,{[E]:oq}],[0,{[E]:O}]]],TX=[3,k,sW,0,[FG,O],[()=>yZ,0]],EX=[3,k,cW,0,[T,oq,O],[[0,1],[1,{[E]:oq}],[0,{[E]:O}]],1],DX=[3,k,lW,0,[UG,O],[64,0]],OX=[3,k,eW,0,[T,Fq,oq,O],[[0,1],[0,1],[1,{[E]:oq}],[0,{[E]:O}]],2],kX=[3,k,tW,0,[T,Fq,O,SG],[0,0,0,()=>wZ]],AX=[3,k,uW,0,[oq,O,WK],[[1,{[E]:oq}],[0,{[E]:O}],[64,{[E]:WK}]]],jX=[3,k,dW,0,[dK,O],[64,0]],MX=[3,k,mW,0,[T,oq,O],[[0,1],[1,{[E]:oq}],[0,{[E]:O}]],1],NX=[3,k,hW,0,[Oq,O],[64,0]],PX=[3,k,yW,0,[$G],[()=>jZ]],FX=[3,k,gW,0,[MJ,jK],[64,2]],IX=[3,k,bW,0,[Rq,Vq],[0,0]],LX=[3,k,xW,0,[vq,hq,T,RJ,cJ,YG,tq,TJ,oK,hJ,VK,EJ,Xq,zG,bq,$K,kJ,uJ,_K,LK,PJ,Sq,QK,DJ,HJ],[0,0,0,0,0,4,4,0,0,()=>BX,64,64,()=>JX,0,0,128,()=>FZ,()=>zX,1,()=>RX,()=>VX,()=>HX,()=>xX,128,()=>gZ]],RX=[3,k,CW,0,[zK],[()=>AZ]],zX=[3,k,wW,0,[RG,Yq],[()=>TZ,0]],BX=[3,k,OW,0,[cq,lq,vK],[1,1,1]],VX=[3,k,kW,0,[uq,pq,IJ],[1,1,0]],HX=[3,k,TW,0,[jK,dq,fq,iq,aq,Cq],[2,1,1,1,1,()=>MZ]],UX=[3,k,EW,0,[_q,wq,sq,Zq],[0,0,1,0]],WX=[3,k,MW,0,[GK],[0]],GX=[3,k,AW,0,[Aq,eK,tK,CK,EK],[64,0,()=>PY,0,()=>hX],2],KX=[3,k,jW,0,[Aq,eK,tK,CK,EK],[64,0,()=>FY,0,()=>gX],2],qX=[3,k,NW,0,[qK],[0]],JX=[3,k,PW,0,[kK,SJ],[0,64]],YX=[3,k,LW,0,[iJ,oJ],[()=>NZ,()=>PZ]],XX=[3,k,RW,0,[iJ,oJ],[()=>NZ,()=>PZ]],ZX=[3,k,BW,0,[lK],[64]],QX=[3,k,UW,0,[lK],[64]],$X=[3,k,GW,0,[KG],[()=>TY]],eZ=[3,k,KW,0,[KG],[()=>TY]],tZ=[3,k,YW,0,[KK,VJ,AK],[0,0,0]],nZ=[3,k,ZW,0,[HK,TJ,jJ,Wq,YG,NK],[0,0,0,()=>IZ,4,()=>kZ]],rZ=[3,k,$W,0,[T,MG,BG,pJ,$q,rK,sK,zq],[[0,1],[0,1],0,0,0,[0,4],0,()=>xZ],2],iZ=[3,k,eG,0,[LJ],[()=>nZ]],aZ=[3,k,nG,0,[NG,nJ],[128,64]],oZ=[3,k,iG,0,[T,vq,$K,kJ,hJ,PJ,Sq,HJ,rK],[[0,1],[0,1],()=>aZ,()=>dZ,()=>BX,()=>VX,()=>HX,()=>gZ,[0,4]],2],sZ=[3,k,aG,0,[LJ],[()=>nZ]],cZ=[3,k,sG,0,[T,vq,RJ,cJ,QK,FK,rK],[[0,1],[0,1],0,0,()=>xX,2,[0,4]],2],lZ=[3,k,cG,0,[LJ],[()=>nZ]],uZ=[3,k,lG,0,[jJ,VJ],[0,0]],dZ=[3,k,pG,0,[PG,sJ],[()=>FZ,()=>FZ]],fZ=[3,k,uG,0,[CJ],[0]],pZ=[3,k,dG,0,[CJ],[0]],mZ=[3,k,mG,0,[bJ,gJ,DK,OK,Iq],[64,64,2,2,64]],hZ=[3,k,hG,0,[bJ,gJ,iK,zJ,DK,OK,Iq],[64,64,0,0,2,2,64]],gZ=[3,k,gG,0,[jK,cq,nq,Bq,aJ],[2,1,1,0,2]],_Z=[3,k,_G,0,[jK],[2]],vZ=[3,k,vG,0,[jK],[2]],yZ=[1,k,TH,0,()=>dY],bZ=[1,k,vH,0,()=>gY],xZ=[1,k,wH,0,()=>yY],SZ=[1,k,jH,0,()=>hY],CZ=[1,k,AH,0,()=>bY],wZ=[1,k,lH,0,()=>CY],TZ=[1,k,OH,0,()=>wY],EZ=[1,k,YH,0,()=>kY],DZ=[1,k,oU,0,()=>AY],OZ=[1,k,RU,0,()=>pX],kZ=[1,k,BU,0,()=>mX],AZ=[1,k,GU,0,()=>vX],jZ=[1,k,_W,0,()=>FX],MZ=[1,k,DW,0,()=>UX],NZ=[1,k,VW,0,()=>ZX],PZ=[1,k,WW,0,()=>QX],FZ=[1,k,OJ,0,()=>tZ],IZ=[1,k,fG,0,()=>uZ],LZ=[9,k,fH,{[D]:[`POST`,`/clusters/{clusterName}/access-entries/{principalArn}/access-policies`,200]},()=>xY,()=>SY],RZ=[9,k,IH,{[D]:[`POST`,`/clusters/{clusterName}/access-entries`,200]},()=>RY,()=>zY],zZ=[9,k,PH,{[D]:[`POST`,`/clusters/{clusterName}/addons`,200]},()=>BY,()=>VY],BZ=[9,k,KH,{[D]:[`POST`,`/clusters`,200]},()=>HY,()=>UY],VZ=[9,k,ZH,{[D]:[`POST`,`/clusters/{clusterName}/node-groups`,200]},()=>WY,()=>GY],HZ=[9,k,cU,{[D]:[`DELETE`,`/clusters/{clusterName}/access-entries/{principalArn}`,200]},()=>KY,()=>qY],UZ=[9,k,sU,{[D]:[`DELETE`,`/clusters/{clusterName}/addons/{addonName}`,200]},()=>JY,()=>YY],WZ=[9,k,kU,{[D]:[`DELETE`,`/clusters/{name}`,200]},()=>XY,()=>ZY],GZ=[9,k,jU,{[D]:[`DELETE`,`/clusters/{clusterName}/node-groups/{nodegroupName}`,200]},()=>QY,()=>$Y],KZ=[9,k,pU,{[D]:[`GET`,`/clusters/{clusterName}/access-entries/{principalArn}`,200]},()=>eX,()=>tX],qZ=[9,k,wU,{[D]:[`GET`,`/clusters/{clusterName}/addons/{addonName}`,200]},()=>nX,()=>rX],JZ=[9,k,xU,{[D]:[`GET`,`/addons/supported-versions`,200]},()=>iX,()=>aX],YZ=[9,k,AU,{[D]:[`GET`,`/clusters/{name}`,200]},()=>oX,()=>sX],XZ=[9,k,IU,{[D]:[`GET`,`/clusters/{clusterName}/node-groups/{nodegroupName}`,200]},()=>cX,()=>lX],ZZ=[9,k,mU,{[D]:[`DELETE`,`/clusters/{clusterName}/access-entries/{principalArn}/access-policies/{policyArn}`,200]},()=>uX,()=>dX],QZ=[9,k,nW,{[D]:[`GET`,`/clusters/{clusterName}/access-entries`,200]},()=>SX,()=>CX],$Z=[9,k,aW,{[D]:[`GET`,`/access-policies`,200]},()=>wX,()=>TX],eQ=[9,k,QU,{[D]:[`GET`,`/clusters/{clusterName}/addons`,200]},()=>EX,()=>DX],tQ=[9,k,$U,{[D]:[`GET`,`/clusters/{clusterName}/access-entries/{principalArn}/access-policies`,200]},()=>OX,()=>kX],nQ=[9,k,fW,{[D]:[`GET`,`/clusters`,200]},()=>AX,()=>jX],rQ=[9,k,pW,{[D]:[`GET`,`/clusters/{clusterName}/node-groups`,200]},()=>MX,()=>NX],iQ=[9,k,QW,{[D]:[`POST`,`/clusters/{clusterName}/addons/{addonName}/update`,200]},()=>rZ,()=>iZ],aQ=[9,k,rG,{[D]:[`POST`,`/clusters/{clusterName}/node-groups/{nodegroupName}/update-config`,200]},()=>oZ,()=>sZ],oQ=[9,k,oG,{[D]:[`POST`,`/clusters/{clusterName}/node-groups/{nodegroupName}/update-version`,200]},()=>cZ,()=>lZ],sQ=e=>({apiVersion:`2017-11-01`,base64Decoder:e?.base64Decoder??yt,base64Encoder:e?.base64Encoder??Ct,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??WV,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??xV,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new ie}],logger:e?.logger??new ze,protocol:e?.protocol??vee,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.eks`,errorTypeRegistries:cY,version:`2017-11-01`,serviceTarget:`AWSWesleyFrontend`},serviceId:e?.serviceId??`EKS`,urlParser:e?.urlParser??Ze,utf8Decoder:e?.utf8Decoder??vt,utf8Encoder:e?.utf8Encoder??xt}),cQ=e=>{let t=xe(e),n=()=>t().then(Ve),r=sQ(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Dt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??he({serviceId:r.serviceId,clientVersion:TV.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??$e(`Region is missing`),requestHandler:ke.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Ie),sha256:e?.sha256??oe,streamCollector:e?.streamCollector??dt,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},lQ=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},uQ=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),dQ=(e,t)=>{let n=Object.assign(Xe(e),ct(e),re(e),lQ(e));return t.forEach(e=>e.configure(n)),Object.assign(e,ye(n),mt(n),We(n),uQ(n))},fQ=class extends we{config;constructor(...[e]){let t=cQ(e||{});super(t),this.initConfig=t;let n=dQ(SV(Ue(_e(Te(Le(Oe(CV(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(ue(this.config)),this.middlewareStack.use(ve(this.config)),this.middlewareStack.use(ge(this.config)),this.middlewareStack.use(De(this.config)),this.middlewareStack.use(pe(this.config)),this.middlewareStack.use(Fe(this.config)),this.middlewareStack.use(Ne(this.config)),this.middlewareStack.use(me(this.config,{httpAuthSchemeParametersProvider:yV,identityProviderConfigProvider:async e=>new ht({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(ae(this.config))}destroy(){super.destroy()}},pQ=async(e,t,n)=>({operation:fe(t).operation,region:await be(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function mQ(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`elasticloadbalancing`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var hQ=e=>{let t=[];switch(e.operation){default:t.push(mQ(e))}return t},gQ=e=>{let t=le(e);return Object.assign(t,{authSchemePreference:be(e.authSchemePreference??[])})},_Q=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`elasticloadbalancing`}),vQ={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},yQ={name:`@aws-sdk/client-elastic-load-balancing-v2`,description:`AWS SDK for JavaScript Elastic Load Balancing V2 Client for Node.js, Browser and React Native`,version:`3.1067.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo elastic-load-balancing-v2`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts --mode development`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.20`,"@aws-sdk/credential-provider-node":`^3.972.55`,"@aws-sdk/types":`^3.973.12`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-elastic-load-balancing-v2`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-elastic-load-balancing-v2`}},bQ=`ref`,xQ=-1,SQ=!0,CQ=`isSet`,wQ=`PartitionResult`,TQ=`booleanEquals`,EQ=`getAttr`,DQ={[bQ]:`Endpoint`},OQ={[bQ]:wQ},kQ={},AQ=[{[bQ]:`Region`}],jQ={conditions:[[CQ,[DQ]],[CQ,AQ],[`aws.partition`,AQ,wQ],[TQ,[{[bQ]:`UseFIPS`},SQ]],[TQ,[{[bQ]:`UseDualStack`},SQ]],[TQ,[{fn:EQ,argv:[OQ,`supportsDualStack`]},SQ]],[TQ,[{fn:EQ,argv:[OQ,`supportsFIPS`]},SQ]],[`stringEquals`,[{fn:EQ,argv:[OQ,`name`]},`aws-us-gov`]]],results:[[xQ],[xQ,`Invalid Configuration: FIPS and custom endpoint are not supported`],[xQ,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[DQ,kQ],[`https://elasticloadbalancing-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,kQ],[xQ,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://elasticloadbalancing.{Region}.amazonaws.com`,kQ],[`https://elasticloadbalancing-fips.{Region}.{PartitionResult#dnsSuffix}`,kQ],[xQ,`FIPS is enabled but this partition does not support FIPS`],[`https://elasticloadbalancing.{Region}.{PartitionResult#dualStackDnsSuffix}`,kQ],[xQ,`DualStack is enabled but this partition does not support DualStack`],[`https://elasticloadbalancing.{Region}.{PartitionResult#dnsSuffix}`,kQ],[xQ,`Invalid Configuration: Missing Region`]]},MQ=2,NQ=new Int32Array([-1,1,-1,0,13,3,1,4,100000012,2,5,100000012,3,8,6,4,7,100000011,5,100000009,100000010,4,11,9,6,10,100000008,7,100000006,100000007,5,12,100000005,6,100000004,100000005,3,100000001,14,4,100000002,100000003]),PQ=Je.from(NQ,MQ,jQ.conditions,jQ.results),FQ=new et({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),IQ=(e,t={})=>FQ.get(e,()=>Ge(PQ,{endpointParams:e,logger:t.logger}));rt.aws=de;var A=class e extends ft{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},LQ=class e extends A{name=`CertificateNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`CertificateNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},RQ=class e extends A{name=`ListenerNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`ListenerNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},zQ=class e extends A{name=`TooManyCertificatesException`;$fault=`client`;Message;constructor(t){super({name:`TooManyCertificatesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},BQ=class e extends A{name=`DuplicateTagKeysException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateTagKeysException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},VQ=class e extends A{name=`LoadBalancerNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`LoadBalancerNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},HQ=class e extends A{name=`RuleNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`RuleNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},UQ=class e extends A{name=`TargetGroupNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`TargetGroupNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},WQ=class e extends A{name=`TooManyTagsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTagsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},GQ=class e extends A{name=`TrustStoreNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},KQ=class e extends A{name=`InvalidRevocationContentException`;$fault=`client`;Message;constructor(t){super({name:`InvalidRevocationContentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},qQ=class e extends A{name=`RevocationContentNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`RevocationContentNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},JQ=class e extends A{name=`TooManyTrustStoreRevocationEntriesException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTrustStoreRevocationEntriesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},YQ=class e extends A{name=`AllocationIdNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`AllocationIdNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},XQ=class e extends A{name=`ALPNPolicyNotSupportedException`;$fault=`client`;Message;constructor(t){super({name:`ALPNPolicyNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},ZQ=class e extends A{name=`AvailabilityZoneNotSupportedException`;$fault=`client`;Message;constructor(t){super({name:`AvailabilityZoneNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},QQ=class e extends A{name=`CaCertificatesBundleNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`CaCertificatesBundleNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},$Q=class e extends A{name=`CapacityDecreaseRequestsLimitExceededException`;$fault=`client`;Message;constructor(t){super({name:`CapacityDecreaseRequestsLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},e$=class e extends A{name=`CapacityReservationPendingException`;$fault=`client`;Message;constructor(t){super({name:`CapacityReservationPendingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},t$=class e extends A{name=`CapacityUnitsLimitExceededException`;$fault=`client`;Message;constructor(t){super({name:`CapacityUnitsLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},n$=class e extends A{name=`DuplicateListenerException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateListenerException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},r$=class e extends A{name=`IncompatibleProtocolsException`;$fault=`client`;Message;constructor(t){super({name:`IncompatibleProtocolsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},i$=class e extends A{name=`InvalidConfigurationRequestException`;$fault=`client`;Message;constructor(t){super({name:`InvalidConfigurationRequestException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},a$=class e extends A{name=`InvalidLoadBalancerActionException`;$fault=`client`;Message;constructor(t){super({name:`InvalidLoadBalancerActionException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},o$=class e extends A{name=`SSLPolicyNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`SSLPolicyNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},s$=class e extends A{name=`TargetGroupAssociationLimitException`;$fault=`client`;Message;constructor(t){super({name:`TargetGroupAssociationLimitException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},c$=class e extends A{name=`TooManyActionsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyActionsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},l$=class e extends A{name=`TooManyListenersException`;$fault=`client`;Message;constructor(t){super({name:`TooManyListenersException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},u$=class e extends A{name=`TooManyRegistrationsForTargetIdException`;$fault=`client`;Message;constructor(t){super({name:`TooManyRegistrationsForTargetIdException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},d$=class e extends A{name=`TooManyTargetsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTargetsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},f$=class e extends A{name=`TooManyUniqueTargetGroupsPerLoadBalancerException`;$fault=`client`;Message;constructor(t){super({name:`TooManyUniqueTargetGroupsPerLoadBalancerException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},p$=class e extends A{name=`TrustStoreNotReadyException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreNotReadyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},m$=class e extends A{name=`UnsupportedProtocolException`;$fault=`client`;Message;constructor(t){super({name:`UnsupportedProtocolException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},h$=class e extends A{name=`DuplicateLoadBalancerNameException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateLoadBalancerNameException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},g$=class e extends A{name=`InvalidSchemeException`;$fault=`client`;Message;constructor(t){super({name:`InvalidSchemeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},_$=class e extends A{name=`InvalidSecurityGroupException`;$fault=`client`;Message;constructor(t){super({name:`InvalidSecurityGroupException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},v$=class e extends A{name=`InvalidSubnetException`;$fault=`client`;Message;constructor(t){super({name:`InvalidSubnetException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},y$=class e extends A{name=`OperationNotPermittedException`;$fault=`client`;Message;constructor(t){super({name:`OperationNotPermittedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},b$=class e extends A{name=`ResourceInUseException`;$fault=`client`;Message;constructor(t){super({name:`ResourceInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},x$=class e extends A{name=`SubnetNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`SubnetNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},S$=class e extends A{name=`TooManyLoadBalancersException`;$fault=`client`;Message;constructor(t){super({name:`TooManyLoadBalancersException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},C$=class e extends A{name=`PriorityInUseException`;$fault=`client`;Message;constructor(t){super({name:`PriorityInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},w$=class e extends A{name=`TooManyRulesException`;$fault=`client`;Message;constructor(t){super({name:`TooManyRulesException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},T$=class e extends A{name=`TooManyTargetGroupsException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTargetGroupsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},E$=class e extends A{name=`DuplicateTargetGroupNameException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateTargetGroupNameException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},D$=class e extends A{name=`DuplicateTrustStoreNameException`;$fault=`client`;Message;constructor(t){super({name:`DuplicateTrustStoreNameException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},O$=class e extends A{name=`InvalidCaCertificatesBundleException`;$fault=`client`;Message;constructor(t){super({name:`InvalidCaCertificatesBundleException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},k$=class e extends A{name=`TooManyTrustStoresException`;$fault=`client`;Message;constructor(t){super({name:`TooManyTrustStoresException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},A$=class e extends A{name=`DeleteAssociationSameAccountException`;$fault=`client`;Message;constructor(t){super({name:`DeleteAssociationSameAccountException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},j$=class e extends A{name=`TrustStoreAssociationNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreAssociationNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},M$=class e extends A{name=`TrustStoreInUseException`;$fault=`client`;Message;constructor(t){super({name:`TrustStoreInUseException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},N$=class e extends A{name=`InvalidTargetException`;$fault=`client`;Message;constructor(t){super({name:`InvalidTargetException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},P$=class e extends A{name=`HealthUnavailableException`;$fault=`server`;Message;constructor(t){super({name:`HealthUnavailableException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},F$=class e extends A{name=`RevocationIdNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`RevocationIdNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},I$=class e extends A{name=`ResourceNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`ResourceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},L$=class e extends A{name=`InsufficientCapacityException`;$fault=`server`;Message;constructor(t){super({name:`InsufficientCapacityException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},R$=class e extends A{name=`PriorRequestNotCompleteException`;$fault=`client`;Message;constructor(t){super({name:`PriorRequestNotCompleteException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},z$=`Action`,B$=`AdditionalClaims`,Use=`AuthenticateCognitoActionConfig`,V$=`AuthenticateCognitoConfig`,H$=`AnomalyDetection`,U$=`AuthorizationEndpoint`,W$=`AllocationId`,G$=`AllocationIdNotFoundException`,K$=`ALPNPolicyNotSupportedException`,q$=`AdministrativeOverride`,J$=`AuthenticateOidcActionConfig`,Y$=`AuthenticateOidcConfig`,X$=`AlpnPolicy`,Z$=`AuthenticationRequestExtraParams`,Q$=`AddTags`,$$=`AddTagsInput`,e1=`AddTagsOutput`,t1=`AdvertiseTrustStoreCaNames`,n1=`AvailabilityZone`,r1=`AvailabilityZoneNotSupportedException`,i1=`AvailabilityZones`,a1=`Actions`,o1=`Attributes`,s1=`Certificates`,c1=`CertificateArn`,l1=`CaCertificatesBundleNotFoundException`,u1=`CapacityDecreaseRequestsLimitExceededException`,d1=`CanonicalHostedZoneId`,f1=`ClientId`,p1=`CertificateList`,m1=`CreateLoadBalancer`,h1=`CreateLoadBalancerInput`,g1=`CreateLoadBalancerOutput`,_1=`CreateListenerInput`,v1=`CreateListenerOutput`,y1=`CreateListener`,b1=`CertificateNotFoundException`,x1=`CustomerOwnedIpv4Pool`,S1=`CreateRule`,C1=`CreateRuleInput`,w1=`CreateRuleOutput`,T1=`CapacityReservationPendingException`,E1=`ClientSecret`,D1=`ContentType`,O1=`CreateTargetGroup`,k1=`CreateTargetGroupInput`,A1=`CreateTargetGroupOutput`,j1=`CreatedTime`,M1=`CapacityUnitsLimitExceededException`,N1=`Certificate`,P1=`Cipher`,F1=`Ciphers`,I1=`Code`,L1=`Conditions`,R1=`Description`,z1=`DefaultActions`,B1=`DeleteAssociationSameAccountException`,V1=`DeleteListener`,H1=`DeleteLoadBalancer`,U1=`DescribeLoadBalancerAttributes`,W1=`DescribeLoadBalancerAttributesInput`,G1=`DescribeLoadBalancerAttributesOutput`,K1=`DeleteLoadBalancerInput`,q1=`DescribeLoadBalancersInput`,J1=`DuplicateLoadBalancerNameException`,Y1=`DeleteLoadBalancerOutput`,X1=`DescribeLoadBalancersOutput`,Z1=`DescribeLoadBalancers`,Q1=`DuplicateListenerException`,$1=`DeleteListenerInput`,e0=`DescribeListenersInput`,t0=`DeleteListenerOutput`,n0=`DescribeListenersOutput`,r0=`DescribeListeners`,i0=`DNSName`,a0=`DeleteRule`,o0=`DeleteRuleInput`,s0=`DescribeRulesInput`,c0=`DeleteRuleOutput`,l0=`DescribeRulesOutput`,u0=`DescribeRules`,d0=`DurationSeconds`,f0=`DescribeSSLPolicies`,p0=`DescribeSSLPoliciesInput`,m0=`DescribeSSLPoliciesOutput`,h0=`DeregisterTargets`,g0=`DeleteTargetGroup`,_0=`DescribeTargetGroupAttributes`,v0=`DescribeTargetGroupAttributesInput`,y0=`DescribeTargetGroupAttributesOutput`,b0=`DeleteTargetGroupInput`,x0=`DescribeTargetGroupsInput`,S0=`DuplicateTargetGroupNameException`,C0=`DeleteTargetGroupOutput`,w0=`DescribeTargetGroupsOutput`,T0=`DescribeTargetGroups`,E0=`DescribeTargetHealth`,D0=`DescribeTargetHealthInput`,O0=`DescribeTargetHealthOutput`,k0=`DeregisterTargetsInput`,A0=`DescribeTagsInput`,j0=`DuplicateTagKeysException`,M0=`DeregisterTargetsOutput`,N0=`DescribeTagsOutput`,P0=`DuplicateTrustStoreNameException`,F0=`DescribeTags`,I0=`Enabled`,L0=`EnablePrefixForIpv6SourceNat`,R0=`EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic`,z0=`Format`,B0=`ForwardActionConfig`,V0=`ForwardConfig`,H0=`FixedResponseActionConfig`,U0=`FixedResponseConfig`,W0=`Field`,G0=`GrpcCode`,K0=`Host`,q0=`HttpCode`,J0=`HealthCheckEnabled`,Y0=`HealthCheckIntervalSeconds`,X0=`HealthCheckProtocol`,Z0=`HealthCheckPort`,Q0=`HealthCheckPath`,$0=`HealthCheckTimeoutSeconds`,e2=`HostHeaderConfig`,t2=`HostHeaderConditionConfig`,n2=`HttpHeaderConditionConfig`,r2=`HttpHeaderConfig`,i2=`HttpHeaderName`,a2=`HostHeaderRewriteConfig`,o2=`HttpRequestMethodConfig`,s2=`HttpRequestMethodConditionConfig`,c2=`HealthyThresholdCount`,l2=`HealthUnavailableException`,u2=`Issuer`,d2=`IpAddress`,f2=`IpAddressType`,p2=`InvalidCaCertificatesBundleException`,m2=`IgnoreClientCertificateExpiry`,h2=`InsufficientCapacityException`,g2=`InvalidConfigurationRequestException`,_2=`IsDefault`,v2=`Ipv4IpamPoolId`,y2=`InvalidLoadBalancerActionException`,b2=`IpamPools`,x2=`IPv6Address`,S2=`IncompatibleProtocolsException`,C2=`InvalidRevocationContentException`,w2=`InvalidSchemeException`,T2=`InvalidSubnetException`,E2=`InvalidSecurityGroupException`,D2=`InvalidTargetException`,O2=`Id`,k2=`Include`,A2=`JwksEndpoint`,j2=`JwtValidationActionAdditionalClaim`,M2=`JwtValidationActionAdditionalClaims`,N2=`JwtValidationActionConfig`,Wse=`JwtValidationConfig`,P2=`Key`,F2=`Listeners`,I2=`ListenerArn`,Gse=`ListenerArns`,L2=`LoadBalancers`,R2=`LoadBalancerAddresses`,z2=`LoadBalancerArn`,B2=`LoadBalancerArns`,Kse=`LoadBalancerAddress`,qse=`LoadBalancerAttribute`,Jse=`LoadBalancerAttributes`,Yse=`LoadBalancerName`,Xse=`LoadBalancerNotFoundException`,Zse=`LoadBalancerState`,Qse=`LoadBalancerType`,$se=`LoadBalancer`,ece=`ListenerNotFoundException`,tce=`Listener`,j=`Message`,V2=`MutualAuthentication`,nce=`MutualAuthenticationAttributes`,rce=`MessageBody`,ice=`MitigationInEffect`,ace=`ModifyListener`,oce=`ModifyLoadBalancerAttributes`,sce=`ModifyLoadBalancerAttributesInput`,cce=`ModifyLoadBalancerAttributesOutput`,lce=`ModifyListenerInput`,uce=`ModifyListenerOutput`,dce=`ModifyRule`,fce=`ModifyRuleInput`,pce=`ModifyRuleOutput`,mce=`ModifyTargetGroupAttributes`,hce=`ModifyTargetGroupAttributesInput`,gce=`ModifyTargetGroupAttributesOutput`,H2=`Matcher`,U2=`Marker`,_ce=`Mode`,W2=`Name`,G2=`NextMarker`,K2=`Names`,vce=`Order`,yce=`OutpostId`,bce=`OperationNotPermittedException`,q2=`OnUnauthenticatedRequest`,J2=`Priority`,Y2=`PrivateIPv4Address`,xce=`PriorityInUseException`,Sce=`PathPatternConfig`,Cce=`PathPatternConditionConfig`,wce=`PriorRequestNotCompleteException`,X2=`PageSize`,Z2=`ProtocolVersion`,Tce=`Path`,Q2=`Port`,$2=`Protocol`,Ece=`Query`,Dce=`QueryStringConfig`,Oce=`QueryStringConditionConfig`,kce=`QuicServerId`,Ace=`QueryStringKeyValuePair`,jce=`QueryStringKeyValuePairList`,e4=`Reason`,t4=`ResourceArns`,Mce=`RedirectActionConfig`,Nce=`ResourceArn`,n4=`RuleArn`,Pce=`RuleArns`,Fce=`RedirectConfig`,Ice=`RewriteConfigList`,Lce=`RuleConditionList`,Rce=`RevocationContentNotFoundException`,zce=`RewriteConfig`,Bce=`RuleCondition`,Vce=`RevocationIdNotFoundException`,Hce=`ResourceInUseException`,Uce=`ResourceNotFoundException`,Wce=`RuleNotFoundException`,Gce=`RegisterTargetsInput`,Kce=`RemoveTagsInput`,qce=`RuleTransformList`,Jce=`RegisterTargetsOutput`,Yce=`RemoveTagsOutput`,Xce=`ResetTransforms`,Zce=`RegisterTargets`,Qce=`RemoveTags`,$ce=`RuleTransform`,r4=`RegexValues`,ele=`Result`,tle=`Regex`,nle=`Replace`,i4=`Rewrites`,a4=`Rules`,rle=`Rule`,o4=`State`,s4=`StatusCode`,c4=`SessionCookieName`,l4=`SecurityGroups`,ile=`SecurityGroupIds`,u4=`SubnetId`,ale=`SourceIpConfig`,ole=`SourceIpConditionConfig`,sle=`SupportedLoadBalancerTypes`,d4=`SubnetMappings`,cle=`SubnetMapping`,lle=`SubnetNotFoundException`,ule=`SourceNatIpv6Prefixes`,dle=`SourceNatIpv6Prefix`,f4=`SslPolicy`,p4=`SslPolicies`,fle=`SslProtocols`,ple=`SetSubnets`,mle=`SetSecurityGroups`,hle=`SetSecurityGroupsInput`,gle=`SetSecurityGroupsOutput`,_le=`SetSubnetsInput`,vle=`SSLPolicyNotFoundException`,yle=`SetSubnetsOutput`,m4=`SessionTimeout`,h4=`Scope`,g4=`Scheme`,_4=`Subnets`,v4=`Type`,y4=`TargetControlPort`,b4=`TagDescriptions`,ble=`TagDescription`,xle=`TargetDescription`,Sle=`TargetDescriptions`,Cle=`TokenEndpoint`,x4=`TargetGroups`,S4=`TargetGroupArn`,wle=`TargetGroupAssociationLimitException`,Tle=`TargetGroupArns`,Ele=`TargetGroupAttribute`,Dle=`TargetGroupAttributes`,Ole=`TargetGroupList`,kle=`TargetGroupName`,Ale=`TargetGroupNotFoundException`,C4=`TargetGroupStickinessConfig`,jle=`TargetGroupTuple`,Mle=`TargetGroup`,w4=`TargetHealth`,T4=`TargetHealthDescriptions`,Nle=`TargetHealthDescription`,Ple=`TagKeys`,Fle=`TagList`,Ile=`TooManyActionsException`,Lle=`TooManyCertificatesException`,Rle=`TooManyLoadBalancersException`,zle=`TooManyListenersException`,Ble=`TooManyRulesException`,Vle=`TooManyRegistrationsForTargetIdException`,Hle=`TooManyTagsException`,Ule=`TooManyTargetsException`,Wle=`TooManyTargetGroupsException`,Gle=`TooManyTrustStoresException`,Kle=`TooManyTrustStoreRevocationEntriesException`,qle=`TooManyUniqueTargetGroupsPerLoadBalancerException`,Jle=`TrustStoreArn`,Yle=`TrustStoreAssociationNotFoundException`,Xle=`TrustStoreAssociationStatus`,Zle=`TrustStoreInUseException`,Qle=`TrustStoreNotFoundException`,$le=`TrustStoreNotReadyException`,E4=`TargetType`,D4=`Tags`,eue=`Tag`,O4=`Targets`,tue=`Target`,k4=`Transforms`,nue=`UseExistingClientSecret`,rue=`UserInfoEndpoint`,iue=`UserPoolArn`,aue=`UserPoolClientId`,oue=`UserPoolDomain`,sue=`UnsupportedProtocolException`,A4=`UrlRewriteConfig`,j4=`UnhealthyThresholdCount`,M4=`Values`,N4=`VpcId`,P4=`Value`,cue=`Weight`,lue=`ZoneName`,M=`awsQueryError`,N=`client`,P=`error`,F=`httpError`,F4=`smithy.ts.sdk.synthetic.com.amazonaws.elasticloadbalancingv2`,I4=`server`,I=`com.amazonaws.elasticloadbalancingv2`,L4=se.for(F4),uue=[-3,F4,`ElasticLoadBalancingV2ServiceException`,0,[],[]];L4.registerError(uue,A);var L=se.for(I),due=[-3,I,G$,{[M]:[`AllocationIdNotFound`,400],[P]:N,[F]:400},[j],[0]];L.registerError(due,YQ);var fue=[-3,I,K$,{[M]:[`ALPNPolicyNotFound`,400],[P]:N,[F]:400},[j],[0]];L.registerError(fue,XQ);var pue=[-3,I,r1,{[M]:[`AvailabilityZoneNotSupported`,400],[P]:N,[F]:400},[j],[0]];L.registerError(pue,ZQ);var mue=[-3,I,l1,{[M]:[`CaCertificatesBundleNotFound`,400],[P]:N,[F]:400},[j],[0]];L.registerError(mue,QQ);var hue=[-3,I,u1,{[M]:[`CapacityDecreaseRequestLimitExceeded`,400],[P]:N,[F]:400},[j],[0]];L.registerError(hue,$Q);var gue=[-3,I,T1,{[M]:[`CapacityReservationPending`,400],[P]:N,[F]:400},[j],[0]];L.registerError(gue,e$);var _ue=[-3,I,M1,{[M]:[`CapacityUnitsLimitExceeded`,400],[P]:N,[F]:400},[j],[0]];L.registerError(_ue,t$);var vue=[-3,I,b1,{[M]:[`CertificateNotFound`,400],[P]:N,[F]:400},[j],[0]];L.registerError(vue,LQ);var yue=[-3,I,B1,{[M]:[`DeleteAssociationSameAccount`,400],[P]:N,[F]:400},[j],[0]];L.registerError(yue,A$);var bue=[-3,I,Q1,{[M]:[`DuplicateListener`,400],[P]:N,[F]:400},[j],[0]];L.registerError(bue,n$);var xue=[-3,I,J1,{[M]:[`DuplicateLoadBalancerName`,400],[P]:N,[F]:400},[j],[0]];L.registerError(xue,h$);var Sue=[-3,I,j0,{[M]:[`DuplicateTagKeys`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Sue,BQ);var Cue=[-3,I,S0,{[M]:[`DuplicateTargetGroupName`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Cue,E$);var wue=[-3,I,P0,{[M]:[`DuplicateTrustStoreName`,400],[P]:N,[F]:400},[j],[0]];L.registerError(wue,D$);var Tue=[-3,I,l2,{[M]:[`HealthUnavailable`,500],[P]:I4,[F]:500},[j],[0]];L.registerError(Tue,P$);var Eue=[-3,I,S2,{[M]:[`IncompatibleProtocols`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Eue,r$);var Due=[-3,I,h2,{[M]:[`InsufficientCapacity`,500],[P]:I4,[F]:500},[j],[0]];L.registerError(Due,L$);var Oue=[-3,I,p2,{[M]:[`InvalidCaCertificatesBundle`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Oue,O$);var kue=[-3,I,g2,{[M]:[`InvalidConfigurationRequest`,400],[P]:N,[F]:400},[j],[0]];L.registerError(kue,i$);var Aue=[-3,I,y2,{[M]:[`InvalidLoadBalancerAction`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Aue,a$);var jue=[-3,I,C2,{[M]:[`InvalidRevocationContent`,400],[P]:N,[F]:400},[j],[0]];L.registerError(jue,KQ);var Mue=[-3,I,w2,{[M]:[`InvalidScheme`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Mue,g$);var Nue=[-3,I,E2,{[M]:[`InvalidSecurityGroup`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Nue,_$);var Pue=[-3,I,T2,{[M]:[`InvalidSubnet`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Pue,v$);var Fue=[-3,I,D2,{[M]:[`InvalidTarget`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Fue,N$);var Iue=[-3,I,ece,{[M]:[`ListenerNotFound`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Iue,RQ);var Lue=[-3,I,Xse,{[M]:[`LoadBalancerNotFound`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Lue,VQ);var Rue=[-3,I,bce,{[M]:[`OperationNotPermitted`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Rue,y$);var zue=[-3,I,xce,{[M]:[`PriorityInUse`,400],[P]:N,[F]:400},[j],[0]];L.registerError(zue,C$);var Bue=[-3,I,wce,{[M]:[`PriorRequestNotComplete`,429],[P]:N,[F]:429},[j],[0]];L.registerError(Bue,R$);var Vue=[-3,I,Hce,{[M]:[`ResourceInUse`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Vue,b$);var Hue=[-3,I,Uce,{[M]:[`ResourceNotFound`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Hue,I$);var Uue=[-3,I,Rce,{[M]:[`RevocationContentNotFound`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Uue,qQ);var Wue=[-3,I,Vce,{[M]:[`RevocationIdNotFound`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Wue,F$);var Gue=[-3,I,Wce,{[M]:[`RuleNotFound`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Gue,HQ);var Kue=[-3,I,vle,{[M]:[`SSLPolicyNotFound`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Kue,o$);var que=[-3,I,lle,{[M]:[`SubnetNotFound`,400],[P]:N,[F]:400},[j],[0]];L.registerError(que,x$);var Jue=[-3,I,wle,{[M]:[`TargetGroupAssociationLimit`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Jue,s$);var Yue=[-3,I,Ale,{[M]:[`TargetGroupNotFound`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Yue,UQ);var Xue=[-3,I,Ile,{[M]:[`TooManyActions`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Xue,c$);var Zue=[-3,I,Lle,{[M]:[`TooManyCertificates`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Zue,zQ);var Que=[-3,I,zle,{[M]:[`TooManyListeners`,400],[P]:N,[F]:400},[j],[0]];L.registerError(Que,l$);var $ue=[-3,I,Rle,{[M]:[`TooManyLoadBalancers`,400],[P]:N,[F]:400},[j],[0]];L.registerError($ue,S$);var ede=[-3,I,Vle,{[M]:[`TooManyRegistrationsForTargetId`,400],[P]:N,[F]:400},[j],[0]];L.registerError(ede,u$);var tde=[-3,I,Ble,{[M]:[`TooManyRules`,400],[P]:N,[F]:400},[j],[0]];L.registerError(tde,w$);var nde=[-3,I,Hle,{[M]:[`TooManyTags`,400],[P]:N,[F]:400},[j],[0]];L.registerError(nde,WQ);var rde=[-3,I,Wle,{[M]:[`TooManyTargetGroups`,400],[P]:N,[F]:400},[j],[0]];L.registerError(rde,T$);var ide=[-3,I,Ule,{[M]:[`TooManyTargets`,400],[P]:N,[F]:400},[j],[0]];L.registerError(ide,d$);var ade=[-3,I,Kle,{[M]:[`TooManyTrustStoreRevocationEntries`,400],[P]:N,[F]:400},[j],[0]];L.registerError(ade,JQ);var ode=[-3,I,Gle,{[M]:[`TooManyTrustStores`,400],[P]:N,[F]:400},[j],[0]];L.registerError(ode,k$);var sde=[-3,I,qle,{[M]:[`TooManyUniqueTargetGroupsPerLoadBalancer`,400],[P]:N,[F]:400},[j],[0]];L.registerError(sde,f$);var cde=[-3,I,Yle,{[M]:[`AssociationNotFound`,400],[P]:N,[F]:400},[j],[0]];L.registerError(cde,j$);var lde=[-3,I,Zle,{[M]:[`TrustStoreInUse`,400],[P]:N,[F]:400},[j],[0]];L.registerError(lde,M$);var ude=[-3,I,Qle,{[M]:[`TrustStoreNotFound`,400],[P]:N,[F]:400},[j],[0]];L.registerError(ude,GQ);var dde=[-3,I,$le,{[M]:[`TrustStoreNotReady`,400],[P]:N,[F]:400},[j],[0]];L.registerError(dde,p$);var fde=[-3,I,sue,{[M]:[`UnsupportedProtocol`,400],[P]:N,[F]:400},[j],[0]];L.registerError(fde,m$);var pde=[L4,L],mde=[3,I,z$,0,[v4,S4,Y$,V$,vce,Fce,U0,V0,Wse],[0,0,()=>bde,()=>yde,1,()=>Afe,()=>ofe,()=>sfe,()=>pfe],1],hde=[3,I,$$,0,[t4,D4],[64,()=>$4],2],gde=[3,I,e1,0,[],[]],_de=[3,I,q$,0,[o4,e4,R1],[0,0,0]],vde=[3,I,H$,0,[ele,ice],[0,0]],yde=[3,I,Use,0,[iue,aue,oue,c4,h4,m4,Z$,q2],[0,0,0,0,0,1,128,0],3],bde=[3,I,J$,0,[u2,U$,Cle,rue,f1,E1,c4,h4,m4,Z$,q2,nue],[0,0,0,0,0,0,0,0,1,128,0,2],5],xde=[3,I,n1,0,[lue,u4,yce,R2,ule],[0,0,0,()=>rpe,64]],Sde=[3,I,N1,0,[c1,_2],[0,2]],Cde=[3,I,P1,0,[W2,J2],[0,1]],wde=[3,I,_1,0,[z2,z1,$2,Q2,f4,s1,X$,D4,V2],[0,()=>H4,0,1,0,()=>W4,64,()=>$4,()=>B4],2],Tde=[3,I,v1,0,[F2],[()=>G4]],Ede=[3,I,h1,0,[W2,_4,d4,l4,g4,D4,v4,f2,x1,L0,b2],[0,64,()=>Q4,64,0,()=>$4,0,0,0,0,()=>R4],1],Dde=[3,I,g1,0,[L2],[()=>q4]],Ode=[3,I,C1,0,[I2,L1,J2,a1,D4,k4],[0,()=>Y4,1,()=>H4,()=>$4,()=>Z4],4],kde=[3,I,w1,0,[a4],[()=>X4]],Ade=[3,I,k1,0,[W2,$2,Z2,Q2,N4,X0,Z0,J0,Q0,Y0,$0,c2,j4,H2,E4,D4,f2,y4],[0,0,0,1,0,0,0,2,0,1,1,1,1,()=>z4,0,()=>$4,0,1],1],jde=[3,I,A1,0,[x4],[()=>n3]],Mde=[3,I,$1,0,[I2],[0],1],Nde=[3,I,t0,0,[],[]],Pde=[3,I,K1,0,[z2],[0],1],Fde=[3,I,Y1,0,[],[]],Ide=[3,I,o0,0,[n4],[0],1],Lde=[3,I,c0,0,[],[]],Rde=[3,I,b0,0,[S4],[0],1],zde=[3,I,C0,0,[],[]],Bde=[3,I,k0,0,[S4,O4],[0,()=>e3],2],Vde=[3,I,M0,0,[],[]],Hde=[3,I,e0,0,[z2,Gse,U2,X2],[0,64,0,1]],Ude=[3,I,n0,0,[F2,G2],[()=>G4,0]],Wde=[3,I,W1,0,[z2],[0],1],Gde=[3,I,G1,0,[o1],[()=>K4]],Kde=[3,I,q1,0,[B2,K2,U2,X2],[64,64,0,1]],qde=[3,I,X1,0,[L2,G2],[()=>q4,0]],Jde=[3,I,s0,0,[I2,Pce,U2,X2],[0,64,0,1]],Yde=[3,I,l0,0,[a4,G2],[()=>X4,0]],Xde=[3,I,p0,0,[K2,U2,X2,Qse],[64,0,1,0]],Zde=[3,I,m0,0,[p4,G2],[()=>ape,0]],Qde=[3,I,A0,0,[t4],[64],1],$de=[3,I,N0,0,[b4],[()=>ope]],efe=[3,I,v0,0,[S4],[0],1],tfe=[3,I,y0,0,[o1],[()=>t3]],nfe=[3,I,x0,0,[z2,Tle,K2,U2,X2],[0,64,64,0,1]],rfe=[3,I,w0,0,[x4,G2],[()=>n3,0]],ife=[3,I,D0,0,[S4,O4,k2],[0,()=>e3,64],1],afe=[3,I,O0,0,[T4],[()=>cpe]],ofe=[3,I,H0,0,[s4,rce,D1],[0,0,0],1],sfe=[3,I,B0,0,[x4,C4],[()=>spe,()=>Xfe]],cfe=[3,I,t2,0,[M4,r4],[64,64]],lfe=[3,I,a2,0,[i4],[()=>J4]],ufe=[3,I,n2,0,[i2,M4,r4],[0,64,64]],dfe=[3,I,s2,0,[M4],[64]],R4=[3,I,b2,0,[v2],[0]],ffe=[3,I,j2,0,[z0,W2,M4],[0,0,64],3],pfe=[3,I,N2,0,[A2,u2,B$],[0,0,()=>npe],2],mfe=[3,I,tce,0,[I2,z2,Q2,$2,s1,f4,z1,X$,V2],[0,0,1,0,()=>W4,0,()=>H4,64,()=>B4]],hfe=[3,I,$se,0,[z2,i0,d1,j1,Yse,g4,N4,o4,v4,i1,l4,f2,x1,R0,L0,b2],[0,0,0,4,0,0,0,()=>vfe,0,()=>U4,64,0,0,0,0,()=>R4]],gfe=[3,I,Kse,0,[d2,W$,Y2,x2],[0,0,0,0]],_fe=[3,I,qse,0,[P2,P4],[0,0]],vfe=[3,I,Zse,0,[I1,e4],[0,0]],z4=[3,I,H2,0,[q0,G0],[0,0]],yfe=[3,I,lce,0,[I2,Q2,$2,f4,s1,z1,X$,V2],[0,1,0,0,()=>W4,()=>H4,64,()=>B4],1],bfe=[3,I,uce,0,[F2],[()=>G4]],xfe=[3,I,sce,0,[z2,o1],[0,()=>K4],2],Sfe=[3,I,cce,0,[o1],[()=>K4]],Cfe=[3,I,fce,0,[n4,L1,a1,k4,Xce],[0,()=>Y4,()=>H4,()=>Z4,2],1],wfe=[3,I,pce,0,[a4],[()=>X4]],Tfe=[3,I,hce,0,[S4,o1],[0,()=>t3],2],Efe=[3,I,gce,0,[o1],[()=>t3]],B4=[3,I,nce,0,[_ce,Jle,m2,Xle,t1],[0,0,2,0,0]],Dfe=[3,I,Cce,0,[M4,r4],[64,64]],Ofe=[3,I,Oce,0,[M4],[()=>ipe]],kfe=[3,I,Ace,0,[P2,P4],[0,0]],Afe=[3,I,Mce,0,[s4,$2,Q2,K0,Tce,Ece],[0,0,0,0,0,0],1],jfe=[3,I,Gce,0,[S4,O4],[0,()=>e3],2],Mfe=[3,I,Jce,0,[],[]],Nfe=[3,I,Kce,0,[t4,Ple],[64,64],2],Pfe=[3,I,Yce,0,[],[]],Ffe=[3,I,zce,0,[tle,nle],[0,0],2],Ife=[3,I,rle,0,[n4,J2,L1,a1,_2,k4],[0,0,()=>Y4,()=>H4,2,()=>Z4]],Lfe=[3,I,Bce,0,[W0,M4,e2,Sce,r2,Dce,o2,ale,r4],[0,64,()=>cfe,()=>Dfe,()=>ufe,()=>Ofe,()=>dfe,()=>Ufe,64]],Rfe=[3,I,$ce,0,[v4,a2,A4],[0,()=>lfe,()=>epe],1],zfe=[3,I,hle,0,[z2,l4,R0],[0,64,0],2],Bfe=[3,I,gle,0,[ile,R0],[64,0]],Vfe=[3,I,_le,0,[z2,_4,d4,f2,L0],[0,64,()=>Q4,0,0],1],Hfe=[3,I,yle,0,[i1,f2,L0],[()=>U4,0,0]],Ufe=[3,I,ole,0,[M4],[64]],Wfe=[3,I,f4,0,[fle,F1,W2,sle],[64,()=>tpe,0,64]],Gfe=[3,I,cle,0,[u4,W$,Y2,x2,dle],[0,0,0,0,0]],Kfe=[3,I,eue,0,[P2,P4],[0,0],1],qfe=[3,I,ble,0,[Nce,D4],[0,()=>$4]],V4=[3,I,xle,0,[O2,Q2,n1,kce],[0,1,0,0],1],Jfe=[3,I,Mle,0,[S4,kle,$2,Q2,N4,X0,Z0,J0,Y0,$0,c2,j4,Q0,H2,B2,E4,Z2,f2,y4],[0,0,0,1,0,0,0,2,1,1,1,1,0,()=>z4,64,0,0,0,1]],Yfe=[3,I,Ele,0,[P2,P4],[0,0]],Xfe=[3,I,C4,0,[I0,d0],[2,1]],Zfe=[3,I,jle,0,[S4,cue],[0,1]],Qfe=[3,I,w4,0,[o4,e4,R1],[0,0,0]],$fe=[3,I,Nle,0,[tue,Z0,w4,H$,q$],[()=>V4,0,()=>Qfe,()=>vde,()=>_de]],epe=[3,I,A4,0,[i4],[()=>J4]],H4=[1,I,a1,0,()=>mde],U4=[1,I,i1,0,()=>xde],W4=[1,I,p1,0,()=>Sde],tpe=[1,I,F1,0,()=>Cde],npe=[1,I,M2,0,()=>ffe],G4=[1,I,F2,0,()=>mfe],rpe=[1,I,R2,0,()=>gfe],K4=[1,I,Jse,0,()=>_fe],q4=[1,I,L2,0,()=>hfe],ipe=[1,I,jce,0,()=>kfe],J4=[1,I,Ice,0,()=>Ffe],Y4=[1,I,Lce,0,()=>Lfe],X4=[1,I,a4,0,()=>Ife],Z4=[1,I,qce,0,()=>Rfe],ape=[1,I,p4,0,()=>Wfe],Q4=[1,I,d4,0,()=>Gfe],ope=[1,I,b4,0,()=>qfe],$4=[1,I,Fle,0,()=>Kfe],e3=[1,I,Sle,0,()=>V4],t3=[1,I,Dle,0,()=>Yfe],spe=[1,I,Ole,0,()=>Zfe],n3=[1,I,x4,0,()=>Jfe],cpe=[1,I,T4,0,()=>$fe],lpe=[9,I,Q$,0,()=>hde,()=>gde],upe=[9,I,y1,0,()=>wde,()=>Tde],dpe=[9,I,m1,0,()=>Ede,()=>Dde],fpe=[9,I,S1,0,()=>Ode,()=>kde],ppe=[9,I,O1,0,()=>Ade,()=>jde],mpe=[9,I,V1,0,()=>Mde,()=>Nde],hpe=[9,I,H1,0,()=>Pde,()=>Fde],gpe=[9,I,a0,0,()=>Ide,()=>Lde],_pe=[9,I,g0,0,()=>Rde,()=>zde],vpe=[9,I,h0,0,()=>Bde,()=>Vde],ype=[9,I,r0,0,()=>Hde,()=>Ude],bpe=[9,I,U1,0,()=>Wde,()=>Gde],xpe=[9,I,Z1,0,()=>Kde,()=>qde],Spe=[9,I,u0,0,()=>Jde,()=>Yde],Cpe=[9,I,f0,0,()=>Xde,()=>Zde],wpe=[9,I,F0,0,()=>Qde,()=>$de],Tpe=[9,I,_0,0,()=>efe,()=>tfe],Epe=[9,I,T0,0,()=>nfe,()=>rfe],Dpe=[9,I,E0,0,()=>ife,()=>afe],Ope=[9,I,ace,0,()=>yfe,()=>bfe],kpe=[9,I,oce,0,()=>xfe,()=>Sfe],Ape=[9,I,dce,0,()=>Cfe,()=>wfe],jpe=[9,I,mce,0,()=>Tfe,()=>Efe],Mpe=[9,I,Zce,0,()=>jfe,()=>Mfe],Npe=[9,I,Qce,0,()=>Nfe,()=>Pfe],Ppe=[9,I,mle,0,()=>zfe,()=>Bfe],Fpe=[9,I,ple,0,()=>Vfe,()=>Hfe],Ipe=e=>({apiVersion:`2015-12-01`,base64Decoder:e?.base64Decoder??yt,base64Encoder:e?.base64Encoder??Ct,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??IQ,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??hQ,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new ie}],logger:e?.logger??new ze,protocol:e?.protocol??Ke,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.elasticloadbalancingv2`,errorTypeRegistries:pde,xmlNamespace:`http://elasticloadbalancing.amazonaws.com/doc/2015-12-01/`,version:`2015-12-01`,serviceTarget:`ElasticLoadBalancing_v10`},serviceId:e?.serviceId??`Elastic Load Balancing v2`,urlParser:e?.urlParser??Ze,utf8Decoder:e?.utf8Decoder??vt,utf8Encoder:e?.utf8Encoder??xt}),Lpe=e=>{let t=xe(e),n=()=>t().then(Ve),r=Ipe(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Dt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??he({serviceId:r.serviceId,clientVersion:yQ.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??$e(`Region is missing`),requestHandler:ke.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Ie),sha256:e?.sha256??oe,streamCollector:e?.streamCollector??dt,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},Rpe=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},zpe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Bpe=(e,t)=>{let n=Object.assign(Xe(e),ct(e),re(e),Rpe(e));return t.forEach(e=>e.configure(n)),Object.assign(e,ye(n),mt(n),We(n),zpe(n))},Vpe=class extends we{config;constructor(...[e]){let t=Lpe(e||{});super(t),this.initConfig=t;let n=Bpe(gQ(Ue(_e(Te(Le(Oe(_Q(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(ue(this.config)),this.middlewareStack.use(ve(this.config)),this.middlewareStack.use(ge(this.config)),this.middlewareStack.use(De(this.config)),this.middlewareStack.use(pe(this.config)),this.middlewareStack.use(Fe(this.config)),this.middlewareStack.use(Ne(this.config)),this.middlewareStack.use(me(this.config,{httpAuthSchemeParametersProvider:pQ,identityProviderConfigProvider:async e=>new ht({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(ae(this.config))}destroy(){super.destroy()}},Hpe=async(e,t,n)=>({operation:fe(t).operation,region:await be(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Upe(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`iam`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var Wpe=e=>{let t=[];switch(e.operation){default:t.push(Upe(e))}return t},Gpe=e=>{let t=le(e);return Object.assign(t,{authSchemePreference:be(e.authSchemePreference??[])})},Kpe=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`iam`}),qpe={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},Jpe={name:`@aws-sdk/client-iam`,description:`AWS SDK for JavaScript Iam Client for Node.js, Browser and React Native`,version:`3.1067.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo iam`,test:`yarn g:vitest run --passWithNoTests`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts --mode development`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`,"test:integration":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:watch":`yarn g:vitest watch --passWithNoTests`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.20`,"@aws-sdk/credential-provider-node":`^3.972.55`,"@aws-sdk/types":`^3.973.12`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@smithy/snapshot-testing":`^2.1.7`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-iam`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-iam`}},r3=`ref`,i3=`authSchemes`,a3=`name`,o3=`signingRegion`,s3=-1,c3=!0,l3=`isSet`,u3=`PartitionResult`,d3=`booleanEquals`,f3=`stringEquals`,p3=`getAttr`,m3=`sigv4`,h3={[r3]:`Endpoint`},g3={fn:p3,argv:[{[r3]:u3},`name`]},_3={[r3]:u3},v3={[i3]:[{[a3]:m3,[o3]:`us-east-1`}]},y3={[i3]:[{[a3]:m3,[o3]:`cn-north-1`}]},b3={[i3]:[{[a3]:m3,[o3]:`us-gov-west-1`}]},x3={[i3]:[{[a3]:m3,[o3]:`us-iso-east-1`}]},S3={[i3]:[{[a3]:m3,[o3]:`us-isob-east-1`}]},C3={[i3]:[{[a3]:m3,[o3]:`{PartitionResult#implicitGlobalRegion}`}]},w3=[{[r3]:`Region`}],T3={conditions:[[l3,[h3]],[l3,w3],[`aws.partition`,w3,u3],[d3,[{[r3]:`UseFIPS`},c3]],[d3,[{[r3]:`UseDualStack`},c3]],[f3,[g3,`aws`]],[f3,[g3,`aws-cn`]],[f3,[g3,`aws-us-gov`]],[d3,[{fn:p3,argv:[_3,`supportsDualStack`]},c3]],[f3,[g3,`aws-iso`]],[f3,[g3,`aws-iso-b`]],[d3,[{fn:p3,argv:[_3,`supportsFIPS`]},c3]],[f3,[g3,`aws-iso-e`]],[f3,[g3,`aws-iso-f`]],[f3,[g3,`aws-eusc`]]],results:[[s3],[s3,`Invalid Configuration: FIPS and custom endpoint are not supported`],[s3,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[h3,{}],[`https://iam.global.api.aws`,v3],[`https://iam-fips.global.api.aws`,v3],[`https://iam.global.api.amazonwebservices.com.cn`,y3],[`https://iam.cn-north-1.amazonaws.com.cn`,y3],[`https://iam.us-gov.api.aws`,b3],[`https://iam.us-gov.amazonaws.com`,b3],[`https://iam.us-iso-east-1.c2s.ic.gov`,x3],[`https://iam-fips.us-iso-east-1.c2s.ic.gov`,x3],[`https://iam.us-isob-east-1.sc2s.sgov.gov`,S3],[`https://iam-fips.us-isob-east-1.sc2s.sgov.gov`,S3],[`https://iam.eu-isoe-west-1.cloud.adc-e.uk`,{[i3]:[{[a3]:m3,[o3]:`eu-isoe-west-1`}]}],[`https://iam.us-isof-south-1.csp.hci.ic.gov`,{[i3]:[{[a3]:m3,[o3]:`us-isof-south-1`}]}],[`https://iam.eusc-de-east-1.amazonaws.eu`,{[i3]:[{[a3]:m3,[o3]:`eusc-de-east-1`}]}],[`https://iam-fips.{PartitionResult#dualStackDnsSuffix}`,C3],[s3,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://iam-fips.{PartitionResult#dnsSuffix}`,C3],[s3,`FIPS is enabled but this partition does not support FIPS`],[`https://iam.{PartitionResult#dualStackDnsSuffix}`,C3],[s3,`DualStack is enabled but this partition does not support DualStack`],[`https://iam.{PartitionResult#dnsSuffix}`,C3],[s3,`Invalid Configuration: Missing Region`]]},Ype=2,Xpe=new Int32Array([-1,1,-1,0,27,3,1,4,100000024,2,5,100000024,3,18,6,4,14,7,6,100000007,8,7,100000009,9,9,100000010,10,10,100000012,11,12,100000014,12,13,100000015,13,14,100000016,100000023,5,100000004,15,6,100000006,16,7,100000008,17,8,100000021,100000022,4,23,19,7,100000009,20,9,100000011,21,10,100000013,22,11,100000019,100000020,5,100000005,24,7,100000008,25,8,26,100000018,11,100000017,100000018,3,100000001,28,4,100000002,100000003]),Zpe=Je.from(Xpe,Ype,T3.conditions,T3.results),Qpe=new et({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),$pe=(e,t={})=>Qpe.get(e,()=>Ge(Zpe,{endpointParams:e,logger:t.logger}));rt.aws=de;var R=class e extends ft{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},eme=class e extends R{name=`ConcurrentModificationException`;$fault=`client`;constructor(t){super({name:`ConcurrentModificationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},tme=class e extends R{name=`NoSuchEntityException`;$fault=`client`;constructor(t){super({name:`NoSuchEntityException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},nme=class e extends R{name=`ServiceFailureException`;$fault=`server`;constructor(t){super({name:`ServiceFailureException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},rme=class e extends R{name=`AccountNotManagementOrDelegatedAdministratorException`;$fault=`client`;Message;constructor(t){super({name:`AccountNotManagementOrDelegatedAdministratorException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},ime=class e extends R{name=`InvalidInputException`;$fault=`client`;constructor(t){super({name:`InvalidInputException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ame=class e extends R{name=`LimitExceededException`;$fault=`client`;constructor(t){super({name:`LimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ome=class e extends R{name=`EntityAlreadyExistsException`;$fault=`client`;constructor(t){super({name:`EntityAlreadyExistsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},sme=class e extends R{name=`UnmodifiableEntityException`;$fault=`client`;constructor(t){super({name:`UnmodifiableEntityException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},cme=class e extends R{name=`PolicyNotAttachableException`;$fault=`client`;constructor(t){super({name:`PolicyNotAttachableException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},lme=class e extends R{name=`EntityTemporarilyUnmodifiableException`;$fault=`client`;constructor(t){super({name:`EntityTemporarilyUnmodifiableException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ume=class e extends R{name=`InvalidUserTypeException`;$fault=`client`;constructor(t){super({name:`InvalidUserTypeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},dme=class e extends R{name=`PasswordPolicyViolationException`;$fault=`client`;constructor(t){super({name:`PasswordPolicyViolationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},fme=class e extends R{name=`OpenIdIdpCommunicationErrorException`;$fault=`client`;constructor(t){super({name:`OpenIdIdpCommunicationErrorException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},pme=class e extends R{name=`MalformedPolicyDocumentException`;$fault=`client`;constructor(t){super({name:`MalformedPolicyDocumentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},mme=class e extends R{name=`ServiceNotSupportedException`;$fault=`client`;constructor(t){super({name:`ServiceNotSupportedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},hme=class e extends R{name=`DeleteConflictException`;$fault=`client`;constructor(t){super({name:`DeleteConflictException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},gme=class e extends R{name=`OrganizationNotFoundException`;$fault=`client`;Message;constructor(t){super({name:`OrganizationNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},_me=class e extends R{name=`OrganizationNotInAllFeaturesModeException`;$fault=`client`;Message;constructor(t){super({name:`OrganizationNotInAllFeaturesModeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},vme=class e extends R{name=`ServiceAccessNotEnabledException`;$fault=`client`;Message;constructor(t){super({name:`ServiceAccessNotEnabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},yme=class e extends R{name=`FeatureDisabledException`;$fault=`client`;constructor(t){super({name:`FeatureDisabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},bme=class e extends R{name=`InvalidAuthenticationCodeException`;$fault=`client`;constructor(t){super({name:`InvalidAuthenticationCodeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},xme=class e extends R{name=`CallerIsNotManagementAccountException`;$fault=`client`;Message;constructor(t){super({name:`CallerIsNotManagementAccountException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.Message=t.Message}},Sme=class e extends R{name=`FeatureEnabledException`;$fault=`client`;constructor(t){super({name:`FeatureEnabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Cme=class e extends R{name=`ReportGenerationLimitExceededException`;$fault=`client`;constructor(t){super({name:`ReportGenerationLimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},wme=class e extends R{name=`CredentialReportExpiredException`;$fault=`client`;constructor(t){super({name:`CredentialReportExpiredException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Tme=class e extends R{name=`CredentialReportNotPresentException`;$fault=`client`;constructor(t){super({name:`CredentialReportNotPresentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Eme=class e extends R{name=`CredentialReportNotReadyException`;$fault=`client`;constructor(t){super({name:`CredentialReportNotReadyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Dme=class e extends R{name=`UnrecognizedPublicKeyEncodingException`;$fault=`client`;constructor(t){super({name:`UnrecognizedPublicKeyEncodingException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Ome=class e extends R{name=`PolicyEvaluationException`;$fault=`server`;constructor(t){super({name:`PolicyEvaluationException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},kme=class e extends R{name=`KeyPairMismatchException`;$fault=`client`;constructor(t){super({name:`KeyPairMismatchException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Ame=class e extends R{name=`MalformedCertificateException`;$fault=`client`;constructor(t){super({name:`MalformedCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},jme=class e extends R{name=`DuplicateCertificateException`;$fault=`client`;constructor(t){super({name:`DuplicateCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Mme=class e extends R{name=`InvalidCertificateException`;$fault=`client`;constructor(t){super({name:`InvalidCertificateException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Nme=class e extends R{name=`DuplicateSSHPublicKeyException`;$fault=`client`;constructor(t){super({name:`DuplicateSSHPublicKeyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Pme=class e extends R{name=`InvalidPublicKeyException`;$fault=`client`;constructor(t){super({name:`InvalidPublicKeyException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},E3=`Arn`,Fme=`AttachmentCount`,D3=`AccessKey`,O3=`AccessKeyId`,k3=`AccessKeyMetadata`,Ime=`AccountNotManagementOrDelegatedAdministratorException`,Lme=`AttachedPolicy`,Rme=`AttachedPermissionsBoundary`,A3=`AttachedPolicies`,zme=`AttachRolePolicy`,j3=`AssumeRolePolicyDocument`,Bme=`AttachRolePolicyRequest`,Vme=`AddRoleToInstanceProfile`,Hme=`AddRoleToInstanceProfileRequest`,Ume=`AttachUserPolicy`,Wme=`AttachUserPolicyRequest`,Gme=`CreateAccessKey`,Kme=`CreateAccessKeyRequest`,qme=`CreateAccessKeyResponse`,M3=`CreateDate`,Jme=`CallerIsNotManagementAccountException`,Yme=`CreateInstanceProfile`,Xme=`CreateInstanceProfileRequest`,Zme=`CreateInstanceProfileResponse`,Qme=`ConcurrentModificationException`,$me=`CreatePolicyRequest`,ehe=`CreatePolicyResponse`,the=`CreatePolicy`,nhe=`CreateRole`,rhe=`CredentialReportExpiredException`,ihe=`CredentialReportNotPresentException`,ahe=`CredentialReportNotReadyException`,ohe=`CreateRoleRequest`,she=`CreateRoleResponse`,che=`CreateUser`,lhe=`CreateUserRequest`,uhe=`CreateUserResponse`,N3=`Description`,dhe=`DeleteAccessKey`,fhe=`DeleteAccessKeyRequest`,phe=`DeleteConflictException`,mhe=`DuplicateCertificateException`,hhe=`DeleteInstanceProfile`,ghe=`DeleteInstanceProfileRequest`,_he=`DeletePolicyRequest`,vhe=`DeletePolicy`,yhe=`DetachRolePolicyRequest`,bhe=`DetachRolePolicy`,xhe=`DeleteRoleRequest`,She=`DeleteRole`,Che=`DuplicateSSHPublicKeyException`,whe=`DeleteUser`,The=`DetachUserPolicyRequest`,Ehe=`DetachUserPolicy`,Dhe=`DeleteUserRequest`,Ohe=`DefaultVersionId`,khe=`Document`,Ahe=`EntityAlreadyExistsException`,jhe=`EntityTemporarilyUnmodifiableException`,Mhe=`FeatureDisabledException`,Nhe=`FeatureEnabledException`,Phe=`GetInstanceProfile`,Fhe=`GetInstanceProfileRequest`,Ihe=`GetInstanceProfileResponse`,Lhe=`GetPolicy`,Rhe=`GetPolicyRequest`,zhe=`GetPolicyResponse`,Bhe=`GetPolicyVersion`,Vhe=`GetPolicyVersionRequest`,Hhe=`GetPolicyVersionResponse`,Uhe=`GetRole`,Whe=`GetRoleRequest`,Ghe=`GetRoleResponse`,Khe=`GetUser`,qhe=`GetUserRequest`,Jhe=`GetUserResponse`,Yhe=`IsAttachable`,Xhe=`InvalidAuthenticationCodeException`,Zhe=`InvalidCertificateException`,Qhe=`IsDefaultVersion`,$he=`InvalidInputException`,P3=`InstanceProfile`,ege=`InstanceProfileId`,tge=`InvalidPublicKeyException`,F3=`InstanceProfileName`,I3=`InstanceProfiles`,L3=`IsTruncated`,nge=`InvalidUserTypeException`,rge=`Key`,ige=`KeyPairMismatchException`,age=`ListAccessKeys`,oge=`ListAccessKeysRequest`,sge=`ListAccessKeysResponse`,cge=`ListAttachedRolePolicies`,lge=`ListAttachedRolePoliciesRequest`,uge=`ListAttachedRolePoliciesResponse`,dge=`ListAttachedUserPolicies`,fge=`ListAttachedUserPoliciesRequest`,pge=`ListAttachedUserPoliciesResponse`,mge=`LimitExceededException`,hge=`ListInstanceProfiles`,gge=`ListInstanceProfilesForRole`,_ge=`ListInstanceProfilesForRoleRequest`,vge=`ListInstanceProfilesForRoleResponse`,yge=`ListInstanceProfilesRequest`,bge=`ListInstanceProfilesResponse`,xge=`ListPoliciesRequest`,Sge=`ListPoliciesResponse`,Cge=`ListPolicies`,wge=`ListRoles`,Tge=`ListRolesRequest`,Ege=`ListRolesResponse`,Dge=`ListUsers`,Oge=`LastUsedDate`,kge=`ListUsersRequest`,Age=`ListUsersResponse`,R3=`Message`,jge=`MalformedCertificateException`,z3=`MaxItems`,Mge=`MalformedPolicyDocumentException`,B3=`MaxSessionDuration`,V3=`Marker`,Nge=`NoSuchEntityException`,Pge=`OnlyAttached`,Fge=`OpenIdIdpCommunicationErrorException`,Ige=`OrganizationNotFoundException`,Lge=`OrganizationNotInAllFeaturesModeException`,H3=`PolicyArn`,U3=`PermissionsBoundary`,Rge=`PermissionsBoundaryArn`,zge=`PermissionsBoundaryType`,Bge=`PermissionsBoundaryUsageCount`,Vge=`PolicyDocument`,Hge=`PolicyEvaluationException`,Uge=`PolicyId`,Wge=`PasswordLastUsed`,W3=`PolicyName`,Gge=`PolicyNotAttachableException`,Kge=`PasswordPolicyViolationException`,G3=`PathPrefix`,qge=`PolicyUsageFilter`,K3=`PolicyVersion`,q3=`Path`,J3=`Policy`,Jge=`Policies`,Yge=`Region`,Xge=`ReportGenerationLimitExceededException`,Zge=`RoleId`,Y3=`RoleLastUsed`,X3=`RoleName`,Qge=`RemoveRoleFromInstanceProfile`,$ge=`RemoveRoleFromInstanceProfileRequest`,Z3=`Role`,Q3=`Roles`,$3=`Status`,e_e=`SecretAccessKey`,t_e=`ServiceAccessNotEnabledException`,n_e=`ServiceFailureException`,r_e=`ServiceNotSupportedException`,i_e=`Scope`,e6=`Tags`,a_e=`Tag`,o_e=`UpdateAccessKey`,s_e=`UpdateAccessKeyRequest`,c_e=`UpdateDate`,l_e=`UnmodifiableEntityException`,u_e=`UserId`,t6=`UserName`,d_e=`UnrecognizedPublicKeyEncodingException`,n6=`User`,f_e=`Users`,r6=`VersionId`,p_e=`Value`,m_e=`accessKeyMetadataListType`,h_e=`accessKeySecretType`,g_e=`attachedPoliciesListType`,z=`awsQueryError`,B=`client`,V=`error`,H=`httpError`,__e=`instanceProfileListType`,U=`message`,v_e=`policyListType`,y_e=`roleListType`,i6=`smithy.ts.sdk.synthetic.com.amazonaws.iam`,a6=`server`,b_e=`tagListType`,x_e=`userListType`,W=`com.amazonaws.iam`,o6=se.for(i6),S_e=[-3,i6,`IAMServiceException`,0,[],[]];o6.registerError(S_e,R);var G=se.for(W),C_e=[-3,W,Ime,{[V]:B,[H]:400},[R3],[0]];G.registerError(C_e,rme);var w_e=[-3,W,Jme,{[V]:B,[H]:400},[R3],[0]];G.registerError(w_e,xme);var T_e=[-3,W,Qme,{[z]:[`ConcurrentModification`,409],[V]:B,[H]:409},[U],[0]];G.registerError(T_e,eme);var E_e=[-3,W,rhe,{[z]:[`ReportExpired`,410],[V]:B,[H]:410},[U],[0]];G.registerError(E_e,wme);var D_e=[-3,W,ihe,{[z]:[`ReportNotPresent`,410],[V]:B,[H]:410},[U],[0]];G.registerError(D_e,Tme);var O_e=[-3,W,ahe,{[z]:[`ReportInProgress`,404],[V]:B,[H]:404},[U],[0]];G.registerError(O_e,Eme);var k_e=[-3,W,phe,{[z]:[`DeleteConflict`,409],[V]:B,[H]:409},[U],[0]];G.registerError(k_e,hme);var A_e=[-3,W,mhe,{[z]:[`DuplicateCertificate`,409],[V]:B,[H]:409},[U],[0]];G.registerError(A_e,jme);var j_e=[-3,W,Che,{[z]:[`DuplicateSSHPublicKey`,400],[V]:B,[H]:400},[U],[0]];G.registerError(j_e,Nme);var M_e=[-3,W,Ahe,{[z]:[`EntityAlreadyExists`,409],[V]:B,[H]:409},[U],[0]];G.registerError(M_e,ome);var N_e=[-3,W,jhe,{[z]:[`EntityTemporarilyUnmodifiable`,409],[V]:B,[H]:409},[U],[0]];G.registerError(N_e,lme);var P_e=[-3,W,Mhe,{[z]:[`FeatureDisabled`,404],[V]:B,[H]:404},[U],[0]];G.registerError(P_e,yme);var F_e=[-3,W,Nhe,{[z]:[`FeatureEnabled`,409],[V]:B,[H]:409},[U],[0]];G.registerError(F_e,Sme);var I_e=[-3,W,Xhe,{[z]:[`InvalidAuthenticationCode`,403],[V]:B,[H]:403},[U],[0]];G.registerError(I_e,bme);var L_e=[-3,W,Zhe,{[z]:[`InvalidCertificate`,400],[V]:B,[H]:400},[U],[0]];G.registerError(L_e,Mme);var R_e=[-3,W,$he,{[z]:[`InvalidInput`,400],[V]:B,[H]:400},[U],[0]];G.registerError(R_e,ime);var z_e=[-3,W,tge,{[z]:[`InvalidPublicKey`,400],[V]:B,[H]:400},[U],[0]];G.registerError(z_e,Pme);var B_e=[-3,W,nge,{[z]:[`InvalidUserType`,400],[V]:B,[H]:400},[U],[0]];G.registerError(B_e,ume);var V_e=[-3,W,ige,{[z]:[`KeyPairMismatch`,400],[V]:B,[H]:400},[U],[0]];G.registerError(V_e,kme);var H_e=[-3,W,mge,{[z]:[`LimitExceeded`,409],[V]:B,[H]:409},[U],[0]];G.registerError(H_e,ame);var U_e=[-3,W,jge,{[z]:[`MalformedCertificate`,400],[V]:B,[H]:400},[U],[0]];G.registerError(U_e,Ame);var W_e=[-3,W,Mge,{[z]:[`MalformedPolicyDocument`,400],[V]:B,[H]:400},[U],[0]];G.registerError(W_e,pme);var G_e=[-3,W,Nge,{[z]:[`NoSuchEntity`,404],[V]:B,[H]:404},[U],[0]];G.registerError(G_e,tme);var K_e=[-3,W,Fge,{[z]:[`OpenIdIdpCommunicationError`,400],[V]:B,[H]:400},[U],[0]];G.registerError(K_e,fme);var q_e=[-3,W,Ige,{[V]:B,[H]:400},[R3],[0]];G.registerError(q_e,gme);var J_e=[-3,W,Lge,{[V]:B,[H]:400},[R3],[0]];G.registerError(J_e,_me);var Y_e=[-3,W,Kge,{[z]:[`PasswordPolicyViolation`,400],[V]:B,[H]:400},[U],[0]];G.registerError(Y_e,dme);var X_e=[-3,W,Hge,{[z]:[`PolicyEvaluation`,500],[V]:a6,[H]:500},[U],[0]];G.registerError(X_e,Ome);var Z_e=[-3,W,Gge,{[z]:[`PolicyNotAttachable`,400],[V]:B,[H]:400},[U],[0]];G.registerError(Z_e,cme);var Q_e=[-3,W,Xge,{[z]:[`ReportGenerationLimitExceeded`,409],[V]:B,[H]:409},[U],[0]];G.registerError(Q_e,Cme);var $_e=[-3,W,t_e,{[V]:B,[H]:400},[R3],[0]];G.registerError($_e,vme);var eve=[-3,W,n_e,{[z]:[`ServiceFailure`,500],[V]:a6,[H]:500},[U],[0]];G.registerError(eve,nme);var tve=[-3,W,r_e,{[z]:[`NotSupportedService`,404],[V]:B,[H]:404},[U],[0]];G.registerError(tve,mme);var nve=[-3,W,l_e,{[z]:[`UnmodifiableEntity`,400],[V]:B,[H]:400},[U],[0]];G.registerError(nve,sme);var rve=[-3,W,d_e,{[z]:[`UnrecognizedPublicKeyEncoding`,400],[V]:B,[H]:400},[U],[0]];G.registerError(rve,Dme);var ive=[o6,G],ave=[0,W,h_e,8,0],ove=[3,W,D3,0,[t6,O3,$3,e_e,M3],[0,0,0,[()=>ave,0],4],4],sve=[3,W,k3,0,[t6,O3,$3,M3],[0,0,0,4]],cve=[3,W,Hme,0,[F3,X3],[0,0],2],s6=[3,W,Rme,0,[zge,Rge],[0,0]],lve=[3,W,Lme,0,[W3,H3],[0,0]],uve=[3,W,Bme,0,[X3,H3],[0,0],2],dve=[3,W,Wme,0,[t6,H3],[0,0],2],fve=[3,W,Kme,0,[t6],[0]],pve=[3,W,qme,0,[D3],[[()=>ove,0]],1],mve=[3,W,Xme,0,[F3,q3,e6],[0,0,()=>g6],1],hve=[3,W,Zme,0,[P3],[()=>c6],1],gve=[3,W,$me,0,[W3,Vge,q3,N3,e6],[0,0,0,0,()=>g6],2],_ve=[3,W,ehe,0,[J3],[()=>l6]],vve=[3,W,ohe,0,[X3,j3,q3,N3,B3,U3,e6],[0,0,0,0,1,0,()=>g6],2],yve=[3,W,she,0,[Z3],[()=>u6],1],bve=[3,W,lhe,0,[t6,q3,U3,e6],[0,0,0,()=>g6],1],xve=[3,W,uhe,0,[n6],[()=>d6]],Sve=[3,W,fhe,0,[O3,t6],[0,0],1],Cve=[3,W,ghe,0,[F3],[0],1],wve=[3,W,_he,0,[H3],[0],1],Tve=[3,W,xhe,0,[X3],[0],1],Eve=[3,W,Dhe,0,[t6],[0],1],Dve=[3,W,yhe,0,[X3,H3],[0,0],2],Ove=[3,W,The,0,[t6,H3],[0,0],2],kve=[3,W,Fhe,0,[F3],[0],1],Ave=[3,W,Ihe,0,[P3],[()=>c6],1],jve=[3,W,Rhe,0,[H3],[0],1],Mve=[3,W,zhe,0,[J3],[()=>l6]],Nve=[3,W,Vhe,0,[H3,r6],[0,0],2],Pve=[3,W,Hhe,0,[K3],[()=>tye]],Fve=[3,W,Whe,0,[X3],[0],1],Ive=[3,W,Ghe,0,[Z3],[()=>u6],1],Lve=[3,W,qhe,0,[t6],[0]],Rve=[3,W,Jhe,0,[n6],[()=>d6],1],c6=[3,W,P3,0,[q3,F3,ege,E3,M3,Q3,e6],[0,0,0,0,4,()=>h6,()=>g6],6],zve=[3,W,oge,0,[t6,V3,z3],[0,0,1]],Bve=[3,W,sge,0,[k3,L3,V3],[()=>oye,2,0],1],Vve=[3,W,lge,0,[X3,G3,V3,z3],[0,0,0,1],1],Hve=[3,W,uge,0,[A3,L3,V3],[()=>p6,2,0]],Uve=[3,W,fge,0,[t6,G3,V3,z3],[0,0,0,1],1],Wve=[3,W,pge,0,[A3,L3,V3],[()=>p6,2,0]],Gve=[3,W,_ge,0,[X3,V3,z3],[0,0,1],1],Kve=[3,W,vge,0,[I3,L3,V3],[()=>m6,2,0],1],qve=[3,W,yge,0,[G3,V3,z3],[0,0,1]],Jve=[3,W,bge,0,[I3,L3,V3],[()=>m6,2,0],1],Yve=[3,W,xge,0,[i_e,Pge,G3,qge,V3,z3],[0,2,0,0,0,1]],Xve=[3,W,Sge,0,[Jge,L3,V3],[()=>sye,2,0]],Zve=[3,W,Tge,0,[G3,V3,z3],[0,0,1]],Qve=[3,W,Ege,0,[Q3,L3,V3],[()=>h6,2,0],1],$ve=[3,W,kge,0,[G3,V3,z3],[0,0,1]],eye=[3,W,Age,0,[f_e,L3,V3],[()=>cye,2,0],1],l6=[3,W,J3,0,[W3,Uge,E3,q3,Ohe,Fme,Bge,Yhe,N3,M3,c_e,e6],[0,0,0,0,0,1,1,2,0,4,4,()=>g6]],tye=[3,W,K3,0,[khe,r6,Qhe,M3],[0,0,2,4]],nye=[3,W,$ge,0,[F3,X3],[0,0],2],u6=[3,W,Z3,0,[q3,X3,Zge,E3,M3,j3,N3,B3,U3,e6,Y3],[0,0,0,0,4,0,0,1,()=>s6,()=>g6,()=>rye],5],rye=[3,W,Y3,0,[Oge,Yge],[4,0]],iye=[3,W,a_e,0,[rge,p_e],[0,0],2],aye=[3,W,s_e,0,[O3,$3,t6],[0,0,0],2],d6=[3,W,n6,0,[q3,t6,u_e,E3,M3,Wge,U3,e6],[0,0,0,0,4,4,()=>s6,()=>g6],5],f6=`unit`,oye=[1,W,m_e,0,()=>sve],p6=[1,W,g_e,0,()=>lve],m6=[1,W,__e,0,()=>c6],sye=[1,W,v_e,0,()=>l6],h6=[1,W,y_e,0,()=>u6],g6=[1,W,b_e,0,()=>iye],cye=[1,W,x_e,0,()=>d6],lye=[9,W,Vme,0,()=>cve,()=>f6],uye=[9,W,zme,0,()=>uve,()=>f6],dye=[9,W,Ume,0,()=>dve,()=>f6],fye=[9,W,Gme,0,()=>fve,()=>pve],pye=[9,W,Yme,0,()=>mve,()=>hve],mye=[9,W,the,0,()=>gve,()=>_ve],hye=[9,W,nhe,0,()=>vve,()=>yve],gye=[9,W,che,0,()=>bve,()=>xve],_ye=[9,W,dhe,0,()=>Sve,()=>f6],vye=[9,W,hhe,0,()=>Cve,()=>f6],yye=[9,W,vhe,0,()=>wve,()=>f6],bye=[9,W,She,0,()=>Tve,()=>f6],xye=[9,W,whe,0,()=>Eve,()=>f6],Sye=[9,W,bhe,0,()=>Dve,()=>f6],Cye=[9,W,Ehe,0,()=>Ove,()=>f6],wye=[9,W,Phe,0,()=>kve,()=>Ave],Tye=[9,W,Lhe,0,()=>jve,()=>Mve],Eye=[9,W,Bhe,0,()=>Nve,()=>Pve],Dye=[9,W,Uhe,0,()=>Fve,()=>Ive],Oye=[9,W,Khe,0,()=>Lve,()=>Rve],kye=[9,W,age,0,()=>zve,()=>Bve],Aye=[9,W,cge,0,()=>Vve,()=>Hve],jye=[9,W,dge,0,()=>Uve,()=>Wve],Mye=[9,W,hge,0,()=>qve,()=>Jve],Nye=[9,W,gge,0,()=>Gve,()=>Kve],Pye=[9,W,Cge,0,()=>Yve,()=>Xve],Fye=[9,W,wge,0,()=>Zve,()=>Qve],Iye=[9,W,Dge,0,()=>$ve,()=>eye],Lye=[9,W,Qge,0,()=>nye,()=>f6],Rye=[9,W,o_e,0,()=>aye,()=>f6],zye=e=>({apiVersion:`2010-05-08`,base64Decoder:e?.base64Decoder??yt,base64Encoder:e?.base64Encoder??Ct,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??$pe,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Wpe,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new ie}],logger:e?.logger??new ze,protocol:e?.protocol??Ke,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.iam`,errorTypeRegistries:ive,xmlNamespace:`https://iam.amazonaws.com/doc/2010-05-08/`,version:`2010-05-08`,serviceTarget:`AWSIdentityManagementV20100508`},serviceId:e?.serviceId??`IAM`,urlParser:e?.urlParser??Ze,utf8Decoder:e?.utf8Decoder??vt,utf8Encoder:e?.utf8Encoder??xt}),Bye=e=>{let t=xe(e),n=()=>t().then(Ve),r=zye(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Dt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??he({serviceId:r.serviceId,clientVersion:Jpe.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??$e(`Region is missing`),requestHandler:ke.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Ie),sha256:e?.sha256??oe,streamCollector:e?.streamCollector??dt,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},Vye=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},Hye=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Uye=(e,t)=>{let n=Object.assign(Xe(e),ct(e),re(e),Vye(e));return t.forEach(e=>e.configure(n)),Object.assign(e,ye(n),mt(n),We(n),Hye(n))},Wye=class extends we{config;constructor(...[e]){let t=Bye(e||{});super(t),this.initConfig=t;let n=Uye(Gpe(Ue(_e(Te(Le(Oe(Kpe(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use(ue(this.config)),this.middlewareStack.use(ve(this.config)),this.middlewareStack.use(ge(this.config)),this.middlewareStack.use(De(this.config)),this.middlewareStack.use(pe(this.config)),this.middlewareStack.use(Fe(this.config)),this.middlewareStack.use(Ne(this.config)),this.middlewareStack.use(me(this.config,{httpAuthSchemeParametersProvider:Hpe,identityProviderConfigProvider:async e=>new ht({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(ae(this.config))}destroy(){super.destroy()}},_6={WHEN_SUPPORTED:`WHEN_SUPPORTED`,WHEN_REQUIRED:`WHEN_REQUIRED`},Gye=_6.WHEN_SUPPORTED,Kye={WHEN_SUPPORTED:`WHEN_SUPPORTED`,WHEN_REQUIRED:`WHEN_REQUIRED`},qye=_6.WHEN_SUPPORTED,v6;(function(e){e.MD5=`MD5`,e.CRC32=`CRC32`,e.CRC32C=`CRC32C`,e.CRC64NVME=`CRC64NVME`,e.SHA1=`SHA1`,e.SHA256=`SHA256`})(v6||={});var Jye;(function(e){e.HEADER=`header`,e.TRAILER=`trailer`})(Jye||={});var Yye=v6.CRC32,Xye=e=>{let{requestChecksumCalculation:t,responseChecksumValidation:n,requestStreamBufferSize:r}=e;return Object.assign(e,{requestChecksumCalculation:be(t??Gye),responseChecksumValidation:be(n??qye),requestStreamBufferSize:Number(r??0),checksumAlgorithms:e.checksumAlgorithms??{}})},Zye=e=>(t,n)=>async r=>{let i=await e.region(),a=e.region,o=()=>{};n.__s3RegionRedirect&&(Object.defineProperty(e,"region",{writable:!1,value:async()=>n.__s3RegionRedirect}),o=()=>Object.defineProperty(e,"region",{writable:!0,value:a}));try{let a=await t(r);if(n.__s3RegionRedirect&&(o(),i!==await e.region()))throw Error(`Region was not restored following S3 region redirect.`);return a}catch(e){throw o(),e}},Qye={tags:[`REGION_REDIRECT`,`S3`],name:`regionRedirectEndpointMiddleware`,override:!0,relation:`before`,toMiddleware:`endpointV2Middleware`};function $ye(e){return(t,n)=>async r=>{try{return await t(r)}catch(i){if(e.followRegionRedirects){let a=i?.$metadata?.httpStatusCode,o=n.commandName===`HeadBucketCommand`,s=i?.$response?.headers?.[`x-amz-bucket-region`];if(s&&(a===301||a===400&&(i?.name===`IllegalLocationConstraintException`||o))){try{let t=s;n.logger?.debug(`Redirecting from ${await e.region()} to ${t}`),n.__s3RegionRedirect=t}catch(e){throw Error(`Region redirect failed: `+e)}return t(r)}}throw i}}}var ebe={step:`initialize`,tags:[`REGION_REDIRECT`,`S3`],name:`regionRedirectMiddleware`,override:!0},tbe=e=>({applyToStack:t=>{t.add($ye(e),ebe),t.addRelativeTo(Zye(e),Qye)}}),nbe=class e{data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=3e4;constructor(e={}){this.data=e}get(e){let t=this.data[e];if(t)return t}set(e,t){return this.data[e]=t,t}delete(e){delete this.data[e]}async purgeExpired(){let t=Date.now();if(!(this.lastPurgeTime+e.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>t))for(let e in this.data){let n=this.data[e];if(!n.isRefreshing){let r=await n.identity;r.expiration&&r.expiration.getTime()(t.expiration?.getTime()??0){i.set(r,new y6(Promise.resolve(e)))})),t)):i.set(r,new y6(this.getIdentity(r))).identity}async getIdentity(e){await this.cache.purgeExpired().catch(e=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache: +`+e)});let t=await this.createSessionFn(e);if(!t.Credentials?.AccessKeyId||!t.Credentials?.SecretAccessKey)throw Error(`s3#createSession response credential missing AccessKeyId or SecretAccessKey.`);return{accessKeyId:t.Credentials.AccessKeyId,secretAccessKey:t.Credentials.SecretAccessKey,sessionToken:t.Credentials.SessionToken,expiration:t.Credentials.Expiration?new Date(t.Credentials.Expiration):void 0}}},ibe=(e,{session:t})=>{let[n,r]=t,{forcePathStyle:i,useAccelerateEndpoint:a,disableMultiregionAccessPoints:o,followRegionRedirects:s,s3ExpressIdentityProvider:c,bucketEndpoint:l,expectContinueHeader:ee}=e;return Object.assign(e,{forcePathStyle:i??!1,useAccelerateEndpoint:a??!1,disableMultiregionAccessPoints:o??!1,followRegionRedirects:s??!1,s3ExpressIdentityProvider:c??new rbe(async e=>n().send(new r({Bucket:e}))),bucketEndpoint:l??!1,expectContinueHeader:ee??2097152})},abe=`sigv4-s3express`,obe=`x-amz-s3session-token`,sbe=e=>(t,n)=>async r=>{if(n.endpointV2){let t=n.endpointV2,i=t.properties?.authSchemes?.[0]?.name===abe;if((t.properties?.backend===`S3Express`||t.properties?.bucketType===`Directory`)&&(it(n,`S3_EXPRESS_BUCKET`,`J`),n.isS3ExpressBucket=!0),i){let t=r.input.Bucket;if(t){let i=await e.s3ExpressIdentityProvider.getS3ExpressIdentity(await e.credentials(),{Bucket:t});n.s3ExpressIdentity=i,Ee.isInstance(r.request)&&i.sessionToken&&(r.request.headers[obe]=i.sessionToken)}}}return t(r)},cbe={name:`s3ExpressMiddleware`,step:`build`,tags:[`S3`,`S3_EXPRESS`],override:!0},lbe=e=>({applyToStack:t=>{t.add(sbe(e),cbe)}}),ube=async(e,t,n,r)=>{let i=await r.signWithCredentials(n,e,{});if(i.headers[`X-Amz-Security-Token`]||i.headers[`x-amz-security-token`])throw Error(`X-Amz-Security-Token must not be set for s3-express requests.`);return i},dbe=e=>e=>{throw e},fbe=(e,t)=>{},pbe=e=>(t,n)=>async r=>{if(!Ee.isInstance(r.request))return t(r);let i=fe(n).selectedHttpAuthScheme;if(!i)throw Error(`No HttpAuthScheme was selected: unable to sign request`);let{httpAuthOption:{signingProperties:a={}},identity:o,signer:s}=i,c;c=n.s3ExpressIdentity?await ube(n.s3ExpressIdentity,a,r.request,await e.signer()):await s.sign(r.request,o,a);let l=await t({...r,request:c}).catch((s.errorHandler||dbe)(a));return(s.successHandler||fbe)(l.response,a),l},mbe=e=>({applyToStack:t=>{t.addRelativeTo(pbe(e),Pe)}});function hbe(e){return new ReadableStream({start(t){t.enqueue(e),t.close()}})}var gbe={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},_be=e=>(t,n)=>async r=>{let i=await t(r),{response:a}=i;if(!Se.isInstance(a))return i;let{statusCode:o,body:s}=a;if(o<200||o>=300)return i;let c=await vbe(s,e);if(a.body=hbe(c),c.length===0&&gbe[n.commandName]){let e=Error(`S3 aborted request`);throw e.$metadata={httpStatusCode:503},e.name=`InternalError`,e}let l=e.utf8Encoder(c.subarray(c.length-16));return l&&l.endsWith(``)&&(a.statusCode=503),i},vbe=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),ybe={relation:`after`,toMiddleware:`deserializerMiddleware`,tags:[`THROW_200_EXCEPTIONS`,`S3`],name:`throw200ExceptionsMiddleware`,override:!0},b6=e=>({applyToStack:t=>{t.addRelativeTo(_be(e),ybe)}});function bbe(e){return(t,n)=>async r=>{if(e.bucketEndpoint){let e=n.endpointV2;if(e){let t=r.input.Bucket;if(typeof t==`string`)try{let r=new URL(t);n.endpointV2={...e,url:r}}catch(e){let r=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${t} could not be parsed as URL.`;throw n.logger?.constructor?.name===`NoOpLogger`?console.warn(r):n.logger?.warn?.(r),e}}}return t(r)}}var xbe={name:`bucketEndpointMiddleware`,override:!0,relation:`after`,toMiddleware:`endpointV2Middleware`};function Sbe({bucketEndpoint:e}){return t=>async n=>{let{input:{Bucket:r}}=n;if(!e&&typeof r==`string`&&!SF(r)&&r.indexOf(`/`)>=0){let e=Error(`Bucket name shouldn't contain '/', received '${r}'`);throw e.name=`InvalidBucketName`,e}return t({...n})}}var Cbe={step:`initialize`,tags:[`VALIDATE_BUCKET_NAME`],name:`validateBucketNameMiddleware`,override:!0},wbe=e=>({applyToStack:t=>{t.add(Sbe(e),Cbe),t.addRelativeTo(bbe(e),xbe)}}),Tbe=class extends kee{async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n),i=ut.of(e.input),a=i.getSchema(),o=0,s=a[6]??0;if(t&&typeof t==`object`)for(let[e,n]of i.structIterator()){if(++o>s)break;if(e===`Bucket`){if(!t.Bucket&&n.getMergedTraits().httpLabel)throw Error(`No value provided for input HTTP label: Bucket.`);break}}return r}};function Ebe(e){return t=>async n=>{let{request:r}=n;if(e.expectContinueHeader!==!1&&Ee.isInstance(r)&&r.body&&e.runtime===`node`&&e.requestHandler?.constructor?.name!==`FetchHttpHandler`){let t=!0;if(typeof e.expectContinueHeader==`number`)try{t=(Number(r.headers?.[`content-length`])??e.bodyLengthChecker?.(r.body)??1/0)>=e.expectContinueHeader}catch{}else t=!!e.expectContinueHeader;t&&(r.headers.Expect=`100-continue`)}return t({...n,request:r})}}var Dbe={step:`build`,tags:[`SET_EXPECT_HEADER`,`EXPECT_HEADER`],name:`addExpectContinueMiddleware`,override:!0},Obe=e=>({applyToStack:t=>{t.add(Ebe(e),Dbe)}}),K=`ref`,q=`argv`,x6=`backend`,S6=`authSchemes`,C6=`disableDoubleEncoding`,w6=`signingName`,T6=`signingRegion`,E6=`signingRegionSet`,J=-1,Y=!0,D6=!1,O6=`isSet`,k6=`booleanEquals`,X=`stringEquals`,A6=`coalesce`,j6=`substring`,M6=``,N6=`aws.partition`,P6=`partitionResult`,F6=`accessPointSuffix`,I6=`regionPrefix`,L6=e=>`outpostId_ssa_`+e+M6,R6=`hardwareType`,z6=`ite`,B6=`isValidHostLabel`,V6=`sigv4`,H6=`aws.isVirtualHostableS3Bucket`,U6=`url`,W6=`getAttr`,G6=`bucketArn`,K6=`--`,q6=`arnType`,J6=`accesspoint`,Y6=e=>`accessPointName_ssa_`+e+M6,X6=`s3-object-lambda`,Z6=`s3-outposts`,Q6=`bucketPartition`,$6=`us-east-1`,e8=`outpostType`,t8=`name`,n8=`s3`,r8=`{url#scheme}://{Bucket}.{url#authority}{url#path}`,i8=`{url#scheme}://{url#authority}{url#path}`,a8=`{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}`,o8=`https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}`,s8=`https://{Bucket}.s3.{partitionResult#dnsSuffix}`,c8=e=>`{url#scheme}://{accessPointName_ssa_`+e+`}-{bucketArn#accountId}.{url#authority}{url#path}`,l8=e=>"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName_ssa_"+e+"}`",u8=`sigv4a`,d8=`{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}`,f8=`https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,p8=`https://s3.{partitionResult#dnsSuffix}`,m8={[K]:`UseFIPS`},h8={[K]:`UseDualStack`},g8={[K]:`Bucket`},_8={fn:W6,[q]:[{[K]:P6},t8]},v8={[K]:U6},y8={[K]:`Region`},b8={[K]:G6},x8={[K]:q6},S8={[K]:`accessPointName_ssa_1`},C8={fn:W6,[q]:[b8,`region`]},w8={[K]:R6},T8={fn:W6,[q]:[b8,`service`]},E8={fn:W6,[q]:[b8,`accountId`]},D8={[x6]:`S3Express`,[S6]:[{[C6]:!0,[t8]:`{_s3e_auth}`,[w6]:`s3express`,[T6]:`{Region}`}]},O8={[x6]:`S3Express`,[S6]:[{[C6]:!0,[t8]:V6,[w6]:`s3express`,[T6]:`{Region}`}]},k8={[S6]:[{[C6]:!0,[t8]:u8,[w6]:Z6,[E6]:[`*`]},{[C6]:!0,[t8]:V6,[w6]:Z6,[T6]:`{Region}`}]},A8={[S6]:[{[C6]:!0,[t8]:V6,[w6]:n8,[T6]:$6}]},j8={[S6]:[{[C6]:!0,[t8]:V6,[w6]:n8,[T6]:`{Region}`}]},M8={[S6]:[{[C6]:!0,[t8]:V6,[w6]:X6,[T6]:`{bucketArn#region}`}]},N8={[S6]:[{[C6]:!0,[t8]:V6,[w6]:n8,[T6]:`{bucketArn#region}`}]},P8={[S6]:[{[C6]:!0,[t8]:u8,[w6]:Z6,[E6]:[`*`]},{[C6]:!0,[t8]:V6,[w6]:Z6,[T6]:`{bucketArn#region}`}]},F8={[S6]:[{[C6]:!0,[t8]:V6,[w6]:X6,[T6]:`{Region}`}]},I8=[y8],L8=[{[K]:`Endpoint`}],R8=[g8],z8=[g8,0,7,!0],B8=[b8,`resourceId[1]`],kbe=[`*`],V8={conditions:[[O6,I8],[k6,[{[K]:`Accelerate`},Y]],[k6,[m8,Y]],[k6,[h8,Y]],[O6,L8],[O6,R8],[X,[{fn:A6,[q]:[{fn:j6,[q]:[g8,0,6,Y]},M6]},`--x-s3`]],[X,[{fn:A6,[q]:[{fn:j6,[q]:z8},M6]},`--xa-s3`]],[N6,I8,P6],[j6,z8,F6],[X,[{[K]:F6},`--op-s3`]],[j6,[g8,8,12,Y],I6],[j6,[g8,32,49,Y],L6(2)],[j6,[g8,49,50,Y],R6],[k6,[{[K]:`ForcePathStyle`},Y]],[X,[_8,`aws-cn`]],[z6,[h8,`.dualstack`,M6],`_s3e_ds`],[B6,[{[K]:L6(2)},D6]],[z6,[m8,`-fips`,M6],`_s3e_fips`],[z6,[{fn:A6,[q]:[{[K]:`DisableS3ExpressSessionAuth`},D6]},V6,`sigv4-s3express`],`_s3e_auth`],[H6,[g8,D6]],[`parseURL`,L8,U6],[k6,[{fn:A6,[q]:[{[K]:`UseS3ExpressControlEndpoint`},D6]},Y]],[H6,[g8,Y]],[X,[{fn:W6,[q]:[v8,`scheme`]},`http`]],[B6,[y8,D6]],[`aws.parseArn`,R8,G6],[W6,[{fn:`split`,[q]:[g8,K6,0]},`[-2]`],`s3expressAvailabilityZoneId`],[X,[{fn:A6,[q]:[{fn:j6,[q]:[g8,0,4,D6]},M6]},`arn:`]],[X,[{fn:A6,[q]:[{fn:j6,[q]:[g8,16,18,Y]},M6]},K6]],[k6,[{fn:W6,[q]:[v8,`isIp`]},Y]],[X,[{fn:A6,[q]:[{fn:j6,[q]:[g8,21,23,Y]},M6]},K6]],[X,[{fn:A6,[q]:[{fn:j6,[q]:[g8,27,29,Y]},M6]},K6]],[X,[{[K]:I6},`beta`]],[`uriEncode`,R8,`uri_encoded_bucket`],[B6,[y8,Y]],[k6,[{fn:A6,[q]:[{[K]:`UseObjectLambdaEndpoint`},D6]},Y]],[W6,[b8,`resourceId[0]`],q6],[X,[x8,M6]],[X,[x8,J6]],[W6,B8,Y6(1)],[X,[S8,M6]],[X,[C8,M6]],[X,[{fn:A6,[q]:[{fn:j6,[q]:[g8,14,16,Y]},M6]},K6]],[X,[w8,`e`]],[X,[w8,`o`]],[X,[y8,`aws-global`]],[X,[{fn:A6,[q]:[{fn:j6,[q]:[g8,19,21,Y]},M6]},K6]],[X,[T8,X6]],[k6,[{fn:A6,[q]:[{[K]:`DisableAccessPoints`},D6]},Y]],[X,[T8,Z6]],[N6,[C8],Q6],[B6,[S8,Y]],[X,[{fn:A6,[q]:[{fn:j6,[q]:[g8,26,28,Y]},M6]},K6]],[X,[{fn:A6,[q]:[{fn:j6,[q]:[g8,15,17,Y]},M6]},K6]],[W6,[b8,`resourceId[4]`]],[X,[{fn:A6,[q]:[{fn:j6,[q]:[g8,20,22,Y]},M6]},K6]],[k6,[{[K]:`UseGlobalEndpoint`},Y]],[X,[y8,$6]],[W6,B8,L6(1)],[k6,[{fn:A6,[q]:[{[K]:`UseArnRegion`},Y]},Y]],[B6,[{[K]:L6(1)},D6]],[W6,[b8,`resourceId[2]`],e8],[X,[y8,C8]],[X,[{fn:W6,[q]:[{[K]:Q6},t8]},_8]],[k6,[{[K]:`DisableMultiRegionAccessPoints`},Y]],[B6,[C8,Y]],[X,[{fn:W6,[q]:[b8,`partition`]},_8]],[X,[E8,M6]],[X,[T8,n8]],[B6,[E8,D6]],[W6,[b8,`resourceId[3]`],Y6(2)],[B6,[S8,D6]],[X,[{[K]:e8},J6]],[B6,[{[K]:Y6(2)},D6]]],results:[[J],[J,`Accelerate cannot be used with FIPS`],[J,`Cannot set dual-stack in combination with a custom endpoint.`],[J,`A custom endpoint cannot be combined with FIPS`],[J,`A custom endpoint cannot be combined with S3 Accelerate`],[J,`Partition does not support FIPS`],[J,`S3Express does not support S3 Accelerate.`],[`{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}`,D8],[r8,D8],[J,`S3Express bucket name is not a valid virtual hostable name.`],[`https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,O8],[`https://{Bucket}.s3express{_s3e_fips}-{s3expressAvailabilityZoneId}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}`,D8],[J,`Unrecognized S3Express bucket name format.`],[i8,D8],[`https://s3express-control{_s3e_fips}{_s3e_ds}.{Region}.{partitionResult#dnsSuffix}`,O8],[J,`Expected a endpoint to be specified but no endpoint was found`],[`https://{Bucket}.ec2.{url#authority}`,k8],[`https://{Bucket}.ec2.s3-outposts.{Region}.{partitionResult#dnsSuffix}`,k8],[`https://{Bucket}.op-{outpostId_ssa_2}.{url#authority}`,k8],[`https://{Bucket}.op-{outpostId_ssa_2}.s3-outposts.{Region}.{partitionResult#dnsSuffix}`,k8],[J,`Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"`],[J,`Invalid Outposts Bucket alias - it must be a valid bucket name.`],[J,"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`."],[J,"Custom endpoint `{Endpoint}` was not a valid URI"],[J,`S3 Accelerate cannot be used in this region`],[`https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}`,A8],[`https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}`,j8],[`https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}`,A8],[`https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}`,j8],[`https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}`,A8],[`https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}`,j8],[`https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}`,A8],[`https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}`,j8],[a8,A8],[r8,A8],[a8,j8],[r8,j8],[o8,A8],[o8,j8],[s8,A8],[s8,j8],[`https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}`,j8],[J,`Invalid region: region was not a valid DNS name.`],[J,`S3 Object Lambda does not support Dual-stack`],[J,`S3 Object Lambda does not support S3 Accelerate`],[J,`Access points are not supported for this operation`],[J,"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`"],[J,`Invalid ARN: Missing account id`],[c8(1),M8],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}`,M8],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}`,M8],[J,l8(1)],[J,"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`"],[J,"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)"],[J,"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`"],[J,"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`."],[J,`Invalid ARN: bucket ARN is missing a region`],[J,"Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided"],[J,"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`"],[J,`Access Points do not support S3 Accelerate`],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}`,N8],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}`,N8],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}`,N8],[c8(1),N8],[`https://{accessPointName_ssa_1}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}`,N8],[J,`Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}`],[J,`S3 MRAP does not support dual-stack`],[J,`S3 MRAP does not support FIPS`],[J,`S3 MRAP does not support S3 Accelerate`],[J,`Invalid configuration: Multi-Region Access Point ARNs are disabled.`],[`https://{accessPointName_ssa_1}.accesspoint.s3-global.{partitionResult#dnsSuffix}`,{[S6]:[{[C6]:Y,name:u8,[w6]:n8,[E6]:kbe}]}],[J,"Client was configured for partition `{partitionResult#name}` but bucket referred to partition `{bucketArn#partition}`"],[J,`Invalid Access Point Name`],[J,`S3 Outposts does not support Dual-stack`],[J,`S3 Outposts does not support FIPS`],[J,`S3 Outposts does not support S3 Accelerate`],[J,`Invalid Arn: Outpost Access Point ARN contains sub resources`],[`https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.{url#authority}`,P8],[`https://{accessPointName_ssa_2}-{bucketArn#accountId}.{outpostId_ssa_1}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}`,P8],[J,l8(2)],[J,"Expected an outpost type `accesspoint`, found {outpostType}"],[J,`Invalid ARN: expected an access point name`],[J,`Invalid ARN: Expected a 4-component resource`],[J,"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId_ssa_1}`"],[J,`Invalid ARN: The Outpost Id was not set`],[J,`Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})`],[J,`Invalid ARN: No ARN type specified`],[J,"Invalid ARN: `{Bucket}` was not a valid ARN"],[J,`Path-style addressing cannot be used with ARN buckets`],[`https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,A8],[`https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,j8],[`https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,A8],[`https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,j8],[`https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,A8],[`https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,j8],[d8,A8],[d8,j8],[f8,A8],[f8,j8],[`https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}`,j8],[J,`Path-style addressing cannot be used with S3 Accelerate`],[i8,F8],[`https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}`,F8],[`https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}`,F8],[`https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}`,A8],[`https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}`,j8],[`https://s3-fips.us-east-1.{partitionResult#dnsSuffix}`,A8],[`https://s3-fips.{Region}.{partitionResult#dnsSuffix}`,j8],[`https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}`,A8],[`https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}`,j8],[i8,A8],[i8,j8],[p8,A8],[p8,j8],[`https://s3.{Region}.{partitionResult#dnsSuffix}`,j8],[J,`A region must be set when sending requests to S3.`]]},Abe=2,jbe=new Int32Array([-1,1,-1,0,3,100000115,1,424,4,2,272,5,3,233,6,4,85,7,5,15,8,8,9,100000115,16,10,13,18,11,13,19,12,13,22,100000014,13,35,14,100000042,36,100000103,435,6,271,16,7,270,17,8,19,18,14,501,106,9,20,24,10,21,24,11,22,24,12,23,24,13,547,24,14,77,25,20,73,26,26,27,78,37,28,100000086,38,100000086,29,39,47,30,48,100000058,31,50,32,100000085,51,33,136,55,100000076,34,59,35,100000084,60,39,36,61,37,100000083,62,38,146,63,41,100000046,61,40,100000083,62,41,150,64,42,100000054,66,43,100000053,70,44,100000052,71,45,100000081,73,46,100000080,74,100000078,100000079,40,48,100000057,41,100000057,49,42,185,50,48,62,51,49,100000045,52,51,53,526,60,56,54,62,100000055,55,63,57,100000046,62,100000055,57,64,58,100000054,66,59,100000053,69,60,100000065,70,61,100000052,72,100000064,100000051,49,100000045,63,51,64,526,60,67,65,62,100000055,66,63,68,100000046,62,100000055,68,64,69,100000054,66,70,100000053,68,100000047,71,70,72,100000052,72,100000050,100000051,25,74,100000042,46,100000039,75,57,76,100000041,58,100000040,100000041,26,100000088,78,28,100000087,79,34,82,80,35,81,545,36,100000103,100000115,46,100000097,83,57,84,100000099,58,100000098,100000099,5,101,86,8,87,100000115,16,88,89,18,91,89,19,90,92,21,97,95,19,93,92,21,98,95,21,97,94,22,100000014,95,35,96,100000042,36,100000103,100000042,22,100000013,98,35,99,100000042,36,100000101,100,46,100000110,100000111,6,214,102,7,208,103,8,119,104,14,118,105,21,106,100000023,26,107,502,37,108,100000086,38,100000086,109,39,112,110,48,100000058,111,50,136,100000085,40,113,100000057,41,100000057,114,42,115,500,48,100000056,116,52,117,100000072,65,100000069,100000072,21,501,100000023,9,120,124,10,121,124,11,122,124,12,123,124,13,202,124,14,195,125,20,190,126,21,127,100000023,23,128,129,24,189,129,26,130,197,37,131,100000086,38,100000086,132,39,159,133,48,100000058,134,50,135,100000085,51,141,136,55,100000076,137,59,138,100000084,60,100000083,139,61,140,100000083,63,100000083,100000046,55,100000076,142,59,143,100000084,60,148,144,61,145,100000083,62,147,146,63,150,100000046,63,153,100000046,61,149,100000083,62,153,150,64,151,100000054,66,152,100000053,70,100000082,100000052,64,154,100000054,66,155,100000053,70,156,100000052,71,157,100000081,73,158,100000080,74,100000077,100000079,40,160,100000057,41,100000057,161,42,185,162,48,174,163,49,100000045,164,51,165,526,60,168,166,62,100000055,167,63,169,100000046,62,100000055,169,64,170,100000054,66,171,100000053,69,172,100000065,70,173,100000052,72,100000063,100000051,49,100000045,175,51,176,526,60,179,177,62,100000055,178,63,180,100000046,62,100000055,180,64,181,100000054,66,182,100000053,68,100000047,183,70,184,100000052,72,100000048,100000051,48,100000056,186,52,187,100000072,65,100000069,188,67,100000070,100000071,25,100000036,100000042,21,191,100000023,25,192,100000042,30,194,193,46,100000034,100000036,46,100000033,100000035,21,196,100000023,26,100000088,197,28,100000087,198,34,201,199,35,200,545,36,100000101,100000115,46,100000095,100000096,17,203,100000022,20,204,100000021,21,205,550,33,206,550,44,100000016,207,45,100000018,100000020,8,209,215,16,210,220,18,211,220,19,212,224,20,213,227,21,231,401,8,218,215,19,216,100000009,20,217,227,21,231,100000009,16,219,220,18,223,220,19,221,224,20,222,227,21,231,100000012,19,226,224,20,225,100000009,21,100000009,100000012,20,230,227,21,228,100000009,30,229,100000009,34,100000007,100000009,21,231,415,30,232,100000008,34,100000007,100000008,4,100000002,234,5,235,480,6,271,236,7,270,237,8,238,491,9,239,243,10,240,243,11,241,243,12,242,243,13,547,243,14,266,244,20,264,245,26,246,267,37,247,100000086,38,100000086,248,39,249,518,40,250,100000057,41,100000057,251,42,538,252,48,100000043,253,49,100000045,254,51,255,526,60,258,256,62,100000055,257,63,259,100000046,62,100000055,259,64,260,100000054,66,261,100000053,69,262,100000065,70,263,100000052,72,100000062,100000051,25,265,100000042,46,100000031,100000032,26,100000088,267,28,100000087,268,34,269,544,46,100000093,100000094,8,397,100000009,8,407,100000009,3,346,273,4,100000003,274,5,284,275,8,276,100000115,15,100000005,277,16,278,281,18,279,281,19,280,281,22,100000014,281,35,282,100000042,36,100000102,283,46,100000106,100000107,6,405,285,7,395,286,8,295,287,14,501,288,26,289,502,37,290,100000086,38,100000086,291,39,292,307,40,293,100000057,41,100000057,294,42,335,500,9,296,300,10,297,300,11,298,300,12,299,300,13,394,300,14,339,301,15,100000005,302,20,337,303,26,304,341,37,305,100000086,38,100000086,306,39,309,307,48,100000058,308,50,100000074,100000085,40,310,100000057,41,100000057,311,42,335,312,48,324,313,49,100000045,314,51,315,526,60,318,316,62,100000055,317,63,319,100000046,62,100000055,319,64,320,100000054,66,321,100000053,69,322,100000065,70,323,100000052,72,100000061,100000051,49,100000045,325,51,326,526,60,329,327,62,100000055,328,63,330,100000046,62,100000055,330,64,331,100000054,66,332,100000053,68,100000047,333,70,334,100000052,72,100000049,100000051,48,100000056,336,52,100000067,100000072,25,338,100000042,46,100000027,100000028,15,100000005,340,26,100000088,341,28,100000087,342,34,345,343,35,344,545,36,100000102,100000115,46,100000091,100000092,4,100000002,347,5,357,348,8,349,100000115,15,100000005,350,16,351,354,18,352,354,19,353,354,22,100000014,354,35,355,100000042,36,100000043,356,46,100000104,100000105,6,405,358,7,395,359,8,360,491,9,361,365,10,362,365,11,363,365,12,364,365,13,394,365,14,389,366,15,100000005,367,20,387,368,26,369,391,37,370,100000086,38,100000086,371,39,372,518,40,373,100000057,41,100000057,374,42,538,375,48,100000043,376,49,100000045,377,51,378,526,60,381,379,62,100000055,380,63,382,100000046,62,100000055,382,64,383,100000054,66,384,100000053,69,385,100000065,70,386,100000052,72,100000060,100000051,25,388,100000042,46,100000025,100000026,15,100000005,390,26,100000088,391,28,100000087,392,34,393,544,46,100000089,100000090,15,100000005,547,8,396,100000009,15,100000005,397,16,398,410,18,399,410,19,400,410,20,401,100000009,27,402,100000012,29,100000011,403,31,100000011,404,32,100000011,422,8,406,100000009,15,100000005,407,16,408,410,18,409,410,19,411,410,20,100000012,100000009,20,414,412,22,413,100000009,34,100000010,100000009,22,416,415,27,419,100000012,27,418,417,34,100000010,100000012,34,100000010,419,43,100000011,420,47,100000011,421,53,100000011,422,54,100000011,423,56,100000011,100000012,2,100000001,425,3,478,426,4,100000004,427,5,438,428,8,429,100000115,16,430,433,18,431,433,19,432,433,22,100000014,433,35,434,100000042,36,100000044,435,46,100000112,436,57,437,100000114,58,100000113,100000114,6,100000006,439,7,100000006,440,8,450,441,14,501,442,26,443,502,37,444,100000086,38,100000086,445,39,446,465,40,447,100000057,41,100000057,448,42,471,449,48,100000044,500,9,451,455,10,452,455,11,453,455,12,454,455,13,547,455,14,473,456,15,460,457,20,458,461,25,459,100000042,46,100000037,100000038,20,540,461,26,462,474,37,463,100000086,38,100000086,464,39,467,465,48,100000058,466,50,100000075,100000085,40,468,100000057,41,100000057,469,42,471,470,48,100000044,524,48,100000044,472,52,100000068,100000072,26,100000088,474,28,100000087,475,34,100000100,476,35,477,545,36,100000044,100000115,4,100000002,479,5,488,480,8,481,100000115,16,482,485,18,483,485,19,484,485,22,100000014,485,35,486,100000042,36,100000043,487,46,100000108,100000109,6,100000006,489,7,100000006,490,8,503,491,14,501,492,26,493,502,37,494,100000086,38,100000086,495,39,496,518,40,497,100000057,41,100000057,498,42,538,499,48,100000043,500,49,100000045,526,26,100000088,502,28,100000087,100000115,9,504,508,10,505,508,11,506,508,12,507,508,13,547,508,14,541,509,15,513,510,20,511,514,25,512,100000042,46,100000029,100000030,20,540,514,26,515,542,37,516,100000086,38,100000086,517,39,520,518,48,100000058,519,50,100000073,100000085,40,521,100000057,41,100000057,522,42,538,523,48,100000043,524,49,100000045,525,51,529,526,60,100000055,527,62,100000055,528,63,100000055,100000046,60,532,530,62,100000055,531,63,533,100000046,62,100000055,533,64,534,100000054,66,535,100000053,69,536,100000065,70,537,100000052,72,100000059,100000051,48,100000043,539,52,100000066,100000072,25,100000024,100000042,26,100000088,542,28,100000087,543,34,100000100,544,35,546,545,36,100000042,100000115,36,100000043,100000115,17,548,100000022,20,549,100000021,33,552,550,44,100000017,551,45,100000019,100000020,44,100000015,553,45,100000015,100000020]),Mbe=Je.from(jbe,Abe,V8.conditions,V8.results),Nbe=new et({size:50,params:[`Accelerate`,`Bucket`,`DisableAccessPoints`,`DisableMultiRegionAccessPoints`,`DisableS3ExpressSessionAuth`,`Endpoint`,`ForcePathStyle`,`Region`,`UseArnRegion`,`UseDualStack`,`UseFIPS`,`UseGlobalEndpoint`,`UseObjectLambdaEndpoint`,`UseS3ExpressControlEndpoint`]}),H8=(e,t={})=>Nbe.get(e,()=>Ge(Mbe,{endpointParams:e,logger:t.logger}));rt.aws=de;var Pbe=(e=>async(t,n,r)=>{if(!r)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let i=await e(t,n,r),a=fe(n)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!a)throw Error(`getEndpointParameterInstructions() is not defined on '${n.commandName}'`);let o=await qe(r,{getEndpointParameterInstructions:a},t);return Object.assign(i,o)})(async(e,t,n)=>({operation:fe(t).operation,region:await be(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}));function U8(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`s3`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function W8(e){return{schemeId:`aws.auth#sigv4a`,signingProperties:{name:`s3`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}var Fbe=((e,t,n)=>r=>{let i=e(r).properties?.authSchemes;if(!i)return t(r);let a=[];for(let e of i){let{name:t,properties:o={},...s}=e,c=t.toLowerCase();t!==c&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${t}' to '${c}'`);let l;if(c===`sigv4a`){l=`aws.auth#sigv4a`;let e=i.find(e=>{let t=e.name.toLowerCase();return t!==`sigv4a`&&t.startsWith(`sigv4`)});if(je.sigv4aDependency()===`none`&&e)continue}else if(c.startsWith(`sigv4`))l=`aws.auth#sigv4`;else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${c}'`);let ee=n[l];if(!ee)throw Error(`Could not find HttpAuthOption create function for '${l}'`);let te=ee(r);te.schemeId=l,te.signingProperties={...te.signingProperties||{},...s,...o},a.push(te)}return a})(H8,e=>{let t=[];switch(e.operation){default:t.push(U8(e)),t.push(W8(e))}return t},{"aws.auth#sigv4":U8,"aws.auth#sigv4a":W8}),Ibe=e=>{let t=Ce(le(e));return Object.assign(t,{authSchemePreference:be(e.authSchemePreference??[])})},Lbe=e=>Object.assign(e,{useFipsEndpoint:e.useFipsEndpoint??!1,useDualstackEndpoint:e.useDualstackEndpoint??!1,forcePathStyle:e.forcePathStyle??!1,useAccelerateEndpoint:e.useAccelerateEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,disableMultiregionAccessPoints:e.disableMultiregionAccessPoints??!1,defaultSigningName:`s3`,clientContextParams:e.clientContextParams??{}}),G8={ForcePathStyle:{type:`clientContextParams`,name:`forcePathStyle`},UseArnRegion:{type:`clientContextParams`,name:`useArnRegion`},DisableMultiRegionAccessPoints:{type:`clientContextParams`,name:`disableMultiregionAccessPoints`},Accelerate:{type:`clientContextParams`,name:`useAccelerateEndpoint`},DisableS3ExpressSessionAuth:{type:`clientContextParams`,name:`disableS3ExpressSessionAuth`},UseGlobalEndpoint:{type:`builtInParams`,name:`useGlobalEndpoint`},UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},K8=class e extends ft{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},Rbe=class e extends K8{name=`NoSuchUpload`;$fault=`client`;constructor(t){super({name:`NoSuchUpload`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},zbe=class e extends K8{name=`AccessDenied`;$fault=`client`;constructor(t){super({name:`AccessDenied`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Bbe=class e extends K8{name=`ObjectNotInActiveTierError`;$fault=`client`;constructor(t){super({name:`ObjectNotInActiveTierError`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Vbe=class e extends K8{name=`BucketAlreadyExists`;$fault=`client`;constructor(t){super({name:`BucketAlreadyExists`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Hbe=class e extends K8{name=`BucketAlreadyOwnedByYou`;$fault=`client`;constructor(t){super({name:`BucketAlreadyOwnedByYou`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Ube=class e extends K8{name=`NoSuchBucket`;$fault=`client`;constructor(t){super({name:`NoSuchBucket`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Wbe=class e extends K8{name=`InvalidObjectState`;$fault=`client`;StorageClass;AccessTier;constructor(t){super({name:`InvalidObjectState`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype),this.StorageClass=t.StorageClass,this.AccessTier=t.AccessTier}},Gbe=class e extends K8{name=`NoSuchKey`;$fault=`client`;constructor(t){super({name:`NoSuchKey`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Kbe=class e extends K8{name=`NotFound`;$fault=`client`;constructor(t){super({name:`NotFound`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},qbe=class e extends K8{name=`EncryptionTypeMismatch`;$fault=`client`;constructor(t){super({name:`EncryptionTypeMismatch`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Jbe=class e extends K8{name=`InvalidRequest`;$fault=`client`;constructor(t){super({name:`InvalidRequest`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Ybe=class e extends K8{name=`InvalidWriteOffset`;$fault=`client`;constructor(t){super({name:`InvalidWriteOffset`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Xbe=class e extends K8{name=`TooManyParts`;$fault=`client`;constructor(t){super({name:`TooManyParts`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Zbe=class e extends K8{name=`IdempotencyParameterMismatch`;$fault=`client`;constructor(t){super({name:`IdempotencyParameterMismatch`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Qbe=class e extends K8{name=`ObjectAlreadyInActiveTierError`;$fault=`client`;constructor(t){super({name:`ObjectAlreadyInActiveTierError`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},q8=`ACL`,$be=`AccessDenied`,exe=`AbortDate`,J8=`AccessKeyId`,txe=`AbortMultipartUpload`,nxe=`AbortMultipartUploadOutput`,rxe=`AbortMultipartUploadRequest`,ixe=`AcceptRanges`,axe=`AbortRuleId`,oxe=`AccessTier`,Y8=`Bucket`,X8=`BucketArn`,sxe=`BucketAlreadyExists`,cxe=`BucketAlreadyOwnedByYou`,lxe=`BypassGovernanceRetention`,uxe=`BucketInfo`,Z8=`BucketKeyEnabled`,dxe=`BucketNamespace`,Q8=`BucketRegion`,$8=`Body`,e5=`Buckets`,t5=`ChecksumAlgorithm`,fxe=`CreateBucket`,n5=`CreateBucketConfiguration`,pxe=`CreateBucketOutput`,mxe=`CreateBucketRequest`,r5=`CacheControl`,i5=`ChecksumCRC32`,a5=`ChecksumCRC32C`,o5=`ChecksumCRC64NVME`,s5=`Cache-Control`,hxe=`CreationDate`,c5=`Content-Disposition`,l5=`ContentDisposition`,u5=`Content-Encoding`,d5=`ContentEncoding`,f5=`ContentLanguage`,p5=`Content-Language`,m5=`Content-Length`,h5=`ContentLength`,g5=`Content-MD5`,_5=`ChecksumMD5`,v5=`ContentMD5`,gxe=`CompletedMultipartUpload`,_xe=`CompleteMultipartUploadOutput`,vxe=`CreateMultipartUploadOutput`,yxe=`CompleteMultipartUploadResult`,bxe=`CompleteMultipartUploadRequest`,xxe=`CreateMultipartUploadRequest`,y5=`CompleteMultipartUpload`,Sxe=`CreateMultipartUpload`,Cxe=`ChecksumMode`,wxe=`CommonPrefix`,Txe=`CommonPrefixList`,Exe=`CompletedPartList`,Dxe=`CompletedPart`,Oxe=`CommonPrefixes`,kxe=`ContentRange`,Axe=`Content-Range`,b5=`ChecksumSHA1`,x5=`ChecksumSHA256`,S5=`ChecksumSHA512`,jxe=`CreateSessionOutput`,Mxe=`CreateSessionResult`,Nxe=`CreateSessionRequest`,Pxe=`CreateSession`,C5=`ChecksumType`,w5=`Content-Type`,T5=`ContentType`,E5=`ContinuationToken`,D5=`ChecksumXXHASH64`,O5=`ChecksumXXHASH3`,k5=`ChecksumXXHASH128`,Fxe=`Contents`,A5=`Credentials`,j5=`DeleteMarker`,Ixe=`DisplayName`,Lxe=`DeleteObjectOutput`,Rxe=`DeleteObjectRequest`,zxe=`DeleteObject`,Bxe=`DataRedundancy`,M5=`Delimiter`,N5=`Expiration`,P5=`ExpectedBucketOwner`,F5=`ExpiresString`,Vxe=`EncryptionTypeMismatch`,I5=`ETag`,L5=`EncodingType`,R5=`Expires`,Hxe=`FetchOwner`,z5=`GrantFullControl`,Uxe=`GetObject`,Wxe=`GetObjectOutput`,Gxe=`GetObjectRequest`,B5=`GrantRead`,V5=`GrantReadACP`,Kxe=`GrantWrite`,H5=`GrantWriteACP`,qxe=`ID`,U5=`IfMatch`,Jxe=`IfMatchInitiatedTime`,Yxe=`IfMatchLastModifiedTime`,Xxe=`IfMatchSize`,Zxe=`If-Modified-Since`,Qxe=`IfModifiedSince`,$xe=`InitiateMultipartUploadResult`,W5=`If-Match`,G5=`IfNoneMatch`,K5=`If-None-Match`,eSe=`InvalidObjectState`,tSe=`IdempotencyParameterMismatch`,nSe=`InvalidRequest`,rSe=`IsRestoreInProgress`,iSe=`IsTruncated`,aSe=`IfUnmodifiedSince`,oSe=`If-Unmodified-Since`,sSe=`InvalidWriteOffset`,q5=`Key`,cSe=`KeyCount`,J5=`Location`,lSe=`ListAllMyBucketsResult`,uSe=`ListBuckets`,dSe=`ListBucketsOutput`,fSe=`ListBucketsRequest`,pSe=`ListBucketResult`,mSe=`LocationConstraint`,hSe=`LocationInfo`,Y5=`LastModified`,gSe=`Last-Modified`,_Se=`ListObjectsV2`,vSe=`ListObjectsV2Output`,ySe=`ListObjectsV2Request`,X5=`Metadata`,bSe=`MaxBuckets`,xSe=`MFA`,Z5=`MaxKeys`,SSe=`MissingMeta`,CSe=`MpuObjectSize`,wSe=`MultipartUpload`,Q5=`Name`,TSe=`NextContinuationToken`,ESe=`NotFound`,DSe=`NoSuchBucket`,OSe=`NoSuchKey`,kSe=`NoSuchUpload`,$5=`Owner`,ASe=`ObjectAlreadyInActiveTierError`,jSe=`ObjectLockEnabledForBucket`,e7=`ObjectLockLegalHoldStatus`,t7=`ObjectLockMode`,n7=`ObjectLockRetainUntilDate`,MSe=`ObjectList`,NSe=`ObjectNotInActiveTierError`,PSe=`ObjectOwnership`,FSe=`OptionalObjectAttributes`,ISe=`Object`,r7=`Prefix`,LSe=`PartsCount`,i7=`PartNumber`,RSe=`PutObject`,zSe=`PutObjectOutput`,BSe=`PutObjectRequest`,VSe=`PutObjectTagging`,HSe=`PutObjectTaggingOutput`,USe=`PutObjectTaggingRequest`,WSe=`Parts`,GSe=`Part`,a7=`RequestCharged`,KSe=`ResponseCacheControl`,qSe=`ResponseContentDisposition`,JSe=`ResponseContentEncoding`,YSe=`ResponseContentLanguage`,XSe=`ResponseContentType`,ZSe=`ResponseExpires`,QSe=`RestoreExpiryDate`,o7=`RequestPayer`,$Se=`ReplicationStatus`,s7=`RestoreStatus`,c7=`Range`,eCe=`Restore`,l7=`StartAfter`,u7=`SecretAccessKey`,tCe=`StreamingBlob`,d7=`StorageClass`,nCe=`SessionCredentialValue`,rCe=`SessionCredentials`,iCe=`SessionMode`,f7=`ServerSideEncryption`,p7=`SSECustomerAlgorithm`,m7=`SSECustomerKey`,h7=`SSECustomerKeyMD5`,g7=`SSEKMSEncryptionContext`,_7=`SSEKMSKeyId`,v7=`SessionToken`,y7=`Size`,aCe=`Tags`,oCe=`TagCount`,sCe=`TooManyParts`,b7=`TagSet`,x7=`Tag`,S7=`Tagging`,C7=`Type`,w7=`UploadId`,cCe=`UploadPart`,lCe=`UploadPartOutput`,uCe=`UploadPartRequest`,dCe=`Value`,T7=`VersionId`,fCe=`WriteOffsetBytes`,E7=`WebsiteRedirectLocation`,pCe=`accept-ranges`,mCe=`bucket-region`,D7=`client`,O7=`continuation-token`,hCe=`delimiter`,k7=`error`,gCe=`encoding-type`,_Ce=`fetch-owner`,A7=`http`,j7=`httpChecksum`,M7=`httpError`,Z=`httpHeader`,N7=`httpPayload`,P7=`httpPrefixHeaders`,Q=`httpQuery`,vCe=`max-buckets`,yCe=`max-keys`,F7=`prefix`,I7=`partNumber`,bCe=`response-cache-control`,xCe=`response-content-disposition`,SCe=`response-content-encoding`,CCe=`response-content-language`,wCe=`response-content-type`,TCe=`response-expires`,L7=`smithy.ts.sdk.synthetic.com.amazonaws.s3`,ECe=`start-after`,DCe=`streaming`,R7=`uploadId`,z7=`versionId`,B7=`xmlFlattened`,V7=`xmlName`,H7=`x-amz-acl`,OCe=`x-amz-abort-date`,kCe=`x-amz-abort-rule-id`,ACe=`x-amz-bucket-arn`,jCe=`x-amz-bypass-governance-retention`,MCe=`x-amz-bucket-namespace`,NCe=`x-amz-bucket-object-lock-enabled`,U7=`x-amz-checksum-algorithm`,W7=`x-amz-checksum-crc32`,G7=`x-amz-checksum-crc32c`,K7=`x-amz-checksum-crc64nvme`,q7=`x-amz-checksum-md5`,PCe=`x-amz-checksum-mode`,J7=`x-amz-checksum-sha1`,Y7=`x-amz-checksum-sha256`,X7=`x-amz-checksum-sha512`,FCe=`x-amz-create-session-mode`,Z7=`x-amz-checksum-type`,Q7=`x-amz-checksum-xxhash64`,$7=`x-amz-checksum-xxhash3`,e9=`x-amz-checksum-xxhash128`,t9=`x-amz-delete-marker`,n9=`x-amz-expiration`,r9=`x-amz-expected-bucket-owner`,i9=`x-amz-grant-full-control`,a9=`x-amz-grant-read`,o9=`x-amz-grant-read-acp`,ICe=`x-amz-grant-write`,s9=`x-amz-grant-write-acp`,LCe=`x-amz-if-match-initiated-time`,RCe=`x-amz-if-match-last-modified-time`,zCe=`x-amz-if-match-size`,c9=`x-amz-meta-`,BCe=`x-amz-mfa`,VCe=`x-amz-missing-meta`,HCe=`x-amz-mp-object-size`,UCe=`x-amz-mp-parts-count`,l9=`x-amz-object-lock-legal-hold`,u9=`x-amz-object-lock-mode`,d9=`x-amz-object-lock-retain-until-date`,WCe=`x-amz-object-ownership`,GCe=`x-amz-optional-object-attributes`,KCe=`x-amz-object-size`,qCe=`x-amz-restore`,f9=`x-amz-request-charged`,p9=`x-amz-request-payer`,JCe=`x-amz-replication-status`,m9=`x-amz-storage-class`,h9=`x-amz-sdk-checksum-algorithm`,g9=`x-amz-server-side-encryption`,_9=`x-amz-server-side-encryption-aws-kms-key-id`,v9=`x-amz-server-side-encryption-bucket-key-enabled`,y9=`x-amz-server-side-encryption-context`,b9=`x-amz-server-side-encryption-customer-algorithm`,x9=`x-amz-server-side-encryption-customer-key`,S9=`x-amz-server-side-encryption-customer-key-MD5`,C9=`x-amz-tagging`,YCe=`x-amz-tagging-count`,w9=`x-amz-version-id`,XCe=`x-amz-write-offset-bytes`,T9=`x-amz-website-redirect-location`,$=`com.amazonaws.s3`,E9=se.for(L7),ZCe=[-3,L7,`S3ServiceException`,0,[],[]];E9.registerError(ZCe,K8);var D9=se.for($),QCe=[-3,$,$be,{[k7]:D7,[M7]:403},[],[]];D9.registerError(QCe,zbe);var $Ce=[-3,$,sxe,{[k7]:D7,[M7]:409},[],[]];D9.registerError($Ce,Vbe);var ewe=[-3,$,cxe,{[k7]:D7,[M7]:409},[],[]];D9.registerError(ewe,Hbe);var twe=[-3,$,Vxe,{[k7]:D7,[M7]:400},[],[]];D9.registerError(twe,qbe);var nwe=[-3,$,tSe,{[k7]:D7,[M7]:400},[],[]];D9.registerError(nwe,Zbe);var rwe=[-3,$,eSe,{[k7]:D7,[M7]:403},[d7,oxe],[0,0]];D9.registerError(rwe,Wbe);var iwe=[-3,$,nSe,{[k7]:D7,[M7]:400},[],[]];D9.registerError(iwe,Jbe);var awe=[-3,$,sSe,{[k7]:D7,[M7]:400},[],[]];D9.registerError(awe,Ybe);var owe=[-3,$,DSe,{[k7]:D7,[M7]:404},[],[]];D9.registerError(owe,Ube);var swe=[-3,$,OSe,{[k7]:D7,[M7]:404},[],[]];D9.registerError(swe,Gbe);var cwe=[-3,$,kSe,{[k7]:D7,[M7]:404},[],[]];D9.registerError(cwe,Rbe);var lwe=[-3,$,ESe,{[k7]:D7},[],[]];D9.registerError(lwe,Kbe);var uwe=[-3,$,ASe,{[k7]:D7,[M7]:403},[],[]];D9.registerError(uwe,Qbe);var dwe=[-3,$,NSe,{[k7]:D7,[M7]:403},[],[]];D9.registerError(dwe,Bbe);var fwe=[-3,$,sCe,{[k7]:D7,[M7]:400},[],[]];D9.registerError(fwe,Xbe);var pwe=[E9,D9],O9=[0,$,nCe,8,0],k9=[0,$,m7,8,0],A9=[0,$,g7,8,0],j9=[0,$,_7,8,0],M9=[0,$,tCe,{[DCe]:1},42],mwe=[3,$,nxe,0,[a7],[[0,{[Z]:f9}]]],hwe=[3,$,rxe,0,[Y8,q5,w7,o7,P5,Jxe],[[0,1],[0,1],[0,{[Q]:R7}],[0,{[Z]:p9}],[0,{[Z]:r9}],[6,{[Z]:LCe}]],3],gwe=[3,$,Y8,0,[Q5,hxe,Q8,X8],[0,4,0,0]],_we=[3,$,uxe,0,[Bxe,C7],[0,0]],vwe=[3,$,wxe,0,[r7],[0]],ywe=[3,$,gxe,0,[WSe],[[()=>Qwe,{[B7]:1,[V7]:GSe}]]],bwe=[3,$,Dxe,0,[I5,i5,a5,o5,b5,x5,S5,_5,D5,O5,k5,i7],[0,0,0,0,0,0,0,0,0,0,0,1]],xwe=[3,$,_xe,{[V7]:yxe},[J5,Y8,q5,N5,I5,i5,a5,o5,b5,x5,S5,_5,D5,O5,k5,C5,f7,T7,_7,Z8,a7],[0,0,0,[0,{[Z]:n9}],0,0,0,0,0,0,0,0,0,0,0,0,[0,{[Z]:g9}],[0,{[Z]:w9}],[()=>j9,{[Z]:_9}],[2,{[Z]:v9}],[0,{[Z]:f9}]]],Swe=[3,$,bxe,0,[Y8,q5,w7,wSe,i5,a5,o5,b5,x5,S5,_5,D5,O5,k5,C5,CSe,o7,P5,U5,G5,p7,m7,h7],[[0,1],[0,1],[0,{[Q]:R7}],[()=>ywe,{[N7]:1,[V7]:y5}],[0,{[Z]:W7}],[0,{[Z]:G7}],[0,{[Z]:K7}],[0,{[Z]:J7}],[0,{[Z]:Y7}],[0,{[Z]:X7}],[0,{[Z]:q7}],[0,{[Z]:Q7}],[0,{[Z]:$7}],[0,{[Z]:e9}],[0,{[Z]:Z7}],[1,{[Z]:HCe}],[0,{[Z]:p9}],[0,{[Z]:r9}],[0,{[Z]:W5}],[0,{[Z]:K5}],[0,{[Z]:b9}],[()=>k9,{[Z]:x9}],[0,{[Z]:S9}]],3],Cwe=[3,$,n5,0,[mSe,J5,Y8,aCe],[0,()=>Rwe,()=>_we,[()=>P9,0]]],wwe=[3,$,pxe,0,[J5,X8],[[0,{[Z]:J5}],[0,{[Z]:ACe}]]],Twe=[3,$,mxe,0,[Y8,q8,n5,z5,B5,V5,Kxe,H5,jSe,PSe,dxe],[[0,1],[0,{[Z]:H7}],[()=>Cwe,{[N7]:1,[V7]:n5}],[0,{[Z]:i9}],[0,{[Z]:a9}],[0,{[Z]:o9}],[0,{[Z]:ICe}],[0,{[Z]:s9}],[2,{[Z]:NCe}],[0,{[Z]:WCe}],[0,{[Z]:MCe}]],1],Ewe=[3,$,vxe,{[V7]:$xe},[exe,axe,Y8,q5,w7,f7,p7,h7,_7,g7,Z8,a7,t5,C5],[[4,{[Z]:OCe}],[0,{[Z]:kCe}],[0,{[V7]:Y8}],0,0,[0,{[Z]:g9}],[0,{[Z]:b9}],[0,{[Z]:S9}],[()=>j9,{[Z]:_9}],[()=>A9,{[Z]:y9}],[2,{[Z]:v9}],[0,{[Z]:f9}],[0,{[Z]:U7}],[0,{[Z]:Z7}]]],Dwe=[3,$,xxe,0,[Y8,q5,q8,r5,l5,d5,f5,T5,R5,z5,B5,V5,H5,X5,f7,d7,E7,p7,m7,h7,_7,g7,Z8,o7,S7,t7,n7,e7,P5,t5,C5],[[0,1],[0,1],[0,{[Z]:H7}],[0,{[Z]:s5}],[0,{[Z]:c5}],[0,{[Z]:u5}],[0,{[Z]:p5}],[0,{[Z]:w5}],[4,{[Z]:R5}],[0,{[Z]:i9}],[0,{[Z]:a9}],[0,{[Z]:o9}],[0,{[Z]:s9}],[128,{[P7]:c9}],[0,{[Z]:g9}],[0,{[Z]:m9}],[0,{[Z]:T9}],[0,{[Z]:b9}],[()=>k9,{[Z]:x9}],[0,{[Z]:S9}],[()=>j9,{[Z]:_9}],[()=>A9,{[Z]:y9}],[2,{[Z]:v9}],[0,{[Z]:p9}],[0,{[Z]:C9}],[0,{[Z]:u9}],[5,{[Z]:d9}],[0,{[Z]:l9}],[0,{[Z]:r9}],[0,{[Z]:U7}],[0,{[Z]:Z7}]],2],Owe=[3,$,jxe,{[V7]:Mxe},[A5,f7,_7,g7,Z8],[[()=>Gwe,{[V7]:A5}],[0,{[Z]:g9}],[()=>j9,{[Z]:_9}],[()=>A9,{[Z]:y9}],[2,{[Z]:v9}]],1],kwe=[3,$,Nxe,0,[Y8,iCe,f7,_7,g7,Z8],[[0,1],[0,{[Z]:FCe}],[0,{[Z]:g9}],[()=>j9,{[Z]:_9}],[()=>A9,{[Z]:y9}],[2,{[Z]:v9}]],1],Awe=[3,$,Lxe,0,[j5,T7,a7],[[2,{[Z]:t9}],[0,{[Z]:w9}],[0,{[Z]:f9}]]],jwe=[3,$,Rxe,0,[Y8,q5,xSe,T7,o7,lxe,P5,U5,Yxe,Xxe],[[0,1],[0,1],[0,{[Z]:BCe}],[0,{[Q]:z7}],[0,{[Z]:p9}],[2,{[Z]:jCe}],[0,{[Z]:r9}],[0,{[Z]:W5}],[6,{[Z]:RCe}],[1,{[Z]:zCe}]],2],Mwe=[3,$,Wxe,0,[$8,j5,ixe,N5,eCe,Y5,h5,I5,i5,a5,o5,b5,x5,S5,_5,D5,O5,k5,C5,SSe,T7,r5,l5,d5,f5,kxe,T5,R5,F5,E7,f7,X5,p7,h7,_7,Z8,d7,a7,$Se,LSe,oCe,t7,n7,e7],[[()=>M9,16],[2,{[Z]:t9}],[0,{[Z]:pCe}],[0,{[Z]:n9}],[0,{[Z]:qCe}],[4,{[Z]:gSe}],[1,{[Z]:m5}],[0,{[Z]:I5}],[0,{[Z]:W7}],[0,{[Z]:G7}],[0,{[Z]:K7}],[0,{[Z]:J7}],[0,{[Z]:Y7}],[0,{[Z]:X7}],[0,{[Z]:q7}],[0,{[Z]:Q7}],[0,{[Z]:$7}],[0,{[Z]:e9}],[0,{[Z]:Z7}],[1,{[Z]:VCe}],[0,{[Z]:w9}],[0,{[Z]:s5}],[0,{[Z]:c5}],[0,{[Z]:u5}],[0,{[Z]:p5}],[0,{[Z]:Axe}],[0,{[Z]:w5}],[4,{[Z]:R5}],[0,{[Z]:F5}],[0,{[Z]:T9}],[0,{[Z]:g9}],[128,{[P7]:c9}],[0,{[Z]:b9}],[0,{[Z]:S9}],[()=>j9,{[Z]:_9}],[2,{[Z]:v9}],[0,{[Z]:m9}],[0,{[Z]:f9}],[0,{[Z]:JCe}],[1,{[Z]:UCe}],[1,{[Z]:YCe}],[0,{[Z]:u9}],[5,{[Z]:d9}],[0,{[Z]:l9}]]],Nwe=[3,$,Gxe,0,[Y8,q5,U5,Qxe,G5,aSe,c7,KSe,qSe,JSe,YSe,XSe,ZSe,T7,p7,m7,h7,o7,i7,P5,Cxe],[[0,1],[0,1],[0,{[Z]:W5}],[4,{[Z]:Zxe}],[0,{[Z]:K5}],[4,{[Z]:oSe}],[0,{[Z]:c7}],[0,{[Q]:bCe}],[0,{[Q]:xCe}],[0,{[Q]:SCe}],[0,{[Q]:CCe}],[0,{[Q]:wCe}],[6,{[Q]:TCe}],[0,{[Q]:z7}],[0,{[Z]:b9}],[()=>k9,{[Z]:x9}],[0,{[Z]:S9}],[0,{[Z]:p9}],[1,{[Q]:I7}],[0,{[Z]:r9}],[0,{[Z]:PCe}]],2],Pwe=[3,$,dSe,{[V7]:lSe},[e5,$5,E5,r7],[[()=>Xwe,0],()=>N9,0,0]],Fwe=[3,$,fSe,0,[bSe,E5,r7,Q8],[[1,{[Q]:vCe}],[0,{[Q]:O7}],[0,{[Q]:F7}],[0,{[Q]:mCe}]]],Iwe=[3,$,vSe,{[V7]:pSe},[iSe,Fxe,Q5,r7,M5,Z5,Oxe,L5,cSe,E5,TSe,l7,a7],[2,[()=>$we,{[B7]:1}],0,0,0,1,[()=>Zwe,{[B7]:1}],0,1,0,0,0,[0,{[Z]:f9}]]],Lwe=[3,$,ySe,0,[Y8,M5,L5,Z5,r7,E5,Hxe,l7,o7,P5,FSe],[[0,1],[0,{[Q]:hCe}],[0,{[Q]:gCe}],[1,{[Q]:yCe}],[0,{[Q]:F7}],[0,{[Q]:O7}],[2,{[Q]:_Ce}],[0,{[Q]:ECe}],[0,{[Z]:p9}],[0,{[Z]:r9}],[64,{[Z]:GCe}]],1],Rwe=[3,$,hSe,0,[C7,Q5],[0,0]],zwe=[3,$,ISe,0,[q5,Y5,I5,t5,C5,y7,d7,$5,s7],[0,4,0,[64,{[B7]:1}],0,1,0,()=>N9,()=>Wwe]],N9=[3,$,$5,0,[Ixe,qxe],[0,0]],Bwe=[3,$,zSe,0,[N5,I5,i5,a5,o5,b5,x5,S5,_5,D5,O5,k5,C5,f7,T7,p7,h7,_7,g7,Z8,y7,a7],[[0,{[Z]:n9}],[0,{[Z]:I5}],[0,{[Z]:W7}],[0,{[Z]:G7}],[0,{[Z]:K7}],[0,{[Z]:J7}],[0,{[Z]:Y7}],[0,{[Z]:X7}],[0,{[Z]:q7}],[0,{[Z]:Q7}],[0,{[Z]:$7}],[0,{[Z]:e9}],[0,{[Z]:Z7}],[0,{[Z]:g9}],[0,{[Z]:w9}],[0,{[Z]:b9}],[0,{[Z]:S9}],[()=>j9,{[Z]:_9}],[()=>A9,{[Z]:y9}],[2,{[Z]:v9}],[1,{[Z]:KCe}],[0,{[Z]:f9}]]],Vwe=[3,$,BSe,0,[Y8,q5,q8,$8,r5,l5,d5,f5,h5,v5,T5,t5,i5,a5,o5,b5,x5,S5,_5,D5,O5,k5,R5,U5,G5,z5,B5,V5,H5,fCe,X5,f7,d7,E7,p7,m7,h7,_7,g7,Z8,o7,S7,t7,n7,e7,P5],[[0,1],[0,1],[0,{[Z]:H7}],[()=>M9,16],[0,{[Z]:s5}],[0,{[Z]:c5}],[0,{[Z]:u5}],[0,{[Z]:p5}],[1,{[Z]:m5}],[0,{[Z]:g5}],[0,{[Z]:w5}],[0,{[Z]:h9}],[0,{[Z]:W7}],[0,{[Z]:G7}],[0,{[Z]:K7}],[0,{[Z]:J7}],[0,{[Z]:Y7}],[0,{[Z]:X7}],[0,{[Z]:q7}],[0,{[Z]:Q7}],[0,{[Z]:$7}],[0,{[Z]:e9}],[4,{[Z]:R5}],[0,{[Z]:W5}],[0,{[Z]:K5}],[0,{[Z]:i9}],[0,{[Z]:a9}],[0,{[Z]:o9}],[0,{[Z]:s9}],[1,{[Z]:XCe}],[128,{[P7]:c9}],[0,{[Z]:g9}],[0,{[Z]:m9}],[0,{[Z]:T9}],[0,{[Z]:b9}],[()=>k9,{[Z]:x9}],[0,{[Z]:S9}],[()=>j9,{[Z]:_9}],[()=>A9,{[Z]:y9}],[2,{[Z]:v9}],[0,{[Z]:p9}],[0,{[Z]:C9}],[0,{[Z]:u9}],[5,{[Z]:d9}],[0,{[Z]:l9}],[0,{[Z]:r9}]],2],Hwe=[3,$,HSe,0,[T7],[[0,{[Z]:w9}]]],Uwe=[3,$,USe,0,[Y8,q5,S7,T7,v5,t5,P5,o7],[[0,1],[0,1],[()=>qwe,{[N7]:1,[V7]:S7}],[0,{[Q]:z7}],[0,{[Z]:g5}],[0,{[Z]:h9}],[0,{[Z]:r9}],[0,{[Z]:p9}]],3],Wwe=[3,$,s7,0,[rSe,QSe],[2,4]],Gwe=[3,$,rCe,0,[J8,u7,v7,N5],[[0,{[V7]:J8}],[()=>O9,{[V7]:u7}],[()=>O9,{[V7]:v7}],[4,{[V7]:N5}]],4],Kwe=[3,$,x7,0,[q5,dCe],[0,0],2],qwe=[3,$,S7,0,[b7],[[()=>P9,0]],1],Jwe=[3,$,lCe,0,[f7,I5,i5,a5,o5,b5,x5,S5,_5,D5,O5,k5,p7,h7,_7,Z8,a7],[[0,{[Z]:g9}],[0,{[Z]:I5}],[0,{[Z]:W7}],[0,{[Z]:G7}],[0,{[Z]:K7}],[0,{[Z]:J7}],[0,{[Z]:Y7}],[0,{[Z]:X7}],[0,{[Z]:q7}],[0,{[Z]:Q7}],[0,{[Z]:$7}],[0,{[Z]:e9}],[0,{[Z]:b9}],[0,{[Z]:S9}],[()=>j9,{[Z]:_9}],[2,{[Z]:v9}],[0,{[Z]:f9}]]],Ywe=[3,$,uCe,0,[Y8,q5,i7,w7,$8,h5,v5,t5,i5,a5,o5,b5,x5,S5,_5,D5,O5,k5,p7,m7,h7,o7,P5],[[0,1],[0,1],[1,{[Q]:I7}],[0,{[Q]:R7}],[()=>M9,16],[1,{[Z]:m5}],[0,{[Z]:g5}],[0,{[Z]:h9}],[0,{[Z]:W7}],[0,{[Z]:G7}],[0,{[Z]:K7}],[0,{[Z]:J7}],[0,{[Z]:Y7}],[0,{[Z]:X7}],[0,{[Z]:q7}],[0,{[Z]:Q7}],[0,{[Z]:$7}],[0,{[Z]:e9}],[0,{[Z]:b9}],[()=>k9,{[Z]:x9}],[0,{[Z]:S9}],[0,{[Z]:p9}],[0,{[Z]:r9}]],4],Xwe=[1,$,e5,0,[()=>gwe,{[V7]:Y8}]],Zwe=[1,$,Txe,0,()=>vwe],Qwe=[1,$,Exe,0,()=>bwe],$we=[1,$,MSe,0,[()=>zwe,0]],P9=[1,$,b7,0,[()=>Kwe,{[V7]:x7}]],eTe=[9,$,txe,{[A7]:[`DELETE`,`/{Key+}?x-id=AbortMultipartUpload`,204]},()=>hwe,()=>mwe],tTe=[9,$,y5,{[A7]:[`POST`,`/{Key+}`,200]},()=>Swe,()=>xwe],nTe=[9,$,fxe,{[A7]:[`PUT`,`/`,200]},()=>Twe,()=>wwe],rTe=[9,$,Sxe,{[A7]:[`POST`,`/{Key+}?uploads`,200]},()=>Dwe,()=>Ewe],iTe=[9,$,Pxe,{[A7]:[`GET`,`/?session`,200]},()=>kwe,()=>Owe],aTe=[9,$,zxe,{[A7]:[`DELETE`,`/{Key+}?x-id=DeleteObject`,204]},()=>jwe,()=>Awe],oTe=[9,$,Uxe,{[j7]:`-`,[A7]:[`GET`,`/{Key+}?x-id=GetObject`,200]},()=>Nwe,()=>Mwe],sTe=[9,$,uSe,{[A7]:[`GET`,`/?x-id=ListBuckets`,200]},()=>Fwe,()=>Pwe],cTe=[9,$,_Se,{[A7]:[`GET`,`/?list-type=2`,200]},()=>Lwe,()=>Iwe],lTe=[9,$,RSe,{[j7]:`-`,[A7]:[`PUT`,`/{Key+}?x-id=PutObject`,200]},()=>Vwe,()=>Bwe],uTe=[9,$,VSe,{[j7]:`-`,[A7]:[`PUT`,`/{Key+}?tagging`,200]},()=>Uwe,()=>Hwe],dTe=[9,$,cCe,{[j7]:`-`,[A7]:[`PUT`,`/{Key+}?x-id=UploadPart`,200]},()=>Ywe,()=>Jwe],fTe=class extends Ae.classBuilder().ep({...G8,DisableS3ExpressSessionAuth:{type:`staticContextParams`,value:!0},Bucket:{type:`contextParams`,name:`Bucket`}}).m(function(e,t,n,r){return[tee(n,e.getEndpointParameterInstructions()),b6(n)]}).s(`AmazonS3`,`CreateSession`,{}).n(`S3Client`,`CreateSessionCommand`).sc(iTe).build(){},pTe={name:`@aws-sdk/client-s3`,description:`AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native`,version:`3.1067.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo s3`,test:`yarn g:vitest run`,"test:browser":`node ./test/browser-build/esbuild && yarn g:vitest run -c vitest.config.browser.mts`,"test:browser:watch":`node ./test/browser-build/esbuild && yarn g:vitest watch -c vitest.config.browser.mts`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts && yarn test:browser`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`,"test:integration":`yarn g:vitest run -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest watch -c vitest.config.integ.mts`,"test:watch":`yarn g:vitest watch`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha1-browser":`5.2.0`,"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.20`,"@aws-sdk/credential-provider-node":`^3.972.55`,"@aws-sdk/middleware-flexible-checksums":`^3.974.30`,"@aws-sdk/middleware-sdk-s3":`^3.972.51`,"@aws-sdk/signature-v4-multi-region":`^3.996.34`,"@aws-sdk/types":`^3.973.12`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@aws-sdk/signature-v4-crt":`3.1067.0`,"@smithy/snapshot-testing":`^2.1.7`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-s3`}};function F9(e){return typeof e==`string`?e.length===0:e.byteLength===0}var I9={name:`SHA-1`},L9={name:`HMAC`,hash:I9},mTe=new Uint8Array([218,57,163,238,94,107,75,13,50,85,191,239,149,96,24,144,175,216,7,9]),hTe={};function R9(){return typeof window<`u`?window:typeof self<`u`?self:hTe}var gTe=function(){function e(e){this.toHash=new Uint8Array,e!==void 0&&(this.key=new Promise(function(t,n){R9().crypto.subtle.importKey(`raw`,z9(e),L9,!1,[`sign`]).then(t,n)}),this.key.catch(function(){}))}return e.prototype.update=function(e){if(!F9(e)){var t=z9(e),n=new Uint8Array(this.toHash.byteLength+t.byteLength);n.set(this.toHash,0),n.set(t,this.toHash.byteLength),this.toHash=n}},e.prototype.digest=function(){var e=this;return this.key?this.key.then(function(t){return R9().crypto.subtle.sign(L9,t,e.toHash).then(function(e){return new Uint8Array(e)})}):F9(this.toHash)?Promise.resolve(mTe):Promise.resolve().then(function(){return R9().crypto.subtle.digest(I9,e.toHash)}).then(function(e){return Promise.resolve(new Uint8Array(e))})},e.prototype.reset=function(){this.toHash=new Uint8Array},e}();function z9(e){return typeof e==`string`?aee(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var _Te=function(){function e(e){if(lt(R9()))this.hash=new gTe(e);else throw Error(`SHA1 not supported`)}return e.prototype.update=function(e,t){this.hash.update(cee(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}();async function vTe(e,t,n=1024*1024){let r=e.size,i=0;for(;i{n.update(e)}),n.digest()},bTe=[1732584193,4023233417,2562383102,271733878],xTe=class{state;buffer;bufferLength;bytesHashed;finished;constructor(){this.reset()}update(e){if(STe(e))return;if(this.finished)throw Error(`Attempted to update an already finished hash.`);let t=CTe(e),n=0,{byteLength:r}=t;for(this.bytesHashed+=r;r>0;)this.buffer.setUint8(this.bufferLength++,t[n++]),r--,this.bufferLength===64&&(this.hashBuffer(),this.bufferLength=0)}async digest(){if(!this.finished){let{buffer:e,bufferLength:t,bytesHashed:n}=this,r=n*8;if(e.setUint8(this.bufferLength++,128),t%64>=56){for(let t=this.bufferLength;t<64;t++)e.setUint8(t,0);this.hashBuffer(),this.bufferLength=0}for(let t=this.bufferLength;t<56;t++)e.setUint8(t,0);e.setUint32(56,r>>>0,!0),e.setUint32(60,Math.floor(r/4294967296),!0),this.hashBuffer(),this.finished=!0}let e=new DataView(new ArrayBuffer(16));for(let t=0;t<4;t++)e.setUint32(t*4,this.state[t],!0);return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}hashBuffer(){let{buffer:e,state:t}=this,n=t[0],r=t[1],i=t[2],a=t[3];n=V9(n,r,i,a,e.getUint32(0,!0),7,3614090360),a=V9(a,n,r,i,e.getUint32(4,!0),12,3905402710),i=V9(i,a,n,r,e.getUint32(8,!0),17,606105819),r=V9(r,i,a,n,e.getUint32(12,!0),22,3250441966),n=V9(n,r,i,a,e.getUint32(16,!0),7,4118548399),a=V9(a,n,r,i,e.getUint32(20,!0),12,1200080426),i=V9(i,a,n,r,e.getUint32(24,!0),17,2821735955),r=V9(r,i,a,n,e.getUint32(28,!0),22,4249261313),n=V9(n,r,i,a,e.getUint32(32,!0),7,1770035416),a=V9(a,n,r,i,e.getUint32(36,!0),12,2336552879),i=V9(i,a,n,r,e.getUint32(40,!0),17,4294925233),r=V9(r,i,a,n,e.getUint32(44,!0),22,2304563134),n=V9(n,r,i,a,e.getUint32(48,!0),7,1804603682),a=V9(a,n,r,i,e.getUint32(52,!0),12,4254626195),i=V9(i,a,n,r,e.getUint32(56,!0),17,2792965006),r=V9(r,i,a,n,e.getUint32(60,!0),22,1236535329),n=H9(n,r,i,a,e.getUint32(4,!0),5,4129170786),a=H9(a,n,r,i,e.getUint32(24,!0),9,3225465664),i=H9(i,a,n,r,e.getUint32(44,!0),14,643717713),r=H9(r,i,a,n,e.getUint32(0,!0),20,3921069994),n=H9(n,r,i,a,e.getUint32(20,!0),5,3593408605),a=H9(a,n,r,i,e.getUint32(40,!0),9,38016083),i=H9(i,a,n,r,e.getUint32(60,!0),14,3634488961),r=H9(r,i,a,n,e.getUint32(16,!0),20,3889429448),n=H9(n,r,i,a,e.getUint32(36,!0),5,568446438),a=H9(a,n,r,i,e.getUint32(56,!0),9,3275163606),i=H9(i,a,n,r,e.getUint32(12,!0),14,4107603335),r=H9(r,i,a,n,e.getUint32(32,!0),20,1163531501),n=H9(n,r,i,a,e.getUint32(52,!0),5,2850285829),a=H9(a,n,r,i,e.getUint32(8,!0),9,4243563512),i=H9(i,a,n,r,e.getUint32(28,!0),14,1735328473),r=H9(r,i,a,n,e.getUint32(48,!0),20,2368359562),n=U9(n,r,i,a,e.getUint32(20,!0),4,4294588738),a=U9(a,n,r,i,e.getUint32(32,!0),11,2272392833),i=U9(i,a,n,r,e.getUint32(44,!0),16,1839030562),r=U9(r,i,a,n,e.getUint32(56,!0),23,4259657740),n=U9(n,r,i,a,e.getUint32(4,!0),4,2763975236),a=U9(a,n,r,i,e.getUint32(16,!0),11,1272893353),i=U9(i,a,n,r,e.getUint32(28,!0),16,4139469664),r=U9(r,i,a,n,e.getUint32(40,!0),23,3200236656),n=U9(n,r,i,a,e.getUint32(52,!0),4,681279174),a=U9(a,n,r,i,e.getUint32(0,!0),11,3936430074),i=U9(i,a,n,r,e.getUint32(12,!0),16,3572445317),r=U9(r,i,a,n,e.getUint32(24,!0),23,76029189),n=U9(n,r,i,a,e.getUint32(36,!0),4,3654602809),a=U9(a,n,r,i,e.getUint32(48,!0),11,3873151461),i=U9(i,a,n,r,e.getUint32(60,!0),16,530742520),r=U9(r,i,a,n,e.getUint32(8,!0),23,3299628645),n=W9(n,r,i,a,e.getUint32(0,!0),6,4096336452),a=W9(a,n,r,i,e.getUint32(28,!0),10,1126891415),i=W9(i,a,n,r,e.getUint32(56,!0),15,2878612391),r=W9(r,i,a,n,e.getUint32(20,!0),21,4237533241),n=W9(n,r,i,a,e.getUint32(48,!0),6,1700485571),a=W9(a,n,r,i,e.getUint32(12,!0),10,2399980690),i=W9(i,a,n,r,e.getUint32(40,!0),15,4293915773),r=W9(r,i,a,n,e.getUint32(4,!0),21,2240044497),n=W9(n,r,i,a,e.getUint32(32,!0),6,1873313359),a=W9(a,n,r,i,e.getUint32(60,!0),10,4264355552),i=W9(i,a,n,r,e.getUint32(24,!0),15,2734768916),r=W9(r,i,a,n,e.getUint32(52,!0),21,1309151649),n=W9(n,r,i,a,e.getUint32(16,!0),6,4149444226),a=W9(a,n,r,i,e.getUint32(44,!0),10,3174756917),i=W9(i,a,n,r,e.getUint32(8,!0),15,718787259),r=W9(r,i,a,n,e.getUint32(36,!0),21,3951481745),t[0]=n+t[0]&4294967295,t[1]=r+t[1]&4294967295,t[2]=i+t[2]&4294967295,t[3]=a+t[3]&4294967295}reset(){this.state=Uint32Array.from(bTe),this.buffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}};function B9(e,t,n,r,i,a){return t=(t+e&4294967295)+(r+a&4294967295)&4294967295,(t<>>32-i)+n&4294967295}function V9(e,t,n,r,i,a,o){return B9(t&n|~t&r,e,t,i,a,o)}function H9(e,t,n,r,i,a,o){return B9(t&r|n&~r,e,t,i,a,o)}function U9(e,t,n,r,i,a,o){return B9(t^n^r,e,t,i,a,o)}function W9(e,t,n,r,i,a,o){return B9(n^(t|~r),e,t,i,a,o)}function STe(e){return typeof e==`string`?e.length===0:e.byteLength===0}function CTe(e){return typeof e==`string`?vt(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var wTe=e=>({apiVersion:`2006-03-01`,base64Decoder:e?.base64Decoder??yt,base64Encoder:e?.base64Encoder??Ct,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??H8,extensions:e?.extensions??[],getAwsChunkedEncodingStream:e?.getAwsChunkedEncodingStream??see,httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Fbe,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new ie},{schemeId:`aws.auth#sigv4a`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4a`),signer:new Qe}],logger:e?.logger??new ze,protocol:e?.protocol??Tbe,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.s3`,errorTypeRegistries:pwe,xmlNamespace:`http://s3.amazonaws.com/doc/2006-03-01/`,version:`2006-03-01`,serviceTarget:`AmazonS3`},sdkStreamMixin:e?.sdkStreamMixin??wt,serviceId:e?.serviceId??`S3`,signerConstructor:e?.signerConstructor??je,signingEscapePath:e?.signingEscapePath??!1,urlParser:e?.urlParser??Ze,useArnRegion:e?.useArnRegion??void 0,utf8Decoder:e?.utf8Decoder??vt,utf8Encoder:e?.utf8Encoder??xt}),TTe=e=>{let t=xe(e),n=()=>t().then(Ve),r=wTe(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Dt,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??he({serviceId:r.serviceId,clientVersion:pTe.version}),eventStreamSerdeProvider:e?.eventStreamSerdeProvider??At,maxAttempts:e?.maxAttempts??3,md5:e?.md5??xTe,region:e?.region??$e(`Region is missing`),requestHandler:ke.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Ie),sha1:e?.sha1??_Te,sha256:e?.sha256??oe,streamCollector:e?.streamCollector??dt,streamHasher:e?.streamHasher??yTe,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},ETe=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},DTe=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),OTe=(e,t)=>{let n=Object.assign(Xe(e),ct(e),re(e),ETe(e));return t.forEach(e=>e.configure(n)),Object.assign(e,ye(n),mt(n),We(n),DTe(n))},kTe=class extends we{config;constructor(...[e]){let t=TTe(e||{});super(t),this.initConfig=t;let n=OTe(ibe(Ibe(kt(Ue(_e(Te(Le(Xye(Oe(Lbe(t))))))))),{session:[()=>this,fTe]}),e?.extensions||[]);this.config=n,this.middlewareStack.use(ue(this.config)),this.middlewareStack.use(ve(this.config)),this.middlewareStack.use(ge(this.config)),this.middlewareStack.use(De(this.config)),this.middlewareStack.use(pe(this.config)),this.middlewareStack.use(Fe(this.config)),this.middlewareStack.use(Ne(this.config)),this.middlewareStack.use(me(this.config,{httpAuthSchemeParametersProvider:Pbe,identityProviderConfigProvider:async e=>new ht({"aws.auth#sigv4":e.credentials,"aws.auth#sigv4a":e.credentials})})),this.middlewareStack.use(ae(this.config)),this.middlewareStack.use(wbe(this.config)),this.middlewareStack.use(Obe(this.config)),this.middlewareStack.use(tbe(this.config)),this.middlewareStack.use(lbe(this.config)),this.middlewareStack.use(mbe(this.config))}destroy(){super.destroy()}},G9=`ap-southeast-2`,K9=`${window.location.protocol}//localhost:9999`,ATe=`${window.location.protocol}//localhost:8443`,q9=null,J9=null,Y9=null,X9=null,Z9=null,Q9=null,$9=null;function jTe(){if(!q9){let e=at();if(!e)throw Error(`AWS credentials not configured`);q9=new xF({endpoint:K9,region:G9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),q9.middlewareStack.add(e=>async t=>(Ee.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return q9}function MTe(){if(!J9){let e=at();if(!e)throw Error(`AWS credentials not configured`);J9=new fQ({endpoint:K9,region:G9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),J9.middlewareStack.add(e=>async t=>(Ee.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return J9}function NTe(){if(!Y9){let e=at();if(!e)throw Error(`AWS credentials not configured`);Y9=new Vpe({endpoint:K9,region:G9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),Y9.middlewareStack.add(e=>async t=>(Ee.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return Y9}function PTe(){if(!X9){let e=at();if(!e)throw Error(`AWS credentials not configured`);X9=new ote({endpoint:K9,region:G9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),X9.middlewareStack.add(e=>async t=>(Ee.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return X9}function FTe(){if(!Z9){let e=at();if(!e)throw Error(`AWS credentials not configured`);Z9=new Wye({endpoint:K9,region:G9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),Z9.middlewareStack.add(e=>async t=>(Ee.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return Z9}function ITe(){if(!$9){let e=at();if(!e)throw Error(`AWS credentials not configured`);$9=new vV({endpoint:K9,region:G9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken}}),$9.middlewareStack.add(e=>async t=>(Ee.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return $9}function LTe(){if(!Q9){let e=at();if(!e)throw Error(`AWS credentials not configured`);Q9=new kTe({endpoint:ATe,region:G9,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken},forcePathStyle:!0}),Q9.middlewareStack.add(e=>async t=>(Ee.isInstance(t.request)&&t.request.path.endsWith(`/`)&&t.request.path!==`/`&&(t.request.path=t.request.path.slice(0,-1)),await e(t)),{step:`build`,name:`removeTrailingSlash`}),Q9.middlewareStack.add(e=>async t=>(Ee.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/s3${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}return Q9}function RTe(){q9=null,J9=null,Y9=null,X9=null,Z9=null,Q9=null,$9=null}export{Iye as $,UP as $n,aQ as $t,pye as A,bP as An,qt as Ar,vQ as At,Cye as B,AP as Bn,KZ as Bt,Yye as C,pP as Cn,pF as Cr,kpe as Ct,uye as D,_P as Dn,$ee as Dr,Npe as Dt,lye as E,gP as En,fte as Er,Mpe as Et,vye as F,TP as Fn,VZ as Ft,Oye as G,FP as Gn,ZZ as Gt,Tye as H,MP as Hn,JZ as Ht,yye as I,EP as In,HZ as It,jye as J,RP as Jn,eQ as Jt,kye as K,IP as Kn,QZ as Kt,bye as L,DP as Ln,UZ as Lt,hye as M,SP as Mn,RZ as Mt,gye as N,CP as Nn,zZ as Nt,dye as O,vP as On,ete as Or,Ppe as Ot,_ye as P,wP as Pn,BZ as Pt,Fye as Q,HP as Qn,iQ as Qt,xye as R,OP as Rn,WZ as Rt,v6 as S,fP as Sn,fF as Sr,Ope as St,Kye as T,hP as Tn,hF as Tr,jpe as Tt,Eye as U,NP as Un,YZ as Ut,wye as V,jP as Vn,qZ as Vt,Dye as W,PP as Wn,XZ as Wt,Nye as X,zP as Xn,nQ as Xt,Mye as Y,BP as Yn,tQ as Yt,Pye as Z,VP as Zn,rQ as Zt,lTe as _,sP as _n,sF as _r,Cpe as _t,MTe as a,sV as an,YP as ar,dpe as at,G8 as b,uP as bn,uF as br,Epe as bt,LTe as c,uV as cn,QP as cr,mpe as ct,nTe as d,xI as dn,tF as dr,_pe as dt,oQ as en,WP as er,Lye as et,rTe as f,OF as fn,nF as fr,vpe as ft,cTe as g,oP as gn,oF as gr,Spe as gt,sTe as h,aP as hn,aF as hr,xpe as ht,ITe as i,oV as in,JP as ir,upe as it,mye as j,xP as jn,Nt as jr,LZ as jt,fye as k,yP as kn,Fee as kr,Fpe as kt,eTe as l,dV as ln,$P as lr,hpe as lt,oTe as m,iP as mn,iF as mr,bpe as mt,PTe as n,iV as nn,KP as nr,qpe as nt,NTe as o,cV as on,XP as or,fpe as ot,aTe as p,rP as pn,rF as pr,ype as pt,Aye as q,LP as qn,$Z as qt,jTe as r,aV as rn,qP as rr,lpe as rt,FTe as s,lV as sn,ZP as sr,ppe as st,RTe as t,wV as tn,GP as tr,Rye as tt,tTe as u,fV as un,eF as ur,gpe as ut,uTe as v,cP as vn,cF as vr,wpe as vt,_6 as w,mP as wn,mF as wr,Ape as wt,b6 as x,dP as xn,dF as xr,Dpe as xt,dTe as y,lP as yn,lF as yr,Tpe as yt,Sye as z,kP as zn,GZ as zt}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/back-link.js b/spinifex/services/spinifexui/frontend/dist/assets/back-link.js index eac2d2af4..bcad2ad8f 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/back-link.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/back-link.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{kr as n}from"./awsClient.js";import{Lr as r}from"./index.js";var i=r(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),a=t(),o=e();function s(e){let t=(0,a.c)(7),r,s;t[0]===e?(r=t[1],s=t[2]):({children:r,...s}=e,t[0]=e,t[1]=r,t[2]=s);let c;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,o.jsx)(i,{className:`size-4`}),t[3]=c):c=t[3];let l;return t[4]!==r||t[5]!==s?(l=(0,o.jsxs)(n,{className:`mb-6 inline-flex items-center gap-2 text-sm`,...s,children:[c,r]}),t[4]=r,t[5]=s,t[6]=l):l=t[6],l}export{s as t}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{Ar as n}from"./awsClient.js";import{Lr as r}from"./index.js";var i=r(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),a=t(),o=e();function s(e){let t=(0,a.c)(7),r,s;t[0]===e?(r=t[1],s=t[2]):({children:r,...s}=e,t[0]=e,t[1]=r,t[2]=s);let c;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,o.jsx)(i,{className:`size-4`}),t[3]=c):c=t[3];let l;return t[4]!==r||t[5]!==s?(l=(0,o.jsxs)(n,{className:`mb-6 inline-flex items-center gap-2 text-sm`,...s,children:[c,r]}),t[4]=r,t[5]=s,t[6]=l):l=t[6],l}export{s as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/certificate-import-dialog.js b/spinifex/services/spinifexui/frontend/dist/assets/certificate-import-dialog.js index 8bc2058b2..46d21199c 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/certificate-import-dialog.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/certificate-import-dialog.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useMutation.js";import{Er as a,Or as o,n as s}from"./awsClient.js";import{St as c,ut as l}from"./auth.js";import{Vr as u}from"./index.js";import{t as d}from"./error-banner.js";import{a as f,t as p}from"./field.js";import{a as m,i as ee,l as te,n as h,o as g,r as _,s as v,t as y}from"./alert-dialog.js";import{t as b}from"./textarea.js";var x=class extends c.classBuilder().ep(o).m(function(e,t,n,r){return[l(n,e.getEndpointParameterInstructions())]}).s(`CertificateManager`,`ImportCertificate`,{}).n(`ACMClient`,`ImportCertificateCommand`).sc(a).build(){},S=t(n(),1),C=r(),w=new TextEncoder;function T(){let e=(0,C.c)(2),t=u(),n;return e[0]===t?n=e[1]:(n={mutationFn:E,onSuccess:()=>{t.invalidateQueries({queryKey:[`acm`,`certificates`]})}},e[0]=t,e[1]=n),i(n)}async function E(e){let t=new x({Certificate:w.encode(e.certificate),PrivateKey:w.encode(e.privateKey),CertificateChain:e.certificateChain&&e.certificateChain.length>0?w.encode(e.certificateChain):void 0});return await s().send(t)}var D=e();function O(e){let t=(0,C.c)(54),{open:n,onOpenChange:r,onImported:i}=e,[a,o]=(0,S.useState)(``),[s,c]=(0,S.useState)(``),[l,u]=(0,S.useState)(``),x=T(),w;t[0]===x?w=t[1]:(w=()=>{o(``),c(``),u(``),x.reset()},t[0]=x,t[1]=w);let E=w,O;t[2]!==r||t[3]!==E?(O=e=>{e||E(),r(e)},t[2]=r,t[3]=E,t[4]=O):O=t[4];let k=O,A;t[5]!==a||t[6]!==s?(A=a.trim().length>0&&s.trim().length>0,t[5]=a,t[6]=s,t[7]=A):A=t[7];let j=A,M;t[8]!==j||t[9]!==a||t[10]!==l||t[11]!==x||t[12]!==i||t[13]!==r||t[14]!==s||t[15]!==E?(M=async()=>{if(j)try{let e=await x.mutateAsync({certificate:a,privateKey:s,certificateChain:l});e.CertificateArn&&i(e.CertificateArn),E(),r(!1)}catch{}},t[8]=j,t[9]=a,t[10]=l,t[11]=x,t[12]=i,t[13]=r,t[14]=s,t[15]=E,t[16]=M):M=t[16];let N=M,P;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(P={maxWidth:`36rem`,width:`calc(100vw - 2rem)`},t[17]=P):P=t[17];let F;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,D.jsxs)(v,{children:[(0,D.jsx)(te,{children:`Import certificate`}),(0,D.jsx)(m,{children:`Paste a PEM-encoded certificate and its private key. The optional chain is appended for intermediate CAs.`})]}),t[18]=F):F=t[18];let I;t[19]===x.error?I=t[20]:(I=x.error&&(0,D.jsx)(d,{error:x.error,msg:`Failed to import certificate`}),t[19]=x.error,t[20]=I);let L;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,D.jsx)(f,{children:(0,D.jsx)(`label`,{htmlFor:`cert-body`,children:`Certificate body`})}),t[21]=L):L=t[21];let R;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(R=e=>o(e.target.value),t[22]=R):R=t[22];let z;t[23]===a?z=t[24]:(z=(0,D.jsxs)(p,{children:[L,(0,D.jsx)(b,{className:`font-mono text-xs`,id:`cert-body`,onChange:R,placeholder:`-----BEGIN CERTIFICATE-----`,rows:5,value:a})]}),t[23]=a,t[24]=z);let B;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,D.jsx)(f,{children:(0,D.jsx)(`label`,{htmlFor:`cert-key`,children:`Private key`})}),t[25]=B):B=t[25];let V;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(V=e=>c(e.target.value),t[26]=V):V=t[26];let H;t[27]===s?H=t[28]:(H=(0,D.jsxs)(p,{children:[B,(0,D.jsx)(b,{className:`font-mono text-xs`,id:`cert-key`,onChange:V,placeholder:`-----BEGIN PRIVATE KEY-----`,rows:5,value:s})]}),t[27]=s,t[28]=H);let U;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,D.jsx)(f,{children:(0,D.jsx)(`label`,{htmlFor:`cert-chain`,children:`Certificate chain (optional)`})}),t[29]=U):U=t[29];let W;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(W=e=>u(e.target.value),t[30]=W):W=t[30];let G;t[31]===l?G=t[32]:(G=(0,D.jsxs)(p,{children:[U,(0,D.jsx)(b,{className:`font-mono text-xs`,id:`cert-chain`,onChange:W,placeholder:`-----BEGIN CERTIFICATE-----`,rows:4,value:l})]}),t[31]=l,t[32]=G);let K;t[33]!==z||t[34]!==H||t[35]!==G?(K=(0,D.jsxs)(`div`,{className:`min-w-0 space-y-4`,children:[z,H,G]}),t[33]=z,t[34]=H,t[35]=G,t[36]=K):K=t[36];let q;t[37]===x.isPending?q=t[38]:(q=(0,D.jsx)(_,{disabled:x.isPending,children:`Cancel`}),t[37]=x.isPending,t[38]=q);let J=!j||x.isPending,Y=x.isPending?`Importing…`:`Import`,X;t[39]!==N||t[40]!==J||t[41]!==Y?(X=(0,D.jsx)(h,{disabled:J,onClick:N,children:Y}),t[39]=N,t[40]=J,t[41]=Y,t[42]=X):X=t[42];let Z;t[43]!==q||t[44]!==X?(Z=(0,D.jsxs)(g,{children:[q,X]}),t[43]=q,t[44]=X,t[45]=Z):Z=t[45];let Q;t[46]!==K||t[47]!==Z||t[48]!==I?(Q=(0,D.jsxs)(ee,{className:`grid-cols-[minmax(0,1fr)]`,style:P,children:[F,I,K,Z]}),t[46]=K,t[47]=Z,t[48]=I,t[49]=Q):Q=t[49];let $;return t[50]!==k||t[51]!==n||t[52]!==Q?($=(0,D.jsx)(y,{onOpenChange:k,open:n,children:Q}),t[50]=k,t[51]=n,t[52]=Q,t[53]=$):$=t[53],$}export{O as t}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useMutation.js";import{Dr as a,kr as o,n as s}from"./awsClient.js";import{St as c,ut as l}from"./auth.js";import{Vr as u}from"./index.js";import{t as d}from"./error-banner.js";import{a as f,t as p}from"./field.js";import{a as m,i as ee,l as te,n as h,o as g,r as _,s as v,t as y}from"./alert-dialog.js";import{t as b}from"./textarea.js";var x=class extends c.classBuilder().ep(o).m(function(e,t,n,r){return[l(n,e.getEndpointParameterInstructions())]}).s(`CertificateManager`,`ImportCertificate`,{}).n(`ACMClient`,`ImportCertificateCommand`).sc(a).build(){},S=t(n(),1),C=r(),w=new TextEncoder;function T(){let e=(0,C.c)(2),t=u(),n;return e[0]===t?n=e[1]:(n={mutationFn:E,onSuccess:()=>{t.invalidateQueries({queryKey:[`acm`,`certificates`]})}},e[0]=t,e[1]=n),i(n)}async function E(e){let t=new x({Certificate:w.encode(e.certificate),PrivateKey:w.encode(e.privateKey),CertificateChain:e.certificateChain&&e.certificateChain.length>0?w.encode(e.certificateChain):void 0});return await s().send(t)}var D=e();function O(e){let t=(0,C.c)(54),{open:n,onOpenChange:r,onImported:i}=e,[a,o]=(0,S.useState)(``),[s,c]=(0,S.useState)(``),[l,u]=(0,S.useState)(``),x=T(),w;t[0]===x?w=t[1]:(w=()=>{o(``),c(``),u(``),x.reset()},t[0]=x,t[1]=w);let E=w,O;t[2]!==r||t[3]!==E?(O=e=>{e||E(),r(e)},t[2]=r,t[3]=E,t[4]=O):O=t[4];let k=O,A;t[5]!==a||t[6]!==s?(A=a.trim().length>0&&s.trim().length>0,t[5]=a,t[6]=s,t[7]=A):A=t[7];let j=A,M;t[8]!==j||t[9]!==a||t[10]!==l||t[11]!==x||t[12]!==i||t[13]!==r||t[14]!==s||t[15]!==E?(M=async()=>{if(j)try{let e=await x.mutateAsync({certificate:a,privateKey:s,certificateChain:l});e.CertificateArn&&i(e.CertificateArn),E(),r(!1)}catch{}},t[8]=j,t[9]=a,t[10]=l,t[11]=x,t[12]=i,t[13]=r,t[14]=s,t[15]=E,t[16]=M):M=t[16];let N=M,P;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(P={maxWidth:`36rem`,width:`calc(100vw - 2rem)`},t[17]=P):P=t[17];let F;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,D.jsxs)(v,{children:[(0,D.jsx)(te,{children:`Import certificate`}),(0,D.jsx)(m,{children:`Paste a PEM-encoded certificate and its private key. The optional chain is appended for intermediate CAs.`})]}),t[18]=F):F=t[18];let I;t[19]===x.error?I=t[20]:(I=x.error&&(0,D.jsx)(d,{error:x.error,msg:`Failed to import certificate`}),t[19]=x.error,t[20]=I);let L;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,D.jsx)(f,{children:(0,D.jsx)(`label`,{htmlFor:`cert-body`,children:`Certificate body`})}),t[21]=L):L=t[21];let R;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(R=e=>o(e.target.value),t[22]=R):R=t[22];let z;t[23]===a?z=t[24]:(z=(0,D.jsxs)(p,{children:[L,(0,D.jsx)(b,{className:`font-mono text-xs`,id:`cert-body`,onChange:R,placeholder:`-----BEGIN CERTIFICATE-----`,rows:5,value:a})]}),t[23]=a,t[24]=z);let B;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,D.jsx)(f,{children:(0,D.jsx)(`label`,{htmlFor:`cert-key`,children:`Private key`})}),t[25]=B):B=t[25];let V;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(V=e=>c(e.target.value),t[26]=V):V=t[26];let H;t[27]===s?H=t[28]:(H=(0,D.jsxs)(p,{children:[B,(0,D.jsx)(b,{className:`font-mono text-xs`,id:`cert-key`,onChange:V,placeholder:`-----BEGIN PRIVATE KEY-----`,rows:5,value:s})]}),t[27]=s,t[28]=H);let U;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,D.jsx)(f,{children:(0,D.jsx)(`label`,{htmlFor:`cert-chain`,children:`Certificate chain (optional)`})}),t[29]=U):U=t[29];let W;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(W=e=>u(e.target.value),t[30]=W):W=t[30];let G;t[31]===l?G=t[32]:(G=(0,D.jsxs)(p,{children:[U,(0,D.jsx)(b,{className:`font-mono text-xs`,id:`cert-chain`,onChange:W,placeholder:`-----BEGIN CERTIFICATE-----`,rows:4,value:l})]}),t[31]=l,t[32]=G);let K;t[33]!==z||t[34]!==H||t[35]!==G?(K=(0,D.jsxs)(`div`,{className:`min-w-0 space-y-4`,children:[z,H,G]}),t[33]=z,t[34]=H,t[35]=G,t[36]=K):K=t[36];let q;t[37]===x.isPending?q=t[38]:(q=(0,D.jsx)(_,{disabled:x.isPending,children:`Cancel`}),t[37]=x.isPending,t[38]=q);let J=!j||x.isPending,Y=x.isPending?`Importing…`:`Import`,X;t[39]!==N||t[40]!==J||t[41]!==Y?(X=(0,D.jsx)(h,{disabled:J,onClick:N,children:Y}),t[39]=N,t[40]=J,t[41]=Y,t[42]=X):X=t[42];let Z;t[43]!==q||t[44]!==X?(Z=(0,D.jsxs)(g,{children:[q,X]}),t[43]=q,t[44]=X,t[45]=Z):Z=t[45];let Q;t[46]!==K||t[47]!==Z||t[48]!==I?(Q=(0,D.jsxs)(ee,{className:`grid-cols-[minmax(0,1fr)]`,style:P,children:[F,I,K,Z]}),t[46]=K,t[47]=Z,t[48]=I,t[49]=Q):Q=t[49];let $;return t[50]!==k||t[51]!==n||t[52]!==Q?($=(0,D.jsx)(y,{onOpenChange:k,open:n,children:Q}),t[50]=k,t[51]=n,t[52]=Q,t[53]=$):$=t[53],$}export{O as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/create-nat-gateway.js b/spinifex/services/spinifexui/frontend/dist/assets/create-nat-gateway.js index 76addda8f..1c2d2c9b8 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/create-nat-gateway.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/create-nat-gateway.js @@ -1,4 +1,4 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{kr as r}from"./awsClient.js";import{Ut as i}from"./auth.js";import{t as a}from"./back-link.js";import{c as o,i as s,n as ee,s as c,t as te}from"./select.js";import{t as ne}from"./cli-command-panel.js";import{m as re}from"./ec2.js";import{Br as ie,Hn as ae,Lt as oe,pt as se}from"./index.js";import{a as ce,i as le,n as ue,t as de}from"./zod.js";import{t as fe}from"./error-banner.js";import{t as pe}from"./form-actions.js";import{t as me}from"./page-heading.js";import{a as l,r as he,t as u}from"./field.js";import{s as ge}from"./ec22.js";var _e=t(),d=e();function f(){let e=(0,_e.c)(70),t=ie(),{data:i}=n(oe),{data:s}=n(se),f=re(),p;e[0]===i.Subnets?p=e[1]:(p=i.Subnets??[],e[0]=i.Subnets,e[1]=p);let m=p,h;e[2]===m?h=e[3]:(h=m.filter(xe),e[2]=m,e[3]=h);let Ce=h,g=Ce.length>0?Ce:m,_;e[4]===s.Addresses?_=e[5]:(_=s.Addresses??[],e[4]=s.Addresses,e[5]=_);let v;e[6]===_?v=e[7]:(v=_.filter(be),e[6]=_,e[7]=v);let y=v,b;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:de(ge),defaultValues:{subnetId:``,allocationId:``,name:``}},e[8]=b):b=e[8];let{control:x,handleSubmit:S,register:C,formState:we}=le(b),{errors:w,isSubmitting:T}=we,E;e[9]===x?E=e[10]:(E={control:x},e[9]=x,e[10]=E);let D=ce(E),O;e[11]===D?O=e[12]:(O=e=>e?D[e]:void 0,e[11]=D,e[12]=O);let k=O,A;e[13]!==f||e[14]!==t?(A=async e=>{let n=(await f.mutateAsync({subnetId:e.subnetId,allocationId:e.allocationId,name:e.name?.trim()??void 0})).NatGateway?.NatGatewayId;t(n?{to:`/ec2/describe-nat-gateways/$id`,params:{id:n}}:{to:`/ec2/describe-nat-gateways`})},e[13]=f,e[14]=t,e[15]=A):A=e[15];let j=A,M,N;e[16]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,d.jsx)(a,{to:`/ec2/describe-nat-gateways`,children:`Back to NAT Gateways`}),M=(0,d.jsx)(me,{title:`Create NAT Gateway`}),e[16]=M,e[17]=N):(M=e[16],N=e[17]);let P;e[18]===f.error?P=e[19]:(P=f.error&&(0,d.jsx)(fe,{error:f.error,msg:`Failed to create NAT Gateway`}),e[18]=f.error,e[19]=P);let F;e[20]!==S||e[21]!==j?(F=S(j),e[20]=S,e[21]=j,e[22]=F):F=e[22];let I;e[23]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,d.jsx)(l,{children:(0,d.jsx)(`label`,{htmlFor:`name`,children:`Name (optional)`})}),e[23]=I):I=e[23];let L;e[24]===C?L=e[25]:(L=C(`name`),e[24]=C,e[25]=L);let R;e[26]===L?R=e[27]:(R=(0,d.jsxs)(u,{children:[I,(0,d.jsx)(ae,{id:`name`,placeholder:`my-nat-gateway`,...L})]}),e[26]=L,e[27]=R);let z;e[28]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,d.jsx)(l,{children:(0,d.jsx)(`label`,{htmlFor:`subnetId`,children:`Public subnet`})}),e[28]=z):z=e[28];let B;e[29]!==w.subnetId||e[30]!==g?(B=e=>{let{field:t}=e;return(0,d.jsxs)(te,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,d.jsx)(c,{"aria-invalid":!!w.subnetId,className:`w-full`,id:`subnetId`,children:(0,d.jsx)(o,{placeholder:`Select a public subnet`})}),(0,d.jsx)(ee,{children:g.map(ye)})]})},e[29]=w.subnetId,e[30]=g,e[31]=B):B=e[31];let V;e[32]!==x||e[33]!==B?(V=(0,d.jsx)(ue,{control:x,name:`subnetId`,render:B}),e[32]=x,e[33]=B,e[34]=V):V=e[34];let H;e[35]===w.subnetId?H=e[36]:(H=(0,d.jsx)(he,{errors:[w.subnetId]}),e[35]=w.subnetId,e[36]=H);let U;e[37]!==V||e[38]!==H?(U=(0,d.jsxs)(u,{children:[z,V,H]}),e[37]=V,e[38]=H,e[39]=U):U=e[39];let W;e[40]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,d.jsx)(l,{children:(0,d.jsx)(`label`,{htmlFor:`allocationId`,children:`Elastic IP`})}),e[40]=W):W=e[40];let G;e[41]!==y||e[42]!==x||e[43]!==w.allocationId?(G=y.length>0?(0,d.jsx)(ue,{control:x,name:`allocationId`,render:e=>{let{field:t}=e;return(0,d.jsxs)(te,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,d.jsx)(c,{"aria-invalid":!!w.allocationId,className:`w-full`,id:`allocationId`,children:(0,d.jsx)(o,{placeholder:`Select an Elastic IP`})}),(0,d.jsx)(ee,{children:y.map(ve)})]})}}):(0,d.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`No available Elastic IPs.`,` `,(0,d.jsx)(r,{className:`text-primary hover:underline`,to:`/ec2/allocate-address`,children:`Allocate one`}),` `,`first.`]}),e[41]=y,e[42]=x,e[43]=w.allocationId,e[44]=G):G=e[44];let K;e[45]===w.allocationId?K=e[46]:(K=(0,d.jsx)(he,{errors:[w.allocationId]}),e[45]=w.allocationId,e[46]=K);let q;e[47]!==G||e[48]!==K?(q=(0,d.jsxs)(u,{children:[W,G,K]}),e[47]=G,e[48]=K,e[49]=q):q=e[49];let J;e[50]===k?J=e[51]:(J=Se(k),e[50]=k,e[51]=J);let Y;e[52]===J?Y=e[53]:(Y=(0,d.jsx)(ne,{commands:J}),e[52]=J,e[53]=Y);let X;e[54]===t?X=e[55]:(X=async()=>await t({to:`/ec2/describe-nat-gateways`}),e[54]=t,e[55]=X);let Z;e[56]!==f.isPending||e[57]!==T||e[58]!==X?(Z=(0,d.jsx)(pe,{isPending:f.isPending,isSubmitting:T,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create NAT Gateway`}),e[56]=f.isPending,e[57]=T,e[58]=X,e[59]=Z):Z=e[59];let Q;e[60]!==F||e[61]!==R||e[62]!==U||e[63]!==q||e[64]!==Y||e[65]!==Z?(Q=(0,d.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:F,children:[R,U,q,Y,Z]}),e[60]=F,e[61]=R,e[62]=U,e[63]=q,e[64]=Y,e[65]=Z,e[66]=Q):Q=e[66];let $;return e[67]!==P||e[68]!==Q?($=(0,d.jsxs)(d.Fragment,{children:[N,M,P,Q]}),e[67]=P,e[68]=Q,e[69]=$):$=e[69],$}function ve(e){return(0,d.jsx)(s,{value:e.AllocationId??``,children:`${e.AllocationId} (${e.PublicIp})`},e.AllocationId)}function ye(e){let t=i(e.Tags);return(0,d.jsx)(s,{value:e.SubnetId??``,children:t?`${e.SubnetId} (${t})`:`${e.SubnetId} (${e.CidrBlock})`},e.SubnetId)}function be(e){return!e.AssociationId}function xe(e){return e.MapPublicIpOnLaunch}function Se(e){let t=e(`subnetId`),n=typeof t==`string`?t:``,r=e(`allocationId`),i=typeof r==`string`?r:``,a=e(`name`),o=typeof a==`string`?a:``,s=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-nat-gateway`},{type:`flag`,value:` \\ +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ar as r}from"./awsClient.js";import{Ut as i}from"./auth.js";import{t as a}from"./back-link.js";import{c as o,i as s,n as ee,s as c,t as te}from"./select.js";import{t as ne}from"./cli-command-panel.js";import{m as re}from"./ec2.js";import{Br as ie,Hn as ae,Lt as oe,pt as se}from"./index.js";import{a as ce,i as le,n as ue,t as de}from"./zod.js";import{t as fe}from"./error-banner.js";import{t as pe}from"./form-actions.js";import{t as me}from"./page-heading.js";import{a as l,r as he,t as u}from"./field.js";import{s as ge}from"./ec22.js";var _e=t(),d=e();function f(){let e=(0,_e.c)(70),t=ie(),{data:i}=n(oe),{data:s}=n(se),f=re(),p;e[0]===i.Subnets?p=e[1]:(p=i.Subnets??[],e[0]=i.Subnets,e[1]=p);let m=p,h;e[2]===m?h=e[3]:(h=m.filter(xe),e[2]=m,e[3]=h);let Ce=h,g=Ce.length>0?Ce:m,_;e[4]===s.Addresses?_=e[5]:(_=s.Addresses??[],e[4]=s.Addresses,e[5]=_);let v;e[6]===_?v=e[7]:(v=_.filter(be),e[6]=_,e[7]=v);let y=v,b;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(b={resolver:de(ge),defaultValues:{subnetId:``,allocationId:``,name:``}},e[8]=b):b=e[8];let{control:x,handleSubmit:S,register:C,formState:we}=le(b),{errors:w,isSubmitting:T}=we,E;e[9]===x?E=e[10]:(E={control:x},e[9]=x,e[10]=E);let D=ce(E),O;e[11]===D?O=e[12]:(O=e=>e?D[e]:void 0,e[11]=D,e[12]=O);let k=O,A;e[13]!==f||e[14]!==t?(A=async e=>{let n=(await f.mutateAsync({subnetId:e.subnetId,allocationId:e.allocationId,name:e.name?.trim()??void 0})).NatGateway?.NatGatewayId;t(n?{to:`/ec2/describe-nat-gateways/$id`,params:{id:n}}:{to:`/ec2/describe-nat-gateways`})},e[13]=f,e[14]=t,e[15]=A):A=e[15];let j=A,M,N;e[16]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,d.jsx)(a,{to:`/ec2/describe-nat-gateways`,children:`Back to NAT Gateways`}),M=(0,d.jsx)(me,{title:`Create NAT Gateway`}),e[16]=M,e[17]=N):(M=e[16],N=e[17]);let P;e[18]===f.error?P=e[19]:(P=f.error&&(0,d.jsx)(fe,{error:f.error,msg:`Failed to create NAT Gateway`}),e[18]=f.error,e[19]=P);let F;e[20]!==S||e[21]!==j?(F=S(j),e[20]=S,e[21]=j,e[22]=F):F=e[22];let I;e[23]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,d.jsx)(l,{children:(0,d.jsx)(`label`,{htmlFor:`name`,children:`Name (optional)`})}),e[23]=I):I=e[23];let L;e[24]===C?L=e[25]:(L=C(`name`),e[24]=C,e[25]=L);let R;e[26]===L?R=e[27]:(R=(0,d.jsxs)(u,{children:[I,(0,d.jsx)(ae,{id:`name`,placeholder:`my-nat-gateway`,...L})]}),e[26]=L,e[27]=R);let z;e[28]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,d.jsx)(l,{children:(0,d.jsx)(`label`,{htmlFor:`subnetId`,children:`Public subnet`})}),e[28]=z):z=e[28];let B;e[29]!==w.subnetId||e[30]!==g?(B=e=>{let{field:t}=e;return(0,d.jsxs)(te,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,d.jsx)(c,{"aria-invalid":!!w.subnetId,className:`w-full`,id:`subnetId`,children:(0,d.jsx)(o,{placeholder:`Select a public subnet`})}),(0,d.jsx)(ee,{children:g.map(ye)})]})},e[29]=w.subnetId,e[30]=g,e[31]=B):B=e[31];let V;e[32]!==x||e[33]!==B?(V=(0,d.jsx)(ue,{control:x,name:`subnetId`,render:B}),e[32]=x,e[33]=B,e[34]=V):V=e[34];let H;e[35]===w.subnetId?H=e[36]:(H=(0,d.jsx)(he,{errors:[w.subnetId]}),e[35]=w.subnetId,e[36]=H);let U;e[37]!==V||e[38]!==H?(U=(0,d.jsxs)(u,{children:[z,V,H]}),e[37]=V,e[38]=H,e[39]=U):U=e[39];let W;e[40]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,d.jsx)(l,{children:(0,d.jsx)(`label`,{htmlFor:`allocationId`,children:`Elastic IP`})}),e[40]=W):W=e[40];let G;e[41]!==y||e[42]!==x||e[43]!==w.allocationId?(G=y.length>0?(0,d.jsx)(ue,{control:x,name:`allocationId`,render:e=>{let{field:t}=e;return(0,d.jsxs)(te,{onValueChange:e=>t.onChange(e),value:t.value??``,children:[(0,d.jsx)(c,{"aria-invalid":!!w.allocationId,className:`w-full`,id:`allocationId`,children:(0,d.jsx)(o,{placeholder:`Select an Elastic IP`})}),(0,d.jsx)(ee,{children:y.map(ve)})]})}}):(0,d.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`No available Elastic IPs.`,` `,(0,d.jsx)(r,{className:`text-primary hover:underline`,to:`/ec2/allocate-address`,children:`Allocate one`}),` `,`first.`]}),e[41]=y,e[42]=x,e[43]=w.allocationId,e[44]=G):G=e[44];let K;e[45]===w.allocationId?K=e[46]:(K=(0,d.jsx)(he,{errors:[w.allocationId]}),e[45]=w.allocationId,e[46]=K);let q;e[47]!==G||e[48]!==K?(q=(0,d.jsxs)(u,{children:[W,G,K]}),e[47]=G,e[48]=K,e[49]=q):q=e[49];let J;e[50]===k?J=e[51]:(J=Se(k),e[50]=k,e[51]=J);let Y;e[52]===J?Y=e[53]:(Y=(0,d.jsx)(ne,{commands:J}),e[52]=J,e[53]=Y);let X;e[54]===t?X=e[55]:(X=async()=>await t({to:`/ec2/describe-nat-gateways`}),e[54]=t,e[55]=X);let Z;e[56]!==f.isPending||e[57]!==T||e[58]!==X?(Z=(0,d.jsx)(pe,{isPending:f.isPending,isSubmitting:T,onCancel:X,pendingLabel:`Creating…`,submitLabel:`Create NAT Gateway`}),e[56]=f.isPending,e[57]=T,e[58]=X,e[59]=Z):Z=e[59];let Q;e[60]!==F||e[61]!==R||e[62]!==U||e[63]!==q||e[64]!==Y||e[65]!==Z?(Q=(0,d.jsxs)(`form`,{className:`max-w-4xl space-y-6`,onSubmit:F,children:[R,U,q,Y,Z]}),e[60]=F,e[61]=R,e[62]=U,e[63]=q,e[64]=Y,e[65]=Z,e[66]=Q):Q=e[66];let $;return e[67]!==P||e[68]!==Q?($=(0,d.jsxs)(d.Fragment,{children:[N,M,P,Q]}),e[67]=P,e[68]=Q,e[69]=$):$=e[69],$}function ve(e){return(0,d.jsx)(s,{value:e.AllocationId??``,children:`${e.AllocationId} (${e.PublicIp})`},e.AllocationId)}function ye(e){let t=i(e.Tags);return(0,d.jsx)(s,{value:e.SubnetId??``,children:t?`${e.SubnetId} (${t})`:`${e.SubnetId} (${e.CidrBlock})`},e.SubnetId)}function be(e){return!e.AssociationId}function xe(e){return e.MapPublicIpOnLaunch}function Se(e){let t=e(`subnetId`),n=typeof t==`string`?t:``,r=e(`allocationId`),i=typeof r==`string`?r:``,a=e(`name`),o=typeof a==`string`?a:``,s=[{type:`bin`,value:`AWS_PROFILE=spinifex aws ec2 create-nat-gateway`},{type:`flag`,value:` \\ --subnet-id`},{type:`value`,value:` ${n||``}`},{type:`flag`,value:` \\ --allocation-id`},{type:`value`,value:` ${i||``}`}];return o.trim()&&s.push({type:`flag`,value:` \\ --tag-specifications`},{type:`value`,value:` 'ResourceType=natgateway,Tags=[{Key=Name,Value=${o.trim()}}]'`}),[{label:`Create NAT Gateway`,parts:s}]}export{f as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-addresses.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-addresses.js index 233f35fa4..7e4a9929e 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-addresses.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-addresses.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{kr as r}from"./awsClient.js";import{Ut as i}from"./auth.js";import{t as a}from"./button.js";import{pt as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";var l=t(),u=e();function d(){let e=(0,l.c)(5),{data:t}=n(o),i;e[0]===t.Addresses?i=e[1]:(i=t.Addresses??[],e[0]=t.Addresses,e[1]=i);let c=i,d;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(s,{actions:(0,u.jsx)(r,{to:`/ec2/allocate-address`,children:(0,u.jsx)(a,{children:`Allocate Elastic IP`})}),title:`Elastic IPs`}),e[2]=d):d=e[2];let p;return e[3]===c?p=e[4]:(p=(0,u.jsxs)(u.Fragment,{children:[d,c.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:c.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No Elastic IPs found.`})]}),e[3]=c,e[4]=p),p}function f(e){if(!e.AllocationId)return null;let t=i(e.Tags),n=e.AssociationId?`${e.PublicIp} • associated`:`${e.PublicIp} • available`;return(0,u.jsx)(c,{params:{id:e.AllocationId},subtitle:n,title:t?`${e.AllocationId} (${t})`:e.AllocationId??``,to:`/ec2/describe-addresses/$id`},e.AllocationId)}export{d as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ar as r}from"./awsClient.js";import{Ut as i}from"./auth.js";import{t as a}from"./button.js";import{pt as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";var l=t(),u=e();function d(){let e=(0,l.c)(5),{data:t}=n(o),i;e[0]===t.Addresses?i=e[1]:(i=t.Addresses??[],e[0]=t.Addresses,e[1]=i);let c=i,d;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(s,{actions:(0,u.jsx)(r,{to:`/ec2/allocate-address`,children:(0,u.jsx)(a,{children:`Allocate Elastic IP`})}),title:`Elastic IPs`}),e[2]=d):d=e[2];let p;return e[3]===c?p=e[4]:(p=(0,u.jsxs)(u.Fragment,{children:[d,c.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:c.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No Elastic IPs found.`})]}),e[3]=c,e[4]=p),p}function f(e){if(!e.AllocationId)return null;let t=i(e.Tags),n=e.AssociationId?`${e.PublicIp} • associated`:`${e.PublicIp} • available`;return(0,u.jsx)(c,{params:{id:e.AllocationId},subtitle:n,title:t?`${e.AllocationId} (${t})`:e.AllocationId??``,to:`/ec2/describe-addresses/$id`},e.AllocationId)}export{d as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-instances.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-instances.js index 2a2d82f2d..64b76de95 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-instances.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-instances.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{kr as r}from"./awsClient.js";import{t as i}from"./button.js";import{bt as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";import{t as c}from"./state-badge.js";var l=t(),u=e(),d={running:0,pending:1,stopping:2,"shutting-down":3,stopped:4,terminated:5};function f(){let e=(0,l.c)(3),{data:t}=n(a),s;if(e[0]!==t.Reservations){let n=(t.Reservations?.flatMap(h)??[]).toSorted(m),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,u.jsx)(o,{actions:(0,u.jsx)(r,{to:`/ec2/run-instances`,children:(0,u.jsx)(i,{children:`Run Instances`})}),title:`Instances`}),e[2]=a):a=e[2],s=(0,u.jsxs)(u.Fragment,{children:[a,n.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:n.map(p)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No instances found.`})]}),e[0]=t.Reservations,e[1]=s}else s=e[1];return s}function p(e){return e.InstanceId?(0,u.jsx)(s,{badge:(0,u.jsx)(c,{state:e.State?.Name}),params:{id:e.InstanceId},subtitle:`${e.InstanceType}`,title:e.InstanceId,to:`/ec2/describe-instances/$id`},e.InstanceId):null}function m(e,t){let n=d[e.State?.Name??``]??6,r=d[t.State?.Name??``]??6;return n===r?(e.InstanceId??``).localeCompare(t.InstanceId??``):n-r}function h(e){return e.Instances??[]}export{f as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ar as r}from"./awsClient.js";import{t as i}from"./button.js";import{bt as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";import{t as c}from"./state-badge.js";var l=t(),u=e(),d={running:0,pending:1,stopping:2,"shutting-down":3,stopped:4,terminated:5};function f(){let e=(0,l.c)(3),{data:t}=n(a),s;if(e[0]!==t.Reservations){let n=(t.Reservations?.flatMap(h)??[]).toSorted(m),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,u.jsx)(o,{actions:(0,u.jsx)(r,{to:`/ec2/run-instances`,children:(0,u.jsx)(i,{children:`Run Instances`})}),title:`Instances`}),e[2]=a):a=e[2],s=(0,u.jsxs)(u.Fragment,{children:[a,n.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:n.map(p)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No instances found.`})]}),e[0]=t.Reservations,e[1]=s}else s=e[1];return s}function p(e){return e.InstanceId?(0,u.jsx)(s,{badge:(0,u.jsx)(c,{state:e.State?.Name}),params:{id:e.InstanceId},subtitle:`${e.InstanceType}`,title:e.InstanceId,to:`/ec2/describe-instances/$id`},e.InstanceId):null}function m(e,t){let n=d[e.State?.Name??``]??6,r=d[t.State?.Name??``]??6;return n===r?(e.InstanceId??``).localeCompare(t.InstanceId??``):n-r}function h(e){return e.Instances??[]}export{f as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-internet-gateways.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-internet-gateways.js index 21888281e..5ae653479 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-internet-gateways.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-internet-gateways.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{kr as r}from"./awsClient.js";import{Ut as i}from"./auth.js";import{t as a}from"./button.js";import{St as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";var l=t(),u=e();function d(){let e=(0,l.c)(5),{data:t}=n(o),i;e[0]===t.InternetGateways?i=e[1]:(i=t.InternetGateways??[],e[0]=t.InternetGateways,e[1]=i);let c=i,d;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(s,{actions:(0,u.jsx)(r,{to:`/ec2/create-internet-gateway`,children:(0,u.jsx)(a,{children:`Create Internet Gateway`})}),title:`Internet Gateways`}),e[2]=d):d=e[2];let p;return e[3]===c?p=e[4]:(p=(0,u.jsxs)(u.Fragment,{children:[d,c.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:c.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No Internet Gateways found.`})]}),e[3]=c,e[4]=p),p}function f(e){if(!e.InternetGatewayId)return null;let t=i(e.Tags),n=e.Attachments?.[0]?.VpcId;return(0,u.jsx)(c,{params:{id:e.InternetGatewayId},subtitle:n?`attached to ${n}`:`detached`,title:t?`${e.InternetGatewayId} (${t})`:e.InternetGatewayId,to:`/ec2/describe-internet-gateways/$id`},e.InternetGatewayId)}export{d as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ar as r}from"./awsClient.js";import{Ut as i}from"./auth.js";import{t as a}from"./button.js";import{St as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";var l=t(),u=e();function d(){let e=(0,l.c)(5),{data:t}=n(o),i;e[0]===t.InternetGateways?i=e[1]:(i=t.InternetGateways??[],e[0]=t.InternetGateways,e[1]=i);let c=i,d;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(s,{actions:(0,u.jsx)(r,{to:`/ec2/create-internet-gateway`,children:(0,u.jsx)(a,{children:`Create Internet Gateway`})}),title:`Internet Gateways`}),e[2]=d):d=e[2];let p;return e[3]===c?p=e[4]:(p=(0,u.jsxs)(u.Fragment,{children:[d,c.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:c.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No Internet Gateways found.`})]}),e[3]=c,e[4]=p),p}function f(e){if(!e.InternetGatewayId)return null;let t=i(e.Tags),n=e.Attachments?.[0]?.VpcId;return(0,u.jsx)(c,{params:{id:e.InternetGatewayId},subtitle:n?`attached to ${n}`:`detached`,title:t?`${e.InternetGatewayId} (${t})`:e.InternetGatewayId,to:`/ec2/describe-internet-gateways/$id`},e.InternetGatewayId)}export{d as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-key-pairs.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-key-pairs.js index f9bd44395..1a4066cab 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-key-pairs.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-key-pairs.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{kr as r}from"./awsClient.js";import{t as i}from"./button.js";import{wt as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=t(),l=e();function u(){let e=(0,c.c)(4),{data:t}=n(a),s;if(e[0]!==t.KeyPairs){let n=(t.KeyPairs??[]).toSorted(f),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,l.jsx)(r,{to:`/ec2/import-key-pair`,children:(0,l.jsx)(i,{variant:`outline`,children:`Import Key Pair`})}),e[2]=a):a=e[2];let c;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,l.jsx)(o,{actions:(0,l.jsxs)(`div`,{className:`flex gap-2`,children:[a,(0,l.jsx)(r,{to:`/ec2/create-key-pair`,children:(0,l.jsx)(i,{children:`Create Key Pair`})})]}),title:`Key Pairs`}),e[3]=c):c=e[3],s=(0,l.jsxs)(l.Fragment,{children:[c,n.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:n.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No key pairs found.`})]}),e[0]=t.KeyPairs,e[1]=s}else s=e[1];return s}function d(e){return e.KeyPairId?(0,l.jsx)(s,{params:{id:e.KeyPairId},subtitle:e.KeyPairId??``,title:e.KeyName??``,to:`/ec2/describe-key-pairs/$id`},e.KeyPairId):null}function f(e,t){let n=e.KeyName?.toLowerCase()??``,r=t.KeyName?.toLowerCase()??``;return n.localeCompare(r)}export{u as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ar as r}from"./awsClient.js";import{t as i}from"./button.js";import{wt as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=t(),l=e();function u(){let e=(0,c.c)(4),{data:t}=n(a),s;if(e[0]!==t.KeyPairs){let n=(t.KeyPairs??[]).toSorted(f),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,l.jsx)(r,{to:`/ec2/import-key-pair`,children:(0,l.jsx)(i,{variant:`outline`,children:`Import Key Pair`})}),e[2]=a):a=e[2];let c;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,l.jsx)(o,{actions:(0,l.jsxs)(`div`,{className:`flex gap-2`,children:[a,(0,l.jsx)(r,{to:`/ec2/create-key-pair`,children:(0,l.jsx)(i,{children:`Create Key Pair`})})]}),title:`Key Pairs`}),e[3]=c):c=e[3],s=(0,l.jsxs)(l.Fragment,{children:[c,n.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:n.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No key pairs found.`})]}),e[0]=t.KeyPairs,e[1]=s}else s=e[1];return s}function d(e){return e.KeyPairId?(0,l.jsx)(s,{params:{id:e.KeyPairId},subtitle:e.KeyPairId??``,title:e.KeyName??``,to:`/ec2/describe-key-pairs/$id`},e.KeyPairId):null}function f(e,t){let n=e.KeyName?.toLowerCase()??``,r=t.KeyName?.toLowerCase()??``;return n.localeCompare(r)}export{u as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-load-balancers.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-load-balancers.js index fe6ce8e7a..58c2b9cef 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-load-balancers.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-load-balancers.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{kr as r}from"./awsClient.js";import{Bt as i}from"./auth.js";import{t as a}from"./button.js";import{Br as o,H as s}from"./index.js";import{t as c}from"./page-heading.js";import{t as l}from"./state-badge.js";var u=t(),d=e();function f(){let e=(0,u.c)(10),t=o(),{data:f}=n(s),m;e[0]===f.LoadBalancers?m=e[1]:(m=f.LoadBalancers??[],e[0]=f.LoadBalancers,e[1]=m);let h=m,g;e[2]===t?g=e[3]:(g=(0,d.jsx)(c,{actions:(0,d.jsx)(a,{onClick:async()=>await t({to:`/ec2/create-load-balancer`}),children:`Create Load Balancer`}),title:`Load Balancers`}),e[2]=t,e[3]=g);let _;e[4]!==h||e[5]!==t?(_=h.length>0?(0,d.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,d.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,d.jsx)(`thead`,{children:(0,d.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Name`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`DNS Name`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`State`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Type`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Scheme`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`VPC`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Created`})]})}),(0,d.jsx)(`tbody`,{children:h.map(e=>{if(!e.LoadBalancerArn)return null;let n=e.LoadBalancerArn;return(0,d.jsxs)(`tr`,{className:`cursor-pointer border-b transition-colors last:border-0 hover:bg-accent`,onClick:async()=>await t({to:`/ec2/describe-load-balancers/$id`,params:{id:encodeURIComponent(n)}}),children:[(0,d.jsx)(`td`,{className:`px-4 py-2 font-medium`,children:(0,d.jsx)(r,{className:`text-primary hover:underline`,onClick:p,params:{id:encodeURIComponent(n)},to:`/ec2/describe-load-balancers/$id`,children:e.LoadBalancerName??n})}),(0,d.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.DNSName??``}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:(0,d.jsx)(l,{state:e.State?.Code})}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:e.Type??``}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:e.Scheme??``}),(0,d.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.VpcId??``}),(0,d.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:i(e.CreatedTime)})]},n)})})]})}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No load balancers found.`}),e[4]=h,e[5]=t,e[6]=_):_=e[6];let v;return e[7]!==g||e[8]!==_?(v=(0,d.jsxs)(d.Fragment,{children:[g,_]}),e[7]=g,e[8]=_,e[9]=v):v=e[9],v}function p(e){return e.stopPropagation()}var m=f;export{m as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ar as r}from"./awsClient.js";import{Bt as i}from"./auth.js";import{t as a}from"./button.js";import{Br as o,H as s}from"./index.js";import{t as c}from"./page-heading.js";import{t as l}from"./state-badge.js";var u=t(),d=e();function f(){let e=(0,u.c)(10),t=o(),{data:f}=n(s),m;e[0]===f.LoadBalancers?m=e[1]:(m=f.LoadBalancers??[],e[0]=f.LoadBalancers,e[1]=m);let h=m,g;e[2]===t?g=e[3]:(g=(0,d.jsx)(c,{actions:(0,d.jsx)(a,{onClick:async()=>await t({to:`/ec2/create-load-balancer`}),children:`Create Load Balancer`}),title:`Load Balancers`}),e[2]=t,e[3]=g);let _;e[4]!==h||e[5]!==t?(_=h.length>0?(0,d.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,d.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,d.jsx)(`thead`,{children:(0,d.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Name`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`DNS Name`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`State`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Type`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Scheme`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`VPC`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Created`})]})}),(0,d.jsx)(`tbody`,{children:h.map(e=>{if(!e.LoadBalancerArn)return null;let n=e.LoadBalancerArn;return(0,d.jsxs)(`tr`,{className:`cursor-pointer border-b transition-colors last:border-0 hover:bg-accent`,onClick:async()=>await t({to:`/ec2/describe-load-balancers/$id`,params:{id:encodeURIComponent(n)}}),children:[(0,d.jsx)(`td`,{className:`px-4 py-2 font-medium`,children:(0,d.jsx)(r,{className:`text-primary hover:underline`,onClick:p,params:{id:encodeURIComponent(n)},to:`/ec2/describe-load-balancers/$id`,children:e.LoadBalancerName??n})}),(0,d.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.DNSName??``}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:(0,d.jsx)(l,{state:e.State?.Code})}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:e.Type??``}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:e.Scheme??``}),(0,d.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.VpcId??``}),(0,d.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:i(e.CreatedTime)})]},n)})})]})}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No load balancers found.`}),e[4]=h,e[5]=t,e[6]=_):_=e[6];let v;return e[7]!==g||e[8]!==_?(v=(0,d.jsxs)(d.Fragment,{children:[g,_]}),e[7]=g,e[8]=_,e[9]=v):v=e[9],v}function p(e){return e.stopPropagation()}var m=f;export{m as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-nat-gateways.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-nat-gateways.js index fa3ed4861..cdeaa20d4 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-nat-gateways.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-nat-gateways.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{kr as r}from"./awsClient.js";import{Ut as i}from"./auth.js";import{t as a}from"./button.js";import{Et as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";import{t as l}from"./state-badge.js";var u=t(),d=e();function f(){let e=(0,u.c)(5),{data:t}=n(o),i;e[0]===t.NatGateways?i=e[1]:(i=t.NatGateways??[],e[0]=t.NatGateways,e[1]=i);let c=i,l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,d.jsx)(s,{actions:(0,d.jsx)(r,{to:`/ec2/create-nat-gateway`,children:(0,d.jsx)(a,{children:`Create NAT Gateway`})}),title:`NAT Gateways`}),e[2]=l):l=e[2];let f;return e[3]===c?f=e[4]:(f=(0,d.jsxs)(d.Fragment,{children:[l,c.length>0?(0,d.jsx)(`div`,{className:`space-y-4`,children:c.map(p)}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No NAT Gateways found.`})]}),e[3]=c,e[4]=f),f}function p(e){if(!e.NatGatewayId)return null;let t=i(e.Tags);return(0,d.jsx)(c,{badge:(0,d.jsx)(l,{state:e.State}),params:{id:e.NatGatewayId},subtitle:e.SubnetId??``,title:t?`${e.NatGatewayId} (${t})`:e.NatGatewayId,to:`/ec2/describe-nat-gateways/$id`},e.NatGatewayId)}export{f as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ar as r}from"./awsClient.js";import{Ut as i}from"./auth.js";import{t as a}from"./button.js";import{Et as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";import{t as l}from"./state-badge.js";var u=t(),d=e();function f(){let e=(0,u.c)(5),{data:t}=n(o),i;e[0]===t.NatGateways?i=e[1]:(i=t.NatGateways??[],e[0]=t.NatGateways,e[1]=i);let c=i,l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,d.jsx)(s,{actions:(0,d.jsx)(r,{to:`/ec2/create-nat-gateway`,children:(0,d.jsx)(a,{children:`Create NAT Gateway`})}),title:`NAT Gateways`}),e[2]=l):l=e[2];let f;return e[3]===c?f=e[4]:(f=(0,d.jsxs)(d.Fragment,{children:[l,c.length>0?(0,d.jsx)(`div`,{className:`space-y-4`,children:c.map(p)}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No NAT Gateways found.`})]}),e[3]=c,e[4]=f),f}function p(e){if(!e.NatGatewayId)return null;let t=i(e.Tags);return(0,d.jsx)(c,{badge:(0,d.jsx)(l,{state:e.State}),params:{id:e.NatGatewayId},subtitle:e.SubnetId??``,title:t?`${e.NatGatewayId} (${t})`:e.NatGatewayId,to:`/ec2/describe-nat-gateways/$id`},e.NatGatewayId)}export{f as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-placement-groups.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-placement-groups.js index 5c3dd9079..557c6bd35 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-placement-groups.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-placement-groups.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{kr as r}from"./awsClient.js";import{t as i}from"./button.js";import{Ot as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";import{t as c}from"./state-badge.js";var l=t(),u=e();function d(){let e=(0,l.c)(5),{data:t}=n(a),s;e[0]===t.PlacementGroups?s=e[1]:(s=t.PlacementGroups??[],e[0]=t.PlacementGroups,e[1]=s);let c=s,d;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(o,{actions:(0,u.jsx)(r,{to:`/ec2/create-placement-group`,children:(0,u.jsx)(i,{children:`Create Placement Group`})}),title:`Placement Groups`}),e[2]=d):d=e[2];let p;return e[3]===c?p=e[4]:(p=(0,u.jsxs)(u.Fragment,{children:[d,c.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:c.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No placement groups found.`})]}),e[3]=c,e[4]=p),p}function f(e){return e.GroupId?(0,u.jsx)(s,{badge:(0,u.jsx)(c,{state:e.State}),params:{id:e.GroupId},subtitle:`${e.Strategy} \u2022 ${e.GroupId}`,title:e.GroupName??e.GroupId,to:`/ec2/describe-placement-groups/$id`},e.GroupId):null}export{d as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ar as r}from"./awsClient.js";import{t as i}from"./button.js";import{Ot as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";import{t as c}from"./state-badge.js";var l=t(),u=e();function d(){let e=(0,l.c)(5),{data:t}=n(a),s;e[0]===t.PlacementGroups?s=e[1]:(s=t.PlacementGroups??[],e[0]=t.PlacementGroups,e[1]=s);let c=s,d;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(o,{actions:(0,u.jsx)(r,{to:`/ec2/create-placement-group`,children:(0,u.jsx)(i,{children:`Create Placement Group`})}),title:`Placement Groups`}),e[2]=d):d=e[2];let p;return e[3]===c?p=e[4]:(p=(0,u.jsxs)(u.Fragment,{children:[d,c.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:c.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No placement groups found.`})]}),e[3]=c,e[4]=p),p}function f(e){return e.GroupId?(0,u.jsx)(s,{badge:(0,u.jsx)(c,{state:e.State}),params:{id:e.GroupId},subtitle:`${e.Strategy} \u2022 ${e.GroupId}`,title:e.GroupName??e.GroupId,to:`/ec2/describe-placement-groups/$id`},e.GroupId):null}export{d as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-route-tables.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-route-tables.js index 76988492c..e5ed87b5c 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-route-tables.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-route-tables.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{kr as r}from"./awsClient.js";import{Ut as i}from"./auth.js";import{t as a}from"./button.js";import{jt as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";import{t as l}from"./badge.js";var u=t(),d=e();function f(){let e=(0,u.c)(5),{data:t}=n(o),i;e[0]===t.RouteTables?i=e[1]:(i=t.RouteTables??[],e[0]=t.RouteTables,e[1]=i);let c=i,l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,d.jsx)(s,{actions:(0,d.jsx)(r,{to:`/ec2/create-route-table`,children:(0,d.jsx)(a,{children:`Create Route Table`})}),title:`Route Tables`}),e[2]=l):l=e[2];let f;return e[3]===c?f=e[4]:(f=(0,d.jsxs)(d.Fragment,{children:[l,c.length>0?(0,d.jsx)(`div`,{className:`space-y-4`,children:c.map(p)}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No Route Tables found.`})]}),e[3]=c,e[4]=f),f}function p(e){if(!e.RouteTableId)return null;let t=i(e.Tags),n=e.Associations?.some(h)??!1,r=e.Associations?.filter(m).length??0;return(0,d.jsx)(c,{badge:n?(0,d.jsx)(l,{variant:`secondary`,children:`Main`}):null,params:{id:e.RouteTableId},subtitle:`${e.VpcId??``} · ${r} subnet${r===1?``:`s`}`,title:t?`${e.RouteTableId} (${t})`:e.RouteTableId,to:`/ec2/describe-route-tables/$id`},e.RouteTableId)}function m(e){return e.SubnetId}function h(e){return e.Main}export{f as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ar as r}from"./awsClient.js";import{Ut as i}from"./auth.js";import{t as a}from"./button.js";import{jt as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";import{t as l}from"./badge.js";var u=t(),d=e();function f(){let e=(0,u.c)(5),{data:t}=n(o),i;e[0]===t.RouteTables?i=e[1]:(i=t.RouteTables??[],e[0]=t.RouteTables,e[1]=i);let c=i,l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,d.jsx)(s,{actions:(0,d.jsx)(r,{to:`/ec2/create-route-table`,children:(0,d.jsx)(a,{children:`Create Route Table`})}),title:`Route Tables`}),e[2]=l):l=e[2];let f;return e[3]===c?f=e[4]:(f=(0,d.jsxs)(d.Fragment,{children:[l,c.length>0?(0,d.jsx)(`div`,{className:`space-y-4`,children:c.map(p)}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No Route Tables found.`})]}),e[3]=c,e[4]=f),f}function p(e){if(!e.RouteTableId)return null;let t=i(e.Tags),n=e.Associations?.some(h)??!1,r=e.Associations?.filter(m).length??0;return(0,d.jsx)(c,{badge:n?(0,d.jsx)(l,{variant:`secondary`,children:`Main`}):null,params:{id:e.RouteTableId},subtitle:`${e.VpcId??``} · ${r} subnet${r===1?``:`s`}`,title:t?`${e.RouteTableId} (${t})`:e.RouteTableId,to:`/ec2/describe-route-tables/$id`},e.RouteTableId)}function m(e){return e.SubnetId}function h(e){return e.Main}export{f as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-security-groups.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-security-groups.js index aa3e45cc4..c50ed9393 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-security-groups.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-security-groups.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{kr as r}from"./awsClient.js";import{t as i}from"./button.js";import{Nt as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=t(),l=e();function u(){let e=(0,c.c)(5),{data:t}=n(a),s;e[0]===t.SecurityGroups?s=e[1]:(s=t.SecurityGroups??[],e[0]=t.SecurityGroups,e[1]=s);let u=s,f;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,l.jsx)(o,{actions:(0,l.jsx)(r,{to:`/ec2/create-security-group`,children:(0,l.jsx)(i,{children:`Create Security Group`})}),title:`Security Groups`}),e[2]=f):f=e[2];let p;return e[3]===u?p=e[4]:(p=(0,l.jsxs)(l.Fragment,{children:[f,u.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:u.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No security groups found.`})]}),e[3]=u,e[4]=p),p}function d(e){return e.GroupId?(0,l.jsx)(s,{params:{id:e.GroupId},subtitle:e.VpcId??``,title:e.GroupName?`${e.GroupId} (${e.GroupName})`:e.GroupId,to:`/ec2/describe-security-groups/$id`},e.GroupId):null}export{u as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ar as r}from"./awsClient.js";import{t as i}from"./button.js";import{Nt as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=t(),l=e();function u(){let e=(0,c.c)(5),{data:t}=n(a),s;e[0]===t.SecurityGroups?s=e[1]:(s=t.SecurityGroups??[],e[0]=t.SecurityGroups,e[1]=s);let u=s,f;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,l.jsx)(o,{actions:(0,l.jsx)(r,{to:`/ec2/create-security-group`,children:(0,l.jsx)(i,{children:`Create Security Group`})}),title:`Security Groups`}),e[2]=f):f=e[2];let p;return e[3]===u?p=e[4]:(p=(0,l.jsxs)(l.Fragment,{children:[f,u.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:u.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No security groups found.`})]}),e[3]=u,e[4]=p),p}function d(e){return e.GroupId?(0,l.jsx)(s,{params:{id:e.GroupId},subtitle:e.VpcId??``,title:e.GroupName?`${e.GroupId} (${e.GroupName})`:e.GroupId,to:`/ec2/describe-security-groups/$id`},e.GroupId):null}export{u as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-snapshots.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-snapshots.js index 97a1bd677..50e748df6 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-snapshots.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-snapshots.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{kr as r}from"./awsClient.js";import{t as i}from"./button.js";import{Ft as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";import{t as c}from"./state-badge.js";var l=t(),u=e();function d(){let e=(0,l.c)(5),{data:t}=n(a),s;e[0]===t.Snapshots?s=e[1]:(s=t.Snapshots??[],e[0]=t.Snapshots,e[1]=s);let c=s,d;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(o,{actions:(0,u.jsx)(r,{to:`/ec2/create-snapshot`,children:(0,u.jsx)(i,{children:`Create Snapshot`})}),title:`Snapshots`}),e[2]=d):d=e[2];let p;return e[3]===c?p=e[4]:(p=(0,u.jsxs)(u.Fragment,{children:[d,c.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:c.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No snapshots found.`})]}),e[3]=c,e[4]=p),p}function f(e){return e.SnapshotId?(0,u.jsx)(s,{badge:(0,u.jsx)(c,{state:e.State}),params:{id:e.SnapshotId},subtitle:`${e.VolumeSize} GiB \u2022 ${e.VolumeId}`,title:e.SnapshotId,to:`/ec2/describe-snapshots/$id`},e.SnapshotId):null}export{d as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ar as r}from"./awsClient.js";import{t as i}from"./button.js";import{Ft as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";import{t as c}from"./state-badge.js";var l=t(),u=e();function d(){let e=(0,l.c)(5),{data:t}=n(a),s;e[0]===t.Snapshots?s=e[1]:(s=t.Snapshots??[],e[0]=t.Snapshots,e[1]=s);let c=s,d;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(o,{actions:(0,u.jsx)(r,{to:`/ec2/create-snapshot`,children:(0,u.jsx)(i,{children:`Create Snapshot`})}),title:`Snapshots`}),e[2]=d):d=e[2];let p;return e[3]===c?p=e[4]:(p=(0,u.jsxs)(u.Fragment,{children:[d,c.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:c.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No snapshots found.`})]}),e[3]=c,e[4]=p),p}function f(e){return e.SnapshotId?(0,u.jsx)(s,{badge:(0,u.jsx)(c,{state:e.State}),params:{id:e.SnapshotId},subtitle:`${e.VolumeSize} GiB \u2022 ${e.VolumeId}`,title:e.SnapshotId,to:`/ec2/describe-snapshots/$id`},e.SnapshotId):null}export{d as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-subnets.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-subnets.js index 47af3f837..7c9593719 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-subnets.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-subnets.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{kr as r}from"./awsClient.js";import{Ut as i}from"./auth.js";import{t as a}from"./button.js";import{Lt as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";import{t as l}from"./state-badge.js";var u=t(),d=e();function f(){let e=(0,u.c)(5),{data:t}=n(o),i;e[0]===t.Subnets?i=e[1]:(i=t.Subnets??[],e[0]=t.Subnets,e[1]=i);let c=i,l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,d.jsx)(s,{actions:(0,d.jsx)(r,{to:`/ec2/create-subnet`,children:(0,d.jsx)(a,{children:`Create Subnet`})}),title:`Subnets`}),e[2]=l):l=e[2];let f;return e[3]===c?f=e[4]:(f=(0,d.jsxs)(d.Fragment,{children:[l,c.length>0?(0,d.jsx)(`div`,{className:`space-y-4`,children:c.map(p)}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No subnets found.`})]}),e[3]=c,e[4]=f),f}function p(e){if(!e.SubnetId)return null;let t=i(e.Tags);return(0,d.jsx)(c,{badge:(0,d.jsx)(l,{state:e.State}),params:{id:e.SubnetId},subtitle:`${e.CidrBlock??``} \u2022 ${e.AvailabilityZone??``}`,title:t?`${e.SubnetId} (${t})`:e.SubnetId,to:`/ec2/describe-subnets/$id`},e.SubnetId)}export{f as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ar as r}from"./awsClient.js";import{Ut as i}from"./auth.js";import{t as a}from"./button.js";import{Lt as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";import{t as l}from"./state-badge.js";var u=t(),d=e();function f(){let e=(0,u.c)(5),{data:t}=n(o),i;e[0]===t.Subnets?i=e[1]:(i=t.Subnets??[],e[0]=t.Subnets,e[1]=i);let c=i,l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,d.jsx)(s,{actions:(0,d.jsx)(r,{to:`/ec2/create-subnet`,children:(0,d.jsx)(a,{children:`Create Subnet`})}),title:`Subnets`}),e[2]=l):l=e[2];let f;return e[3]===c?f=e[4]:(f=(0,d.jsxs)(d.Fragment,{children:[l,c.length>0?(0,d.jsx)(`div`,{className:`space-y-4`,children:c.map(p)}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No subnets found.`})]}),e[3]=c,e[4]=f),f}function p(e){if(!e.SubnetId)return null;let t=i(e.Tags);return(0,d.jsx)(c,{badge:(0,d.jsx)(l,{state:e.State}),params:{id:e.SubnetId},subtitle:`${e.CidrBlock??``} \u2022 ${e.AvailabilityZone??``}`,title:t?`${e.SubnetId} (${t})`:e.SubnetId,to:`/ec2/describe-subnets/$id`},e.SubnetId)}export{f as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-target-groups.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-target-groups.js index a5ba57af2..bc6eea0e8 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-target-groups.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-target-groups.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useQuery.js";import{t as r}from"./useSuspenseQuery.js";import{kr as i}from"./awsClient.js";import{t as a}from"./button.js";import{Br as o,J as s,q as c}from"./index.js";import{t as l}from"./page-heading.js";var u=t(),d=e();function f(){let e=(0,u.c)(6),t=o(),{data:n}=r(c),s;e[0]===n.TargetGroups?s=e[1]:(s=n.TargetGroups??[],e[0]=n.TargetGroups,e[1]=s);let f=s,h;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,d.jsx)(l,{actions:(0,d.jsx)(i,{to:`/ec2/create-target-group`,children:(0,d.jsx)(a,{children:`Create Target Group`})}),title:`Target Groups`}),e[2]=h):h=e[2];let g;return e[3]!==t||e[4]!==f?(g=(0,d.jsxs)(d.Fragment,{children:[h,f.length>0?(0,d.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,d.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,d.jsx)(`thead`,{children:(0,d.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Name`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Protocol`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Port`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`VPC`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Target Type`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Targets`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Health`})]})}),(0,d.jsx)(`tbody`,{children:f.map(e=>{if(!e.TargetGroupArn)return null;let n=e.TargetGroupArn;return(0,d.jsxs)(`tr`,{className:`cursor-pointer border-b transition-colors last:border-0 hover:bg-accent`,onClick:async()=>await t({to:`/ec2/describe-target-groups/$id`,params:{id:encodeURIComponent(n)}}),children:[(0,d.jsx)(`td`,{className:`px-4 py-2 font-medium`,children:(0,d.jsx)(i,{className:`text-primary hover:underline`,onClick:p,params:{id:encodeURIComponent(n)},to:`/ec2/describe-target-groups/$id`,children:e.TargetGroupName??n})}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:e.Protocol??``}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:e.Port??``}),(0,d.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.VpcId??``}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:e.TargetType??``}),(0,d.jsx)(m,{arn:n})]},n)})})]})}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No target groups found.`})]}),e[3]=t,e[4]=f,e[5]=g):g=e[5],g}function p(e){return e.stopPropagation()}function m(e){let t=(0,u.c)(13),{arn:r}=e,i;t[0]===r?i=t[1]:(i=s(r),t[0]=r,t[1]=i);let{data:a,isLoading:o}=n(i);if(o){let e;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`td`,{className:`px-4 py-2 text-muted-foreground`,children:`…`}),(0,d.jsx)(`td`,{className:`px-4 py-2 text-muted-foreground`,children:`…`})]}),t[2]=e):e=t[2],e}let c,l;if(t[3]!==a?.TargetHealthDescriptions){c=a?.TargetHealthDescriptions??[];let e={};for(let t of c){let n=t.TargetHealth?.State??`unknown`;e[n]=(e[n]??0)+1}l=Object.entries(e).map(h).join(`, `)||`—`,t[3]=a?.TargetHealthDescriptions,t[4]=c,t[5]=l}else c=t[4],l=t[5];let f=l,p;t[6]===c.length?p=t[7]:(p=(0,d.jsx)(`td`,{className:`px-4 py-2`,children:c.length}),t[6]=c.length,t[7]=p);let m;t[8]===f?m=t[9]:(m=(0,d.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:f}),t[8]=f,t[9]=m);let g;return t[10]!==p||t[11]!==m?(g=(0,d.jsxs)(d.Fragment,{children:[p,m]}),t[10]=p,t[11]=m,t[12]=g):g=t[12],g}function h(e){let[t,n]=e;return`${n} ${t}`}var g=f;export{g as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useQuery.js";import{t as r}from"./useSuspenseQuery.js";import{Ar as i}from"./awsClient.js";import{t as a}from"./button.js";import{Br as o,J as s,q as c}from"./index.js";import{t as l}from"./page-heading.js";var u=t(),d=e();function f(){let e=(0,u.c)(6),t=o(),{data:n}=r(c),s;e[0]===n.TargetGroups?s=e[1]:(s=n.TargetGroups??[],e[0]=n.TargetGroups,e[1]=s);let f=s,h;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,d.jsx)(l,{actions:(0,d.jsx)(i,{to:`/ec2/create-target-group`,children:(0,d.jsx)(a,{children:`Create Target Group`})}),title:`Target Groups`}),e[2]=h):h=e[2];let g;return e[3]!==t||e[4]!==f?(g=(0,d.jsxs)(d.Fragment,{children:[h,f.length>0?(0,d.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,d.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,d.jsx)(`thead`,{children:(0,d.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Name`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Protocol`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Port`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`VPC`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Target Type`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Targets`}),(0,d.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Health`})]})}),(0,d.jsx)(`tbody`,{children:f.map(e=>{if(!e.TargetGroupArn)return null;let n=e.TargetGroupArn;return(0,d.jsxs)(`tr`,{className:`cursor-pointer border-b transition-colors last:border-0 hover:bg-accent`,onClick:async()=>await t({to:`/ec2/describe-target-groups/$id`,params:{id:encodeURIComponent(n)}}),children:[(0,d.jsx)(`td`,{className:`px-4 py-2 font-medium`,children:(0,d.jsx)(i,{className:`text-primary hover:underline`,onClick:p,params:{id:encodeURIComponent(n)},to:`/ec2/describe-target-groups/$id`,children:e.TargetGroupName??n})}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:e.Protocol??``}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:e.Port??``}),(0,d.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.VpcId??``}),(0,d.jsx)(`td`,{className:`px-4 py-2`,children:e.TargetType??``}),(0,d.jsx)(m,{arn:n})]},n)})})]})}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No target groups found.`})]}),e[3]=t,e[4]=f,e[5]=g):g=e[5],g}function p(e){return e.stopPropagation()}function m(e){let t=(0,u.c)(13),{arn:r}=e,i;t[0]===r?i=t[1]:(i=s(r),t[0]=r,t[1]=i);let{data:a,isLoading:o}=n(i);if(o){let e;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`td`,{className:`px-4 py-2 text-muted-foreground`,children:`…`}),(0,d.jsx)(`td`,{className:`px-4 py-2 text-muted-foreground`,children:`…`})]}),t[2]=e):e=t[2],e}let c,l;if(t[3]!==a?.TargetHealthDescriptions){c=a?.TargetHealthDescriptions??[];let e={};for(let t of c){let n=t.TargetHealth?.State??`unknown`;e[n]=(e[n]??0)+1}l=Object.entries(e).map(h).join(`, `)||`—`,t[3]=a?.TargetHealthDescriptions,t[4]=c,t[5]=l}else c=t[4],l=t[5];let f=l,p;t[6]===c.length?p=t[7]:(p=(0,d.jsx)(`td`,{className:`px-4 py-2`,children:c.length}),t[6]=c.length,t[7]=p);let m;t[8]===f?m=t[9]:(m=(0,d.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:f}),t[8]=f,t[9]=m);let g;return t[10]!==p||t[11]!==m?(g=(0,d.jsxs)(d.Fragment,{children:[p,m]}),t[10]=p,t[11]=m,t[12]=g):g=t[12],g}function h(e){let[t,n]=e;return`${n} ${t}`}var g=f;export{g as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-volumes.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-volumes.js index cab88c165..1bede5cd5 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-volumes.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-volumes.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{kr as r}from"./awsClient.js";import{t as i}from"./button.js";import{zt as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";import{t as c}from"./state-badge.js";var l=t(),u=e();function d(){let e=(0,l.c)(5),{data:t}=n(a),s;e[0]===t.Volumes?s=e[1]:(s=t.Volumes??[],e[0]=t.Volumes,e[1]=s);let c=s,d;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(o,{actions:(0,u.jsx)(r,{to:`/ec2/create-volume`,children:(0,u.jsx)(i,{children:`Create Volume`})}),title:`Volumes`}),e[2]=d):d=e[2];let p;return e[3]===c?p=e[4]:(p=(0,u.jsxs)(u.Fragment,{children:[d,c.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:c.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No volumes found.`})]}),e[3]=c,e[4]=p),p}function f(e){return e.VolumeId?(0,u.jsx)(s,{badge:(0,u.jsx)(c,{state:e.State}),params:{id:e.VolumeId},subtitle:`${e.Size} GiB`,title:e.VolumeId,to:`/ec2/describe-volumes/$id`},e.VolumeId):null}export{d as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ar as r}from"./awsClient.js";import{t as i}from"./button.js";import{zt as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";import{t as c}from"./state-badge.js";var l=t(),u=e();function d(){let e=(0,l.c)(5),{data:t}=n(a),s;e[0]===t.Volumes?s=e[1]:(s=t.Volumes??[],e[0]=t.Volumes,e[1]=s);let c=s,d;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(o,{actions:(0,u.jsx)(r,{to:`/ec2/create-volume`,children:(0,u.jsx)(i,{children:`Create Volume`})}),title:`Volumes`}),e[2]=d):d=e[2];let p;return e[3]===c?p=e[4]:(p=(0,u.jsxs)(u.Fragment,{children:[d,c.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:c.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No volumes found.`})]}),e[3]=c,e[4]=p),p}function f(e){return e.VolumeId?(0,u.jsx)(s,{badge:(0,u.jsx)(c,{state:e.State}),params:{id:e.VolumeId},subtitle:`${e.Size} GiB`,title:e.VolumeId,to:`/ec2/describe-volumes/$id`},e.VolumeId):null}export{d as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/describe-vpcs.js b/spinifex/services/spinifexui/frontend/dist/assets/describe-vpcs.js index 8dac2550d..686a669f1 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/describe-vpcs.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/describe-vpcs.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{kr as r}from"./awsClient.js";import{Ut as i}from"./auth.js";import{t as a}from"./button.js";import{Vt as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";import{t as l}from"./state-badge.js";var u=t(),d=e();function f(){let e=(0,u.c)(5),{data:t}=n(o),i;e[0]===t.Vpcs?i=e[1]:(i=t.Vpcs??[],e[0]=t.Vpcs,e[1]=i);let c=i,l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,d.jsx)(s,{actions:(0,d.jsx)(r,{to:`/ec2/create-vpc`,children:(0,d.jsx)(a,{children:`Create VPC`})}),title:`VPCs`}),e[2]=l):l=e[2];let f;return e[3]===c?f=e[4]:(f=(0,d.jsxs)(d.Fragment,{children:[l,c.length>0?(0,d.jsx)(`div`,{className:`space-y-4`,children:c.map(p)}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No VPCs found.`})]}),e[3]=c,e[4]=f),f}function p(e){if(!e.VpcId)return null;let t=i(e.Tags);return(0,d.jsx)(c,{badge:(0,d.jsx)(l,{state:e.State}),params:{id:e.VpcId},subtitle:e.CidrBlock??``,title:t?`${e.VpcId} (${t})`:e.VpcId,to:`/ec2/describe-vpcs/$id`},e.VpcId)}export{f as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ar as r}from"./awsClient.js";import{Ut as i}from"./auth.js";import{t as a}from"./button.js";import{Vt as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";import{t as l}from"./state-badge.js";var u=t(),d=e();function f(){let e=(0,u.c)(5),{data:t}=n(o),i;e[0]===t.Vpcs?i=e[1]:(i=t.Vpcs??[],e[0]=t.Vpcs,e[1]=i);let c=i,l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,d.jsx)(s,{actions:(0,d.jsx)(r,{to:`/ec2/create-vpc`,children:(0,d.jsx)(a,{children:`Create VPC`})}),title:`VPCs`}),e[2]=l):l=e[2];let f;return e[3]===c?f=e[4]:(f=(0,d.jsxs)(d.Fragment,{children:[l,c.length>0?(0,d.jsx)(`div`,{className:`space-y-4`,children:c.map(p)}):(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:`No VPCs found.`})]}),e[3]=c,e[4]=f),f}function p(e){if(!e.VpcId)return null;let t=i(e.Tags);return(0,d.jsx)(c,{badge:(0,d.jsx)(l,{state:e.State}),params:{id:e.VpcId},subtitle:e.CidrBlock??``,title:t?`${e.VpcId} (${t})`:e.VpcId,to:`/ec2/describe-vpcs/$id`},e.VpcId)}export{f as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/ec2.js b/spinifex/services/spinifexui/frontend/dist/assets/ec2.js index 115428c83..320292b6d 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/ec2.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/ec2.js @@ -1 +1 @@ -import{t as e}from"./compiler-runtime.js";import{t}from"./useMutation.js";import{An as n,Bn as r,Cn as i,Cr as a,Dn as o,En as s,Fn as c,Hn as l,In as u,Ln as d,Mn as f,Nn as p,On as ee,Pn as m,Rn as te,Sn as ne,Sr as re,Tn as ie,Tr as h,Un as ae,Vn as oe,_n as se,_r as ce,bn as le,br as ue,cr as de,dr as fe,fn as pe,fr as me,gn as he,gr as ge,hn as _e,hr as ve,jn as ye,kn as be,lr as xe,mn as Se,mr as g,pn as _,pr as v,r as y,sr as b,ur as x,vn as S,vr as C,wn as w,wr as T,xn as E,xr as D,yn as O,yr as k,zn as A}from"./awsClient.js";import{At as j,D as Ce,Pt as M,St as N,Z as we,lt as Te,st as Ee,ut as P}from"./auth.js";import{Vr as F,wt as I}from"./index.js";import{t as De}from"./subnet-calculator.js";var L=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AllocateAddress`,{}).n(`EC2Client`,`AllocateAddressCommand`).sc(pe).build(){},Oe=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AssociateAddress`,{}).n(`EC2Client`,`AssociateAddressCommand`).sc(_).build(){},ke=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AssociateIamInstanceProfile`,{}).n(`EC2Client`,`AssociateIamInstanceProfileCommand`).sc(Se).build(){},R=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AssociateRouteTable`,{}).n(`EC2Client`,`AssociateRouteTableCommand`).sc(_e).build(){},z=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AttachInternetGateway`,{}).n(`EC2Client`,`AttachInternetGatewayCommand`).sc(he).build(){},Ae=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AttachVolume`,{}).n(`EC2Client`,`AttachVolumeCommand`).sc(se).build(){},je=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AuthorizeSecurityGroupEgress`,{}).n(`EC2Client`,`AuthorizeSecurityGroupEgressCommand`).sc(S).build(){},B=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AuthorizeSecurityGroupIngress`,{}).n(`EC2Client`,`AuthorizeSecurityGroupIngressCommand`).sc(O).build(){};function Me(e){let{port:t,query:n}=e,{protocol:r,path:i,hostname:a}=e;r&&r.slice(-1)!==`:`&&(r+=`:`),t&&(a+=`:${t}`),i&&i.charAt(0)!==`/`&&(i=`/${i}`);let o=n?we(n):``;o&&o[0]!==`?`&&(o=`?${o}`);let s=``;(e.username!=null||e.password!=null)&&(s=`${e.username??``}:${e.password??``}@`);let c=``;return e.fragment&&(c=`#${e.fragment}`),`${r}//${s}${a}${i}${o}${c}`}var Ne=`2016-11-15`;function Pe(e){return(t,n)=>async n=>{let{input:r}=n;if(!r.PresignedUrl){let t=await e.region(),i=await Te(r,{getEndpointParameterInstructions(){return{UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}}}},{...e,region:r.SourceRegion}),a=typeof e.endpoint==`function`?await e.endpoint():j(i),o=new M({...a,protocol:`https`,headers:{host:a.hostname},query:{...Object.entries(r).reduce((e,[t,n])=>(e[t]=String(n??``),e),{}),Action:`CopySnapshot`,Version:Ne,DestinationRegion:t}}),s=await new Ce({credentials:e.credentials,region:r.SourceRegion,service:`ec2`,sha256:e.sha256,uriEscapePath:e.signingEscapePath}).presign(o,{expiresIn:3600});if(n={...n,input:{...n.input,DestinationRegion:t,PresignedUrl:Me(s)}},M.isInstance(n.request)){let{request:e}=n;(e.body??``).includes(`DestinationRegion=`)||(e.body+=`&DestinationRegion=${t}`),(e.body??``).includes(`PresignedUrl=`)||(e.body+=`&PresignedUrl=${Ee(n.input.PresignedUrl)}`)}}return t(n)}}var Fe={step:`serialize`,tags:[`CROSS_REGION_PRESIGNED_URL`],name:`crossRegionPresignedUrlMiddleware`,override:!0,relation:`after`,toMiddleware:`endpointV2Middleware`},Ie=e=>({applyToStack:t=>{t.add(Pe(e),Fe)}}),Le=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions()),Ie(n)]}).s(`AmazonEC2`,`CopySnapshot`,{}).n(`EC2Client`,`CopySnapshotCommand`).sc(le).build(){},Re=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateImage`,{}).n(`EC2Client`,`CreateImageCommand`).sc(E).build(){},V=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateInternetGateway`,{}).n(`EC2Client`,`CreateInternetGatewayCommand`).sc(ne).build(){},ze=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateKeyPair`,{}).n(`EC2Client`,`CreateKeyPairCommand`).sc(i).build(){},H=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateNatGateway`,{}).n(`EC2Client`,`CreateNatGatewayCommand`).sc(w).build(){},Be=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreatePlacementGroup`,{}).n(`EC2Client`,`CreatePlacementGroupCommand`).sc(ie).build(){},U=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateRoute`,{}).n(`EC2Client`,`CreateRouteCommand`).sc(s).build(){},W=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateRouteTable`,{}).n(`EC2Client`,`CreateRouteTableCommand`).sc(o).build(){},G=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateSecurityGroup`,{}).n(`EC2Client`,`CreateSecurityGroupCommand`).sc(ee).build(){},Ve=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateSnapshot`,{}).n(`EC2Client`,`CreateSnapshotCommand`).sc(be).build(){},K=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateSubnet`,{}).n(`EC2Client`,`CreateSubnetCommand`).sc(n).build(){},He=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateVolume`,{}).n(`EC2Client`,`CreateVolumeCommand`).sc(ye).build(){},q=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateVpc`,{}).n(`EC2Client`,`CreateVpcCommand`).sc(f).build(){},Ue=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteInternetGateway`,{}).n(`EC2Client`,`DeleteInternetGatewayCommand`).sc(p).build(){},We=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteKeyPair`,{}).n(`EC2Client`,`DeleteKeyPairCommand`).sc(m).build(){},Ge=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteNatGateway`,{}).n(`EC2Client`,`DeleteNatGatewayCommand`).sc(c).build(){},Ke=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeletePlacementGroup`,{}).n(`EC2Client`,`DeletePlacementGroupCommand`).sc(u).build(){},qe=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteRoute`,{}).n(`EC2Client`,`DeleteRouteCommand`).sc(d).build(){},Je=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteRouteTable`,{}).n(`EC2Client`,`DeleteRouteTableCommand`).sc(te).build(){},Ye=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteSecurityGroup`,{}).n(`EC2Client`,`DeleteSecurityGroupCommand`).sc(A).build(){},Xe=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteSnapshot`,{}).n(`EC2Client`,`DeleteSnapshotCommand`).sc(r).build(){},Ze=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteSubnet`,{}).n(`EC2Client`,`DeleteSubnetCommand`).sc(oe).build(){},Qe=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteVolume`,{}).n(`EC2Client`,`DeleteVolumeCommand`).sc(l).build(){},$e=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteVpc`,{}).n(`EC2Client`,`DeleteVpcCommand`).sc(ae).build(){},et=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DetachInternetGateway`,{}).n(`EC2Client`,`DetachInternetGatewayCommand`).sc(b).build(){},tt=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DetachVolume`,{}).n(`EC2Client`,`DetachVolumeCommand`).sc(de).build(){},nt=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DisassociateAddress`,{}).n(`EC2Client`,`DisassociateAddressCommand`).sc(xe).build(){},rt=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DisassociateIamInstanceProfile`,{}).n(`EC2Client`,`DisassociateIamInstanceProfileCommand`).sc(x).build(){},it=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DisassociateRouteTable`,{}).n(`EC2Client`,`DisassociateRouteTableCommand`).sc(fe).build(){},at=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`GetConsoleOutput`,{}).n(`EC2Client`,`GetConsoleOutputCommand`).sc(me).build(){},ot=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ImportKeyPair`,{}).n(`EC2Client`,`ImportKeyPairCommand`).sc(v).build(){},st=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ModifyInstanceAttribute`,{}).n(`EC2Client`,`ModifyInstanceAttributeCommand`).sc(g).build(){},J=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ModifySubnetAttribute`,{}).n(`EC2Client`,`ModifySubnetAttributeCommand`).sc(ve).build(){},ct=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ModifyVolume`,{}).n(`EC2Client`,`ModifyVolumeCommand`).sc(ge).build(){},lt=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RebootInstances`,{}).n(`EC2Client`,`RebootInstancesCommand`).sc(ce).build(){},ut=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ReleaseAddress`,{}).n(`EC2Client`,`ReleaseAddressCommand`).sc(C).build(){},dt=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RevokeSecurityGroupEgress`,{}).n(`EC2Client`,`RevokeSecurityGroupEgressCommand`).sc(k).build(){},ft=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RevokeSecurityGroupIngress`,{}).n(`EC2Client`,`RevokeSecurityGroupIngressCommand`).sc(ue).build(){},pt=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RunInstances`,{}).n(`EC2Client`,`RunInstancesCommand`).sc(D).build(){},mt=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`StartInstances`,{}).n(`EC2Client`,`StartInstancesCommand`).sc(re).build(){},ht=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`StopInstances`,{}).n(`EC2Client`,`StopInstancesCommand`).sc(a).build(){},gt=class extends N.classBuilder().ep(h).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`TerminateInstances`,{}).n(`EC2Client`,`TerminateInstancesCommand`).sc(T).build(){},Y={capacity_block:`capacity-block`,capacity_manager_data_export:`capacity-manager-data-export`,capacity_reservation:`capacity-reservation`,capacity_reservation_cancellation_quote:`capacity-reservation-cancellation-quote`,capacity_reservation_fleet:`capacity-reservation-fleet`,carrier_gateway:`carrier-gateway`,client_vpn_endpoint:`client-vpn-endpoint`,coip_pool:`coip-pool`,customer_gateway:`customer-gateway`,declarative_policies_report:`declarative-policies-report`,dedicated_host:`dedicated-host`,dhcp_options:`dhcp-options`,egress_only_internet_gateway:`egress-only-internet-gateway`,elastic_gpu:`elastic-gpu`,elastic_ip:`elastic-ip`,export_image_task:`export-image-task`,export_instance_task:`export-instance-task`,fleet:`fleet`,fpga_image:`fpga-image`,host_reservation:`host-reservation`,image:`image`,image_usage_report:`image-usage-report`,import_image_task:`import-image-task`,import_snapshot_task:`import-snapshot-task`,instance:`instance`,instance_connect_endpoint:`instance-connect-endpoint`,instance_event_window:`instance-event-window`,internet_gateway:`internet-gateway`,ipam:`ipam`,ipam_external_resource_verification_token:`ipam-external-resource-verification-token`,ipam_policy:`ipam-policy`,ipam_pool:`ipam-pool`,ipam_pool_allocation:`ipam-pool-allocation`,ipam_prefix_list_resolver:`ipam-prefix-list-resolver`,ipam_prefix_list_resolver_target:`ipam-prefix-list-resolver-target`,ipam_resource_discovery:`ipam-resource-discovery`,ipam_resource_discovery_association:`ipam-resource-discovery-association`,ipam_scope:`ipam-scope`,ipv4pool_ec2:`ipv4pool-ec2`,ipv6pool_ec2:`ipv6pool-ec2`,key_pair:`key-pair`,launch_template:`launch-template`,local_gateway:`local-gateway`,local_gateway_route_table:`local-gateway-route-table`,local_gateway_route_table_virtual_interface_group_association:`local-gateway-route-table-virtual-interface-group-association`,local_gateway_route_table_vpc_association:`local-gateway-route-table-vpc-association`,local_gateway_virtual_interface:`local-gateway-virtual-interface`,local_gateway_virtual_interface_group:`local-gateway-virtual-interface-group`,mac_modification_task:`mac-modification-task`,natgateway:`natgateway`,network_acl:`network-acl`,network_insights_access_scope:`network-insights-access-scope`,network_insights_access_scope_analysis:`network-insights-access-scope-analysis`,network_insights_analysis:`network-insights-analysis`,network_insights_path:`network-insights-path`,network_interface:`network-interface`,outpost_lag:`outpost-lag`,placement_group:`placement-group`,prefix_list:`prefix-list`,replace_root_volume_task:`replace-root-volume-task`,reserved_instances:`reserved-instances`,route_server:`route-server`,route_server_endpoint:`route-server-endpoint`,route_server_peer:`route-server-peer`,route_table:`route-table`,secondary_interface:`secondary-interface`,secondary_network:`secondary-network`,secondary_subnet:`secondary-subnet`,security_group:`security-group`,security_group_rule:`security-group-rule`,service_link_virtual_interface:`service-link-virtual-interface`,snapshot:`snapshot`,spot_fleet_request:`spot-fleet-request`,spot_instances_request:`spot-instances-request`,subnet:`subnet`,subnet_cidr_reservation:`subnet-cidr-reservation`,traffic_mirror_filter:`traffic-mirror-filter`,traffic_mirror_filter_rule:`traffic-mirror-filter-rule`,traffic_mirror_session:`traffic-mirror-session`,traffic_mirror_target:`traffic-mirror-target`,transit_gateway:`transit-gateway`,transit_gateway_attachment:`transit-gateway-attachment`,transit_gateway_connect_peer:`transit-gateway-connect-peer`,transit_gateway_metering_policy:`transit-gateway-metering-policy`,transit_gateway_multicast_domain:`transit-gateway-multicast-domain`,transit_gateway_policy_table:`transit-gateway-policy-table`,transit_gateway_route_table:`transit-gateway-route-table`,transit_gateway_route_table_announcement:`transit-gateway-route-table-announcement`,verified_access_endpoint:`verified-access-endpoint`,verified_access_endpoint_target:`verified-access-endpoint-target`,verified_access_group:`verified-access-group`,verified_access_instance:`verified-access-instance`,verified_access_policy:`verified-access-policy`,verified_access_trust_provider:`verified-access-trust-provider`,volume:`volume`,vpc:`vpc`,vpc_block_public_access_exclusion:`vpc-block-public-access-exclusion`,vpc_encryption_control:`vpc-encryption-control`,vpc_endpoint:`vpc-endpoint`,vpc_endpoint_connection:`vpc-endpoint-connection`,vpc_endpoint_connection_device_type:`vpc-endpoint-connection-device-type`,vpc_endpoint_service:`vpc-endpoint-service`,vpc_endpoint_service_permission:`vpc-endpoint-service-permission`,vpc_flow_log:`vpc-flow-log`,vpc_peering_connection:`vpc-peering-connection`,vpn_concentrator:`vpn-concentrator`,vpn_connection:`vpn-connection`,vpn_connection_device_type:`vpn-connection-device-type`,vpn_gateway:`vpn-gateway`},X=e(),_t=/\s+/;function vt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:yt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function yt(e){let t=new mt({InstanceIds:[e]});return await y().send(t)}function bt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:xt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function xt(e){let t=new ht({InstanceIds:[e]});return await y().send(t)}function St(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Ct,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Ct(e){let t=new gt({InstanceIds:[e]});return await y().send(t)}function wt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Tt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Tt(e){let t=new lt({InstanceIds:[e]});return await y().send(t)}function Et(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Dt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},e[0]=n,e[1]=r),t(r)}async function Dt(e){let t=y(),n=await Ot(t,e),r=new pt({ImageId:e.imageId,InstanceType:e.instanceType,KeyName:e.keyName,MinCount:e.count,MaxCount:e.count,SubnetId:e.subnetId||void 0,SecurityGroupIds:n.length>0?n:void 0,Placement:e.placementGroupName?{GroupName:e.placementGroupName}:void 0,BlockDeviceMappings:kt(e)});return await t.send(r)}async function Ot(e,t){if(t.securityGroupMode!==`create`)return t.securityGroupIds??[];let n=(await e.send(new G({GroupName:t.newSgName,Description:t.newSgDescription||`Created by launch wizard`,VpcId:t.resolvedVpcId}))).GroupId;if(!n)throw Error(`Security group was created but no ID was returned`);let r=[...t.allowSsh?[22]:[],...t.allowHttp?[80]:[],...t.allowHttps?[443]:[]];if(r.length>0){let i=t.ruleSource===`custom`&&t.customCidr?t.customCidr:`0.0.0.0/0`;await e.send(new B({GroupId:n,IpPermissions:r.map(e=>({IpProtocol:`tcp`,FromPort:e,ToPort:e,IpRanges:[{CidrIp:i}]}))}))}return[n]}function kt(e){let{rootDeviceName:t,rootVolumeSize:n,rootVolumeType:r,rootDeleteOnTermination:i}=e;return n!==void 0||r!==void 0||i!==void 0?[{DeviceName:t,Ebs:{...n!==void 0&&{VolumeSize:n},...r!==void 0&&{VolumeType:r},...i!==void 0&&{DeleteOnTermination:i}}}]:void 0}function At(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:jt,onSuccess:()=>{n.invalidateQueries(I)}},e[0]=n,e[1]=r),t(r)}async function jt(e){let t=new ze({KeyName:e.keyName,KeyType:`rsa`}),n=await y().send(t);if(!n.KeyMaterial)throw Error(`Key pair was created but the API returned no private key. The key cannot be recovered — delete it and try again.`);return n}function Mt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Nt,onSuccess:()=>{n.invalidateQueries(I)}},e[0]=n,e[1]=r),t(r)}async function Nt(e){let t=e.publicKeyMaterial.trim().split(_t).slice(0,2).join(` `),n=new ot({KeyName:e.keyName,PublicKeyMaterial:new TextEncoder().encode(t)});return await y().send(n)}function Pt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Ft,onSuccess:()=>{n.invalidateQueries(I)}},e[0]=n,e[1]=r),t(r)}async function Ft(e){let t=new We({KeyPairId:e});return await y().send(t)}function It(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Lt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},e[0]=n,e[1]=r),t(r)}async function Lt(e){let t=new He({Size:e.size,AvailabilityZone:e.availabilityZone,VolumeType:`gp3`});return await y().send(t)}function Rt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:zt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},e[0]=n,e[1]=r),t(r)}async function zt(e){let t=new ct({VolumeId:e.volumeId,Size:e.size});return await y().send(t)}function Bt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Vt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},e[0]=n,e[1]=r),t(r)}async function Vt(e){let t=new Qe({VolumeId:e});return await y().send(t)}function Ht(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Ut,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},e[0]=n,e[1]=r),t(r)}async function Ut(e){let t=new Ve({VolumeId:e.volumeId,Description:e.description||void 0});return await y().send(t)}function Wt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Gt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},e[0]=n,e[1]=r),t(r)}async function Gt(e){let t=new Xe({SnapshotId:e});return await y().send(t)}function Kt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:qt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},e[0]=n,e[1]=r),t(r)}async function qt(e){let t=new Le({SourceSnapshotId:e.sourceSnapshotId,SourceRegion:e.sourceRegion,Description:e.description||void 0});return await y().send(t)}function Jt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Yt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Yt(e){let t=new Ae({VolumeId:e.volumeId,InstanceId:e.instanceId,Device:e.device||void 0});return await y().send(t)}function Xt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Zt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Zt(e){let t=new tt({VolumeId:e.volumeId,InstanceId:e.instanceId||void 0,Force:e.force});return await y().send(t)}function Qt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:$t,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function $t(e){let{instanceId:t,...n}=e,r=new st({InstanceId:t,InstanceType:{Value:n.instanceType}});return await y().send(r)}function en(){let e=(0,X.c)(1),n;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={mutationFn:tn},e[0]=n):n=e[0],t(n)}async function tn(e){let t=new at({InstanceId:e});return await y().send(t)}function nn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:rn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`images`]})}},e[0]=n,e[1]=r),t(r)}async function rn(e){let t=new Re({InstanceId:e.instanceId,Name:e.name,Description:e.description||void 0});return await y().send(t)}function an(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:on,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`vpcs`]})}},e[0]=n,e[1]=r),t(r)}async function on(e){let t=new q({CidrBlock:e.cidrBlock,TagSpecifications:e.name?[{ResourceType:`vpc`,Tags:[{Key:`Name`,Value:e.name}]}]:void 0});return await y().send(t)}function sn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:cn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`vpcs`]})}},e[0]=n,e[1]=r),t(r)}async function cn(e){let t=new $e({VpcId:e});return await y().send(t)}function ln(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:un,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`subnets`]})}},e[0]=n,e[1]=r),t(r)}async function un(e){let t=y(),n=await t.send(new K({VpcId:e.vpcId,CidrBlock:e.cidrBlock,AvailabilityZone:e.availabilityZone||void 0})),r=n.Subnet?.SubnetId;return e.mapPublicIpOnLaunch&&r&&await t.send(new J({SubnetId:r,MapPublicIpOnLaunch:{Value:!0}})),n}function dn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:fn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`subnets`]})}},e[0]=n,e[1]=r),t(r)}async function fn(e){let t=new Ze({SubnetId:e});return await y().send(t)}function pn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:mn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`placementGroups`]})}},e[0]=n,e[1]=r),t(r)}async function mn(e){let t=new Be({GroupName:e.groupName,Strategy:e.strategy});return await y().send(t)}function hn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:gn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`placementGroups`]})}},e[0]=n,e[1]=r),t(r)}async function gn(e){let t=new Ke({GroupName:e});return await y().send(t)}function _n(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:vn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},e[0]=n,e[1]=r),t(r)}async function vn(e){let t=new G({GroupName:e.groupName,Description:e.description,VpcId:e.vpcId});return await y().send(t)}function yn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:bn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},e[0]=n,e[1]=r),t(r)}async function bn(e){let t=new Ye({GroupId:e});return await y().send(t)}function xn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Sn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=n,e[1]=r),t(r)}async function Sn(e){let t=new B({GroupId:e.groupId,IpPermissions:[{IpProtocol:e.ipProtocol,FromPort:e.fromPort,ToPort:e.toPort,IpRanges:[{CidrIp:e.cidrIp}]}]});return await y().send(t)}function Cn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:wn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=n,e[1]=r),t(r)}async function wn(e){let t=new je({GroupId:e.groupId,IpPermissions:[{IpProtocol:e.ipProtocol,FromPort:e.fromPort,ToPort:e.toPort,IpRanges:[{CidrIp:e.cidrIp}]}]});return await y().send(t)}function Z(e){return{IpProtocol:e.ipProtocol,FromPort:e.fromPort,ToPort:e.toPort,...e.sourceGroupId?{UserIdGroupPairs:[{GroupId:e.sourceGroupId}]}:{IpRanges:[{CidrIp:e.cidrIp??``}]}}}function Tn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:En,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=n,e[1]=r),t(r)}async function En(e){let t=new ft({GroupId:e.groupId,IpPermissions:[Z(e)]});return await y().send(t)}function Dn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:On,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=n,e[1]=r),t(r)}async function On(e){let t=new dt({GroupId:e.groupId,IpPermissions:[Z(e)]});return await y().send(t)}function kn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:An,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},e[0]=n,e[1]=r),t(r)}async function An(e){let t=new V({TagSpecifications:$(Y.internet_gateway,e?.name,[])});return await y().send(t)}function jn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Mn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},e[0]=n,e[1]=r),t(r)}async function Mn(e){let t=new Ue({InternetGatewayId:e});return await y().send(t)}function Nn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Pn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},e[0]=n,e[1]=r),t(r)}async function Pn(e){let t=new z({InternetGatewayId:e.internetGatewayId,VpcId:e.vpcId});return await y().send(t)}function Fn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:In,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},e[0]=n,e[1]=r),t(r)}async function In(e){let t=new et({InternetGatewayId:e.internetGatewayId,VpcId:e.vpcId});return await y().send(t)}function Ln(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Rn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`addresses`]})}},e[0]=n,e[1]=r),t(r)}async function Rn(e){let t=new L({Domain:`vpc`,TagSpecifications:$(Y.elastic_ip,e?.name,[])});return await y().send(t)}function zn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Bn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`addresses`]})}},e[0]=n,e[1]=r),t(r)}async function Bn(e){let t=new ut({AllocationId:e});return await y().send(t)}function Vn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Hn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`addresses`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Hn(e){let t=new Oe({AllocationId:e.allocationId,InstanceId:e.instanceId,NetworkInterfaceId:e.networkInterfaceId});return await y().send(t)}function Un(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Wn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`addresses`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Wn(e){let t=new nt({AssociationId:e});return await y().send(t)}function Gn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Kn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`iam-instance-profile-associations`,t.instanceId]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Kn(e){let t=new ke({InstanceId:e.instanceId,IamInstanceProfile:{Name:e.instanceProfileName}});return await y().send(t)}function qn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Jn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`iam-instance-profile-associations`,t.instanceId]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Jn(e){let t=new rt({AssociationId:e.associationId});return await y().send(t)}function Q(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Yn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`natGateways`]}),n.invalidateQueries({queryKey:[`ec2`,`addresses`]})}},e[0]=n,e[1]=r),t(r)}async function Yn(e){let t=new H({SubnetId:e.subnetId,AllocationId:e.allocationId,TagSpecifications:$(Y.natgateway,e.name,[])});return await y().send(t)}function Xn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Zn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`natGateways`]})}},e[0]=n,e[1]=r),t(r)}async function Zn(e){let t=new Ge({NatGatewayId:e});return await y().send(t)}function Qn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:$n,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function $n(e){let t=new W({VpcId:e.vpcId,TagSpecifications:$(Y.route_table,e.name,[])});return await y().send(t)}function er(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:tr,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function tr(e){let t=new Je({RouteTableId:e});return await y().send(t)}function nr(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:rr,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function rr(e){let t=new U({RouteTableId:e.routeTableId,DestinationCidrBlock:e.destinationCidrBlock,GatewayId:e.gatewayId,NatGatewayId:e.natGatewayId});return await y().send(t)}function ir(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:ar,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function ar(e){let t=new qe({RouteTableId:e.routeTableId,DestinationCidrBlock:e.destinationCidrBlock});return await y().send(t)}function or(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:sr,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function sr(e){let t=new R({RouteTableId:e.routeTableId,SubnetId:e.subnetId});return await y().send(t)}function cr(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:lr,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function lr(e){let t=new it({AssociationId:e});return await y().send(t)}function ur(e,t){let n=[];return e&&n.push({Key:`Name`,Value:e}),n.push(...t),n}function $(e,t,n){let r=ur(t,n);if(r.length!==0)return[{ResourceType:e,Tags:r}]}function dr(){let e=F();return t({mutationFn:async e=>{let t=y(),n=[],r=e.autoGenerateNames?e.namePrefix:void 0,i=e.tags.map(e=>({Key:e.key,Value:e.value})),a=`creating VPC`;try{let o=r?`${r}-vpc`:e.namePrefix,s=e.tenancy,c=(await t.send(new q({CidrBlock:e.cidrBlock,InstanceTenancy:s,TagSpecifications:$(Y.vpc,o,i)}))).Vpc?.VpcId;if(!c)throw Error(`VPC was created but no VPC ID was returned by the API`);if(n.push({type:`VPC`,id:c}),e.mode===`vpc-only`)return{vpcId:c,created:n};let l=De(e.cidrBlock,e.publicSubnetCount,e.privateSubnetCount),u=e.publicSubnetCidrs.length>0?e.publicSubnetCidrs:l.publicSubnets.map(e=>e.cidr),d=e.privateSubnetCidrs.length>0?e.privateSubnetCidrs:l.privateSubnets.map(e=>e.cidr);a=`creating public subnets`;let f=[];for(let a=0;a0){a=`creating internet gateway`;let e=r?`${r}-igw`:void 0,o=(await t.send(new V({TagSpecifications:$(Y.internet_gateway,e,i)}))).InternetGateway?.InternetGatewayId;if(!o)throw Error(`Internet gateway was created but no ID was returned`);n.push({type:`Internet Gateway`,id:o}),a=`attaching internet gateway to VPC`,await t.send(new z({InternetGatewayId:o,VpcId:c})),a=`creating public route table`;let s=r?`${r}-rtb-public`:void 0,l=(await t.send(new W({VpcId:c,TagSpecifications:$(Y.route_table,s,i)}))).RouteTable?.RouteTableId;if(!l)throw Error(`Public route table was created but no ID was returned`);n.push({type:`Public Route Table`,id:l}),a=`creating default route to internet gateway`,await t.send(new U({RouteTableId:l,DestinationCidrBlock:`0.0.0.0/0`,GatewayId:o})),a=`associating public subnets with route table`;for(let e of f)await t.send(new R({RouteTableId:l,SubnetId:e}))}if(e.privateSubnetCount>0){a=`creating private route table`;let o=r?`${r}-rtb-private`:void 0,s=(await t.send(new W({VpcId:c,TagSpecifications:$(Y.route_table,o,i)}))).RouteTable?.RouteTableId;if(!s)throw Error(`Private route table was created but no ID was returned`);n.push({type:`Private Route Table`,id:s}),a=`associating private subnets with route table`;for(let e of p)await t.send(new R({RouteTableId:s,SubnetId:e}));if(e.natGateway===`single`&&f[0]){a=`allocating Elastic IP for NAT gateway`;let e=(await t.send(new L({Domain:`vpc`,TagSpecifications:$(Y.elastic_ip,r?`${r}-eip-nat`:void 0,i)}))).AllocationId;if(!e)throw Error(`Elastic IP was allocated but no allocation ID was returned`);n.push({type:`Elastic IP`,id:e}),a=`creating NAT gateway`;let o=(await t.send(new H({SubnetId:f[0],AllocationId:e,TagSpecifications:$(Y.natgateway,r?`${r}-nat`:void 0,i)}))).NatGateway?.NatGatewayId;if(!o)throw Error(`NAT gateway was created but no ID was returned`);n.push({type:`NAT Gateway`,id:o}),a=`creating default route to NAT gateway`,await t.send(new U({RouteTableId:s,DestinationCidrBlock:`0.0.0.0/0`,NatGatewayId:o}))}}return{vpcId:c,created:n}}catch(e){return{vpcId:n.find(e=>e.type===`VPC`)?.id,created:n,error:e instanceof Error?e:Error(String(e)),failedStep:`Failed while ${a}`}}},onSuccess:()=>{e.invalidateQueries({queryKey:[`ec2`,`vpcs`]}),e.invalidateQueries({queryKey:[`ec2`,`subnets`]}),e.invalidateQueries({queryKey:[`ec2`,`internetGateways`]}),e.invalidateQueries({queryKey:[`ec2`,`routeTables`]}),e.invalidateQueries({queryKey:[`ec2`,`natGateways`]}),e.invalidateQueries({queryKey:[`ec2`,`addresses`]})}})}export{yn as A,en as B,dr as C,hn as D,Xn as E,Fn as F,zn as G,Qt as H,Xt as I,vt as J,Dn as K,Un as L,dn as M,Bt as N,ir as O,sn as P,qn as R,an as S,Pt as T,Rt as U,Mt as V,wt as W,St as X,bt as Y,Qn as _,Nn as a,ln as b,xn as c,Et as d,kn as f,nr as g,pn as h,or as i,Wt as j,er as k,Kt as l,Q as m,Vn as n,Jt as o,At as p,Tn as q,Gn as r,Cn as s,Ln as t,nn as u,_n as v,jn as w,It as x,Ht as y,cr as z}; \ No newline at end of file +import{t as e}from"./compiler-runtime.js";import{t}from"./useMutation.js";import{An as n,Bn as r,Cn as i,Cr as a,Dn as o,En as s,Er as c,Fn as l,Hn as u,In as d,Ln as f,Mn as p,Nn as m,On as ee,Pn as te,Rn as ne,Sn as re,Sr as ie,Tn as ae,Tr as oe,Un as se,Vn as ce,Wn as le,_n as ue,_r as de,bn as fe,br as pe,cr as me,dr as he,fr as ge,gn as _e,gr as ve,hn as ye,hr as be,jn as xe,kn as Se,lr as h,mn as g,mr as _,pn as v,pr as y,r as b,ur as x,vn as S,vr as C,wn as w,wr as T,xn as E,xr as D,yn as O,yr as k,zn as A}from"./awsClient.js";import{At as j,D as Ce,Pt as M,St as N,Z as we,lt as Te,st as Ee,ut as P}from"./auth.js";import{Vr as F,wt as I}from"./index.js";import{t as De}from"./subnet-calculator.js";var L=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AllocateAddress`,{}).n(`EC2Client`,`AllocateAddressCommand`).sc(v).build(){},Oe=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AssociateAddress`,{}).n(`EC2Client`,`AssociateAddressCommand`).sc(g).build(){},ke=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AssociateIamInstanceProfile`,{}).n(`EC2Client`,`AssociateIamInstanceProfileCommand`).sc(ye).build(){},R=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AssociateRouteTable`,{}).n(`EC2Client`,`AssociateRouteTableCommand`).sc(_e).build(){},z=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AttachInternetGateway`,{}).n(`EC2Client`,`AttachInternetGatewayCommand`).sc(ue).build(){},Ae=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AttachVolume`,{}).n(`EC2Client`,`AttachVolumeCommand`).sc(S).build(){},je=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AuthorizeSecurityGroupEgress`,{}).n(`EC2Client`,`AuthorizeSecurityGroupEgressCommand`).sc(O).build(){},B=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`AuthorizeSecurityGroupIngress`,{}).n(`EC2Client`,`AuthorizeSecurityGroupIngressCommand`).sc(fe).build(){};function Me(e){let{port:t,query:n}=e,{protocol:r,path:i,hostname:a}=e;r&&r.slice(-1)!==`:`&&(r+=`:`),t&&(a+=`:${t}`),i&&i.charAt(0)!==`/`&&(i=`/${i}`);let o=n?we(n):``;o&&o[0]!==`?`&&(o=`?${o}`);let s=``;(e.username!=null||e.password!=null)&&(s=`${e.username??``}:${e.password??``}@`);let c=``;return e.fragment&&(c=`#${e.fragment}`),`${r}//${s}${a}${i}${o}${c}`}var Ne=`2016-11-15`;function Pe(e){return(t,n)=>async n=>{let{input:r}=n;if(!r.PresignedUrl){let t=await e.region(),i=await Te(r,{getEndpointParameterInstructions(){return{UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}}}},{...e,region:r.SourceRegion}),a=typeof e.endpoint==`function`?await e.endpoint():j(i),o=new M({...a,protocol:`https`,headers:{host:a.hostname},query:{...Object.entries(r).reduce((e,[t,n])=>(e[t]=String(n??``),e),{}),Action:`CopySnapshot`,Version:Ne,DestinationRegion:t}}),s=await new Ce({credentials:e.credentials,region:r.SourceRegion,service:`ec2`,sha256:e.sha256,uriEscapePath:e.signingEscapePath}).presign(o,{expiresIn:3600});if(n={...n,input:{...n.input,DestinationRegion:t,PresignedUrl:Me(s)}},M.isInstance(n.request)){let{request:e}=n;(e.body??``).includes(`DestinationRegion=`)||(e.body+=`&DestinationRegion=${t}`),(e.body??``).includes(`PresignedUrl=`)||(e.body+=`&PresignedUrl=${Ee(n.input.PresignedUrl)}`)}}return t(n)}}var Fe={step:`serialize`,tags:[`CROSS_REGION_PRESIGNED_URL`],name:`crossRegionPresignedUrlMiddleware`,override:!0,relation:`after`,toMiddleware:`endpointV2Middleware`},Ie=e=>({applyToStack:t=>{t.add(Pe(e),Fe)}}),Le=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions()),Ie(n)]}).s(`AmazonEC2`,`CopySnapshot`,{}).n(`EC2Client`,`CopySnapshotCommand`).sc(E).build(){},Re=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateImage`,{}).n(`EC2Client`,`CreateImageCommand`).sc(re).build(){},V=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateInternetGateway`,{}).n(`EC2Client`,`CreateInternetGatewayCommand`).sc(i).build(){},ze=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateKeyPair`,{}).n(`EC2Client`,`CreateKeyPairCommand`).sc(w).build(){},H=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateNatGateway`,{}).n(`EC2Client`,`CreateNatGatewayCommand`).sc(ae).build(){},Be=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreatePlacementGroup`,{}).n(`EC2Client`,`CreatePlacementGroupCommand`).sc(s).build(){},U=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateRoute`,{}).n(`EC2Client`,`CreateRouteCommand`).sc(o).build(){},W=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateRouteTable`,{}).n(`EC2Client`,`CreateRouteTableCommand`).sc(ee).build(){},G=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateSecurityGroup`,{}).n(`EC2Client`,`CreateSecurityGroupCommand`).sc(Se).build(){},Ve=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateSnapshot`,{}).n(`EC2Client`,`CreateSnapshotCommand`).sc(n).build(){},K=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateSubnet`,{}).n(`EC2Client`,`CreateSubnetCommand`).sc(xe).build(){},He=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateVolume`,{}).n(`EC2Client`,`CreateVolumeCommand`).sc(p).build(){},q=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`CreateVpc`,{}).n(`EC2Client`,`CreateVpcCommand`).sc(m).build(){},Ue=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteInternetGateway`,{}).n(`EC2Client`,`DeleteInternetGatewayCommand`).sc(te).build(){},We=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteKeyPair`,{}).n(`EC2Client`,`DeleteKeyPairCommand`).sc(l).build(){},Ge=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteNatGateway`,{}).n(`EC2Client`,`DeleteNatGatewayCommand`).sc(d).build(){},Ke=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeletePlacementGroup`,{}).n(`EC2Client`,`DeletePlacementGroupCommand`).sc(f).build(){},qe=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteRoute`,{}).n(`EC2Client`,`DeleteRouteCommand`).sc(ne).build(){},Je=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteRouteTable`,{}).n(`EC2Client`,`DeleteRouteTableCommand`).sc(A).build(){},Ye=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteSecurityGroup`,{}).n(`EC2Client`,`DeleteSecurityGroupCommand`).sc(r).build(){},Xe=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteSnapshot`,{}).n(`EC2Client`,`DeleteSnapshotCommand`).sc(ce).build(){},Ze=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteSubnet`,{}).n(`EC2Client`,`DeleteSubnetCommand`).sc(u).build(){},Qe=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteVolume`,{}).n(`EC2Client`,`DeleteVolumeCommand`).sc(se).build(){},$e=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DeleteVpc`,{}).n(`EC2Client`,`DeleteVpcCommand`).sc(le).build(){},et=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DetachInternetGateway`,{}).n(`EC2Client`,`DetachInternetGatewayCommand`).sc(me).build(){},tt=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DetachVolume`,{}).n(`EC2Client`,`DetachVolumeCommand`).sc(h).build(){},nt=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DisassociateAddress`,{}).n(`EC2Client`,`DisassociateAddressCommand`).sc(x).build(){},rt=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DisassociateIamInstanceProfile`,{}).n(`EC2Client`,`DisassociateIamInstanceProfileCommand`).sc(he).build(){},it=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DisassociateRouteTable`,{}).n(`EC2Client`,`DisassociateRouteTableCommand`).sc(ge).build(){},at=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`GetConsoleOutput`,{}).n(`EC2Client`,`GetConsoleOutputCommand`).sc(y).build(){},ot=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ImportKeyPair`,{}).n(`EC2Client`,`ImportKeyPairCommand`).sc(_).build(){},st=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ModifyInstanceAttribute`,{}).n(`EC2Client`,`ModifyInstanceAttributeCommand`).sc(be).build(){},J=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ModifySubnetAttribute`,{}).n(`EC2Client`,`ModifySubnetAttributeCommand`).sc(ve).build(){},ct=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ModifyVolume`,{}).n(`EC2Client`,`ModifyVolumeCommand`).sc(de).build(){},lt=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RebootInstances`,{}).n(`EC2Client`,`RebootInstancesCommand`).sc(C).build(){},ut=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`ReleaseAddress`,{}).n(`EC2Client`,`ReleaseAddressCommand`).sc(k).build(){},dt=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RevokeSecurityGroupEgress`,{}).n(`EC2Client`,`RevokeSecurityGroupEgressCommand`).sc(pe).build(){},ft=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RevokeSecurityGroupIngress`,{}).n(`EC2Client`,`RevokeSecurityGroupIngressCommand`).sc(D).build(){},pt=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`RunInstances`,{}).n(`EC2Client`,`RunInstancesCommand`).sc(ie).build(){},mt=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`StartInstances`,{}).n(`EC2Client`,`StartInstancesCommand`).sc(a).build(){},ht=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`StopInstances`,{}).n(`EC2Client`,`StopInstancesCommand`).sc(T).build(){},gt=class extends N.classBuilder().ep(c).m(function(e,t,n,r){return[P(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`TerminateInstances`,{}).n(`EC2Client`,`TerminateInstancesCommand`).sc(oe).build(){},Y={capacity_block:`capacity-block`,capacity_manager_data_export:`capacity-manager-data-export`,capacity_reservation:`capacity-reservation`,capacity_reservation_cancellation_quote:`capacity-reservation-cancellation-quote`,capacity_reservation_fleet:`capacity-reservation-fleet`,carrier_gateway:`carrier-gateway`,client_vpn_endpoint:`client-vpn-endpoint`,coip_pool:`coip-pool`,customer_gateway:`customer-gateway`,declarative_policies_report:`declarative-policies-report`,dedicated_host:`dedicated-host`,dhcp_options:`dhcp-options`,egress_only_internet_gateway:`egress-only-internet-gateway`,elastic_gpu:`elastic-gpu`,elastic_ip:`elastic-ip`,export_image_task:`export-image-task`,export_instance_task:`export-instance-task`,fleet:`fleet`,fpga_image:`fpga-image`,host_reservation:`host-reservation`,image:`image`,image_usage_report:`image-usage-report`,import_image_task:`import-image-task`,import_snapshot_task:`import-snapshot-task`,instance:`instance`,instance_connect_endpoint:`instance-connect-endpoint`,instance_event_window:`instance-event-window`,internet_gateway:`internet-gateway`,ipam:`ipam`,ipam_external_resource_verification_token:`ipam-external-resource-verification-token`,ipam_policy:`ipam-policy`,ipam_pool:`ipam-pool`,ipam_pool_allocation:`ipam-pool-allocation`,ipam_prefix_list_resolver:`ipam-prefix-list-resolver`,ipam_prefix_list_resolver_target:`ipam-prefix-list-resolver-target`,ipam_resource_discovery:`ipam-resource-discovery`,ipam_resource_discovery_association:`ipam-resource-discovery-association`,ipam_scope:`ipam-scope`,ipv4pool_ec2:`ipv4pool-ec2`,ipv6pool_ec2:`ipv6pool-ec2`,key_pair:`key-pair`,launch_template:`launch-template`,local_gateway:`local-gateway`,local_gateway_route_table:`local-gateway-route-table`,local_gateway_route_table_virtual_interface_group_association:`local-gateway-route-table-virtual-interface-group-association`,local_gateway_route_table_vpc_association:`local-gateway-route-table-vpc-association`,local_gateway_virtual_interface:`local-gateway-virtual-interface`,local_gateway_virtual_interface_group:`local-gateway-virtual-interface-group`,mac_modification_task:`mac-modification-task`,natgateway:`natgateway`,network_acl:`network-acl`,network_insights_access_scope:`network-insights-access-scope`,network_insights_access_scope_analysis:`network-insights-access-scope-analysis`,network_insights_analysis:`network-insights-analysis`,network_insights_path:`network-insights-path`,network_interface:`network-interface`,outpost_lag:`outpost-lag`,placement_group:`placement-group`,prefix_list:`prefix-list`,replace_root_volume_task:`replace-root-volume-task`,reserved_instances:`reserved-instances`,route_server:`route-server`,route_server_endpoint:`route-server-endpoint`,route_server_peer:`route-server-peer`,route_table:`route-table`,secondary_interface:`secondary-interface`,secondary_network:`secondary-network`,secondary_subnet:`secondary-subnet`,security_group:`security-group`,security_group_rule:`security-group-rule`,service_link_virtual_interface:`service-link-virtual-interface`,snapshot:`snapshot`,spot_fleet_request:`spot-fleet-request`,spot_instances_request:`spot-instances-request`,subnet:`subnet`,subnet_cidr_reservation:`subnet-cidr-reservation`,traffic_mirror_filter:`traffic-mirror-filter`,traffic_mirror_filter_rule:`traffic-mirror-filter-rule`,traffic_mirror_session:`traffic-mirror-session`,traffic_mirror_target:`traffic-mirror-target`,transit_gateway:`transit-gateway`,transit_gateway_attachment:`transit-gateway-attachment`,transit_gateway_connect_peer:`transit-gateway-connect-peer`,transit_gateway_metering_policy:`transit-gateway-metering-policy`,transit_gateway_multicast_domain:`transit-gateway-multicast-domain`,transit_gateway_policy_table:`transit-gateway-policy-table`,transit_gateway_route_table:`transit-gateway-route-table`,transit_gateway_route_table_announcement:`transit-gateway-route-table-announcement`,verified_access_endpoint:`verified-access-endpoint`,verified_access_endpoint_target:`verified-access-endpoint-target`,verified_access_group:`verified-access-group`,verified_access_instance:`verified-access-instance`,verified_access_policy:`verified-access-policy`,verified_access_trust_provider:`verified-access-trust-provider`,volume:`volume`,vpc:`vpc`,vpc_block_public_access_exclusion:`vpc-block-public-access-exclusion`,vpc_encryption_control:`vpc-encryption-control`,vpc_endpoint:`vpc-endpoint`,vpc_endpoint_connection:`vpc-endpoint-connection`,vpc_endpoint_connection_device_type:`vpc-endpoint-connection-device-type`,vpc_endpoint_service:`vpc-endpoint-service`,vpc_endpoint_service_permission:`vpc-endpoint-service-permission`,vpc_flow_log:`vpc-flow-log`,vpc_peering_connection:`vpc-peering-connection`,vpn_concentrator:`vpn-concentrator`,vpn_connection:`vpn-connection`,vpn_connection_device_type:`vpn-connection-device-type`,vpn_gateway:`vpn-gateway`},X=e(),_t=/\s+/;function vt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:yt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function yt(e){let t=new mt({InstanceIds:[e]});return await b().send(t)}function bt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:xt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function xt(e){let t=new ht({InstanceIds:[e]});return await b().send(t)}function St(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Ct,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Ct(e){let t=new gt({InstanceIds:[e]});return await b().send(t)}function wt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Tt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Tt(e){let t=new lt({InstanceIds:[e]});return await b().send(t)}function Et(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Dt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},e[0]=n,e[1]=r),t(r)}async function Dt(e){let t=b(),n=await Ot(t,e),r=new pt({ImageId:e.imageId,InstanceType:e.instanceType,KeyName:e.keyName,MinCount:e.count,MaxCount:e.count,SubnetId:e.subnetId||void 0,SecurityGroupIds:n.length>0?n:void 0,Placement:e.placementGroupName?{GroupName:e.placementGroupName}:void 0,BlockDeviceMappings:kt(e)});return await t.send(r)}async function Ot(e,t){if(t.securityGroupMode!==`create`)return t.securityGroupIds??[];let n=(await e.send(new G({GroupName:t.newSgName,Description:t.newSgDescription||`Created by launch wizard`,VpcId:t.resolvedVpcId}))).GroupId;if(!n)throw Error(`Security group was created but no ID was returned`);let r=[...t.allowSsh?[22]:[],...t.allowHttp?[80]:[],...t.allowHttps?[443]:[]];if(r.length>0){let i=t.ruleSource===`custom`&&t.customCidr?t.customCidr:`0.0.0.0/0`;await e.send(new B({GroupId:n,IpPermissions:r.map(e=>({IpProtocol:`tcp`,FromPort:e,ToPort:e,IpRanges:[{CidrIp:i}]}))}))}return[n]}function kt(e){let{rootDeviceName:t,rootVolumeSize:n,rootVolumeType:r,rootDeleteOnTermination:i}=e;return n!==void 0||r!==void 0||i!==void 0?[{DeviceName:t,Ebs:{...n!==void 0&&{VolumeSize:n},...r!==void 0&&{VolumeType:r},...i!==void 0&&{DeleteOnTermination:i}}}]:void 0}function At(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:jt,onSuccess:()=>{n.invalidateQueries(I)}},e[0]=n,e[1]=r),t(r)}async function jt(e){let t=new ze({KeyName:e.keyName,KeyType:`rsa`}),n=await b().send(t);if(!n.KeyMaterial)throw Error(`Key pair was created but the API returned no private key. The key cannot be recovered — delete it and try again.`);return n}function Mt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Nt,onSuccess:()=>{n.invalidateQueries(I)}},e[0]=n,e[1]=r),t(r)}async function Nt(e){let t=e.publicKeyMaterial.trim().split(_t).slice(0,2).join(` `),n=new ot({KeyName:e.keyName,PublicKeyMaterial:new TextEncoder().encode(t)});return await b().send(n)}function Pt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Ft,onSuccess:()=>{n.invalidateQueries(I)}},e[0]=n,e[1]=r),t(r)}async function Ft(e){let t=new We({KeyPairId:e});return await b().send(t)}function It(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Lt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},e[0]=n,e[1]=r),t(r)}async function Lt(e){let t=new He({Size:e.size,AvailabilityZone:e.availabilityZone,VolumeType:`gp3`});return await b().send(t)}function Rt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:zt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},e[0]=n,e[1]=r),t(r)}async function zt(e){let t=new ct({VolumeId:e.volumeId,Size:e.size});return await b().send(t)}function Bt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Vt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]})}},e[0]=n,e[1]=r),t(r)}async function Vt(e){let t=new Qe({VolumeId:e});return await b().send(t)}function Ht(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Ut,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},e[0]=n,e[1]=r),t(r)}async function Ut(e){let t=new Ve({VolumeId:e.volumeId,Description:e.description||void 0});return await b().send(t)}function Wt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Gt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},e[0]=n,e[1]=r),t(r)}async function Gt(e){let t=new Xe({SnapshotId:e});return await b().send(t)}function Kt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:qt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`snapshots`]})}},e[0]=n,e[1]=r),t(r)}async function qt(e){let t=new Le({SourceSnapshotId:e.sourceSnapshotId,SourceRegion:e.sourceRegion,Description:e.description||void 0});return await b().send(t)}function Jt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Yt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Yt(e){let t=new Ae({VolumeId:e.volumeId,InstanceId:e.instanceId,Device:e.device||void 0});return await b().send(t)}function Xt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Zt,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`volumes`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Zt(e){let t=new tt({VolumeId:e.volumeId,InstanceId:e.instanceId||void 0,Force:e.force});return await b().send(t)}function Qt(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:$t,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function $t(e){let{instanceId:t,...n}=e,r=new st({InstanceId:t,InstanceType:{Value:n.instanceType}});return await b().send(r)}function en(){let e=(0,X.c)(1),n;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={mutationFn:tn},e[0]=n):n=e[0],t(n)}async function tn(e){let t=new at({InstanceId:e});return await b().send(t)}function nn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:rn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`images`]})}},e[0]=n,e[1]=r),t(r)}async function rn(e){let t=new Re({InstanceId:e.instanceId,Name:e.name,Description:e.description||void 0});return await b().send(t)}function an(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:on,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`vpcs`]})}},e[0]=n,e[1]=r),t(r)}async function on(e){let t=new q({CidrBlock:e.cidrBlock,TagSpecifications:e.name?[{ResourceType:`vpc`,Tags:[{Key:`Name`,Value:e.name}]}]:void 0});return await b().send(t)}function sn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:cn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`vpcs`]})}},e[0]=n,e[1]=r),t(r)}async function cn(e){let t=new $e({VpcId:e});return await b().send(t)}function ln(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:un,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`subnets`]})}},e[0]=n,e[1]=r),t(r)}async function un(e){let t=b(),n=await t.send(new K({VpcId:e.vpcId,CidrBlock:e.cidrBlock,AvailabilityZone:e.availabilityZone||void 0})),r=n.Subnet?.SubnetId;return e.mapPublicIpOnLaunch&&r&&await t.send(new J({SubnetId:r,MapPublicIpOnLaunch:{Value:!0}})),n}function dn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:fn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`subnets`]})}},e[0]=n,e[1]=r),t(r)}async function fn(e){let t=new Ze({SubnetId:e});return await b().send(t)}function pn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:mn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`placementGroups`]})}},e[0]=n,e[1]=r),t(r)}async function mn(e){let t=new Be({GroupName:e.groupName,Strategy:e.strategy});return await b().send(t)}function hn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:gn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`placementGroups`]})}},e[0]=n,e[1]=r),t(r)}async function gn(e){let t=new Ke({GroupName:e});return await b().send(t)}function _n(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:vn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},e[0]=n,e[1]=r),t(r)}async function vn(e){let t=new G({GroupName:e.groupName,Description:e.description,VpcId:e.vpcId});return await b().send(t)}function yn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:bn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]})}},e[0]=n,e[1]=r),t(r)}async function bn(e){let t=new Ye({GroupId:e});return await b().send(t)}function xn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Sn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=n,e[1]=r),t(r)}async function Sn(e){let t=new B({GroupId:e.groupId,IpPermissions:[{IpProtocol:e.ipProtocol,FromPort:e.fromPort,ToPort:e.toPort,IpRanges:[{CidrIp:e.cidrIp}]}]});return await b().send(t)}function Cn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:wn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=n,e[1]=r),t(r)}async function wn(e){let t=new je({GroupId:e.groupId,IpPermissions:[{IpProtocol:e.ipProtocol,FromPort:e.fromPort,ToPort:e.toPort,IpRanges:[{CidrIp:e.cidrIp}]}]});return await b().send(t)}function Z(e){return{IpProtocol:e.ipProtocol,FromPort:e.fromPort,ToPort:e.toPort,...e.sourceGroupId?{UserIdGroupPairs:[{GroupId:e.sourceGroupId}]}:{IpRanges:[{CidrIp:e.cidrIp??``}]}}}function Tn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:En,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=n,e[1]=r),t(r)}async function En(e){let t=new ft({GroupId:e.groupId,IpPermissions:[Z(e)]});return await b().send(t)}function Dn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:On,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`securityGroups`]}),n.invalidateQueries({queryKey:[`ec2`,`securityGroups`,t.groupId]})}},e[0]=n,e[1]=r),t(r)}async function On(e){let t=new dt({GroupId:e.groupId,IpPermissions:[Z(e)]});return await b().send(t)}function kn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:An,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},e[0]=n,e[1]=r),t(r)}async function An(e){let t=new V({TagSpecifications:$(Y.internet_gateway,e?.name,[])});return await b().send(t)}function jn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Mn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},e[0]=n,e[1]=r),t(r)}async function Mn(e){let t=new Ue({InternetGatewayId:e});return await b().send(t)}function Nn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Pn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},e[0]=n,e[1]=r),t(r)}async function Pn(e){let t=new z({InternetGatewayId:e.internetGatewayId,VpcId:e.vpcId});return await b().send(t)}function Fn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:In,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`internetGateways`]})}},e[0]=n,e[1]=r),t(r)}async function In(e){let t=new et({InternetGatewayId:e.internetGatewayId,VpcId:e.vpcId});return await b().send(t)}function Ln(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Rn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`addresses`]})}},e[0]=n,e[1]=r),t(r)}async function Rn(e){let t=new L({Domain:`vpc`,TagSpecifications:$(Y.elastic_ip,e?.name,[])});return await b().send(t)}function zn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Bn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`addresses`]})}},e[0]=n,e[1]=r),t(r)}async function Bn(e){let t=new ut({AllocationId:e});return await b().send(t)}function Vn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Hn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`addresses`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Hn(e){let t=new Oe({AllocationId:e.allocationId,InstanceId:e.instanceId,NetworkInterfaceId:e.networkInterfaceId});return await b().send(t)}function Un(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Wn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`addresses`]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Wn(e){let t=new nt({AssociationId:e});return await b().send(t)}function Gn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Kn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`iam-instance-profile-associations`,t.instanceId]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Kn(e){let t=new ke({InstanceId:e.instanceId,IamInstanceProfile:{Name:e.instanceProfileName}});return await b().send(t)}function qn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Jn,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ec2`,`iam-instance-profile-associations`,t.instanceId]}),n.invalidateQueries({queryKey:[`ec2`,`instances`]})}},e[0]=n,e[1]=r),t(r)}async function Jn(e){let t=new rt({AssociationId:e.associationId});return await b().send(t)}function Q(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Yn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`natGateways`]}),n.invalidateQueries({queryKey:[`ec2`,`addresses`]})}},e[0]=n,e[1]=r),t(r)}async function Yn(e){let t=new H({SubnetId:e.subnetId,AllocationId:e.allocationId,TagSpecifications:$(Y.natgateway,e.name,[])});return await b().send(t)}function Xn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:Zn,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`natGateways`]})}},e[0]=n,e[1]=r),t(r)}async function Zn(e){let t=new Ge({NatGatewayId:e});return await b().send(t)}function Qn(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:$n,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function $n(e){let t=new W({VpcId:e.vpcId,TagSpecifications:$(Y.route_table,e.name,[])});return await b().send(t)}function er(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:tr,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function tr(e){let t=new Je({RouteTableId:e});return await b().send(t)}function nr(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:rr,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function rr(e){let t=new U({RouteTableId:e.routeTableId,DestinationCidrBlock:e.destinationCidrBlock,GatewayId:e.gatewayId,NatGatewayId:e.natGatewayId});return await b().send(t)}function ir(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:ar,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function ar(e){let t=new qe({RouteTableId:e.routeTableId,DestinationCidrBlock:e.destinationCidrBlock});return await b().send(t)}function or(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:sr,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function sr(e){let t=new R({RouteTableId:e.routeTableId,SubnetId:e.subnetId});return await b().send(t)}function cr(){let e=(0,X.c)(2),n=F(),r;return e[0]===n?r=e[1]:(r={mutationFn:lr,onSuccess:()=>{n.invalidateQueries({queryKey:[`ec2`,`routeTables`]})}},e[0]=n,e[1]=r),t(r)}async function lr(e){let t=new it({AssociationId:e});return await b().send(t)}function ur(e,t){let n=[];return e&&n.push({Key:`Name`,Value:e}),n.push(...t),n}function $(e,t,n){let r=ur(t,n);if(r.length!==0)return[{ResourceType:e,Tags:r}]}function dr(){let e=F();return t({mutationFn:async e=>{let t=b(),n=[],r=e.autoGenerateNames?e.namePrefix:void 0,i=e.tags.map(e=>({Key:e.key,Value:e.value})),a=`creating VPC`;try{let o=r?`${r}-vpc`:e.namePrefix,s=e.tenancy,c=(await t.send(new q({CidrBlock:e.cidrBlock,InstanceTenancy:s,TagSpecifications:$(Y.vpc,o,i)}))).Vpc?.VpcId;if(!c)throw Error(`VPC was created but no VPC ID was returned by the API`);if(n.push({type:`VPC`,id:c}),e.mode===`vpc-only`)return{vpcId:c,created:n};let l=De(e.cidrBlock,e.publicSubnetCount,e.privateSubnetCount),u=e.publicSubnetCidrs.length>0?e.publicSubnetCidrs:l.publicSubnets.map(e=>e.cidr),d=e.privateSubnetCidrs.length>0?e.privateSubnetCidrs:l.privateSubnets.map(e=>e.cidr);a=`creating public subnets`;let f=[];for(let a=0;a0){a=`creating internet gateway`;let e=r?`${r}-igw`:void 0,o=(await t.send(new V({TagSpecifications:$(Y.internet_gateway,e,i)}))).InternetGateway?.InternetGatewayId;if(!o)throw Error(`Internet gateway was created but no ID was returned`);n.push({type:`Internet Gateway`,id:o}),a=`attaching internet gateway to VPC`,await t.send(new z({InternetGatewayId:o,VpcId:c})),a=`creating public route table`;let s=r?`${r}-rtb-public`:void 0,l=(await t.send(new W({VpcId:c,TagSpecifications:$(Y.route_table,s,i)}))).RouteTable?.RouteTableId;if(!l)throw Error(`Public route table was created but no ID was returned`);n.push({type:`Public Route Table`,id:l}),a=`creating default route to internet gateway`,await t.send(new U({RouteTableId:l,DestinationCidrBlock:`0.0.0.0/0`,GatewayId:o})),a=`associating public subnets with route table`;for(let e of f)await t.send(new R({RouteTableId:l,SubnetId:e}))}if(e.privateSubnetCount>0){a=`creating private route table`;let o=r?`${r}-rtb-private`:void 0,s=(await t.send(new W({VpcId:c,TagSpecifications:$(Y.route_table,o,i)}))).RouteTable?.RouteTableId;if(!s)throw Error(`Private route table was created but no ID was returned`);n.push({type:`Private Route Table`,id:s}),a=`associating private subnets with route table`;for(let e of p)await t.send(new R({RouteTableId:s,SubnetId:e}));if(e.natGateway===`single`&&f[0]){a=`allocating Elastic IP for NAT gateway`;let e=(await t.send(new L({Domain:`vpc`,TagSpecifications:$(Y.elastic_ip,r?`${r}-eip-nat`:void 0,i)}))).AllocationId;if(!e)throw Error(`Elastic IP was allocated but no allocation ID was returned`);n.push({type:`Elastic IP`,id:e}),a=`creating NAT gateway`;let o=(await t.send(new H({SubnetId:f[0],AllocationId:e,TagSpecifications:$(Y.natgateway,r?`${r}-nat`:void 0,i)}))).NatGateway?.NatGatewayId;if(!o)throw Error(`NAT gateway was created but no ID was returned`);n.push({type:`NAT Gateway`,id:o}),a=`creating default route to NAT gateway`,await t.send(new U({RouteTableId:s,DestinationCidrBlock:`0.0.0.0/0`,NatGatewayId:o}))}}return{vpcId:c,created:n}}catch(e){return{vpcId:n.find(e=>e.type===`VPC`)?.id,created:n,error:e instanceof Error?e:Error(String(e)),failedStep:`Failed while ${a}`}}},onSuccess:()=>{e.invalidateQueries({queryKey:[`ec2`,`vpcs`]}),e.invalidateQueries({queryKey:[`ec2`,`subnets`]}),e.invalidateQueries({queryKey:[`ec2`,`internetGateways`]}),e.invalidateQueries({queryKey:[`ec2`,`routeTables`]}),e.invalidateQueries({queryKey:[`ec2`,`natGateways`]}),e.invalidateQueries({queryKey:[`ec2`,`addresses`]})}})}export{yn as A,en as B,dr as C,hn as D,Xn as E,Fn as F,zn as G,Qt as H,Xt as I,vt as J,Dn as K,Un as L,dn as M,Bt as N,ir as O,sn as P,qn as R,an as S,Pt as T,Rt as U,Mt as V,wt as W,St as X,bt as Y,Qn as _,Nn as a,ln as b,xn as c,Et as d,kn as f,nr as g,pn as h,or as i,Wt as j,er as k,Kt as l,Q as m,Vn as n,Jt as o,At as p,Tn as q,Gn as r,Cn as s,Ln as t,nn as u,_n as v,jn as w,It as x,Ht as y,cr as z}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/ecr.js b/spinifex/services/spinifexui/frontend/dist/assets/ecr.js index 2736024db..90742409f 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/ecr.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/ecr.js @@ -1 +1 @@ -import{t as e}from"./compiler-runtime.js";import{t}from"./useMutation.js";import{an as n,dn as r,i,in as a,ln as o,nn as s,rn as c}from"./awsClient.js";import{St as l,ut as u}from"./auth.js";import{Vr as d}from"./index.js";var f=class extends l.classBuilder().ep(r).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`BatchDeleteImage`,{}).n(`ECRClient`,`BatchDeleteImageCommand`).sc(s).build(){},p=class extends l.classBuilder().ep(r).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`CreateRepository`,{}).n(`ECRClient`,`CreateRepositoryCommand`).sc(c).build(){},m=class extends l.classBuilder().ep(r).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`DeleteRepository`,{}).n(`ECRClient`,`DeleteRepositoryCommand`).sc(a).build(){},h=class extends l.classBuilder().ep(r).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`DeleteRepositoryPolicy`,{}).n(`ECRClient`,`DeleteRepositoryPolicyCommand`).sc(n).build(){},g=class extends l.classBuilder().ep(r).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`SetRepositoryPolicy`,{}).n(`ECRClient`,`SetRepositoryPolicyCommand`).sc(o).build(){},_=e();function v(){let e=(0,_.c)(2),n=d(),r;return e[0]===n?r=e[1]:(r={mutationFn:y,onSuccess:()=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`]})}},e[0]=n,e[1]=r),t(r)}async function y(e){let t=new p({repositoryName:e});return await i().send(t)}function b(){let e=(0,_.c)(2),n=d(),r;return e[0]===n?r=e[1]:(r={mutationFn:x,onSuccess:()=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`]})}},e[0]=n,e[1]=r),t(r)}async function x(e){let t=new m({repositoryName:e,force:!0});return await i().send(t)}function S(){let e=(0,_.c)(2),n=d(),r;return e[0]===n?r=e[1]:(r={mutationFn:C,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`,t.repositoryName,`images`]})}},e[0]=n,e[1]=r),t(r)}async function C(e){let t=new f({repositoryName:e.repositoryName,imageIds:e.imageIds});return await i().send(t)}function w(){let e=(0,_.c)(2),n=d(),r;return e[0]===n?r=e[1]:(r={mutationFn:T,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`,t.repositoryName,`policy`]})}},e[0]=n,e[1]=r),t(r)}async function T(e){let t=new g({repositoryName:e.repositoryName,policyText:e.policyText});return await i().send(t)}function E(){let e=(0,_.c)(2),n=d(),r;return e[0]===n?r=e[1]:(r={mutationFn:D,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`,t,`policy`]})}},e[0]=n,e[1]=r),t(r)}async function D(e){let t=new h({repositoryName:e});return await i().send(t)}export{w as a,E as i,v as n,b as r,S as t}; \ No newline at end of file +import{t as e}from"./compiler-runtime.js";import{t}from"./useMutation.js";import{an as n,fn as r,i,in as a,ln as o,nn as s,rn as c,un as l}from"./awsClient.js";import{St as u,ut as d}from"./auth.js";import{Vr as f}from"./index.js";var p=class extends u.classBuilder().ep(r).m(function(e,t,n,r){return[d(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`BatchDeleteImage`,{}).n(`ECRClient`,`BatchDeleteImageCommand`).sc(s).build(){},m=class extends u.classBuilder().ep(r).m(function(e,t,n,r){return[d(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`CreateRepository`,{}).n(`ECRClient`,`CreateRepositoryCommand`).sc(c).build(){},h=class extends u.classBuilder().ep(r).m(function(e,t,n,r){return[d(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`DeleteRepository`,{}).n(`ECRClient`,`DeleteRepositoryCommand`).sc(a).build(){},g=class extends u.classBuilder().ep(r).m(function(e,t,n,r){return[d(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`DeleteRepositoryPolicy`,{}).n(`ECRClient`,`DeleteRepositoryPolicyCommand`).sc(n).build(){},_=class extends u.classBuilder().ep(r).m(function(e,t,n,r){return[d(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`PutImageTagMutability`,{}).n(`ECRClient`,`PutImageTagMutabilityCommand`).sc(o).build(){},v=class extends u.classBuilder().ep(r).m(function(e,t,n,r){return[d(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`SetRepositoryPolicy`,{}).n(`ECRClient`,`SetRepositoryPolicyCommand`).sc(l).build(){},y=e();function b(){let e=(0,y.c)(2),n=f(),r;return e[0]===n?r=e[1]:(r={mutationFn:x,onSuccess:()=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`]})}},e[0]=n,e[1]=r),t(r)}async function x(e){let t=new m({repositoryName:e});return await i().send(t)}function S(){let e=(0,y.c)(2),n=f(),r;return e[0]===n?r=e[1]:(r={mutationFn:C,onSuccess:()=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`]})}},e[0]=n,e[1]=r),t(r)}async function C(e){let t=new h({repositoryName:e,force:!0});return await i().send(t)}function w(){let e=(0,y.c)(2),n=f(),r;return e[0]===n?r=e[1]:(r={mutationFn:T,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`,t.repositoryName,`images`]})}},e[0]=n,e[1]=r),t(r)}async function T(e){let t=new p({repositoryName:e.repositoryName,imageIds:e.imageIds});return await i().send(t)}function E(){let e=(0,y.c)(2),n=f(),r;return e[0]===n?r=e[1]:(r={mutationFn:D,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`,t.repositoryName,`policy`]})}},e[0]=n,e[1]=r),t(r)}async function D(e){let t=new v({repositoryName:e.repositoryName,policyText:e.policyText});return await i().send(t)}function O(){let e=(0,y.c)(2),n=f(),r;return e[0]===n?r=e[1]:(r={mutationFn:k,onSuccess:()=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`]})}},e[0]=n,e[1]=r),t(r)}async function k(e){let t=new _({repositoryName:e.repositoryName,imageTagMutability:e.imageTagMutability});return await i().send(t)}function A(){let e=(0,y.c)(2),n=f(),r;return e[0]===n?r=e[1]:(r={mutationFn:j,onSuccess:(e,t)=>{n.invalidateQueries({queryKey:[`ecr`,`repositories`,t,`policy`]})}},e[0]=n,e[1]=r),t(r)}async function j(e){let t=new g({repositoryName:e});return await i().send(t)}export{O as a,A as i,b as n,E as o,S as r,w as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/index.js b/spinifex/services/spinifexui/frontend/dist/assets/index.js index 8ecf68a43..f6b3b6d2c 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/index.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/index.js @@ -1,10 +1,10 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login.js","assets/compiler-runtime.js","assets/auth.js","assets/tslib.es6.js","assets/awsClient.js","assets/index.browser.js","assets/useStore.js","assets/button.js","assets/dist.js","assets/collapsible.js","assets/createBaseUIEventDetails.js","assets/zod.js","assets/card.js","assets/field.js","assets/route.js","assets/_auth.js","assets/useQuery.js","assets/useBaseQuery.js","assets/chevron-down.js","assets/chevron-right.js","assets/page-heading.js","assets/state-badge.js","assets/badge.js","assets/admin.js","assets/queryOptions.js","assets/nodes.js","assets/redirect.js","assets/service-metrics.js","assets/ls.js","assets/useSuspenseQuery.js","assets/list-card.js","assets/create-bucket.js","assets/s3.js","assets/useMutation.js","assets/back-link.js","assets/cli-command-panel.js","assets/check.js","assets/copy.js","assets/use-copy-to-clipboard.js","assets/error-banner.js","assets/form-actions.js","assets/create-user.js","assets/iam.js","assets/iam2.js","assets/json.js","assets/create-role.js","assets/json-editor.js","assets/textarea.js","assets/create-policy.js","assets/create-instance-profile.js","assets/create-cluster.js","assets/eks.js","assets/subnet-calculator.js","assets/alert-dialog.js","assets/select.js","assets/useCompositeListItem.js","assets/rotate-cw.js","assets/triangle-alert.js","assets/system-managed.js","assets/policy-document-viewer.js","assets/create-vpc.js","assets/ec2.js","assets/ec22.js","assets/create-volume.js","assets/create-target-group.js","assets/elbv2.js","assets/target-group-form.js","assets/plus.js","assets/trash-2.js","assets/elbv22.js","assets/create-subnet.js","assets/create-snapshot.js","assets/create-security-group.js","assets/create-route-table.js","assets/create-placement-group.js","assets/create-nat-gateway.js","assets/create-load-balancer.js","assets/certificate-import-dialog.js","assets/import-key-pair.js","assets/create-key-pair.js","assets/download.js","assets/create-internet-gateway.js","assets/run-instances.js","assets/allocate-address.js","assets/route2.js","assets/_bucket.js","assets/upload-button.js","assets/delete-confirmation-dialog.js","assets/list-users.js","assets/list-roles.js","assets/list-policies.js","assets/list-instance-profiles.js","assets/list-clusters.js","assets/list-repositories.js","assets/ecr.js","assets/describe-vpcs.js","assets/describe-volumes.js","assets/describe-target-groups.js","assets/describe-subnets.js","assets/describe-snapshots.js","assets/describe-security-groups.js","assets/describe-route-tables.js","assets/describe-placement-groups.js","assets/describe-nat-gateways.js","assets/describe-load-balancers.js","assets/describe-key-pairs.js","assets/describe-internet-gateways.js","assets/describe-instances.js","assets/describe-images.js","assets/describe-addresses.js","assets/_.js","assets/_userName.js","assets/detail-row.js","assets/_roleName.js","assets/_policyArn.js","assets/_instanceProfileName.js","assets/_clusterName.js","assets/tabs.js","assets/_id17.js","assets/_id16.js","assets/_id15.js","assets/_id14.js","assets/_id13.js","assets/tags-editor.js","assets/_id12.js","assets/_id11.js","assets/_id10.js","assets/_id9.js","assets/_id8.js","assets/_id7.js","assets/_id6.js","assets/_id5.js","assets/_id4.js","assets/_id3.js","assets/ami-details.js","assets/_id2.js","assets/_id.js"])))=>i.map(i=>d[i]); -import{i as e,n as t,o as n,r,t as i}from"./compiler-runtime.js";import{t as a}from"./queryOptions.js";import{A as o,B as s,C as c,D as l,E as u,F as d,G as f,I as p,L as m,M as h,N as g,O as _,P as v,R as y,S as b,T as x,V as S,W as C,_ as w,a as T,b as E,c as D,d as O,f as k,g as A,h as j,i as M,j as ee,k as N,l as P,m as te,n as ne,o as re,r as ie,s as ae,t as F,v as oe,w as se,x as I,y as ce,z as le}from"./useStore.js";import{i as ue,n as de,r as fe,t as pe}from"./matchContext.js";import{n as me,t as he}from"./redirect.js";import{$ as ge,$n as _e,Ar as ve,At as ye,Bt as be,Dr as xe,G as Se,Gn as Ce,H as we,Ht as Te,J as Ee,Jn as De,Jt as Oe,K as ke,Kn as Ae,Kt as je,Or as Me,Q as Ne,Qn as Pe,Tr as Fe,U as Ie,Ut as Le,V as Re,Vt as ze,W as Be,Wn as Ve,Wt as He,X as Ue,Xn as We,Xt as Ge,Y as Ke,Yn as qe,Yt as Je,Z as Ye,Zn as Xe,Zt as Ze,_t as Qe,a as $e,ar as et,b as tt,bt as nt,c as rt,cn as it,dn as at,er as ot,g as st,gt as ct,h as lt,ht as ut,i as dt,ir as ft,kr as pt,mt,n as ht,nr as gt,nt as _t,o as vt,on as yt,or as bt,pt as xt,q as St,qn as Ct,qt as wt,r as Tt,rr as Et,s as Dt,sn as Ot,t as kt,tn as At,tr as jt,un as Mt,vt as Nt,x as Pt,xt as Ft,yt as It}from"./awsClient.js";import{a as Lt,c as Rt,f as zt,l as Bt,n as Vt,o as Ht,s as Ut,t as Wt,u as Gt}from"./dist.js";import{$ as Kt,A as qt,B as Jt,C as Yt,Ct as Xt,D as Zt,E as Qt,Et as $t,F as en,Ft as tn,G as nn,H as rn,I as an,It as on,J as sn,K as cn,L as ln,Lt as un,M as dn,Mt as fn,N as pn,O as mn,Ot as hn,P as gn,Pt as _n,Q as vn,R as yn,Rt as bn,S as xn,St as L,T as Sn,U as Cn,W as wn,X as Tn,Y as En,_t as Dn,at as R,bt as On,dt as kn,et as An,ft as jn,g as Mn,gt as Nn,ht as Pn,j as Fn,jt as In,k as Ln,kt as Rn,mt as zn,n as Bn,pt as Vn,r as Hn,ut as z,vt as Un,x as Wn,xt as Gn,yt as Kn,z as qn}from"./auth.js";import{C as Jn,D as Yn,E as Xn,S as Zn,T as Qn,_ as $n,b as er,d as tr,f as nr,g as rr,h as ir,l as ar,m as or,n as sr,o as B,p as cr,r as lr,s as ur,t as dr,u as fr,v as pr,w as mr,x as hr,y as V}from"./button.js";import{C as gr,S as _r,a as vr,b as yr,f as br,g as xr,h as Sr,i as Cr,m as wr,o as Tr,p as Er,r as Dr,s as Or,t as kr,v as Ar,x as jr,y as H}from"./createBaseUIEventDetails.js";import{F as Mr,I as Nr,N as Pr,P as Fr,v as Ir}from"./tslib.es6.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Lr=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Rr=new class extends Lr{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},zr={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Br=new class{#e=zr;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function Vr(e){setTimeout(e,0)}var Hr=typeof window>`u`||`Deno`in globalThis;function Ur(){}function Wr(e,t){return typeof e==`function`?e(t):e}function Gr(e){return typeof e==`number`&&e>=0&&e!==1/0}function Kr(e,t){return Math.max(e+(t||0)-Date.now(),0)}function qr(e,t){return typeof e==`function`?e(t):e}function Jr(e,t){return typeof e==`function`?e(t):e}function Yr(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==Zr(o,t.options))return!1}else if(!$r(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function Xr(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Qr(t.options.mutationKey)!==Qr(a))return!1}else if(!$r(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Zr(e,t){return(t?.queryKeyHashFn||Qr)(e)}function Qr(e){return JSON.stringify(e,(e,t)=>ii(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function $r(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>$r(e[n],t[n])):!1}var ei=Object.prototype.hasOwnProperty;function ti(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=ri(e)&&ri(t);if(!r&&!(ii(e)&&ii(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l{Br.setTimeout(t,e)})}function si(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:ti(e,t)}function ci(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function li(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ui=Symbol();function di(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===ui?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function fi(e,t){return typeof e==`function`?e(...t):!!e}function pi(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var mi=(()=>{let e=()=>Hr;return{isServer(){return e()},setIsServer(t){e=t}}})();function hi(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var gi=Vr;function _i(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=gi,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var vi=_i(),yi=new class extends Lr{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function bi(e){return Math.min(1e3*2**e,3e4)}function xi(e){return(e??`online`)===`online`?yi.isOnline():!0}var Si=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function Ci(e){let t=!1,n=0,r,i=hi(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new Si(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>Rr.isFocused()&&(e.networkMode===`always`||yi.isOnline())&&e.canRun(),u=()=>xi(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(mi.isServer()?0:3),o=e.retryDelay??bi,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&nl()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var wi=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Gr(this.gcTime)&&(this.#e=Br.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(mi.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(Br.clearTimeout(this.#e),this.#e=void 0)}};function Ti(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{pi(e,()=>t.signal,()=>n=!0)},u=di(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?li:ci;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?Di:Ei,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:Ei(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(ct.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function Ei(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Di(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Oi=class extends wi{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=ji(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=ji(this.options);e.data!==void 0&&(this.setState(Ai(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=si(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(Ur).catch(Ur):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>Jr(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ui||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>qr(e.options.staleTime,this)===`static`):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!Kr(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=di(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?Ti(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=Ci({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof Si&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof Si){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...ki(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...Ai(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),vi.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function ki(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:xi(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Ai(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function ji(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var Mi=class extends wi{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Ni(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=Ci({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),vi.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Ni(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Pi=class extends Lr{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new Mi({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=Fi(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=Fi(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Fi(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=Fi(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){vi.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Xr(t,e))}findAll(e={}){return this.getAll().filter(t=>Xr(e,t))}notify(e){vi.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return vi.batch(()=>Promise.all(e.map(e=>e.continue().catch(Ur))))}};function Fi(e){return e.options.scope?.id}var Ii=class extends Lr{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??Zr(r,t),a=this.get(i);return a||(a=new Oi({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){vi.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Yr(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Yr(e,t)):t}notify(e){vi.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){vi.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){vi.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Li=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Ii,this.#t=e.mutationCache||new Pi,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=Rr.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=yi.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(qr(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=Wr(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return vi.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;vi.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return vi.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=vi.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(Ur).catch(Ur)}invalidateQueries(e,t={}){return vi.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=vi.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(Ur)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(Ur)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(qr(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ur).catch(Ur)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ur).catch(Ur)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return yi.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(Qr(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{$r(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(Qr(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{$r(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=Zr(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===ui&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},U=n(r(),1),W=t(),Ri=U.createContext(void 0),zi=e=>{let t=U.useContext(Ri);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},Bi=({client:e,children:t})=>(U.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,W.jsx)(Ri.Provider,{value:e,children:t}));function Vi(e,t=String){let n=new URLSearchParams;for(let r in e){let i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function Hi(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function Ui(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=Hi(r):Array.isArray(t)?t.push(Hi(r)):n[e]=[t,Hi(r)]}return n}var Wi=Ki(JSON.parse),Gi=qi(JSON.stringify,JSON.parse);function Ki(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=Ui(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function qi(e,t){let n=typeof t==`function`;function r(r){if(typeof r==`object`&&r)try{return e(r)}catch{}else if(n&&typeof r==`string`)try{return t(r),e(r)}catch{}return r}return e=>{let t=Vi(e,r);return t?`?${t}`:``}}var Ji=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},Yi=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),Xi=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),Zi=(e,t,n=!0)=>{let r={...e.router.options.context??{}},i=n?t:t-1;for(let t=0;t<=i;t++){let n=e.matches[t];if(!n)continue;let i=e.router.getMatch(n.id);i&&Object.assign(r,i.__routeContext,i.__beforeLoadContext)}return r},Qi=(e,t)=>{if(!e.matches.length)return;let n=t.routeId,r=e.matches.findIndex(t=>t.routeId===e.router.routeTree.id),i=r>=0?r:0,a=n?e.matches.findIndex(e=>e.routeId===n):e.firstBadMatchIndex??e.matches.length-1;a<0&&(a=i);for(let t=a;t>=0;t--){let n=e.matches[t];if(e.router.looseRoutesById[n.routeId].options.notFoundComponent)return t}return n?a:i},$i=(e,t,n)=>{if(!(!he(n)&&!ue(n)))throw he(n)&&n.redirectHandled&&!n.options.reloadDocument?n:(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,r=>({...r,status:he(n)?`redirected`:ue(n)?`notFound`:r.status===`pending`?`success`:r.status,context:Zi(e,t.index),isFetching:!1,error:n})),ue(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),he(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n)},ea=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},ta=(e,t,n)=>{let r=Zi(e,n);e.updateMatch(t,e=>({...e,context:r}))},na=(e,t,n)=>{let{id:r,routeId:i}=e.matches[t],a=e.router.looseRoutesById[i];if(n instanceof Promise)throw n;e.firstBadMatchIndex??=t,$i(e,e.router.getMatch(r),n);try{a.options.onError?.(n)}catch(t){n=t,$i(e,e.router.getMatch(r),n)}e.updateMatch(r,e=>(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loadPromise?.resolve(),{...e,error:n,status:`error`,isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!he(n)&&!ue(n)&&(e.serialError??=n)},ra=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!Xi(e,t)&&(n.options.loader||n.options.beforeLoad||ma(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{Ji(e)},i);r._nonReactive.pendingTimeout=t}},ia=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;ra(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&$i(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},aa=(e,t,n,r)=>{let i=e.router.getMatch(t),a=i._nonReactive.loadPromise;i._nonReactive.loadPromise=_(()=>{a?.resolve(),a=void 0});let{paramsError:o,searchError:s}=i;o&&na(e,n,o),s&&na(e,n,s),ra(e,t,r,i);let c=new AbortController,l=!1,u=()=>{l||(l=!0,e.updateMatch(t,e=>({...e,isFetching:`beforeLoad`,fetchCount:e.fetchCount+1,abortController:c})))},d=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{u(),d()});return}i._nonReactive.beforeLoadPromise=_();let f={...Zi(e,n,!1),...i.__routeContext},{search:p,params:h,cause:g}=i,v=Xi(e,t),y={search:p,abortController:c,params:h,preload:v,context:f,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:v?`preload`:g,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},b=r=>{if(r===void 0){e.router.batch(()=>{u(),d()});return}(he(r)||ue(r))&&(u(),na(e,n,r)),e.router.batch(()=>{u(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),d()})},x;try{if(x=r.options.beforeLoad(y),m(x))return u(),x.catch(t=>{na(e,n,t)}).then(b)}catch(t){u(),na(e,n,t)}b(x)},oa=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>aa(e,n,t,i),s=()=>{if(ea(e,n))return;let t=ia(e,n,i);return m(t)?t.then(o):o()};return a()},sa=(e,t,n)=>{let r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;let i={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([e,t,n])=>({meta:e?.meta,links:e?.links,headScripts:e?.scripts,headers:n,scripts:t,styles:e?.styles}))},ca=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=Zi(e,r),d=Xi(e,n);return{params:o,deps:s,preload:!!d,parentMatchPromise:a,abortController:c,context:u,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),cause:d?`preload`:l,route:i,...e.router.options.additionalContext}},la=async(e,t,n,r,i)=>{try{let a=e.router.getMatch(n);try{pa(i);let o=i.options.loader,s=typeof o==`function`?o:o?.handler,c=s?.(ca(e,t,n,r,i)),l=!!s&&m(c);if((l||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||a._nonReactive.minPendingPromise)&&e.updateMatch(n,e=>({...e,isFetching:`loader`})),s){let t=l?await c:c;$i(e,e.router.getMatch(n),t),t!==void 0&&e.updateMatch(n,e=>({...e,loaderData:t}))}i._lazyPromise&&await i._lazyPromise;let u=a._nonReactive.minPendingPromise;u&&await u,i._componentsPromise&&await i._componentsPromise,e.updateMatch(n,t=>({...t,error:void 0,context:Zi(e,r),status:`success`,isFetching:!1,updatedAt:Date.now()}))}catch(t){let o=t;if(o?.name===`AbortError`){if(a.abortController.signal.aborted){a._nonReactive.loaderPromise?.resolve(),a._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,t=>({...t,status:t.status===`pending`?`success`:t.status,isFetching:!1,context:Zi(e,r)}));return}let s=a._nonReactive.minPendingPromise;s&&await s,ue(t)&&await i.options.notFoundComponent?.preload?.(),$i(e,e.router.getMatch(n),t);try{i.options.onError?.(t)}catch(t){o=t,$i(e,e.router.getMatch(n),t)}!he(o)&&!ue(o)&&await pa(i,[`errorComponent`]),e.updateMatch(n,t=>({...t,error:o,context:Zi(e,r),status:`error`,isFetching:!1}))}}catch(t){let r=e.router.getMatch(n);r&&(r._nonReactive.loaderPromise=void 0),$i(e,r,t)}},ua=async(e,t,n)=>{async function r(r,a,c,l,d){let f=Date.now()-a.updatedAt,p=r?d.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:d.options.staleTime??e.router.options.defaultStaleTime??0,m=d.options.shouldReload,h=typeof m==`function`?m(ca(e,t,i,n,d)):m,{status:g,invalid:_}=l,v=f>=p&&(!!e.forceStaleReload||l.cause===`enter`||c!==void 0&&c!==l.id);o=g===`success`&&(_||(h??v)),r&&d.options.preload===!1||(o&&!e.sync&&u?(s=!0,(async()=>{try{await la(e,t,i,n,d);let r=e.router.getMatch(i);r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loadPromise?.resolve(),r._nonReactive.loaderPromise=void 0,r._nonReactive.loadPromise=void 0}catch(t){he(t)&&await e.router.navigate(t.options)}})()):g!==`success`||o?await la(e,t,i,n,d):ta(e,i,n))}let{id:i,routeId:a}=e.matches[n],o=!1,s=!1,c=e.router.looseRoutesById[a],l=c.options.loader,u=((typeof l==`function`?void 0:l?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!==`blocking`;if(ea(e,i)){if(!e.router.getMatch(i))return e.matches[n];ta(e,i,n)}else{let t=e.router.getMatch(i),o=e.router.stores.matchesId.get()[n],s=(o&&e.router.stores.matchStores.get(o)||null)?.routeId===a?o:e.router.stores.matches.get().find(e=>e.routeId===a)?.id,l=Xi(e,i);if(t._nonReactive.loaderPromise){if(t.status===`success`&&!e.sync&&!t.preload&&u)return t;await t._nonReactive.loaderPromise;let n=e.router.getMatch(i),a=n._nonReactive.error||n.error;a&&$i(e,n,a),n.status===`pending`&&await r(l,t,s,n,c)}else{let n=l&&!e.router.stores.matchStores.has(i),a=e.router.getMatch(i);a._nonReactive.loaderPromise=_(),n!==a.preload&&e.updateMatch(i,e=>({...e,preload:n})),await r(l,t,s,a,c)}}let d=e.router.getMatch(i);s||(d._nonReactive.loaderPromise?.resolve(),d._nonReactive.loadPromise?.resolve(),d._nonReactive.loadPromise=void 0),clearTimeout(d._nonReactive.pendingTimeout),d._nonReactive.pendingTimeout=void 0,s||(d._nonReactive.loaderPromise=void 0),d._nonReactive.dehydrated=void 0;let f=s?d.isFetching:!1;return f!==d.isFetching||d.invalid!==!1?(e.updateMatch(i,e=>({...e,isFetching:f,invalid:!1})),e.router.getMatch(i)):d};async function da(e){let t=e,n=[];Yi(t.router)&&Ji(t);let r;for(let e=0;e({...e,...a?{status:`success`,globalNotFound:!0,error:void 0}:{status:`notFound`,error:l},isFetching:!1})),u=e,await pa(r,[`notFoundComponent`])}else if(!t.preload){let e=t.matches[0];e.globalNotFound||t.router.getMatch(e.id)?.globalNotFound&&t.updateMatch(e.id,e=>({...e,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){let e=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await pa(e,[`errorComponent`])}for(let e=0;e<=u;e++){let{id:n,routeId:r}=t.matches[e],i=t.router.looseRoutesById[r];try{let e=sa(t,n,i);if(e){let r=await e;t.updateMatch(n,e=>({...e,...r}))}}catch(e){console.error(`Error executing head for route ${r}:`,e)}}let d=Ji(t);if(m(d)&&await d,l)throw l;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function fa(e,t){let n=t.map(t=>e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function pa(e,t=ha){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);let n=()=>e._componentsLoaded?void 0:t===ha?(()=>{if(e._componentsPromise===void 0){let t=fa(e,ha);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():fa(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function ma(e){for(let t of ha)if(e.options[t]?.preload)return!0;return!1}var ha=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`];function ga(e){return{input:({url:t})=>{for(let n of e)t=va(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=ya(e[n],t);return t}}}function _a(e){let t=j(e.basepath),n=`/${t}`,r=e.caseSensitive?n:n.toLowerCase(),i=`${r}/`;return{input:({url:t})=>{let a=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return a===r?t.pathname=`/`:a.startsWith(i)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=k([`/`,t,e.pathname]),e)}}function va(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function ya(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function ba(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i,init:a}=t,o=new Map,s=new Map,c=new Map,l=n(e.status),u=n(e.loadedAt),d=n(e.isLoading),f=n(e.isTransitioning),p=n(e.location),m=n(e.resolvedLocation),h=n(e.statusCode),g=n(e.redirect),_=n([]),v=n([]),y=n([]),b=r(()=>xa(o,_.get())),x=r(()=>xa(s,v.get())),S=r(()=>xa(c,y.get())),C=r(()=>_.get()[0]),w=r(()=>_.get().some(e=>o.get(e)?.get().status===`pending`)),T=r(()=>({locationHref:p.get().href,resolvedLocationHref:m.get()?.href,status:l.get()})),E=r(()=>({status:l.get(),loadedAt:u.get(),isLoading:d.get(),isTransitioning:f.get(),matches:b.get(),location:p.get(),resolvedLocation:m.get(),statusCode:h.get(),redirect:g.get()})),D=se(64);function O(e){let t=D.get(e);return t||(t=r(()=>{let t=_.get();for(let n of t){let t=o.get(n);if(t&&t.routeId===e)return t.get()}}),D.set(e,t)),t}let k={status:l,loadedAt:u,isLoading:d,isTransitioning:f,location:p,resolvedLocation:m,statusCode:h,redirect:g,matchesId:_,pendingIds:v,cachedIds:y,matches:b,pendingMatches:x,cachedMatches:S,firstId:C,hasPending:w,matchRouteDeps:T,matchStores:o,pendingMatchStores:s,cachedMatchStores:c,__store:E,getRouteMatchStore:O,setMatches:A,setPending:j,setCached:M};A(e.matches),a?.(k);function A(e){Sa(e,o,_,n,i)}function j(e){Sa(e,s,v,n,i)}function M(e){Sa(e,c,y,n,i)}return k}function xa(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function Sa(e,t,n,r,i){let a=e.map(e=>e.id),o=new Set(a);i(()=>{for(let e of t.keys())o.has(e)||t.delete(e);for(let n of e){let e=t.get(n.id);if(!e){let e=r(n);e.routeId=n.routeId,t.set(n.id,e);continue}e.routeId=n.routeId,e.get()!==n&&e.set(n)}l(n.get(),a)||n.set(a)})}var Ca=`__TSR_index`,wa=`popstate`,Ta=`beforeunload`;function Ea(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=Aa(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[Ca];i=Da(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[Ca];i=Da(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[Ca]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function Da(e,t){t||={};let n=ja();return{...t,key:n,__TSR_key:n,[Ca]:e}}function Oa(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=e?.createHref??(e=>e),c=e?.parseLocation??(()=>Aa(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=ja();t.history.replaceState({[Ca]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_,v=()=>{g&&(C._ignoreSubscribers=!0,(g.isPush?t.history.pushState:t.history.replaceState)(g.state,``,g.href),C._ignoreSubscribers=!1,g=void 0,_=void 0,u=void 0)},y=(e,t,n)=>{let r=s(t);_||(u=l),l=Aa(t,n),g={href:r,state:n,isPush:g?.isPush||e===`push`},_||=Promise.resolve().then(()=>v())},b=e=>{l=c(),C.notify({type:e})},x=async()=>{if(f){f=!1;return}let e=c(),n=e.state[Ca]-l.state[Ca],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),C.notify(u);return}}}l=c(),C.notify(u)},S=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},C=Ea({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>y(`push`,e,t),replaceState:(e,t)=>y(`replace`,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(Ta,S,{capture:!0}),t.removeEventListener(wa,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(Ta,S,{capture:!0}),t.addEventListener(wa,x),t.history.pushState=function(...e){let r=n.apply(t.history,e);return C._ignoreSubscribers||b(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return C._ignoreSubscribers||b(`REPLACE`),n},C}function ka(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function Aa(e,t){let n=ka(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=ja();return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t||{[Ca]:0,key:a,__TSR_key:a}}}function ja(){return(Math.random()+1).toString(36).substring(7)}function Ma(e,t){let n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var Na=new WeakMap,Pa=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.routeBranchCache=new WeakMap,this.startTransition=e=>e(),this.update=e=>{let t=this.options,n=this.basepath??t?.basepath??`/`,r=this.basepath===void 0,i=t?.rewrite;if(this.options={...t,...e},this.isServer=this.options.isServer??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=P(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=Oa()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!==`null`?this.origin=window.origin:this.origin=`http://localhost`),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;this.resolvePathCache=se(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=ba(La(this.latestLocation),e),ro(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=j(o);t&&t!==`/`&&e.push(_a({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:ga(e),this.history&&this.updateLatestLocation(),a=!0}a&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<`u`&&`CSS`in window&&typeof window.CSS?.supports==`function`&&(this.isViewTransitionTypesSupported=window.CSS.supports(`selector(:active-view-transition-type(a))`))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=c(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&b(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{this.subscribers.forEach(t=>{t.eventType===e.type&&t.fn(e)})},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,state:a})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:N(e).path,external:!1,searchStr:o,search:le(t?.search,i),hash:N(r.slice(1)).path,state:s(t?.state,a)}}let o=new URL(i,this.origin),c=va(this.rewrite,o),l=this.options.parseSearch(c.search),u=this.options.stringifySearch(l);return c.search=u,{href:c.href.replace(c.origin,``),publicHref:i,pathname:N(c.pathname).path,external:!!this.rewrite&&c.origin!==this.origin,searchStr:u,search:le(t?.search,l),hash:N(c.hash.slice(1)).path,state:s(t?.state,a)}},r=n(e),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathWithBase=(e,t)=>te({base:e,to:t.includes(`//`)?D(t):t,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>za({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{let t=this.getMatch(e);t&&(t.abortController.abort(),clearTimeout(t._nonReactive.pendingTimeout),t._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(e=>{this.cancelMatch(e)}),this.stores.matchesId.get().forEach(e=>{if(this.stores.pendingMatchStores.has(e))return;let t=this.stores.matchStores.get(e)?.get();t&&(t.status===`pending`||t.isFetching===`loader`)&&this.cancelMatch(e)})},this.buildLocation=e=>{let t=(t={})=>{let n=t._fromLocation||this.pendingBuiltLocation||this.latestLocation,r=this.matchRoutesLightweight(n);t.from;let i=t.unsafeRelative===`path`?n.pathname:t.from??r.fullPath,a=t.to?`${t.to}`:void 0,o=r.search,c=Object.assign(Object.create(null),r.params),l=a?.charCodeAt(0)===47?`/`:this.resolvePathWithBase(i,`.`),u=a?this.resolvePathWithBase(l,a):l,d=t.params===!1||t.params===null?Object.create(null):(t.params??!0)===!0?c:Object.assign(c,g(t.params,c)),f=this.routesByPath[w(u)],p;if(f)p=this.getRouteBranch(f);else if(u.includes(`$`))p=[];else{let e=this.getMatchedRoutes(u);p=e.matchedRoutes,this.options.notFoundRoute&&(!e.foundRoute||e.foundRoute.path!==`/`&&e.routeParams[`**`])&&(p=[...p,this.options.notFoundRoute])}if(p.length&&v(d))for(let e of p){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(d,t(d))}catch{}}let m=e.leaveParams?u:N(O({path:u,params:d,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,h=o;if(e._includeValidateSearch&&this.options.search?.strict){let e={};p.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,Ra(t.options.validateSearch,{...e,...h}))}catch{}}),h=e}h=Ba({search:h,dest:t,destRoutes:p,_includeValidateSearch:e._includeValidateSearch}),h=le(o,h);let _=this.options.stringifySearch(h),y=t.hash===!0?n.hash:t.hash?g(t.hash,n.hash):void 0,b=y?`#${y}`:``,x=t.state===!0?n.state:t.state?g(t.state,n.state):{};x=s(n.state,x);let S=`${m}${_}${b}`,C,T,E=!1;if(this.rewrite){let e=new URL(S,this.origin),t=ya(this.rewrite,e);C=e.href.replace(e.origin,``),t.origin===this.origin?T=t.pathname+t.search+t.hash:(T=t.href,E=!0)}else C=ee(S),T=C;return{publicHref:T,href:C,pathname:m,search:h,searchStr:_,state:x,hash:y??``,external:E,unmaskOnReload:t.unmaskOnReload}},n=(n={},r)=>{let i=t(n),a=r?t(r):void 0;if(!a){let n=Object.create(null);if(this.options.routeMasks){let o=ce(i.pathname,this.processedTree);if(o){Object.assign(n,o.rawParams);let{from:i,params:s,...c}=o.route,l=s===!1||s===null?Object.create(null):(s??!0)===!0?n:Object.assign(n,g(s,n));r={from:e.from,...c,params:l},a=t(r)}}}return a&&(i.maskedLocation=a),i};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r,i=()=>{let e=[`key`,`__TSR_key`,`__TSR_index`,`__hashScrollIntoViewOptions`];e.forEach(e=>{n.state[e]=this.latestLocation.state[e]});let t=o(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},a=w(this.latestLocation.href)===w(n.href),s=this.commitLocationPromise;if(this.commitLocationPromise=_(()=>{s?.resolve(),s=void 0}),a&&i())this.load();else{let{maskedLocation:i,hashScrollIntoView:a,...o}=n;i&&(o={...i,state:{...i.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state.__hashScrollIntoViewOptions=a??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,r=n.replace?`REPLACE`:`PUSH`,this.history[r===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t})}return this._scroll.next=n.resetScroll??!0,this.history.subscribers.size||this.load(r?{action:{type:r}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,href:a,...o}={})=>{if(a){let t=this.history.location.state.__TSR_index,n=Aa(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=va(this.rewrite,r).pathname,o.search=this.options.parseSearch(n.search),o.hash=n.hash.slice(1)}let s=this.buildLocation({...o,_includeValidateSearch:!0});this.pendingBuiltLocation=s;let c=this.commitLocation({...s,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return Promise.resolve().then(()=>{this.pendingBuiltLocation===s&&(this.pendingBuiltLocation=void 0)}),c},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!t&&(t=!0),t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i});n??=t.publicHref,r??=t.publicHref}let t=!a&&r?r:n;if(d(t,this.protocolAllowlist))return Promise.resolve();if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return Promise.resolve()}return i.replace?window.location.replace(t):window.location.href=t,Promise.resolve()}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();let e=this.matchRoutes(this.latestLocation),t=this.stores.cachedMatches.get().filter(t=>!e.some(e=>e.id===t.id));this.batch(()=>{this.stores.status.set(`pending`),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(e),this.stores.setCached(t)})},this.load=async e=>{let t=e?.action?.type,n,r,i,a=this.stores.resolvedLocation.get()??this.stores.location.get();for(i=new Promise(o=>{this.startTransition(async()=>{try{this.beforeLoad(),t?Na.set(this.latestLocation,t):Na.delete(this.latestLocation);let n=this.latestLocation,r=Ma(n,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...r}),this.emit({type:`onBeforeLoad`,...r}),await da({router:this,sync:e?.sync,forceStaleReload:a.href===n.href,matches:this.stores.pendingMatches.get(),location:n,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let e=null,t=null,n=null,r=null;this.batch(()=>{let i=this.stores.pendingMatches.get(),a=i.length,o=this.stores.matches.get();e=a?o.filter(e=>!this.stores.pendingMatchStores.has(e.id)):null;let s=new Set;for(let e of this.stores.pendingMatchStores.values())e.routeId&&s.add(e.routeId);let c=new Set;for(let e of this.stores.matchStores.values())e.routeId&&c.add(e.routeId);t=a?o.filter(e=>!s.has(e.routeId)):null,n=a?i.filter(e=>!c.has(e.routeId)):null,r=a?i.filter(e=>c.has(e.routeId)):o,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),a&&(this.stores.setMatches(i),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...e.filter(e=>e.status!==`error`&&e.status!==`notFound`&&e.status!==`redirected`)]),this.clearExpiredCache())});for(let[e,i]of[[t,`onLeave`],[n,`onEnter`],[r,`onStay`]])if(e)for(let t of e)this.looseRoutesById[t.routeId].options[i]?.(t)})})}})}catch(e){he(e)?(n=e,this.navigate({...n.options,replace:!0,ignoreBlocker:!0})):ue(e)&&(r=e);let t=n?n.status:r?404:this.stores.matches.get().some(e=>e.status===`error`)?500:200;this.batch(()=>{this.stores.statusCode.set(t),this.stores.redirect.set(n)})}this.latestLoadPromise===i&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),o()})}),this.latestLoadPromise=i,await i;this.latestLoadPromise&&i!==this.latestLoadPromise;)await this.latestLoadPromise;let o;this.hasNotFoundMatch()?o=404:this.stores.matches.get().some(e=>e.status===`error`)&&(o=500),o!==void 0&&this.stores.statusCode.set(o)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document<`u`&&`startViewTransition`in document&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&this.isViewTransitionTypesSupported){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(Ma(r,i)):t.types;if(a===!1){e();return}n={update:e,types:a}}else n=e;document.startViewTransition(n)}else e()},this.updateMatch=(e,t)=>{this.startTransition(()=>{let n=this.stores.pendingMatchStores.get(e);if(n){n.set(t);return}let r=this.stores.matchStores.get(e);if(r){r.set(t);return}let i=this.stores.cachedMatchStores.get(e);if(i){let n=t(i.get());n.status===`redirected`?this.stores.cachedMatchStores.delete(e)&&this.stores.cachedIds.set(t=>t.filter(t=>t!==e)):i.set(n)}})},this.getMatch=e=>this.stores.cachedMatchStores.get(e)?.get()??this.stores.pendingMatchStores.get(e)?.get()??this.stores.matchStores.get(e)?.get(),this.invalidate=e=>{let t=t=>e?.filter?.(t)??!0?{...t,invalid:!0,...e?.forcePending||t.status===`error`||t.status===`notFound`?{status:`pending`,error:void 0}:void 0}:t;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(t)),this.stores.setCached(this.stores.cachedMatches.get().map(t)),this.stores.setPending(this.stores.pendingMatches.get().map(t))}),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>e.publicHref||`/`,this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href||e.options._builtLocation){let t=e.options._builtLocation??this.buildLocation(e.options),n=this.getParsedLocationHref(t);e.options.href=n,e.headers.set(`Location`,n)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set(`Location`,t)}}catch{}if(e.options.href&&!e.options._builtLocation&&d(e.options.href,this.protocolAllowlist))throw Error(`Redirect blocked: unsafe protocol`);return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=e?.filter;t===void 0?this.stores.setCached([]):this.stores.setCached(this.stores.cachedMatches.get().filter(e=>!t(e)))},this.clearExpiredCache=()=>{let e=Date.now();this.clearCache({filter:t=>{let n=this.looseRoutesById[t.routeId];if(!n.options.loader)return!0;let r=(t.preload?n.options.preloadGcTime??this.options.defaultPreloadGcTime:n.options.gcTime??this.options.defaultGcTime)??300*1e3;return t.status===`error`?!0:e-t.updatedAt>=r}})},this.loadRouteChunk=pa,this.preloadRoute=async e=>{let t=e._builtLocation??this.buildLocation(e),n=this.matchRoutes(t,{throwOnError:!0,preload:!0,dest:e}),r=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),i=new Set([...r,...this.stores.cachedIds.get()]),a=n.filter(e=>!i.has(e.id));if(a.length){let e=this.stores.cachedMatches.get();this.stores.setCached([...e,...a])}try{return n=await da({router:this,matches:n,location:t,preload:!0,updateMatch:(e,t)=>{r.has(e)?n=n.map(n=>n.id===e?t(n):n):this.updateMatch(e,t)}}),n}catch(e){if(he(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});ue(e)||console.error(e);return}},this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n);if(t?.pending&&this.stores.status.get()!==`pending`)return!1;let i=(t?.pending===void 0?!this.stores.isLoading.get():t.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),a=I(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!o(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?o(i.search,r.search,{partial:!0})?a.rawParams:!1:a.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(e=>e.status===`notFound`||e.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??Gi,parseSearch:e.parseSearch??Wi,protocolAllowlist:e.protocolAllowlist??u}),typeof document<`u`&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=oe(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){let n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParams:i}=n,{matchedRoutes:a}=n,o=!1;(r?r.path!==`/`&&i[`**`]:w(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let c=o?Ha(this.options.notFoundMode,a):void 0,l=Array(a.length),u=new Map;for(let e of this.stores.matchStores.values())e.routeId&&u.set(e.routeId,e.get());for(let n=0;nthis.navigate({...t,_fromLocation:e}),buildLocation:this.buildLocation,cause:n.cause,abortController:n.abortController,preload:!!n.preload,matches:l,routeId:r.id};n.__routeContext=r.options.context(t)??void 0}n.context={...a,...n.__routeContext,...n.__beforeLoadContext}}}return l}matchRoutesLightweight(e){let{matchedRoutes:t,routeParams:n}=this.getMatchedRoutes(e.pathname),r=y(t),i={...e.search};for(let e of t)try{Object.assign(i,Ra(e.options.validateSearch,i))}catch{}let a=y(this.stores.matchesId.get()),o=a&&this.stores.matchStores.get(a)?.get(),s=o&&o.routeId===r.id&&o.pathname===e.pathname,c;if(s)c=o.params;else{let e=Object.assign(Object.create(null),n);for(let n of t)try{Ua(n,e)}catch{}c=e}return{matchedRoutes:t,fullPath:r.fullPath,search:i,params:c}}},Fa=class extends Error{},Ia=class extends Error{};function La(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function Ra(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new Fa(`Async validation not supported`);if(n.issues)throw new Fa(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function za({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=w(e),a,o=E(i,n,!0);return o&&(a=o.route,Object.assign(r,o.rawParams)),{matchedRoutes:o?.branch||[t.__root__],routeParams:r,foundRoute:a}}function Ba({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return Va(n)(e,t,r??!1)}function Va(e){let t,n,r=[];for(let t of e){let e=t.options;`search`in e?e.search?.middlewares&&r.push(...e.search.middlewares):(e.preSearchFilters||e.postSearchFilters)&&r.push(({search:t,next:n})=>{let r=n(e.preSearchFilters?e.preSearchFilters.reduce((e,t)=>t(e),t):t);return e.postSearchFilters?e.postSearchFilters.reduce((e,t)=>t(e),r):r});let i=e.validateSearch;i&&r.push(({search:e,next:t,meta:r})=>{let a=t(e);if(n)try{let e=Ra(i,a);if(r&&e)for(let t in e)t in a||(r.defaulted||=new Map).set(t,e[t]);return{...a,...e}}catch{}return a})}let i=(e,n,a)=>{if(e>=r.length){if(!t.search)return{};if(t.search===!0)return n;let e=g(t.search,n);return a&&(a.explicit=e),e}return r[e]({search:n,next:(t,n)=>{if(n){let n=a||{};return{search:i(e+1,t,n),meta:n}}return i(e+1,t,a)},meta:a})};return function(e,r,a){return t=r,n=a,i(0,e)}}function Ha(e,t){if(e!==`root`)for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.children)return n.id}return fe}function Ua(e,t){let n=e.options.params?.parse??e.options.parseParams;if(n){let e=n(t);if(e===!1)throw Error(`Route params.parse returned false for a matched route`);Object.assign(t,e)}}function Wa(){try{return sessionStorage}catch{return}}var Ga=`tsr-scroll-restoration-v1_3`,Ka=Wa();function qa(){try{return JSON.parse(Ka?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}function Ja(){try{Ka?.setItem(Ga,JSON.stringify(Ya))}catch{}}var Ya=qa(),Xa=`data-scroll-restoration-id`,Za=e=>e.state.__TSR_key||e.href;function Qa(e){let t=e.getAttribute(Xa);if(t)return`[${Xa}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}var $a=!1,eo=`window`;function to(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function no(e){let t=[];for(let n of e){if(n===eo)continue;let e=to(n);e&&t.push(e)}return t}function ro(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.restoring=!0);let i=e.options.getScrollRestorationKey||Za,a=new Map,o=(e,t,n)=>{let r=a.get(e)||{};r.scrollX=t,r.scrollY=n,a.set(e,r)},s=e=>{if(!($a||!r.restoring))if(e.target===document)o(eo,scrollX,scrollY);else{let t=e.target;o(t,t.scrollLeft,t.scrollTop)}},c=e=>{if(!r.restoring)return;let t=Ya[e]||={};for(let[e,n]of a)e===eo?t[eo]=n:e.isConnected&&(t[Qa(e)]=n)};n&&!r.restoration&&(r.restoration=!0,$a=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,s,!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&c(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{c(i(e.stores.resolvedLocation.get()??e.stores.location.get())),Ja()})),!r.reset&&(r.reset=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.next,c;if(a.clear(),s||(r.next=!0),typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let l=i(t.toLocation),u=t.fromLocation&&i(t.fromLocation);if(r.restoring&&u&&u!==l){let e=Ya[u];if(e){let t=Ya[l];for(let n in e){if(n===eo){if(s)continue}else{let e=to(n);if(!e||s&&o&&(c??=no(o),c.includes(e)))continue}t||=Ya[l]={},t[n]??=e[n]}}}$a=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){let s=Na.get(t.toLocation),u=e&&i&&(s===`PUSH`||s===`REPLACE`),d=r.restoring?Ya[l]:void 0;if(d)for(let e in d){let{scrollX:t,scrollY:r}=d[e];if(e===eo){if(u)continue;scrollTo({top:r,left:t,behavior:n}),a=!0}else{let n=to(e);n&&(n.scrollLeft=t,n.scrollTop=r)}}if(!a&&!e){let e={top:0,left:0,behavior:n};if(scrollTo(e),o){c??=no(o);for(let t of c)t.scrollTo(e)}}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{$a=!1}}))}function io(e,t){if(e)return typeof e==`string`?e:e[t]}function ao(e){return e?.scriptFormat??`module`}function oo(e,t,n){let r=G(t),i=io(n,`script`)??r.crossOrigin;return{...ao(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,...i?{crossOrigin:i}:{}}}function G(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function so(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}let n=new Set;for(let r of t){let t=JSON.stringify(r);n.has(t)||(n.add(t),e.push(r))}}function co(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}var lo=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=fe:this.parentRoute||x();let r=n?fe:t?.path;r&&r!==`/`&&(r=A(r));let i=t?.id||r,a=n?fe:k([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),a!==`__root__`&&(a=k([`/`,a]));let o=a===`__root__`?`/`:k([this.parentRoute.fullPath,r]);this._path=r,this._id=a,this._fullPath=o,this._to=w(o)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>me({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},uo=class extends lo{constructor(e){super(e)}};function fo(e){let t=e.errorComponent??mo;return(0,W.jsx)(po,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?U.createElement(t,{error:n,reset:r}):e.children})}var po=class extends U.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function mo({error:e}){let[t,n]=U.useState(!1);return(0,W.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,W.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,W.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,W.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,W.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,W.jsx)(`div`,{children:(0,W.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,W.jsx)(`code`,{children:e.message}):null})}):null]})}var ho=(e=>(e[e.None=0]=`None`,e[e.Mutable=1]=`Mutable`,e[e.Watching=2]=`Watching`,e[e.RecursedCheck=4]=`RecursedCheck`,e[e.Recursed=8]=`Recursed`,e[e.Dirty=16]=`Dirty`,e[e.Pending=32]=`Pending`,e))(ho||{});function go({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function _o(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var vo=[],yo=0,{link:bo,unlink:xo,propagate:So,checkDirty:Co,shallowPropagate:wo}=go({update(e){return e._update()},notify(e){vo[Eo++]=e,e.flags&=~ho.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=ho.Mutable|ho.Dirty,Ao(e))}}),To=0,Eo=0,Do,Oo=0;function ko(e){try{++Oo,e()}finally{--Oo||jo()}}function Ao(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=xo(n,e)}function jo(){if(!(Oo>0)){for(;To{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=Do,o=t?.compare??Object.is;if(n)Do=i,++yo,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=ho.Mutable|ho.RecursedCheck);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{Do=a,n&&(i.flags&=~ho.RecursedCheck),Ao(i)}}};return n?(i.flags=ho.Mutable|ho.Dirty,i.get=function(){let e=i.flags;if(e&ho.Dirty||e&ho.Pending&&Co(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&wo(e)}}else e&ho.Pending&&(i.flags=e&~ho.Pending);return Do!==void 0&&bo(i,Do,yo),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(So(e),wo(e),jo())}},i}function No(e){let t=()=>{let t=Do;Do=n,++yo,n.depsTail=void 0,n.flags=ho.Watching|ho.RecursedCheck;try{return e()}finally{Do=t,n.flags&=~ho.RecursedCheck,Ao(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:ho.Watching|ho.RecursedCheck,notify(){let e=this.flags;e&ho.Dirty||e&ho.Pending&&Co(this.deps,this)?t():this.flags=ho.Watching},stop(){this.flags=ho.None,this.depsTail=void 0,Ao(this)}};return t(),n}var Po={get:()=>void 0,subscribe:()=>({unsubscribe:()=>{}})};function Fo(e){let t=M(),n=U.useContext(e.from?pe:de),r=e.from??n,i=r?e.from?t.stores.getRouteMatchStore(r):t.stores.matchStores.get(r):void 0,a=U.useRef(void 0);return F(i??Po,n=>{if((e.shouldThrow??!0)&&!n&&x(),n===void 0)return;let r=e.select?e.select(n):n;if(e.structuralSharing??t.options.defaultStructuralSharing){let e=s(a.current,r);return a.current=e,e}return r})}function Io(e){return Fo({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Lo(e){let{select:t,...n}=e;return Fo({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function Ro(e){return Fo({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function zo(e){return Fo({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function Bo(e){let t=M();return U.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function Vo(e){return Fo({...e,select:t=>e.select?e.select(t.context):t.context})}var Ho=class extends lo{constructor(e){super(e),this.useMatch=e=>Fo({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>Vo({...e,from:this.id}),this.useSearch=e=>zo({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>Ro({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>Lo({...e,from:this.id}),this.useLoaderData=e=>Io({...e,from:this.id}),this.useNavigate=()=>Bo({from:this.fullPath}),this.Link=U.forwardRef((e,t)=>(0,W.jsx)(pt,{ref:t,from:this.fullPath,...e}))}};function Uo(e){return new Ho(e)}function Wo(){return e=>Ko(e)}var Go=class extends uo{constructor(e){super(e),this.useMatch=e=>Fo({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>Vo({...e,from:this.id}),this.useSearch=e=>zo({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>Ro({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>Lo({...e,from:this.id}),this.useLoaderData=e=>Io({...e,from:this.id}),this.useNavigate=()=>Bo({from:this.fullPath}),this.Link=U.forwardRef((e,t)=>(0,W.jsx)(pt,{ref:t,from:this.fullPath,...e}))}};function Ko(e){return new Go(e)}function K(e){return new qo(e,{silent:!0}).createRoute}var qo=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=Uo(e);return t.isRoot=!1,t},this.silent=t?.silent}};function q(e,t){let n,r,i,a,o=()=>(n||=e().then(e=>{n=void 0,r=e[t??`default`]}).catch(e=>{if(i=e,p(i)&&i instanceof Error&&typeof window<`u`&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;sessionStorage.getItem(e)||(sessionStorage.setItem(e,`1`),a=!0)}}),n),s=function(e){if(a)throw window.location.reload(),new Promise(()=>{});if(i)throw i;if(!r)if(S)S(o());else throw o();return U.createElement(r,e)};return s.preload=o,s}function Jo(e){let t=M(),n=`not-found-${F(t.stores.location,e=>e.pathname)}-${F(t.stores.status,e=>e)}`;return(0,W.jsx)(fo,{getResetKey:()=>n,onCatch:(t,n)=>{if(ue(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(ue(t))return e.fallback?.(t);throw t},children:e.children})}function Yo(){return(0,W.jsx)(`p`,{children:`Not Found`})}function Xo(e){return(0,W.jsx)(W.Fragment,{children:e.children})}function Zo(e,t,n){return t.options.notFoundComponent?(0,W.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,W.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,W.jsx)(Yo,{})}var Qo=U.memo(function({matchId:e}){let t=M(),n=t.stores.matchStores.get(e);n||x();let r=F(t.stores.loadedAt,e=>e),i=F(n,e=>e);return(0,W.jsx)($o,{router:t,matchId:e,resetKey:r,matchState:U.useMemo(()=>{let e=i.routeId,n=t.routesById[e].parentRoute?.id;return{routeId:e,ssr:i.ssr,_displayPending:i._displayPending,parentRouteId:n}},[i._displayPending,i.routeId,i.ssr,t.routesById])})});function $o({router:e,matchId:t,resetKey:n,matchState:r}){let i=e.routesById[r.routeId],a=i.options.pendingComponent??e.options.defaultPendingComponent,o=a?(0,W.jsx)(a,{}):null,s=i.options.errorComponent??e.options.defaultErrorComponent,c=i.options.onCatch??e.options.defaultOnCatch,l=i.isRoot?i.options.notFoundComponent??e.options.notFoundRoute?.options.component:i.options.notFoundComponent,u=r.ssr===!1||r.ssr===`data-only`,d=(!i.isRoot||i.options.wrapInSuspense||u)&&(i.options.wrapInSuspense??a??(i.options.errorComponent?.preload||u))?U.Suspense:Xo,f=s?fo:Xo,p=l?Jo:Xo;return(0,W.jsxs)(i.isRoot?i.options.shellComponent??Xo:Xo,{children:[(0,W.jsx)(de.Provider,{value:t,children:(0,W.jsx)(d,{fallback:o,children:(0,W.jsx)(f,{getResetKey:()=>n,errorComponent:s||mo,onCatch:(e,t)=>{if(ue(e))throw e.routeId??=r.routeId,e;c?.(e,t)},children:(0,W.jsx)(p,{fallback:e=>{if(e.routeId??=r.routeId,!l||e.routeId&&e.routeId!==r.routeId||!e.routeId&&!i.isRoot)throw e;return U.createElement(l,e)},children:u||r._displayPending?(0,W.jsx)(re,{fallback:o,children:(0,W.jsx)(ts,{matchId:t})}):(0,W.jsx)(ts,{matchId:t})})})})}),r.parentRouteId===`__root__`?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(es,{resetKey:n}),(e.options.scrollRestoration,null)]}):null]})}function es({resetKey:e}){let t=M(),n=U.useRef(void 0);return C(()=>{let e=t.latestLocation.href;(n.current===void 0||n.current!==e)&&(t.emit({type:`onRendered`,...Ma(t.stores.location.get(),t.stores.resolvedLocation.get())}),n.current=e)},[t.latestLocation.state.__TSR_key,e,t]),null}var ts=U.memo(function({matchId:e}){let t=M(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||x();let i=F(r,e=>e),a=i.routeId,o=t.routesById[a],s=U.useMemo(()=>{let e=(t.routesById[a].options.remountDeps??t.options.defaultRemountDeps)?.({routeId:a,loaderDeps:i.loaderDeps,params:i._strictParams,search:i._strictSearch});return e?JSON.stringify(e):void 0},[a,i.loaderDeps,i._strictParams,i._strictSearch,t.options.defaultRemountDeps,t.routesById]),c=U.useMemo(()=>{let e=o.options.component??t.options.defaultComponent;return e?(0,W.jsx)(e,{},s):(0,W.jsx)(ns,{})},[s,o.options.component,t.options.defaultComponent]);if(i._displayPending)throw n(i,`displayPendingPromise`);if(i._forcePending)throw n(i,`minPendingPromise`);if(i.status===`pending`){let e=o.options.pendingMinMs??t.options.defaultPendingMinMs;if(e){let n=t.getMatch(i.id);if(n&&!n._nonReactive.minPendingPromise){let t=_();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}throw n(i,`loadPromise`)}if(i.status===`notFound`)return ue(i.error)||x(),Zo(t,o,i.error);if(i.status===`redirected`)throw he(i.error)||x(),n(i,`loadPromise`);if(i.status===`error`)throw i.error;return c}),ns=U.memo(function(){let e=M(),t=U.useContext(de),n,r=!1,i;{let a=t?e.stores.matchStores.get(t):void 0;[n,r]=F(a,e=>[e?.routeId,e?.globalNotFound??!1]),i=F(e.stores.matchesId,e=>e[e.findIndex(e=>e===t)+1])}let a=n?e.routesById[n]:void 0,o=e.options.defaultPendingComponent?(0,W.jsx)(e.options.defaultPendingComponent,{}):null;if(r)return a||x(),Zo(e,a,void 0);if(!i)return null;let s=(0,W.jsx)(Qo,{matchId:i});return n===`__root__`?(0,W.jsx)(U.Suspense,{fallback:o,children:s}):s});function rs(){let e=M(),t=U.useRef({router:e,mounted:!1}),[n,r]=U.useState(!1),i=F(e.stores.isLoading,e=>e),a=F(e.stores.hasPending,e=>e),o=f(i),s=i||n||a,c=f(s),l=i||a,u=f(l);return e.startTransition=e=>{r(!0),U.startTransition(()=>{e(),r(!1)})},U.useEffect(()=>{let t=e.history.subscribe(e.load),n=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return w(e.latestLocation.publicHref)!==w(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),C(()=>{typeof window<`u`&&e.ssr||t.current.router===e&&t.current.mounted||(t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(e){console.error(e)}})())},[e]),C(()=>{o&&!i&&e.emit({type:`onLoad`,...Ma(e.stores.location.get(),e.stores.resolvedLocation.get())})},[o,e,i]),C(()=>{u&&!l&&e.emit({type:`onBeforeRouteMount`,...Ma(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,u,e]),C(()=>{if(c&&!s){let t=Ma(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),ko(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())})}},[s,c,e]),null}function is(){let e=M(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,W.jsx)(t,{}):null,r=(0,W.jsxs)(typeof document<`u`&&e.ssr?Xo:U.Suspense,{fallback:n,children:[(0,W.jsx)(rs,{}),(0,W.jsx)(as,{})]});return e.options.InnerWrap?(0,W.jsx)(e.options.InnerWrap,{children:r}):r}function as(){let e=M(),t=F(e.stores.firstId,e=>e),n=F(e.stores.loadedAt,e=>e),r=t?(0,W.jsx)(Qo,{matchId:t}):null;return(0,W.jsx)(de.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,W.jsx)(fo,{getResetKey:()=>n,errorComponent:mo,onCatch:void 0,children:r})})}var os=e=>({createMutableStore:Mo,createReadonlyStore:Mo,batch:ko}),ss=e=>new cs(e),cs=class extends Pa{constructor(e){super(e,os)}};function ls({router:e,children:t,...n}){v(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,W.jsx)(T.Provider,{value:e,children:t});return e.options.Wrap?(0,W.jsx)(e.options.Wrap,{children:r}):r}function us({router:e,...t}){return(0,W.jsx)(ls,{router:e,...t,children:(0,W.jsx)(is,{})})}function ds(e){let t=M(),n=(0,U.useRef)(void 0);return F(t.stores.location,r=>{let i=e?.select?e.select(r):r;if(e?.structuralSharing??t.options.defaultStructuralSharing){let e=s(n.current,i);return n.current=e,e}return i})}function fs(e,t){if(t)for(let[n,r]of Object.entries(t))n!==`suppressHydrationWarning`&&r!==void 0&&r!==!1&&e.setAttribute(n,typeof r==`boolean`?``:String(r))}function ps(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e;switch(e.tag){case`title`:return(0,W.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,W.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,W.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,W.jsx)(`style`,{...t,dangerouslySetInnerHTML:{__html:n},nonce:r});case`script`:return(0,W.jsx)(ms,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function ms({attrs:e,children:t,preventScriptHoist:n}){M();let r=ae(),i=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(U.useEffect(()=>{if(!i){if(e?.src){let t=(()=>{try{let t=document.baseURI||window.location.href;return new URL(e.src,t).href}catch{return e.src}})();for(let e of document.querySelectorAll(`script[src]`))if(e.src===t)return;let n=document.createElement(`script`);return fs(n,e),document.head.appendChild(n),()=>n.remove()}if(typeof t==`string`){let n=typeof e?.type==`string`?e.type:`text/javascript`,r=typeof e?.nonce==`string`?e.nonce:void 0;for(let e of document.querySelectorAll(`script:not([src])`)){if(!(e instanceof HTMLScriptElement))continue;let i=e.getAttribute(`type`)??`text/javascript`,a=e.getAttribute(`nonce`)??void 0;if(e.textContent===t&&i===n&&a===r)return}let i=document.createElement(`script`);return i.textContent=t,fs(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,i]),i&&typeof t==`string`)return(0,W.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!r){if(e?.src)return(0,W.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,W.jsx)(`script`,{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}var hs=e=>{let t=M(),n=t.options.ssr?.nonce,r=F(t.stores.matches,e=>e.map(e=>e.meta).filter(e=>e!==void 0),o),i=U.useMemo(()=>{let e=[],t={},i;for(let a=r.length-1;a>=0;a--){let o=r[a];for(let r=o.length-1;r>=0;r--){let a=o[r];if(a)if(a.title)i||={tag:`title`,children:a.title};else if(`script:ld+json`in a)try{let t=JSON.stringify(a[`script:ld+json`]);e.push({tag:`script`,attrs:{type:`application/ld+json`},children:h(t)})}catch{}else{let r=a.name??a.property;if(r){if(t[r])continue;t[r]=!0}e.push({tag:`meta`,attrs:{...a,nonce:n}})}}}return i&&e.push(i),n&&e.push({tag:`meta`,attrs:{property:`csp-nonce`,content:n}}),e.reverse(),e},[r,n]),a=F(t.stores.matches,e=>e.flatMap(e=>e.links??[]).filter(e=>e!==void 0).map(e=>({tag:`link`,attrs:{...e,nonce:n}})),o),s=F(t.stores.matches,r=>{let i=t.ssr?.manifest,a=[];return i?(r.forEach(t=>{i.routes[t.routeId]?.css?.forEach(t=>{let r=co(t);a.push({tag:`link`,attrs:{rel:`stylesheet`,...r,crossOrigin:io(e,`stylesheet`)??r.crossOrigin,suppressHydrationWarning:!0,nonce:n}})})}),i.inlineStyle&&a.push({tag:`style`,attrs:{...i.inlineStyle.attrs,nonce:n},children:i.inlineStyle.children,inlineCss:!0}),a):a},o),c=F(t.stores.matches,r=>{let i=[],a=t.ssr?.manifest;return a&&r.forEach(t=>{a.routes[t.routeId]?.preloads?.forEach(t=>{i.push({tag:`link`,attrs:{...oo(a,t,e),nonce:n}})})}),i},o),l=F(t.stores.matches,e=>e.flatMap(e=>e.styles??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`style`,attrs:{...t,nonce:n},children:e})),o),u=F(t.stores.matches,e=>e.flatMap(e=>e.headScripts??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`script`,attrs:{...t,nonce:n},children:e})),o),d=[];return so(d,i),d.push(...c),so(d,a),d.push(...s),so(d,l),so(d,u),d};function gs(e){let t=hs(e.assetCrossOrigin),n=M().options.ssr?.nonce;return(0,W.jsx)(W.Fragment,{children:t.map(e=>(0,U.createElement)(ps,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var _s=e((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-Tt&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),vs=e(((e,t)=>{t.exports=_s()})),ys=e((e=>{var t=vs(),n=r(),i=ve();function a(e){var t=`https://react.dev/errors/`+e;if(1re||(e.current=ne[re],ne[re]=null,re--)}function F(e,t){re++,ne[re]=e.current,e.current=t}var oe=ie(null),se=ie(null),I=ie(null),ce=ie(null);function le(e,t){switch(F(I,t),F(se,e),F(oe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ud(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ud(t),e=Wd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ae(oe),F(oe,e)}function ue(){ae(oe),ae(se),ae(I)}function de(e){e.memoizedState!==null&&F(ce,e);var t=oe.current,n=Wd(t,e.type);t!==n&&(F(se,e),F(oe,n))}function fe(e){se.current===e&&(ae(oe),ae(se)),ce.current===e&&(ae(ce),ep._currentValue=te)}var pe,me;function he(e){if(pe===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);pe=t&&t[1]||``,me=-1{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Lr=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Rr=new class extends Lr{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},zr={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Br=new class{#e=zr;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function Vr(e){setTimeout(e,0)}var Hr=typeof window>`u`||`Deno`in globalThis;function Ur(){}function Wr(e,t){return typeof e==`function`?e(t):e}function Gr(e){return typeof e==`number`&&e>=0&&e!==1/0}function Kr(e,t){return Math.max(e+(t||0)-Date.now(),0)}function qr(e,t){return typeof e==`function`?e(t):e}function Jr(e,t){return typeof e==`function`?e(t):e}function Yr(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==Zr(o,t.options))return!1}else if(!$r(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function Xr(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Qr(t.options.mutationKey)!==Qr(a))return!1}else if(!$r(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Zr(e,t){return(t?.queryKeyHashFn||Qr)(e)}function Qr(e){return JSON.stringify(e,(e,t)=>ii(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function $r(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>$r(e[n],t[n])):!1}var ei=Object.prototype.hasOwnProperty;function ti(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=ri(e)&&ri(t);if(!r&&!(ii(e)&&ii(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l{Br.setTimeout(t,e)})}function si(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:ti(e,t)}function ci(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function li(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ui=Symbol();function di(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===ui?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function fi(e,t){return typeof e==`function`?e(...t):!!e}function pi(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var mi=(()=>{let e=()=>Hr;return{isServer(){return e()},setIsServer(t){e=t}}})();function hi(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var gi=Vr;function _i(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=gi,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var vi=_i(),yi=new class extends Lr{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function bi(e){return Math.min(1e3*2**e,3e4)}function xi(e){return(e??`online`)===`online`?yi.isOnline():!0}var Si=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function Ci(e){let t=!1,n=0,r,i=hi(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new Si(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>Rr.isFocused()&&(e.networkMode===`always`||yi.isOnline())&&e.canRun(),u=()=>xi(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(mi.isServer()?0:3),o=e.retryDelay??bi,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&nl()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var wi=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Gr(this.gcTime)&&(this.#e=Br.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(mi.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(Br.clearTimeout(this.#e),this.#e=void 0)}};function Ti(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{pi(e,()=>t.signal,()=>n=!0)},u=di(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?li:ci;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?Di:Ei,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:Ei(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(ct.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function Ei(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Di(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Oi=class extends wi{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=ji(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=ji(this.options);e.data!==void 0&&(this.setState(Ai(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=si(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(Ur).catch(Ur):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>Jr(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ui||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>qr(e.options.staleTime,this)===`static`):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!Kr(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=di(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?Ti(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=Ci({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof Si&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof Si){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...ki(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...Ai(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),vi.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function ki(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:xi(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Ai(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function ji(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var Mi=class extends wi{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Ni(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=Ci({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),vi.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Ni(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Pi=class extends Lr{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new Mi({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=Fi(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=Fi(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Fi(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=Fi(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){vi.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Xr(t,e))}findAll(e={}){return this.getAll().filter(t=>Xr(e,t))}notify(e){vi.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return vi.batch(()=>Promise.all(e.map(e=>e.continue().catch(Ur))))}};function Fi(e){return e.options.scope?.id}var Ii=class extends Lr{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??Zr(r,t),a=this.get(i);return a||(a=new Oi({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){vi.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Yr(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Yr(e,t)):t}notify(e){vi.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){vi.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){vi.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Li=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Ii,this.#t=e.mutationCache||new Pi,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=Rr.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=yi.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(qr(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=Wr(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return vi.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;vi.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return vi.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=vi.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(Ur).catch(Ur)}invalidateQueries(e,t={}){return vi.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=vi.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(Ur)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(Ur)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(qr(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ur).catch(Ur)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ur).catch(Ur)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return yi.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(Qr(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{$r(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(Qr(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{$r(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=Zr(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===ui&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},U=n(r(),1),W=t(),Ri=U.createContext(void 0),zi=e=>{let t=U.useContext(Ri);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},Bi=({client:e,children:t})=>(U.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,W.jsx)(Ri.Provider,{value:e,children:t}));function Vi(e,t=String){let n=new URLSearchParams;for(let r in e){let i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function Hi(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function Ui(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=Hi(r):Array.isArray(t)?t.push(Hi(r)):n[e]=[t,Hi(r)]}return n}var Wi=Ki(JSON.parse),Gi=qi(JSON.stringify,JSON.parse);function Ki(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=Ui(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function qi(e,t){let n=typeof t==`function`;function r(r){if(typeof r==`object`&&r)try{return e(r)}catch{}else if(n&&typeof r==`string`)try{return t(r),e(r)}catch{}return r}return e=>{let t=Vi(e,r);return t?`?${t}`:``}}var Ji=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},Yi=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),Xi=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),Zi=(e,t,n=!0)=>{let r={...e.router.options.context??{}},i=n?t:t-1;for(let t=0;t<=i;t++){let n=e.matches[t];if(!n)continue;let i=e.router.getMatch(n.id);i&&Object.assign(r,i.__routeContext,i.__beforeLoadContext)}return r},Qi=(e,t)=>{if(!e.matches.length)return;let n=t.routeId,r=e.matches.findIndex(t=>t.routeId===e.router.routeTree.id),i=r>=0?r:0,a=n?e.matches.findIndex(e=>e.routeId===n):e.firstBadMatchIndex??e.matches.length-1;a<0&&(a=i);for(let t=a;t>=0;t--){let n=e.matches[t];if(e.router.looseRoutesById[n.routeId].options.notFoundComponent)return t}return n?a:i},$i=(e,t,n)=>{if(!(!he(n)&&!ue(n)))throw he(n)&&n.redirectHandled&&!n.options.reloadDocument?n:(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,r=>({...r,status:he(n)?`redirected`:ue(n)?`notFound`:r.status===`pending`?`success`:r.status,context:Zi(e,t.index),isFetching:!1,error:n})),ue(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),he(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n)},ea=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},ta=(e,t,n)=>{let r=Zi(e,n);e.updateMatch(t,e=>({...e,context:r}))},na=(e,t,n)=>{let{id:r,routeId:i}=e.matches[t],a=e.router.looseRoutesById[i];if(n instanceof Promise)throw n;e.firstBadMatchIndex??=t,$i(e,e.router.getMatch(r),n);try{a.options.onError?.(n)}catch(t){n=t,$i(e,e.router.getMatch(r),n)}e.updateMatch(r,e=>(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loadPromise?.resolve(),{...e,error:n,status:`error`,isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!he(n)&&!ue(n)&&(e.serialError??=n)},ra=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!Xi(e,t)&&(n.options.loader||n.options.beforeLoad||ma(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{Ji(e)},i);r._nonReactive.pendingTimeout=t}},ia=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;ra(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&$i(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},aa=(e,t,n,r)=>{let i=e.router.getMatch(t),a=i._nonReactive.loadPromise;i._nonReactive.loadPromise=_(()=>{a?.resolve(),a=void 0});let{paramsError:o,searchError:s}=i;o&&na(e,n,o),s&&na(e,n,s),ra(e,t,r,i);let c=new AbortController,l=!1,u=()=>{l||(l=!0,e.updateMatch(t,e=>({...e,isFetching:`beforeLoad`,fetchCount:e.fetchCount+1,abortController:c})))},d=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{u(),d()});return}i._nonReactive.beforeLoadPromise=_();let f={...Zi(e,n,!1),...i.__routeContext},{search:p,params:h,cause:g}=i,v=Xi(e,t),y={search:p,abortController:c,params:h,preload:v,context:f,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:v?`preload`:g,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},b=r=>{if(r===void 0){e.router.batch(()=>{u(),d()});return}(he(r)||ue(r))&&(u(),na(e,n,r)),e.router.batch(()=>{u(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),d()})},x;try{if(x=r.options.beforeLoad(y),m(x))return u(),x.catch(t=>{na(e,n,t)}).then(b)}catch(t){u(),na(e,n,t)}b(x)},oa=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>aa(e,n,t,i),s=()=>{if(ea(e,n))return;let t=ia(e,n,i);return m(t)?t.then(o):o()};return a()},sa=(e,t,n)=>{let r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;let i={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([e,t,n])=>({meta:e?.meta,links:e?.links,headScripts:e?.scripts,headers:n,scripts:t,styles:e?.styles}))},ca=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=Zi(e,r),d=Xi(e,n);return{params:o,deps:s,preload:!!d,parentMatchPromise:a,abortController:c,context:u,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),cause:d?`preload`:l,route:i,...e.router.options.additionalContext}},la=async(e,t,n,r,i)=>{try{let a=e.router.getMatch(n);try{pa(i);let o=i.options.loader,s=typeof o==`function`?o:o?.handler,c=s?.(ca(e,t,n,r,i)),l=!!s&&m(c);if((l||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||a._nonReactive.minPendingPromise)&&e.updateMatch(n,e=>({...e,isFetching:`loader`})),s){let t=l?await c:c;$i(e,e.router.getMatch(n),t),t!==void 0&&e.updateMatch(n,e=>({...e,loaderData:t}))}i._lazyPromise&&await i._lazyPromise;let u=a._nonReactive.minPendingPromise;u&&await u,i._componentsPromise&&await i._componentsPromise,e.updateMatch(n,t=>({...t,error:void 0,context:Zi(e,r),status:`success`,isFetching:!1,updatedAt:Date.now()}))}catch(t){let o=t;if(o?.name===`AbortError`){if(a.abortController.signal.aborted){a._nonReactive.loaderPromise?.resolve(),a._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,t=>({...t,status:t.status===`pending`?`success`:t.status,isFetching:!1,context:Zi(e,r)}));return}let s=a._nonReactive.minPendingPromise;s&&await s,ue(t)&&await i.options.notFoundComponent?.preload?.(),$i(e,e.router.getMatch(n),t);try{i.options.onError?.(t)}catch(t){o=t,$i(e,e.router.getMatch(n),t)}!he(o)&&!ue(o)&&await pa(i,[`errorComponent`]),e.updateMatch(n,t=>({...t,error:o,context:Zi(e,r),status:`error`,isFetching:!1}))}}catch(t){let r=e.router.getMatch(n);r&&(r._nonReactive.loaderPromise=void 0),$i(e,r,t)}},ua=async(e,t,n)=>{async function r(r,a,c,l,d){let f=Date.now()-a.updatedAt,p=r?d.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:d.options.staleTime??e.router.options.defaultStaleTime??0,m=d.options.shouldReload,h=typeof m==`function`?m(ca(e,t,i,n,d)):m,{status:g,invalid:_}=l,v=f>=p&&(!!e.forceStaleReload||l.cause===`enter`||c!==void 0&&c!==l.id);o=g===`success`&&(_||(h??v)),r&&d.options.preload===!1||(o&&!e.sync&&u?(s=!0,(async()=>{try{await la(e,t,i,n,d);let r=e.router.getMatch(i);r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loadPromise?.resolve(),r._nonReactive.loaderPromise=void 0,r._nonReactive.loadPromise=void 0}catch(t){he(t)&&await e.router.navigate(t.options)}})()):g!==`success`||o?await la(e,t,i,n,d):ta(e,i,n))}let{id:i,routeId:a}=e.matches[n],o=!1,s=!1,c=e.router.looseRoutesById[a],l=c.options.loader,u=((typeof l==`function`?void 0:l?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!==`blocking`;if(ea(e,i)){if(!e.router.getMatch(i))return e.matches[n];ta(e,i,n)}else{let t=e.router.getMatch(i),o=e.router.stores.matchesId.get()[n],s=(o&&e.router.stores.matchStores.get(o)||null)?.routeId===a?o:e.router.stores.matches.get().find(e=>e.routeId===a)?.id,l=Xi(e,i);if(t._nonReactive.loaderPromise){if(t.status===`success`&&!e.sync&&!t.preload&&u)return t;await t._nonReactive.loaderPromise;let n=e.router.getMatch(i),a=n._nonReactive.error||n.error;a&&$i(e,n,a),n.status===`pending`&&await r(l,t,s,n,c)}else{let n=l&&!e.router.stores.matchStores.has(i),a=e.router.getMatch(i);a._nonReactive.loaderPromise=_(),n!==a.preload&&e.updateMatch(i,e=>({...e,preload:n})),await r(l,t,s,a,c)}}let d=e.router.getMatch(i);s||(d._nonReactive.loaderPromise?.resolve(),d._nonReactive.loadPromise?.resolve(),d._nonReactive.loadPromise=void 0),clearTimeout(d._nonReactive.pendingTimeout),d._nonReactive.pendingTimeout=void 0,s||(d._nonReactive.loaderPromise=void 0),d._nonReactive.dehydrated=void 0;let f=s?d.isFetching:!1;return f!==d.isFetching||d.invalid!==!1?(e.updateMatch(i,e=>({...e,isFetching:f,invalid:!1})),e.router.getMatch(i)):d};async function da(e){let t=e,n=[];Yi(t.router)&&Ji(t);let r;for(let e=0;e({...e,...a?{status:`success`,globalNotFound:!0,error:void 0}:{status:`notFound`,error:l},isFetching:!1})),u=e,await pa(r,[`notFoundComponent`])}else if(!t.preload){let e=t.matches[0];e.globalNotFound||t.router.getMatch(e.id)?.globalNotFound&&t.updateMatch(e.id,e=>({...e,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){let e=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await pa(e,[`errorComponent`])}for(let e=0;e<=u;e++){let{id:n,routeId:r}=t.matches[e],i=t.router.looseRoutesById[r];try{let e=sa(t,n,i);if(e){let r=await e;t.updateMatch(n,e=>({...e,...r}))}}catch(e){console.error(`Error executing head for route ${r}:`,e)}}let d=Ji(t);if(m(d)&&await d,l)throw l;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function fa(e,t){let n=t.map(t=>e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function pa(e,t=ha){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);let n=()=>e._componentsLoaded?void 0:t===ha?(()=>{if(e._componentsPromise===void 0){let t=fa(e,ha);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():fa(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function ma(e){for(let t of ha)if(e.options[t]?.preload)return!0;return!1}var ha=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`];function ga(e){return{input:({url:t})=>{for(let n of e)t=va(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=ya(e[n],t);return t}}}function _a(e){let t=j(e.basepath),n=`/${t}`,r=e.caseSensitive?n:n.toLowerCase(),i=`${r}/`;return{input:({url:t})=>{let a=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return a===r?t.pathname=`/`:a.startsWith(i)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=k([`/`,t,e.pathname]),e)}}function va(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function ya(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function ba(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i,init:a}=t,o=new Map,s=new Map,c=new Map,l=n(e.status),u=n(e.loadedAt),d=n(e.isLoading),f=n(e.isTransitioning),p=n(e.location),m=n(e.resolvedLocation),h=n(e.statusCode),g=n(e.redirect),_=n([]),v=n([]),y=n([]),b=r(()=>xa(o,_.get())),x=r(()=>xa(s,v.get())),S=r(()=>xa(c,y.get())),C=r(()=>_.get()[0]),w=r(()=>_.get().some(e=>o.get(e)?.get().status===`pending`)),T=r(()=>({locationHref:p.get().href,resolvedLocationHref:m.get()?.href,status:l.get()})),E=r(()=>({status:l.get(),loadedAt:u.get(),isLoading:d.get(),isTransitioning:f.get(),matches:b.get(),location:p.get(),resolvedLocation:m.get(),statusCode:h.get(),redirect:g.get()})),D=se(64);function O(e){let t=D.get(e);return t||(t=r(()=>{let t=_.get();for(let n of t){let t=o.get(n);if(t&&t.routeId===e)return t.get()}}),D.set(e,t)),t}let k={status:l,loadedAt:u,isLoading:d,isTransitioning:f,location:p,resolvedLocation:m,statusCode:h,redirect:g,matchesId:_,pendingIds:v,cachedIds:y,matches:b,pendingMatches:x,cachedMatches:S,firstId:C,hasPending:w,matchRouteDeps:T,matchStores:o,pendingMatchStores:s,cachedMatchStores:c,__store:E,getRouteMatchStore:O,setMatches:A,setPending:j,setCached:M};A(e.matches),a?.(k);function A(e){Sa(e,o,_,n,i)}function j(e){Sa(e,s,v,n,i)}function M(e){Sa(e,c,y,n,i)}return k}function xa(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function Sa(e,t,n,r,i){let a=e.map(e=>e.id),o=new Set(a);i(()=>{for(let e of t.keys())o.has(e)||t.delete(e);for(let n of e){let e=t.get(n.id);if(!e){let e=r(n);e.routeId=n.routeId,t.set(n.id,e);continue}e.routeId=n.routeId,e.get()!==n&&e.set(n)}l(n.get(),a)||n.set(a)})}var Ca=`__TSR_index`,wa=`popstate`,Ta=`beforeunload`;function Ea(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=Aa(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[Ca];i=Da(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[Ca];i=Da(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[Ca]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function Da(e,t){t||={};let n=ja();return{...t,key:n,__TSR_key:n,[Ca]:e}}function Oa(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=e?.createHref??(e=>e),c=e?.parseLocation??(()=>Aa(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=ja();t.history.replaceState({[Ca]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_,v=()=>{g&&(C._ignoreSubscribers=!0,(g.isPush?t.history.pushState:t.history.replaceState)(g.state,``,g.href),C._ignoreSubscribers=!1,g=void 0,_=void 0,u=void 0)},y=(e,t,n)=>{let r=s(t);_||(u=l),l=Aa(t,n),g={href:r,state:n,isPush:g?.isPush||e===`push`},_||=Promise.resolve().then(()=>v())},b=e=>{l=c(),C.notify({type:e})},x=async()=>{if(f){f=!1;return}let e=c(),n=e.state[Ca]-l.state[Ca],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),C.notify(u);return}}}l=c(),C.notify(u)},S=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},C=Ea({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>y(`push`,e,t),replaceState:(e,t)=>y(`replace`,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(Ta,S,{capture:!0}),t.removeEventListener(wa,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(Ta,S,{capture:!0}),t.addEventListener(wa,x),t.history.pushState=function(...e){let r=n.apply(t.history,e);return C._ignoreSubscribers||b(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return C._ignoreSubscribers||b(`REPLACE`),n},C}function ka(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function Aa(e,t){let n=ka(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=ja();return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t||{[Ca]:0,key:a,__TSR_key:a}}}function ja(){return(Math.random()+1).toString(36).substring(7)}function Ma(e,t){let n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var Na=new WeakMap,Pa=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.routeBranchCache=new WeakMap,this.startTransition=e=>e(),this.update=e=>{let t=this.options,n=this.basepath??t?.basepath??`/`,r=this.basepath===void 0,i=t?.rewrite;if(this.options={...t,...e},this.isServer=this.options.isServer??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=P(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=Oa()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!==`null`?this.origin=window.origin:this.origin=`http://localhost`),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;this.resolvePathCache=se(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=ba(La(this.latestLocation),e),ro(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=j(o);t&&t!==`/`&&e.push(_a({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:ga(e),this.history&&this.updateLatestLocation(),a=!0}a&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<`u`&&`CSS`in window&&typeof window.CSS?.supports==`function`&&(this.isViewTransitionTypesSupported=window.CSS.supports(`selector(:active-view-transition-type(a))`))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=c(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&b(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{this.subscribers.forEach(t=>{t.eventType===e.type&&t.fn(e)})},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,state:a})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:N(e).path,external:!1,searchStr:o,search:le(t?.search,i),hash:N(r.slice(1)).path,state:s(t?.state,a)}}let o=new URL(i,this.origin),c=va(this.rewrite,o),l=this.options.parseSearch(c.search),u=this.options.stringifySearch(l);return c.search=u,{href:c.href.replace(c.origin,``),publicHref:i,pathname:N(c.pathname).path,external:!!this.rewrite&&c.origin!==this.origin,searchStr:u,search:le(t?.search,l),hash:N(c.hash.slice(1)).path,state:s(t?.state,a)}},r=n(e),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathWithBase=(e,t)=>te({base:e,to:t.includes(`//`)?D(t):t,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>za({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{let t=this.getMatch(e);t&&(t.abortController.abort(),clearTimeout(t._nonReactive.pendingTimeout),t._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(e=>{this.cancelMatch(e)}),this.stores.matchesId.get().forEach(e=>{if(this.stores.pendingMatchStores.has(e))return;let t=this.stores.matchStores.get(e)?.get();t&&(t.status===`pending`||t.isFetching===`loader`)&&this.cancelMatch(e)})},this.buildLocation=e=>{let t=(t={})=>{let n=t._fromLocation||this.pendingBuiltLocation||this.latestLocation,r=this.matchRoutesLightweight(n);t.from;let i=t.unsafeRelative===`path`?n.pathname:t.from??r.fullPath,a=t.to?`${t.to}`:void 0,o=r.search,c=Object.assign(Object.create(null),r.params),l=a?.charCodeAt(0)===47?`/`:this.resolvePathWithBase(i,`.`),u=a?this.resolvePathWithBase(l,a):l,d=t.params===!1||t.params===null?Object.create(null):(t.params??!0)===!0?c:Object.assign(c,g(t.params,c)),f=this.routesByPath[w(u)],p;if(f)p=this.getRouteBranch(f);else if(u.includes(`$`))p=[];else{let e=this.getMatchedRoutes(u);p=e.matchedRoutes,this.options.notFoundRoute&&(!e.foundRoute||e.foundRoute.path!==`/`&&e.routeParams[`**`])&&(p=[...p,this.options.notFoundRoute])}if(p.length&&v(d))for(let e of p){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(d,t(d))}catch{}}let m=e.leaveParams?u:N(O({path:u,params:d,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,h=o;if(e._includeValidateSearch&&this.options.search?.strict){let e={};p.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,Ra(t.options.validateSearch,{...e,...h}))}catch{}}),h=e}h=Ba({search:h,dest:t,destRoutes:p,_includeValidateSearch:e._includeValidateSearch}),h=le(o,h);let _=this.options.stringifySearch(h),y=t.hash===!0?n.hash:t.hash?g(t.hash,n.hash):void 0,b=y?`#${y}`:``,x=t.state===!0?n.state:t.state?g(t.state,n.state):{};x=s(n.state,x);let S=`${m}${_}${b}`,C,T,E=!1;if(this.rewrite){let e=new URL(S,this.origin),t=ya(this.rewrite,e);C=e.href.replace(e.origin,``),t.origin===this.origin?T=t.pathname+t.search+t.hash:(T=t.href,E=!0)}else C=ee(S),T=C;return{publicHref:T,href:C,pathname:m,search:h,searchStr:_,state:x,hash:y??``,external:E,unmaskOnReload:t.unmaskOnReload}},n=(n={},r)=>{let i=t(n),a=r?t(r):void 0;if(!a){let n=Object.create(null);if(this.options.routeMasks){let o=ce(i.pathname,this.processedTree);if(o){Object.assign(n,o.rawParams);let{from:i,params:s,...c}=o.route,l=s===!1||s===null?Object.create(null):(s??!0)===!0?n:Object.assign(n,g(s,n));r={from:e.from,...c,params:l},a=t(r)}}}return a&&(i.maskedLocation=a),i};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r,i=()=>{let e=[`key`,`__TSR_key`,`__TSR_index`,`__hashScrollIntoViewOptions`];e.forEach(e=>{n.state[e]=this.latestLocation.state[e]});let t=o(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},a=w(this.latestLocation.href)===w(n.href),s=this.commitLocationPromise;if(this.commitLocationPromise=_(()=>{s?.resolve(),s=void 0}),a&&i())this.load();else{let{maskedLocation:i,hashScrollIntoView:a,...o}=n;i&&(o={...i,state:{...i.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state.__hashScrollIntoViewOptions=a??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,r=n.replace?`REPLACE`:`PUSH`,this.history[r===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t})}return this._scroll.next=n.resetScroll??!0,this.history.subscribers.size||this.load(r?{action:{type:r}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,href:a,...o}={})=>{if(a){let t=this.history.location.state.__TSR_index,n=Aa(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=va(this.rewrite,r).pathname,o.search=this.options.parseSearch(n.search),o.hash=n.hash.slice(1)}let s=this.buildLocation({...o,_includeValidateSearch:!0});this.pendingBuiltLocation=s;let c=this.commitLocation({...s,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return Promise.resolve().then(()=>{this.pendingBuiltLocation===s&&(this.pendingBuiltLocation=void 0)}),c},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!t&&(t=!0),t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i});n??=t.publicHref,r??=t.publicHref}let t=!a&&r?r:n;if(d(t,this.protocolAllowlist))return Promise.resolve();if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return Promise.resolve()}return i.replace?window.location.replace(t):window.location.href=t,Promise.resolve()}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();let e=this.matchRoutes(this.latestLocation),t=this.stores.cachedMatches.get().filter(t=>!e.some(e=>e.id===t.id));this.batch(()=>{this.stores.status.set(`pending`),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(e),this.stores.setCached(t)})},this.load=async e=>{let t=e?.action?.type,n,r,i,a=this.stores.resolvedLocation.get()??this.stores.location.get();for(i=new Promise(o=>{this.startTransition(async()=>{try{this.beforeLoad(),t?Na.set(this.latestLocation,t):Na.delete(this.latestLocation);let n=this.latestLocation,r=Ma(n,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...r}),this.emit({type:`onBeforeLoad`,...r}),await da({router:this,sync:e?.sync,forceStaleReload:a.href===n.href,matches:this.stores.pendingMatches.get(),location:n,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let e=null,t=null,n=null,r=null;this.batch(()=>{let i=this.stores.pendingMatches.get(),a=i.length,o=this.stores.matches.get();e=a?o.filter(e=>!this.stores.pendingMatchStores.has(e.id)):null;let s=new Set;for(let e of this.stores.pendingMatchStores.values())e.routeId&&s.add(e.routeId);let c=new Set;for(let e of this.stores.matchStores.values())e.routeId&&c.add(e.routeId);t=a?o.filter(e=>!s.has(e.routeId)):null,n=a?i.filter(e=>!c.has(e.routeId)):null,r=a?i.filter(e=>c.has(e.routeId)):o,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),a&&(this.stores.setMatches(i),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...e.filter(e=>e.status!==`error`&&e.status!==`notFound`&&e.status!==`redirected`)]),this.clearExpiredCache())});for(let[e,i]of[[t,`onLeave`],[n,`onEnter`],[r,`onStay`]])if(e)for(let t of e)this.looseRoutesById[t.routeId].options[i]?.(t)})})}})}catch(e){he(e)?(n=e,this.navigate({...n.options,replace:!0,ignoreBlocker:!0})):ue(e)&&(r=e);let t=n?n.status:r?404:this.stores.matches.get().some(e=>e.status===`error`)?500:200;this.batch(()=>{this.stores.statusCode.set(t),this.stores.redirect.set(n)})}this.latestLoadPromise===i&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),o()})}),this.latestLoadPromise=i,await i;this.latestLoadPromise&&i!==this.latestLoadPromise;)await this.latestLoadPromise;let o;this.hasNotFoundMatch()?o=404:this.stores.matches.get().some(e=>e.status===`error`)&&(o=500),o!==void 0&&this.stores.statusCode.set(o)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document<`u`&&`startViewTransition`in document&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&this.isViewTransitionTypesSupported){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(Ma(r,i)):t.types;if(a===!1){e();return}n={update:e,types:a}}else n=e;document.startViewTransition(n)}else e()},this.updateMatch=(e,t)=>{this.startTransition(()=>{let n=this.stores.pendingMatchStores.get(e);if(n){n.set(t);return}let r=this.stores.matchStores.get(e);if(r){r.set(t);return}let i=this.stores.cachedMatchStores.get(e);if(i){let n=t(i.get());n.status===`redirected`?this.stores.cachedMatchStores.delete(e)&&this.stores.cachedIds.set(t=>t.filter(t=>t!==e)):i.set(n)}})},this.getMatch=e=>this.stores.cachedMatchStores.get(e)?.get()??this.stores.pendingMatchStores.get(e)?.get()??this.stores.matchStores.get(e)?.get(),this.invalidate=e=>{let t=t=>e?.filter?.(t)??!0?{...t,invalid:!0,...e?.forcePending||t.status===`error`||t.status===`notFound`?{status:`pending`,error:void 0}:void 0}:t;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(t)),this.stores.setCached(this.stores.cachedMatches.get().map(t)),this.stores.setPending(this.stores.pendingMatches.get().map(t))}),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>e.publicHref||`/`,this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href||e.options._builtLocation){let t=e.options._builtLocation??this.buildLocation(e.options),n=this.getParsedLocationHref(t);e.options.href=n,e.headers.set(`Location`,n)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set(`Location`,t)}}catch{}if(e.options.href&&!e.options._builtLocation&&d(e.options.href,this.protocolAllowlist))throw Error(`Redirect blocked: unsafe protocol`);return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=e?.filter;t===void 0?this.stores.setCached([]):this.stores.setCached(this.stores.cachedMatches.get().filter(e=>!t(e)))},this.clearExpiredCache=()=>{let e=Date.now();this.clearCache({filter:t=>{let n=this.looseRoutesById[t.routeId];if(!n.options.loader)return!0;let r=(t.preload?n.options.preloadGcTime??this.options.defaultPreloadGcTime:n.options.gcTime??this.options.defaultGcTime)??300*1e3;return t.status===`error`?!0:e-t.updatedAt>=r}})},this.loadRouteChunk=pa,this.preloadRoute=async e=>{let t=e._builtLocation??this.buildLocation(e),n=this.matchRoutes(t,{throwOnError:!0,preload:!0,dest:e}),r=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),i=new Set([...r,...this.stores.cachedIds.get()]),a=n.filter(e=>!i.has(e.id));if(a.length){let e=this.stores.cachedMatches.get();this.stores.setCached([...e,...a])}try{return n=await da({router:this,matches:n,location:t,preload:!0,updateMatch:(e,t)=>{r.has(e)?n=n.map(n=>n.id===e?t(n):n):this.updateMatch(e,t)}}),n}catch(e){if(he(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});ue(e)||console.error(e);return}},this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n);if(t?.pending&&this.stores.status.get()!==`pending`)return!1;let i=(t?.pending===void 0?!this.stores.isLoading.get():t.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),a=I(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!o(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?o(i.search,r.search,{partial:!0})?a.rawParams:!1:a.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(e=>e.status===`notFound`||e.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??Gi,parseSearch:e.parseSearch??Wi,protocolAllowlist:e.protocolAllowlist??u}),typeof document<`u`&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=oe(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){let n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParams:i}=n,{matchedRoutes:a}=n,o=!1;(r?r.path!==`/`&&i[`**`]:w(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let c=o?Ha(this.options.notFoundMode,a):void 0,l=Array(a.length),u=new Map;for(let e of this.stores.matchStores.values())e.routeId&&u.set(e.routeId,e.get());for(let n=0;nthis.navigate({...t,_fromLocation:e}),buildLocation:this.buildLocation,cause:n.cause,abortController:n.abortController,preload:!!n.preload,matches:l,routeId:r.id};n.__routeContext=r.options.context(t)??void 0}n.context={...a,...n.__routeContext,...n.__beforeLoadContext}}}return l}matchRoutesLightweight(e){let{matchedRoutes:t,routeParams:n}=this.getMatchedRoutes(e.pathname),r=y(t),i={...e.search};for(let e of t)try{Object.assign(i,Ra(e.options.validateSearch,i))}catch{}let a=y(this.stores.matchesId.get()),o=a&&this.stores.matchStores.get(a)?.get(),s=o&&o.routeId===r.id&&o.pathname===e.pathname,c;if(s)c=o.params;else{let e=Object.assign(Object.create(null),n);for(let n of t)try{Ua(n,e)}catch{}c=e}return{matchedRoutes:t,fullPath:r.fullPath,search:i,params:c}}},Fa=class extends Error{},Ia=class extends Error{};function La(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function Ra(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new Fa(`Async validation not supported`);if(n.issues)throw new Fa(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function za({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=w(e),a,o=E(i,n,!0);return o&&(a=o.route,Object.assign(r,o.rawParams)),{matchedRoutes:o?.branch||[t.__root__],routeParams:r,foundRoute:a}}function Ba({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return Va(n)(e,t,r??!1)}function Va(e){let t,n,r=[];for(let t of e){let e=t.options;`search`in e?e.search?.middlewares&&r.push(...e.search.middlewares):(e.preSearchFilters||e.postSearchFilters)&&r.push(({search:t,next:n})=>{let r=n(e.preSearchFilters?e.preSearchFilters.reduce((e,t)=>t(e),t):t);return e.postSearchFilters?e.postSearchFilters.reduce((e,t)=>t(e),r):r});let i=e.validateSearch;i&&r.push(({search:e,next:t,meta:r})=>{let a=t(e);if(n)try{let e=Ra(i,a);if(r&&e)for(let t in e)t in a||(r.defaulted||=new Map).set(t,e[t]);return{...a,...e}}catch{}return a})}let i=(e,n,a)=>{if(e>=r.length){if(!t.search)return{};if(t.search===!0)return n;let e=g(t.search,n);return a&&(a.explicit=e),e}return r[e]({search:n,next:(t,n)=>{if(n){let n=a||{};return{search:i(e+1,t,n),meta:n}}return i(e+1,t,a)},meta:a})};return function(e,r,a){return t=r,n=a,i(0,e)}}function Ha(e,t){if(e!==`root`)for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.children)return n.id}return fe}function Ua(e,t){let n=e.options.params?.parse??e.options.parseParams;if(n){let e=n(t);if(e===!1)throw Error(`Route params.parse returned false for a matched route`);Object.assign(t,e)}}function Wa(){try{return sessionStorage}catch{return}}var Ga=`tsr-scroll-restoration-v1_3`,Ka=Wa();function qa(){try{return JSON.parse(Ka?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}function Ja(){try{Ka?.setItem(Ga,JSON.stringify(Ya))}catch{}}var Ya=qa(),Xa=`data-scroll-restoration-id`,Za=e=>e.state.__TSR_key||e.href;function Qa(e){let t=e.getAttribute(Xa);if(t)return`[${Xa}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}var $a=!1,eo=`window`;function to(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function no(e){let t=[];for(let n of e){if(n===eo)continue;let e=to(n);e&&t.push(e)}return t}function ro(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.restoring=!0);let i=e.options.getScrollRestorationKey||Za,a=new Map,o=(e,t,n)=>{let r=a.get(e)||{};r.scrollX=t,r.scrollY=n,a.set(e,r)},s=e=>{if(!($a||!r.restoring))if(e.target===document)o(eo,scrollX,scrollY);else{let t=e.target;o(t,t.scrollLeft,t.scrollTop)}},c=e=>{if(!r.restoring)return;let t=Ya[e]||={};for(let[e,n]of a)e===eo?t[eo]=n:e.isConnected&&(t[Qa(e)]=n)};n&&!r.restoration&&(r.restoration=!0,$a=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,s,!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&c(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{c(i(e.stores.resolvedLocation.get()??e.stores.location.get())),Ja()})),!r.reset&&(r.reset=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.next,c;if(a.clear(),s||(r.next=!0),typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let l=i(t.toLocation),u=t.fromLocation&&i(t.fromLocation);if(r.restoring&&u&&u!==l){let e=Ya[u];if(e){let t=Ya[l];for(let n in e){if(n===eo){if(s)continue}else{let e=to(n);if(!e||s&&o&&(c??=no(o),c.includes(e)))continue}t||=Ya[l]={},t[n]??=e[n]}}}$a=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){let s=Na.get(t.toLocation),u=e&&i&&(s===`PUSH`||s===`REPLACE`),d=r.restoring?Ya[l]:void 0;if(d)for(let e in d){let{scrollX:t,scrollY:r}=d[e];if(e===eo){if(u)continue;scrollTo({top:r,left:t,behavior:n}),a=!0}else{let n=to(e);n&&(n.scrollLeft=t,n.scrollTop=r)}}if(!a&&!e){let e={top:0,left:0,behavior:n};if(scrollTo(e),o){c??=no(o);for(let t of c)t.scrollTo(e)}}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{$a=!1}}))}function io(e,t){if(e)return typeof e==`string`?e:e[t]}function ao(e){return e?.scriptFormat??`module`}function oo(e,t,n){let r=G(t),i=io(n,`script`)??r.crossOrigin;return{...ao(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,...i?{crossOrigin:i}:{}}}function G(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function so(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}let n=new Set;for(let r of t){let t=JSON.stringify(r);n.has(t)||(n.add(t),e.push(r))}}function co(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}var lo=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=fe:this.parentRoute||x();let r=n?fe:t?.path;r&&r!==`/`&&(r=A(r));let i=t?.id||r,a=n?fe:k([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),a!==`__root__`&&(a=k([`/`,a]));let o=a===`__root__`?`/`:k([this.parentRoute.fullPath,r]);this._path=r,this._id=a,this._fullPath=o,this._to=w(o)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>me({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},uo=class extends lo{constructor(e){super(e)}};function fo(e){let t=e.errorComponent??mo;return(0,W.jsx)(po,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?U.createElement(t,{error:n,reset:r}):e.children})}var po=class extends U.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function mo({error:e}){let[t,n]=U.useState(!1);return(0,W.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,W.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,W.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,W.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,W.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,W.jsx)(`div`,{children:(0,W.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,W.jsx)(`code`,{children:e.message}):null})}):null]})}var ho=(e=>(e[e.None=0]=`None`,e[e.Mutable=1]=`Mutable`,e[e.Watching=2]=`Watching`,e[e.RecursedCheck=4]=`RecursedCheck`,e[e.Recursed=8]=`Recursed`,e[e.Dirty=16]=`Dirty`,e[e.Pending=32]=`Pending`,e))(ho||{});function go({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function _o(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var vo=[],yo=0,{link:bo,unlink:xo,propagate:So,checkDirty:Co,shallowPropagate:wo}=go({update(e){return e._update()},notify(e){vo[Eo++]=e,e.flags&=~ho.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=ho.Mutable|ho.Dirty,Ao(e))}}),To=0,Eo=0,Do,Oo=0;function ko(e){try{++Oo,e()}finally{--Oo||jo()}}function Ao(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=xo(n,e)}function jo(){if(!(Oo>0)){for(;To{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=Do,o=t?.compare??Object.is;if(n)Do=i,++yo,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=ho.Mutable|ho.RecursedCheck);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{Do=a,n&&(i.flags&=~ho.RecursedCheck),Ao(i)}}};return n?(i.flags=ho.Mutable|ho.Dirty,i.get=function(){let e=i.flags;if(e&ho.Dirty||e&ho.Pending&&Co(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&wo(e)}}else e&ho.Pending&&(i.flags=e&~ho.Pending);return Do!==void 0&&bo(i,Do,yo),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(So(e),wo(e),jo())}},i}function No(e){let t=()=>{let t=Do;Do=n,++yo,n.depsTail=void 0,n.flags=ho.Watching|ho.RecursedCheck;try{return e()}finally{Do=t,n.flags&=~ho.RecursedCheck,Ao(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:ho.Watching|ho.RecursedCheck,notify(){let e=this.flags;e&ho.Dirty||e&ho.Pending&&Co(this.deps,this)?t():this.flags=ho.Watching},stop(){this.flags=ho.None,this.depsTail=void 0,Ao(this)}};return t(),n}var Po={get:()=>void 0,subscribe:()=>({unsubscribe:()=>{}})};function Fo(e){let t=M(),n=U.useContext(e.from?pe:de),r=e.from??n,i=r?e.from?t.stores.getRouteMatchStore(r):t.stores.matchStores.get(r):void 0,a=U.useRef(void 0);return F(i??Po,n=>{if((e.shouldThrow??!0)&&!n&&x(),n===void 0)return;let r=e.select?e.select(n):n;if(e.structuralSharing??t.options.defaultStructuralSharing){let e=s(a.current,r);return a.current=e,e}return r})}function Io(e){return Fo({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Lo(e){let{select:t,...n}=e;return Fo({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function Ro(e){return Fo({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function zo(e){return Fo({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function Bo(e){let t=M();return U.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function Vo(e){return Fo({...e,select:t=>e.select?e.select(t.context):t.context})}var Ho=class extends lo{constructor(e){super(e),this.useMatch=e=>Fo({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>Vo({...e,from:this.id}),this.useSearch=e=>zo({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>Ro({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>Lo({...e,from:this.id}),this.useLoaderData=e=>Io({...e,from:this.id}),this.useNavigate=()=>Bo({from:this.fullPath}),this.Link=U.forwardRef((e,t)=>(0,W.jsx)(ve,{ref:t,from:this.fullPath,...e}))}};function Uo(e){return new Ho(e)}function Wo(){return e=>Ko(e)}var Go=class extends uo{constructor(e){super(e),this.useMatch=e=>Fo({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>Vo({...e,from:this.id}),this.useSearch=e=>zo({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>Ro({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>Lo({...e,from:this.id}),this.useLoaderData=e=>Io({...e,from:this.id}),this.useNavigate=()=>Bo({from:this.fullPath}),this.Link=U.forwardRef((e,t)=>(0,W.jsx)(ve,{ref:t,from:this.fullPath,...e}))}};function Ko(e){return new Go(e)}function K(e){return new qo(e,{silent:!0}).createRoute}var qo=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=Uo(e);return t.isRoot=!1,t},this.silent=t?.silent}};function q(e,t){let n,r,i,a,o=()=>(n||=e().then(e=>{n=void 0,r=e[t??`default`]}).catch(e=>{if(i=e,p(i)&&i instanceof Error&&typeof window<`u`&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;sessionStorage.getItem(e)||(sessionStorage.setItem(e,`1`),a=!0)}}),n),s=function(e){if(a)throw window.location.reload(),new Promise(()=>{});if(i)throw i;if(!r)if(S)S(o());else throw o();return U.createElement(r,e)};return s.preload=o,s}function Jo(e){let t=M(),n=`not-found-${F(t.stores.location,e=>e.pathname)}-${F(t.stores.status,e=>e)}`;return(0,W.jsx)(fo,{getResetKey:()=>n,onCatch:(t,n)=>{if(ue(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(ue(t))return e.fallback?.(t);throw t},children:e.children})}function Yo(){return(0,W.jsx)(`p`,{children:`Not Found`})}function Xo(e){return(0,W.jsx)(W.Fragment,{children:e.children})}function Zo(e,t,n){return t.options.notFoundComponent?(0,W.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,W.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,W.jsx)(Yo,{})}var Qo=U.memo(function({matchId:e}){let t=M(),n=t.stores.matchStores.get(e);n||x();let r=F(t.stores.loadedAt,e=>e),i=F(n,e=>e);return(0,W.jsx)($o,{router:t,matchId:e,resetKey:r,matchState:U.useMemo(()=>{let e=i.routeId,n=t.routesById[e].parentRoute?.id;return{routeId:e,ssr:i.ssr,_displayPending:i._displayPending,parentRouteId:n}},[i._displayPending,i.routeId,i.ssr,t.routesById])})});function $o({router:e,matchId:t,resetKey:n,matchState:r}){let i=e.routesById[r.routeId],a=i.options.pendingComponent??e.options.defaultPendingComponent,o=a?(0,W.jsx)(a,{}):null,s=i.options.errorComponent??e.options.defaultErrorComponent,c=i.options.onCatch??e.options.defaultOnCatch,l=i.isRoot?i.options.notFoundComponent??e.options.notFoundRoute?.options.component:i.options.notFoundComponent,u=r.ssr===!1||r.ssr===`data-only`,d=(!i.isRoot||i.options.wrapInSuspense||u)&&(i.options.wrapInSuspense??a??(i.options.errorComponent?.preload||u))?U.Suspense:Xo,f=s?fo:Xo,p=l?Jo:Xo;return(0,W.jsxs)(i.isRoot?i.options.shellComponent??Xo:Xo,{children:[(0,W.jsx)(de.Provider,{value:t,children:(0,W.jsx)(d,{fallback:o,children:(0,W.jsx)(f,{getResetKey:()=>n,errorComponent:s||mo,onCatch:(e,t)=>{if(ue(e))throw e.routeId??=r.routeId,e;c?.(e,t)},children:(0,W.jsx)(p,{fallback:e=>{if(e.routeId??=r.routeId,!l||e.routeId&&e.routeId!==r.routeId||!e.routeId&&!i.isRoot)throw e;return U.createElement(l,e)},children:u||r._displayPending?(0,W.jsx)(re,{fallback:o,children:(0,W.jsx)(ts,{matchId:t})}):(0,W.jsx)(ts,{matchId:t})})})})}),r.parentRouteId===`__root__`?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(es,{resetKey:n}),(e.options.scrollRestoration,null)]}):null]})}function es({resetKey:e}){let t=M(),n=U.useRef(void 0);return C(()=>{let e=t.latestLocation.href;(n.current===void 0||n.current!==e)&&(t.emit({type:`onRendered`,...Ma(t.stores.location.get(),t.stores.resolvedLocation.get())}),n.current=e)},[t.latestLocation.state.__TSR_key,e,t]),null}var ts=U.memo(function({matchId:e}){let t=M(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||x();let i=F(r,e=>e),a=i.routeId,o=t.routesById[a],s=U.useMemo(()=>{let e=(t.routesById[a].options.remountDeps??t.options.defaultRemountDeps)?.({routeId:a,loaderDeps:i.loaderDeps,params:i._strictParams,search:i._strictSearch});return e?JSON.stringify(e):void 0},[a,i.loaderDeps,i._strictParams,i._strictSearch,t.options.defaultRemountDeps,t.routesById]),c=U.useMemo(()=>{let e=o.options.component??t.options.defaultComponent;return e?(0,W.jsx)(e,{},s):(0,W.jsx)(ns,{})},[s,o.options.component,t.options.defaultComponent]);if(i._displayPending)throw n(i,`displayPendingPromise`);if(i._forcePending)throw n(i,`minPendingPromise`);if(i.status===`pending`){let e=o.options.pendingMinMs??t.options.defaultPendingMinMs;if(e){let n=t.getMatch(i.id);if(n&&!n._nonReactive.minPendingPromise){let t=_();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}throw n(i,`loadPromise`)}if(i.status===`notFound`)return ue(i.error)||x(),Zo(t,o,i.error);if(i.status===`redirected`)throw he(i.error)||x(),n(i,`loadPromise`);if(i.status===`error`)throw i.error;return c}),ns=U.memo(function(){let e=M(),t=U.useContext(de),n,r=!1,i;{let a=t?e.stores.matchStores.get(t):void 0;[n,r]=F(a,e=>[e?.routeId,e?.globalNotFound??!1]),i=F(e.stores.matchesId,e=>e[e.findIndex(e=>e===t)+1])}let a=n?e.routesById[n]:void 0,o=e.options.defaultPendingComponent?(0,W.jsx)(e.options.defaultPendingComponent,{}):null;if(r)return a||x(),Zo(e,a,void 0);if(!i)return null;let s=(0,W.jsx)(Qo,{matchId:i});return n===`__root__`?(0,W.jsx)(U.Suspense,{fallback:o,children:s}):s});function rs(){let e=M(),t=U.useRef({router:e,mounted:!1}),[n,r]=U.useState(!1),i=F(e.stores.isLoading,e=>e),a=F(e.stores.hasPending,e=>e),o=f(i),s=i||n||a,c=f(s),l=i||a,u=f(l);return e.startTransition=e=>{r(!0),U.startTransition(()=>{e(),r(!1)})},U.useEffect(()=>{let t=e.history.subscribe(e.load),n=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return w(e.latestLocation.publicHref)!==w(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),C(()=>{typeof window<`u`&&e.ssr||t.current.router===e&&t.current.mounted||(t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(e){console.error(e)}})())},[e]),C(()=>{o&&!i&&e.emit({type:`onLoad`,...Ma(e.stores.location.get(),e.stores.resolvedLocation.get())})},[o,e,i]),C(()=>{u&&!l&&e.emit({type:`onBeforeRouteMount`,...Ma(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,u,e]),C(()=>{if(c&&!s){let t=Ma(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),ko(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())})}},[s,c,e]),null}function is(){let e=M(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,W.jsx)(t,{}):null,r=(0,W.jsxs)(typeof document<`u`&&e.ssr?Xo:U.Suspense,{fallback:n,children:[(0,W.jsx)(rs,{}),(0,W.jsx)(as,{})]});return e.options.InnerWrap?(0,W.jsx)(e.options.InnerWrap,{children:r}):r}function as(){let e=M(),t=F(e.stores.firstId,e=>e),n=F(e.stores.loadedAt,e=>e),r=t?(0,W.jsx)(Qo,{matchId:t}):null;return(0,W.jsx)(de.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,W.jsx)(fo,{getResetKey:()=>n,errorComponent:mo,onCatch:void 0,children:r})})}var os=e=>({createMutableStore:Mo,createReadonlyStore:Mo,batch:ko}),ss=e=>new cs(e),cs=class extends Pa{constructor(e){super(e,os)}};function ls({router:e,children:t,...n}){v(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,W.jsx)(T.Provider,{value:e,children:t});return e.options.Wrap?(0,W.jsx)(e.options.Wrap,{children:r}):r}function us({router:e,...t}){return(0,W.jsx)(ls,{router:e,...t,children:(0,W.jsx)(is,{})})}function ds(e){let t=M(),n=(0,U.useRef)(void 0);return F(t.stores.location,r=>{let i=e?.select?e.select(r):r;if(e?.structuralSharing??t.options.defaultStructuralSharing){let e=s(n.current,i);return n.current=e,e}return i})}function fs(e,t){if(t)for(let[n,r]of Object.entries(t))n!==`suppressHydrationWarning`&&r!==void 0&&r!==!1&&e.setAttribute(n,typeof r==`boolean`?``:String(r))}function ps(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e;switch(e.tag){case`title`:return(0,W.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,W.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,W.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,W.jsx)(`style`,{...t,dangerouslySetInnerHTML:{__html:n},nonce:r});case`script`:return(0,W.jsx)(ms,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function ms({attrs:e,children:t,preventScriptHoist:n}){M();let r=ae(),i=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(U.useEffect(()=>{if(!i){if(e?.src){let t=(()=>{try{let t=document.baseURI||window.location.href;return new URL(e.src,t).href}catch{return e.src}})();for(let e of document.querySelectorAll(`script[src]`))if(e.src===t)return;let n=document.createElement(`script`);return fs(n,e),document.head.appendChild(n),()=>n.remove()}if(typeof t==`string`){let n=typeof e?.type==`string`?e.type:`text/javascript`,r=typeof e?.nonce==`string`?e.nonce:void 0;for(let e of document.querySelectorAll(`script:not([src])`)){if(!(e instanceof HTMLScriptElement))continue;let i=e.getAttribute(`type`)??`text/javascript`,a=e.getAttribute(`nonce`)??void 0;if(e.textContent===t&&i===n&&a===r)return}let i=document.createElement(`script`);return i.textContent=t,fs(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,i]),i&&typeof t==`string`)return(0,W.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!r){if(e?.src)return(0,W.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,W.jsx)(`script`,{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}var hs=e=>{let t=M(),n=t.options.ssr?.nonce,r=F(t.stores.matches,e=>e.map(e=>e.meta).filter(e=>e!==void 0),o),i=U.useMemo(()=>{let e=[],t={},i;for(let a=r.length-1;a>=0;a--){let o=r[a];for(let r=o.length-1;r>=0;r--){let a=o[r];if(a)if(a.title)i||={tag:`title`,children:a.title};else if(`script:ld+json`in a)try{let t=JSON.stringify(a[`script:ld+json`]);e.push({tag:`script`,attrs:{type:`application/ld+json`},children:h(t)})}catch{}else{let r=a.name??a.property;if(r){if(t[r])continue;t[r]=!0}e.push({tag:`meta`,attrs:{...a,nonce:n}})}}}return i&&e.push(i),n&&e.push({tag:`meta`,attrs:{property:`csp-nonce`,content:n}}),e.reverse(),e},[r,n]),a=F(t.stores.matches,e=>e.flatMap(e=>e.links??[]).filter(e=>e!==void 0).map(e=>({tag:`link`,attrs:{...e,nonce:n}})),o),s=F(t.stores.matches,r=>{let i=t.ssr?.manifest,a=[];return i?(r.forEach(t=>{i.routes[t.routeId]?.css?.forEach(t=>{let r=co(t);a.push({tag:`link`,attrs:{rel:`stylesheet`,...r,crossOrigin:io(e,`stylesheet`)??r.crossOrigin,suppressHydrationWarning:!0,nonce:n}})})}),i.inlineStyle&&a.push({tag:`style`,attrs:{...i.inlineStyle.attrs,nonce:n},children:i.inlineStyle.children,inlineCss:!0}),a):a},o),c=F(t.stores.matches,r=>{let i=[],a=t.ssr?.manifest;return a&&r.forEach(t=>{a.routes[t.routeId]?.preloads?.forEach(t=>{i.push({tag:`link`,attrs:{...oo(a,t,e),nonce:n}})})}),i},o),l=F(t.stores.matches,e=>e.flatMap(e=>e.styles??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`style`,attrs:{...t,nonce:n},children:e})),o),u=F(t.stores.matches,e=>e.flatMap(e=>e.headScripts??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`script`,attrs:{...t,nonce:n},children:e})),o),d=[];return so(d,i),d.push(...c),so(d,a),d.push(...s),so(d,l),so(d,u),d};function gs(e){let t=hs(e.assetCrossOrigin),n=M().options.ssr?.nonce;return(0,W.jsx)(W.Fragment,{children:t.map(e=>(0,U.createElement)(ps,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var _s=e((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-Tt&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),vs=e(((e,t)=>{t.exports=_s()})),ys=e((e=>{var t=vs(),n=r(),i=ft();function a(e){var t=`https://react.dev/errors/`+e;if(1re||(e.current=ne[re],ne[re]=null,re--)}function F(e,t){re++,ne[re]=e.current,e.current=t}var oe=ie(null),se=ie(null),I=ie(null),ce=ie(null);function le(e,t){switch(F(I,t),F(se,e),F(oe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ud(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ud(t),e=Wd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ae(oe),F(oe,e)}function ue(){ae(oe),ae(se),ae(I)}function de(e){e.memoizedState!==null&&F(ce,e);var t=oe.current,n=Wd(t,e.type);t!==n&&(F(se,e),F(oe,n))}function fe(e){se.current===e&&(ae(oe),ae(se)),ce.current===e&&(ae(ce),ep._currentValue=te)}var pe,me;function he(e){if(pe===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);pe=t&&t[1]||``,me=-1)`:-1i||c[r]!==l[i]){var u=` -`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{ge=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?he(n):``}function ye(e,t){switch(e.tag){case 26:case 27:case 5:return he(e.type);case 16:return he(`Lazy`);case 13:return e.child!==t&&t!==null?he(`Suspense Fallback`):he(`Suspense`);case 19:return he(`SuspenseList`);case 0:case 15:return _e(e.type,!1);case 11:return _e(e.type.render,!1);case 1:return _e(e.type,!0);case 31:return he(`Activity`);default:return``}}function be(e){try{var t=``,n=null;do t+=ye(e,n),n=e,e=e.return;while(e);return t}catch(e){return` +`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{ge=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?he(n):``}function ve(e,t){switch(e.tag){case 26:case 27:case 5:return he(e.type);case 16:return he(`Lazy`);case 13:return e.child!==t&&t!==null?he(`Suspense Fallback`):he(`Suspense`);case 19:return he(`SuspenseList`);case 0:case 15:return _e(e.type,!1);case 11:return _e(e.type.render,!1);case 1:return _e(e.type,!0);case 31:return he(`Activity`);default:return``}}function ye(e){try{var t=``,n=null;do t+=ve(e,n),n=e,e=e.return;while(e);return t}catch(e){return` Error generating stack: `+e.message+` -`+e.stack}}var xe=Object.prototype.hasOwnProperty,Se=t.unstable_scheduleCallback,Ce=t.unstable_cancelCallback,we=t.unstable_shouldYield,Te=t.unstable_requestPaint,Ee=t.unstable_now,De=t.unstable_getCurrentPriorityLevel,Oe=t.unstable_ImmediatePriority,ke=t.unstable_UserBlockingPriority,Ae=t.unstable_NormalPriority,je=t.unstable_LowPriority,Me=t.unstable_IdlePriority,Ne=t.log,Pe=t.unstable_setDisableYieldValue,Fe=null,Ie=null;function Le(e){if(typeof Ne==`function`&&Pe(e),Ie&&typeof Ie.setStrictMode==`function`)try{Ie.setStrictMode(Fe,e)}catch{}}var Re=Math.clz32?Math.clz32:Ve,ze=Math.log,Be=Math.LN2;function Ve(e){return e>>>=0,e===0?32:31-(ze(e)/Be|0)|0}var He=256,Ue=262144,We=4194304;function Ge(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ke(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ge(n))):i=Ge(o):i=Ge(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ge(n))):i=Ge(o)):i=Ge(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function qe(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Je(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ye(){var e=We;return We<<=1,!(We&62914560)&&(We=4194304),e}function Xe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ze(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Qe(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0`u`||window.document===void 0||window.document.createElement===void 0),dn=!1;if(un)try{var fn={};Object.defineProperty(fn,"passive",{get:function(){dn=!0}}),window.addEventListener(`test`,fn,fn),window.removeEventListener(`test`,fn,fn)}catch{dn=!1}var pn=null,mn=null,hn=null;function gn(){if(hn)return hn;var e,t=mn,n=t.length,r,i=`value`in pn?pn.value:pn.textContent,a=i.length;for(e=0;e=Gn),Jn=` `,Yn=!1;function Xn(e,t){switch(e){case`keyup`:return Un.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Zn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Qn=!1;function $n(e,t){switch(e){case`compositionend`:return Zn(t);case`keypress`:return t.which===32?(Yn=!0,Jn):null;case`textInput`:return e=t.data,e===Jn&&Yn?null:e;default:return null}}function er(e,t){if(Qn)return e===`compositionend`||!Wn&&Xn(e,t)?(e=gn(),hn=mn=pn=null,Qn=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=br(n)}}function Sr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Sr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Cr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Lt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Lt(e.document)}return t}function wr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Tr=un&&`documentMode`in document&&11>=document.documentMode,Er=null,Dr=null,Or=null,kr=!1;function Ar(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;kr||Er==null||Er!==Lt(r)||(r=Er,`selectionStart`in r&&wr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Or&&yr(Or,r)||(Or=r,r=Dd(Dr,`onSelect`),0>=o,i-=o,xi=1<<32-Re(t)+i|n<h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Ai&&Ci(i,h),l;if(d===null){for(;hg?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),Ai&&Ci(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Ai&&Ci(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),Ai&&Ci(i,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===_&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case h:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===_){if(r.tag===7){n(e,r.sibling),c=i(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===E&&Sa(l)===r.type){n(e,r.sibling),c=i(r,o.props),ka(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===_?(c=ci(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=si(o.type,o.key,o.props,null,e.mode,c),ka(c,o),c.return=e,e=c)}return s(e);case g:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=i(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=di(o,e.mode,c),c.return=e,e=c}return s(e);case E:return o=Sa(o),b(e,r,o,c)}if(ee(o))return v(e,r,o,c);if(A(o)){if(l=A(o),typeof l!=`function`)throw Error(a(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Oa(o),c);if(o.$$typeof===x)return b(e,r,Xi(e,o),c);Aa(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,o),c.return=e,e=c):(n(e,r),c=li(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Da=0;var i=b(e,t,n,r);return Ea=null,i}catch(t){if(t===ga||t===va)throw t;var a=ri(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ma=ja(!0),Na=ja(!1),Pa=!1;function Fa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ia(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function La(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ra(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,J&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ei(e),$r(e,null,n),t}return Xr(e,r,t,n),ei(e)}function za(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,et(e,n)}}function Ba(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Va=!1;function Ha(){if(Va){var e=sa;if(e!==null)throw e}}function Ua(e,t,n,r){Va=!1;var i=e.updateQueue;Pa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,m=f!==s.lane;if(m?(Rl&f)===f:(r&f)===f){f!==0&&f===oa&&(Va=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=p({},d,f);break a;case 2:Pa=!0}}f=s.callback,f!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[f]:m.push(f))}else m={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Kl|=o,e.lanes=o,e.memoizedState=d}}function Wa(e,t){if(typeof e!=`function`)throw Error(a(191,e));e.call(t)}function Ga(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=N.T,s={};N.T=s,As(e,!1,t,n);try{var c=i(),l=N.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?ks(e,t,ua(c,r),mu(e)):ks(e,t,r,mu(e))}catch(n){ks(e,t,{then:function(){},status:`rejected`,reason:n},mu())}finally{P.p=a,o!==null&&s.types!==null&&(o.types=s.types),N.T=o}}function ys(){}function bs(e,t,n,r){if(e.tag!==5)throw Error(a(476));var i=xs(e).queue;_s(e,i,t,te,n===null?ys:function(){return Ss(e),n(r)})}function xs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mo,lastRenderedState:te},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ss(e){var t=xs(e);t.next===null&&(t=e.alternate.memoizedState),ks(e,t.next.queue,{},mu())}function Cs(){return Yi(ep)}function ws(){return Do().memoizedState}function Ts(){return Do().memoizedState}function Es(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=mu();e=La(n);var r=Ra(t,e,n);r!==null&&(gu(r,t,n),za(r,t,n)),t={cache:na()},e.payload=t;return}t=t.return}}function Ds(e,t,n){var r=mu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},js(e)?Ms(t,n):(n=Zr(e,t,n,r),n!==null&&(gu(n,e,r),Ns(n,t,r)))}function Os(e,t,n){ks(e,t,n,mu())}function ks(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(js(e))Ms(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,vr(s,o))return Xr(e,t,i,0),Ll===null&&Yr(),!1}catch{}if(n=Zr(e,t,i,r),n!==null)return gu(n,e,r),Ns(n,t,r),!0}return!1}function As(e,t,n,r){if(r={lane:2,revertLane:fd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},js(e)){if(t)throw Error(a(479))}else t=Zr(e,n,r,2),t!==null&&gu(t,e,2)}function js(e){var t=e.alternate;return e===G||t!==null&&t===G}function Ms(e,t){uo=lo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ns(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,et(e,n)}}var Ps={readContext:Yi,use:Ao,useCallback:_o,useContext:_o,useEffect:_o,useImperativeHandle:_o,useLayoutEffect:_o,useInsertionEffect:_o,useMemo:_o,useReducer:_o,useRef:_o,useState:_o,useDebugValue:_o,useDeferredValue:_o,useTransition:_o,useSyncExternalStore:_o,useId:_o,useHostTransitionStatus:_o,useFormState:_o,useActionState:_o,useOptimistic:_o,useMemoCache:_o,useCacheRefresh:_o};Ps.useEffectEvent=_o;var Fs={readContext:Yi,use:Ao,useCallback:function(e,t){return Eo().memoizedState=[e,t===void 0?null:t],e},useContext:Yi,useEffect:is,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ns(4194308,4,us.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ns(4194308,4,e,t)},useInsertionEffect:function(e,t){ns(4,2,e,t)},useMemo:function(e,t){var n=Eo();t=t===void 0?null:t;var r=e();if(fo){Le(!0);try{e()}finally{Le(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Eo();if(n!==void 0){var i=n(t);if(fo){Le(!0);try{n(t)}finally{Le(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ds.bind(null,G,e),[r.memoizedState,e]},useRef:function(e){var t=Eo();return e={current:e},t.memoizedState=e},useState:function(e){e=Ho(e);var t=e.queue,n=Os.bind(null,G,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:fs,useDeferredValue:function(e,t){return hs(Eo(),e,t)},useTransition:function(){var e=Ho(!1);return e=_s.bind(null,G,e.queue,!0,!1),Eo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=G,i=Eo();if(Ai){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),Ll===null)throw Error(a(349));Rl&127||Lo(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,is(zo.bind(null,r,o,e),[e]),r.flags|=2048,es(9,{destroy:void 0},Ro.bind(null,r,o,n,t),null),n},useId:function(){var e=Eo(),t=Ll.identifierPrefix;if(Ai){var n=Si,r=xi;n=(r&~(1<<32-Re(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=po++,0<\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(i,{is:r.is}):s.createElement(i)}}o[st]=t,o[ct]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Id(o,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&kc(t)}}return Pc(t),Ac(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&kc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(a(166));if(e=I.current,Li(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Oi,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[st]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Nd(e.nodeValue,n)),e||Pi(t,!0)}else e=Hd(e).createTextNode(r),e[st]=t,t.stateNode=e}return Pc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Li(t),n!==null){if(e===null){if(!r)throw Error(a(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(557));e[st]=t}else U(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Pc(t),e=!1}else n=W(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(ro(t),t):(ro(t),null);if(t.flags&128)throw Error(a(558))}return Pc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Li(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(a(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(a(317));i[st]=t}else U(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Pc(t),i=!1}else i=W(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(ro(t),t):(ro(t),null)}return ro(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Mc(t,t.updateQueue),Pc(t),null);case 4:return ue(),e===null&&Cd(t.stateNode.containerInfo),Pc(t),null;case 10:return Ui(t.type),Pc(t),null;case 19:if(ae(io),r=t.memoizedState,r===null)return Pc(t),null;if(i=(t.flags&128)!=0,o=r.rendering,o===null)if(i)Nc(r,!1);else{if(Gl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ao(e),o!==null){for(t.flags|=128,Nc(r,!1),e=o.updateQueue,t.updateQueue=e,Mc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)oi(n,e),n=n.sibling;return F(io,io.current&1|2),Ai&&Ci(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ee()>nu&&(t.flags|=128,i=!0,Nc(r,!1),t.lanes=4194304)}else{if(!i)if(e=ao(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Mc(t,e),Nc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Ai)return Pc(t),null}else 2*Ee()-r.renderingStartTime>nu&&n!==536870912&&(t.flags|=128,i=!0,Nc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Pc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ee(),e.sibling=null,n=io.current,F(io,i?n&1|2:n&1),Ai&&Ci(t,r.treeForkCount),e);case 22:case 23:return ro(t),Xa(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Pc(t),t.subtreeFlags&6&&(t.flags|=8192)):Pc(t),n=t.updateQueue,n!==null&&Mc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&ae(fa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ui(ta),Pc(t),null;case 25:return null;case 30:return null}throw Error(a(156,t.tag))}function Ic(e,t){switch(Ei(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ui(ta),ue(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return fe(t),null;case 31:if(t.memoizedState!==null){if(ro(t),t.alternate===null)throw Error(a(340));U()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ro(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));U()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ae(io),null;case 4:return ue(),null;case 10:return Ui(t.type),null;case 22:case 23:return ro(t),Xa(),e!==null&&ae(fa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ui(ta),null;case 25:return null;default:return null}}function Lc(e,t){switch(Ei(t),t.tag){case 3:Ui(ta),ue();break;case 26:case 27:case 5:fe(t);break;case 4:ue();break;case 31:t.memoizedState!==null&&ro(t);break;case 13:ro(t);break;case 19:ae(io);break;case 10:Ui(t.type);break;case 22:case 23:ro(t),Xa(),e!==null&&ae(fa);break;case 24:Ui(ta)}}function Rc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Ku(t,t.return,e)}}function zc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Ku(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Ku(t,t.return,e)}}function Bc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ga(t,n)}catch(t){Ku(e,e.return,t)}}}function Vc(e,t,n){n.props=Hs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Ku(e,t,n)}}function Hc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Ku(e,t,n)}}function Uc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Ku(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Ku(e,t,n)}else n.current=null}function Wc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Ku(e,e.return,t)}}function Gc(e,t,n){try{var r=e.stateNode;Ld(r,e.type,n,t),r[ct]=t}catch(t){Ku(e,e.return,t)}}function Kc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&$d(e.type)||e.tag===4}function qc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Kc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&$d(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Jc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=en));else if(r!==4&&(r===27&&$d(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Jc(e,t,n),e=e.sibling;e!==null;)Jc(e,t,n),e=e.sibling}function Yc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&$d(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Yc(e,t,n),e=e.sibling;e!==null;)Yc(e,t,n),e=e.sibling}function Xc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Id(t,r,n),t[st]=e,t[ct]=n}catch(t){Ku(e,e.return,t)}}var Zc=!1,Qc=!1,$c=!1,el=typeof WeakSet==`function`?WeakSet:Set,tl=null;function nl(e,t){if(e=e.containerInfo,Bd=lp,e=Cr(e),wr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(c=s+i),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===i&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Vd={focusedElem:e,selectionRange:n},lp=!1,tl=t;tl!==null;)if(t=tl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,tl=e;else for(;tl!==null;){switch(t=tl,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n title`))),Id(o,r,n),o[st]=e,bt(o),r=o;break a;case`link`:var s=Uf(`link`,`href`,i).get(r+(n.href||``));if(s){for(var c=0;cg&&(o=g,g=h,h=o);var _=xr(s,h),v=xr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,N.T=null,n=uu,uu=null;var o=ou,s=cu;if(au=0,su=ou=null,cu=0,J&6)throw Error(a(331));var c=J;if(J|=4,Ml(o.current),wl(o,o.current,s,n),J=c,od(0,!1),Ie&&typeof Ie.onPostCommitFiberRoot==`function`)try{Ie.onPostCommitFiberRoot(Fe,o)}catch{}return!0}finally{P.p=i,N.T=r,Hu(e,t)}}function Gu(e,t,n){t=pi(n,t),t=Js(e.stateNode,t,2),e=Ra(e,t,2),e!==null&&(Ze(e,2),ad(e))}function Ku(e,t,n){if(e.tag===3)Gu(e,e,n);else for(;t!==null;){if(t.tag===3){Gu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(iu===null||!iu.has(r))){e=pi(n,e),n=Ys(2),r=Ra(t,n,2),r!==null&&(Xs(n,r,t,e),Ze(r,2),ad(r));break}}t=t.return}}function qu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Il;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Ul=!0,i.add(n),e=Ju.bind(null,e,t,n),t.then(e,e))}function Ju(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ll===e&&(Rl&n)===n&&(Gl===4||Gl===3&&(Rl&62914560)===Rl&&300>Ee()-eu?!(J&2)&&Cu(e,0):Jl|=n,Xl===Rl&&(Xl=0)),ad(e)}function Yu(e,t){t===0&&(t=Ye()),e=Qr(e,t),e!==null&&(Ze(e,t),ad(e))}function Xu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Yu(e,n)}function Zu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(a(314))}r!==null&&r.delete(t),Yu(e,n)}function Qu(e,t){return Se(e,t)}var $u=null,ed=null,td=!1,nd=!1,rd=!1,id=0;function ad(e){e!==ed&&e.next===null&&(ed===null?$u=ed=e:ed=ed.next=e),nd=!0,td||(td=!0,dd())}function od(e,t){if(!rd&&nd){rd=!0;do for(var n=!1,r=$u;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Re(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ud(r,a))}else a=Rl,a=Ke(r,r===Ll?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||qe(r,a)||(n=!0,ud(r,a));r=r.next}while(n);rd=!1}}function X(){sd()}function sd(){nd=td=!1;var e=0;id!==0&&qd()&&(e=id);for(var t=Ee(),n=null,r=$u;r!==null;){var i=r.next,a=cd(r,t);a===0?(r.next=null,n===null?$u=i:n.next=i,i===null&&(ed=n)):(n=r,(e!==0||a&3)&&(nd=!0)),r=i}au!==0&&au!==5||od(e,!1),id!==0&&(id=0)}function cd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&Rd(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function Cf(e,t,n){var r=Sf;if(r&&typeof t==`string`&&t){var i=zt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),_f.has(i)||(_f.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Id(t,`link`,e),bt(t),r.head.appendChild(t)))}}function wf(e){yf.D(e),Cf(`dns-prefetch`,e,null)}function Tf(e,t){yf.C(e,t),Cf(`preconnect`,e,t)}function Ef(e,t,n){yf.L(e,t,n);var r=Sf;if(r&&e&&t){var i=`link[rel="preload"][as="`+zt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+zt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+zt(n.imageSizes)+`"]`)):i+=`[href="`+zt(e)+`"]`;var a=i;switch(t){case`style`:a=Mf(e);break;case`script`:a=If(e)}gf.has(a)||(e=p({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),gf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Nf(a))||t===`script`&&r.querySelector(Lf(a))||(t=r.createElement(`link`),Id(t,`link`,e),bt(t),r.head.appendChild(t)))}}function Df(e,t){yf.m(e,t);var n=Sf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+zt(r)+`"][href="`+zt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=If(e)}if(!gf.has(a)&&(e=p({rel:`modulepreload`,href:e},t),gf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Lf(a)))return}r=n.createElement(`link`),Id(r,`link`,e),bt(r),n.head.appendChild(r)}}}function Of(e,t,n){yf.S(e,t,n);var r=Sf;if(r&&e){var i=yt(r).hoistableStyles,a=Mf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Nf(a)))s.loading=5;else{e=p({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=gf.get(a))&&Bf(e,n);var c=o=r.createElement(`link`);bt(c),Id(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,zf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function kf(e,t){yf.X(e,t);var n=Sf;if(n&&e){var r=yt(n).hoistableScripts,i=If(e),a=r.get(i);a||(a=n.querySelector(Lf(i)),a||(e=p({src:e,async:!0},t),(t=gf.get(i))&&Vf(e,t),a=n.createElement(`script`),bt(a),Id(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Af(e,t){yf.M(e,t);var n=Sf;if(n&&e){var r=yt(n).hoistableScripts,i=If(e),a=r.get(i);a||(a=n.querySelector(Lf(i)),a||(e=p({src:e,async:!0,type:`module`},t),(t=gf.get(i))&&Vf(e,t),a=n.createElement(`script`),bt(a),Id(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function jf(e,t,n,r){var i=(i=I.current)?vf(i):null;if(!i)throw Error(a(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Mf(n.href),n=yt(i).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Mf(n.href);var o=yt(i).hoistableStyles,s=o.get(e);if(s||(i=i.ownerDocument||i,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=i.querySelector(Nf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),gf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},gf.set(e,n),o||Ff(i,e,n,s.state))),t&&r===null)throw Error(a(528,``));return s}if(t&&r!==null)throw Error(a(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=If(n),n=yt(i).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(a(444,e))}}function Mf(e){return`href="`+zt(e)+`"`}function Nf(e){return`link[rel="stylesheet"][`+e+`]`}function Pf(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Ff(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Id(t,`link`,n),bt(t),e.head.appendChild(t))}function If(e){return`[src="`+zt(e)+`"]`}function Lf(e){return`script[async]`+e}function Rf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+zt(n.href)+`"]`);if(r)return t.instance=r,bt(r),r;var i=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),bt(r),Id(r,`style`,i),zf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Mf(n.href);var o=e.querySelector(Nf(i));if(o)return t.state.loading|=4,t.instance=o,bt(o),o;r=Pf(n),(i=gf.get(i))&&Bf(r,i),o=(e.ownerDocument||e).createElement(`link`),bt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Id(o,`link`,r),t.state.loading|=4,zf(o,n.precedence,e),t.instance=o;case`script`:return o=If(n.src),(i=e.querySelector(Lf(o)))?(t.instance=i,bt(i),i):(r=n,(i=gf.get(o))&&(r=p({},n),Vf(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),bt(i),Id(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(a(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,zf(r,n.precedence,e));return t.instance}function zf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Gf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Kf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function qf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Mf(r.href),a=t.querySelector(Nf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Xf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,bt(a);return}a=t.ownerDocument||t,r=Pf(r),(i=gf.get(i))&&Bf(r,i),a=a.createElement(`link`),bt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Id(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Xf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Jf=0;function Yf(e,t){return e.stylesheets&&e.count===0&&Qf(e,e.stylesheets),0Jf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Xf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Qf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Zf=null;function Qf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Zf=new Map,t.forEach($f,e),Zf=null,Xf.call(e))}function $f(e,t){if(!(t.state.loading&4)){var n=Zf.get(e);if(n)var r=n.get(null);else{n=new Map,Zf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=ys()}))(),1),xs=i(),Ss=(0,U.createContext)(void 0);function Cs(e,t){try{let t=localStorage.getItem(e);if(t===`light`||t===`dark`||t===`system`)return t}catch{}return t}function ws(e){let t=(0,xs.c)(14),{children:n,defaultTheme:r,storageKey:i}=e,a=r===void 0?`dark`:r,o=i===void 0?`ui-theme`:i,s;t[0]!==a||t[1]!==o?(s=()=>Cs(o,a),t[0]=a,t[1]=o,t[2]=s):s=t[2];let[c,l]=(0,U.useState)(s),u,d;t[3]===c?(u=t[4],d=t[5]):(u=()=>{let e=window.document.documentElement;if(e.classList.remove(`light`,`dark`),c===`system`){let t=window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`;e.classList.add(t);return}e.classList.add(c)},d=[c],t[3]=c,t[4]=u,t[5]=d),(0,U.useEffect)(u,d);let f;t[6]===o?f=t[7]:(f=e=>{try{localStorage.setItem(o,e)}catch{}l(e)},t[6]=o,t[7]=f);let p;t[8]!==f||t[9]!==c?(p={theme:c,setTheme:f},t[8]=f,t[9]=c,t[10]=p):p=t[10];let m=p,h;return t[11]!==n||t[12]!==m?(h=(0,W.jsx)(Ss.Provider,{value:m,children:n}),t[11]=n,t[12]=m,t[13]=h):h=t[13],h}function Ts(){let e=(0,U.useContext)(Ss);if(e===void 0)throw Error(`useTheme must be used within a ThemeProvider`);return e}function Es(e){return Vt(e.defaultTagName??`div`,e,e)}var Ds=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Os=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),ks=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),As=e=>{let t=ks(e);return t.charAt(0).toUpperCase()+t.slice(1)},js={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},Ms=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Ns=(0,U.createContext)({}),Ps=()=>(0,U.useContext)(Ns),Fs=(0,U.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:f=`currentColor`,className:p=``}=Ps()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,U.createElement)(`svg`,{ref:c,...js,width:t??l??js.width,height:t??l??js.height,stroke:e??f,strokeWidth:m,className:Ds(`lucide`,p,i),...!a&&!Ms(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,U.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),Is=(e,t)=>{let n=(0,U.forwardRef)(({className:n,...r},i)=>(0,U.createElement)(Fs,{ref:i,iconNode:t,className:Ds(`lucide-${Os(As(e))}`,`lucide-${e}`,n),...r}));return n.displayName=As(e),n},Ls=Is(`activity`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),Rs=Is(`book-open`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`,key:`ruj8y`}]]),zs=Is(`boxes`,[[`path`,{d:`M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z`,key:`lc1i9w`}],[`path`,{d:`m7 16.5-4.74-2.85`,key:`1o9zyk`}],[`path`,{d:`m7 16.5 5-3`,key:`va8pkn`}],[`path`,{d:`M7 16.5v5.17`,key:`jnp8gn`}],[`path`,{d:`M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z`,key:`8zsnat`}],[`path`,{d:`m17 16.5-5-3`,key:`8arw3v`}],[`path`,{d:`m17 16.5 4.74-2.85`,key:`8rfmw`}],[`path`,{d:`M17 16.5v5.17`,key:`k6z78m`}],[`path`,{d:`M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z`,key:`1xygjf`}],[`path`,{d:`M12 8 7.26 5.15`,key:`1vbdud`}],[`path`,{d:`m12 8 4.74-2.85`,key:`3rx089`}],[`path`,{d:`M12 13.5V8`,key:`1io7kd`}]]),Bs=Is(`camera`,[[`path`,{d:`M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z`,key:`18u6gg`}],[`circle`,{cx:`12`,cy:`13`,r:`3`,key:`1vg3eu`}]]),Vs=Is(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),Hs=Is(`crosshair`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`22`,x2:`18`,y1:`12`,y2:`12`,key:`l9bcsi`}],[`line`,{x1:`6`,x2:`2`,y1:`12`,y2:`12`,key:`13hhkx`}],[`line`,{x1:`12`,x2:`12`,y1:`6`,y2:`2`,key:`10w3f3`}],[`line`,{x1:`12`,x2:`12`,y1:`22`,y2:`18`,key:`15g9kq`}]]),Us=Is(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),Ws=Is(`hard-drive`,[[`path`,{d:`M10 16h.01`,key:`1bzywj`}],[`path`,{d:`M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`18tbho`}],[`path`,{d:`M21.946 12.013H2.054`,key:`zqlbp7`}],[`path`,{d:`M6 16h.01`,key:`1pmjb7`}]]),Gs=Is(`house`,[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]]),Ks=Is(`id-card`,[[`path`,{d:`M16 10h2`,key:`8sgtl7`}],[`path`,{d:`M16 14h2`,key:`epxaof`}],[`path`,{d:`M6.17 15a3 3 0 0 1 5.66 0`,key:`n6f512`}],[`circle`,{cx:`9`,cy:`11`,r:`2`,key:`yxgjnd`}],[`rect`,{x:`2`,y:`5`,width:`20`,height:`14`,rx:`2`,key:`qneu4z`}]]),qs=Is(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),Js=Is(`key`,[[`path`,{d:`m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4`,key:`g0fldk`}],[`path`,{d:`m21 2-9.6 9.6`,key:`1j0ho8`}],[`circle`,{cx:`7.5`,cy:`15.5`,r:`5.5`,key:`yqb3hr`}]]),Ys=Is(`layers`,[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]]),Xs=Is(`layout-grid`,[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]),Zs=Is(`log-out`,[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),Qs=Is(`map-pin`,[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}]]),$s=Is(`moon`,[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),ec=Is(`network`,[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]),tc=Is(`package`,[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]]),nc=Is(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),rc=Is(`router`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,key:`w68u3i`}],[`path`,{d:`M6.01 18H6`,key:`19vcac`}],[`path`,{d:`M10.01 18H10`,key:`uamcmx`}],[`path`,{d:`M15 10v4`,key:`qjz1xs`}],[`path`,{d:`M17.84 7.17a4 4 0 0 0-5.66 0`,key:`1rif40`}],[`path`,{d:`M20.66 4.34a8 8 0 0 0-11.31 0`,key:`6a5xfq`}]]),ic=Is(`route`,[[`circle`,{cx:`6`,cy:`19`,r:`3`,key:`1kj8tv`}],[`path`,{d:`M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15`,key:`1d8sl`}],[`circle`,{cx:`18`,cy:`5`,r:`3`,key:`gq8acd`}]]),ac=Is(`server`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]),oc=Is(`shield-check`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),sc=Is(`shield`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]),cc=Is(`sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),lc=Is(`user-cog`,[[`path`,{d:`M10 15H6a4 4 0 0 0-4 4v2`,key:`1nfge6`}],[`path`,{d:`m14.305 16.53.923-.382`,key:`1itpsq`}],[`path`,{d:`m15.228 13.852-.923-.383`,key:`eplpkm`}],[`path`,{d:`m16.852 12.228-.383-.923`,key:`13v3q0`}],[`path`,{d:`m16.852 17.772-.383.924`,key:`1i8mnm`}],[`path`,{d:`m19.148 12.228.383-.923`,key:`1q8j1v`}],[`path`,{d:`m19.53 18.696-.382-.924`,key:`vk1qj3`}],[`path`,{d:`m20.772 13.852.924-.383`,key:`n880s0`}],[`path`,{d:`m20.772 16.148.924.383`,key:`1g6xey`}],[`circle`,{cx:`18`,cy:`15`,r:`3`,key:`gjjjvw`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),uc=Is(`users`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),dc=Is(`waypoints`,[[`path`,{d:`m10.586 5.414-5.172 5.172`,key:`4mc350`}],[`path`,{d:`m18.586 13.414-5.172 5.172`,key:`8c96vv`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`circle`,{cx:`12`,cy:`20`,r:`2`,key:`144qzu`}],[`circle`,{cx:`12`,cy:`4`,r:`2`,key:`muu5ef`}],[`circle`,{cx:`20`,cy:`12`,r:`2`,key:`1xzzfp`}],[`circle`,{cx:`4`,cy:`12`,r:`2`,key:`1hvhnz`}]]),fc=Is(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),pc=function(e){return e.disabled=`data-disabled`,e.valid=`data-valid`,e.invalid=`data-invalid`,e.touched=`data-touched`,e.dirty=`data-dirty`,e.filled=`data-filled`,e.focused=`data-focused`,e}({}),mc={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},hc={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},gc={disabled:!1,...hc},_c={valid(e){return e===null?null:e?{[pc.valid]:``}:{[pc.invalid]:``}}},vc={invalid:void 0,name:void 0,validityData:{state:mc,errors:[],error:``,value:``,initialValue:null},setValidityData:Ht,disabled:void 0,touched:hc.touched,setTouched:Ht,dirty:hc.dirty,setDirty:Ht,filled:hc.filled,setFilled:Ht,focused:hc.focused,setFocused:Ht,validate:()=>null,validationMode:`onSubmit`,validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:gc,markedDirtyRef:{current:!1},registerFieldControl:Ht,validation:{getValidationProps:(e=Lt)=>e,getInputValidationProps:(e=Lt)=>e,inputRef:{current:null},commit:async()=>{}}},yc=U.createContext(vc);function bc(e=!0){let t=U.useContext(yc);if(t.setValidityData===Ht&&!e)throw Error(Gt(28));return t}var xc=U.createContext({controlId:void 0,registerControlId:Ht,labelId:void 0,setLabelId:Ht,messageIds:[],setMessageIds:Ht,getDescriptionProps:e=>e});function Sc(){return U.useContext(xc)}function Cc(e={}){let{id:t,implicit:n=!1,controlRef:r}=e,{controlId:i,registerControlId:a}=Sc(),o=_r(t),s=n?i:void 0,c=Bt(()=>Symbol(`labelable-control`)),l=U.useRef(!1),u=U.useRef(t!=null),d=ur(()=>{!l.current||a===Ht||(l.current=!1,a(c.current,void 0))});return B(()=>{if(a===Ht)return;let e;if(n){let n=r?.current;e=V(n)&&n.closest(`label`)!=null?t??null:s??o}else if(t!=null)u.current=!0,e=t;else if(u.current)e=o;else{d();return}if(e===void 0){d();return}l.current=!0,a(c.current,e)},[t,r,s,a,n,o,c,d]),U.useEffect(()=>d,[d]),i??o}var wc=typeof navigator<`u`,Tc=Pc(),Ec=Ic(),Dc=Fc(),Oc=typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter:none`),kc=Tc.platform===`MacIntel`&&Tc.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(Tc.platform);wc&&/firefox/i.test(Dc);var Ac=wc&&/apple/i.test(navigator.vendor);wc&&/Edg/i.test(Dc);var jc=wc&&/android/i.test(Ec)||/android/i.test(Dc),Mc=wc&&Ec.toLowerCase().startsWith(`mac`)&&!navigator.maxTouchPoints,Nc=Dc.includes(`jsdom/`);function Pc(){if(!wc)return{platform:``,maxTouchPoints:-1};let e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??-1}}function Fc(){if(!wc)return``;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(` `):navigator.userAgent}function Ic(){if(!wc)return``;let e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??``}var Lc=`data-base-ui-focusable`,Rc=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,zc=`ArrowLeft`,Bc=`ArrowRight`,Vc=`ArrowUp`,Hc=`ArrowDown`;function Uc(e,t){if(!V(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(`data-trigger-disabled`);for(let[,e]of t.entries())if(H(e,n))return!e.hasAttribute(`data-trigger-disabled`);return!1}function Wc(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function Gc(e){return e.matches(`html,body`)}function Kc(e){return er(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function qc(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${Rc}`)!=null}function Jc(e){return e?e.getAttribute(`role`)===`combobox`&&Kc(e):!1}function Yc(e){if(!e||Nc)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function Xc(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function Zc(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...Zc(e,t.id,n)])}function Qc(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function $c(e){e.preventDefault(),e.stopPropagation()}function el(e){return`nativeEvent`in e}function tl(e){return e.pointerType===``&&e.isTrusted?!0:jc&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function nl(e){return Nc?!1:!jc&&e.width===0&&e.height===0||jc&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function rl(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function il(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}var al=[`top`,`right`,`bottom`,`left`],ol=Math.min,sl=Math.max,cl=Math.round,ll=Math.floor,ul=e=>({x:e,y:e}),dl={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function fl(e,t,n){return sl(e,ol(t,n))}function pl(e,t){return typeof e==`function`?e(t):e}function ml(e){return e.split(`-`)[0]}function hl(e){return e.split(`-`)[1]}function gl(e){return e===`x`?`y`:`x`}function _l(e){return e===`y`?`height`:`width`}function vl(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function yl(e){return gl(vl(e))}function bl(e,t,n){n===void 0&&(n=!1);let r=hl(e),i=yl(e),a=_l(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=kl(o)),[o,kl(o)]}function xl(e){let t=kl(e);return[Sl(e),t,Sl(t)]}function Sl(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Cl=[`left`,`right`],wl=[`right`,`left`],Tl=[`top`,`bottom`],El=[`bottom`,`top`];function Dl(e,t,n){switch(e){case`top`:case`bottom`:return n?t?wl:Cl:t?Cl:wl;case`left`:case`right`:return t?Tl:El;default:return[]}}function Ol(e,t,n,r){let i=hl(e),a=Dl(ml(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Sl)))),a}function kl(e){let t=ml(e);return dl[t]+e.slice(t.length)}function Al(e){return{top:0,right:0,bottom:0,left:0,...e}}function jl(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Al(e)}function Ml(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Nl(e,t,n){return Math.floor(e/t)!==n}function Pl(e,t){return t<0||t>=e.length}function Fl(e,t){return J(e.current,{disabledIndices:t})}function Il(e,t){return J(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function J(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&Bl(e,a,r));return a}function Ll(e,{event:t,orientation:n,loopFocus:r,onLoop:i,rtl:a,cols:o,disabledIndices:s,minIndex:c,maxIndex:l,prevIndex:u,stopEvent:d=!1}){let f=u,p;if(t.key===`ArrowUp`?p=`up`:t.key===`ArrowDown`&&(p=`down`),p){let n=[],a=[],m=!1,h=0;{let t=null,r=-1;e.forEach((e,i)=>{if(e==null)return;h+=1;let o=e.closest(`[role="row"]`);o&&(m=!0),(o!==t||r===-1)&&(t=o,r+=1,n[r]=[]),n[r].push(i),a[i]=r})}let g=!1,_=0;if(m)for(let e of n){let t=e.length;t>_&&(_=t),t!==o&&(g=!0)}let v=g&&h{if(!g||u===-1)return;let c=a[u];if(c==null)return;let l=n[c].indexOf(u),d=o===`up`?-1:1;for(let o=c+d,f=0;f=n.length){if(!r||v)return;if(o=o<0?n.length-1:0,i){let e=Math.min(l,n[o].length-1);o=a[i(t,u,n[o][e]??n[o][0])]??o}}let c=n[o];for(let t=Math.min(l,c.length-1);t>=0;--t){let n=c[t];if(!Bl(e,n,s))return n}}},x=t=>{if(!v||u===-1)return;let n=u%y,i=t===`up`?-y:y,a=l-l%y,o=ll(l/y)+1;for(let t=u-n+i,c=0;cl){if(!r)return;t=t<0?a:0}let i=Math.min(t+y-1,l);for(let r=Math.min(t+n,i);r>=t;--r)if(!Bl(e,r,s))return r}};d&&$c(t);let S=b(p)??x(p);if(S!==void 0)f=S;else if(u===-1)f=p===`up`?l:c;else if(f=J(e,{startingIndex:u,amount:y,decrement:p===`up`,disabledIndices:s}),r){if(p===`up`&&(u-ye?r:r-y,i&&(f=i(t,u,f))}p===`down`&&u+y>l&&(f=J(e,{startingIndex:u%y-y,amount:y,disabledIndices:s}),i&&(f=i(t,u,f)))}Pl(e,f)&&(f=u)}if(n===`both`){let n=ll(u/o);t.key===(a?`ArrowLeft`:`ArrowRight`)&&(d&&$c(t),u%o===o-1?r&&(f=J(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):(f=J(e,{startingIndex:u,disabledIndices:s}),r&&Nl(f,o,n)&&(f=J(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f)))),Nl(f,o,n)&&(f=u)),t.key===(a?`ArrowRight`:`ArrowLeft`)&&(d&&$c(t),u%o===0?r&&(f=J(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f))):(f=J(e,{startingIndex:u,decrement:!0,disabledIndices:s}),r&&Nl(f,o,n)&&(f=J(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f)))),Nl(f,o,n)&&(f=u));let c=ll(l/o)===n;Pl(e,f)&&(r&&c?(f=t.key===(a?`ArrowRight`:`ArrowLeft`)?l:J(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):f=u)}return f}function Y(e,t,n){let r=[],i=0;return e.forEach(({width:e,height:a},o)=>{let s=!1;for(n&&(i=0);!s;){let n=[];for(let r=0;rr[e]==null)?(n.forEach(e=>{r[e]=o}),s=!0):i+=1}}),[...r]}function Rl(e,t,n,r,i){if(e===-1)return-1;let a=n.indexOf(e),o=t[e];switch(i){case`tl`:return a;case`tr`:return o?a+o.width-1:a;case`bl`:return o?a+(o.height-1)*r:a;case`br`:return n.lastIndexOf(e);default:return-1}}function zl(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function Bl(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?Hl(r)?!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!0:!1}function Vl(e){return e.visibility===`hidden`||e.visibility===`collapse`}function Hl(e,t=e?ar(e):null){return!e||!e.isConnected||!t||Vl(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var Ul=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function Wl(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return mr(n)?n.host:null}function Gl(e){for(let t of Array.from(e.children))if(cr(t)===`summary`)return t;return null}function Kl(e,t){let n=Gl(t);return!!n&&(e===n||H(n,e))}function ql(e){let t=e?cr(e):``;return e!=null&&e.matches(Ul)&&(t!==`summary`||e.parentElement!=null&&cr(e.parentElement)===`details`&&Gl(e.parentElement)===e)&&(t!==`details`||Gl(e)==null)&&(t!==`input`||e.type!==`hidden`)}function Jl(e){if(!ql(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=Wl(t)){let n=t!==e,r=cr(t)===`slot`;if(t.hasAttribute(`inert`)||n&&cr(t)===`details`&&!t.open&&!Kl(e,t)||t.hasAttribute(`hidden`)||!r&&!Yl(t,n))return!1}return!0}function Yl(e,t){let n=ar(e);return t?n.display!==`none`:Hl(e,n)}function Xl(e){let t=e.tabIndex;if(t<0){let t=cr(e);if(t===`details`||t===`audio`||t===`video`||er(e)&&e.isContentEditable)return 0}return t}function Zl(e){if(cr(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function Ql(e,t){let n=Zl(e);if(!n)return!0;let r=t.find(e=>{let t=Zl(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=Zl(e);return t?.name===n.name&&t.form===n.form})===n}function $l(e){if(er(e)&&cr(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return er(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function eu(e,t){$l(e).forEach(e=>{ql(e)&&t.push(e),eu(e,t)})}function tu(e,t,n){$l(e).forEach(e=>{er(e)&&e.matches(t)&&n.push(e),tu(e,t,n)})}function nu(e){return Jl(e)&&Xl(e)>=0}function ru(e){let t=[];return eu(e,t),t.filter(Jl)}function iu(e){let t=ru(e);return t.filter(e=>Xl(e)>=0&&Ql(e,t))}function au(e,t){let n=iu(e),r=n.length;if(r===0)return;let i=Ar(jr(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function ou(e){return au(jr(e).body,1)||e}function su(e){return au(jr(e).body,-1)||e}function cu(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!H(n,r)}function lu(e){iu(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function uu(e){let t=[];tu(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}var du=[];function fu(e){U.useEffect(e,du)}var pu=0,mu=class e{static create(){return new e}currentId=pu;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=pu,t()},e)}isStarted(){return this.currentId!==pu}clear=()=>{this.currentId!==pu&&(clearTimeout(this.currentId),this.currentId=pu)};disposeEffect=()=>this.clear};function hu(){let e=Bt(mu.create).current;return fu(e.disposeEffect),e}var gu=null;globalThis.requestAnimationFrame;var _u=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n=this.callbacks.length||(this.callbacks[t]=null,--this.callbacksCount)}},vu=class e{static create(){return new e}static request(e){return _u.request(e)}static cancel(e){return _u.cancel(e)}currentId=gu;request(e){this.cancel(),this.currentId=_u.request(()=>{this.currentId=gu,e()})}cancel=()=>{this.currentId!==gu&&(_u.cancel(this.currentId),this.currentId=gu)};disposeEffect=()=>this.cancel};function yu(){let e=Bt(vu.create).current;return fu(e.disposeEffect),e}function bu(e){return e==null?e:`current`in e?e.current:e}var xu=function(e){return e.startingStyle=`data-starting-style`,e.endingStyle=`data-ending-style`,e}({}),Su={[xu.startingStyle]:``},Cu={[xu.endingStyle]:``},wu={transitionStatus(e){return e===`starting`?Su:e===`ending`?Cu:null}},Tu=n(ve());function Eu(e,t=!1,n=!0){let r=yu();return ur((i,a=null)=>{r.cancel();let o=bu(e);if(o==null)return;let s=o,c=()=>{Tu.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(s.getAnimations().map(e=>e.finished)).then(()=>{a?.aborted||c()}).catch(()=>{if(n){a?.aborted||c();return}let e=s.getAnimations();!a?.aborted&&e.length>0&&e.some(e=>e.pending||e.playState!==`finished`)&&l()})}if(t){let e=xu.startingStyle;if(!s.hasAttribute(e)){r.request(l);return}let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0});return}r.request(l)})}function Du(e){let{enabled:t=!0,open:n,ref:r,onComplete:i}=e,a=ur(i),o=Eu(r,n,!1);U.useEffect(()=>{if(!t)return;let e=new AbortController;return o(a,e.signal),()=>{e.abort()}},[t,n,a,o])}function Ou(e,t=!1,n=!1){let[r,i]=U.useState(e&&t?`idle`:void 0),[a,o]=U.useState(e);return e&&!a&&(o(!0),i(`starting`)),!e&&a&&r!==`ending`&&!n&&i(`ending`),!e&&!a&&r===`ending`&&i(void 0),B(()=>{if(!e&&a&&r!==`ending`&&n){let e=vu.request(()=>{i(`ending`)});return()=>{vu.cancel(e)}}},[e,a,r,n]),B(()=>{if(!e||t)return;let n=vu.request(()=>{i(void 0)});return()=>{vu.cancel(n)}},[t,e]),B(()=>{if(!e||!t)return;e&&a&&r!==`idle`&&i(`starting`);let n=vu.request(()=>{i(`idle`)});return()=>{vu.cancel(n)}},[t,e,a,r]),{mounted:a,setMounted:o,transitionStatus:r}}function ku({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=U.useRef(e!==void 0),[a,o]=U.useState(t);return[i?e:a,U.useCallback(e=>{i||o(e)},[])]}function Au(e,t,n,r,i=!0){let{registerFieldControl:a}=bc(),o=U.useRef(null);o.current||=Symbol(),B(()=>{let s=o.current;if(!(!s||!i))return a(s,{controlRef:e,getValue:r,id:t,value:n}),()=>{a(s,void 0)}},[e,i,r,t,a,n])}var ju=U.forwardRef(function(e,t){let{render:n,className:r,id:i,name:a,value:o,disabled:s=!1,onValueChange:c,defaultValue:l,autoFocus:u=!1,style:d,...f}=e,{state:p,name:m,disabled:h,setTouched:g,setDirty:_,validityData:v,setFocused:y,setFilled:b,validationMode:x,validation:S}=bc(),C=h||s,w=m??a,T={...p,disabled:C},{labelId:E}=Sc(),D=Cc({id:i});B(()=>{let e=o!=null;S.inputRef.current?.value||e&&o!==``?b(!0):e&&o===``&&b(!1)},[S.inputRef,b,o]);let O=U.useRef(null);B(()=>{u&&O.current===Ar(jr(O.current))&&y(!0)},[u,y]);let[k]=ku({controlled:o,default:l,name:`FieldControl`,state:`value`}),A=o!==void 0,j=A?k:void 0,M=ur(()=>S.inputRef.current?.value);return Au(S.inputRef,D,j,M),Vt(`input`,e,{ref:[t,O],state:T,props:[{id:D,disabled:C,name:w,ref:S.inputRef,"aria-labelledby":E,autoFocus:u,...A?{value:j}:{defaultValue:l},onChange(e){let t=e.currentTarget.value;c?.(t,kr(br,e.nativeEvent)),_(t!==v.initialValue),b(t!==``)},onFocus(){y(!0)},onBlur(e){g(!0),y(!1),x===`onBlur`&&S.commit(e.currentTarget.value)},onKeyDown(e){e.currentTarget.tagName===`INPUT`&&e.key===`Enter`&&(g(!0),S.commit(e.currentTarget.value))}},S.getInputValidationProps(),f],stateAttributesMapping:_c})}),Mu=U.forwardRef(function(e,t){return(0,W.jsx)(ju,{ref:t,...e})});function Nu(e){let t=(0,xs.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,type:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===n?a=t[5]:(a=un(`h-7 w-full min-w-0 rounded-md border border-input bg-input/20 px-2 py-0.5 text-sm transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-xs/relaxed file:font-medium file:text-foreground placeholder:text-muted-foreground autofill:[-webkit-text-fill-color:var(--color-foreground)] autofill:[transition:background-color_9999s_ease-in-out_0s] focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 md:text-xs/relaxed dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,n),t[4]=n,t[5]=a);let o;return t[6]!==r||t[7]!==a||t[8]!==i?(o=(0,W.jsx)(Mu,{className:a,"data-slot":`input`,type:i,...r}),t[6]=r,t[7]=a,t[8]=i,t[9]=o):o=t[9],o}var Pu=U.forwardRef(function(e,t){let{className:n,render:r,orientation:i=`horizontal`,style:a,...o}=e;return Vt(`div`,e,{state:{orientation:i},ref:t,props:[{role:`separator`,"aria-orientation":i},o]})});function Fu(e){let t=(0,xs.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,orientation:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`horizontal`:i,o;t[4]===n?o=t[5]:(o=un(`shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:self-stretch`,n),t[4]=n,t[5]=o);let s;return t[6]!==a||t[7]!==r||t[8]!==o?(s=(0,W.jsx)(Pu,{className:o,"data-slot":`separator`,orientation:a,...r}),t[6]=a,t[7]=r,t[8]=o,t[9]=s):s=t[9],s}var Iu=U.createContext(!1),Lu=U.createContext(void 0);function Ru(e){let t=U.useContext(Lu);if(e===!1&&t===void 0)throw Error(Gt(27));return t}var zu=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=xu.startingStyle]=`startingStyle`,e[e.endingStyle=xu.endingStyle]=`endingStyle`,e.anchorHidden=`data-anchor-hidden`,e.side=`data-side`,e.align=`data-align`,e}({}),Bu=function(e){return e.popupOpen=`data-popup-open`,e.pressed=`data-pressed`,e}({}),Vu={[Bu.popupOpen]:``},Hu={[Bu.popupOpen]:``,[Bu.pressed]:``},Uu={[zu.open]:``},Wu={[zu.closed]:``},Gu={[zu.anchorHidden]:``},Ku={open(e){return e?Vu:null}},qu={open(e){return e?Hu:null}},Ju={open(e){return e?Uu:Wu},anchorHidden(e){return e?Gu:null}},Yu={...Ju,...wu},Xu=U.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,{store:s}=Ru(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`);return Vt(`div`,e,{state:{open:c,transitionStatus:s.useState(`transitionStatus`)},ref:[s.context.backdropRef,t],stateAttributesMapping:Yu,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})}),Zu=U.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,...s}=e,{store:c}=Ru(),l=c.useState(`open`),{getButtonProps:u,buttonRef:d}=lr({disabled:a,native:o}),f={disabled:a};function p(e){l&&c.setOpen(!1,kr(Dr,e.nativeEvent))}return Vt(`button`,e,{state:f,ref:[t,d],props:[{onClick:p},s,u]})}),Qu=U.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{store:s}=Ru(),c=_r(a);return s.useSyncedValueWithCleanup(`descriptionElementId`,c),Vt(`p`,e,{ref:t,props:[{id:c},o]})});function $u(e,t){return t!=null&&!rl(t)?0:typeof e==`function`?e():e}function ed(e,t,n){let r=$u(e,n);return typeof r==`number`?r:r?.[t]}function td(e){return typeof e==`function`?e():e}function nd(e,t){return t||e===`click`||e===`mousedown`}function rd(e){return e?.includes(`mouse`)&&e!==`mousedown`}var id=U.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new mu,currentIdRef:{current:null},currentContextRef:{current:null}});function ad(e){let{children:t,delay:n,timeoutMs:r=0}=e,i=U.useRef(n),a=U.useRef(n),o=U.useRef(null),s=U.useRef(null),c=hu();return(0,W.jsx)(id.Provider,{value:U.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:a,currentIdRef:o,timeoutMs:r,currentContextRef:s,timeout:c}),[r,c]),children:t})}function od(e,t={open:!1}){let{open:n}=t,r=`rootStore`in e?e.rootStore:e,i=r.useState(`floatingId`),{currentIdRef:a,delayRef:o,timeoutMs:s,initialDelayRef:c,currentContextRef:l,hasProvider:u,timeout:d}=U.useContext(id),[f,p]=U.useState(!1);return B(()=>{function e(){p(!1),l.current?.setIsInstantPhase(!1),a.current=null,l.current=null,o.current=c.current}if(a.current&&!n&&a.current===i){if(p(!1),s){let t=i;return d.start(s,()=>{r.select(`open`)||a.current&&a.current!==t||e()}),()=>{d.clear()}}e()}},[n,i,a,o,s,c,l,d,r]),B(()=>{if(!n)return;let e=l.current,t=a.current;d.clear(),l.current={onOpenChange:r.setOpen,setIsInstantPhase:p},a.current=i,o.current={open:0,close:ed(c.current,`close`)},t!==null&&t!==i?(p(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,kr(br))):(p(!1),e?.setIsInstantPhase(!1))},[n,i,r,a,o,c,l,d]),B(()=>()=>{l.current=null},[l]),U.useMemo(()=>({hasProvider:u,delayRef:o,isInstantPhase:f}),[u,o,f])}function X(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function sd(...e){return()=>{for(let t=0;t{t.current=t.next}};return t}var ud={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},dd={...ud,position:`fixed`,top:0,left:0},fd={...ud,position:`absolute`},pd=U.forwardRef(function(e,t){let[n,r]=U.useState();B(()=>{Ac&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,W.jsx)(`span`,{...e,ref:t,style:dd,"aria-hidden":n?void 0:!0,...i,"data-base-ui-focus-guard":``})});function md(e){return`data-base-ui-${e}`}var hd=0;function gd(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(hd);function a(){i&&!i()||e?.focus({preventScroll:n})}if(r)return a(),Ht;let o=requestAnimationFrame(a);return hd=o,()=>{hd===o&&(cancelAnimationFrame(o),hd=0)}}var _d={inert:new WeakMap,"aria-hidden":new WeakMap},vd=`data-base-ui-inert`,yd={inert:new WeakSet,"aria-hidden":new WeakSet},bd=new WeakMap,Z=0;function xd(e){return yd[e]}function Sd(e){return e?mr(e)?e.host:Sd(e.parentNode):null}var Cd=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=Sd(t);return e.contains(n)?n:null}).filter(e=>e!=null),wd=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},Td=(e,t,n)=>{let r=[],i=e=>{!e||n.has(e)||Array.from(e.children).forEach(e=>{cr(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function Ed(e,t,n,r,{mark:i=!0,markerIgnoreElements:a=[]}){let o=r?`inert`:n?`aria-hidden`:null,s=null,c=null,l=Cd(t,e),u=i?Cd(t,a):[],d=new Set(u),f=i?Td(t,wd(l),new Set(l)).filter(e=>!d.has(e)):[],p=[],m=[];if(o){let e=_d[o],n=xd(o);c=n,s=e;let r=Cd(t,Array.from(t.querySelectorAll(`[aria-live]`))),i=l.concat(r);Td(t,wd(i),new Set(i)).forEach(t=>{let r=t.getAttribute(o),i=r!==null&&r!==`false`,a=(e.get(t)||0)+1;e.set(t,a),p.push(t),a===1&&i&&n.add(t),i||t.setAttribute(o,o===`inert`?``:`true`)})}return i&&f.forEach(e=>{let t=(bd.get(e)||0)+1;bd.set(e,t),m.push(e),t===1&&e.setAttribute(vd,``)}),Z+=1,()=>{s&&p.forEach(e=>{let t=(s.get(e)||0)-1;s.set(e,t),t||(!c?.has(e)&&o&&e.removeAttribute(o),c?.delete(e))}),i&&m.forEach(e=>{let t=(bd.get(e)||0)-1;bd.set(e,t),t||e.removeAttribute(vd)}),--Z,Z||(_d.inert=new WeakMap,_d[`aria-hidden`]=new WeakMap,yd.inert=new WeakSet,yd[`aria-hidden`]=new WeakSet,bd=new WeakMap)}}function Dd(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0,markerIgnoreElements:a=[]}=t,o=jr(e[0]).body;return Ed(e,o,n,r,{mark:i,markerIgnoreElements:a})}var Od={style:{transition:`none`}},kd={fallbackAxisSide:`none`},Ad={fallbackAxisSide:`end`},jd={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},Md=U.createContext(null),Nd=()=>U.useContext(Md),Pd=md(`portal`);function Fd(e={}){let{ref:t,container:n,componentProps:r=Lt,elementProps:i}=e,a=gr(),o=Nd()?.portalNode,[s,c]=U.useState(null),[l,u]=U.useState(null),d=ur(e=>{e!==null&&u(e)}),f=U.useRef(null);B(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}if(a==null)return;let e=(n&&(Zn(n)?n:n.current))??o??document.body;if(e==null){f.current&&(f.current=null,u(null),c(null));return}f.current!==e&&(f.current=e,u(null),c(e))},[n,o,a]);let p=Vt(`div`,r,{ref:[t,d],props:[{id:a,[Pd]:``},i]});return{portalNode:l,portalSubtree:s&&p?Tu.createPortal(p,s):null}}var Id=U.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,container:o,renderGuards:s,...c}=e,{portalNode:l,portalSubtree:u}=Fd({container:o,ref:t,componentProps:e,elementProps:c}),d=U.useRef(null),f=U.useRef(null),p=U.useRef(null),m=U.useRef(null),[h,g]=U.useState(null),_=U.useRef(!1),v=h?.modal,y=h?.open,b=typeof s==`boolean`?s:!!h&&!h.modal&&h.open&&!!l;U.useEffect(()=>{if(!l||v)return;function e(e){l&&e.relatedTarget&&cu(e)&&(e.type===`focusin`?_.current&&=(uu(l),!1):(lu(l),_.current=!0))}return sd(X(l,`focusin`,e,!0),X(l,`focusout`,e,!0))},[l,v]),U.useEffect(()=>{!l||y!==!1||(uu(l),_.current=!1)},[y,l]);let x=U.useMemo(()=>({beforeOutsideRef:d,afterOutsideRef:f,beforeInsideRef:p,afterInsideRef:m,portalNode:l,setFocusManagerState:g}),[l]);return(0,W.jsxs)(U.Fragment,{children:[u,(0,W.jsxs)(Md.Provider,{value:x,children:[b&&l&&(0,W.jsx)(pd,{"data-type":`outside`,ref:d,onFocus:e=>{cu(e,l)?p.current?.focus():su(h?h.domReference:null)?.focus()}}),b&&l&&(0,W.jsx)(`span`,{"aria-owns":l.id,style:jd}),l&&Tu.createPortal(a,l),b&&l&&(0,W.jsx)(pd,{"data-type":`outside`,ref:f,onFocus:e=>{cu(e,l)?m.current?.focus():(ou(h?h.domReference:null)?.focus(),h?.closeOnFocusOut&&h?.onOpenChange(!1,kr(`focus-out`,e.nativeEvent)))}})]})]})});function Ld(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var Rd=U.createContext(null),zd=U.createContext(null),Bd=()=>U.useContext(Rd)?.id||null,Vd=e=>{let t=U.useContext(zd);return e??t};function Hd(e,t){let n=$n(yr(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||`keyboard`:`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var Ud=20,Wd=[];function Gd(){Wd=Wd.filter(e=>e.deref()?.isConnected)}function Kd(e){Gd(),e&&cr(e)!==`body`&&(Wd.push(new WeakRef(e)),Wd.length>Ud&&(Wd=Wd.slice(-20)))}function qd(){return Gd(),Wd[Wd.length-1]?.deref()}function Jd(e){return e?nu(e)?e:iu(e)[0]||e:null}function Yd(e,t){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!t.current.includes(`floating`)&&!e.getAttribute(`role`)?.includes(`dialog`))return;let n=ru(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return nu(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),r=e.getAttribute(`tabindex`);t.current.includes(`floating`)||n.length===0?r!==`0`&&e.setAttribute(`tabindex`,`0`):(r!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function Xd(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:a=!0,restoreFocus:o=!1,modal:s=!0,closeOnFocusOut:c=!0,openInteractionType:l=``,nextFocusableElement:u,previousFocusableElement:d,beforeContentFocusGuardRef:f,externalTree:p,getInsideElements:m}=e,h=`rootStore`in t?t.rootStore:t,g=h.useState(`open`),_=h.useState(`domReferenceElement`),v=h.useState(`floatingElement`),{events:y,dataRef:b}=h.context,x=ur(()=>b.current.floatingContext?.nodeId),S=i===!1,C=Jc(_)&&S,w=U.useRef([`content`]),T=cd(i),E=cd(a),D=cd(l),O=Vd(p),k=Nd(),A=U.useRef(!1),j=U.useRef(!1),M=U.useRef(!1),ee=U.useRef(null),N=U.useRef(``),P=U.useRef(``),te=U.useRef(null),ne=U.useRef(null),re=Rt(te,f,k?.beforeInsideRef),ie=Rt(ne,k?.afterInsideRef),ae=hu(),F=hu(),oe=yu(),se=k!=null,I=Xc(v),ce=ur((e=I)=>e?iu(e):[]),le=ur(()=>m?.().filter(e=>e!=null)??[]);U.useEffect(()=>{if(r||!s)return;function e(e){e.key===`Tab`&&H(I,Ar(jr(I)))&&ce().length===0&&!C&&$c(e)}return X(jr(I),`keydown`,e)},[r,I,s,C,ce]),U.useEffect(()=>{if(r||!g)return;let e=jr(I);function t(){M.current=!1}function n(e){let t=yr(e),n=le();M.current=!(H(v,t)||H(_,t)||H(k?.portalNode,t)||n.some(e=>e===t||H(e,t))),P.current=e.pointerType||`keyboard`,t?.closest(`[data-base-ui-click-trigger]`)&&(j.current=!0)}function i(){P.current=`keyboard`}return sd(X(e,`pointerdown`,n,!0),X(e,`pointerup`,t,!0),X(e,`pointercancel`,t,!0),X(e,`keydown`,i,!0))},[r,v,_,I,g,k,le]),U.useEffect(()=>{if(r||!c)return;let e=jr(I);function t(){j.current=!0,F.start(0,()=>{j.current=!1})}function n(e){let t=yr(e);nu(t)&&(ee.current=t)}function i(t){let n=t.relatedTarget,r=t.currentTarget,i=yr(t);queueMicrotask(()=>{let a=x(),c=h.context.triggerElements,l=le(),f=n?.hasAttribute(md(`focus-guard`))&&[te.current,ne.current,k?.beforeInsideRef.current,k?.afterInsideRef.current,k?.beforeOutsideRef.current,k?.afterOutsideRef.current,bu(d),bu(u)].includes(n),p=!(H(_,n)||H(v,n)||H(n,v)||H(k?.portalNode,n)||l.some(e=>e===n||H(e,n))||n!=null&&c.hasElement(n)||c.hasMatchingElement(e=>H(e,n))||f||O&&(Zc(O.nodesRef.current,a).find(e=>H(e.context?.elements.floating,n)||H(e.context?.elements.domReference,n))||Qc(O.nodesRef.current,a).find(e=>[e.context?.elements.floating,Xc(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(r===_&&I&&Yd(I,w),o&&r!==_&&!Hl(i)&&Ar(e)===e.body){if(er(I)&&(I.focus(),o===`popup`)){oe.request(()=>{I.focus()});return}let e=ce(),t=ee.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||I;er(n)&&n.focus()}if(b.current.insideReactTree){b.current.insideReactTree=!1;return}(C||!s)&&n&&p&&!j.current&&(C||n!==qd())&&(A.current=!0,h.setOpen(!1,kr(Tr,t)))})}function a(){M.current||(b.current.insideReactTree=!0,ae.start(0,()=>{b.current.insideReactTree=!1}))}let l=er(_)?_:null;if(!(!v&&!l))return sd(l&&X(l,`focusout`,i),l&&X(l,`pointerdown`,t),v&&X(v,`focusin`,n),v&&X(v,`focusout`,i),v&&k&&X(v,`focusout`,a,!0))},[r,_,v,I,s,O,k,h,c,o,ce,C,x,w,b,ae,F,oe,u,d,le]),U.useEffect(()=>{if(r||!v||!g)return;let e=Array.from(k?.portalNode?.querySelectorAll(`[${md(`portal`)}]`)||[]),t=(O?Qc(O.nodesRef.current,x()):[]).find(e=>Jc(e.context?.elements.domReference||null))?.context?.elements.domReference,n=Dd([v,...e,te.current,ne.current,k?.beforeOutsideRef.current,k?.afterOutsideRef.current,...le(),t,bu(d),bu(u),C?_:null].filter(e=>e!=null),{ariaHidden:s||C,mark:!1}),i=Dd([v,...e].filter(e=>e!=null));return()=>{i(),n()}},[g,r,_,v,s,k,C,O,x,u,d,le]),B(()=>{if(!g||r||!er(I))return;let e=jr(I),t=Ar(e);queueMicrotask(()=>{let n=T.current,r=typeof n==`function`?n(D.current||``):n;if(r===void 0||r===!1||H(I,t))return;let i=null,a=()=>(i??=ce(I),i[0]||I),o;o=r===!0||r===null?a():bu(r),o||=a();let s=H(I,Ar(e));gd(o,{preventScroll:o===I,shouldFocus(){if(s)return!0;let t=Ar(e);return!(t!==o&&H(I,t))}})})},[r,g,I,ce,T,D]),B(()=>{if(r||!I)return;let e=jr(I);Kd(Ar(e));function t(e){if(e.open||(N.current=Hd(e.nativeEvent,P.current)),e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`&&(A.current=!0),e.reason===`outside-press`)if(e.nested)A.current=!1;else if(tl(e.nativeEvent)||nl(e.nativeEvent))A.current=!1;else{let e=!1;jr(I).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?A.current=!1:A.current=!0}}y.on(`openchange`,t);function n(){let e=E.current,t=typeof e==`function`?e(N.current):e;if(t===void 0||t===!1)return null;if(t===null&&(t=!0),typeof t==`boolean`)return _?.isConnected?_:qd()||null;let n=_?.isConnected?_:qd();return bu(t)||n||null}return()=>{y.off(`openchange`,t);let r=Ar(e),i=le(),a=H(v,r)||i.some(e=>e===r||H(e,r))||O&&Zc(O.nodesRef.current,x(),!1).some(e=>H(e.context?.elements.floating,r)),o=E.current,s=n();queueMicrotask(()=>{let t=Jd(s),n=typeof o!=`boolean`;o&&!A.current&&er(t)&&(!(!n&&t!==r&&r!==e.body)||a)&&t.focus({preventScroll:!0}),A.current=!1})}},[r,v,I,E,y,O,_,x,le]),B(()=>{if(!Oc||g||!v)return;let e=Ar(jr(v));!er(e)||!Kc(e)||H(v,e)&&e.blur()},[g,v]),B(()=>{if(!(r||!k))return k.setFocusManagerState({modal:s,closeOnFocusOut:c,open:g,onOpenChange:h.setOpen,domReference:_}),()=>{k.setFocusManagerState(null)}},[r,k,s,g,h,c,_]),B(()=>{if(!(r||!I))return Yd(I,w),()=>{queueMicrotask(Gd)}},[r,I,w]);let ue=!r&&(s?!C:!0)&&(se||s);return(0,W.jsxs)(U.Fragment,{children:[ue&&(0,W.jsx)(pd,{"data-type":`inside`,ref:re,onFocus:e=>{if(s){let e=ce();gd(e[e.length-1])}else k?.portalNode&&(A.current=!1,cu(e,k.portalNode)?ou(_)?.focus():bu(d??k.beforeOutsideRef)?.focus())}}),n,ue&&(0,W.jsx)(pd,{"data-type":`inside`,ref:ie,onFocus:e=>{s?gd(ce()[0]):k?.portalNode&&(c&&(A.current=!0),cu(e,k.portalNode)?su(_)?.focus():bu(u??k.afterOutsideRef)?.focus())}})]})}function Zd(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){let a=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},o=t.axis===`x`||t.axis===`both`,s=t.axis===`y`||t.axis===`both`,c=[`mouseenter`,`mousemove`].includes(t.dataRef.current.openEvent?.type||``)&&t.pointerType!==`touch`,l=a.width,u=a.height,d=a.x,f=a.y;return n==null&&t.x&&o&&(n=a.x-t.x),r==null&&t.y&&s&&(r=a.y-t.y),d-=n||0,f-=r||0,l=0,u=0,!i||c?(l=t.axis===`y`?a.width:0,u=t.axis===`x`?a.height:0,d=o&&t.x!=null?t.x:d,f=s&&t.y!=null?t.y:f):i&&!c&&(u=t.axis===`x`?a.height:u,l=t.axis===`y`?a.width:l),i=!0,{width:l,height:u,x:d,y:f,top:f,right:d+l,bottom:f+u,left:d}}}}function Qd(e){return e!=null&&e.clientX!=null}function $d(e,t={}){let{enabled:n=!0,axis:r=`both`}=t,i=`rootStore`in e?e.rootStore:e,a=i.useState(`open`),o=i.useState(`floatingElement`),s=i.useState(`domReferenceElement`),c=i.context.dataRef,l=U.useRef(!1),u=U.useRef(null),[d,f]=U.useState(),[p,m]=U.useState([]),h=ur(e=>{i.set(`positionReference`,e)}),g=ur((e,t,n)=>{l.current||c.current.openEvent&&!Qd(c.current.openEvent)||i.set(`positionReference`,Zd(n??s,{x:e,y:t,axis:r,dataRef:c,pointerType:d}))}),_=ur(e=>{a?u.current||(g(e.clientX,e.clientY,e.currentTarget),m([])):g(e.clientX,e.clientY,e.currentTarget)}),v=rl(d)?o:a;U.useEffect(()=>{if(!n){h(s);return}if(!v)return;function e(){u.current?.(),u.current=null}let t=$n(o);function r(t){H(o,yr(t))?e():g(t.clientX,t.clientY)}return!c.current.openEvent||Qd(c.current.openEvent)?u.current=X(t,`mousemove`,r):h(s),e},[v,n,o,c,s,i,g,h,p]),U.useEffect(()=>()=>{i.set(`positionReference`,null)},[i]),U.useEffect(()=>{n&&!o&&(l.current=!1)},[n,o]),U.useEffect(()=>{!n&&a&&(l.current=!0)},[n,a]);let y=U.useMemo(()=>{function e(e){f(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:_,onMouseEnter:_}},[_]);return U.useMemo(()=>n?{reference:y,trigger:y}:{},[n,y])}var ef={intentional:`onClick`,sloppy:`onPointerDown`};function tf(){return!1}function nf(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function rf(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:i=!0,outsidePressEvent:a=`sloppy`,referencePress:o=tf,referencePressEvent:s=`sloppy`,bubbles:c,externalTree:l}=t,u=`rootStore`in e?e.rootStore:e,d=u.useState(`open`),f=u.useState(`floatingElement`),{dataRef:p}=u.context,m=Vd(l),h=ur(typeof i==`function`?i:()=>!1),g=typeof i==`function`?h:i,_=g!==!1,v=ur(()=>a),{escapeKey:y,outsidePress:b}=nf(c),x=U.useRef(!1),S=U.useRef(!1),C=U.useRef(!1),w=U.useRef(!1),T=U.useRef(``),E=U.useRef(null),D=hu(),O=hu(),k=ur(()=>{O.clear(),p.current.insideReactTree=!1}),A=ur(e=>{let t=p.current.floatingContext?.nodeId;return(m?Zc(m.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),j=ur(e=>Wc(e,u.select(`floatingElement`))||Wc(e,u.select(`domReferenceElement`))),M=ur(e=>{o()&&u.setOpen(!1,kr(xr,e.nativeEvent))}),ee=ur(e=>{if(!d||!n||!r||e.key!==`Escape`||w.current||!y&&A(`__escapeKeyBubbles`))return;let t=kr(vr,el(e)?e.nativeEvent:e);u.setOpen(!1,t),t.isCanceled||e.preventDefault(),!y&&!t.isPropagationAllowed&&e.stopPropagation()}),N=ur(()=>{p.current.insideReactTree=!0,O.start(0,k)}),P=ur(e=>{if(!d||!n||e.button!==0)return;let t=yr(e.nativeEvent);H(u.select(`floatingElement`),t)&&(x.current||(x.current=!0,S.current=!1))}),te=ur(e=>{!d||!n||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&x.current&&(S.current=!0)});U.useEffect(()=>{if(!d||!n)return;p.current.__escapeKeyBubbles=y,p.current.__outsidePressBubbles=b;let e=new mu,t=new mu;function i(){e.clear(),w.current=!0}function a(){e.start(Yn()?5:0,()=>{w.current=!1})}function o(){C.current=!0,t.start(0,()=>{C.current=!1})}function s(){x.current=!1,S.current=!1}function c(){let e=T.current,t=e===`pen`||!e?`mouse`:e,n=v(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function l(e){let t=c();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function h(e){let t=p.current.floatingContext?.nodeId,n=m&&Zc(m.nodesRef.current,t).some(t=>Wc(e,t.context?.elements.floating));return j(e)||n}function O(e){if(l(e)){e.type!==`click`&&!j(e)&&(t.clear(),C.current=!1),k();return}if(p.current.insideReactTree){k();return}let n=yr(e),r=`[${md(`inert`)}]`,i=V(n)?n.getRootNode():null,a=Array.from((mr(i)?i:jr(u.select(`floatingElement`))).querySelectorAll(r)),o=u.context.triggerElements;if(n&&(o.hasElement(n)||o.hasMatchingElement(e=>H(e,n))))return;let s=V(n)?n:null;for(;s&&!hr(s);){let e=rr(s);if(hr(e)||!V(e))break;s=e}if(!(a.length&&V(n)&&!Gc(n)&&!H(n,u.select(`floatingElement`))&&a.every(e=>!H(s,e)))){if(er(n)&&!(`touches`in e)){let t=hr(n),r=ar(n),i=/auto|scroll/,a=t||i.test(r.overflowX),o=t||i.test(r.overflowY),s=a&&n.clientWidth>0&&n.scrollWidth>n.clientWidth,c=o&&n.clientHeight>0&&n.scrollHeight>n.clientHeight,l=r.direction===`rtl`,u=c&&(l?e.offsetX<=n.offsetWidth-n.clientWidth:e.offsetX>n.clientWidth),d=s&&e.offsetY>n.clientHeight;if(u||d)return}if(!h(e)){if(c()===`intentional`&&C.current){t.clear(),C.current=!1;return}typeof g==`function`&&!g(e)||A(`__outsidePressBubbles`)||(u.setOpen(!1,kr(Er,e)),k())}}}function M(e){c()!==`sloppy`||e.pointerType===`touch`||!u.select(`open`)||!n||j(e)||O(e)}function N(e){if(c()!==`sloppy`||!u.select(`open`)||!n||j(e))return;let t=e.touches[0];t&&(E.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},D.start(1e3,()=>{E.current&&(E.current.dismissOnTouchEnd=!1,E.current.dismissOnMouseDown=!1)}))}function P(e,t){let n=yr(e);if(!n)return;let r=X(n,e.type,()=>{t(e),r()})}function te(e){T.current=`touch`,P(e,N)}function ne(e){D.clear(),e.type===`pointerdown`&&(T.current=e.pointerType),!(e.type===`mousedown`&&E.current&&!E.current.dismissOnMouseDown)&&P(e,e=>{e.type===`pointerdown`?M(e):O(e)})}function re(e){if(!x.current)return;let n=S.current;if(s(),c()===`intentional`){if(e.type===`pointercancel`){n&&o();return}if(!h(e)){if(n){o();return}typeof g==`function`&&!g(e)||(t.clear(),C.current=!0,k())}}}function ie(e){if(c()!==`sloppy`||!E.current||j(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-E.current.startX),r=Math.abs(t.clientY-E.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(E.current.dismissOnTouchEnd=!0),i>10&&(O(e),D.clear(),E.current=null)}function ae(e){P(e,ie)}function F(e){c()!==`sloppy`||!E.current||j(e)||(E.current.dismissOnTouchEnd&&O(e),D.clear(),E.current=null)}function oe(e){P(e,F)}let se=jr(f),I=sd(r&&sd(X(se,`keydown`,ee),X(se,`compositionstart`,i),X(se,`compositionend`,a)),_&&sd(X(se,`click`,ne,!0),X(se,`pointerdown`,ne,!0),X(se,`pointerup`,re,!0),X(se,`pointercancel`,re,!0),X(se,`mousedown`,ne,!0),X(se,`mouseup`,re,!0),X(se,`touchstart`,te,!0),X(se,`touchmove`,ae,!0),X(se,`touchend`,oe,!0)));return()=>{I(),e.clear(),t.clear(),s(),C.current=!1}},[p,f,r,_,g,d,n,y,b,ee,k,v,A,j,m,u,D]),U.useEffect(k,[g,k]);let ne=U.useMemo(()=>({onKeyDown:ee,[ef[s]]:M,...s!==`intentional`&&{onClick:M}}),[ee,M,s]),re=U.useMemo(()=>({onKeyDown:ee,onPointerDown:te,onMouseDown:te,onClickCapture:N,onMouseDownCapture(e){N(),P(e)},onPointerDownCapture(e){N(),P(e)},onMouseUpCapture:N,onTouchEndCapture:N,onTouchMoveCapture:N}),[ee,N,P,te]);return U.useMemo(()=>n?{reference:ne,floating:re,trigger:ne}:{},[n,ne,re])}function af(e,t,n){let{reference:r,floating:i}=e,a=vl(t),o=yl(t),s=_l(o),c=ml(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(hl(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function of(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=pl(t,e),p=jl(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Ml(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Ml(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var sf=50,cf=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:of},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=af(l,r,c),f=r,p=0,m={};for(let n=0;ne<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==vl(t))||T.every(e=>vl(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=vl(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function uf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function df(e){return al.some(t=>e[t]>=0)}var ff=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=pl(e,t);switch(i){case`referenceHidden`:{let e=uf(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:df(e)}}}case`escaped`:{let e=uf(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:df(e)}}}default:return{}}}}},pf=new Set([`left`,`top`]);async function mf(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=ml(n),s=hl(n),c=vl(n)===`y`,l=pf.has(o)?-1:1,u=a&&c?-1:1,d=pl(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var hf=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await mf(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},gf=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=pl(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=vl(ml(i)),p=gl(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=fl(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=fl(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},_f=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=pl(e,t),u={x:n,y:r},d=vl(i),f=gl(d),p=u[f],m=u[d],h=pl(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;pn&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=pf.has(ml(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);mr&&(m=r)}return{[f]:p,[d]:m}}}},vf=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=pl(e,t),u=await o.detectOverflow(t,l),d=ml(i),f=hl(i),p=vl(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=ol(h-u[g],v),x=ol(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=sl(u.left,0),t=sl(u.right,0),n=sl(u.top,0),r=sl(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:sl(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:sl(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function yf(e){let t=ar(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=er(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=cl(n)!==a||cl(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function bf(e){return V(e)?e:e.contextElement}function xf(e){let t=bf(e);if(!er(t))return ul(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=yf(t),o=(a?cl(n.width):n.width)/r,s=(a?cl(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Sf=ul(0);function Cf(e){let t=$n(e);return!Yn()||!t.visualViewport?Sf:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wf(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==$n(e)?!1:t}function Tf(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=bf(e),o=ul(1);t&&(r?V(r)&&(o=xf(r)):o=xf(e));let s=wf(a,n,r)?Cf(a):ul(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=$n(a),t=r&&V(r)?$n(r):r,n=e,i=nr(n);for(;i&&r&&t!==n;){let e=xf(i),t=i.getBoundingClientRect(),r=ar(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=$n(i),i=nr(n)}}return Ml({width:u,height:d,x:c,y:l})}function Ef(e,t){let n=or(e).scrollLeft;return t?t.left+n:Tf(tr(e)).left+n}function Df(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Ef(e,n),y:n.top+t.scrollTop}}function Of(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=tr(r),s=t?Xn(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=ul(1),u=ul(0),d=er(r);if((d||!d&&!a)&&((cr(r)!==`body`||Jn(o))&&(c=or(r)),d)){let e=Tf(r);l=xf(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Df(o,c):ul(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function kf(e){return Array.from(e.getClientRects())}function Af(e){let t=tr(e),n=or(e),r=e.ownerDocument.body,i=sl(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=sl(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Ef(e),s=-n.scrollTop;return ar(r).direction===`rtl`&&(o+=sl(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var jf=25;function Mf(e,t){let n=$n(e),r=tr(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Yn();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Ef(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=jf&&(a-=o)}else l<=jf&&(a+=l);return{width:a,height:o,x:s,y:c}}function Nf(e,t){let n=Tf(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=er(e)?xf(e):ul(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Pf(e,t,n){let r;if(t===`viewport`)r=Mf(e,n);else if(t===`document`)r=Af(tr(e));else if(V(t))r=Nf(t,n);else{let n=Cf(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Ml(r)}function Ff(e,t){let n=rr(e);return n===t||!V(n)||hr(n)?!1:ar(n).position===`fixed`||Ff(n,t)}function If(e,t){let n=t.get(e);if(n)return n;let r=ir(e,[],!1).filter(e=>V(e)&&cr(e)!==`body`),i=null,a=ar(e).position===`fixed`,o=a?rr(e):e;for(;V(o)&&!hr(o);){let t=ar(o),n=pr(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||Jn(o)&&!n&&Ff(e,o))?r=r.filter(e=>e!==o):i=t,o=rr(o)}return t.set(e,r),r}function Lf(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Xn(t)?[]:If(t,this._c):[].concat(n),r],o=Pf(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e{o(!1,1e-7)},1e3)}n===1&&!Kf(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function Jf(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=bf(e),u=i||a?[...l?ir(l):[],...t?ir(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?qf(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Tf(e):null;c&&g();function g(){let t=Tf(e);h&&!Kf(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Yf=hf,Xf=gf,Zf=lf,Qf=vf,$f=ff,ep=_f,tp=(e,t,n)=>{let r=new Map,i={platform:Gf,...n},a={...i.platform,_c:r};return cf(e,t,{...i,platform:a})},np=typeof document<`u`?U.useLayoutEffect:function(){};function rp(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!rp(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!rp(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function ip(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ap(e,t){let n=ip(e);return Math.round(t*n)/n}function op(e){let t=U.useRef(e);return np(()=>{t.current=e}),t}function sp(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=U.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=U.useState(r);rp(f,r)||p(r);let[m,h]=U.useState(null),[g,_]=U.useState(null),v=U.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=U.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=U.useRef(null),C=U.useRef(null),w=U.useRef(u),T=c!=null,E=op(c),D=op(i),O=op(l),k=U.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),tp(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!rp(w.current,t)&&(w.current=t,Tu.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);np(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=U.useRef(!1);np(()=>(A.current=!0,()=>{A.current=!1}),[]),np(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let j=U.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),M=U.useMemo(()=>({reference:b,floating:x}),[b,x]),ee=U.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=ap(M.floating,u.x),r=ap(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...ip(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return U.useMemo(()=>({...u,update:k,refs:j,elements:M,floatingStyles:ee}),[u,k,j,M,ee])}var cp=(e,t)=>{let n=Yf(e);return{name:n.name,fn:n.fn,options:[e,t]}},lp=(e,t)=>{let n=Xf(e);return{name:n.name,fn:n.fn,options:[e,t]}},up=(e,t)=>({fn:ep(e).fn,options:[e,t]}),dp=(e,t)=>{let n=Zf(e);return{name:n.name,fn:n.fn,options:[e,t]}},fp=(e,t)=>{let n=Qf(e);return{name:n.name,fn:n.fn,options:[e,t]}},pp=(e,t)=>{let n=$f(e);return{name:n.name,fn:n.fn,options:[e,t]}},Q=(e,t,n,r,i,a,...o)=>{if(o.length>0)throw Error(Gt(1));let s;if(e&&t&&n&&r&&i&&a)s=(o,s,c,l)=>a(e(o,s,c,l),t(o,s,c,l),n(o,s,c,l),r(o,s,c,l),i(o,s,c,l),s,c,l);else if(e&&t&&n&&r&&i)s=(a,o,s,c)=>i(e(a,o,s,c),t(a,o,s,c),n(a,o,s,c),r(a,o,s,c),o,s,c);else if(e&&t&&n&&r)s=(i,a,o,s)=>r(e(i,a,o,s),t(i,a,o,s),n(i,a,o,s),a,o,s);else if(e&&t&&n)s=(r,i,a,o)=>n(e(r,i,a,o),t(r,i,a,o),i,a,o);else if(e&&t)s=(n,r,i,a)=>t(e(n,r,i,a),r,i,a);else if(e)s=e;else throw Error(`Missing arguments`);return s},mp=[],hp=void 0;function gp(){return hp}function _p(e){mp.push(e)}function vp(e){let t=(t,n)=>{let r=Bt(bp).current,i;try{hp=r;for(let e of mp)e.before(r);i=e(t,n);for(let e of mp)e.after(r);r.didInitialize=!0}finally{hp=void 0}return i};return t.displayName=e.displayName||e.name,t}function yp(e){return U.forwardRef(vp(e))}function bp(){return{didInitialize:!1}}var xp=ie(),Sp=ne(),Cp=Ut(19)?Ep:Dp;function wp(e,t,n,r,i){return Cp(e,t,n,r,i)}function Tp(e,t,n,r,i){let a=U.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,xp.useSyncExternalStore)(e.subscribe,a,a)}_p({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,xp.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Ep(e,t,n,r,i){let a=gp();if(!a)return Tp(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],(s.store!==e||s.selector!==t||!Object.is(s.a1,n)||!Object.is(s.a2,r)||!Object.is(s.a3,i))&&(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.didChange=!0)):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i),didChange:!1},a.syncHooks.push(s)),s.value}function Dp(e,t,n,r,i){return(0,Sp.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var Op=class{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return wp(this,e,t,n,r)}},kp=class extends Op{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){U.useDebugValue(e);let n=this;B(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;B(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;B(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){U.useDebugValue(e);let n=this,r=t!==void 0;B(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return U.useDebugValue(e),wp(this,this.selectors[e],t,n,r)}useContextCallback(e,t){U.useDebugValue(e);let n=ur(t??Ht);this.context[e]=n}useStateSetter(e){let t=U.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},Ap={open:Q(e=>e.open),transitionStatus:Q(e=>e.transitionStatus),domReferenceElement:Q(e=>e.domReferenceElement),referenceElement:Q(e=>e.positionReference??e.referenceElement),floatingElement:Q(e=>e.floatingElement),floatingId:Q(e=>e.floatingId)},jp=class extends kp{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:Ld(),nested:n,triggerElements:i},Ap),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&il(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{if(this.syncOnly){this.context.onOpenChange?.(e,t);return}this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}};function Mp(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:i,nested:a,onOpenChange:o}=e,s=t.useState(`open`),c=t.useState(`activeTriggerElement`),l=t.useState(n?`popupElement`:`positionerElement`),u=t.context.triggerElements,d=o,f=U.useRef(null);r===void 0&&f.current===null&&(f.current=new jp({open:s,transitionStatus:void 0,referenceElement:c,floatingElement:l,triggerElements:u,onOpenChange:d,floatingId:i,syncOnly:!0,nested:a}));let p=r??f.current;return t.useSyncedValue(`floatingId`,i),B(()=>{let e={open:s,floatingId:i,referenceElement:c,floatingElement:l};V(c)&&(e.domReferenceElement=c),p.state.positionReference===p.state.referenceElement&&(e.positionReference=c),p.update(e)},[s,i,c,l,p]),p.context.onOpenChange=d,p.context.nested=a,p}var Np={tabIndex:-1,[Lc]:``};function Pp(e,t,n=!1){let r=gr(),i=Bd()!=null,a=U.useRef(null);e===void 0&&a.current===null&&(a.current=t(r,i));let o=e??a.current;return Mp({popupStore:o,treatPopupAsFloatingElement:n,floatingRootContext:o.state.floatingRootContext,floatingId:r,nested:i,onOpenChange:o.setOpen}),{store:o,internalStore:a.current}}function Fp(e,t){let n=U.useRef(null),r=U.useRef(null);return U.useCallback(i=>{if(e===void 0)return;let a=!1;if(n.current!==null){let e=n.current,i=r.current,o=t.context.triggerElements.getById(e);i&&o===i&&(t.context.triggerElements.delete(e),a=!0),n.current=null,r.current=null}if(i!==null&&(n.current=e,r.current=i,t.context.triggerElements.add(e,i),a=!0),a){let e=t.context.triggerElements.size;t.select(`open`)&&t.state.triggerCount!==e&&t.set(`triggerCount`,e)}},[t,e])}function Ip(e,t,n){let r=n?.id??null;(r||t)&&(e.activeTriggerId=r,e.activeTriggerElement=n??null)}function Lp(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=Fp(e,n),o=ur(t=>{if(a(t),!t)return;let i=n.select(`open`),o=n.select(`activeTriggerId`);if(o===e){n.update({activeTriggerElement:t,...i?r:null});return}o==null&&i&&n.update({activeTriggerId:e,activeTriggerElement:t,...r})});return B(()=>{i&&n.update({activeTriggerElement:t.current,...r})},[i,n,t,...Object.values(r)]),{registerTrigger:o,isMountedByThisTrigger:i}}function Rp(e){let t=e.useState(`open`);B(()=>{if(!t){e.state.triggerCount!==0&&e.set(`triggerCount`,0);return}let n=e.context.triggerElements.size,r={};if(e.state.triggerCount!==n&&(r.triggerCount=n),!e.select(`activeTriggerId`)&&n===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,n]=t.value;r.activeTriggerId=e,r.activeTriggerElement=n}}(r.triggerCount!==void 0||r.activeTriggerId!==void 0)&&e.update(r)},[t,e,e.useState(`triggerCount`)])}function zp(e,t,n){let{mounted:r,setMounted:i,transitionStatus:a}=Ou(e);t.useSyncedValues({mounted:r,transitionStatus:a});let o=ur(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)}),s=t.useState(`preventUnmountingOnClose`);return Du({enabled:r&&!e&&!s,open:e,ref:t.context.popupRef,onComplete(){e||o()}}),{forceUnmount:o,transitionStatus:a}}function Bp(e,t){e.useSyncedValues(t),B(()=>()=>{e.update({activeTriggerProps:Lt,inactiveTriggerProps:Lt,popupProps:Lt})},[e])}function Vp(e,t){B(()=>{!t&&e.state.openMethod!==null&&e.set(`openMethod`,null)},[t,e]),B(()=>()=>{e.state.openMethod!==null&&e.set(`openMethod`,null)},[e])}var Hp=class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let n=this.idMap.get(e);n!==t&&(n!==void 0&&this.elementsSet.delete(n),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}};function Up(){return new jp({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new Hp,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function Wp(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:Up(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:Lt,inactiveTriggerProps:Lt,popupProps:Lt}}function Gp(e,t,n=!1){return new jp({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0})}var Kp=Q(e=>e.triggerIdProp??e.activeTriggerId),qp=Q(e=>e.openProp??e.open),Jp=Q(e=>(e.popupElement?.id??e.floatingId)||void 0);function Yp(e,t){return t!==void 0&&qp(e)&&Kp(e)===t}function Xp(e,t){return Yp(e,t)?!0:t!==void 0&&qp(e)&&Kp(e)==null&&e.triggerCount===1}var Zp={open:qp,mounted:Q(e=>e.mounted),transitionStatus:Q(e=>e.transitionStatus),floatingRootContext:Q(e=>e.floatingRootContext),triggerCount:Q(e=>e.triggerCount),preventUnmountingOnClose:Q(e=>e.preventUnmountingOnClose),payload:Q(e=>e.payload),activeTriggerId:Kp,activeTriggerElement:Q(e=>e.mounted?e.activeTriggerElement:null),popupId:Jp,isTriggerActive:Q((e,t)=>t!==void 0&&Kp(e)===t),isOpenedByTrigger:Q((e,t)=>Yp(e,t)),isMountedByTrigger:Q((e,t)=>t!==void 0&&Kp(e)===t&&e.mounted),triggerProps:Q((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),triggerPopupId:Q((e,t)=>Xp(e,t)?Jp(e):void 0),popupProps:Q(e=>e.popupProps),popupElement:Q(e=>e.popupElement),positionerElement:Q(e=>e.positionerElement)};function Qp(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=gr(),a=Bd()!=null,o=Bt(()=>new jp({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new Hp,floatingId:i,syncOnly:!1,nested:a})).current;return B(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=V(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o}function $p(e={}){let{nodeId:t,externalTree:n}=e,r=Qp(e),i=e.rootContext||r,a=i.useState(`referenceElement`),o=i.useState(`floatingElement`),s=i.useState(`domReferenceElement`),c=i.useState(`open`),l=i.useState(`floatingId`),[u,d]=U.useState(null),[f,p]=U.useState(void 0),[m,h]=U.useState(void 0),g=U.useRef(null),_=Vd(n),v=U.useMemo(()=>({reference:a,floating:o,domReference:s}),[a,o,s]),y=sp({...e,elements:{...v,...u&&{reference:u}}}),b=V(f)?f:null,x=m===void 0?i.state.floatingElement:m;i.useSyncedValue(`referenceElement`,f??null),i.useSyncedValue(`domReferenceElement`,f===void 0?s:b),i.useSyncedValue(`floatingElement`,x);let S=U.useCallback(e=>{let t=V(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;d(t),y.refs.setReference(t)},[y.refs]),C=U.useCallback(e=>{(V(e)||e===null)&&(g.current=e,p(e)),(V(y.refs.reference.current)||y.refs.reference.current===null||e!==null&&!V(e))&&y.refs.setReference(e)},[y.refs,p]),w=U.useCallback(e=>{h(e),y.refs.setFloating(e)},[y.refs]),T=U.useMemo(()=>({...y.refs,setReference:C,setFloating:w,setPositionReference:S,domReference:g}),[y.refs,C,w,S]),E=U.useMemo(()=>({...y.elements,domReference:s}),[y.elements,s]),D=U.useMemo(()=>({...y,dataRef:i.context.dataRef,open:c,onOpenChange:i.setOpen,events:i.context.events,floatingId:l,refs:T,elements:E,nodeId:t,rootStore:i}),[y,T,E,t,i,c,l]);return B(()=>{s&&(g.current=s)},[s]),B(()=>{i.context.dataRef.current.floatingContext=D;let e=_?.nodesRef.current.find(e=>e.id===t);e&&(e.context=D)}),U.useMemo(()=>({...y,context:D,refs:T,elements:E,rootStore:i}),[y,T,E,D,i])}var em=Mc&&Ac;function tm(e,t={}){let{enabled:n=!0,delay:r}=t,i=`rootStore`in e?e.rootStore:e,{events:a,dataRef:o}=i.context,s=U.useRef(!1),c=U.useRef(null),l=U.useRef(!0),u=hu();U.useEffect(()=>{let e=i.select(`domReferenceElement`);if(!n)return;let t=$n(e);function r(){let e=i.select(`domReferenceElement`);!i.select(`open`)&&er(e)&&e===Ar(jr(e))&&(s.current=!0)}function a(){l.current=!0}function o(){l.current=!1}return sd(X(t,`blur`,r),em&&X(t,`keydown`,a,!0),em&&X(t,`pointerdown`,o,!0))},[i,n]),U.useEffect(()=>{if(!n)return;function e(e){if(e.reason===`trigger-press`||e.reason===`escape-key`){let e=i.select(`domReferenceElement`);V(e)&&(c.current=e,s.current=!0)}}return a.on(`openchange`,e),()=>{a.off(`openchange`,e)}},[a,n,i]);let d=U.useMemo(()=>{function e(){s.current=!1,c.current=null}return{onMouseLeave(){e()},onFocus(t){let n=t.currentTarget;if(s.current){if(c.current===n)return;e()}let a=yr(t.nativeEvent);if(V(a)){if(em&&!t.relatedTarget){if(!l.current&&!Kc(a))return}else if(!Yc(a))return}let o=Uc(t.relatedTarget,i.context.triggerElements),{nativeEvent:d,currentTarget:f}=t,p=typeof r==`function`?r():r;if(i.select(`open`)&&o||p===0||p===void 0){i.setOpen(!0,kr(wr,d,f));return}u.start(p,()=>{s.current||i.setOpen(!0,kr(wr,d,f))})},onBlur(t){e();let n=t.relatedTarget,r=t.nativeEvent,a=V(n)&&n.hasAttribute(md(`focus-guard`))&&n.getAttribute(`data-type`)===`outside`;u.start(0,()=>{let e=i.select(`domReferenceElement`),t=Ar(jr(e));!n&&t===e||H(o.current.floatingContext?.refs.floating.current,t)||H(e,t)||a||Uc(n??t,i.context.triggerElements)||i.setOpen(!1,kr(wr,r))})}}},[o,r,i,u]);return U.useMemo(()=>n?{reference:d,trigger:d}:{},[n,d])}var nm=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new mu,this.restTimeout=new mu,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},rm=new WeakMap;function im(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&rm.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),rm.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function am(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=rm.get(n);a&&a!==e&&im(a),im(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,rm.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function om(e){let t=e.context.dataRef.current,n=Bt(()=>t.hoverInteractionState??nm.create()).current;return t.hoverInteractionState||=n,fu(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function sm(e,t={}){let{enabled:n=!0,closeDelay:r=0,nodeId:i}=t,a=`rootStore`in e?e.rootStore:e,o=a.useState(`open`),s=a.useState(`floatingElement`),c=a.useState(`domReferenceElement`),{dataRef:l}=a.context,u=Vd(),d=Bd(),f=om(a),p=hu(),m=ur(()=>nd(l.current.openEvent?.type,f.interactedInside)),h=ur(()=>rd(l.current.openEvent?.type)),g=ur(()=>{im(f)});B(()=>{o||(f.pointerType=void 0,f.restTimeoutPending=!1,f.interactedInside=!1,g())},[o,f,g]),U.useEffect(()=>g,[g]),B(()=>{if(n&&o&&f.handleCloseOptions?.blockPointerEvents&&h()&&V(c)&&s){let e=c,t=s,n=jr(s),r=u?.nodesRef.current.find(e=>e.id===d)?.context?.elements.floating;r&&(r.style.pointerEvents=``);let i=f.pointerEventsScopeElement===t?null:f.pointerEventsScopeElement,a=r===t?null:r;return am(f,{scopeElement:f.handleCloseOptions?.getScope?.()??i??a??e.closest(`[data-rootownerid]`)??n.body,referenceElement:e,floatingElement:t}),()=>{g()}}},[n,o,c,s,f,h,u,d,g]),U.useEffect(()=>{if(!n)return;function e(){return!!(u&&d&&Zc(u.nodesRef.current,d).length>0)}function t(e){let t=ed(r,`close`,f.pointerType),n=()=>{a.setOpen(!1,kr(Sr,e)),u?.events.emit(`floating.closed`,e)};t?f.openChangeTimeout.start(t,n):(f.openChangeTimeout.clear(),n())}function o(e){let t=yr(e);if(!qc(t)){f.interactedInside=!1;return}f.interactedInside=t?.closest(`[aria-haspopup]`)!=null}function c(){f.openChangeTimeout.clear(),p.clear(),u?.events.off(`floating.closed`,_),g()}function h(n){if(e()&&u){u.events.on(`floating.closed`,_);return}if(Uc(n.relatedTarget,a.context.triggerElements))return;let r=l.current.floatingContext?.nodeId??i,o=n.relatedTarget;if(!(u&&r&&V(o)&&Zc(u.nodesRef.current,r,!1).some(e=>H(e.context?.elements.floating,o)))){if(f.handler){f.handler(n);return}g(),m()||t(n)}}function _(t){!u||!d||e()||p.start(0,()=>{u.events.off(`floating.closed`,_),a.setOpen(!1,kr(Sr,t)),u.events.emit(`floating.closed`,t)})}let v=s;return sd(v&&X(v,`mouseenter`,c),v&&X(v,`mouseleave`,h),v&&X(v,`pointerdown`,o,!0),()=>{u?.events.off(`floating.closed`,_)})},[n,s,a,l,r,i,m,g,f,u,d,p])}var cm={current:null};function lm(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:o=0,move:s=!0,triggerElementRef:c=cm,externalTree:l,isActiveTrigger:u=!0,getHandleCloseContext:d,isClosing:f,shouldOpen:p}=t,m=`rootStore`in e?e.rootStore:e,{dataRef:h,events:g}=m.context,_=Vd(l),v=om(m),y=U.useRef(!1),b=cd(i),x=cd(r),S=cd(o),C=cd(n),w=cd(p),T=cd(f),E=ur(()=>nd(h.current.openEvent?.type,v.interactedInside)),D=ur(()=>w.current?.()!==!1),O=ur((e,t,n)=>{let r=m.context.triggerElements;if(r.hasElement(t))return!e||!H(e,t);if(!V(n))return!1;let i=n;return r.hasMatchingElement(e=>H(e,i))&&(!e||!H(e,i))}),k=ur(()=>{v.handler&&=(jr(m.select(`domReferenceElement`)).removeEventListener(`mousemove`,v.handler),void 0)}),A=ur(()=>{im(v)});return u&&(v.handleCloseOptions=b.current?.__options),U.useEffect(()=>k,[k]),U.useEffect(()=>{if(!n)return;function e(e){e.open?y.current=!1:(y.current=e.reason===Sr,k(),v.openChangeTimeout.clear(),v.restTimeout.clear(),v.blockMouseMove=!0,v.restTimeoutPending=!1)}return g.on(`openchange`,e),()=>{g.off(`openchange`,e)}},[n,g,v,k]),U.useEffect(()=>{if(!n)return;function e(e,t=!0){let n=ed(x.current,`close`,v.pointerType);n?v.openChangeTimeout.start(n,()=>{m.setOpen(!1,kr(Sr,e)),_?.events.emit(`floating.closed`,e)}):t&&(v.openChangeTimeout.clear(),m.setOpen(!1,kr(Sr,e)),_?.events.emit(`floating.closed`,e))}let t=c.current??(u?m.select(`domReferenceElement`):null);if(!V(t))return;function r(e){if(v.openChangeTimeout.clear(),v.blockMouseMove=!1,a&&!rl(v.pointerType))return;let t=td(S.current),n=ed(x.current,`open`,v.pointerType),r=yr(e),i=e.currentTarget??null,o=m.select(`domReferenceElement`),s=i;if(V(r)&&!m.context.triggerElements.hasElement(r)){for(let e of m.context.triggerElements.elements())if(H(e,r)){s=e;break}}V(i)&&V(o)&&!m.context.triggerElements.hasElement(i)&&H(i,o)&&(s=o);let c=s==null?!1:O(o,s,r),l=m.select(`open`),u=T.current?.()??m.select(`transitionStatus`)===`ending`,d=!l&&u&&y.current,f=!c&&V(s)&&V(o)&&H(o,s)&&d,p=t>0&&!n,h=c&&(l||d)||f,g=!l||c;if(h){D()&&m.setOpen(!0,kr(Sr,e,s));return}p||(n?v.openChangeTimeout.start(n,()=>{g&&D()&&m.setOpen(!0,kr(Sr,e,s))}):g&&D()&&m.setOpen(!0,kr(Sr,e,s)))}function i(t){if(E()){A();return}k();let n=jr(m.select(`domReferenceElement`));v.restTimeout.clear(),v.restTimeoutPending=!1;let r=h.current.floatingContext??d?.();if(!Uc(t.relatedTarget,m.context.triggerElements)){if(b.current&&r){m.select(`open`)||v.openChangeTimeout.clear();let i=c.current;v.handler=b.current({...r,tree:_,x:t.clientX,y:t.clientY,onClose(){A(),k(),C.current&&!E()&&i===m.select(`domReferenceElement`)&&e(t,!0)}}),n.addEventListener(`mousemove`,v.handler),v.handler(t);return}(v.pointerType!==`touch`||!H(m.select(`floatingElement`),t.relatedTarget))&&e(t)}}return s?sd(X(t,`mousemove`,r,{once:!0}),X(t,`mouseenter`,r),X(t,`mouseleave`,i)):sd(X(t,`mouseenter`,r),X(t,`mouseleave`,i))},[k,A,h,x,m,n,b,v,u,O,E,a,s,S,c,_,C,d,T,D]),U.useMemo(()=>{if(!n)return;function e(e){v.pointerType=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,n=e.currentTarget,r=m.select(`domReferenceElement`),i=m.select(`open`),o=O(r,n,e.target);if(a&&!rl(v.pointerType))return;if(i&&o&&v.handleCloseOptions?.blockPointerEvents){let e=m.select(`floatingElement`);e&&am(v,{scopeElement:v.handleCloseOptions?.getScope?.()??n.ownerDocument.body,referenceElement:n,floatingElement:e})}let s=td(S.current);if(i&&!o||s===0||!o&&v.restTimeoutPending&&e.movementX**2+e.movementY**2<2)return;v.restTimeout.clear();function c(){if(v.restTimeoutPending=!1,E())return;let e=m.select(`open`);!v.blockMouseMove&&(!e||o)&&D()&&m.setOpen(!0,kr(Sr,t,n))}v.pointerType===`touch`?Tu.flushSync(()=>{c()}):o&&i?c():(v.restTimeoutPending=!0,v.restTimeout.start(s,c))}}},[n,v,E,O,a,m,S,D])}var um=.1,dm=um*um,fm=.5;function pm(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function mm(e,t,n,r,i,a,o,s,c,l){let u=!1;return pm(e,t,n,r,i,a)&&(u=!u),pm(e,t,i,a,o,s)&&(u=!u),pm(e,t,o,s,c,l)&&(u=!u),pm(e,t,c,l,n,r)&&(u=!u),u}function hm(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function gm(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function _m(e={}){let{blockPointerEvents:t=!1}=e,n=new mu,r=({x:e,y:t,placement:r,elements:i,onClose:a,nodeId:o,tree:s})=>{let c=r?.split(`-`)[0],l=!1,u=null,d=null,f=typeof performance<`u`?performance.now():0;function p(e,t){let n=performance.now(),r=n-f;if(u===null||d===null||r===0)return u=e,d=t,f=n,!1;let i=e-u,a=t-d,o=i*i+a*a,s=r*r*dm;return u=e,d=t,f=n,o0)}function b(){y()||m()}if(y())return;let x=a.getBoundingClientRect(),S=u.getBoundingClientRect(),C=e>S.right-S.width/2,w=t>S.bottom-S.height/2,T=S.width>x.width,E=S.height>x.height,D=(T?x:S).left,O=(T?x:S).right,k=(E?x:S).top,A=(E?x:S).bottom;if(c===`top`&&t>=x.bottom-1||c===`bottom`&&t<=x.top+1||c===`left`&&e>=x.right-1||c===`right`&&e<=x.left+1){b();return}let j=!1;switch(c){case`top`:j=gm(d,f,D,x.top+1,O,S.bottom-1);break;case`bottom`:j=gm(d,f,D,S.top+1,O,x.bottom-1);break;case`left`:j=gm(d,f,S.right-1,A,x.left+1,k);break;case`right`:j=gm(d,f,x.right-1,A,S.left+1,k);break;default:}if(j)return;if(l&&!hm(d,f,x)){b();return}if(!g&&p(d,f)){b();return}let M=!1;switch(c){case`top`:{let n=T?fm/2:fm*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t+fm+1,o=C||T?S.bottom-fm:S.top,s=C?T?S.bottom-fm:S.top:S.bottom-fm;M=mm(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=T?fm/2:fm*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t-fm,o=C||T?S.top+fm:S.bottom,s=C?T?S.top+fm:S.bottom:S.top+fm;M=mm(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=E?fm/2:fm*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e+fm+1,o=w||E?S.right-fm:S.left,s=w?E?S.right-fm:S.left:S.right-fm;M=mm(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=E?fm/2:fm*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e-fm,o=w||E?S.left+fm:S.right,s=w?E?S.left+fm:S.right:S.left+fm;M=mm(d,f,a,r,a,i,o,S.top,s,S.bottom);break}default:}M?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}var vm=function(e){return e.nestedDialogs=`--nested-dialogs`,e}({}),ym=function(e){return e[e.open=zu.open]=`open`,e[e.closed=zu.closed]=`closed`,e[e.startingStyle=zu.startingStyle]=`startingStyle`,e[e.endingStyle=zu.endingStyle]=`endingStyle`,e.nested=`data-nested`,e.nestedDialogOpen=`data-nested-dialog-open`,e}({}),bm=U.createContext(void 0);function xm(){let e=U.useContext(bm);if(e===void 0)throw Error(Gt(26));return e}var Sm=`ArrowUp`,Cm=`ArrowDown`,wm=`ArrowLeft`,Tm=`ArrowRight`,Em=`Home`,Dm=new Set([wm,Tm]),Om=new Set([wm,Tm,Em,`End`]),km=new Set([Sm,Cm]),Am=new Set([Sm,Cm,Em,`End`]),jm=new Set([...Dm,...km]),Mm=new Set([...jm,Em,`End`]),Nm=new Set([`Shift`,`Control`,`Alt`,`Meta`]);function Pm(e){return er(e)&&e.tagName===`INPUT`}function Fm(e){return!!(Pm(e)&&e.selectionStart!=null||er(e)&&e.tagName===`TEXTAREA`)}function Im(e,t,n,r){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,a=e.scrollTop,o=e.clientWidthe.scrollLeft+e.clientWidth-a.scrollPaddingRight?i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight:r-o.scrollMarginLefte.scrollLeft+e.clientWidth-a.scrollPaddingRight&&(i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight))}if(s&&r!==`horizontal`){let n=Lm(e,t,`top`),r=Rm(e),i=Rm(t);n-i.scrollMarginTope.scrollTop+e.clientHeight-r.scrollPaddingBottom&&(a=n+t.offsetHeight+i.scrollMarginBottom-e.clientHeight+r.scrollPaddingBottom)}e.scrollTo({left:i,top:a,behavior:`auto`})}function Lm(e,t,n){let r=n===`left`?`offsetLeft`:`offsetTop`,i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);)t=t.offsetParent;return i}function Rm(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}var zm={...Ju,...wu,nestedDialogOpen(e){return e?{[ym.nestedDialogOpen]:``}:null}},Bm=U.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,initialFocus:o,...s}=e,{store:c}=Ru(),l=c.useState(`descriptionElementId`),u=c.useState(`disablePointerDismissal`),d=c.useState(`floatingRootContext`),f=c.useState(`popupProps`),p=c.useState(`modal`),m=c.useState(`mounted`),h=c.useState(`nested`),g=c.useState(`nestedOpenDialogCount`),_=c.useState(`open`),v=c.useState(`openMethod`),y=c.useState(`titleElementId`),b=c.useState(`transitionStatus`),x=c.useState(`role`),S=d.useState(`floatingId`),C=s.id??S;xm(),Du({open:_,ref:c.context.popupRef,onComplete(){_&&c.context.onOpenChangeComplete?.(!0)}});function w(e){return e===`touch`?c.context.popupRef.current:!0}let T=o===void 0?w:o,E=g>0,D=c.useStateSetter(`popupElement`),O=Vt(`div`,e,{state:{open:_,nested:h,transitionStatus:b,nestedDialogOpen:E},props:[f,{id:C,"aria-labelledby":y??void 0,"aria-describedby":l??void 0,role:x,...Np,hidden:!m,onKeyDown(e){Mm.has(e.key)&&e.stopPropagation()},style:{[vm.nestedDialogs]:g}},s],ref:[t,c.context.popupRef,D],stateAttributesMapping:zm});return(0,W.jsx)(Xd,{context:d,openInteractionType:v,disabled:!m,closeOnFocusOut:!u,initialFocus:T,returnFocus:a,modal:p!==!1,restoreFocus:`popup`,children:O})});function Vm(e){return Ut(19)?e:e?`true`:void 0}var Hm=U.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,W.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})}),Um=U.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i}=Ru(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,W.jsx)(bm.Provider,{value:n,children:(0,W.jsxs)(Id,{ref:t,...r,children:[a&&o===!0&&(0,W.jsx)(Hm,{ref:i.context.internalBackdropRef,inert:Vm(!s)}),e.children]})}):null});function Wm(e){let t=U.useRef(!0);t.current&&(t.current=!1,e())}var Gm={},Km={},qm=``;function Jm(e){if(typeof document>`u`)return!1;let t=jr(e);return $n(t).innerWidth-t.documentElement.clientWidth>0}function Ym(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=jr(e),n=t.documentElement,r=t.body,i=Jn(n)?n:r,a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function Xm(e){let t=jr(e),n=t.documentElement,r=t.body,i=Jn(n)?n:r,a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function Zm(e){let t=jr(e),n=t.documentElement,r=t.body,i=$n(n),a=0,o=0,s=!1,c=vu.create();if(Oc&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,Gm={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},qm=n.style.scrollBehavior,Km={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=Jn(n)?n:r;if(s=Ym(e),s){n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`;return}Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflow:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`}function u(){Object.assign(n.style,Gm),Object.assign(r.style,Km),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=qm)}function d(){u(),c.request(l)}l();let f=X(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var Qm=new class{lockCount=0;restore=null;timeoutLock=mu.create();timeoutUnlock=mu.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=jr(e).documentElement,n=$n(t).getComputedStyle(t).overflowY;if(n===`hidden`||n===`clip`){this.restore=Ht;return}let r=kc||!Jm(e);this.restore=r?Xm(e):Zm(e)}};function $m(e=!0,t=null){B(()=>{if(e)return Qm.acquire(t)},[e,t])}function eh(e){let{store:t,parentContext:n,actionsRef:r,isDrawer:i}=e,a=t.useState(`open`);Vp(t,a),Rp(t);let{forceUnmount:o}=zp(a,t),s=U.useCallback(()=>{t.setOpen(!1,kr(Or))},[t]);return U.useImperativeHandle(r,()=>({unmount:o,close:s}),[o,s]),{parentContext:n,isDrawer:i}}function th({store:e,dialogRoot:t}){let{parentContext:n,isDrawer:r}=t,i=e.useState(`open`),a=e.useState(`disablePointerDismissal`),o=e.useState(`modal`),s=e.useState(`popupElement`),c=e.useState(`floatingRootContext`),[l,u]=U.useState(0),[d,f]=U.useState(0),p=l===0,m=rf(c,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?`intentional`:{mouse:o===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||`button`in t&&t.button!==0||`touches`in t&&t.touches.length!==1)return!1;let n=yr(t);if(p&&!a){let t=n;return o&&(e.context.internalBackdropRef.current||e.context.backdropRef.current)?e.context.internalBackdropRef.current===t||e.context.backdropRef.current===t||H(t,s)&&!t?.hasAttribute(`data-base-ui-portal`):!0}return!1},escapeKey:p});return $m(i&&o===!0,s),e.useContextCallback(`onNestedDialogOpen`,(e,t)=>{u(e),f(t)}),e.useContextCallback(`onNestedDialogClose`,()=>{u(0),f(0)}),U.useEffect(()=>(n?.onNestedDialogOpen&&i&&n.onNestedDialogOpen(l+1,d+ +!!r),n?.onNestedDialogClose&&!i&&n.onNestedDialogClose(),()=>{n?.onNestedDialogClose&&i&&n.onNestedDialogClose()}),[r,i,l,d,n]),Bp(e,{activeTriggerProps:m.reference??Lt,inactiveTriggerProps:m.trigger??Lt,popupProps:U.useMemo(()=>zt(Np,m.floating),[m.floating]),nestedOpenDialogCount:l,nestedOpenDrawerCount:d}),null}var nh={...Zp,modal:Q(e=>e.modal),nested:Q(e=>e.nested),nestedOpenDialogCount:Q(e=>e.nestedOpenDialogCount),nestedOpenDrawerCount:Q(e=>e.nestedOpenDrawerCount),disablePointerDismissal:Q(e=>e.disablePointerDismissal),openMethod:Q(e=>e.openMethod),descriptionElementId:Q(e=>e.descriptionElementId),titleElementId:Q(e=>e.titleElementId),viewportElement:Q(e=>e.viewportElement),role:Q(e=>e.role)},rh=class e extends kp{constructor(e,t,n=!1){let r=new Hp,i=ih(e);i.floatingRootContext=Gp(r,t,n),super(i,{popupRef:U.createRef(),backdropRef:U.createRef(),internalBackdropRef:U.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:r,onOpenChange:void 0,onOpenChangeComplete:void 0},nh)}setOpen=(e,t)=>{if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let n={open:e};Ip(n,e,t.trigger),this.update(n)};static useStore(t,n){return Pp(t,(t,r)=>new e(n,t,r),!0).store}};function ih(e={}){return{...Wp(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:`dialog`,...e}}function ah(e,t=`dialog`){let{children:n,open:r,defaultOpen:i=!1,onOpenChange:a,onOpenChangeComplete:o,disablePointerDismissal:s=!1,modal:c=!0,actionsRef:l,handle:u,triggerId:d,defaultTriggerId:f=null}=e,p=t===`drawer`,m=t===`alert-dialog`,h=m?!0:c,g=m||s,_=m?`alertdialog`:`dialog`,v=Ru(!0),y={modal:h,disablePointerDismissal:g,nested:!!v,role:_},b=rh.useStore(u?.store,{open:i,openProp:r,activeTriggerId:f,triggerIdProp:d,...y});Wm(()=>{let e=r===void 0&&b.state.open===!1&&i===!0?{open:!0,activeTriggerId:f}:null;m?b.update(e?{...y,...e}:y):e&&b.update(e)}),b.useControlledProp(`openProp`,r),b.useControlledProp(`triggerIdProp`,d),b.useSyncedValues(y),b.useContextCallback(`onOpenChange`,a),b.useContextCallback(`onOpenChangeComplete`,o);let x=b.useState(`open`),S=b.useState(`mounted`),C=b.useState(`payload`),w=eh({store:b,actionsRef:l,parentContext:v?.store.context,isDrawer:p}),T=x||S,E=U.useMemo(()=>({store:b}),[b]);return(0,W.jsx)(Iu.Provider,{value:!1,children:(0,W.jsxs)(Lu.Provider,{value:E,children:[T&&(0,W.jsx)(th,{store:b,dialogRoot:w}),typeof n==`function`?n({payload:C}):n]})})}function oh(e){return ah(e,U.useContext(Iu)?`drawer`:`dialog`)}var sh=U.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{store:s}=Ru(),c=_r(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),Vt(`h2`,e,{ref:t,props:[{id:c},o]})});function ch(e){let t=(0,xs.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,W.jsx)(oh,{"data-slot":`sheet`,...n}),t[2]=n,t[3]=r),r}function lh(e){let t=(0,xs.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,W.jsx)(Um,{"data-slot":`sheet-portal`,...n}),t[2]=n,t[3]=r),r}function uh(e){let t=(0,xs.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=un(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:animate-out data-open:animate-in fixed inset-0 z-50 bg-black/80 duration-100 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(Xu,{className:i,"data-slot":`sheet-overlay`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function dh(e){let t=(0,xs.c)(17),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:r,children:n,side:a,showCloseButton:o,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=a===void 0?`right`:a,c=o===void 0?!0:o,l;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,W.jsx)(uh,{}),t[6]=l):l=t[6];let u;t[7]===r?u=t[8]:(u=un(`data-[side=right]:data-closed:slide-out-to-right-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=top]:data-closed:slide-out-to-top-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:fade-out-0 data-open:fade-in-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=bottom]:data-open:slide-in-from-bottom-10 data-closed:animate-out data-open:animate-in fixed z-50 flex flex-col bg-background bg-clip-padding text-xs/relaxed shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm`,r),t[7]=r,t[8]=u);let d;t[9]===c?d=t[10]:(d=c&&(0,W.jsxs)(Zu,{"data-slot":`sheet-close`,render:(0,W.jsx)(dr,{className:`absolute top-4 right-4`,size:`icon-sm`,variant:`ghost`}),children:[(0,W.jsx)(fc,{}),(0,W.jsx)(`span`,{className:`sr-only`,children:`Close`})]}),t[9]=c,t[10]=d);let f;return t[11]!==n||t[12]!==i||t[13]!==s||t[14]!==u||t[15]!==d?(f=(0,W.jsxs)(lh,{children:[l,(0,W.jsxs)(Bm,{className:u,"data-side":s,"data-slot":`sheet-content`,...i,children:[n,d]})]}),t[11]=n,t[12]=i,t[13]=s,t[14]=u,t[15]=d,t[16]=f):f=t[16],f}function fh(e){let t=(0,xs.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=un(`flex flex-col gap-1.5 p-6`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(`div`,{className:i,"data-slot":`sheet-header`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function ph(e){let t=(0,xs.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=un(`text-sm font-medium text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(sh,{className:i,"data-slot":`sheet-title`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function mh(e){let t=(0,xs.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=un(`text-xs/relaxed text-muted-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(Qu,{className:i,"data-slot":`sheet-description`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var hh=U.createContext(void 0);function gh(e){let t=U.useContext(hh);if(t===void 0&&!e)throw Error(Gt(72));return t}var _h={...Zp,disabled:Q(e=>e.disabled),instantType:Q(e=>e.instantType),isInstantPhase:Q(e=>e.isInstantPhase),trackCursorAxis:Q(e=>e.trackCursorAxis),disableHoverablePopup:Q(e=>e.disableHoverablePopup),lastOpenChangeReason:Q(e=>e.openChangeReason),closeOnClick:Q(e=>e.closeOnClick),closeDelay:Q(e=>e.closeDelay),hasViewport:Q(e=>e.hasViewport)},vh=class e extends kp{constructor(e,t,n=!1){let r=new Hp,i={...yh(),...e};i.floatingRootContext=Gp(r,t,n),super(i,{popupRef:U.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:r},_h)}setOpen=(e,t)=>{let n=t.reason,r=n===Sr,i=e&&n===`trigger-focus`,a=!e&&(n===`trigger-press`||n===`escape-key`);if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let o=()=>{let r={open:e,openChangeReason:n};i?r.instantType=`focus`:a?r.instantType=`dismiss`:n===`trigger-hover`&&(r.instantType=void 0),Ip(r,e,t.trigger),this.update(r)};r?Tu.flushSync(o):o()};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,kr(xr,e))}static useStore(t,n){return Pp(t,(t,r)=>new e(n,t,r)).store}};function yh(){return{...Wp(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}var bh=vp(function(e){let{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:i=!1,trackCursorAxis:a=`none`,actionsRef:o,onOpenChange:s,onOpenChangeComplete:c,handle:l,triggerId:u,defaultTriggerId:d=null,children:f}=e,p=vh.useStore(l?.store,{open:n,openProp:r,activeTriggerId:d,triggerIdProp:u});Wm(()=>{r===void 0&&p.state.open===!1&&n===!0&&p.update({open:!0,activeTriggerId:d})}),p.useControlledProp(`openProp`,r),p.useControlledProp(`triggerIdProp`,u),p.useContextCallback(`onOpenChange`,s),p.useContextCallback(`onOpenChangeComplete`,c);let m=p.useState(`open`),h=!t&&m,g=p.useState(`activeTriggerId`),_=p.useState(`mounted`),v=p.useState(`payload`);p.useSyncedValues({trackCursorAxis:a,disableHoverablePopup:i}),p.useSyncedValue(`disabled`,t),Rp(p);let{forceUnmount:y,transitionStatus:b}=zp(h,p),x=p.useState(`isInstantPhase`),S=p.useState(`instantType`),C=p.useState(`lastOpenChangeReason`),w=U.useRef(null);B(()=>{m&&t&&p.setOpen(!1,kr(Cr))},[m,t,p]),B(()=>{b===`ending`&&C===`none`||b!==`ending`&&x?(S!==`delay`&&(w.current=S),p.set(`instantType`,`delay`)):w.current!==null&&(p.set(`instantType`,w.current),w.current=null)},[b,x,C,S,p]),B(()=>{h&&(g??p.set(`payload`,void 0))},[p,g,h]);let T=U.useCallback(()=>{p.setOpen(!1,kr(Or))},[p]);U.useImperativeHandle(o,()=>({unmount:y,close:T}),[y,T]);let E=h||_||!t&&a!==`none`;return(0,W.jsxs)(hh.Provider,{value:p,children:[E&&(0,W.jsx)(xh,{store:p,disabled:t,trackCursorAxis:a}),typeof f==`function`?f({payload:v}):f]})});function xh({store:e,disabled:t,trackCursorAxis:n}){let r=e.useState(`floatingRootContext`),i=rf(r,{enabled:!t,referencePress:()=>e.select(`closeOnClick`)}),a=$d(r,{enabled:!t&&n!==`none`,axis:n===`none`?void 0:n});return Bp(e,{activeTriggerProps:U.useMemo(()=>zt(a.reference,i.reference),[a.reference,i.reference]),inactiveTriggerProps:U.useMemo(()=>zt(a.trigger,i.trigger),[a.trigger,i.trigger]),popupProps:U.useMemo(()=>zt(Np,a.floating,i.floating),[a.floating,i.floating])}),null}var Sh=U.createContext(void 0);function Ch(){return U.useContext(Sh)}var wh=function(e){return e[e.popupOpen=Bu.popupOpen]=`popupOpen`,e.triggerDisabled=`data-trigger-disabled`,e}({}),Th=`data-base-ui-tooltip-trigger`;function Eh(e){if(`composedPath`in e){let t=e.composedPath();for(let e=0;em.select(`transitionStatus`)===`ending`,shouldOpen(){return!N.current}}),F=tm(v,{enabled:!A}).reference,oe=e=>{let t=N.current,n=Eh(e),r=ie(n),i=y.current,a=i&&n&&H(i,n);if(r&&m.select(`open`)&&m.select(`lastOpenChangeReason`)===`trigger-hover`){m.setOpen(!1,kr(Sr,e));return}if(t&&!r&&a&&!j.current&&!m.select(`open`)&&i&&rl(te.current)){let t=()=>{!N.current&&!j.current&&!m.select(`open`)&&m.setOpen(!0,kr(Sr,e,i))},n=ne();n===0?(P.clear(),t()):P.start(n,t)}},se=m.useState(`triggerProps`,C);return Vt(`button`,e,{state:{open:_},ref:[t,S,y],props:[ae,F,C||M!==`none`?se:void 0,{onMouseOver(e){oe(e.nativeEvent)},onFocus(e){re(Eh(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){N.current=!1,P.clear(),te.current=void 0},onPointerEnter(e){te.current=e.pointerType},onPointerDown(e){te.current=e.pointerType,m.set(`closeOnClick`,l),l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},onClick(e){l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},id:h,[wh.triggerDisabled]:A?``:void 0,[Th]:A?void 0:``},f],stateAttributesMapping:Ku})}),kh=U.createContext(void 0);function Ah(){let e=U.useContext(kh);if(e===void 0)throw Error(Gt(70));return e}var jh=U.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{portalNode:c,portalSubtree:l}=Fd({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,W.jsxs)(U.Fragment,{children:[l,c&&Tu.createPortal(n,c)]})}),Mh=U.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return gh().useState(`mounted`)||n?(0,W.jsx)(kh.Provider,{value:n,children:(0,W.jsx)(jh,{ref:t,...r})}):null}),Nh=U.createContext(void 0);function Ph(){let e=U.useContext(Nh);if(e===void 0)throw Error(Gt(71));return e}var Fh=U.createContext(void 0);function Ih(){return U.useContext(Fh)?.direction??`ltr`}var Lh=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0,offsetParent:d=`real`}=pl(e,t)||{};if(l==null)return{};let f=jl(u),p={x:n,y:r},m=yl(i),h=_l(m),g=await o.getDimensions(l),_=m===`y`,v=_?`top`:`left`,y=_?`bottom`:`right`,b=_?`clientHeight`:`clientWidth`,x=a.reference[h]+a.reference[m]-p[m]-a.floating[h],S=p[m]-a.reference[m],C=d===`real`?await o.getOffsetParent?.(l):s.floating,w=s.floating[b]||a.floating[h];(!w||!await o.isElement?.(C))&&(w=s.floating[b]||a.floating[h]);let T=x/2-S/2,E=w/2-g[h]/2-1,D=Math.min(f[v],E),O=Math.min(f[y],E),k=D,A=w-g[h]-O,j=w/2-g[h]/2+T,M=fl(k,j,A),ee=!c.arrow&&hl(i)!=null&&j!==M&&a.reference[h]/2-(j({...Lh(e),options:[e,t]}),zh={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0;return{data:{referenceHidden:(await pp().fn(e)).data?.referenceHidden||a}}}},Bh={sideX:`left`,sideY:`top`},Vh={name:`adaptiveOrigin`,async fn(e){let{x:t,y:n,rects:{floating:r},elements:{floating:i},platform:a,strategy:o,placement:s}=e,c=$n(i),l=c.getComputedStyle(i);if(!(l.transitionDuration!==`0s`&&l.transitionDuration!==``))return{x:t,y:n,data:Bh};let u=await a.getOffsetParent?.(i),d={width:0,height:0};if(o===`fixed`&&c?.visualViewport)d={width:c.visualViewport.width,height:c.visualViewport.height};else if(u===c){let e=jr(i);d={width:e.documentElement.clientWidth,height:e.documentElement.clientHeight}}else await a.isElement?.(u)&&(d=await a.getDimensions(u));let f=ml(s),p=t,m=n;f===`left`&&(p=d.width-(t+r.width)),f===`top`&&(m=d.height-(n+r.height));let h=f===`left`?`right`:Bh.sideX,g=f===`top`?`bottom`:Bh.sideY;return{x:p,y:m,data:{sideX:h,sideY:g}}}};function Hh(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function Uh(e,t,n){let{rects:r,placement:i}=e;return{side:Hh(t,ml(i),n),align:hl(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function Wh(e){let{anchor:t,positionMethod:n=`absolute`,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,collisionBoundary:s,collisionPadding:c=5,sticky:l=!1,arrowPadding:u=5,disableAnchorTracking:d=!1,inline:f,keepMounted:p=!1,floatingRootContext:m,mounted:h,collisionAvoidance:g,shiftCrossAxis:_=!1,nodeId:v,adaptiveOrigin:y,lazyFlip:b=!1,externalTree:x}=e,[S,C]=U.useState(null);!h&&S!==null&&C(null);let w=g.side||`flip`,T=g.align||`flip`,E=g.fallbackAxisSide||`end`,D=typeof t==`function`?t:void 0,O=ur(D),k=D?O:t,A=cd(t),j=cd(h),M=Ih()===`rtl`,ee=S||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":M?`left`:`right`,"inline-start":M?`right`:`left`}[r],N=a===`center`?ee:`${ee}-${a}`,P=c,te=+(r===`bottom`),ne=+(r===`top`),re=+(r===`right`),ie=+(r===`left`);typeof P==`number`?P={top:P+te,right:P+ie,bottom:P+ne,left:P+re}:P&&={top:(P.top||0)+te,right:(P.right||0)+ie,bottom:(P.bottom||0)+ne,left:(P.left||0)+re};let ae={boundary:s===`clipping-ancestors`?`clippingAncestors`:s,padding:P},F=U.useRef(null),oe=cd(i),se=cd(o),I=typeof i==`function`?0:i,ce=typeof o==`function`?0:o,le=[];f&&le.push(f),le.push(cp(e=>{let t=Uh(e,r,M),n=typeof oe.current==`function`?oe.current(t):oe.current,i=typeof se.current==`function`?se.current(t):se.current;return{mainAxis:n,crossAxis:i,alignmentAxis:i}},[I,ce,M,r]));let ue=T===`none`&&w!==`shift`,de=!ue&&(l||_||w===`shift`),fe=w===`none`?null:dp({...ae,padding:{top:P.top+1,right:P.right+1,bottom:P.bottom+1,left:P.left+1},mainAxis:!_&&w===`flip`,crossAxis:T===`flip`?`alignment`:!1,fallbackAxisSideDirection:E}),pe=ue?null:lp(e=>{let t=jr(e.elements.floating).documentElement;return{...ae,rootBoundary:_?{x:0,y:0,width:t.clientWidth,height:t.clientHeight}:void 0,mainAxis:T!==`none`,crossAxis:de,limiter:l||_?void 0:up(e=>{if(!F.current)return{};let{width:t,height:n}=F.current.getBoundingClientRect(),r=vl(ml(e.placement)),i=r===`y`?t:n,a=r===`y`?P.left+P.right:P.top+P.bottom;return{offset:i/2+a/2}})}},[ae,l,_,P,T]);w===`shift`||T===`shift`||a===`center`?le.push(pe,fe):le.push(fe,pe),le.push(fp({...ae,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!j.current)return;let i=e.style;i.setProperty(`--available-width`,`${t}px`),i.setProperty(`--available-height`,`${n}px`);let a=$n(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(`--anchor-width`,`${u}px`),i.setProperty(`--anchor-height`,`${d}px`)}}),Rh(e=>({element:F.current||jr(e.elements.floating).createElement(`div`),padding:u,offsetParent:`floating`}),[u]),{name:`transformOrigin`,fn(e){let{elements:t,middlewareData:n,placement:a,rects:o,y:s}=e,c=ml(a),l=vl(c),u=F.current,d=n.arrow?.x||0,f=n.arrow?.y||0,p=u?.clientWidth||0,m=u?.clientHeight||0,h=d+p/2,g=f+m/2,_=Math.abs(n.shift?.y||0),v=o.reference.height/2,y=typeof i==`function`?i(Uh(e,r,M)):i,b=_>y,x={top:`${h}px calc(100% + ${y}px)`,bottom:`${h}px ${-y}px`,left:`calc(100% + ${y}px) ${g}px`,right:`${-y}px ${g}px`}[c],S=`${h}px ${o.reference.y+v-s}px`;return t.floating.style.setProperty(`--transform-origin`,de&&l===`y`&&b?S:x),{}}},zh,y),B(()=>{!h&&m&&m.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[h,m]);let me=U.useMemo(()=>({elementResize:!d&&typeof ResizeObserver<`u`,layoutShift:!d&&typeof IntersectionObserver<`u`}),[d]),{refs:he,elements:ge,x:_e,y:ve,middlewareData:ye,update:be,placement:xe,context:Se,isPositioned:Ce,floatingStyles:we}=$p({rootContext:m,open:p?h:void 0,placement:N,middleware:le,strategy:n,whileElementsMounted:p?void 0:(...e)=>Jf(...e,me),nodeId:v,externalTree:x}),{sideX:Te,sideY:Ee}=ye.adaptiveOrigin||Bh,De=Ce?n:`fixed`,Oe=U.useMemo(()=>{let e=y?{position:De,[Te]:_e,[Ee]:ve}:{position:De,...we};return Ce||(e.opacity=0),e},[y,De,Te,_e,Ee,ve,we,Ce]),ke=U.useRef(null);B(()=>{if(!h)return;let e=A.current,t=typeof e==`function`?e():e,n=(Gh(t)?t.current:t)||null;n!==ke.current&&(he.setPositionReference(n),ke.current=n)},[h,he,k,A]),U.useEffect(()=>{if(!h)return;let e=A.current;typeof e!=`function`&&Gh(e)&&e.current!==ke.current&&(he.setPositionReference(e.current),ke.current=e.current)},[h,he,k,A]),U.useEffect(()=>{if(p&&h&&ge.domReference&&ge.floating)return Jf(ge.domReference,ge.floating,be,me)},[p,h,ge,be,me]);let Ae=ml(xe),je=Hh(r,Ae,M),Me=hl(xe)||`center`,Ne=!!ye.hide?.referenceHidden;B(()=>{b&&h&&Ce&&C(Ae)},[b,h,Ce,Ae]);let Pe=U.useMemo(()=>({position:`absolute`,top:ye.arrow?.y,left:ye.arrow?.x}),[ye.arrow]),Fe=ye.arrow?.centerOffset!==0;return U.useMemo(()=>({positionerStyles:Oe,arrowStyles:Pe,arrowRef:F,arrowUncentered:Fe,side:je,align:Me,physicalSide:Ae,anchorHidden:Ne,refs:he,context:Se,isPositioned:Ce,update:be}),[Oe,Pe,F,Fe,je,Me,Ae,Ne,he,Se,Ce,be])}function Gh(e){return e!=null&&`current`in e}function Kh(e){return e===`starting`?Od:Lt}function qh(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),Vt(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},Kh(r),i],stateAttributesMapping:Ju})}var Jh=U.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`top`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=Ad,style:g,..._}=e,v=gh(),y=Ah(),b=v.useState(`open`),x=v.useState(`mounted`),S=v.useState(`trackCursorAxis`),C=v.useState(`disableHoverablePopup`),w=v.useState(`floatingRootContext`),T=v.useState(`instantType`),E=v.useState(`transitionStatus`),D=Wh({anchor:i,positionMethod:a,floatingRootContext:w,mounted:x,side:o,sideOffset:c,align:s,alignOffset:l,collisionBoundary:u,collisionPadding:d,sticky:p,arrowPadding:f,disableAnchorTracking:m,keepMounted:y,collisionAvoidance:h,adaptiveOrigin:v.useState(`hasViewport`)?Vh:void 0}),O=qh(e,U.useMemo(()=>({open:b,side:D.side,align:D.align,anchorHidden:D.anchorHidden,instant:S===`none`?T:`tracking-cursor`}),[b,D.side,D.align,D.anchorHidden,S,T]),{styles:D.positionerStyles,transitionStatus:E,props:_,refs:[t,v.useStateSetter(`positionerElement`)],hidden:!x,inert:!b||S===`both`||C});return(0,W.jsx)(Nh.Provider,{value:D,children:O})}),Yh={...Ju,...wu},Xh=U.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=gh(),{side:s,align:c}=Ph(),l=o.useState(`open`),u=o.useState(`instantType`),d=o.useState(`transitionStatus`),f=o.useState(`popupProps`),p=o.useState(`floatingRootContext`),m=o.useState(`disabled`),h=o.useState(`closeDelay`);Du({open:l,ref:o.context.popupRef,onComplete(){l&&o.context.onOpenChangeComplete?.(!0)}}),sm(p,{enabled:!m,closeDelay:h});let g=o.useStateSetter(`popupElement`);return Vt(`div`,e,{state:{open:l,side:s,align:c,instant:u,transitionStatus:d},ref:[t,o.context.popupRef,g],props:[f,Kh(d),a],stateAttributesMapping:Yh})}),Zh=U.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=gh(),{arrowRef:s,side:c,align:l,arrowUncentered:u,arrowStyles:d}=Ph();return Vt(`div`,e,{state:{open:o.useState(`open`),side:c,align:l,uncentered:u,instant:o.useState(`instantType`)},ref:[t,s],props:[{style:d,"aria-hidden":!0},a],stateAttributesMapping:Ju})}),Qh=function(e){let{delay:t,closeDelay:n,timeout:r=400}=e,i=U.useMemo(()=>({delay:t,closeDelay:n}),[t,n]),a=U.useMemo(()=>({open:t,close:n}),[t,n]);return(0,W.jsx)(Sh.Provider,{value:i,children:(0,W.jsx)(ad,{delay:a,timeoutMs:r,children:e.children})})};function $h(e){let t=(0,xs.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({delay:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i=r===void 0?0:r,a;return t[3]!==i||t[4]!==n?(a=(0,W.jsx)(Qh,{"data-slot":`tooltip-provider`,delay:i,...n}),t[3]=i,t[4]=n,t[5]=a):a=t[5],a}function eg(e){let t=(0,xs.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,W.jsx)($h,{children:(0,W.jsx)(bh,{"data-slot":`tooltip`,...n})}),t[2]=n,t[3]=r),r}function tg(e){let t=(0,xs.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,W.jsx)(Oh,{"data-slot":`tooltip-trigger`,...n}),t[2]=n,t[3]=r),r}function ng(e){let t=(0,xs.c)(21),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({className:r,side:a,sideOffset:o,align:s,alignOffset:c,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=a===void 0?`top`:a,u=o===void 0?4:o,d=s===void 0?`center`:s,f=c===void 0?0:c,p;t[8]===r?p=t[9]:(p=un(`data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=delayed-open]:animate-in data-closed:animate-out data-open:animate-in z-50 w-fit max-w-xs origin-(--transform-origin) rounded-md bg-foreground px-3 py-1.5 text-xs text-background **:data-[slot=kbd]:rounded-md`,r),t[8]=r,t[9]=p);let m;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,W.jsx)(Zh,{className:`z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5`}),t[10]=m):m=t[10];let h;t[11]!==n||t[12]!==i||t[13]!==p?(h=(0,W.jsxs)(Xh,{className:p,"data-slot":`tooltip-content`,...i,children:[n,m]}),t[11]=n,t[12]=i,t[13]=p,t[14]=h):h=t[14];let g;return t[15]!==d||t[16]!==f||t[17]!==l||t[18]!==u||t[19]!==h?(g=(0,W.jsx)(Mh,{children:(0,W.jsx)(Jh,{align:d,alignOffset:f,className:`isolate z-50`,side:l,sideOffset:u,children:h})}),t[15]=d,t[16]=f,t[17]=l,t[18]=u,t[19]=h,t[20]=g):g=t[20],g}var rg=window.matchMedia(`(max-width: 767px)`);function ig(e){return rg.addEventListener(`change`,e),()=>rg.removeEventListener(`change`,e)}function ag(){return rg.matches}function og(){return(0,U.useSyncExternalStore)(ig,ag)}var sg=`sidebar_state`,cg=3600*24*7,lg=`12rem`,ug=`16rem`,dg=`3rem`,fg=`b`,pg=U.createContext(null);function mg(){let e=U.useContext(pg);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function hg(e){let t=(0,xs.c)(36),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({defaultOpen:c,open:i,onOpenChange:o,className:r,style:s,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=c===void 0?!0:c,u=og(),[d,f]=U.useState(!1),[p,m]=U.useState(l),h=i??p,g;t[8]!==h||t[9]!==o?(g=e=>{let t=typeof e==`function`?e(h):e;o?o(t):m(t),document.cookie=`${sg}=${t}; path=/; max-age=${cg}`},t[8]=h,t[9]=o,t[10]=g):g=t[10];let _=g,v;t[11]!==u||t[12]!==_?(v=()=>u?f(_g):_(gg),t[11]=u,t[12]=_,t[13]=v):v=t[13];let y=v,b,x;t[14]===y?(b=t[15],x=t[16]):(b=()=>{let e=e=>{e.key===fg&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),y())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},x=[y],t[14]=y,t[15]=b,t[16]=x),U.useEffect(b,x);let S=h?`expanded`:`collapsed`,C;t[17]!==u||t[18]!==h||t[19]!==d||t[20]!==_||t[21]!==S||t[22]!==y?(C={state:S,open:h,setOpen:_,isMobile:u,openMobile:d,setOpenMobile:f,toggleSidebar:y},t[17]=u,t[18]=h,t[19]=d,t[20]=_,t[21]=S,t[22]=y,t[23]=C):C=t[23];let w=C,T;t[24]===r?T=t[25]:(T=un(`group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar`,r),t[24]=r,t[25]=T);let E;t[26]===s?E=t[27]:(E={"--sidebar-width":lg,"--sidebar-width-icon":dg,...s},t[26]=s,t[27]=E);let D=E,O;t[28]!==n||t[29]!==a||t[30]!==T||t[31]!==D?(O=(0,W.jsx)(`div`,{className:T,"data-slot":`sidebar-wrapper`,style:D,...a,children:n}),t[28]=n,t[29]=a,t[30]=T,t[31]=D,t[32]=O):O=t[32];let k;return t[33]!==w||t[34]!==O?(k=(0,W.jsx)(pg.Provider,{value:w,children:O}),t[33]=w,t[34]=O,t[35]=k):k=t[35],k}function gg(e){return!e}function _g(e){return!e}function vg(e){let t=(0,xs.c)(46),n,r,i,a,o,s;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6]):({side:a,variant:o,collapsible:s,className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s);let c=a===void 0?`left`:a,l=o===void 0?`sidebar`:o,u=s===void 0?`offExamples`:s,{isMobile:d,state:f,openMobile:p,setOpenMobile:m}=mg();if(u===`none`){let e;t[7]===r?e=t[8]:(e=un(`flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground`,r),t[7]=r,t[8]=e);let a;return t[9]!==n||t[10]!==i||t[11]!==e?(a=(0,W.jsx)(`div`,{className:e,"data-slot":`sidebar`,...i,children:n}),t[9]=n,t[10]=i,t[11]=e,t[12]=a):a=t[12],a}if(d){let e;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(e={"--sidebar-width":ug},t[13]=e):e=t[13];let r=e,a;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,W.jsxs)(fh,{className:`sr-only`,children:[(0,W.jsx)(ph,{children:`Sidebar`}),(0,W.jsx)(mh,{children:`Displays the mobile sidebar.`})]}),t[14]=a):a=t[14];let o;t[15]===n?o=t[16]:(o=(0,W.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:n}),t[15]=n,t[16]=o);let s;t[17]!==c||t[18]!==o?(s=(0,W.jsxs)(dh,{className:`w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden`,"data-mobile":`true`,"data-sidebar":`sidebar`,"data-slot":`sidebar`,side:c,style:r,children:[a,o]}),t[17]=c,t[18]=o,t[19]=s):s=t[19];let l;return t[20]!==p||t[21]!==i||t[22]!==m||t[23]!==s?(l=(0,W.jsx)(ch,{onOpenChange:m,open:p,...i,children:s}),t[20]=p,t[21]=i,t[22]=m,t[23]=s,t[24]=l):l=t[24],l}let h=f===`collapsed`?u:``,g=l===`floating`||l===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`,_;t[25]===g?_=t[26]:(_=un(`relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear`,`group-data-[collapsible=offExamples]:w-0`,`group-data-[side=right]:rotate-180`,g),t[25]=g,t[26]=_);let v;t[27]===_?v=t[28]:(v=(0,W.jsx)(`div`,{className:_,"data-slot":`sidebar-gap`}),t[27]=_,t[28]=v);let y=c===`left`?`left-0 group-data-[collapsible=offExamples]:left-[calc(var(--sidebar-width)*-1)]`:`right-0 group-data-[collapsible=offExamples]:right-[calc(var(--sidebar-width)*-1)]`,b=l===`floating`||l===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,x;t[29]!==r||t[30]!==y||t[31]!==b?(x=un(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex`,y,b,r),t[29]=r,t[30]=y,t[31]=b,t[32]=x):x=t[32];let S;t[33]===n?S=t[34]:(S=(0,W.jsx)(`div`,{className:`flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border`,"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,children:n}),t[33]=n,t[34]=S);let C;t[35]!==i||t[36]!==x||t[37]!==S?(C=(0,W.jsx)(`div`,{className:x,"data-slot":`sidebar-container`,...i,children:S}),t[35]=i,t[36]=x,t[37]=S,t[38]=C):C=t[38];let w;return t[39]!==c||t[40]!==f||t[41]!==C||t[42]!==h||t[43]!==v||t[44]!==l?(w=(0,W.jsxs)(`div`,{className:`group peer hidden text-sidebar-foreground md:block`,"data-collapsible":h,"data-side":c,"data-slot":`sidebar`,"data-state":f,"data-variant":l,children:[v,C]}),t[39]=c,t[40]=f,t[41]=C,t[42]=h,t[43]=v,t[44]=l,t[45]=w):w=t[45],w}function yg(e){let t=(0,xs.c)(15),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,onClick:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let{toggleSidebar:a}=mg(),o;t[4]===n?o=t[5]:(o=un(n),t[4]=n,t[5]=o);let s;t[6]!==r||t[7]!==a?(s=e=>{r?.(e),a()},t[6]=r,t[7]=a,t[8]=s):s=t[8];let c,l;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,W.jsx)(nc,{}),l=(0,W.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`}),t[9]=c,t[10]=l):(c=t[9],l=t[10]);let u;return t[11]!==i||t[12]!==o||t[13]!==s?(u=(0,W.jsxs)(dr,{className:o,"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,onClick:s,size:`icon-lg`,variant:`ghost`,...i,children:[c,l]}),t[11]=i,t[12]=o,t[13]=s,t[14]=u):u=t[14],u}function bg(e){let t=(0,xs.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let{toggleSidebar:i}=mg(),a;t[3]===n?a=t[4]:(a=un(`absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border sm:flex`,`in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize`,`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize`,`group-data-[collapsible=offExamples]:translate-x-0 group-data-[collapsible=offExamples]:after:left-full hover:group-data-[collapsible=offExamples]:bg-sidebar`,`[[data-side=left][data-collapsible=offExamples]_&]:-right-2`,`[[data-side=right][data-collapsible=offExamples]_&]:-left-2`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a||t[7]!==i?(o=(0,W.jsx)(`button`,{"aria-label":`Toggle Sidebar`,className:a,"data-sidebar":`rail`,"data-slot":`sidebar-rail`,onClick:i,tabIndex:-1,title:`Toggle Sidebar`,...r}),t[5]=r,t[6]=a,t[7]=i,t[8]=o):o=t[8],o}function xg(e){let t=(0,xs.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=un(`flex flex-col gap-2 p-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(`div`,{className:i,"data-sidebar":`header`,"data-slot":`sidebar-header`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Sg(e){let t=(0,xs.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=un(`flex flex-col gap-2 p-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(`div`,{className:i,"data-sidebar":`footer`,"data-slot":`sidebar-footer`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Cg(e){let t=(0,xs.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=un(`mx-2 w-auto bg-sidebar-border`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(Fu,{className:i,"data-sidebar":`separator`,"data-slot":`sidebar-separator`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function wg(e){let t=(0,xs.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=un(`no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(`div`,{className:i,"data-sidebar":`content`,"data-slot":`sidebar-content`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Tg(e){let t=(0,xs.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=un(`relative flex w-full min-w-0 flex-col px-2 py-1`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(`div`,{className:i,"data-sidebar":`group`,"data-slot":`sidebar-group`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Eg(e){let t=(0,xs.c)(10),n,r,i,a;if(t[0]!==e){let{className:o,render:s,...c}=e;n=s,a=Es,r=`div`,i=zt({className:un(`flex h-8 shrink-0 items-center rounded-md px-2 text-xs text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,o)},c),t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a}else n=t[1],r=t[2],i=t[3],a=t[4];let o;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(o={slot:`sidebar-group-label`,sidebar:`group-label`},t[5]=o):o=t[5];let s;return t[6]!==n||t[7]!==r||t[8]!==i?(s={defaultTagName:r,props:i,render:n,state:o},t[6]=n,t[7]=r,t[8]=i,t[9]=s):s=t[9],a(s)}function Dg(e){let t=(0,xs.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=un(`flex w-full min-w-0 flex-col gap-px`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(`ul`,{className:i,"data-sidebar":`menu`,"data-slot":`sidebar-menu`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Og(e){let t=(0,xs.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=un(`group/menu-item relative`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(`li`,{className:i,"data-sidebar":`menu-item`,"data-slot":`sidebar-menu-item`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var kg=Wt(`peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-[calc(var(--radius-sm)+2px)] p-2 text-left text-xs ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate`,{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-8 text-xs`,sm:`h-7 text-xs`,lg:`h-12 text-xs group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function Ag(e){let t=(0,xs.c)(15),{render:n,isActive:r,variant:i,size:a,tooltip:o,className:s,...c}=e,l=r===void 0?!1:r,u=i===void 0?`default`:i,d=a===void 0?`default`:a,{isMobile:f,state:p}=mg(),m=zt({className:un(kg({variant:u,size:d}),s)},c),h=o?tg:n,g;t[0]!==l||t[1]!==d?(g={slot:`sidebar-menu-button`,sidebar:`menu-button`,size:d,active:l},t[0]=l,t[1]=d,t[2]=g):g=t[2];let _;t[3]!==m||t[4]!==h||t[5]!==g?(_={defaultTagName:`button`,props:m,render:h,state:g},t[3]=m,t[4]=h,t[5]=g,t[6]=_):_=t[6];let v=Es(_);if(!o)return v;let y;t[7]===o?y=t[8]:(y=typeof o==`string`?{children:o}:o,t[7]=o,t[8]=y);let b=y,x=p!==`collapsed`||f,S;t[9]!==x||t[10]!==b?(S=(0,W.jsx)(ng,{align:`center`,hidden:x,side:`right`,...b}),t[9]=x,t[10]=b,t[11]=S):S=t[11];let C;return t[12]!==v||t[13]!==S?(C=(0,W.jsxs)(eg,{children:[v,S]}),t[12]=v,t[13]=S,t[14]=C):C=t[14],C}var jg=class{async sign(e,t,n){return e}},Mg=`ref`,Ng=-1,Pg=!0,Fg=`isSet`,Ig=`PartitionResult`,Lg=`booleanEquals`,Rg=`stringEquals`,zg=`getAttr`,Bg=`us-east-1`,Vg=`sigv4`,Hg=`sts`,Ug=`https://sts.{Region}.{PartitionResult#dnsSuffix}`,Wg={[Mg]:`Endpoint`},Gg={[Mg]:`Region`},Kg={[Mg]:Ig},qg={},Jg=[Gg],Yg={conditions:[[Fg,[Wg]],[Fg,Jg],[`aws.partition`,Jg,Ig],[Lg,[{[Mg]:`UseFIPS`},Pg]],[Lg,[{[Mg]:`UseDualStack`},Pg]],[Rg,[Gg,`aws-global`]],[Lg,[{[Mg]:`UseGlobalEndpoint`},Pg]],[Rg,[Gg,`eu-central-1`]],[Lg,[{fn:zg,argv:[Kg,`supportsDualStack`]},Pg]],[Lg,[{fn:zg,argv:[Kg,`supportsFIPS`]},Pg]],[Rg,[Gg,`ap-south-1`]],[Rg,[Gg,`eu-north-1`]],[Rg,[Gg,`eu-west-1`]],[Rg,[Gg,`eu-west-2`]],[Rg,[Gg,`eu-west-3`]],[Rg,[Gg,`sa-east-1`]],[Rg,[Gg,Bg]],[Rg,[Gg,`us-east-2`]],[Rg,[Gg,`us-west-2`]],[Rg,[Gg,`us-west-1`]],[Rg,[Gg,`ca-central-1`]],[Rg,[Gg,`ap-southeast-1`]],[Rg,[Gg,`ap-northeast-1`]],[Rg,[Gg,`ap-southeast-2`]],[Rg,[{fn:zg,argv:[Kg,`name`]},`aws-us-gov`]]],results:[[Ng],[`https://sts.amazonaws.com`,{authSchemes:[{name:Vg,signingName:Hg,signingRegion:Bg}]}],[Ug,{authSchemes:[{name:Vg,signingName:Hg,signingRegion:`{Region}`}]}],[Ng,`Invalid Configuration: FIPS and custom endpoint are not supported`],[Ng,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[Wg,qg],[`https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,qg],[Ng,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://sts.{Region}.amazonaws.com`,qg],[`https://sts-fips.{Region}.{PartitionResult#dnsSuffix}`,qg],[Ng,`FIPS is enabled but this partition does not support FIPS`],[`https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}`,qg],[Ng,`DualStack is enabled but this partition does not support DualStack`],[Ug,qg],[Ng,`Invalid Configuration: Missing Region`]]},Xg=2,Zg=new Int32Array([-1,1,-1,0,30,3,1,4,100000014,2,5,100000014,3,25,6,4,24,7,5,100000001,8,6,9,100000013,7,100000001,10,10,100000001,11,11,100000001,12,12,100000001,13,13,100000001,14,14,100000001,15,15,100000001,16,16,100000001,17,17,100000001,18,18,100000001,19,19,100000001,20,20,100000001,21,21,100000001,22,22,100000001,23,23,100000001,100000002,8,100000011,100000012,4,28,26,9,27,100000010,24,100000008,100000009,8,29,100000007,9,100000006,100000007,3,100000003,31,4,100000004,100000005]),Qg=Pn.from(Zg,Xg,Yg.conditions,Yg.results),$g=new zn({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`,`UseGlobalEndpoint`]}),e_=(e,t={})=>$g.get(e,()=>jn(Qg,{endpointParams:e,logger:t.logger}));Vn.aws=en;var t_=(e=>async(t,n,r)=>{if(!r)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let i=await e(t,n,r),a=tn(n)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!a)throw Error(`getEndpointParameterInstructions() is not defined on '${n.commandName}'`);let o=await Nn(r,{getEndpointParameterInstructions:a},t);return Object.assign(i,o)})(async(e,t,n)=>({operation:tn(t).operation,region:await fn(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}));function n_(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`sts`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function r_(e){return{schemeId:`aws.auth#sigv4a`,signingProperties:{name:`sts`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function i_(e){return{schemeId:`smithy.api#noAuth`}}var a_=((e,t,n)=>r=>{let i=e(r).properties?.authSchemes;if(!i)return t(r);let a=[];for(let e of i){let{name:t,properties:o={},...s}=e,c=t.toLowerCase();t!==c&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${t}' to '${c}'`);let l;if(c===`sigv4a`){l=`aws.auth#sigv4a`;let e=i.find(e=>{let t=e.name.toLowerCase();return t!==`sigv4a`&&t.startsWith(`sigv4`)});if(Sn.sigv4aDependency()===`none`&&e)continue}else if(c.startsWith(`sigv4`))l=`aws.auth#sigv4`;else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${c}'`);let u=n[l];if(!u)throw Error(`Could not find HttpAuthOption create function for '${l}'`);let d=u(r);d.schemeId=l,d.signingProperties={...d.signingProperties||{},...s,...o},a.push(d)}return a})(e_,e=>{let t=[];switch(e.operation){case`AssumeRoleWithSAML`:t.push(i_(e)),t.push(r_(e));break;case`AssumeRoleWithWebIdentity`:t.push(i_(e)),t.push(r_(e));break;default:t.push(n_(e)),t.push(r_(e))}return t},{"aws.auth#sigv4":n_,"aws.auth#sigv4a":r_,"smithy.api#noAuth":i_}),o_=e=>{let t=mn(Qt(e));return Object.assign(t,{authSchemePreference:fn(e.authSchemePreference??[])})},s_=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:`sts`}),c_={UseGlobalEndpoint:{type:`builtInParams`,name:`useGlobalEndpoint`},UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},l_={name:`@aws-sdk/client-sts`,description:`AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native`,version:`3.1067.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`premove ./dist-types tsconfig.types.tsbuildinfo && tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo sts`,test:`yarn g:vitest run`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts --mode development`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`,"test:integration":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:watch":`yarn g:vitest watch`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.20`,"@aws-sdk/credential-provider-node":`^3.972.55`,"@aws-sdk/signature-v4-multi-region":`^3.996.34`,"@aws-sdk/types":`^3.973.12`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@smithy/snapshot-testing":`^2.1.7`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-sts`}},u_=class e extends Gn{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},d_=class e extends u_{name=`ExpiredTokenException`;$fault=`client`;constructor(t){super({name:`ExpiredTokenException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},f_=class e extends u_{name=`MalformedPolicyDocumentException`;$fault=`client`;constructor(t){super({name:`MalformedPolicyDocumentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},p_=class e extends u_{name=`PackedPolicyTooLargeException`;$fault=`client`;constructor(t){super({name:`PackedPolicyTooLargeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},m_=class e extends u_{name=`RegionDisabledException`;$fault=`client`;constructor(t){super({name:`RegionDisabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},h_=class e extends u_{name=`IDPRejectedClaimException`;$fault=`client`;constructor(t){super({name:`IDPRejectedClaimException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},g_=class e extends u_{name=`InvalidIdentityTokenException`;$fault=`client`;constructor(t){super({name:`InvalidIdentityTokenException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},__=class e extends u_{name=`IDPCommunicationErrorException`;$fault=`client`;$retryable={};constructor(t){super({name:`IDPCommunicationErrorException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},v_=class e extends u_{name=`InvalidAuthorizationMessageException`;$fault=`client`;constructor(t){super({name:`InvalidAuthorizationMessageException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},y_=class e extends u_{name=`ExpiredTradeInTokenException`;$fault=`client`;constructor(t){super({name:`ExpiredTradeInTokenException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},b_=class e extends u_{name=`JWTPayloadSizeExceededException`;$fault=`client`;constructor(t){super({name:`JWTPayloadSizeExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},x_=class e extends u_{name=`OutboundWebIdentityFederationDisabledException`;$fault=`client`;constructor(t){super({name:`OutboundWebIdentityFederationDisabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},S_=class e extends u_{name=`SessionDurationEscalationException`;$fault=`client`;constructor(t){super({name:`SessionDurationEscalationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},C_=`Arn`,w_=`AccessKeyId`,T_=`Account`,E_=`Credentials`,D_=`DurationSeconds`,O_=`Expiration`,k_=`ExpiredTokenException`,A_=`ExpiredTradeInTokenException`,j_=`GetCallerIdentity`,M_=`GetCallerIdentityRequest`,N_=`GetCallerIdentityResponse`,P_=`GetSessionToken`,F_=`GetSessionTokenRequest`,I_=`GetSessionTokenResponse`,L_=`InvalidAuthorizationMessageException`,R_=`IDPCommunicationErrorException`,z_=`IDPRejectedClaimException`,B_=`InvalidIdentityTokenException`,V_=`JWTPayloadSizeExceededException`,H_=`MalformedPolicyDocumentException`,U_=`OutboundWebIdentityFederationDisabledException`,W_=`PackedPolicyTooLargeException`,G_=`RegionDisabledException`,K_=`SecretAccessKey`,q_=`SessionDurationEscalationException`,J_=`SerialNumber`,Y_=`SessionToken`,X_=`TokenCode`,Z_=`UserId`,Q_=`accessKeySecretType`,$_=`awsQueryError`,ev=`client`,tv=`error`,nv=`httpError`,rv=`message`,iv=`smithy.ts.sdk.synthetic.com.amazonaws.sts`,av=`com.amazonaws.sts`,ov=Xt.for(iv),sv=[-3,iv,`STSServiceException`,0,[],[]];ov.registerError(sv,u_);var cv=Xt.for(av),lv=[-3,av,k_,{[$_]:[`ExpiredTokenException`,400],[tv]:ev,[nv]:400},[rv],[0]];cv.registerError(lv,d_);var uv=[-3,av,A_,{[$_]:[`ExpiredTradeInTokenException`,400],[tv]:ev,[nv]:400},[rv],[0]];cv.registerError(uv,y_);var dv=[-3,av,R_,{[$_]:[`IDPCommunicationError`,400],[tv]:ev,[nv]:400},[rv],[0]];cv.registerError(dv,__);var fv=[-3,av,z_,{[$_]:[`IDPRejectedClaim`,403],[tv]:ev,[nv]:403},[rv],[0]];cv.registerError(fv,h_);var pv=[-3,av,L_,{[$_]:[`InvalidAuthorizationMessageException`,400],[tv]:ev,[nv]:400},[rv],[0]];cv.registerError(pv,v_);var mv=[-3,av,B_,{[$_]:[`InvalidIdentityToken`,400],[tv]:ev,[nv]:400},[rv],[0]];cv.registerError(mv,g_);var hv=[-3,av,V_,{[$_]:[`JWTPayloadSizeExceededException`,400],[tv]:ev,[nv]:400},[rv],[0]];cv.registerError(hv,b_);var gv=[-3,av,H_,{[$_]:[`MalformedPolicyDocument`,400],[tv]:ev,[nv]:400},[rv],[0]];cv.registerError(gv,f_);var _v=[-3,av,U_,{[$_]:[`OutboundWebIdentityFederationDisabledException`,403],[tv]:ev,[nv]:403},[rv],[0]];cv.registerError(_v,x_);var vv=[-3,av,W_,{[$_]:[`PackedPolicyTooLarge`,400],[tv]:ev,[nv]:400},[rv],[0]];cv.registerError(vv,p_);var yv=[-3,av,G_,{[$_]:[`RegionDisabledException`,403],[tv]:ev,[nv]:403},[rv],[0]];cv.registerError(yv,m_);var bv=[-3,av,q_,{[$_]:[`SessionDurationEscalationException`,403],[tv]:ev,[nv]:403},[rv],[0]];cv.registerError(bv,S_);var xv=[ov,cv],Sv=[0,av,Q_,8,0],Cv=[3,av,E_,0,[w_,K_,Y_,O_],[0,[()=>Sv,0],0,4],4],wv=[3,av,M_,0,[],[]],Tv=[3,av,N_,0,[Z_,T_,C_],[0,0,0]],Ev=[3,av,F_,0,[D_,J_,X_],[1,0,0]],Dv=[3,av,I_,0,[E_],[[()=>Cv,0]]],Ov=[9,av,j_,0,()=>wv,()=>Tv],kv=[9,av,P_,0,()=>Ev,()=>Dv],Av=e=>({apiVersion:`2011-06-15`,base64Decoder:e?.base64Decoder??Nr,base64Encoder:e?.base64Encoder??Fr,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??e_,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??a_,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new qt},{schemeId:`aws.auth#sigv4a`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4a`),signer:new Ln},{schemeId:`smithy.api#noAuth`,identityProvider:e=>e.getIdentityProvider(`smithy.api#noAuth`)||(async()=>({})),signer:new jg}],logger:e?.logger??new Dn,protocol:e?.protocol??Mn,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.sts`,errorTypeRegistries:xv,xmlNamespace:`https://sts.amazonaws.com/doc/2011-06-15/`,version:`2011-06-15`,serviceTarget:`AWSSecurityTokenServiceV20110615`},serviceId:e?.serviceId??`STS`,signerConstructor:e?.signerConstructor??Sn,urlParser:e?.urlParser??In,utf8Decoder:e?.utf8Decoder??Mr,utf8Encoder:e?.utf8Encoder??Pr}),jv=e=>{let t=pn(e),n=()=>t().then(On),r=Av(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Ir,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??an({serviceId:r.serviceId,clientVersion:l_.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??Rn(`Region is missing`),requestHandler:xn.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Tn),sha256:e?.sha256??Yt,streamCollector:e?.streamCollector??Wn,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},Mv=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},Nv=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Pv=(e,t)=>{let n=Object.assign(Fn(e),Un(e),Kt(e),Mv(e));return t.forEach(e=>e.configure(n)),Object.assign(e,dn(n),Kn(n),An(n),Nv(n))},Fv=class extends hn{config;constructor(...[e]){let t=jv(e||{});super(t),this.initConfig=t;let n=Pv(o_(kn(cn(gn(En(yn(s_(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use($t(this.config)),this.middlewareStack.use(ln(this.config)),this.middlewareStack.use(sn(this.config)),this.middlewareStack.use(vn(this.config)),this.middlewareStack.use(nn(this.config)),this.middlewareStack.use(wn(this.config)),this.middlewareStack.use(Cn(this.config)),this.middlewareStack.use(rn(this.config,{httpAuthSchemeParametersProvider:t_,identityProviderConfigProvider:async e=>new qn({"aws.auth#sigv4":e.credentials,"aws.auth#sigv4a":e.credentials})})),this.middlewareStack.use(Jt(this.config))}destroy(){super.destroy()}},Iv=class extends L.classBuilder().ep(c_).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSSecurityTokenServiceV20110615`,`GetCallerIdentity`,{}).n(`STSClient`,`GetCallerIdentityCommand`).sc(Ov).build(){},Lv=class extends L.classBuilder().ep(c_).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSSecurityTokenServiceV20110615`,`GetSessionToken`,{}).n(`STSClient`,`GetSessionTokenCommand`).sc(kv).build(){},Rv=`ap-southeast-2`,zv=9999,Bv=class extends Error{status;constructor(e,t,n){super(e),this.name=t,this.status=n}};function Vv(e,t){let n=`<${t}>`,r=``,i=e.indexOf(n);if(i===-1)return null;let a=e.indexOf(r,i+n.length);return a===-1?null:e.slice(i+n.length,a)}async function Hv({action:e,credentials:t,service:n=`spinifex`}){let r=window.location.protocol.replace(`:`,``),i=`Action=${e}`,a=new _n({method:`POST`,protocol:r,hostname:`localhost`,port:zv,path:`/`,headers:{host:`localhost:${zv}`,"content-type":`application/x-www-form-urlencoded`},body:i}),o=await new Zt({credentials:{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey,sessionToken:t.sessionToken},region:Rv,service:n,sha256:Yt}).sign(a),s={};for(let[e,t]of Object.entries(o.headers))typeof t==`string`&&(s[e]=t);let c=`${window.location.protocol}//${window.location.host}/proxy/awsgw/`,l=await fetch(c,{method:`POST`,headers:s,body:i});if(!l.ok){let t=await l.text().catch(()=>``),n=Vv(t,`Code`),r=Vv(t,`Message`)??t;throw new Bv(`${e} failed: ${l.status}${r?` - ${r}`:``}`,n??`SignedFetchError`,l.status)}return await l.json()}var Uv=`ap-southeast-2`,Wv=`${window.location.protocol}//localhost:9999`,Gv=43200;function Kv(e){e.middlewareStack.add(e=>async t=>(_n.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}function qv(e){let t=new Fv({endpoint:Wv,region:Uv,credentials:e});return Kv(t),t}function Jv(){let e=Hn();if(!e)throw Error(`AWS credentials not configured`);return qv({accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken})}async function Yv(e){let t=(await qv(e).send(new Lv({DurationSeconds:Gv}))).Credentials;if(!t?.AccessKeyId||!t.SecretAccessKey||!t.SessionToken||!t.Expiration)throw Error(`GetSessionToken returned incomplete credentials`);return{accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,sessionToken:t.SessionToken,expiration:t.Expiration.toISOString()}}var Xv=`000000000001`;function Zv(e){let t=e?.indexOf(`:user/`)??-1;return t===-1||e===void 0?null:e.slice(t+6)||null}var Qv=(0,U.createContext)(void 0);function $v({children:e}){let[t,n]=(0,U.useState)({isAdmin:!1,accountId:null,userName:null,version:null,license:null,loading:!0});return(0,U.useEffect)(()=>{async function e(){let e=Hn();if(!e){n(e=>({...e,loading:!1}));return}try{let t=await Jv().send(new Iv({})),r=t.Account??null,i=r===Xv,a=null;if(i)try{a=await Hv({action:`GetVersion`,credentials:e})}catch{}n({isAdmin:i,accountId:r,userName:Zv(t.Arn),version:a,license:a?.license??null,loading:!1})}catch{n(e=>({...e,loading:!1}))}}e()},[]),(0,W.jsx)(Qv,{value:t,children:e})}function ey(){let e=(0,U.useContext)(Qv);if(e===void 0)throw Error(`useAdmin must be used within an AdminProvider`);return e}var ty=new Set([`InvalidClientTokenId`,`SignatureDoesNotMatch`,`AuthFailure`,`MissingAuthenticationToken`,`IncompleteSignature`,`UnrecognizedClientException`,`ExpiredToken`,`ExpiredTokenException`,`InvalidAccessKeyId`]);function ny(e){if(typeof e!=`object`||!e||!(`name`in e))return!1;let{name:t}=e;return typeof t==`string`&&ty.has(t)}var ry=class extends L.classBuilder().ep(Me).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`CertificateManager`,`ListCertificates`,{}).n(`ACMClient`,`ListCertificatesCommand`).sc(xe).build(){},iy=class extends L.classBuilder().ep(Fe).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeAddresses`,{}).n(`EC2Client`,`DescribeAddressesCommand`).sc(Ve).build(){},ay=class extends L.classBuilder().ep(Fe).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeAvailabilityZones`,{}).n(`EC2Client`,`DescribeAvailabilityZonesCommand`).sc(Ce).build(){},oy=class extends L.classBuilder().ep(Fe).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeIamInstanceProfileAssociations`,{}).n(`EC2Client`,`DescribeIamInstanceProfileAssociationsCommand`).sc(Ae).build(){},sy=class extends L.classBuilder().ep(Fe).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeImages`,{}).n(`EC2Client`,`DescribeImagesCommand`).sc(Ct).build(){},cy=class extends L.classBuilder().ep(Fe).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeInstances`,{}).n(`EC2Client`,`DescribeInstancesCommand`).sc(qe).build(){},ly=class extends L.classBuilder().ep(Fe).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeInstanceTypes`,{}).n(`EC2Client`,`DescribeInstanceTypesCommand`).sc(De).build(){},uy=class extends L.classBuilder().ep(Fe).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeInternetGateways`,{}).n(`EC2Client`,`DescribeInternetGatewaysCommand`).sc(We).build(){},dy=class extends L.classBuilder().ep(Fe).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeKeyPairs`,{}).n(`EC2Client`,`DescribeKeyPairsCommand`).sc(Xe).build(){},fy=class extends L.classBuilder().ep(Fe).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeNatGateways`,{}).n(`EC2Client`,`DescribeNatGatewaysCommand`).sc(Pe).build(){},py=class extends L.classBuilder().ep(Fe).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribePlacementGroups`,{}).n(`EC2Client`,`DescribePlacementGroupsCommand`).sc(_e).build(){},my=class extends L.classBuilder().ep(Fe).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeRegions`,{}).n(`EC2Client`,`DescribeRegionsCommand`).sc(ot).build(){},hy=class extends L.classBuilder().ep(Fe).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeRouteTables`,{}).n(`EC2Client`,`DescribeRouteTablesCommand`).sc(jt).build(){},gy=class extends L.classBuilder().ep(Fe).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeSecurityGroups`,{}).n(`EC2Client`,`DescribeSecurityGroupsCommand`).sc(gt).build(){},_y=class extends L.classBuilder().ep(Fe).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeSnapshots`,{}).n(`EC2Client`,`DescribeSnapshotsCommand`).sc(Et).build(){},vy=class extends L.classBuilder().ep(Fe).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeSubnets`,{}).n(`EC2Client`,`DescribeSubnetsCommand`).sc(ft).build(){},yy=class extends L.classBuilder().ep(Fe).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeVolumes`,{}).n(`EC2Client`,`DescribeVolumesCommand`).sc(et).build(){},by=class extends L.classBuilder().ep(Fe).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeVpcs`,{}).n(`EC2Client`,`DescribeVpcsCommand`).sc(bt).build(){},xy=class extends L.classBuilder().ep(at).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`DescribeImages`,{}).n(`ECRClient`,`DescribeImagesCommand`).sc(yt).build(){},Sy=class extends L.classBuilder().ep(at).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`DescribeRepositories`,{}).n(`ECRClient`,`DescribeRepositoriesCommand`).sc(Ot).build(){},Cy=class extends L.classBuilder().ep(at).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`GetRepositoryPolicy`,{}).n(`ECRClient`,`GetRepositoryPolicyCommand`).sc(it).build(){},wy=class extends L.classBuilder().ep(At).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DescribeAccessEntry`,{}).n(`EKSClient`,`DescribeAccessEntryCommand`).sc(be).build(){},Ty=class extends L.classBuilder().ep(At).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DescribeAddon`,{}).n(`EKSClient`,`DescribeAddonCommand`).sc(ze).build(){},Ey=class extends L.classBuilder().ep(At).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DescribeAddonVersions`,{}).n(`EKSClient`,`DescribeAddonVersionsCommand`).sc(Te).build(){},Dy=class extends L.classBuilder().ep(At).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DescribeCluster`,{}).n(`EKSClient`,`DescribeClusterCommand`).sc(Le).build(){},Oy=class extends L.classBuilder().ep(At).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DescribeNodegroup`,{}).n(`EKSClient`,`DescribeNodegroupCommand`).sc(He).build(){},ky=class extends L.classBuilder().ep(At).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`ListAccessEntries`,{}).n(`EKSClient`,`ListAccessEntriesCommand`).sc(je).build(){},Ay=class extends L.classBuilder().ep(At).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`ListAccessPolicies`,{}).n(`EKSClient`,`ListAccessPoliciesCommand`).sc(wt).build(){},jy=class extends L.classBuilder().ep(At).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`ListAddons`,{}).n(`EKSClient`,`ListAddonsCommand`).sc(Oe).build(){},My=class extends L.classBuilder().ep(At).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`ListAssociatedAccessPolicies`,{}).n(`EKSClient`,`ListAssociatedAccessPoliciesCommand`).sc(Je).build(){},Ny=class extends L.classBuilder().ep(At).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`ListClusters`,{}).n(`EKSClient`,`ListClustersCommand`).sc(Ge).build(){},Py=class extends L.classBuilder().ep(At).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`ListNodegroups`,{}).n(`EKSClient`,`ListNodegroupsCommand`).sc(Ze).build(){},Fy=class extends L.classBuilder().ep(ye).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeListeners`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeListenersCommand`).sc(xt).build(){},Iy=class extends L.classBuilder().ep(ye).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeLoadBalancerAttributes`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeLoadBalancerAttributesCommand`).sc(mt).build(){},Ly=class extends L.classBuilder().ep(ye).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeLoadBalancers`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeLoadBalancersCommand`).sc(ut).build(){},Ry=class extends L.classBuilder().ep(ye).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeRules`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeRulesCommand`).sc(ct).build(){},zy=class extends L.classBuilder().ep(ye).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeSSLPolicies`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeSSLPoliciesCommand`).sc(Qe).build(){},By=class extends L.classBuilder().ep(ye).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTags`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTagsCommand`).sc(Nt).build(){},Vy=class extends L.classBuilder().ep(ye).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTargetGroupAttributes`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTargetGroupAttributesCommand`).sc(It).build(){},Hy=class extends L.classBuilder().ep(ye).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTargetGroups`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTargetGroupsCommand`).sc(nt).build(){},Uy=class extends L.classBuilder().ep(ye).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTargetHealth`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTargetHealthCommand`).sc(Ft).build(){},Wy=class extends L.classBuilder().ep(_t).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetInstanceProfile`,{}).n(`IAMClient`,`GetInstanceProfileCommand`).sc(Re).build(){},Gy=class extends L.classBuilder().ep(_t).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetPolicy`,{}).n(`IAMClient`,`GetPolicyCommand`).sc(we).build(){},Ky=class extends L.classBuilder().ep(_t).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetPolicyVersion`,{}).n(`IAMClient`,`GetPolicyVersionCommand`).sc(Ie).build(){},qy=class extends L.classBuilder().ep(_t).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetRole`,{}).n(`IAMClient`,`GetRoleCommand`).sc(Be).build(){},Jy=class extends L.classBuilder().ep(_t).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetUser`,{}).n(`IAMClient`,`GetUserCommand`).sc(Se).build(){},Yy=class extends L.classBuilder().ep(_t).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListAccessKeys`,{}).n(`IAMClient`,`ListAccessKeysCommand`).sc(ke).build(){},Xy=class extends L.classBuilder().ep(_t).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListAttachedRolePolicies`,{}).n(`IAMClient`,`ListAttachedRolePoliciesCommand`).sc(St).build(){},Zy=class extends L.classBuilder().ep(_t).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListAttachedUserPolicies`,{}).n(`IAMClient`,`ListAttachedUserPoliciesCommand`).sc(Ee).build(){},Qy=class extends L.classBuilder().ep(_t).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListInstanceProfiles`,{}).n(`IAMClient`,`ListInstanceProfilesCommand`).sc(Ke).build(){},$y=class extends L.classBuilder().ep(_t).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListInstanceProfilesForRole`,{}).n(`IAMClient`,`ListInstanceProfilesForRoleCommand`).sc(Ue).build(){},eb=class extends L.classBuilder().ep(_t).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListPolicies`,{}).n(`IAMClient`,`ListPoliciesCommand`).sc(Ye).build(){},tb=class extends L.classBuilder().ep(_t).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListRoles`,{}).n(`IAMClient`,`ListRolesCommand`).sc(Ne).build(){},nb=class extends L.classBuilder().ep(_t).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListUsers`,{}).n(`IAMClient`,`ListUsersCommand`).sc(ge).build(){},rb=class extends L.classBuilder().ep(tt).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions()),Pt(n)]}).s(`AmazonS3`,`ListBuckets`,{}).n(`S3Client`,`ListBucketsCommand`).sc(lt).build(){},ib=class extends L.classBuilder().ep({...tt,Bucket:{type:`contextParams`,name:`Bucket`},Prefix:{type:`contextParams`,name:`Prefix`}}).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions()),Pt(n)]}).s(`AmazonS3`,`ListObjectsV2`,{}).n(`S3Client`,`ListObjectsV2Command`).sc(st).build(){},ab=!1;function ob(e,t){ab||!ny(e)||(ab=!0,Bn(),kt(),t.clear(),window.location.pathname!==`/login`&&(window.location.href=`/login?reason=expired`))}function sb(){let e=new Li({queryCache:new Ii({onError:t=>ob(t,e)}),mutationCache:new Pi({onError:t=>ob(t,e)}),defaultOptions:{queries:{staleTime:5e3,refetchIntervalInBackground:!1}}});return e}function cb(){let e=(0,xs.c)(8),{theme:t,setTheme:n}=Ts(),r;e[0]!==n||e[1]!==t?(r=()=>{n(t===`light`?`dark`:t===`dark`?`light`:`dark`)},e[0]=n,e[1]=t,e[2]=r):r=e[2];let i=r,a,o,s;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,W.jsx)(cc,{className:`size-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90`}),o=(0,W.jsx)($s,{className:`absolute size-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0`}),s=(0,W.jsx)(`span`,{className:`sr-only`,children:`Toggle theme`}),e[3]=a,e[4]=o,e[5]=s):(a=e[3],o=e[4],s=e[5]);let c;return e[6]===i?c=e[7]:(c=(0,W.jsxs)(dr,{className:`rounded-full`,onClick:i,size:`icon-sm`,variant:`ghost`,children:[a,o,s]}),e[6]=i,e[7]=c),c}function lb(){let e=(0,xs.c)(7),{isAdmin:t,license:n}=ey(),r=t&&n===`open-source`,i,a;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=un(`z-50 flex h-10 shrink-0 items-center gap-2 border-b border-sidebar-border bg-sidebar px-4 text-sidebar-foreground`,`sticky top-0`),a=(0,W.jsx)(yg,{className:`-ml-1`}),e[0]=i,e[1]=a):(i=e[0],a=e[1]);let o;e[2]===r?o=e[3]:(o=r&&(0,W.jsx)(`a`,{href:`https://mulgadc.com/purchase`,target:`_blank`,rel:`noopener noreferrer`,className:un(sr({variant:`outline`,size:`sm`})),children:`Upgrade`}),e[2]=r,e[3]=o);let s;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,W.jsx)(cb,{}),e[4]=s):s=e[4];let c;return e[5]===o?c=e[6]:(c=(0,W.jsxs)(`header`,{className:i,children:[a,(0,W.jsxs)(`div`,{className:`flex w-full items-center justify-end gap-2`,children:[o,s]})]}),e[5]=o,e[6]=c),c}function ub(){let e=(0,xs.c)(3),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,W.jsx)(`h1`,{className:`text-4xl font-bold`,children:`404`}),n=(0,W.jsx)(`p`,{className:`text-muted-foreground`,children:`Page not found`}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;return e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,W.jsxs)(`div`,{className:`flex flex-1 flex-col items-center justify-center gap-4`,children:[t,n,(0,W.jsx)(pt,{to:`/`,children:(0,W.jsx)(dr,{variant:`outline`,children:`Go back home`})})]}),e[2]=r):r=e[2],r}function db(){let e=(0,xs.c)(202),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={select:fb},e[0]=t):t=e[0];let n=ds(t),r=Bo(),i=zi(),{isAdmin:a}=ey(),o;e[1]!==r||e[2]!==i?(o=function(){Bn(),kt(),i.clear(),r({to:`/login`})},e[1]=r,e[2]=i,e[3]=o):o=e[3];let s=o,c;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,W.jsxs)(xg,{className:`flex flex-row items-center gap-2 px-4 py-3`,children:[(0,W.jsx)(`img`,{src:`/mulga-logo.svg`,alt:`Mulga`,className:`size-6 shrink-0 dark:invert`}),(0,W.jsx)(`span`,{className:`truncate text-sm font-semibold group-data-[collapsible=icon]:hidden`,children:`Spinifex`})]}),e[4]=c):c=e[4];let l;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,W.jsx)(Eg,{children:`General`}),e[5]=l):l=e[5];let u=n===`/`,d,f;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,W.jsx)(Gs,{className:`size-4`}),f=(0,W.jsx)(`span`,{children:`Dashboard`}),e[6]=d,e[7]=f):(d=e[6],f=e[7]);let p;e[8]===u?p=e[9]:(p=(0,W.jsx)(Og,{children:(0,W.jsx)(pt,{to:`/`,children:(0,W.jsxs)(Ag,{isActive:u,tooltip:`Dashboard`,children:[d,f]})})}),e[8]=u,e[9]=p);let m;e[10]!==a||e[11]!==n?(m=a&&(0,W.jsx)(Og,{children:(0,W.jsx)(pt,{to:`/nodes`,children:(0,W.jsxs)(Ag,{isActive:n.startsWith(`/nodes`),tooltip:`Nodes`,children:[(0,W.jsx)(ac,{className:`size-4`}),(0,W.jsx)(`span`,{children:`Nodes`})]})})}),e[10]=a,e[11]=n,e[12]=m):m=e[12];let h;e[13]!==p||e[14]!==m?(h=(0,W.jsxs)(Tg,{children:[l,(0,W.jsxs)(Dg,{children:[p,m]})]}),e[13]=p,e[14]=m,e[15]=h):h=e[15];let g;e[16]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,W.jsx)(Eg,{children:`EC2`}),e[16]=g):g=e[16];let _;e[17]===n?_=e[18]:(_=n.startsWith(`/ec2/describe-instances`)||n.startsWith(`/ec2/run-instances`),e[17]=n,e[18]=_);let v,y;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,W.jsx)(ac,{className:`size-4`}),y=(0,W.jsx)(`span`,{children:`Instances`}),e[19]=v,e[20]=y):(v=e[19],y=e[20]);let b;e[21]===_?b=e[22]:(b=(0,W.jsx)(Og,{children:(0,W.jsx)(pt,{to:`/ec2/describe-instances`,children:(0,W.jsxs)(Ag,{isActive:_,tooltip:`Instances`,children:[v,y]})})}),e[21]=_,e[22]=b);let x;e[23]===n?x=e[24]:(x=n.startsWith(`/ec2/describe-images`),e[23]=n,e[24]=x);let S,C;e[25]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,W.jsx)(qs,{className:`size-4`}),C=(0,W.jsx)(`span`,{children:`Images`}),e[25]=S,e[26]=C):(S=e[25],C=e[26]);let w;e[27]===x?w=e[28]:(w=(0,W.jsx)(Og,{children:(0,W.jsx)(pt,{to:`/ec2/describe-images`,children:(0,W.jsxs)(Ag,{isActive:x,tooltip:`Images`,children:[S,C]})})}),e[27]=x,e[28]=w);let T;e[29]===n?T=e[30]:(T=n.startsWith(`/ec2/describe-key-pairs`),e[29]=n,e[30]=T);let E,D;e[31]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,W.jsx)(Js,{className:`size-4`}),D=(0,W.jsx)(`span`,{children:`Key Pairs`}),e[31]=E,e[32]=D):(E=e[31],D=e[32]);let O;e[33]===T?O=e[34]:(O=(0,W.jsx)(Og,{children:(0,W.jsx)(pt,{to:`/ec2/describe-key-pairs`,children:(0,W.jsxs)(Ag,{isActive:T,tooltip:`Key Pairs`,children:[E,D]})})}),e[33]=T,e[34]=O);let k;e[35]===n?k=e[36]:(k=n.startsWith(`/ec2/describe-addresses`)||n.startsWith(`/ec2/allocate-address`),e[35]=n,e[36]=k);let A,j;e[37]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,W.jsx)(Qs,{className:`size-4`}),j=(0,W.jsx)(`span`,{children:`Elastic IPs`}),e[37]=A,e[38]=j):(A=e[37],j=e[38]);let M;e[39]===k?M=e[40]:(M=(0,W.jsx)(Og,{children:(0,W.jsx)(pt,{to:`/ec2/describe-addresses`,children:(0,W.jsxs)(Ag,{isActive:k,tooltip:`Elastic IPs`,children:[A,j]})})}),e[39]=k,e[40]=M);let ee;e[41]===n?ee=e[42]:(ee=n.startsWith(`/ec2/describe-volumes`)||n.startsWith(`/ec2/create-volume`)||n.startsWith(`/ec2/modify-volume`),e[41]=n,e[42]=ee);let N,P;e[43]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,W.jsx)(Ws,{className:`size-4`}),P=(0,W.jsx)(`span`,{children:`Volumes`}),e[43]=N,e[44]=P):(N=e[43],P=e[44]);let te;e[45]===ee?te=e[46]:(te=(0,W.jsx)(Og,{children:(0,W.jsx)(pt,{to:`/ec2/describe-volumes`,children:(0,W.jsxs)(Ag,{isActive:ee,tooltip:`Volumes`,children:[N,P]})})}),e[45]=ee,e[46]=te);let ne;e[47]===n?ne=e[48]:(ne=n.startsWith(`/ec2/describe-snapshots`)||n.startsWith(`/ec2/create-snapshot`),e[47]=n,e[48]=ne);let re,ie;e[49]===Symbol.for(`react.memo_cache_sentinel`)?(re=(0,W.jsx)(Bs,{className:`size-4`}),ie=(0,W.jsx)(`span`,{children:`Snapshots`}),e[49]=re,e[50]=ie):(re=e[49],ie=e[50]);let ae;e[51]===ne?ae=e[52]:(ae=(0,W.jsx)(Og,{children:(0,W.jsx)(pt,{to:`/ec2/describe-snapshots`,children:(0,W.jsxs)(Ag,{isActive:ne,tooltip:`Snapshots`,children:[re,ie]})})}),e[51]=ne,e[52]=ae);let F;e[53]===n?F=e[54]:(F=n.startsWith(`/ec2/describe-placement-groups`)||n.startsWith(`/ec2/create-placement-group`),e[53]=n,e[54]=F);let oe,se;e[55]===Symbol.for(`react.memo_cache_sentinel`)?(oe=(0,W.jsx)(Ys,{className:`size-4`}),se=(0,W.jsx)(`span`,{children:`Placement Groups`}),e[55]=oe,e[56]=se):(oe=e[55],se=e[56]);let I;e[57]===F?I=e[58]:(I=(0,W.jsx)(Og,{children:(0,W.jsx)(pt,{to:`/ec2/describe-placement-groups`,children:(0,W.jsxs)(Ag,{isActive:F,tooltip:`Placement Groups`,children:[oe,se]})})}),e[57]=F,e[58]=I);let ce;e[59]===n?ce=e[60]:(ce=n.startsWith(`/ec2/describe-load-balancers`)||n.startsWith(`/ec2/create-load-balancer`),e[59]=n,e[60]=ce);let le,ue;e[61]===Symbol.for(`react.memo_cache_sentinel`)?(le=(0,W.jsx)(dc,{className:`size-4`}),ue=(0,W.jsx)(`span`,{children:`Load Balancers`}),e[61]=le,e[62]=ue):(le=e[61],ue=e[62]);let de;e[63]===ce?de=e[64]:(de=(0,W.jsx)(Og,{children:(0,W.jsx)(pt,{to:`/ec2/describe-load-balancers`,children:(0,W.jsxs)(Ag,{isActive:ce,tooltip:`Load Balancers`,children:[le,ue]})})}),e[63]=ce,e[64]=de);let fe;e[65]===n?fe=e[66]:(fe=n.startsWith(`/ec2/describe-target-groups`)||n.startsWith(`/ec2/create-target-group`),e[65]=n,e[66]=fe);let pe,me;e[67]===Symbol.for(`react.memo_cache_sentinel`)?(pe=(0,W.jsx)(Hs,{className:`size-4`}),me=(0,W.jsx)(`span`,{children:`Target Groups`}),e[67]=pe,e[68]=me):(pe=e[67],me=e[68]);let he;e[69]===fe?he=e[70]:(he=(0,W.jsx)(Og,{children:(0,W.jsx)(pt,{to:`/ec2/describe-target-groups`,children:(0,W.jsxs)(Ag,{isActive:fe,tooltip:`Target Groups`,children:[pe,me]})})}),e[69]=fe,e[70]=he);let ge;e[71]!==b||e[72]!==w||e[73]!==O||e[74]!==M||e[75]!==te||e[76]!==ae||e[77]!==I||e[78]!==de||e[79]!==he?(ge=(0,W.jsxs)(Tg,{children:[g,(0,W.jsxs)(Dg,{children:[b,w,O,M,te,ae,I,de,he]})]}),e[71]=b,e[72]=w,e[73]=O,e[74]=M,e[75]=te,e[76]=ae,e[77]=I,e[78]=de,e[79]=he,e[80]=ge):ge=e[80];let _e;e[81]===Symbol.for(`react.memo_cache_sentinel`)?(_e=(0,W.jsx)(Eg,{children:`Networking`}),e[81]=_e):_e=e[81];let ve;e[82]===n?ve=e[83]:(ve=n.startsWith(`/ec2/describe-vpcs`)||n.startsWith(`/ec2/create-vpc`),e[82]=n,e[83]=ve);let ye,be;e[84]===Symbol.for(`react.memo_cache_sentinel`)?(ye=(0,W.jsx)(ec,{className:`size-4`}),be=(0,W.jsx)(`span`,{children:`VPCs`}),e[84]=ye,e[85]=be):(ye=e[84],be=e[85]);let xe;e[86]===ve?xe=e[87]:(xe=(0,W.jsx)(Og,{children:(0,W.jsx)(pt,{to:`/ec2/describe-vpcs`,children:(0,W.jsxs)(Ag,{isActive:ve,tooltip:`VPCs`,children:[ye,be]})})}),e[86]=ve,e[87]=xe);let Se;e[88]===n?Se=e[89]:(Se=n.startsWith(`/ec2/describe-subnets`)||n.startsWith(`/ec2/create-subnet`),e[88]=n,e[89]=Se);let Ce,we;e[90]===Symbol.for(`react.memo_cache_sentinel`)?(Ce=(0,W.jsx)(Xs,{className:`size-4`}),we=(0,W.jsx)(`span`,{children:`Subnets`}),e[90]=Ce,e[91]=we):(Ce=e[90],we=e[91]);let Te;e[92]===Se?Te=e[93]:(Te=(0,W.jsx)(Og,{children:(0,W.jsx)(pt,{to:`/ec2/describe-subnets`,children:(0,W.jsxs)(Ag,{isActive:Se,tooltip:`Subnets`,children:[Ce,we]})})}),e[92]=Se,e[93]=Te);let Ee;e[94]===n?Ee=e[95]:(Ee=n.startsWith(`/ec2/describe-security-groups`)||n.startsWith(`/ec2/create-security-group`),e[94]=n,e[95]=Ee);let De,Oe;e[96]===Symbol.for(`react.memo_cache_sentinel`)?(De=(0,W.jsx)(oc,{className:`size-4`}),Oe=(0,W.jsx)(`span`,{children:`Security Groups`}),e[96]=De,e[97]=Oe):(De=e[96],Oe=e[97]);let ke;e[98]===Ee?ke=e[99]:(ke=(0,W.jsx)(Og,{children:(0,W.jsx)(pt,{to:`/ec2/describe-security-groups`,children:(0,W.jsxs)(Ag,{isActive:Ee,tooltip:`Security Groups`,children:[De,Oe]})})}),e[98]=Ee,e[99]=ke);let Ae;e[100]===n?Ae=e[101]:(Ae=n.startsWith(`/ec2/describe-route-tables`)||n.startsWith(`/ec2/create-route-table`),e[100]=n,e[101]=Ae);let je,Me;e[102]===Symbol.for(`react.memo_cache_sentinel`)?(je=(0,W.jsx)(ic,{className:`size-4`}),Me=(0,W.jsx)(`span`,{children:`Route Tables`}),e[102]=je,e[103]=Me):(je=e[102],Me=e[103]);let Ne;e[104]===Ae?Ne=e[105]:(Ne=(0,W.jsx)(Og,{children:(0,W.jsx)(pt,{to:`/ec2/describe-route-tables`,children:(0,W.jsxs)(Ag,{isActive:Ae,tooltip:`Route Tables`,children:[je,Me]})})}),e[104]=Ae,e[105]=Ne);let Pe;e[106]===n?Pe=e[107]:(Pe=n.startsWith(`/ec2/describe-internet-gateways`),e[106]=n,e[107]=Pe);let Fe,Ie;e[108]===Symbol.for(`react.memo_cache_sentinel`)?(Fe=(0,W.jsx)(Us,{className:`size-4`}),Ie=(0,W.jsx)(`span`,{children:`Internet Gateways`}),e[108]=Fe,e[109]=Ie):(Fe=e[108],Ie=e[109]);let Le;e[110]===Pe?Le=e[111]:(Le=(0,W.jsx)(Og,{children:(0,W.jsx)(pt,{to:`/ec2/describe-internet-gateways`,children:(0,W.jsxs)(Ag,{isActive:Pe,tooltip:`Internet Gateways`,children:[Fe,Ie]})})}),e[110]=Pe,e[111]=Le);let Re;e[112]===n?Re=e[113]:(Re=n.startsWith(`/ec2/describe-nat-gateways`)||n.startsWith(`/ec2/create-nat-gateway`),e[112]=n,e[113]=Re);let ze,Be;e[114]===Symbol.for(`react.memo_cache_sentinel`)?(ze=(0,W.jsx)(rc,{className:`size-4`}),Be=(0,W.jsx)(`span`,{children:`NAT Gateways`}),e[114]=ze,e[115]=Be):(ze=e[114],Be=e[115]);let Ve;e[116]===Re?Ve=e[117]:(Ve=(0,W.jsx)(Og,{children:(0,W.jsx)(pt,{to:`/ec2/describe-nat-gateways`,children:(0,W.jsxs)(Ag,{isActive:Re,tooltip:`NAT Gateways`,children:[ze,Be]})})}),e[116]=Re,e[117]=Ve);let He;e[118]!==xe||e[119]!==Te||e[120]!==ke||e[121]!==Ne||e[122]!==Le||e[123]!==Ve?(He=(0,W.jsxs)(Tg,{children:[_e,(0,W.jsxs)(Dg,{children:[xe,Te,ke,Ne,Le,Ve]})]}),e[118]=xe,e[119]=Te,e[120]=ke,e[121]=Ne,e[122]=Le,e[123]=Ve,e[124]=He):He=e[124];let Ue;e[125]===Symbol.for(`react.memo_cache_sentinel`)?(Ue=(0,W.jsx)(Eg,{children:`EKS`}),e[125]=Ue):Ue=e[125];let We;e[126]===n?We=e[127]:(We=n.startsWith(`/eks/list-clusters`)||n.startsWith(`/eks/create-cluster`),e[126]=n,e[127]=We);let Ge,Ke;e[128]===Symbol.for(`react.memo_cache_sentinel`)?(Ge=(0,W.jsx)(zs,{className:`size-4`}),Ke=(0,W.jsx)(`span`,{children:`Clusters`}),e[128]=Ge,e[129]=Ke):(Ge=e[128],Ke=e[129]);let qe;e[130]===We?qe=e[131]:(qe=(0,W.jsxs)(Tg,{children:[Ue,(0,W.jsx)(Dg,{children:(0,W.jsx)(Og,{children:(0,W.jsx)(pt,{to:`/eks/list-clusters`,children:(0,W.jsxs)(Ag,{isActive:We,tooltip:`Clusters`,children:[Ge,Ke]})})})})]}),e[130]=We,e[131]=qe);let Je;e[132]===Symbol.for(`react.memo_cache_sentinel`)?(Je=(0,W.jsx)(Eg,{children:`ECR`}),e[132]=Je):Je=e[132];let Ye;e[133]===n?Ye=e[134]:(Ye=n.startsWith(`/ecr/list-repositories`),e[133]=n,e[134]=Ye);let Xe,Ze;e[135]===Symbol.for(`react.memo_cache_sentinel`)?(Xe=(0,W.jsx)(tc,{className:`size-4`}),Ze=(0,W.jsx)(`span`,{children:`Repositories`}),e[135]=Xe,e[136]=Ze):(Xe=e[135],Ze=e[136]);let Qe;e[137]===Ye?Qe=e[138]:(Qe=(0,W.jsxs)(Tg,{children:[Je,(0,W.jsx)(Dg,{children:(0,W.jsx)(Og,{children:(0,W.jsx)(pt,{to:`/ecr/list-repositories`,children:(0,W.jsxs)(Ag,{isActive:Ye,tooltip:`Repositories`,children:[Xe,Ze]})})})})]}),e[137]=Ye,e[138]=Qe);let $e;e[139]===Symbol.for(`react.memo_cache_sentinel`)?($e=(0,W.jsx)(Eg,{children:`IAM`}),e[139]=$e):$e=e[139];let et;e[140]===n?et=e[141]:(et=n.startsWith(`/iam/list-users`)||n.startsWith(`/iam/create-user`),e[140]=n,e[141]=et);let tt,nt;e[142]===Symbol.for(`react.memo_cache_sentinel`)?(tt=(0,W.jsx)(uc,{className:`size-4`}),nt=(0,W.jsx)(`span`,{children:`Users`}),e[142]=tt,e[143]=nt):(tt=e[142],nt=e[143]);let rt;e[144]===et?rt=e[145]:(rt=(0,W.jsx)(Og,{children:(0,W.jsx)(pt,{to:`/iam/list-users`,children:(0,W.jsxs)(Ag,{isActive:et,tooltip:`Users`,children:[tt,nt]})})}),e[144]=et,e[145]=rt);let it;e[146]===n?it=e[147]:(it=n.startsWith(`/iam/list-policies`)||n.startsWith(`/iam/create-policy`),e[146]=n,e[147]=it);let at,ot;e[148]===Symbol.for(`react.memo_cache_sentinel`)?(at=(0,W.jsx)(sc,{className:`size-4`}),ot=(0,W.jsx)(`span`,{children:`Policies`}),e[148]=at,e[149]=ot):(at=e[148],ot=e[149]);let st;e[150]===it?st=e[151]:(st=(0,W.jsx)(Og,{children:(0,W.jsx)(pt,{to:`/iam/list-policies`,children:(0,W.jsxs)(Ag,{isActive:it,tooltip:`Policies`,children:[at,ot]})})}),e[150]=it,e[151]=st);let ct;e[152]===n?ct=e[153]:(ct=n.startsWith(`/iam/list-roles`)||n.startsWith(`/iam/create-role`),e[152]=n,e[153]=ct);let lt,ut;e[154]===Symbol.for(`react.memo_cache_sentinel`)?(lt=(0,W.jsx)(lc,{className:`size-4`}),ut=(0,W.jsx)(`span`,{children:`Roles`}),e[154]=lt,e[155]=ut):(lt=e[154],ut=e[155]);let dt;e[156]===ct?dt=e[157]:(dt=(0,W.jsx)(Og,{children:(0,W.jsx)(pt,{to:`/iam/list-roles`,children:(0,W.jsxs)(Ag,{isActive:ct,tooltip:`Roles`,children:[lt,ut]})})}),e[156]=ct,e[157]=dt);let ft;e[158]===n?ft=e[159]:(ft=n.startsWith(`/iam/list-instance-profiles`)||n.startsWith(`/iam/create-instance-profile`),e[158]=n,e[159]=ft);let mt,ht;e[160]===Symbol.for(`react.memo_cache_sentinel`)?(mt=(0,W.jsx)(Ks,{className:`size-4`}),ht=(0,W.jsx)(`span`,{children:`Instance Profiles`}),e[160]=mt,e[161]=ht):(mt=e[160],ht=e[161]);let gt;e[162]===ft?gt=e[163]:(gt=(0,W.jsx)(Og,{children:(0,W.jsx)(pt,{to:`/iam/list-instance-profiles`,children:(0,W.jsxs)(Ag,{isActive:ft,tooltip:`Instance Profiles`,children:[mt,ht]})})}),e[162]=ft,e[163]=gt);let _t;e[164]!==gt||e[165]!==rt||e[166]!==st||e[167]!==dt?(_t=(0,W.jsxs)(Tg,{children:[$e,(0,W.jsxs)(Dg,{children:[rt,st,dt,gt]})]}),e[164]=gt,e[165]=rt,e[166]=st,e[167]=dt,e[168]=_t):_t=e[168];let vt;e[169]===Symbol.for(`react.memo_cache_sentinel`)?(vt=(0,W.jsx)(Eg,{children:`S3`}),e[169]=vt):vt=e[169];let yt;e[170]===n?yt=e[171]:(yt=n.startsWith(`/s3/ls`),e[170]=n,e[171]=yt);let bt,xt;e[172]===Symbol.for(`react.memo_cache_sentinel`)?(bt=(0,W.jsx)(ac,{className:`size-4`}),xt=(0,W.jsx)(`span`,{children:`Buckets`}),e[172]=bt,e[173]=xt):(bt=e[172],xt=e[173]);let St;e[174]===yt?St=e[175]:(St=(0,W.jsx)(Og,{children:(0,W.jsx)(pt,{to:`/s3/ls`,children:(0,W.jsxs)(Ag,{isActive:yt,tooltip:`Buckets`,children:[bt,xt]})})}),e[174]=yt,e[175]=St);let Ct;e[176]!==a||e[177]!==n?(Ct=a&&(0,W.jsx)(Og,{children:(0,W.jsx)(pt,{to:`/s3/service-metrics`,children:(0,W.jsxs)(Ag,{isActive:n.startsWith(`/s3/service-metrics`),tooltip:`Service Metrics`,children:[(0,W.jsx)(Ls,{className:`size-4`}),(0,W.jsx)(`span`,{children:`Service Metrics`})]})})}),e[176]=a,e[177]=n,e[178]=Ct):Ct=e[178];let wt;e[179]!==St||e[180]!==Ct?(wt=(0,W.jsxs)(Tg,{children:[vt,(0,W.jsxs)(Dg,{children:[St,Ct]})]}),e[179]=St,e[180]=Ct,e[181]=wt):wt=e[181];let Tt;e[182]===a?Tt=e[183]:(Tt=a&&(0,W.jsxs)(Tg,{children:[(0,W.jsx)(Eg,{children:`Documentation`}),(0,W.jsx)(Dg,{children:(0,W.jsx)(Og,{children:(0,W.jsx)(`a`,{href:`https://docs.mulgadc.com`,target:`_blank`,rel:`noopener noreferrer`,children:(0,W.jsxs)(Ag,{tooltip:`Documentation`,children:[(0,W.jsx)(Rs,{className:`size-4`}),(0,W.jsx)(`span`,{children:`Docs`})]})})})})]}),e[182]=a,e[183]=Tt);let Et;e[184]!==_t||e[185]!==wt||e[186]!==Tt||e[187]!==ge||e[188]!==He||e[189]!==qe||e[190]!==Qe||e[191]!==h?(Et=(0,W.jsxs)(wg,{children:[h,ge,He,qe,Qe,_t,wt,Tt]}),e[184]=_t,e[185]=wt,e[186]=Tt,e[187]=ge,e[188]=He,e[189]=qe,e[190]=Qe,e[191]=h,e[192]=Et):Et=e[192];let Dt;e[193]===Symbol.for(`react.memo_cache_sentinel`)?(Dt=(0,W.jsx)(Cg,{className:`mx-0 w-full`}),e[193]=Dt):Dt=e[193];let Ot,At;e[194]===Symbol.for(`react.memo_cache_sentinel`)?(Ot=(0,W.jsx)(Zs,{className:`size-4`}),At=(0,W.jsx)(`span`,{children:`Sign out`}),e[194]=Ot,e[195]=At):(Ot=e[194],At=e[195]);let jt;e[196]===s?jt=e[197]:(jt=(0,W.jsxs)(Sg,{children:[Dt,(0,W.jsx)(Dg,{children:(0,W.jsx)(Og,{children:(0,W.jsxs)(Ag,{onClick:s,tooltip:`Sign out`,children:[Ot,At]})})})]}),e[196]=s,e[197]=jt);let Mt;e[198]===Symbol.for(`react.memo_cache_sentinel`)?(Mt=(0,W.jsx)(bg,{}),e[198]=Mt):Mt=e[198];let Nt;return e[199]!==Et||e[200]!==jt?(Nt=(0,W.jsxs)(vg,{collapsible:`icon`,children:[c,Et,jt,Mt]}),e[199]=Et,e[200]=jt,e[201]=Nt):Nt=e[201],Nt}function fb(e){return e.pathname}function pb(e){let t=(0,xs.c)(18),{error:n,reset:r}=e,i=M(),a=zi(),o;t[0]!==a||t[1]!==r||t[2]!==i?(o=function(){a.invalidateQueries(),r(),i.invalidate()},t[0]=a,t[1]=r,t[2]=i,t[3]=o):o=t[3];let s=o,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,W.jsx)(db,{}),t[4]=c):c=t[4];let l;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,W.jsx)(lb,{}),t[5]=l):l=t[5];let u,d;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,W.jsx)(`div`,{className:`flex justify-center`,children:(0,W.jsx)(Vs,{className:`size-12 text-destructive`})}),d=(0,W.jsx)(`h1`,{className:`text-2xl font-semibold`,children:`Something went wrong`}),t[6]=u,t[7]=d):(u=t[6],d=t[7]);let f=n.message||`An unexpected error occurred`,p;t[8]===f?p=t[9]:(p=(0,W.jsx)(`p`,{className:`text-muted-foreground`,children:f}),t[8]=f,t[9]=p);let m;t[10]===s?m=t[11]:(m=(0,W.jsx)(dr,{onClick:s,variant:`default`,children:`Try Again`}),t[10]=s,t[11]=m);let h;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,W.jsx)(pt,{to:`/`,children:(0,W.jsx)(dr,{variant:`outline`,children:`Go Home`})}),t[12]=h):h=t[12];let g;t[13]===m?g=t[14]:(g=(0,W.jsxs)(`div`,{className:`flex justify-center gap-2`,children:[m,h]}),t[13]=m,t[14]=g);let _;return t[15]!==g||t[16]!==p?(_=(0,W.jsxs)(W.Fragment,{children:[c,(0,W.jsxs)(`main`,{className:`flex flex-1 flex-col`,children:[l,(0,W.jsx)(`div`,{className:`flex flex-1 items-center justify-center p-6 pt-0`,children:(0,W.jsxs)(`div`,{className:`max-w-md space-y-4 text-center`,children:[u,d,p,g]})})]})]}),t[15]=g,t[16]=p,t[17]=_):_=t[17],_}var mb=Wo()({head:()=>({meta:[{title:`Mulga`}]}),component:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(gs,{}),(0,W.jsx)(db,{}),(0,W.jsxs)(`main`,{className:`flex flex-1 flex-col`,children:[(0,W.jsx)(lb,{}),(0,W.jsx)(`div`,{className:`flex flex-1 flex-col p-8`,children:(0,W.jsx)(ns,{})})]})]}),errorComponent:pb,notFoundComponent:ub}),hb=K(`/login`)({validateSearch:e=>({reason:e.reason===`expired`?`expired`:void 0}),beforeLoad:()=>{if(Hn())throw me({to:`/`})},component:q(()=>R(()=>import(`./login.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13])),`component`)}),gb=K(`/_auth`)({beforeLoad:()=>{if(!Hn())throw me({to:`/login`})},component:q(()=>R(()=>import(`./route.js`),__vite__mapDeps([14,1])),`component`)}),_b=a({queryKey:[`ec2`,`availabilityZones`],queryFn:async()=>{let e=new ay({});return await Tt().send(e)},staleTime:3e5}),vb=a({queryKey:[`ec2`,`instances`],queryFn:async()=>{let e=new cy({});return await Tt().send(e)},refetchInterval:5e3}),yb=e=>a({queryKey:[`ec2`,`instances`,e],queryFn:async()=>{let t=new cy({InstanceIds:[e]});return await Tt().send(t)},refetchInterval:5e3}),bb=e=>a({queryKey:[`ec2`,`iam-instance-profile-associations`,e],queryFn:async()=>{let t=new oy({Filters:[{Name:`instance-id`,Values:[e]}]});return await Tt().send(t)},refetchInterval:5e3}),xb=a({queryKey:[`ec2`,`instances`,`types`],queryFn:async()=>{let e=new ly({Filters:[{Name:`capacity`,Values:[`true`]}]});return await Tt().send(e)},refetchInterval:5e3}),Sb=a({queryKey:[`ec2`,`images`],queryFn:async()=>{let e=new sy({});return await Tt().send(e)}}),Cb=e=>a({queryKey:[`ec2`,`images`,e??`none`],queryFn:async()=>{if(!e)return{Images:[],$metadata:{}};let t=new sy({ImageIds:[e]});return await Tt().send(t)}}),wb=a({queryKey:[`ec2`,`keypairs`],queryFn:async()=>{let e=new dy({});return await Tt().send(e)}}),Tb=e=>a({queryKey:[`ec2`,`keypairs`,e],queryFn:async()=>{let t=new dy({KeyPairIds:[e]});return await Tt().send(t)}}),Eb=a({queryKey:[`ec2`,`regions`],queryFn:async()=>{let e=new my({});return await Tt().send(e)},staleTime:3e5}),Db=a({queryKey:[`ec2`,`subnets`],queryFn:async()=>{let e=new vy({});return await Tt().send(e)}}),Ob=e=>a({queryKey:[`ec2`,`subnets`,e],queryFn:async()=>{let t=new vy({SubnetIds:[e]});return await Tt().send(t)}}),kb=a({queryKey:[`ec2`,`snapshots`],queryFn:async()=>{let e=new _y({});return await Tt().send(e)},refetchInterval:5e3}),Ab=e=>a({queryKey:[`ec2`,`snapshots`,e],queryFn:async()=>{let t=new _y({SnapshotIds:[e]});return await Tt().send(t)},refetchInterval:5e3}),jb=a({queryKey:[`ec2`,`internetGateways`],queryFn:async()=>{let e=new uy({});return await Tt().send(e)},refetchInterval:5e3}),Mb=e=>a({queryKey:[`ec2`,`internetGateways`,e],queryFn:async()=>{let t=new uy({InternetGatewayIds:[e]});return await Tt().send(t)},refetchInterval:5e3}),Nb=a({queryKey:[`ec2`,`routeTables`],queryFn:async()=>{let e=new hy({});return await Tt().send(e)},refetchInterval:5e3}),Pb=e=>a({queryKey:[`ec2`,`routeTables`,e],queryFn:async()=>{let t=new hy({RouteTableIds:[e]});return await Tt().send(t)},refetchInterval:5e3}),Fb=a({queryKey:[`ec2`,`vpcs`],queryFn:async()=>{let e=new by({});return await Tt().send(e)}}),Ib=e=>a({queryKey:[`ec2`,`vpcs`,e],queryFn:async()=>{let t=new by({VpcIds:[e]});return await Tt().send(t)}}),Lb=a({queryKey:[`ec2`,`placementGroups`],queryFn:async()=>{let e=new py({});return await Tt().send(e)}}),Rb=e=>a({queryKey:[`ec2`,`placementGroups`,e],queryFn:async()=>{let t=new py({GroupIds:[e]});return await Tt().send(t)}}),zb=a({queryKey:[`ec2`,`securityGroups`],queryFn:async()=>{let e=new gy({});return await Tt().send(e)}}),Bb=e=>a({queryKey:[`ec2`,`securityGroups`,e],queryFn:async()=>{let t=new gy({GroupIds:[e]});return await Tt().send(t)}}),Vb=a({queryKey:[`ec2`,`addresses`],queryFn:async()=>{let e=new iy({});return await Tt().send(e)},refetchInterval:5e3}),Hb=e=>a({queryKey:[`ec2`,`addresses`,e],queryFn:async()=>{let t=new iy({AllocationIds:[e]});return await Tt().send(t)},refetchInterval:5e3}),Ub=a({queryKey:[`ec2`,`natGateways`],queryFn:async()=>{let e=new fy({});return await Tt().send(e)},refetchInterval:5e3}),Wb=e=>a({queryKey:[`ec2`,`natGateways`,e],queryFn:async()=>{let t=new fy({NatGatewayIds:[e]});return await Tt().send(t)},refetchInterval:5e3}),Gb=a({queryKey:[`ec2`,`volumes`],queryFn:async()=>{let e=new yy({});return await Tt().send(e)},refetchInterval:5e3}),Kb=e=>a({queryKey:[`ec2`,`volumes`,e],queryFn:async()=>{let t=new yy({VolumeIds:[e]});return await Tt().send(t)},refetchInterval:5e3}),qb=a({queryKey:[`s3`,`buckets`],queryFn:async()=>{let e=new rb({});return await rt().send(e)}}),Jb=(e,t)=>a({queryKey:[`s3`,`buckets`,e,`objects`,t??``],queryFn:async()=>{let n=new ib({Bucket:e,Prefix:t,Delimiter:`/`});return await rt().send(n)}}),Yb=K(`/_auth/`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(vb),e.queryClient.ensureQueryData(Gb),e.queryClient.ensureQueryData(Fb),e.queryClient.ensureQueryData(wb),e.queryClient.ensureQueryData(qb),e.queryClient.ensureQueryData(zb),e.queryClient.ensureQueryData(Ub),e.queryClient.ensureQueryData(Vb),e.queryClient.ensureQueryData(jb)])},head:()=>({meta:[{title:`Dashboard | Mulga`}]}),component:q(()=>R(()=>import(`./_auth.js`),__vite__mapDeps([15,1,2,3,4,5,6,16,17,18,19,20,21,22,8,12,23,24])),`component`)}),Xb=K(`/_auth/nodes`)({head:()=>({meta:[{title:`Nodes | Mulga`}]}),component:q(()=>R(()=>import(`./nodes.js`),__vite__mapDeps([25,1,2,3,16,17,26,20,22,8,12,23,24])),`component`)}),Zb=K(`/_auth/s3/service-metrics`)({head:()=>({meta:[{title:`Service Metrics | S3 | Mulga`}]}),component:q(()=>R(()=>import(`./service-metrics.js`),__vite__mapDeps([27,1,16,17,26,20,22,2,3,8,12,23,24])),`component`)}),Qb=K(`/_auth/s3/ls/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(qb)},head:()=>({meta:[{title:`Buckets | S3 | Mulga`}]}),component:q(()=>R(()=>import(`./ls.js`),__vite__mapDeps([28,1,2,3,4,5,6,7,8,29,17,30,20])),`component`)}),$b=K(`/_auth/s3/(buckets)/create-bucket`)({head:()=>({meta:[{title:`Create Bucket | S3 | Mulga`}]}),component:q(()=>R(()=>import(`./create-bucket.js`),__vite__mapDeps([31,1,2,3,32,5,4,6,33,11,34,35,7,8,36,18,37,38,39,40,20,13])),`component`)}),ex=K(`/_auth/iam/(users)/create-user`)({head:()=>({meta:[{title:`Create User | IAM | Mulga`}]}),component:q(()=>R(()=>import(`./create-user.js`),__vite__mapDeps([41,1,42,2,3,4,5,6,33,11,34,35,7,8,36,18,37,38,39,40,20,13,43,44])),`component`)}),tx=K(`/_auth/iam/(roles)/create-role`)({head:()=>({meta:[{title:`Create Role | IAM | Mulga`}]}),component:q(()=>R(()=>import(`./create-role.js`),__vite__mapDeps([45,1,42,2,3,4,5,6,33,11,34,35,7,8,36,18,37,38,39,40,20,13,46,47,44,43])),`component`)}),nx=K(`/_auth/iam/(policies)/create-policy`)({head:()=>({meta:[{title:`Create Policy | IAM | Mulga`}]}),component:q(()=>R(()=>import(`./create-policy.js`),__vite__mapDeps([48,1,42,2,3,4,5,6,33,11,34,35,7,8,36,18,37,38,39,40,20,13,46,47,44,43])),`component`)}),rx=K(`/_auth/iam/(instance-profiles)/create-instance-profile`)({head:()=>({meta:[{title:`Create Instance Profile | IAM | Mulga`}]}),component:q(()=>R(()=>import(`./create-instance-profile.js`),__vite__mapDeps([49,1,42,2,3,4,5,6,33,11,34,35,7,8,36,18,37,38,39,40,20,13,43,44])),`component`)}),ix=a({queryKey:[`iam`,`users`],queryFn:async()=>{let e=new nb({});return await Dt().send(e)},staleTime:3e5}),ax=e=>a({queryKey:[`iam`,`users`,e],queryFn:async()=>{let t=new Jy({UserName:e});return await Dt().send(t)},staleTime:3e5}),ox=e=>a({queryKey:[`iam`,`access-keys`,e],queryFn:async()=>{let t=new Yy({UserName:e});return await Dt().send(t)},staleTime:3e5}),sx=a({queryKey:[`iam`,`policies`],queryFn:async()=>{let e=new eb({Scope:`Local`});return await Dt().send(e)},staleTime:3e5}),cx=e=>a({queryKey:[`iam`,`policies`,e],queryFn:async()=>{let t=new Gy({PolicyArn:e});return await Dt().send(t)},staleTime:3e5}),lx=(e,t)=>a({queryKey:[`iam`,`policy-versions`,e,t],queryFn:async()=>{let n=new Ky({PolicyArn:e,VersionId:t});return await Dt().send(n)},staleTime:3e5}),ux=e=>a({queryKey:[`iam`,`attached-user-policies`,e],queryFn:async()=>{let t=new Zy({UserName:e});return await Dt().send(t)},staleTime:3e5}),dx=a({queryKey:[`iam`,`roles`],queryFn:async()=>{let e=new tb({});return await Dt().send(e)},staleTime:3e5}),fx=e=>a({queryKey:[`iam`,`roles`,e],queryFn:async()=>{let t=new qy({RoleName:e});return await Dt().send(t)},staleTime:3e5}),px=e=>a({queryKey:[`iam`,`attached-role-policies`,e],queryFn:async()=>{let t=new Xy({RoleName:e});return await Dt().send(t)},staleTime:3e5}),mx=a({queryKey:[`iam`,`instance-profiles`],queryFn:async()=>{let e=new Qy({});return await Dt().send(e)},staleTime:3e5}),hx=e=>a({queryKey:[`iam`,`instance-profiles`,e],queryFn:async()=>{let t=new Wy({InstanceProfileName:e});return await Dt().send(t)},staleTime:3e5}),gx=e=>a({queryKey:[`iam`,`instance-profiles-for-role`,e],queryFn:async()=>{let t=new $y({RoleName:e});return await Dt().send(t)},staleTime:3e5}),_x=K(`/_auth/eks/(clusters)/create-cluster`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Fb),e.queryClient.ensureQueryData(Db),e.queryClient.ensureQueryData(dx),e.queryClient.ensureQueryData(Sb)])},head:()=>({meta:[{title:`Create Cluster | EKS | Mulga`}]}),component:q(()=>R(()=>import(`./create-cluster.js`),__vite__mapDeps([50,1,2,3,51,4,5,6,33,44,52,42,53,7,8,54,55,10,36,18,11,29,17,34,37,56,57,39,40,20,13,38,58,59])),`component`)}),vx=K(`/_auth/ec2/(vpc)/create-vpc`)({head:()=>({meta:[{title:`Create VPC | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./create-vpc.js`),__vite__mapDeps([60,1,61,2,3,4,5,6,33,52,7,8,54,55,10,36,18,11,34,19,35,37,38,39,40,20,13,62])),`component`)}),yx=K(`/_auth/ec2/(volumes)/create-volume`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(_b)},head:()=>({meta:[{title:`Create Volume | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./create-volume.js`),__vite__mapDeps([63,1,61,2,3,4,5,6,33,52,54,7,8,55,10,36,18,11,29,17,34,35,37,38,39,40,20,13,62])),`component`)}),bx=K(`/_auth/ec2/(target-groups)/create-target-group`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Fb)},head:()=>({meta:[{title:`Create Target Group | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./create-target-group.js`),__vite__mapDeps([64,1,65,2,3,4,5,6,33,11,29,17,34,35,7,8,36,18,37,38,66,9,10,54,55,67,68,13,39,40,20,69])),`component`)}),xx=K(`/_auth/ec2/(subnet)/create-subnet`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Fb),e.queryClient.ensureQueryData(_b)])},head:()=>({meta:[{title:`Create Subnet | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./create-subnet.js`),__vite__mapDeps([70,1,2,3,61,4,5,6,33,52,54,7,8,55,10,36,18,11,29,17,34,35,37,38,39,40,20,13,62])),`component`)}),Sx=K(`/_auth/ec2/(snapshots)/create-snapshot`)({validateSearch:e=>({volumeId:typeof e.volumeId==`string`?e.volumeId:void 0}),loader:async({context:e})=>{await e.queryClient.ensureQueryData(Gb)},head:()=>({meta:[{title:`Create Snapshot | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./create-snapshot.js`),__vite__mapDeps([71,1,61,2,3,4,5,6,33,52,54,7,8,55,10,36,18,11,29,17,34,35,37,38,39,40,20,13,47,62])),`component`)}),Cx=K(`/_auth/ec2/(security-groups)/create-security-group`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Fb)},head:()=>({meta:[{title:`Create Security Group | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./create-security-group.js`),__vite__mapDeps([72,1,2,3,61,4,5,6,33,52,54,7,8,55,10,36,18,11,29,17,34,35,37,38,39,40,20,13,62])),`component`)}),wx=K(`/_auth/ec2/(route-tables)/create-route-table`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Fb)},head:()=>({meta:[{title:`Create Route Table | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./create-route-table.js`),__vite__mapDeps([73,1,2,3,61,4,5,6,33,52,54,7,8,55,10,36,18,11,29,17,34,39,40,20,13,62])),`component`)}),Tx=K(`/_auth/ec2/(placement-groups)/create-placement-group`)({head:()=>({meta:[{title:`Create Placement Group | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./create-placement-group.js`),__vite__mapDeps([74,1,61,2,3,4,5,6,33,52,54,7,8,55,10,36,18,11,34,35,37,38,39,40,20,13,62])),`component`)}),Ex=K(`/_auth/ec2/(nat-gateways)/create-nat-gateway`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Db),e.queryClient.ensureQueryData(Vb)])},head:()=>({meta:[{title:`Create NAT Gateway | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./create-nat-gateway.js`),__vite__mapDeps([75,1,2,3,4,5,6,61,33,52,54,7,8,55,10,36,18,11,29,17,34,35,37,38,39,40,20,13,62])),`component`)}),Dx=a({queryKey:[`acm`,`certificates`],queryFn:async()=>{let e=new ry({});return await ht().send(e)}}),Ox=5e3,kx=a({queryKey:[`elbv2`,`loadBalancers`],queryFn:async()=>{let e=new Ly({});return await vt().send(e)},refetchInterval:e=>(e.state.data?.LoadBalancers??[]).some(e=>e.State?.Code===`provisioning`)?Ox:!1}),Ax=e=>a({queryKey:[`elbv2`,`loadBalancers`,e],queryFn:async()=>{let t=new Ly({LoadBalancerArns:[e]});return await vt().send(t)},refetchInterval:e=>(e.state.data?.LoadBalancers?.[0])?.State?.Code===`provisioning`?Ox:!1}),jx=e=>a({queryKey:[`elbv2`,`loadBalancers`,e,`attributes`],queryFn:async()=>{let t=new Iy({LoadBalancerArn:e});return await vt().send(t)}}),Mx=a({queryKey:[`elbv2`,`targetGroups`],queryFn:async()=>{let e=new Hy({});return await vt().send(e)}}),Nx=e=>a({queryKey:[`elbv2`,`targetGroups`,e],queryFn:async()=>{let t=new Hy({TargetGroupArns:[e]});return await vt().send(t)}}),Px=e=>a({queryKey:[`elbv2`,`targetGroups`,e,`attributes`],queryFn:async()=>{let t=new Vy({TargetGroupArn:e});return await vt().send(t)}}),Fx=e=>a({queryKey:[`elbv2`,`listeners`,e],queryFn:async()=>{let t=new Fy({LoadBalancerArn:e});return await vt().send(t)}}),Ix=e=>a({queryKey:[`elbv2`,`listeners`,e,`rules`],queryFn:async()=>{let t=new Ry({ListenerArn:e});return await vt().send(t)}}),Lx=e=>a({queryKey:[`elbv2`,`targetGroups`,e,`health`],queryFn:async()=>{let t=new Uy({TargetGroupArn:e});return await vt().send(t)}}),Rx=a({queryKey:[`elbv2`,`sslPolicies`],queryFn:async()=>{let e=new zy({});return await vt().send(e)},staleTime:1/0}),zx=e=>a({queryKey:[`elbv2`,`tags`,...e],queryFn:async()=>{let t=new By({ResourceArns:e});return await vt().send(t)},enabled:e.length>0}),Bx=K(`/_auth/ec2/(load-balancers)/create-load-balancer`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Fb),e.queryClient.ensureQueryData(Db),e.queryClient.ensureQueryData(zb),e.queryClient.ensureQueryData(Mx),e.queryClient.ensureQueryData(Dx),e.queryClient.ensureQueryData(Rx)])},head:()=>({meta:[{title:`Create Load Balancer | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./create-load-balancer.js`),__vite__mapDeps([76,1,2,3,77,4,5,6,53,7,8,33,39,13,47,65,54,55,10,36,18,11,29,17,34,67,35,37,38,68,66,9,40,20,69])),`component`)}),Vx=K(`/_auth/ec2/(key)/import-key-pair`)({head:()=>({meta:[{title:`Import Key Pair | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./import-key-pair.js`),__vite__mapDeps([78,1,61,2,3,4,5,6,33,52,11,34,35,7,8,36,18,37,38,39,40,20,13,47,62])),`component`)}),Hx=K(`/_auth/ec2/(key)/create-key-pair`)({head:()=>({meta:[{title:`Create Key Pair | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./create-key-pair.js`),__vite__mapDeps([79,1,61,2,3,4,5,6,33,52,53,7,8,11,34,36,80,35,18,37,38,57,39,40,20,13,62])),`component`)}),Ux=K(`/_auth/ec2/(internet-gateways)/create-internet-gateway`)({head:()=>({meta:[{title:`Create Internet Gateway | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./create-internet-gateway.js`),__vite__mapDeps([81,1,61,2,3,4,5,6,33,52,11,34,35,7,8,36,18,37,38,39,40,20,13,62])),`component`)}),Wx=K(`/_auth/ec2/(instances)/run-instances`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Sb),e.queryClient.ensureQueryData(wb),e.queryClient.ensureQueryData(xb),e.queryClient.ensureQueryData(Db),e.queryClient.ensureQueryData(Lb),e.queryClient.ensureQueryData(Fb),e.queryClient.ensureQueryData(zb)])},head:()=>({meta:[{title:`Run Instances | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./run-instances.js`),__vite__mapDeps([82,1,2,3,61,4,5,6,33,52,7,8,9,10,54,55,36,18,11,29,17,34,35,37,38,39,20,13,62])),`component`)}),Gx=K(`/_auth/ec2/(elastic-ips)/allocate-address`)({head:()=>({meta:[{title:`Allocate Elastic IP | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./allocate-address.js`),__vite__mapDeps([83,1,61,2,3,4,5,6,33,52,11,34,35,7,8,36,18,37,38,39,40,20,13,62])),`component`)}),Kx=K(`/_auth/s3/ls/$bucket`)({component:q(()=>R(()=>import(`./route2.js`),__vite__mapDeps([84,1])),`component`)}),qx=K(`/_auth/s3/ls/$bucket/`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(Jb(t.bucket))},head:({params:e})=>({meta:[{title:`${e.bucket} | S3 | Mulga`}]}),component:q(()=>R(()=>import(`./_bucket.js`),__vite__mapDeps([85,1,2,3,32,5,4,6,33,86,7,8,80,68,87,53,39,29,17,34,20])),`component`)}),Jx=K(`/_auth/iam/(users)/list-users/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(ix)},head:()=>({meta:[{title:`Users | IAM | Mulga`}]}),component:q(()=>R(()=>import(`./list-users.js`),__vite__mapDeps([88,1,4,2,3,5,6,7,8,29,17,30,20])),`component`)}),Yx=K(`/_auth/iam/(roles)/list-roles/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(dx)},head:()=>({meta:[{title:`Roles | IAM | Mulga`}]}),component:q(()=>R(()=>import(`./list-roles.js`),__vite__mapDeps([89,1,4,2,3,5,6,7,8,29,17,30,20])),`component`)}),Xx=K(`/_auth/iam/(policies)/list-policies/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(sx)},head:()=>({meta:[{title:`Policies | IAM | Mulga`}]}),component:q(()=>R(()=>import(`./list-policies.js`),__vite__mapDeps([90,1,4,2,3,5,6,7,8,29,17,30,20])),`component`)}),Zx=K(`/_auth/iam/(instance-profiles)/list-instance-profiles/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(mx)},head:()=>({meta:[{title:`Instance Profiles | IAM | Mulga`}]}),component:q(()=>R(()=>import(`./list-instance-profiles.js`),__vite__mapDeps([91,1,4,2,3,5,6,7,8,29,17,30,20])),`component`)}),Qx=3e4,$x=3e5,eS=a({queryKey:[`eks`,`clusters`],queryFn:async()=>{let e=new Ny({});return await $e().send(e)},staleTime:Qx}),tS=e=>a({queryKey:[`eks`,`clusters`,e],queryFn:async()=>{let t=new Dy({name:e});return await $e().send(t)},staleTime:Qx}),nS=e=>a({queryKey:[`eks`,`clusters`,e,`nodegroups`],queryFn:async()=>{let t=new Py({clusterName:e});return await $e().send(t)},staleTime:Qx}),rS=(e,t)=>a({queryKey:[`eks`,`clusters`,e,`nodegroups`,t],queryFn:async()=>{let n=new Oy({clusterName:e,nodegroupName:t});return await $e().send(n)},staleTime:Qx}),iS=e=>a({queryKey:[`eks`,`clusters`,e,`access-entries`],queryFn:async()=>{let t=new ky({clusterName:e});return await $e().send(t)},staleTime:Qx}),aS=(e,t)=>a({queryKey:[`eks`,`clusters`,e,`access-entries`,t],queryFn:async()=>{let n=new wy({clusterName:e,principalArn:t});return await $e().send(n)},staleTime:Qx}),oS=(e,t)=>a({queryKey:[`eks`,`clusters`,e,`access-entries`,t,`policies`],queryFn:async()=>{let n=new My({clusterName:e,principalArn:t});return await $e().send(n)},staleTime:Qx});a({queryKey:[`eks`,`access-policies`],queryFn:async()=>{let e=new Ay({});return await $e().send(e)},staleTime:$x});var sS=a({queryKey:[`eks`,`addon-versions`],queryFn:async()=>{let e=new Ey({});return await $e().send(e)},staleTime:$x}),cS=e=>a({queryKey:[`eks`,`clusters`,e,`addons`],queryFn:async()=>{let t=new jy({clusterName:e});return await $e().send(t)},staleTime:Qx}),lS=(e,t)=>a({queryKey:[`eks`,`clusters`,e,`addons`,t],queryFn:async()=>{let n=new Ty({clusterName:e,addonName:t});return await $e().send(n)},staleTime:Qx}),uS=K(`/_auth/eks/(clusters)/list-clusters/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(eS)},head:()=>({meta:[{title:`Clusters | EKS | Mulga`}]}),component:q(()=>R(()=>import(`./list-clusters.js`),__vite__mapDeps([92,1,4,2,3,5,6,7,8,29,17,30,20])),`component`)}),dS=a({queryKey:[`ecr`,`repositories`],queryFn:async()=>{let e=new Sy({});return await dt().send(e)}}),fS=e=>a({queryKey:[`ecr`,`repositories`,e,`images`],queryFn:async()=>{let t=new xy({repositoryName:e});return await dt().send(t)}}),pS=e=>a({queryKey:[`ecr`,`repositories`,e,`policy`],queryFn:async()=>{try{let t=new Cy({repositoryName:e});return(await dt().send(t)).policyText??null}catch(e){if(e instanceof Mt)return null;throw e}}}),mS=K(`/_auth/ecr/(repositories)/list-repositories/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(dS)},head:()=>({meta:[{title:`Repositories | ECR | Mulga`}]}),component:q(()=>R(()=>import(`./list-repositories.js`),__vite__mapDeps([93,1,2,3,4,5,6,94,33,53,7,8,29,17,20,13])),`component`)}),hS=K(`/_auth/ec2/(vpc)/describe-vpcs/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Fb)},head:()=>({meta:[{title:`VPCs | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./describe-vpcs.js`),__vite__mapDeps([95,1,2,3,4,5,6,7,8,29,17,30,20,21])),`component`)}),gS=K(`/_auth/ec2/(volumes)/describe-volumes/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Gb)},head:()=>({meta:[{title:`Volumes | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./describe-volumes.js`),__vite__mapDeps([96,1,4,2,3,5,6,7,8,29,17,30,20,21])),`component`)}),_S=K(`/_auth/ec2/(target-groups)/describe-target-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Mx)},head:()=>({meta:[{title:`Target Groups | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./describe-target-groups.js`),__vite__mapDeps([97,1,4,2,3,5,6,7,8,16,17,29,20])),`component`)}),vS=K(`/_auth/ec2/(subnet)/describe-subnets/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Db)},head:()=>({meta:[{title:`Subnets | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./describe-subnets.js`),__vite__mapDeps([98,1,2,3,4,5,6,7,8,29,17,30,20,21])),`component`)}),yS=K(`/_auth/ec2/(snapshots)/describe-snapshots/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(kb)},head:()=>({meta:[{title:`Snapshots | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./describe-snapshots.js`),__vite__mapDeps([99,1,4,2,3,5,6,7,8,29,17,30,20,21])),`component`)}),bS=K(`/_auth/ec2/(security-groups)/describe-security-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(zb)},head:()=>({meta:[{title:`Security Groups | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./describe-security-groups.js`),__vite__mapDeps([100,1,4,2,3,5,6,7,8,29,17,30,20])),`component`)}),xS=K(`/_auth/ec2/(route-tables)/describe-route-tables/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Nb)},head:()=>({meta:[{title:`Route Tables | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./describe-route-tables.js`),__vite__mapDeps([101,1,2,3,4,5,6,7,8,29,17,30,20,22])),`component`)}),SS=K(`/_auth/ec2/(placement-groups)/describe-placement-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Lb)},head:()=>({meta:[{title:`Placement Groups | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./describe-placement-groups.js`),__vite__mapDeps([102,1,4,2,3,5,6,7,8,29,17,30,20,21])),`component`)}),CS=K(`/_auth/ec2/(nat-gateways)/describe-nat-gateways/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Ub)},head:()=>({meta:[{title:`NAT Gateways | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./describe-nat-gateways.js`),__vite__mapDeps([103,1,2,3,4,5,6,7,8,29,17,30,20,21])),`component`)}),wS=K(`/_auth/ec2/(load-balancers)/describe-load-balancers/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(kx)},head:()=>({meta:[{title:`Load Balancers | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./describe-load-balancers.js`),__vite__mapDeps([104,1,2,3,4,5,6,7,8,29,17,20,21])),`component`)}),TS=K(`/_auth/ec2/(key)/describe-key-pairs/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(wb)},head:()=>({meta:[{title:`Key Pairs | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./describe-key-pairs.js`),__vite__mapDeps([105,1,4,2,3,5,6,7,8,29,17,30,20])),`component`)}),ES=K(`/_auth/ec2/(internet-gateways)/describe-internet-gateways/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(jb)},head:()=>({meta:[{title:`Internet Gateways | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./describe-internet-gateways.js`),__vite__mapDeps([106,1,2,3,4,5,6,7,8,29,17,30,20])),`component`)}),DS=K(`/_auth/ec2/(instances)/describe-instances/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(vb)},head:()=>({meta:[{title:`Instances | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./describe-instances.js`),__vite__mapDeps([107,1,4,2,3,5,6,7,8,29,17,30,20,21])),`component`)}),OS=K(`/_auth/ec2/(images)/describe-images/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Sb)},head:()=>({meta:[{title:`Images | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./describe-images.js`),__vite__mapDeps([108,1,29,17,30,4,2,3,5,6,20,21,58])),`component`)}),kS=K(`/_auth/ec2/(elastic-ips)/describe-addresses/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Vb)},head:()=>({meta:[{title:`Elastic IPs | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./describe-addresses.js`),__vite__mapDeps([109,1,2,3,4,5,6,7,8,29,17,30,20])),`component`)}),AS=K(`/_auth/s3/ls/$bucket/$`)({loader:async({context:e,params:t})=>{let n=bn(t._splat??``);await e.queryClient.ensureQueryData(Jb(t.bucket,n))},head:({params:e})=>({meta:[{title:`${on(e._splat??``,`${e.bucket}/`)} | S3 | Mulga`}]}),component:q(()=>R(()=>import(`./_.js`),__vite__mapDeps([110,1,2,3,32,5,4,6,33,86,7,8,80,68,87,53,39,29,17,34])),`component`)}),jS=K(`/_auth/iam/(users)/list-users/$userName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(ax(t.userName)),e.queryClient.ensureQueryData(ox(t.userName)),e.queryClient.ensureQueryData(ux(t.userName)),e.queryClient.ensureQueryData(sx)])},head:({params:e})=>({meta:[{title:`${e.userName} | IAM | Mulga`}]}),component:q(()=>R(()=>import(`./_userName.js`),__vite__mapDeps([111,1,2,3,42,4,5,6,33,53,7,8,29,17,34,36,68,57,87,112,39,20,21,38])),`component`)}),MS=K(`/_auth/iam/(roles)/list-roles/$roleName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(fx(t.roleName)),e.queryClient.ensureQueryData(px(t.roleName)),e.queryClient.ensureQueryData(gx(t.roleName)),e.queryClient.ensureQueryData(sx)])},head:({params:e})=>({meta:[{title:`${e.roleName} | IAM | Mulga`}]}),component:q(()=>R(()=>import(`./_roleName.js`),__vite__mapDeps([113,1,2,3,4,5,6,42,33,7,8,29,17,34,68,87,53,112,39,20,59])),`component`)}),NS=K(`/_auth/iam/(policies)/list-policies/$policyArn`)({loader:async({context:e,params:t})=>{let n=decodeURIComponent(t.policyArn),r=await e.queryClient.ensureQueryData(cx(n)),i=r.Policy?.DefaultVersionId;return i&&await e.queryClient.ensureQueryData(lx(n,i)),r},head:({loaderData:e})=>({meta:[{title:`${e?.Policy?.PolicyName??`Policy`} | IAM | Mulga`}]}),component:q(()=>R(()=>import(`./_policyArn.js`),__vite__mapDeps([114,1,2,3,42,4,5,6,33,7,8,29,17,34,68,87,53,112,39,20,59])),`component`)}),PS=K(`/_auth/iam/(instance-profiles)/list-instance-profiles/$instanceProfileName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(hx(t.instanceProfileName)),e.queryClient.ensureQueryData(dx)])},head:({params:e})=>({meta:[{title:`${e.instanceProfileName} | IAM | Mulga`}]}),component:q(()=>R(()=>import(`./_instanceProfileName.js`),__vite__mapDeps([115,1,2,3,4,5,6,42,33,7,8,29,17,34,68,87,53,112,39,20])),`component`)}),FS=K(`/_auth/eks/(clusters)/list-clusters/$clusterName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(tS(t.clusterName)),e.queryClient.ensureQueryData(nS(t.clusterName)),e.queryClient.ensureQueryData(iS(t.clusterName))])},head:({params:e})=>({meta:[{title:`${e.clusterName} | EKS | Mulga`}]}),component:q(()=>R(()=>import(`./_clusterName.js`),__vite__mapDeps([116,1,2,3,4,5,6,51,33,44,52,53,7,8,117,55,10,11,16,17,29,34,35,36,18,37,38,68,87,112,39,20,22,13,46,47])),`component`)}),IS=K(`/_auth/ecr/(repositories)/list-repositories/$id`)({loader:async({context:e,params:t})=>{let n=decodeURIComponent(t.id);await Promise.all([e.queryClient.ensureQueryData(dS),e.queryClient.ensureQueryData(fS(n)),e.queryClient.ensureQueryData(pS(n))])},head:({params:e})=>({meta:[{title:`${decodeURIComponent(e.id)} | Repository | Mulga`}]}),component:q(()=>R(()=>import(`./_id17.js`),__vite__mapDeps([118,1,2,3,4,5,6,94,33,53,7,8,29,17,20,47])),`component`)}),LS=K(`/_auth/ec2/(vpc)/describe-vpcs/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Ib(t.id)),e.queryClient.ensureQueryData(Db)])},head:({params:e})=>({meta:[{title:`${e.id} | VPC | Mulga`}]}),component:q(()=>R(()=>import(`./_id16.js`),__vite__mapDeps([119,1,2,3,4,5,6,61,33,52,7,8,29,17,34,68,87,53,112,39,20,21])),`component`)}),RS=K(`/_auth/ec2/(volumes)/modify-volume/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(Kb(t.id))},head:({params:e})=>({meta:[{title:`Resize ${e.id} | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./_id15.js`),__vite__mapDeps([120,1,61,2,3,4,5,6,33,52,11,29,17,34,39,40,7,8,20,13,62])),`component`)}),zS=K(`/_auth/ec2/(volumes)/describe-volumes/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Kb(t.id)),e.queryClient.ensureQueryData(vb)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./_id14.js`),__vite__mapDeps([121,1,2,3,4,5,6,61,33,52,53,7,8,54,55,10,36,18,29,17,34,68,87,112,39,20,21,13])),`component`)}),BS=K(`/_auth/ec2/(target-groups)/describe-target-groups/$id`)({loader:async({context:e,params:t})=>{let n=decodeURIComponent(t.id);await Promise.all([e.queryClient.ensureQueryData(Nx(n)),e.queryClient.ensureQueryData(Px(n)),e.queryClient.ensureQueryData(zx([n])),e.queryClient.ensureQueryData(vb)])},head:({params:e})=>({meta:[{title:`${decodeURIComponent(e.id)} | Target Group | Mulga`}]}),component:q(()=>R(()=>import(`./_id13.js`),__vite__mapDeps([122,1,2,3,65,4,5,6,33,53,7,8,117,55,10,16,17,29,34,68,87,112,123,54,36,18,67,13,39,20])),`component`)}),VS=K(`/_auth/ec2/(subnet)/describe-subnets/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(Ob(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | Subnet | Mulga`}]}),component:q(()=>R(()=>import(`./_id12.js`),__vite__mapDeps([124,1,2,3,4,5,6,61,33,52,7,8,29,17,34,68,87,53,112,39,20,21])),`component`)}),HS=K(`/_auth/ec2/(snapshots)/describe-snapshots/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Ab(t.id)),e.queryClient.ensureQueryData(Eb)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./_id11.js`),__vite__mapDeps([125,1,2,3,4,5,6,61,33,52,53,7,8,29,17,34,37,68,87,112,39,20,21,13])),`component`)}),US=K(`/_auth/ec2/(security-groups)/describe-security-groups/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(Bb(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | Security Group | Mulga`}]}),component:q(()=>R(()=>import(`./_id10.js`),__vite__mapDeps([126,1,4,2,3,5,6,61,33,52,53,7,8,54,55,10,36,18,11,29,17,34,67,68,87,112,39,20,13,62])),`component`)}),WS=K(`/_auth/ec2/(route-tables)/describe-route-tables/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Pb(t.id)),e.queryClient.ensureQueryData(jb),e.queryClient.ensureQueryData(Ub),e.queryClient.ensureQueryData(Db)])},head:({params:e})=>({meta:[{title:`${e.id} | Route Table | Mulga`}]}),component:q(()=>R(()=>import(`./_id9.js`),__vite__mapDeps([127,1,2,3,4,5,6,61,33,52,7,8,54,55,10,36,18,11,29,17,34,68,87,53,112,39,20,22,13,62])),`component`)}),GS=K(`/_auth/ec2/(placement-groups)/describe-placement-groups/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Rb(t.id)),e.queryClient.ensureQueryData(vb)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./_id8.js`),__vite__mapDeps([128,1,4,2,3,5,6,61,33,52,7,8,29,17,34,68,87,53,112,39,20,21])),`component`)}),KS=K(`/_auth/ec2/(nat-gateways)/describe-nat-gateways/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(Wb(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | NAT Gateway | Mulga`}]}),component:q(()=>R(()=>import(`./_id7.js`),__vite__mapDeps([129,1,2,3,4,5,6,61,33,52,7,8,29,17,34,68,87,53,112,39,20,21])),`component`)}),qS=K(`/_auth/ec2/(load-balancers)/describe-load-balancers/$id`)({loader:async({context:e,params:t})=>{let n=decodeURIComponent(t.id);await Promise.all([e.queryClient.ensureQueryData(Ax(n)),e.queryClient.ensureQueryData(Fx(n)),e.queryClient.ensureQueryData(jx(n)),e.queryClient.ensureQueryData(zx([n])),e.queryClient.ensureQueryData(Mx),e.queryClient.ensureQueryData(Db)])},head:({params:e})=>({meta:[{title:`${decodeURIComponent(e.id)} | Load Balancer | Mulga`}]}),component:q(()=>R(()=>import(`./_id6.js`),__vite__mapDeps([130,1,2,3,77,4,5,6,53,7,8,33,39,13,47,65,54,55,10,36,18,117,11,29,17,34,68,87,112,123,67,20,21,69])),`component`)}),JS=K(`/_auth/ec2/(key)/describe-key-pairs/$id`)({loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData(Tb(t.id)),head:({loaderData:e})=>({meta:[{title:`${e?.KeyPairs?.[0]?.KeyName??`Key Pair`} | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./_id5.js`),__vite__mapDeps([131,1,2,3,61,4,5,6,33,52,7,8,29,17,34,68,87,53,112,39,20])),`component`)}),YS=K(`/_auth/ec2/(internet-gateways)/describe-internet-gateways/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Mb(t.id)),e.queryClient.ensureQueryData(Fb)])},head:({params:e})=>({meta:[{title:`${e.id} | Internet Gateway | Mulga`}]}),component:q(()=>R(()=>import(`./_id4.js`),__vite__mapDeps([132,1,2,3,4,5,6,61,33,52,7,8,54,55,10,36,18,29,17,34,68,87,53,112,39,20])),`component`)}),XS=K(`/_auth/ec2/(instances)/describe-instances/$id`)({loader:async({context:e,params:t})=>{let[n]=await Promise.all([e.queryClient.ensureQueryData(yb(t.id)),e.queryClient.ensureQueryData(xb)]),r=n.Reservations?.[0]?.Instances?.[0]?.ImageId;return await e.queryClient.ensureQueryData(Cb(r)),n},head:({loaderData:e})=>({meta:[{title:`${e?.Reservations?.[0]?.Instances?.[0]?.InstanceId??`Instance`} | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./_id3.js`),__vite__mapDeps([133,1,2,3,4,5,6,61,33,52,53,7,8,54,55,10,36,18,16,17,29,34,56,68,87,112,39,20,21,13,47,23,24,134])),`component`)}),ZS=K(`/_auth/ec2/(images)/describe-images/$id`)({loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData(Cb(t.id)),head:({loaderData:e})=>({meta:[{title:`${e?.Images?.[0]?.Name??`Image`} | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./_id2.js`),__vite__mapDeps([135,1,29,17,34,4,2,3,5,6,20,21,58,134,112])),`component`)}),QS=K(`/_auth/ec2/(elastic-ips)/describe-addresses/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Hb(t.id)),e.queryClient.ensureQueryData(vb)])},head:({params:e})=>({meta:[{title:`${e.id} | Elastic IP | Mulga`}]}),component:q(()=>R(()=>import(`./_id.js`),__vite__mapDeps([136,1,2,3,61,4,5,6,33,52,7,8,54,55,10,36,18,29,17,34,68,87,53,112,39,20])),`component`)}),$S=hb.update({id:`/login`,path:`/login`,getParentRoute:()=>mb}),$=gb.update({id:`/_auth`,getParentRoute:()=>mb}),eC=Yb.update({id:`/`,path:`/`,getParentRoute:()=>$}),tC=Xb.update({id:`/nodes`,path:`/nodes`,getParentRoute:()=>$}),nC=Zb.update({id:`/s3/service-metrics`,path:`/s3/service-metrics`,getParentRoute:()=>$}),rC=Qb.update({id:`/s3/ls/`,path:`/s3/ls/`,getParentRoute:()=>$}),iC=$b.update({id:`/s3/(buckets)/create-bucket`,path:`/s3/create-bucket`,getParentRoute:()=>$}),aC=ex.update({id:`/iam/(users)/create-user`,path:`/iam/create-user`,getParentRoute:()=>$}),oC=tx.update({id:`/iam/(roles)/create-role`,path:`/iam/create-role`,getParentRoute:()=>$}),sC=nx.update({id:`/iam/(policies)/create-policy`,path:`/iam/create-policy`,getParentRoute:()=>$}),cC=rx.update({id:`/iam/(instance-profiles)/create-instance-profile`,path:`/iam/create-instance-profile`,getParentRoute:()=>$}),lC=_x.update({id:`/eks/(clusters)/create-cluster`,path:`/eks/create-cluster`,getParentRoute:()=>$}),uC=vx.update({id:`/ec2/(vpc)/create-vpc`,path:`/ec2/create-vpc`,getParentRoute:()=>$}),dC=yx.update({id:`/ec2/(volumes)/create-volume`,path:`/ec2/create-volume`,getParentRoute:()=>$}),fC=bx.update({id:`/ec2/(target-groups)/create-target-group`,path:`/ec2/create-target-group`,getParentRoute:()=>$}),pC=xx.update({id:`/ec2/(subnet)/create-subnet`,path:`/ec2/create-subnet`,getParentRoute:()=>$}),mC=Sx.update({id:`/ec2/(snapshots)/create-snapshot`,path:`/ec2/create-snapshot`,getParentRoute:()=>$}),hC=Cx.update({id:`/ec2/(security-groups)/create-security-group`,path:`/ec2/create-security-group`,getParentRoute:()=>$}),gC=wx.update({id:`/ec2/(route-tables)/create-route-table`,path:`/ec2/create-route-table`,getParentRoute:()=>$}),_C=Tx.update({id:`/ec2/(placement-groups)/create-placement-group`,path:`/ec2/create-placement-group`,getParentRoute:()=>$}),vC=Ex.update({id:`/ec2/(nat-gateways)/create-nat-gateway`,path:`/ec2/create-nat-gateway`,getParentRoute:()=>$}),yC=Bx.update({id:`/ec2/(load-balancers)/create-load-balancer`,path:`/ec2/create-load-balancer`,getParentRoute:()=>$}),bC=Vx.update({id:`/ec2/(key)/import-key-pair`,path:`/ec2/import-key-pair`,getParentRoute:()=>$}),xC=Hx.update({id:`/ec2/(key)/create-key-pair`,path:`/ec2/create-key-pair`,getParentRoute:()=>$}),SC=Ux.update({id:`/ec2/(internet-gateways)/create-internet-gateway`,path:`/ec2/create-internet-gateway`,getParentRoute:()=>$}),CC=Wx.update({id:`/ec2/(instances)/run-instances`,path:`/ec2/run-instances`,getParentRoute:()=>$}),wC=Gx.update({id:`/ec2/(elastic-ips)/allocate-address`,path:`/ec2/allocate-address`,getParentRoute:()=>$}),TC=Kx.update({id:`/s3/ls/$bucket`,path:`/s3/ls/$bucket`,getParentRoute:()=>$}),EC=qx.update({id:`/`,path:`/`,getParentRoute:()=>TC}),DC=Jx.update({id:`/iam/(users)/list-users/`,path:`/iam/list-users/`,getParentRoute:()=>$}),OC=Yx.update({id:`/iam/(roles)/list-roles/`,path:`/iam/list-roles/`,getParentRoute:()=>$}),kC=Xx.update({id:`/iam/(policies)/list-policies/`,path:`/iam/list-policies/`,getParentRoute:()=>$}),AC=Zx.update({id:`/iam/(instance-profiles)/list-instance-profiles/`,path:`/iam/list-instance-profiles/`,getParentRoute:()=>$}),jC=uS.update({id:`/eks/(clusters)/list-clusters/`,path:`/eks/list-clusters/`,getParentRoute:()=>$}),MC=mS.update({id:`/ecr/(repositories)/list-repositories/`,path:`/ecr/list-repositories/`,getParentRoute:()=>$}),NC=hS.update({id:`/ec2/(vpc)/describe-vpcs/`,path:`/ec2/describe-vpcs/`,getParentRoute:()=>$}),PC=gS.update({id:`/ec2/(volumes)/describe-volumes/`,path:`/ec2/describe-volumes/`,getParentRoute:()=>$}),FC=_S.update({id:`/ec2/(target-groups)/describe-target-groups/`,path:`/ec2/describe-target-groups/`,getParentRoute:()=>$}),IC=vS.update({id:`/ec2/(subnet)/describe-subnets/`,path:`/ec2/describe-subnets/`,getParentRoute:()=>$}),LC=yS.update({id:`/ec2/(snapshots)/describe-snapshots/`,path:`/ec2/describe-snapshots/`,getParentRoute:()=>$}),RC=bS.update({id:`/ec2/(security-groups)/describe-security-groups/`,path:`/ec2/describe-security-groups/`,getParentRoute:()=>$}),zC=xS.update({id:`/ec2/(route-tables)/describe-route-tables/`,path:`/ec2/describe-route-tables/`,getParentRoute:()=>$}),BC=SS.update({id:`/ec2/(placement-groups)/describe-placement-groups/`,path:`/ec2/describe-placement-groups/`,getParentRoute:()=>$}),VC=CS.update({id:`/ec2/(nat-gateways)/describe-nat-gateways/`,path:`/ec2/describe-nat-gateways/`,getParentRoute:()=>$}),HC=wS.update({id:`/ec2/(load-balancers)/describe-load-balancers/`,path:`/ec2/describe-load-balancers/`,getParentRoute:()=>$}),UC=TS.update({id:`/ec2/(key)/describe-key-pairs/`,path:`/ec2/describe-key-pairs/`,getParentRoute:()=>$}),WC=ES.update({id:`/ec2/(internet-gateways)/describe-internet-gateways/`,path:`/ec2/describe-internet-gateways/`,getParentRoute:()=>$}),GC=DS.update({id:`/ec2/(instances)/describe-instances/`,path:`/ec2/describe-instances/`,getParentRoute:()=>$}),KC=OS.update({id:`/ec2/(images)/describe-images/`,path:`/ec2/describe-images/`,getParentRoute:()=>$}),qC=kS.update({id:`/ec2/(elastic-ips)/describe-addresses/`,path:`/ec2/describe-addresses/`,getParentRoute:()=>$}),JC=AS.update({id:`/$`,path:`/$`,getParentRoute:()=>TC}),YC=jS.update({id:`/iam/(users)/list-users/$userName`,path:`/iam/list-users/$userName`,getParentRoute:()=>$}),XC=MS.update({id:`/iam/(roles)/list-roles/$roleName`,path:`/iam/list-roles/$roleName`,getParentRoute:()=>$}),ZC=NS.update({id:`/iam/(policies)/list-policies/$policyArn`,path:`/iam/list-policies/$policyArn`,getParentRoute:()=>$}),QC=PS.update({id:`/iam/(instance-profiles)/list-instance-profiles/$instanceProfileName`,path:`/iam/list-instance-profiles/$instanceProfileName`,getParentRoute:()=>$}),$C=FS.update({id:`/eks/(clusters)/list-clusters/$clusterName`,path:`/eks/list-clusters/$clusterName`,getParentRoute:()=>$}),ew=IS.update({id:`/ecr/(repositories)/list-repositories/$id`,path:`/ecr/list-repositories/$id`,getParentRoute:()=>$}),tw=LS.update({id:`/ec2/(vpc)/describe-vpcs/$id`,path:`/ec2/describe-vpcs/$id`,getParentRoute:()=>$}),nw=RS.update({id:`/ec2/(volumes)/modify-volume/$id`,path:`/ec2/modify-volume/$id`,getParentRoute:()=>$}),rw=zS.update({id:`/ec2/(volumes)/describe-volumes/$id`,path:`/ec2/describe-volumes/$id`,getParentRoute:()=>$}),iw=BS.update({id:`/ec2/(target-groups)/describe-target-groups/$id`,path:`/ec2/describe-target-groups/$id`,getParentRoute:()=>$}),aw=VS.update({id:`/ec2/(subnet)/describe-subnets/$id`,path:`/ec2/describe-subnets/$id`,getParentRoute:()=>$}),ow=HS.update({id:`/ec2/(snapshots)/describe-snapshots/$id`,path:`/ec2/describe-snapshots/$id`,getParentRoute:()=>$}),sw=US.update({id:`/ec2/(security-groups)/describe-security-groups/$id`,path:`/ec2/describe-security-groups/$id`,getParentRoute:()=>$}),cw=WS.update({id:`/ec2/(route-tables)/describe-route-tables/$id`,path:`/ec2/describe-route-tables/$id`,getParentRoute:()=>$}),lw=GS.update({id:`/ec2/(placement-groups)/describe-placement-groups/$id`,path:`/ec2/describe-placement-groups/$id`,getParentRoute:()=>$}),uw=KS.update({id:`/ec2/(nat-gateways)/describe-nat-gateways/$id`,path:`/ec2/describe-nat-gateways/$id`,getParentRoute:()=>$}),dw=qS.update({id:`/ec2/(load-balancers)/describe-load-balancers/$id`,path:`/ec2/describe-load-balancers/$id`,getParentRoute:()=>$}),fw=JS.update({id:`/ec2/(key)/describe-key-pairs/$id`,path:`/ec2/describe-key-pairs/$id`,getParentRoute:()=>$}),pw=YS.update({id:`/ec2/(internet-gateways)/describe-internet-gateways/$id`,path:`/ec2/describe-internet-gateways/$id`,getParentRoute:()=>$}),mw=XS.update({id:`/ec2/(instances)/describe-instances/$id`,path:`/ec2/describe-instances/$id`,getParentRoute:()=>$}),hw=ZS.update({id:`/ec2/(images)/describe-images/$id`,path:`/ec2/describe-images/$id`,getParentRoute:()=>$}),gw=QS.update({id:`/ec2/(elastic-ips)/describe-addresses/$id`,path:`/ec2/describe-addresses/$id`,getParentRoute:()=>$}),_w={AuthS3LsBucketSplatRoute:JC,AuthS3LsBucketIndexRoute:EC},vw={AuthNodesRoute:tC,AuthIndexRoute:eC,AuthS3ServiceMetricsRoute:nC,AuthS3LsBucketRouteRoute:TC._addFileChildren(_w),AuthEc2elasticIpsAllocateAddressRoute:wC,AuthEc2instancesRunInstancesRoute:CC,AuthEc2internetGatewaysCreateInternetGatewayRoute:SC,AuthEc2keyCreateKeyPairRoute:xC,AuthEc2keyImportKeyPairRoute:bC,AuthEc2loadBalancersCreateLoadBalancerRoute:yC,AuthEc2natGatewaysCreateNatGatewayRoute:vC,AuthEc2placementGroupsCreatePlacementGroupRoute:_C,AuthEc2routeTablesCreateRouteTableRoute:gC,AuthEc2securityGroupsCreateSecurityGroupRoute:hC,AuthEc2snapshotsCreateSnapshotRoute:mC,AuthEc2subnetCreateSubnetRoute:pC,AuthEc2targetGroupsCreateTargetGroupRoute:fC,AuthEc2volumesCreateVolumeRoute:dC,AuthEc2vpcCreateVpcRoute:uC,AuthEksclustersCreateClusterRoute:lC,AuthIaminstanceProfilesCreateInstanceProfileRoute:cC,AuthIampoliciesCreatePolicyRoute:sC,AuthIamrolesCreateRoleRoute:oC,AuthIamusersCreateUserRoute:aC,AuthS3bucketsCreateBucketRoute:iC,AuthS3LsIndexRoute:rC,AuthEc2elasticIpsDescribeAddressesIdRoute:gw,AuthEc2imagesDescribeImagesIdRoute:hw,AuthEc2instancesDescribeInstancesIdRoute:mw,AuthEc2internetGatewaysDescribeInternetGatewaysIdRoute:pw,AuthEc2keyDescribeKeyPairsIdRoute:fw,AuthEc2loadBalancersDescribeLoadBalancersIdRoute:dw,AuthEc2natGatewaysDescribeNatGatewaysIdRoute:uw,AuthEc2placementGroupsDescribePlacementGroupsIdRoute:lw,AuthEc2routeTablesDescribeRouteTablesIdRoute:cw,AuthEc2securityGroupsDescribeSecurityGroupsIdRoute:sw,AuthEc2snapshotsDescribeSnapshotsIdRoute:ow,AuthEc2subnetDescribeSubnetsIdRoute:aw,AuthEc2targetGroupsDescribeTargetGroupsIdRoute:iw,AuthEc2volumesDescribeVolumesIdRoute:rw,AuthEc2volumesModifyVolumeIdRoute:nw,AuthEc2vpcDescribeVpcsIdRoute:tw,AuthEcrrepositoriesListRepositoriesIdRoute:ew,AuthEksclustersListClustersClusterNameRoute:$C,AuthIaminstanceProfilesListInstanceProfilesInstanceProfileNameRoute:QC,AuthIampoliciesListPoliciesPolicyArnRoute:ZC,AuthIamrolesListRolesRoleNameRoute:XC,AuthIamusersListUsersUserNameRoute:YC,AuthEc2elasticIpsDescribeAddressesIndexRoute:qC,AuthEc2imagesDescribeImagesIndexRoute:KC,AuthEc2instancesDescribeInstancesIndexRoute:GC,AuthEc2internetGatewaysDescribeInternetGatewaysIndexRoute:WC,AuthEc2keyDescribeKeyPairsIndexRoute:UC,AuthEc2loadBalancersDescribeLoadBalancersIndexRoute:HC,AuthEc2natGatewaysDescribeNatGatewaysIndexRoute:VC,AuthEc2placementGroupsDescribePlacementGroupsIndexRoute:BC,AuthEc2routeTablesDescribeRouteTablesIndexRoute:zC,AuthEc2securityGroupsDescribeSecurityGroupsIndexRoute:RC,AuthEc2snapshotsDescribeSnapshotsIndexRoute:LC,AuthEc2subnetDescribeSubnetsIndexRoute:IC,AuthEc2targetGroupsDescribeTargetGroupsIndexRoute:FC,AuthEc2volumesDescribeVolumesIndexRoute:PC,AuthEc2vpcDescribeVpcsIndexRoute:NC,AuthEcrrepositoriesListRepositoriesIndexRoute:MC,AuthEksclustersListClustersIndexRoute:jC,AuthIaminstanceProfilesListInstanceProfilesIndexRoute:AC,AuthIampoliciesListPoliciesIndexRoute:kC,AuthIamrolesListRolesIndexRoute:OC,AuthIamusersListUsersIndexRoute:DC},yw={AuthRouteRoute:$._addFileChildren(vw),LoginRoute:$S},bw=mb._addFileChildren(yw)._addFileTypes(),xw=sb(),Sw=ss({routeTree:bw,context:{queryClient:xw},defaultPreload:`intent`,scrollRestoration:!0,defaultStructuralSharing:!0,defaultPreloadStaleTime:0}),Cw=document.querySelector(`#app`);Cw&&!Cw.innerHTML&&bs.createRoot(Cw).render((0,W.jsx)(U.StrictMode,{children:(0,W.jsx)(ws,{defaultTheme:`dark`,storageKey:`spinifex-ui-theme`,children:(0,W.jsx)(Bi,{client:xw,children:(0,W.jsx)($v,{children:(0,W.jsx)(hg,{children:(0,W.jsx)(us,{router:Sw})})})})})}));export{ux as $,Y as $n,ni as $r,Wm as $t,sS as A,gd as An,ac as Ar,Pb as At,jx as B,Ku as Bn,Bo as Br,Ib as Bt,AS as C,Gf as Cn,Cc as Cr,Tb as Ct,iS as D,Vd as Dn,fc as Dr,Rb as Dt,pS as E,Bd as En,_c as Er,Ub as Et,rS as F,Qu as Fn,Us as Fr,kb as Ft,Px as G,Ou as Gn,hi as Gr,Hv as Gt,kx as H,Nu as Hn,Ni as Hr,hb as Ht,nS as I,Zu as In,Bs as Ir,Ob as It,Lx as J,xu as Jn,Gr as Jr,Wh as Jt,Nx as K,Du as Kn,mi as Kr,qh as Kt,qx as L,Xu as Ln,Is as Lr,Db as Lt,oS as M,fd as Mn,ec as Mr,Bb as Mt,tS as N,cd as Nn,Js as Nr,zb as Nt,aS as O,Id as On,dc as Or,Lb as Ot,eS as P,X as Pn,Ws as Pr,Ab as Pt,px as Q,hu as Qn,qr as Qr,$m as Qt,Ix as R,Ju as Rn,Es as Rr,Kb as Rt,jS as S,Q as Sn,Oc as Sr,jb as St,fS as T,Xd as Tn,bc as Tr,Wb as Tt,Rx as U,Au as Un,ki as Ur,ey as Ut,Ax as V,Pu as Vn,zi as Vr,Fb as Vt,zx as W,ku as Wn,vi as Wr,Yv as Wt,Sx as X,vu as Xn,si as Xr,sh as Xt,Dx as Y,wu as Yn,Ur as Yr,Ih as Yt,ox as Z,yu as Zn,Jr as Zr,ah as Zt,IS as _,Im as _n,Hc as _r,Sb as _t,JS as a,jm as an,Fl as ar,lx as at,NS as b,Op as bn,Vc as br,vb as bt,GS as c,Sm as cn,Bl as cr,ax as ct,HS as d,Dm as dn,tl as dr,qb as dt,fi as ei,Um as en,J as er,hx as et,VS as f,Om as fn,nl as fr,Hb as ft,LS as g,Fm as gn,Kc as gr,Cb as gt,RS as h,Am as hn,Jc as hr,bb as ht,YS as i,Lr as ii,Cm as in,Il as ir,cx as it,cS as j,dd as jn,rc as jr,Nb as jt,lS as k,kd as kn,sc as kr,Eb as kt,WS as l,Mm as ln,Ml as lr,ix as lt,zS as m,km as mn,Xc as mr,_b as mt,ZS as n,Br as ni,Vm as nn,zl as nr,mx as nt,qS as o,wm as on,Hl as or,fx as ot,BS as p,Nm as pn,$c as pr,Vb as pt,Mx as q,Eu as qn,Qr as qr,Kh as qt,XS as r,Rr as ri,Bm as rn,Ll as rr,sx as rt,KS as s,Tm as sn,Pl as sr,dx as st,QS as t,Kr as ti,Hm as tn,Rl as tr,gx as tt,US as u,Em as un,rl as ur,Jb as ut,FS as v,Qp as vn,zc as vr,yb as vt,dS as w,rf as wn,Sc as wr,wb as wt,MS as x,wp as xn,kc as xr,Mb as xt,PS as y,Np as yn,Bc as yr,xb as yt,Fx as z,qu as zn,ns as zr,Gb as zt}; \ No newline at end of file +`+e.stack}}var be=Object.prototype.hasOwnProperty,xe=t.unstable_scheduleCallback,Se=t.unstable_cancelCallback,Ce=t.unstable_shouldYield,we=t.unstable_requestPaint,Te=t.unstable_now,Ee=t.unstable_getCurrentPriorityLevel,De=t.unstable_ImmediatePriority,Oe=t.unstable_UserBlockingPriority,ke=t.unstable_NormalPriority,Ae=t.unstable_LowPriority,je=t.unstable_IdlePriority,Me=t.log,Ne=t.unstable_setDisableYieldValue,Pe=null,Fe=null;function Ie(e){if(typeof Me==`function`&&Ne(e),Fe&&typeof Fe.setStrictMode==`function`)try{Fe.setStrictMode(Pe,e)}catch{}}var Le=Math.clz32?Math.clz32:Be,Re=Math.log,ze=Math.LN2;function Be(e){return e>>>=0,e===0?32:31-(Re(e)/ze|0)|0}var Ve=256,He=262144,Ue=4194304;function We(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ge(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=We(n))):i=We(o):i=We(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=We(n))):i=We(o)):i=We(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Ke(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function qe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Je(){var e=Ue;return Ue<<=1,!(Ue&62914560)&&(Ue=4194304),e}function Ye(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Xe(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ze(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0`u`||window.document===void 0||window.document.createElement===void 0),dn=!1;if(un)try{var fn={};Object.defineProperty(fn,"passive",{get:function(){dn=!0}}),window.addEventListener(`test`,fn,fn),window.removeEventListener(`test`,fn,fn)}catch{dn=!1}var pn=null,mn=null,hn=null;function gn(){if(hn)return hn;var e,t=mn,n=t.length,r,i=`value`in pn?pn.value:pn.textContent,a=i.length;for(e=0;e=Gn),Jn=` `,Yn=!1;function Xn(e,t){switch(e){case`keyup`:return Un.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Zn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Qn=!1;function $n(e,t){switch(e){case`compositionend`:return Zn(t);case`keypress`:return t.which===32?(Yn=!0,Jn):null;case`textInput`:return e=t.data,e===Jn&&Yn?null:e;default:return null}}function er(e,t){if(Qn)return e===`compositionend`||!Wn&&Xn(e,t)?(e=gn(),hn=mn=pn=null,Qn=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=br(n)}}function Sr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Sr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Cr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Lt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Lt(e.document)}return t}function wr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Tr=un&&`documentMode`in document&&11>=document.documentMode,Er=null,Dr=null,Or=null,kr=!1;function Ar(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;kr||Er==null||Er!==Lt(r)||(r=Er,`selectionStart`in r&&wr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Or&&yr(Or,r)||(Or=r,r=Dd(Dr,`onSelect`),0>=o,i-=o,xi=1<<32-Le(t)+i|n<h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Ai&&Ci(i,h),l;if(d===null){for(;hg?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),Ai&&Ci(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Ai&&Ci(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),Ai&&Ci(i,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===_&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case h:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===_){if(r.tag===7){n(e,r.sibling),c=i(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===E&&Sa(l)===r.type){n(e,r.sibling),c=i(r,o.props),ka(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===_?(c=ci(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=si(o.type,o.key,o.props,null,e.mode,c),ka(c,o),c.return=e,e=c)}return s(e);case g:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=i(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=di(o,e.mode,c),c.return=e,e=c}return s(e);case E:return o=Sa(o),b(e,r,o,c)}if(ee(o))return v(e,r,o,c);if(A(o)){if(l=A(o),typeof l!=`function`)throw Error(a(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Oa(o),c);if(o.$$typeof===x)return b(e,r,Xi(e,o),c);Aa(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,o),c.return=e,e=c):(n(e,r),c=li(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Da=0;var i=b(e,t,n,r);return Ea=null,i}catch(t){if(t===ga||t===va)throw t;var a=ri(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ma=ja(!0),Na=ja(!1),Pa=!1;function Fa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ia(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function La(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ra(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,J&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ei(e),$r(e,null,n),t}return Xr(e,r,t,n),ei(e)}function za(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$e(e,n)}}function Ba(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Va=!1;function Ha(){if(Va){var e=sa;if(e!==null)throw e}}function Ua(e,t,n,r){Va=!1;var i=e.updateQueue;Pa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,m=f!==s.lane;if(m?(Rl&f)===f:(r&f)===f){f!==0&&f===oa&&(Va=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=p({},d,f);break a;case 2:Pa=!0}}f=s.callback,f!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[f]:m.push(f))}else m={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Kl|=o,e.lanes=o,e.memoizedState=d}}function Wa(e,t){if(typeof e!=`function`)throw Error(a(191,e));e.call(t)}function Ga(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=N.T,s={};N.T=s,As(e,!1,t,n);try{var c=i(),l=N.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?ks(e,t,ua(c,r),mu(e)):ks(e,t,r,mu(e))}catch(n){ks(e,t,{then:function(){},status:`rejected`,reason:n},mu())}finally{P.p=a,o!==null&&s.types!==null&&(o.types=s.types),N.T=o}}function ys(){}function bs(e,t,n,r){if(e.tag!==5)throw Error(a(476));var i=xs(e).queue;_s(e,i,t,te,n===null?ys:function(){return Ss(e),n(r)})}function xs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mo,lastRenderedState:te},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ss(e){var t=xs(e);t.next===null&&(t=e.alternate.memoizedState),ks(e,t.next.queue,{},mu())}function Cs(){return Yi(ep)}function ws(){return Do().memoizedState}function Ts(){return Do().memoizedState}function Es(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=mu();e=La(n);var r=Ra(t,e,n);r!==null&&(gu(r,t,n),za(r,t,n)),t={cache:na()},e.payload=t;return}t=t.return}}function Ds(e,t,n){var r=mu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},js(e)?Ms(t,n):(n=Zr(e,t,n,r),n!==null&&(gu(n,e,r),Ns(n,t,r)))}function Os(e,t,n){ks(e,t,n,mu())}function ks(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(js(e))Ms(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,vr(s,o))return Xr(e,t,i,0),Ll===null&&Yr(),!1}catch{}if(n=Zr(e,t,i,r),n!==null)return gu(n,e,r),Ns(n,t,r),!0}return!1}function As(e,t,n,r){if(r={lane:2,revertLane:fd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},js(e)){if(t)throw Error(a(479))}else t=Zr(e,n,r,2),t!==null&&gu(t,e,2)}function js(e){var t=e.alternate;return e===G||t!==null&&t===G}function Ms(e,t){uo=lo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ns(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$e(e,n)}}var Ps={readContext:Yi,use:Ao,useCallback:_o,useContext:_o,useEffect:_o,useImperativeHandle:_o,useLayoutEffect:_o,useInsertionEffect:_o,useMemo:_o,useReducer:_o,useRef:_o,useState:_o,useDebugValue:_o,useDeferredValue:_o,useTransition:_o,useSyncExternalStore:_o,useId:_o,useHostTransitionStatus:_o,useFormState:_o,useActionState:_o,useOptimistic:_o,useMemoCache:_o,useCacheRefresh:_o};Ps.useEffectEvent=_o;var Fs={readContext:Yi,use:Ao,useCallback:function(e,t){return Eo().memoizedState=[e,t===void 0?null:t],e},useContext:Yi,useEffect:is,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ns(4194308,4,us.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ns(4194308,4,e,t)},useInsertionEffect:function(e,t){ns(4,2,e,t)},useMemo:function(e,t){var n=Eo();t=t===void 0?null:t;var r=e();if(fo){Ie(!0);try{e()}finally{Ie(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Eo();if(n!==void 0){var i=n(t);if(fo){Ie(!0);try{n(t)}finally{Ie(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ds.bind(null,G,e),[r.memoizedState,e]},useRef:function(e){var t=Eo();return e={current:e},t.memoizedState=e},useState:function(e){e=Ho(e);var t=e.queue,n=Os.bind(null,G,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:fs,useDeferredValue:function(e,t){return hs(Eo(),e,t)},useTransition:function(){var e=Ho(!1);return e=_s.bind(null,G,e.queue,!0,!1),Eo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=G,i=Eo();if(Ai){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),Ll===null)throw Error(a(349));Rl&127||Lo(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,is(zo.bind(null,r,o,e),[e]),r.flags|=2048,es(9,{destroy:void 0},Ro.bind(null,r,o,n,t),null),n},useId:function(){var e=Eo(),t=Ll.identifierPrefix;if(Ai){var n=Si,r=xi;n=(r&~(1<<32-Le(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=po++,0<\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(i,{is:r.is}):s.createElement(i)}}o[ot]=t,o[st]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Id(o,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&kc(t)}}return Pc(t),Ac(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&kc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(a(166));if(e=I.current,Li(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Oi,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[ot]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Nd(e.nodeValue,n)),e||Pi(t,!0)}else e=Hd(e).createTextNode(r),e[ot]=t,t.stateNode=e}return Pc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Li(t),n!==null){if(e===null){if(!r)throw Error(a(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(557));e[ot]=t}else U(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Pc(t),e=!1}else n=W(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(ro(t),t):(ro(t),null);if(t.flags&128)throw Error(a(558))}return Pc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Li(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(a(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(a(317));i[ot]=t}else U(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Pc(t),i=!1}else i=W(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(ro(t),t):(ro(t),null)}return ro(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Mc(t,t.updateQueue),Pc(t),null);case 4:return ue(),e===null&&Cd(t.stateNode.containerInfo),Pc(t),null;case 10:return Ui(t.type),Pc(t),null;case 19:if(ae(io),r=t.memoizedState,r===null)return Pc(t),null;if(i=(t.flags&128)!=0,o=r.rendering,o===null)if(i)Nc(r,!1);else{if(Gl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ao(e),o!==null){for(t.flags|=128,Nc(r,!1),e=o.updateQueue,t.updateQueue=e,Mc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)oi(n,e),n=n.sibling;return F(io,io.current&1|2),Ai&&Ci(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Te()>nu&&(t.flags|=128,i=!0,Nc(r,!1),t.lanes=4194304)}else{if(!i)if(e=ao(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Mc(t,e),Nc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Ai)return Pc(t),null}else 2*Te()-r.renderingStartTime>nu&&n!==536870912&&(t.flags|=128,i=!0,Nc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Pc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Te(),e.sibling=null,n=io.current,F(io,i?n&1|2:n&1),Ai&&Ci(t,r.treeForkCount),e);case 22:case 23:return ro(t),Xa(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Pc(t),t.subtreeFlags&6&&(t.flags|=8192)):Pc(t),n=t.updateQueue,n!==null&&Mc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&ae(fa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ui(ta),Pc(t),null;case 25:return null;case 30:return null}throw Error(a(156,t.tag))}function Ic(e,t){switch(Ei(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ui(ta),ue(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return fe(t),null;case 31:if(t.memoizedState!==null){if(ro(t),t.alternate===null)throw Error(a(340));U()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ro(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));U()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ae(io),null;case 4:return ue(),null;case 10:return Ui(t.type),null;case 22:case 23:return ro(t),Xa(),e!==null&&ae(fa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ui(ta),null;case 25:return null;default:return null}}function Lc(e,t){switch(Ei(t),t.tag){case 3:Ui(ta),ue();break;case 26:case 27:case 5:fe(t);break;case 4:ue();break;case 31:t.memoizedState!==null&&ro(t);break;case 13:ro(t);break;case 19:ae(io);break;case 10:Ui(t.type);break;case 22:case 23:ro(t),Xa(),e!==null&&ae(fa);break;case 24:Ui(ta)}}function Rc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Ku(t,t.return,e)}}function zc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Ku(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Ku(t,t.return,e)}}function Bc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ga(t,n)}catch(t){Ku(e,e.return,t)}}}function Vc(e,t,n){n.props=Hs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Ku(e,t,n)}}function Hc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Ku(e,t,n)}}function Uc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Ku(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Ku(e,t,n)}else n.current=null}function Wc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Ku(e,e.return,t)}}function Gc(e,t,n){try{var r=e.stateNode;Ld(r,e.type,n,t),r[st]=t}catch(t){Ku(e,e.return,t)}}function Kc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&$d(e.type)||e.tag===4}function qc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Kc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&$d(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Jc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=en));else if(r!==4&&(r===27&&$d(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Jc(e,t,n),e=e.sibling;e!==null;)Jc(e,t,n),e=e.sibling}function Yc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&$d(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Yc(e,t,n),e=e.sibling;e!==null;)Yc(e,t,n),e=e.sibling}function Xc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Id(t,r,n),t[ot]=e,t[st]=n}catch(t){Ku(e,e.return,t)}}var Zc=!1,Qc=!1,$c=!1,el=typeof WeakSet==`function`?WeakSet:Set,tl=null;function nl(e,t){if(e=e.containerInfo,Bd=lp,e=Cr(e),wr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(c=s+i),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===i&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Vd={focusedElem:e,selectionRange:n},lp=!1,tl=t;tl!==null;)if(t=tl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,tl=e;else for(;tl!==null;){switch(t=tl,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n title`))),Id(o,r,n),o[ot]=e,bt(o),r=o;break a;case`link`:var s=Uf(`link`,`href`,i).get(r+(n.href||``));if(s){for(var c=0;cg&&(o=g,g=h,h=o);var _=xr(s,h),v=xr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,N.T=null,n=uu,uu=null;var o=ou,s=cu;if(au=0,su=ou=null,cu=0,J&6)throw Error(a(331));var c=J;if(J|=4,Ml(o.current),wl(o,o.current,s,n),J=c,od(0,!1),Fe&&typeof Fe.onPostCommitFiberRoot==`function`)try{Fe.onPostCommitFiberRoot(Pe,o)}catch{}return!0}finally{P.p=i,N.T=r,Hu(e,t)}}function Gu(e,t,n){t=pi(n,t),t=Js(e.stateNode,t,2),e=Ra(e,t,2),e!==null&&(Xe(e,2),ad(e))}function Ku(e,t,n){if(e.tag===3)Gu(e,e,n);else for(;t!==null;){if(t.tag===3){Gu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(iu===null||!iu.has(r))){e=pi(n,e),n=Ys(2),r=Ra(t,n,2),r!==null&&(Xs(n,r,t,e),Xe(r,2),ad(r));break}}t=t.return}}function qu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Il;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Ul=!0,i.add(n),e=Ju.bind(null,e,t,n),t.then(e,e))}function Ju(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ll===e&&(Rl&n)===n&&(Gl===4||Gl===3&&(Rl&62914560)===Rl&&300>Te()-eu?!(J&2)&&Cu(e,0):Jl|=n,Xl===Rl&&(Xl=0)),ad(e)}function Yu(e,t){t===0&&(t=Je()),e=Qr(e,t),e!==null&&(Xe(e,t),ad(e))}function Xu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Yu(e,n)}function Zu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(a(314))}r!==null&&r.delete(t),Yu(e,n)}function Qu(e,t){return xe(e,t)}var $u=null,ed=null,td=!1,nd=!1,rd=!1,id=0;function ad(e){e!==ed&&e.next===null&&(ed===null?$u=ed=e:ed=ed.next=e),nd=!0,td||(td=!0,dd())}function od(e,t){if(!rd&&nd){rd=!0;do for(var n=!1,r=$u;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Le(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ud(r,a))}else a=Rl,a=Ge(r,r===Ll?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ke(r,a)||(n=!0,ud(r,a));r=r.next}while(n);rd=!1}}function X(){sd()}function sd(){nd=td=!1;var e=0;id!==0&&qd()&&(e=id);for(var t=Te(),n=null,r=$u;r!==null;){var i=r.next,a=cd(r,t);a===0?(r.next=null,n===null?$u=i:n.next=i,i===null&&(ed=n)):(n=r,(e!==0||a&3)&&(nd=!0)),r=i}au!==0&&au!==5||od(e,!1),id!==0&&(id=0)}function cd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&Rd(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function Cf(e,t,n){var r=Sf;if(r&&typeof t==`string`&&t){var i=zt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),_f.has(i)||(_f.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Id(t,`link`,e),bt(t),r.head.appendChild(t)))}}function wf(e){yf.D(e),Cf(`dns-prefetch`,e,null)}function Tf(e,t){yf.C(e,t),Cf(`preconnect`,e,t)}function Ef(e,t,n){yf.L(e,t,n);var r=Sf;if(r&&e&&t){var i=`link[rel="preload"][as="`+zt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+zt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+zt(n.imageSizes)+`"]`)):i+=`[href="`+zt(e)+`"]`;var a=i;switch(t){case`style`:a=Mf(e);break;case`script`:a=If(e)}gf.has(a)||(e=p({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),gf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Nf(a))||t===`script`&&r.querySelector(Lf(a))||(t=r.createElement(`link`),Id(t,`link`,e),bt(t),r.head.appendChild(t)))}}function Df(e,t){yf.m(e,t);var n=Sf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+zt(r)+`"][href="`+zt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=If(e)}if(!gf.has(a)&&(e=p({rel:`modulepreload`,href:e},t),gf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Lf(a)))return}r=n.createElement(`link`),Id(r,`link`,e),bt(r),n.head.appendChild(r)}}}function Of(e,t,n){yf.S(e,t,n);var r=Sf;if(r&&e){var i=yt(r).hoistableStyles,a=Mf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Nf(a)))s.loading=5;else{e=p({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=gf.get(a))&&Bf(e,n);var c=o=r.createElement(`link`);bt(c),Id(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,zf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function kf(e,t){yf.X(e,t);var n=Sf;if(n&&e){var r=yt(n).hoistableScripts,i=If(e),a=r.get(i);a||(a=n.querySelector(Lf(i)),a||(e=p({src:e,async:!0},t),(t=gf.get(i))&&Vf(e,t),a=n.createElement(`script`),bt(a),Id(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Af(e,t){yf.M(e,t);var n=Sf;if(n&&e){var r=yt(n).hoistableScripts,i=If(e),a=r.get(i);a||(a=n.querySelector(Lf(i)),a||(e=p({src:e,async:!0,type:`module`},t),(t=gf.get(i))&&Vf(e,t),a=n.createElement(`script`),bt(a),Id(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function jf(e,t,n,r){var i=(i=I.current)?vf(i):null;if(!i)throw Error(a(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Mf(n.href),n=yt(i).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Mf(n.href);var o=yt(i).hoistableStyles,s=o.get(e);if(s||(i=i.ownerDocument||i,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=i.querySelector(Nf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),gf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},gf.set(e,n),o||Ff(i,e,n,s.state))),t&&r===null)throw Error(a(528,``));return s}if(t&&r!==null)throw Error(a(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=If(n),n=yt(i).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(a(444,e))}}function Mf(e){return`href="`+zt(e)+`"`}function Nf(e){return`link[rel="stylesheet"][`+e+`]`}function Pf(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Ff(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Id(t,`link`,n),bt(t),e.head.appendChild(t))}function If(e){return`[src="`+zt(e)+`"]`}function Lf(e){return`script[async]`+e}function Rf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+zt(n.href)+`"]`);if(r)return t.instance=r,bt(r),r;var i=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),bt(r),Id(r,`style`,i),zf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Mf(n.href);var o=e.querySelector(Nf(i));if(o)return t.state.loading|=4,t.instance=o,bt(o),o;r=Pf(n),(i=gf.get(i))&&Bf(r,i),o=(e.ownerDocument||e).createElement(`link`),bt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Id(o,`link`,r),t.state.loading|=4,zf(o,n.precedence,e),t.instance=o;case`script`:return o=If(n.src),(i=e.querySelector(Lf(o)))?(t.instance=i,bt(i),i):(r=n,(i=gf.get(o))&&(r=p({},n),Vf(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),bt(i),Id(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(a(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,zf(r,n.precedence,e));return t.instance}function zf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Gf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Kf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function qf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Mf(r.href),a=t.querySelector(Nf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Xf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,bt(a);return}a=t.ownerDocument||t,r=Pf(r),(i=gf.get(i))&&Bf(r,i),a=a.createElement(`link`),bt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Id(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Xf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Jf=0;function Yf(e,t){return e.stylesheets&&e.count===0&&Qf(e,e.stylesheets),0Jf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Xf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Qf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Zf=null;function Qf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Zf=new Map,t.forEach($f,e),Zf=null,Xf.call(e))}function $f(e,t){if(!(t.state.loading&4)){var n=Zf.get(e);if(n)var r=n.get(null);else{n=new Map,Zf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=ys()}))(),1),xs=i(),Ss=(0,U.createContext)(void 0);function Cs(e,t){try{let t=localStorage.getItem(e);if(t===`light`||t===`dark`||t===`system`)return t}catch{}return t}function ws(e){let t=(0,xs.c)(14),{children:n,defaultTheme:r,storageKey:i}=e,a=r===void 0?`dark`:r,o=i===void 0?`ui-theme`:i,s;t[0]!==a||t[1]!==o?(s=()=>Cs(o,a),t[0]=a,t[1]=o,t[2]=s):s=t[2];let[c,l]=(0,U.useState)(s),u,d;t[3]===c?(u=t[4],d=t[5]):(u=()=>{let e=window.document.documentElement;if(e.classList.remove(`light`,`dark`),c===`system`){let t=window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`;e.classList.add(t);return}e.classList.add(c)},d=[c],t[3]=c,t[4]=u,t[5]=d),(0,U.useEffect)(u,d);let f;t[6]===o?f=t[7]:(f=e=>{try{localStorage.setItem(o,e)}catch{}l(e)},t[6]=o,t[7]=f);let p;t[8]!==f||t[9]!==c?(p={theme:c,setTheme:f},t[8]=f,t[9]=c,t[10]=p):p=t[10];let m=p,h;return t[11]!==n||t[12]!==m?(h=(0,W.jsx)(Ss.Provider,{value:m,children:n}),t[11]=n,t[12]=m,t[13]=h):h=t[13],h}function Ts(){let e=(0,U.useContext)(Ss);if(e===void 0)throw Error(`useTheme must be used within a ThemeProvider`);return e}function Es(e){return Vt(e.defaultTagName??`div`,e,e)}var Ds=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Os=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),ks=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),As=e=>{let t=ks(e);return t.charAt(0).toUpperCase()+t.slice(1)},js={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},Ms=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Ns=(0,U.createContext)({}),Ps=()=>(0,U.useContext)(Ns),Fs=(0,U.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:f=`currentColor`,className:p=``}=Ps()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,U.createElement)(`svg`,{ref:c,...js,width:t??l??js.width,height:t??l??js.height,stroke:e??f,strokeWidth:m,className:Ds(`lucide`,p,i),...!a&&!Ms(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,U.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),Is=(e,t)=>{let n=(0,U.forwardRef)(({className:n,...r},i)=>(0,U.createElement)(Fs,{ref:i,iconNode:t,className:Ds(`lucide-${Os(As(e))}`,`lucide-${e}`,n),...r}));return n.displayName=As(e),n},Ls=Is(`activity`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),Rs=Is(`book-open`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`,key:`ruj8y`}]]),zs=Is(`boxes`,[[`path`,{d:`M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z`,key:`lc1i9w`}],[`path`,{d:`m7 16.5-4.74-2.85`,key:`1o9zyk`}],[`path`,{d:`m7 16.5 5-3`,key:`va8pkn`}],[`path`,{d:`M7 16.5v5.17`,key:`jnp8gn`}],[`path`,{d:`M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z`,key:`8zsnat`}],[`path`,{d:`m17 16.5-5-3`,key:`8arw3v`}],[`path`,{d:`m17 16.5 4.74-2.85`,key:`8rfmw`}],[`path`,{d:`M17 16.5v5.17`,key:`k6z78m`}],[`path`,{d:`M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z`,key:`1xygjf`}],[`path`,{d:`M12 8 7.26 5.15`,key:`1vbdud`}],[`path`,{d:`m12 8 4.74-2.85`,key:`3rx089`}],[`path`,{d:`M12 13.5V8`,key:`1io7kd`}]]),Bs=Is(`camera`,[[`path`,{d:`M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z`,key:`18u6gg`}],[`circle`,{cx:`12`,cy:`13`,r:`3`,key:`1vg3eu`}]]),Vs=Is(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),Hs=Is(`crosshair`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`22`,x2:`18`,y1:`12`,y2:`12`,key:`l9bcsi`}],[`line`,{x1:`6`,x2:`2`,y1:`12`,y2:`12`,key:`13hhkx`}],[`line`,{x1:`12`,x2:`12`,y1:`6`,y2:`2`,key:`10w3f3`}],[`line`,{x1:`12`,x2:`12`,y1:`22`,y2:`18`,key:`15g9kq`}]]),Us=Is(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),Ws=Is(`hard-drive`,[[`path`,{d:`M10 16h.01`,key:`1bzywj`}],[`path`,{d:`M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`18tbho`}],[`path`,{d:`M21.946 12.013H2.054`,key:`zqlbp7`}],[`path`,{d:`M6 16h.01`,key:`1pmjb7`}]]),Gs=Is(`house`,[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]]),Ks=Is(`id-card`,[[`path`,{d:`M16 10h2`,key:`8sgtl7`}],[`path`,{d:`M16 14h2`,key:`epxaof`}],[`path`,{d:`M6.17 15a3 3 0 0 1 5.66 0`,key:`n6f512`}],[`circle`,{cx:`9`,cy:`11`,r:`2`,key:`yxgjnd`}],[`rect`,{x:`2`,y:`5`,width:`20`,height:`14`,rx:`2`,key:`qneu4z`}]]),qs=Is(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),Js=Is(`key`,[[`path`,{d:`m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4`,key:`g0fldk`}],[`path`,{d:`m21 2-9.6 9.6`,key:`1j0ho8`}],[`circle`,{cx:`7.5`,cy:`15.5`,r:`5.5`,key:`yqb3hr`}]]),Ys=Is(`layers`,[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]]),Xs=Is(`layout-grid`,[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]),Zs=Is(`log-out`,[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),Qs=Is(`map-pin`,[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}]]),$s=Is(`moon`,[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),ec=Is(`network`,[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]),tc=Is(`package`,[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]]),nc=Is(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),rc=Is(`router`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,key:`w68u3i`}],[`path`,{d:`M6.01 18H6`,key:`19vcac`}],[`path`,{d:`M10.01 18H10`,key:`uamcmx`}],[`path`,{d:`M15 10v4`,key:`qjz1xs`}],[`path`,{d:`M17.84 7.17a4 4 0 0 0-5.66 0`,key:`1rif40`}],[`path`,{d:`M20.66 4.34a8 8 0 0 0-11.31 0`,key:`6a5xfq`}]]),ic=Is(`route`,[[`circle`,{cx:`6`,cy:`19`,r:`3`,key:`1kj8tv`}],[`path`,{d:`M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15`,key:`1d8sl`}],[`circle`,{cx:`18`,cy:`5`,r:`3`,key:`gq8acd`}]]),ac=Is(`server`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]),oc=Is(`shield-check`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),sc=Is(`shield`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]),cc=Is(`sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),lc=Is(`user-cog`,[[`path`,{d:`M10 15H6a4 4 0 0 0-4 4v2`,key:`1nfge6`}],[`path`,{d:`m14.305 16.53.923-.382`,key:`1itpsq`}],[`path`,{d:`m15.228 13.852-.923-.383`,key:`eplpkm`}],[`path`,{d:`m16.852 12.228-.383-.923`,key:`13v3q0`}],[`path`,{d:`m16.852 17.772-.383.924`,key:`1i8mnm`}],[`path`,{d:`m19.148 12.228.383-.923`,key:`1q8j1v`}],[`path`,{d:`m19.53 18.696-.382-.924`,key:`vk1qj3`}],[`path`,{d:`m20.772 13.852.924-.383`,key:`n880s0`}],[`path`,{d:`m20.772 16.148.924.383`,key:`1g6xey`}],[`circle`,{cx:`18`,cy:`15`,r:`3`,key:`gjjjvw`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),uc=Is(`users`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),dc=Is(`waypoints`,[[`path`,{d:`m10.586 5.414-5.172 5.172`,key:`4mc350`}],[`path`,{d:`m18.586 13.414-5.172 5.172`,key:`8c96vv`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`circle`,{cx:`12`,cy:`20`,r:`2`,key:`144qzu`}],[`circle`,{cx:`12`,cy:`4`,r:`2`,key:`muu5ef`}],[`circle`,{cx:`20`,cy:`12`,r:`2`,key:`1xzzfp`}],[`circle`,{cx:`4`,cy:`12`,r:`2`,key:`1hvhnz`}]]),fc=Is(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),pc=function(e){return e.disabled=`data-disabled`,e.valid=`data-valid`,e.invalid=`data-invalid`,e.touched=`data-touched`,e.dirty=`data-dirty`,e.filled=`data-filled`,e.focused=`data-focused`,e}({}),mc={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},hc={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},gc={disabled:!1,...hc},_c={valid(e){return e===null?null:e?{[pc.valid]:``}:{[pc.invalid]:``}}},vc={invalid:void 0,name:void 0,validityData:{state:mc,errors:[],error:``,value:``,initialValue:null},setValidityData:Ht,disabled:void 0,touched:hc.touched,setTouched:Ht,dirty:hc.dirty,setDirty:Ht,filled:hc.filled,setFilled:Ht,focused:hc.focused,setFocused:Ht,validate:()=>null,validationMode:`onSubmit`,validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:gc,markedDirtyRef:{current:!1},registerFieldControl:Ht,validation:{getValidationProps:(e=Lt)=>e,getInputValidationProps:(e=Lt)=>e,inputRef:{current:null},commit:async()=>{}}},yc=U.createContext(vc);function bc(e=!0){let t=U.useContext(yc);if(t.setValidityData===Ht&&!e)throw Error(Gt(28));return t}var xc=U.createContext({controlId:void 0,registerControlId:Ht,labelId:void 0,setLabelId:Ht,messageIds:[],setMessageIds:Ht,getDescriptionProps:e=>e});function Sc(){return U.useContext(xc)}function Cc(e={}){let{id:t,implicit:n=!1,controlRef:r}=e,{controlId:i,registerControlId:a}=Sc(),o=_r(t),s=n?i:void 0,c=Bt(()=>Symbol(`labelable-control`)),l=U.useRef(!1),u=U.useRef(t!=null),d=ur(()=>{!l.current||a===Ht||(l.current=!1,a(c.current,void 0))});return B(()=>{if(a===Ht)return;let e;if(n){let n=r?.current;e=V(n)&&n.closest(`label`)!=null?t??null:s??o}else if(t!=null)u.current=!0,e=t;else if(u.current)e=o;else{d();return}if(e===void 0){d();return}l.current=!0,a(c.current,e)},[t,r,s,a,n,o,c,d]),U.useEffect(()=>d,[d]),i??o}var wc=typeof navigator<`u`,Tc=Pc(),Ec=Ic(),Dc=Fc(),Oc=typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter:none`),kc=Tc.platform===`MacIntel`&&Tc.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(Tc.platform);wc&&/firefox/i.test(Dc);var Ac=wc&&/apple/i.test(navigator.vendor);wc&&/Edg/i.test(Dc);var jc=wc&&/android/i.test(Ec)||/android/i.test(Dc),Mc=wc&&Ec.toLowerCase().startsWith(`mac`)&&!navigator.maxTouchPoints,Nc=Dc.includes(`jsdom/`);function Pc(){if(!wc)return{platform:``,maxTouchPoints:-1};let e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??-1}}function Fc(){if(!wc)return``;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(` `):navigator.userAgent}function Ic(){if(!wc)return``;let e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??``}var Lc=`data-base-ui-focusable`,Rc=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,zc=`ArrowLeft`,Bc=`ArrowRight`,Vc=`ArrowUp`,Hc=`ArrowDown`;function Uc(e,t){if(!V(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(`data-trigger-disabled`);for(let[,e]of t.entries())if(H(e,n))return!e.hasAttribute(`data-trigger-disabled`);return!1}function Wc(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function Gc(e){return e.matches(`html,body`)}function Kc(e){return er(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function qc(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${Rc}`)!=null}function Jc(e){return e?e.getAttribute(`role`)===`combobox`&&Kc(e):!1}function Yc(e){if(!e||Nc)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function Xc(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function Zc(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...Zc(e,t.id,n)])}function Qc(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function $c(e){e.preventDefault(),e.stopPropagation()}function el(e){return`nativeEvent`in e}function tl(e){return e.pointerType===``&&e.isTrusted?!0:jc&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function nl(e){return Nc?!1:!jc&&e.width===0&&e.height===0||jc&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function rl(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function il(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}var al=[`top`,`right`,`bottom`,`left`],ol=Math.min,sl=Math.max,cl=Math.round,ll=Math.floor,ul=e=>({x:e,y:e}),dl={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function fl(e,t,n){return sl(e,ol(t,n))}function pl(e,t){return typeof e==`function`?e(t):e}function ml(e){return e.split(`-`)[0]}function hl(e){return e.split(`-`)[1]}function gl(e){return e===`x`?`y`:`x`}function _l(e){return e===`y`?`height`:`width`}function vl(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function yl(e){return gl(vl(e))}function bl(e,t,n){n===void 0&&(n=!1);let r=hl(e),i=yl(e),a=_l(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=kl(o)),[o,kl(o)]}function xl(e){let t=kl(e);return[Sl(e),t,Sl(t)]}function Sl(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Cl=[`left`,`right`],wl=[`right`,`left`],Tl=[`top`,`bottom`],El=[`bottom`,`top`];function Dl(e,t,n){switch(e){case`top`:case`bottom`:return n?t?wl:Cl:t?Cl:wl;case`left`:case`right`:return t?Tl:El;default:return[]}}function Ol(e,t,n,r){let i=hl(e),a=Dl(ml(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Sl)))),a}function kl(e){let t=ml(e);return dl[t]+e.slice(t.length)}function Al(e){return{top:0,right:0,bottom:0,left:0,...e}}function jl(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Al(e)}function Ml(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Nl(e,t,n){return Math.floor(e/t)!==n}function Pl(e,t){return t<0||t>=e.length}function Fl(e,t){return J(e.current,{disabledIndices:t})}function Il(e,t){return J(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function J(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&Bl(e,a,r));return a}function Ll(e,{event:t,orientation:n,loopFocus:r,onLoop:i,rtl:a,cols:o,disabledIndices:s,minIndex:c,maxIndex:l,prevIndex:u,stopEvent:d=!1}){let f=u,p;if(t.key===`ArrowUp`?p=`up`:t.key===`ArrowDown`&&(p=`down`),p){let n=[],a=[],m=!1,h=0;{let t=null,r=-1;e.forEach((e,i)=>{if(e==null)return;h+=1;let o=e.closest(`[role="row"]`);o&&(m=!0),(o!==t||r===-1)&&(t=o,r+=1,n[r]=[]),n[r].push(i),a[i]=r})}let g=!1,_=0;if(m)for(let e of n){let t=e.length;t>_&&(_=t),t!==o&&(g=!0)}let v=g&&h{if(!g||u===-1)return;let c=a[u];if(c==null)return;let l=n[c].indexOf(u),d=o===`up`?-1:1;for(let o=c+d,f=0;f=n.length){if(!r||v)return;if(o=o<0?n.length-1:0,i){let e=Math.min(l,n[o].length-1);o=a[i(t,u,n[o][e]??n[o][0])]??o}}let c=n[o];for(let t=Math.min(l,c.length-1);t>=0;--t){let n=c[t];if(!Bl(e,n,s))return n}}},x=t=>{if(!v||u===-1)return;let n=u%y,i=t===`up`?-y:y,a=l-l%y,o=ll(l/y)+1;for(let t=u-n+i,c=0;cl){if(!r)return;t=t<0?a:0}let i=Math.min(t+y-1,l);for(let r=Math.min(t+n,i);r>=t;--r)if(!Bl(e,r,s))return r}};d&&$c(t);let S=b(p)??x(p);if(S!==void 0)f=S;else if(u===-1)f=p===`up`?l:c;else if(f=J(e,{startingIndex:u,amount:y,decrement:p===`up`,disabledIndices:s}),r){if(p===`up`&&(u-ye?r:r-y,i&&(f=i(t,u,f))}p===`down`&&u+y>l&&(f=J(e,{startingIndex:u%y-y,amount:y,disabledIndices:s}),i&&(f=i(t,u,f)))}Pl(e,f)&&(f=u)}if(n===`both`){let n=ll(u/o);t.key===(a?`ArrowLeft`:`ArrowRight`)&&(d&&$c(t),u%o===o-1?r&&(f=J(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):(f=J(e,{startingIndex:u,disabledIndices:s}),r&&Nl(f,o,n)&&(f=J(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f)))),Nl(f,o,n)&&(f=u)),t.key===(a?`ArrowRight`:`ArrowLeft`)&&(d&&$c(t),u%o===0?r&&(f=J(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f))):(f=J(e,{startingIndex:u,decrement:!0,disabledIndices:s}),r&&Nl(f,o,n)&&(f=J(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f)))),Nl(f,o,n)&&(f=u));let c=ll(l/o)===n;Pl(e,f)&&(r&&c?(f=t.key===(a?`ArrowRight`:`ArrowLeft`)?l:J(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):f=u)}return f}function Y(e,t,n){let r=[],i=0;return e.forEach(({width:e,height:a},o)=>{let s=!1;for(n&&(i=0);!s;){let n=[];for(let r=0;rr[e]==null)?(n.forEach(e=>{r[e]=o}),s=!0):i+=1}}),[...r]}function Rl(e,t,n,r,i){if(e===-1)return-1;let a=n.indexOf(e),o=t[e];switch(i){case`tl`:return a;case`tr`:return o?a+o.width-1:a;case`bl`:return o?a+(o.height-1)*r:a;case`br`:return n.lastIndexOf(e);default:return-1}}function zl(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function Bl(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?Hl(r)?!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!0:!1}function Vl(e){return e.visibility===`hidden`||e.visibility===`collapse`}function Hl(e,t=e?ar(e):null){return!e||!e.isConnected||!t||Vl(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var Ul=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function Wl(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return mr(n)?n.host:null}function Gl(e){for(let t of Array.from(e.children))if(cr(t)===`summary`)return t;return null}function Kl(e,t){let n=Gl(t);return!!n&&(e===n||H(n,e))}function ql(e){let t=e?cr(e):``;return e!=null&&e.matches(Ul)&&(t!==`summary`||e.parentElement!=null&&cr(e.parentElement)===`details`&&Gl(e.parentElement)===e)&&(t!==`details`||Gl(e)==null)&&(t!==`input`||e.type!==`hidden`)}function Jl(e){if(!ql(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=Wl(t)){let n=t!==e,r=cr(t)===`slot`;if(t.hasAttribute(`inert`)||n&&cr(t)===`details`&&!t.open&&!Kl(e,t)||t.hasAttribute(`hidden`)||!r&&!Yl(t,n))return!1}return!0}function Yl(e,t){let n=ar(e);return t?n.display!==`none`:Hl(e,n)}function Xl(e){let t=e.tabIndex;if(t<0){let t=cr(e);if(t===`details`||t===`audio`||t===`video`||er(e)&&e.isContentEditable)return 0}return t}function Zl(e){if(cr(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function Ql(e,t){let n=Zl(e);if(!n)return!0;let r=t.find(e=>{let t=Zl(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=Zl(e);return t?.name===n.name&&t.form===n.form})===n}function $l(e){if(er(e)&&cr(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return er(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function eu(e,t){$l(e).forEach(e=>{ql(e)&&t.push(e),eu(e,t)})}function tu(e,t,n){$l(e).forEach(e=>{er(e)&&e.matches(t)&&n.push(e),tu(e,t,n)})}function nu(e){return Jl(e)&&Xl(e)>=0}function ru(e){let t=[];return eu(e,t),t.filter(Jl)}function iu(e){let t=ru(e);return t.filter(e=>Xl(e)>=0&&Ql(e,t))}function au(e,t){let n=iu(e),r=n.length;if(r===0)return;let i=Ar(jr(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function ou(e){return au(jr(e).body,1)||e}function su(e){return au(jr(e).body,-1)||e}function cu(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!H(n,r)}function lu(e){iu(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function uu(e){let t=[];tu(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}var du=[];function fu(e){U.useEffect(e,du)}var pu=0,mu=class e{static create(){return new e}currentId=pu;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=pu,t()},e)}isStarted(){return this.currentId!==pu}clear=()=>{this.currentId!==pu&&(clearTimeout(this.currentId),this.currentId=pu)};disposeEffect=()=>this.clear};function hu(){let e=Bt(mu.create).current;return fu(e.disposeEffect),e}var gu=null;globalThis.requestAnimationFrame;var _u=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n=this.callbacks.length||(this.callbacks[t]=null,--this.callbacksCount)}},vu=class e{static create(){return new e}static request(e){return _u.request(e)}static cancel(e){return _u.cancel(e)}currentId=gu;request(e){this.cancel(),this.currentId=_u.request(()=>{this.currentId=gu,e()})}cancel=()=>{this.currentId!==gu&&(_u.cancel(this.currentId),this.currentId=gu)};disposeEffect=()=>this.cancel};function yu(){let e=Bt(vu.create).current;return fu(e.disposeEffect),e}function bu(e){return e==null?e:`current`in e?e.current:e}var xu=function(e){return e.startingStyle=`data-starting-style`,e.endingStyle=`data-ending-style`,e}({}),Su={[xu.startingStyle]:``},Cu={[xu.endingStyle]:``},wu={transitionStatus(e){return e===`starting`?Su:e===`ending`?Cu:null}},Tu=n(ft());function Eu(e,t=!1,n=!0){let r=yu();return ur((i,a=null)=>{r.cancel();let o=bu(e);if(o==null)return;let s=o,c=()=>{Tu.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(s.getAnimations().map(e=>e.finished)).then(()=>{a?.aborted||c()}).catch(()=>{if(n){a?.aborted||c();return}let e=s.getAnimations();!a?.aborted&&e.length>0&&e.some(e=>e.pending||e.playState!==`finished`)&&l()})}if(t){let e=xu.startingStyle;if(!s.hasAttribute(e)){r.request(l);return}let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0});return}r.request(l)})}function Du(e){let{enabled:t=!0,open:n,ref:r,onComplete:i}=e,a=ur(i),o=Eu(r,n,!1);U.useEffect(()=>{if(!t)return;let e=new AbortController;return o(a,e.signal),()=>{e.abort()}},[t,n,a,o])}function Ou(e,t=!1,n=!1){let[r,i]=U.useState(e&&t?`idle`:void 0),[a,o]=U.useState(e);return e&&!a&&(o(!0),i(`starting`)),!e&&a&&r!==`ending`&&!n&&i(`ending`),!e&&!a&&r===`ending`&&i(void 0),B(()=>{if(!e&&a&&r!==`ending`&&n){let e=vu.request(()=>{i(`ending`)});return()=>{vu.cancel(e)}}},[e,a,r,n]),B(()=>{if(!e||t)return;let n=vu.request(()=>{i(void 0)});return()=>{vu.cancel(n)}},[t,e]),B(()=>{if(!e||!t)return;e&&a&&r!==`idle`&&i(`starting`);let n=vu.request(()=>{i(`idle`)});return()=>{vu.cancel(n)}},[t,e,a,r]),{mounted:a,setMounted:o,transitionStatus:r}}function ku({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=U.useRef(e!==void 0),[a,o]=U.useState(t);return[i?e:a,U.useCallback(e=>{i||o(e)},[])]}function Au(e,t,n,r,i=!0){let{registerFieldControl:a}=bc(),o=U.useRef(null);o.current||=Symbol(),B(()=>{let s=o.current;if(!(!s||!i))return a(s,{controlRef:e,getValue:r,id:t,value:n}),()=>{a(s,void 0)}},[e,i,r,t,a,n])}var ju=U.forwardRef(function(e,t){let{render:n,className:r,id:i,name:a,value:o,disabled:s=!1,onValueChange:c,defaultValue:l,autoFocus:u=!1,style:d,...f}=e,{state:p,name:m,disabled:h,setTouched:g,setDirty:_,validityData:v,setFocused:y,setFilled:b,validationMode:x,validation:S}=bc(),C=h||s,w=m??a,T={...p,disabled:C},{labelId:E}=Sc(),D=Cc({id:i});B(()=>{let e=o!=null;S.inputRef.current?.value||e&&o!==``?b(!0):e&&o===``&&b(!1)},[S.inputRef,b,o]);let O=U.useRef(null);B(()=>{u&&O.current===Ar(jr(O.current))&&y(!0)},[u,y]);let[k]=ku({controlled:o,default:l,name:`FieldControl`,state:`value`}),A=o!==void 0,j=A?k:void 0,M=ur(()=>S.inputRef.current?.value);return Au(S.inputRef,D,j,M),Vt(`input`,e,{ref:[t,O],state:T,props:[{id:D,disabled:C,name:w,ref:S.inputRef,"aria-labelledby":E,autoFocus:u,...A?{value:j}:{defaultValue:l},onChange(e){let t=e.currentTarget.value;c?.(t,kr(br,e.nativeEvent)),_(t!==v.initialValue),b(t!==``)},onFocus(){y(!0)},onBlur(e){g(!0),y(!1),x===`onBlur`&&S.commit(e.currentTarget.value)},onKeyDown(e){e.currentTarget.tagName===`INPUT`&&e.key===`Enter`&&(g(!0),S.commit(e.currentTarget.value))}},S.getInputValidationProps(),f],stateAttributesMapping:_c})}),Mu=U.forwardRef(function(e,t){return(0,W.jsx)(ju,{ref:t,...e})});function Nu(e){let t=(0,xs.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,type:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===n?a=t[5]:(a=un(`h-7 w-full min-w-0 rounded-md border border-input bg-input/20 px-2 py-0.5 text-sm transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-xs/relaxed file:font-medium file:text-foreground placeholder:text-muted-foreground autofill:[-webkit-text-fill-color:var(--color-foreground)] autofill:[transition:background-color_9999s_ease-in-out_0s] focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 md:text-xs/relaxed dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,n),t[4]=n,t[5]=a);let o;return t[6]!==r||t[7]!==a||t[8]!==i?(o=(0,W.jsx)(Mu,{className:a,"data-slot":`input`,type:i,...r}),t[6]=r,t[7]=a,t[8]=i,t[9]=o):o=t[9],o}var Pu=U.forwardRef(function(e,t){let{className:n,render:r,orientation:i=`horizontal`,style:a,...o}=e;return Vt(`div`,e,{state:{orientation:i},ref:t,props:[{role:`separator`,"aria-orientation":i},o]})});function Fu(e){let t=(0,xs.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,orientation:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`horizontal`:i,o;t[4]===n?o=t[5]:(o=un(`shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:self-stretch`,n),t[4]=n,t[5]=o);let s;return t[6]!==a||t[7]!==r||t[8]!==o?(s=(0,W.jsx)(Pu,{className:o,"data-slot":`separator`,orientation:a,...r}),t[6]=a,t[7]=r,t[8]=o,t[9]=s):s=t[9],s}var Iu=U.createContext(!1),Lu=U.createContext(void 0);function Ru(e){let t=U.useContext(Lu);if(e===!1&&t===void 0)throw Error(Gt(27));return t}var zu=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=xu.startingStyle]=`startingStyle`,e[e.endingStyle=xu.endingStyle]=`endingStyle`,e.anchorHidden=`data-anchor-hidden`,e.side=`data-side`,e.align=`data-align`,e}({}),Bu=function(e){return e.popupOpen=`data-popup-open`,e.pressed=`data-pressed`,e}({}),Vu={[Bu.popupOpen]:``},Hu={[Bu.popupOpen]:``,[Bu.pressed]:``},Uu={[zu.open]:``},Wu={[zu.closed]:``},Gu={[zu.anchorHidden]:``},Ku={open(e){return e?Vu:null}},qu={open(e){return e?Hu:null}},Ju={open(e){return e?Uu:Wu},anchorHidden(e){return e?Gu:null}},Yu={...Ju,...wu},Xu=U.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,{store:s}=Ru(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`);return Vt(`div`,e,{state:{open:c,transitionStatus:s.useState(`transitionStatus`)},ref:[s.context.backdropRef,t],stateAttributesMapping:Yu,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})}),Zu=U.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,...s}=e,{store:c}=Ru(),l=c.useState(`open`),{getButtonProps:u,buttonRef:d}=lr({disabled:a,native:o}),f={disabled:a};function p(e){l&&c.setOpen(!1,kr(Dr,e.nativeEvent))}return Vt(`button`,e,{state:f,ref:[t,d],props:[{onClick:p},s,u]})}),Qu=U.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{store:s}=Ru(),c=_r(a);return s.useSyncedValueWithCleanup(`descriptionElementId`,c),Vt(`p`,e,{ref:t,props:[{id:c},o]})});function $u(e,t){return t!=null&&!rl(t)?0:typeof e==`function`?e():e}function ed(e,t,n){let r=$u(e,n);return typeof r==`number`?r:r?.[t]}function td(e){return typeof e==`function`?e():e}function nd(e,t){return t||e===`click`||e===`mousedown`}function rd(e){return e?.includes(`mouse`)&&e!==`mousedown`}var id=U.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new mu,currentIdRef:{current:null},currentContextRef:{current:null}});function ad(e){let{children:t,delay:n,timeoutMs:r=0}=e,i=U.useRef(n),a=U.useRef(n),o=U.useRef(null),s=U.useRef(null),c=hu();return(0,W.jsx)(id.Provider,{value:U.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:a,currentIdRef:o,timeoutMs:r,currentContextRef:s,timeout:c}),[r,c]),children:t})}function od(e,t={open:!1}){let{open:n}=t,r=`rootStore`in e?e.rootStore:e,i=r.useState(`floatingId`),{currentIdRef:a,delayRef:o,timeoutMs:s,initialDelayRef:c,currentContextRef:l,hasProvider:u,timeout:d}=U.useContext(id),[f,p]=U.useState(!1);return B(()=>{function e(){p(!1),l.current?.setIsInstantPhase(!1),a.current=null,l.current=null,o.current=c.current}if(a.current&&!n&&a.current===i){if(p(!1),s){let t=i;return d.start(s,()=>{r.select(`open`)||a.current&&a.current!==t||e()}),()=>{d.clear()}}e()}},[n,i,a,o,s,c,l,d,r]),B(()=>{if(!n)return;let e=l.current,t=a.current;d.clear(),l.current={onOpenChange:r.setOpen,setIsInstantPhase:p},a.current=i,o.current={open:0,close:ed(c.current,`close`)},t!==null&&t!==i?(p(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,kr(br))):(p(!1),e?.setIsInstantPhase(!1))},[n,i,r,a,o,c,l,d]),B(()=>()=>{l.current=null},[l]),U.useMemo(()=>({hasProvider:u,delayRef:o,isInstantPhase:f}),[u,o,f])}function X(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function sd(...e){return()=>{for(let t=0;t{t.current=t.next}};return t}var ud={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},dd={...ud,position:`fixed`,top:0,left:0},fd={...ud,position:`absolute`},pd=U.forwardRef(function(e,t){let[n,r]=U.useState();B(()=>{Ac&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,W.jsx)(`span`,{...e,ref:t,style:dd,"aria-hidden":n?void 0:!0,...i,"data-base-ui-focus-guard":``})});function md(e){return`data-base-ui-${e}`}var hd=0;function gd(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(hd);function a(){i&&!i()||e?.focus({preventScroll:n})}if(r)return a(),Ht;let o=requestAnimationFrame(a);return hd=o,()=>{hd===o&&(cancelAnimationFrame(o),hd=0)}}var _d={inert:new WeakMap,"aria-hidden":new WeakMap},vd=`data-base-ui-inert`,yd={inert:new WeakSet,"aria-hidden":new WeakSet},bd=new WeakMap,Z=0;function xd(e){return yd[e]}function Sd(e){return e?mr(e)?e.host:Sd(e.parentNode):null}var Cd=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=Sd(t);return e.contains(n)?n:null}).filter(e=>e!=null),wd=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},Td=(e,t,n)=>{let r=[],i=e=>{!e||n.has(e)||Array.from(e.children).forEach(e=>{cr(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function Ed(e,t,n,r,{mark:i=!0,markerIgnoreElements:a=[]}){let o=r?`inert`:n?`aria-hidden`:null,s=null,c=null,l=Cd(t,e),u=i?Cd(t,a):[],d=new Set(u),f=i?Td(t,wd(l),new Set(l)).filter(e=>!d.has(e)):[],p=[],m=[];if(o){let e=_d[o],n=xd(o);c=n,s=e;let r=Cd(t,Array.from(t.querySelectorAll(`[aria-live]`))),i=l.concat(r);Td(t,wd(i),new Set(i)).forEach(t=>{let r=t.getAttribute(o),i=r!==null&&r!==`false`,a=(e.get(t)||0)+1;e.set(t,a),p.push(t),a===1&&i&&n.add(t),i||t.setAttribute(o,o===`inert`?``:`true`)})}return i&&f.forEach(e=>{let t=(bd.get(e)||0)+1;bd.set(e,t),m.push(e),t===1&&e.setAttribute(vd,``)}),Z+=1,()=>{s&&p.forEach(e=>{let t=(s.get(e)||0)-1;s.set(e,t),t||(!c?.has(e)&&o&&e.removeAttribute(o),c?.delete(e))}),i&&m.forEach(e=>{let t=(bd.get(e)||0)-1;bd.set(e,t),t||e.removeAttribute(vd)}),--Z,Z||(_d.inert=new WeakMap,_d[`aria-hidden`]=new WeakMap,yd.inert=new WeakSet,yd[`aria-hidden`]=new WeakSet,bd=new WeakMap)}}function Dd(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0,markerIgnoreElements:a=[]}=t,o=jr(e[0]).body;return Ed(e,o,n,r,{mark:i,markerIgnoreElements:a})}var Od={style:{transition:`none`}},kd={fallbackAxisSide:`none`},Ad={fallbackAxisSide:`end`},jd={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},Md=U.createContext(null),Nd=()=>U.useContext(Md),Pd=md(`portal`);function Fd(e={}){let{ref:t,container:n,componentProps:r=Lt,elementProps:i}=e,a=gr(),o=Nd()?.portalNode,[s,c]=U.useState(null),[l,u]=U.useState(null),d=ur(e=>{e!==null&&u(e)}),f=U.useRef(null);B(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}if(a==null)return;let e=(n&&(Zn(n)?n:n.current))??o??document.body;if(e==null){f.current&&(f.current=null,u(null),c(null));return}f.current!==e&&(f.current=e,u(null),c(e))},[n,o,a]);let p=Vt(`div`,r,{ref:[t,d],props:[{id:a,[Pd]:``},i]});return{portalNode:l,portalSubtree:s&&p?Tu.createPortal(p,s):null}}var Id=U.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,container:o,renderGuards:s,...c}=e,{portalNode:l,portalSubtree:u}=Fd({container:o,ref:t,componentProps:e,elementProps:c}),d=U.useRef(null),f=U.useRef(null),p=U.useRef(null),m=U.useRef(null),[h,g]=U.useState(null),_=U.useRef(!1),v=h?.modal,y=h?.open,b=typeof s==`boolean`?s:!!h&&!h.modal&&h.open&&!!l;U.useEffect(()=>{if(!l||v)return;function e(e){l&&e.relatedTarget&&cu(e)&&(e.type===`focusin`?_.current&&=(uu(l),!1):(lu(l),_.current=!0))}return sd(X(l,`focusin`,e,!0),X(l,`focusout`,e,!0))},[l,v]),U.useEffect(()=>{!l||y!==!1||(uu(l),_.current=!1)},[y,l]);let x=U.useMemo(()=>({beforeOutsideRef:d,afterOutsideRef:f,beforeInsideRef:p,afterInsideRef:m,portalNode:l,setFocusManagerState:g}),[l]);return(0,W.jsxs)(U.Fragment,{children:[u,(0,W.jsxs)(Md.Provider,{value:x,children:[b&&l&&(0,W.jsx)(pd,{"data-type":`outside`,ref:d,onFocus:e=>{cu(e,l)?p.current?.focus():su(h?h.domReference:null)?.focus()}}),b&&l&&(0,W.jsx)(`span`,{"aria-owns":l.id,style:jd}),l&&Tu.createPortal(a,l),b&&l&&(0,W.jsx)(pd,{"data-type":`outside`,ref:f,onFocus:e=>{cu(e,l)?m.current?.focus():(ou(h?h.domReference:null)?.focus(),h?.closeOnFocusOut&&h?.onOpenChange(!1,kr(`focus-out`,e.nativeEvent)))}})]})]})});function Ld(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var Rd=U.createContext(null),zd=U.createContext(null),Bd=()=>U.useContext(Rd)?.id||null,Vd=e=>{let t=U.useContext(zd);return e??t};function Hd(e,t){let n=$n(yr(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||`keyboard`:`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var Ud=20,Wd=[];function Gd(){Wd=Wd.filter(e=>e.deref()?.isConnected)}function Kd(e){Gd(),e&&cr(e)!==`body`&&(Wd.push(new WeakRef(e)),Wd.length>Ud&&(Wd=Wd.slice(-20)))}function qd(){return Gd(),Wd[Wd.length-1]?.deref()}function Jd(e){return e?nu(e)?e:iu(e)[0]||e:null}function Yd(e,t){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!t.current.includes(`floating`)&&!e.getAttribute(`role`)?.includes(`dialog`))return;let n=ru(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return nu(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),r=e.getAttribute(`tabindex`);t.current.includes(`floating`)||n.length===0?r!==`0`&&e.setAttribute(`tabindex`,`0`):(r!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function Xd(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:a=!0,restoreFocus:o=!1,modal:s=!0,closeOnFocusOut:c=!0,openInteractionType:l=``,nextFocusableElement:u,previousFocusableElement:d,beforeContentFocusGuardRef:f,externalTree:p,getInsideElements:m}=e,h=`rootStore`in t?t.rootStore:t,g=h.useState(`open`),_=h.useState(`domReferenceElement`),v=h.useState(`floatingElement`),{events:y,dataRef:b}=h.context,x=ur(()=>b.current.floatingContext?.nodeId),S=i===!1,C=Jc(_)&&S,w=U.useRef([`content`]),T=cd(i),E=cd(a),D=cd(l),O=Vd(p),k=Nd(),A=U.useRef(!1),j=U.useRef(!1),M=U.useRef(!1),ee=U.useRef(null),N=U.useRef(``),P=U.useRef(``),te=U.useRef(null),ne=U.useRef(null),re=Rt(te,f,k?.beforeInsideRef),ie=Rt(ne,k?.afterInsideRef),ae=hu(),F=hu(),oe=yu(),se=k!=null,I=Xc(v),ce=ur((e=I)=>e?iu(e):[]),le=ur(()=>m?.().filter(e=>e!=null)??[]);U.useEffect(()=>{if(r||!s)return;function e(e){e.key===`Tab`&&H(I,Ar(jr(I)))&&ce().length===0&&!C&&$c(e)}return X(jr(I),`keydown`,e)},[r,I,s,C,ce]),U.useEffect(()=>{if(r||!g)return;let e=jr(I);function t(){M.current=!1}function n(e){let t=yr(e),n=le();M.current=!(H(v,t)||H(_,t)||H(k?.portalNode,t)||n.some(e=>e===t||H(e,t))),P.current=e.pointerType||`keyboard`,t?.closest(`[data-base-ui-click-trigger]`)&&(j.current=!0)}function i(){P.current=`keyboard`}return sd(X(e,`pointerdown`,n,!0),X(e,`pointerup`,t,!0),X(e,`pointercancel`,t,!0),X(e,`keydown`,i,!0))},[r,v,_,I,g,k,le]),U.useEffect(()=>{if(r||!c)return;let e=jr(I);function t(){j.current=!0,F.start(0,()=>{j.current=!1})}function n(e){let t=yr(e);nu(t)&&(ee.current=t)}function i(t){let n=t.relatedTarget,r=t.currentTarget,i=yr(t);queueMicrotask(()=>{let a=x(),c=h.context.triggerElements,l=le(),f=n?.hasAttribute(md(`focus-guard`))&&[te.current,ne.current,k?.beforeInsideRef.current,k?.afterInsideRef.current,k?.beforeOutsideRef.current,k?.afterOutsideRef.current,bu(d),bu(u)].includes(n),p=!(H(_,n)||H(v,n)||H(n,v)||H(k?.portalNode,n)||l.some(e=>e===n||H(e,n))||n!=null&&c.hasElement(n)||c.hasMatchingElement(e=>H(e,n))||f||O&&(Zc(O.nodesRef.current,a).find(e=>H(e.context?.elements.floating,n)||H(e.context?.elements.domReference,n))||Qc(O.nodesRef.current,a).find(e=>[e.context?.elements.floating,Xc(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(r===_&&I&&Yd(I,w),o&&r!==_&&!Hl(i)&&Ar(e)===e.body){if(er(I)&&(I.focus(),o===`popup`)){oe.request(()=>{I.focus()});return}let e=ce(),t=ee.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||I;er(n)&&n.focus()}if(b.current.insideReactTree){b.current.insideReactTree=!1;return}(C||!s)&&n&&p&&!j.current&&(C||n!==qd())&&(A.current=!0,h.setOpen(!1,kr(Tr,t)))})}function a(){M.current||(b.current.insideReactTree=!0,ae.start(0,()=>{b.current.insideReactTree=!1}))}let l=er(_)?_:null;if(!(!v&&!l))return sd(l&&X(l,`focusout`,i),l&&X(l,`pointerdown`,t),v&&X(v,`focusin`,n),v&&X(v,`focusout`,i),v&&k&&X(v,`focusout`,a,!0))},[r,_,v,I,s,O,k,h,c,o,ce,C,x,w,b,ae,F,oe,u,d,le]),U.useEffect(()=>{if(r||!v||!g)return;let e=Array.from(k?.portalNode?.querySelectorAll(`[${md(`portal`)}]`)||[]),t=(O?Qc(O.nodesRef.current,x()):[]).find(e=>Jc(e.context?.elements.domReference||null))?.context?.elements.domReference,n=Dd([v,...e,te.current,ne.current,k?.beforeOutsideRef.current,k?.afterOutsideRef.current,...le(),t,bu(d),bu(u),C?_:null].filter(e=>e!=null),{ariaHidden:s||C,mark:!1}),i=Dd([v,...e].filter(e=>e!=null));return()=>{i(),n()}},[g,r,_,v,s,k,C,O,x,u,d,le]),B(()=>{if(!g||r||!er(I))return;let e=jr(I),t=Ar(e);queueMicrotask(()=>{let n=T.current,r=typeof n==`function`?n(D.current||``):n;if(r===void 0||r===!1||H(I,t))return;let i=null,a=()=>(i??=ce(I),i[0]||I),o;o=r===!0||r===null?a():bu(r),o||=a();let s=H(I,Ar(e));gd(o,{preventScroll:o===I,shouldFocus(){if(s)return!0;let t=Ar(e);return!(t!==o&&H(I,t))}})})},[r,g,I,ce,T,D]),B(()=>{if(r||!I)return;let e=jr(I);Kd(Ar(e));function t(e){if(e.open||(N.current=Hd(e.nativeEvent,P.current)),e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`&&(A.current=!0),e.reason===`outside-press`)if(e.nested)A.current=!1;else if(tl(e.nativeEvent)||nl(e.nativeEvent))A.current=!1;else{let e=!1;jr(I).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?A.current=!1:A.current=!0}}y.on(`openchange`,t);function n(){let e=E.current,t=typeof e==`function`?e(N.current):e;if(t===void 0||t===!1)return null;if(t===null&&(t=!0),typeof t==`boolean`)return _?.isConnected?_:qd()||null;let n=_?.isConnected?_:qd();return bu(t)||n||null}return()=>{y.off(`openchange`,t);let r=Ar(e),i=le(),a=H(v,r)||i.some(e=>e===r||H(e,r))||O&&Zc(O.nodesRef.current,x(),!1).some(e=>H(e.context?.elements.floating,r)),o=E.current,s=n();queueMicrotask(()=>{let t=Jd(s),n=typeof o!=`boolean`;o&&!A.current&&er(t)&&(!(!n&&t!==r&&r!==e.body)||a)&&t.focus({preventScroll:!0}),A.current=!1})}},[r,v,I,E,y,O,_,x,le]),B(()=>{if(!Oc||g||!v)return;let e=Ar(jr(v));!er(e)||!Kc(e)||H(v,e)&&e.blur()},[g,v]),B(()=>{if(!(r||!k))return k.setFocusManagerState({modal:s,closeOnFocusOut:c,open:g,onOpenChange:h.setOpen,domReference:_}),()=>{k.setFocusManagerState(null)}},[r,k,s,g,h,c,_]),B(()=>{if(!(r||!I))return Yd(I,w),()=>{queueMicrotask(Gd)}},[r,I,w]);let ue=!r&&(s?!C:!0)&&(se||s);return(0,W.jsxs)(U.Fragment,{children:[ue&&(0,W.jsx)(pd,{"data-type":`inside`,ref:re,onFocus:e=>{if(s){let e=ce();gd(e[e.length-1])}else k?.portalNode&&(A.current=!1,cu(e,k.portalNode)?ou(_)?.focus():bu(d??k.beforeOutsideRef)?.focus())}}),n,ue&&(0,W.jsx)(pd,{"data-type":`inside`,ref:ie,onFocus:e=>{s?gd(ce()[0]):k?.portalNode&&(c&&(A.current=!0),cu(e,k.portalNode)?su(_)?.focus():bu(u??k.afterOutsideRef)?.focus())}})]})}function Zd(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){let a=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},o=t.axis===`x`||t.axis===`both`,s=t.axis===`y`||t.axis===`both`,c=[`mouseenter`,`mousemove`].includes(t.dataRef.current.openEvent?.type||``)&&t.pointerType!==`touch`,l=a.width,u=a.height,d=a.x,f=a.y;return n==null&&t.x&&o&&(n=a.x-t.x),r==null&&t.y&&s&&(r=a.y-t.y),d-=n||0,f-=r||0,l=0,u=0,!i||c?(l=t.axis===`y`?a.width:0,u=t.axis===`x`?a.height:0,d=o&&t.x!=null?t.x:d,f=s&&t.y!=null?t.y:f):i&&!c&&(u=t.axis===`x`?a.height:u,l=t.axis===`y`?a.width:l),i=!0,{width:l,height:u,x:d,y:f,top:f,right:d+l,bottom:f+u,left:d}}}}function Qd(e){return e!=null&&e.clientX!=null}function $d(e,t={}){let{enabled:n=!0,axis:r=`both`}=t,i=`rootStore`in e?e.rootStore:e,a=i.useState(`open`),o=i.useState(`floatingElement`),s=i.useState(`domReferenceElement`),c=i.context.dataRef,l=U.useRef(!1),u=U.useRef(null),[d,f]=U.useState(),[p,m]=U.useState([]),h=ur(e=>{i.set(`positionReference`,e)}),g=ur((e,t,n)=>{l.current||c.current.openEvent&&!Qd(c.current.openEvent)||i.set(`positionReference`,Zd(n??s,{x:e,y:t,axis:r,dataRef:c,pointerType:d}))}),_=ur(e=>{a?u.current||(g(e.clientX,e.clientY,e.currentTarget),m([])):g(e.clientX,e.clientY,e.currentTarget)}),v=rl(d)?o:a;U.useEffect(()=>{if(!n){h(s);return}if(!v)return;function e(){u.current?.(),u.current=null}let t=$n(o);function r(t){H(o,yr(t))?e():g(t.clientX,t.clientY)}return!c.current.openEvent||Qd(c.current.openEvent)?u.current=X(t,`mousemove`,r):h(s),e},[v,n,o,c,s,i,g,h,p]),U.useEffect(()=>()=>{i.set(`positionReference`,null)},[i]),U.useEffect(()=>{n&&!o&&(l.current=!1)},[n,o]),U.useEffect(()=>{!n&&a&&(l.current=!0)},[n,a]);let y=U.useMemo(()=>{function e(e){f(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:_,onMouseEnter:_}},[_]);return U.useMemo(()=>n?{reference:y,trigger:y}:{},[n,y])}var ef={intentional:`onClick`,sloppy:`onPointerDown`};function tf(){return!1}function nf(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function rf(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:i=!0,outsidePressEvent:a=`sloppy`,referencePress:o=tf,referencePressEvent:s=`sloppy`,bubbles:c,externalTree:l}=t,u=`rootStore`in e?e.rootStore:e,d=u.useState(`open`),f=u.useState(`floatingElement`),{dataRef:p}=u.context,m=Vd(l),h=ur(typeof i==`function`?i:()=>!1),g=typeof i==`function`?h:i,_=g!==!1,v=ur(()=>a),{escapeKey:y,outsidePress:b}=nf(c),x=U.useRef(!1),S=U.useRef(!1),C=U.useRef(!1),w=U.useRef(!1),T=U.useRef(``),E=U.useRef(null),D=hu(),O=hu(),k=ur(()=>{O.clear(),p.current.insideReactTree=!1}),A=ur(e=>{let t=p.current.floatingContext?.nodeId;return(m?Zc(m.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),j=ur(e=>Wc(e,u.select(`floatingElement`))||Wc(e,u.select(`domReferenceElement`))),M=ur(e=>{o()&&u.setOpen(!1,kr(xr,e.nativeEvent))}),ee=ur(e=>{if(!d||!n||!r||e.key!==`Escape`||w.current||!y&&A(`__escapeKeyBubbles`))return;let t=kr(vr,el(e)?e.nativeEvent:e);u.setOpen(!1,t),t.isCanceled||e.preventDefault(),!y&&!t.isPropagationAllowed&&e.stopPropagation()}),N=ur(()=>{p.current.insideReactTree=!0,O.start(0,k)}),P=ur(e=>{if(!d||!n||e.button!==0)return;let t=yr(e.nativeEvent);H(u.select(`floatingElement`),t)&&(x.current||(x.current=!0,S.current=!1))}),te=ur(e=>{!d||!n||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&x.current&&(S.current=!0)});U.useEffect(()=>{if(!d||!n)return;p.current.__escapeKeyBubbles=y,p.current.__outsidePressBubbles=b;let e=new mu,t=new mu;function i(){e.clear(),w.current=!0}function a(){e.start(Yn()?5:0,()=>{w.current=!1})}function o(){C.current=!0,t.start(0,()=>{C.current=!1})}function s(){x.current=!1,S.current=!1}function c(){let e=T.current,t=e===`pen`||!e?`mouse`:e,n=v(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function l(e){let t=c();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function h(e){let t=p.current.floatingContext?.nodeId,n=m&&Zc(m.nodesRef.current,t).some(t=>Wc(e,t.context?.elements.floating));return j(e)||n}function O(e){if(l(e)){e.type!==`click`&&!j(e)&&(t.clear(),C.current=!1),k();return}if(p.current.insideReactTree){k();return}let n=yr(e),r=`[${md(`inert`)}]`,i=V(n)?n.getRootNode():null,a=Array.from((mr(i)?i:jr(u.select(`floatingElement`))).querySelectorAll(r)),o=u.context.triggerElements;if(n&&(o.hasElement(n)||o.hasMatchingElement(e=>H(e,n))))return;let s=V(n)?n:null;for(;s&&!hr(s);){let e=rr(s);if(hr(e)||!V(e))break;s=e}if(!(a.length&&V(n)&&!Gc(n)&&!H(n,u.select(`floatingElement`))&&a.every(e=>!H(s,e)))){if(er(n)&&!(`touches`in e)){let t=hr(n),r=ar(n),i=/auto|scroll/,a=t||i.test(r.overflowX),o=t||i.test(r.overflowY),s=a&&n.clientWidth>0&&n.scrollWidth>n.clientWidth,c=o&&n.clientHeight>0&&n.scrollHeight>n.clientHeight,l=r.direction===`rtl`,u=c&&(l?e.offsetX<=n.offsetWidth-n.clientWidth:e.offsetX>n.clientWidth),d=s&&e.offsetY>n.clientHeight;if(u||d)return}if(!h(e)){if(c()===`intentional`&&C.current){t.clear(),C.current=!1;return}typeof g==`function`&&!g(e)||A(`__outsidePressBubbles`)||(u.setOpen(!1,kr(Er,e)),k())}}}function M(e){c()!==`sloppy`||e.pointerType===`touch`||!u.select(`open`)||!n||j(e)||O(e)}function N(e){if(c()!==`sloppy`||!u.select(`open`)||!n||j(e))return;let t=e.touches[0];t&&(E.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},D.start(1e3,()=>{E.current&&(E.current.dismissOnTouchEnd=!1,E.current.dismissOnMouseDown=!1)}))}function P(e,t){let n=yr(e);if(!n)return;let r=X(n,e.type,()=>{t(e),r()})}function te(e){T.current=`touch`,P(e,N)}function ne(e){D.clear(),e.type===`pointerdown`&&(T.current=e.pointerType),!(e.type===`mousedown`&&E.current&&!E.current.dismissOnMouseDown)&&P(e,e=>{e.type===`pointerdown`?M(e):O(e)})}function re(e){if(!x.current)return;let n=S.current;if(s(),c()===`intentional`){if(e.type===`pointercancel`){n&&o();return}if(!h(e)){if(n){o();return}typeof g==`function`&&!g(e)||(t.clear(),C.current=!0,k())}}}function ie(e){if(c()!==`sloppy`||!E.current||j(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-E.current.startX),r=Math.abs(t.clientY-E.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(E.current.dismissOnTouchEnd=!0),i>10&&(O(e),D.clear(),E.current=null)}function ae(e){P(e,ie)}function F(e){c()!==`sloppy`||!E.current||j(e)||(E.current.dismissOnTouchEnd&&O(e),D.clear(),E.current=null)}function oe(e){P(e,F)}let se=jr(f),I=sd(r&&sd(X(se,`keydown`,ee),X(se,`compositionstart`,i),X(se,`compositionend`,a)),_&&sd(X(se,`click`,ne,!0),X(se,`pointerdown`,ne,!0),X(se,`pointerup`,re,!0),X(se,`pointercancel`,re,!0),X(se,`mousedown`,ne,!0),X(se,`mouseup`,re,!0),X(se,`touchstart`,te,!0),X(se,`touchmove`,ae,!0),X(se,`touchend`,oe,!0)));return()=>{I(),e.clear(),t.clear(),s(),C.current=!1}},[p,f,r,_,g,d,n,y,b,ee,k,v,A,j,m,u,D]),U.useEffect(k,[g,k]);let ne=U.useMemo(()=>({onKeyDown:ee,[ef[s]]:M,...s!==`intentional`&&{onClick:M}}),[ee,M,s]),re=U.useMemo(()=>({onKeyDown:ee,onPointerDown:te,onMouseDown:te,onClickCapture:N,onMouseDownCapture(e){N(),P(e)},onPointerDownCapture(e){N(),P(e)},onMouseUpCapture:N,onTouchEndCapture:N,onTouchMoveCapture:N}),[ee,N,P,te]);return U.useMemo(()=>n?{reference:ne,floating:re,trigger:ne}:{},[n,ne,re])}function af(e,t,n){let{reference:r,floating:i}=e,a=vl(t),o=yl(t),s=_l(o),c=ml(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(hl(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function of(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=pl(t,e),p=jl(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Ml(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Ml(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var sf=50,cf=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:of},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=af(l,r,c),f=r,p=0,m={};for(let n=0;ne<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==vl(t))||T.every(e=>vl(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=vl(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function uf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function df(e){return al.some(t=>e[t]>=0)}var ff=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=pl(e,t);switch(i){case`referenceHidden`:{let e=uf(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:df(e)}}}case`escaped`:{let e=uf(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:df(e)}}}default:return{}}}}},pf=new Set([`left`,`top`]);async function mf(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=ml(n),s=hl(n),c=vl(n)===`y`,l=pf.has(o)?-1:1,u=a&&c?-1:1,d=pl(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var hf=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await mf(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},gf=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=pl(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=vl(ml(i)),p=gl(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=fl(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=fl(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},_f=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=pl(e,t),u={x:n,y:r},d=vl(i),f=gl(d),p=u[f],m=u[d],h=pl(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;pn&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=pf.has(ml(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);mr&&(m=r)}return{[f]:p,[d]:m}}}},vf=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=pl(e,t),u=await o.detectOverflow(t,l),d=ml(i),f=hl(i),p=vl(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=ol(h-u[g],v),x=ol(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=sl(u.left,0),t=sl(u.right,0),n=sl(u.top,0),r=sl(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:sl(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:sl(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function yf(e){let t=ar(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=er(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=cl(n)!==a||cl(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function bf(e){return V(e)?e:e.contextElement}function xf(e){let t=bf(e);if(!er(t))return ul(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=yf(t),o=(a?cl(n.width):n.width)/r,s=(a?cl(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Sf=ul(0);function Cf(e){let t=$n(e);return!Yn()||!t.visualViewport?Sf:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wf(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==$n(e)?!1:t}function Tf(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=bf(e),o=ul(1);t&&(r?V(r)&&(o=xf(r)):o=xf(e));let s=wf(a,n,r)?Cf(a):ul(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=$n(a),t=r&&V(r)?$n(r):r,n=e,i=nr(n);for(;i&&r&&t!==n;){let e=xf(i),t=i.getBoundingClientRect(),r=ar(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=$n(i),i=nr(n)}}return Ml({width:u,height:d,x:c,y:l})}function Ef(e,t){let n=or(e).scrollLeft;return t?t.left+n:Tf(tr(e)).left+n}function Df(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Ef(e,n),y:n.top+t.scrollTop}}function Of(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=tr(r),s=t?Xn(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=ul(1),u=ul(0),d=er(r);if((d||!d&&!a)&&((cr(r)!==`body`||Jn(o))&&(c=or(r)),d)){let e=Tf(r);l=xf(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Df(o,c):ul(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function kf(e){return Array.from(e.getClientRects())}function Af(e){let t=tr(e),n=or(e),r=e.ownerDocument.body,i=sl(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=sl(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Ef(e),s=-n.scrollTop;return ar(r).direction===`rtl`&&(o+=sl(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var jf=25;function Mf(e,t){let n=$n(e),r=tr(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Yn();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Ef(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=jf&&(a-=o)}else l<=jf&&(a+=l);return{width:a,height:o,x:s,y:c}}function Nf(e,t){let n=Tf(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=er(e)?xf(e):ul(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Pf(e,t,n){let r;if(t===`viewport`)r=Mf(e,n);else if(t===`document`)r=Af(tr(e));else if(V(t))r=Nf(t,n);else{let n=Cf(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Ml(r)}function Ff(e,t){let n=rr(e);return n===t||!V(n)||hr(n)?!1:ar(n).position===`fixed`||Ff(n,t)}function If(e,t){let n=t.get(e);if(n)return n;let r=ir(e,[],!1).filter(e=>V(e)&&cr(e)!==`body`),i=null,a=ar(e).position===`fixed`,o=a?rr(e):e;for(;V(o)&&!hr(o);){let t=ar(o),n=pr(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||Jn(o)&&!n&&Ff(e,o))?r=r.filter(e=>e!==o):i=t,o=rr(o)}return t.set(e,r),r}function Lf(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Xn(t)?[]:If(t,this._c):[].concat(n),r],o=Pf(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e{o(!1,1e-7)},1e3)}n===1&&!Kf(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function Jf(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=bf(e),u=i||a?[...l?ir(l):[],...t?ir(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?qf(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Tf(e):null;c&&g();function g(){let t=Tf(e);h&&!Kf(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Yf=hf,Xf=gf,Zf=lf,Qf=vf,$f=ff,ep=_f,tp=(e,t,n)=>{let r=new Map,i={platform:Gf,...n},a={...i.platform,_c:r};return cf(e,t,{...i,platform:a})},np=typeof document<`u`?U.useLayoutEffect:function(){};function rp(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!rp(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!rp(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function ip(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ap(e,t){let n=ip(e);return Math.round(t*n)/n}function op(e){let t=U.useRef(e);return np(()=>{t.current=e}),t}function sp(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=U.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=U.useState(r);rp(f,r)||p(r);let[m,h]=U.useState(null),[g,_]=U.useState(null),v=U.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=U.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=U.useRef(null),C=U.useRef(null),w=U.useRef(u),T=c!=null,E=op(c),D=op(i),O=op(l),k=U.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),tp(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!rp(w.current,t)&&(w.current=t,Tu.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);np(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=U.useRef(!1);np(()=>(A.current=!0,()=>{A.current=!1}),[]),np(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let j=U.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),M=U.useMemo(()=>({reference:b,floating:x}),[b,x]),ee=U.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=ap(M.floating,u.x),r=ap(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...ip(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return U.useMemo(()=>({...u,update:k,refs:j,elements:M,floatingStyles:ee}),[u,k,j,M,ee])}var cp=(e,t)=>{let n=Yf(e);return{name:n.name,fn:n.fn,options:[e,t]}},lp=(e,t)=>{let n=Xf(e);return{name:n.name,fn:n.fn,options:[e,t]}},up=(e,t)=>({fn:ep(e).fn,options:[e,t]}),dp=(e,t)=>{let n=Zf(e);return{name:n.name,fn:n.fn,options:[e,t]}},fp=(e,t)=>{let n=Qf(e);return{name:n.name,fn:n.fn,options:[e,t]}},pp=(e,t)=>{let n=$f(e);return{name:n.name,fn:n.fn,options:[e,t]}},Q=(e,t,n,r,i,a,...o)=>{if(o.length>0)throw Error(Gt(1));let s;if(e&&t&&n&&r&&i&&a)s=(o,s,c,l)=>a(e(o,s,c,l),t(o,s,c,l),n(o,s,c,l),r(o,s,c,l),i(o,s,c,l),s,c,l);else if(e&&t&&n&&r&&i)s=(a,o,s,c)=>i(e(a,o,s,c),t(a,o,s,c),n(a,o,s,c),r(a,o,s,c),o,s,c);else if(e&&t&&n&&r)s=(i,a,o,s)=>r(e(i,a,o,s),t(i,a,o,s),n(i,a,o,s),a,o,s);else if(e&&t&&n)s=(r,i,a,o)=>n(e(r,i,a,o),t(r,i,a,o),i,a,o);else if(e&&t)s=(n,r,i,a)=>t(e(n,r,i,a),r,i,a);else if(e)s=e;else throw Error(`Missing arguments`);return s},mp=[],hp=void 0;function gp(){return hp}function _p(e){mp.push(e)}function vp(e){let t=(t,n)=>{let r=Bt(bp).current,i;try{hp=r;for(let e of mp)e.before(r);i=e(t,n);for(let e of mp)e.after(r);r.didInitialize=!0}finally{hp=void 0}return i};return t.displayName=e.displayName||e.name,t}function yp(e){return U.forwardRef(vp(e))}function bp(){return{didInitialize:!1}}var xp=ie(),Sp=ne(),Cp=Ut(19)?Ep:Dp;function wp(e,t,n,r,i){return Cp(e,t,n,r,i)}function Tp(e,t,n,r,i){let a=U.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,xp.useSyncExternalStore)(e.subscribe,a,a)}_p({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,xp.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Ep(e,t,n,r,i){let a=gp();if(!a)return Tp(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],(s.store!==e||s.selector!==t||!Object.is(s.a1,n)||!Object.is(s.a2,r)||!Object.is(s.a3,i))&&(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.didChange=!0)):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i),didChange:!1},a.syncHooks.push(s)),s.value}function Dp(e,t,n,r,i){return(0,Sp.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var Op=class{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return wp(this,e,t,n,r)}},kp=class extends Op{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){U.useDebugValue(e);let n=this;B(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;B(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;B(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){U.useDebugValue(e);let n=this,r=t!==void 0;B(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return U.useDebugValue(e),wp(this,this.selectors[e],t,n,r)}useContextCallback(e,t){U.useDebugValue(e);let n=ur(t??Ht);this.context[e]=n}useStateSetter(e){let t=U.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},Ap={open:Q(e=>e.open),transitionStatus:Q(e=>e.transitionStatus),domReferenceElement:Q(e=>e.domReferenceElement),referenceElement:Q(e=>e.positionReference??e.referenceElement),floatingElement:Q(e=>e.floatingElement),floatingId:Q(e=>e.floatingId)},jp=class extends kp{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:Ld(),nested:n,triggerElements:i},Ap),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&il(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{if(this.syncOnly){this.context.onOpenChange?.(e,t);return}this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}};function Mp(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:i,nested:a,onOpenChange:o}=e,s=t.useState(`open`),c=t.useState(`activeTriggerElement`),l=t.useState(n?`popupElement`:`positionerElement`),u=t.context.triggerElements,d=o,f=U.useRef(null);r===void 0&&f.current===null&&(f.current=new jp({open:s,transitionStatus:void 0,referenceElement:c,floatingElement:l,triggerElements:u,onOpenChange:d,floatingId:i,syncOnly:!0,nested:a}));let p=r??f.current;return t.useSyncedValue(`floatingId`,i),B(()=>{let e={open:s,floatingId:i,referenceElement:c,floatingElement:l};V(c)&&(e.domReferenceElement=c),p.state.positionReference===p.state.referenceElement&&(e.positionReference=c),p.update(e)},[s,i,c,l,p]),p.context.onOpenChange=d,p.context.nested=a,p}var Np={tabIndex:-1,[Lc]:``};function Pp(e,t,n=!1){let r=gr(),i=Bd()!=null,a=U.useRef(null);e===void 0&&a.current===null&&(a.current=t(r,i));let o=e??a.current;return Mp({popupStore:o,treatPopupAsFloatingElement:n,floatingRootContext:o.state.floatingRootContext,floatingId:r,nested:i,onOpenChange:o.setOpen}),{store:o,internalStore:a.current}}function Fp(e,t){let n=U.useRef(null),r=U.useRef(null);return U.useCallback(i=>{if(e===void 0)return;let a=!1;if(n.current!==null){let e=n.current,i=r.current,o=t.context.triggerElements.getById(e);i&&o===i&&(t.context.triggerElements.delete(e),a=!0),n.current=null,r.current=null}if(i!==null&&(n.current=e,r.current=i,t.context.triggerElements.add(e,i),a=!0),a){let e=t.context.triggerElements.size;t.select(`open`)&&t.state.triggerCount!==e&&t.set(`triggerCount`,e)}},[t,e])}function Ip(e,t,n){let r=n?.id??null;(r||t)&&(e.activeTriggerId=r,e.activeTriggerElement=n??null)}function Lp(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=Fp(e,n),o=ur(t=>{if(a(t),!t)return;let i=n.select(`open`),o=n.select(`activeTriggerId`);if(o===e){n.update({activeTriggerElement:t,...i?r:null});return}o==null&&i&&n.update({activeTriggerId:e,activeTriggerElement:t,...r})});return B(()=>{i&&n.update({activeTriggerElement:t.current,...r})},[i,n,t,...Object.values(r)]),{registerTrigger:o,isMountedByThisTrigger:i}}function Rp(e){let t=e.useState(`open`);B(()=>{if(!t){e.state.triggerCount!==0&&e.set(`triggerCount`,0);return}let n=e.context.triggerElements.size,r={};if(e.state.triggerCount!==n&&(r.triggerCount=n),!e.select(`activeTriggerId`)&&n===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,n]=t.value;r.activeTriggerId=e,r.activeTriggerElement=n}}(r.triggerCount!==void 0||r.activeTriggerId!==void 0)&&e.update(r)},[t,e,e.useState(`triggerCount`)])}function zp(e,t,n){let{mounted:r,setMounted:i,transitionStatus:a}=Ou(e);t.useSyncedValues({mounted:r,transitionStatus:a});let o=ur(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)}),s=t.useState(`preventUnmountingOnClose`);return Du({enabled:r&&!e&&!s,open:e,ref:t.context.popupRef,onComplete(){e||o()}}),{forceUnmount:o,transitionStatus:a}}function Bp(e,t){e.useSyncedValues(t),B(()=>()=>{e.update({activeTriggerProps:Lt,inactiveTriggerProps:Lt,popupProps:Lt})},[e])}function Vp(e,t){B(()=>{!t&&e.state.openMethod!==null&&e.set(`openMethod`,null)},[t,e]),B(()=>()=>{e.state.openMethod!==null&&e.set(`openMethod`,null)},[e])}var Hp=class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let n=this.idMap.get(e);n!==t&&(n!==void 0&&this.elementsSet.delete(n),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}};function Up(){return new jp({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new Hp,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function Wp(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:Up(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:Lt,inactiveTriggerProps:Lt,popupProps:Lt}}function Gp(e,t,n=!1){return new jp({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0})}var Kp=Q(e=>e.triggerIdProp??e.activeTriggerId),qp=Q(e=>e.openProp??e.open),Jp=Q(e=>(e.popupElement?.id??e.floatingId)||void 0);function Yp(e,t){return t!==void 0&&qp(e)&&Kp(e)===t}function Xp(e,t){return Yp(e,t)?!0:t!==void 0&&qp(e)&&Kp(e)==null&&e.triggerCount===1}var Zp={open:qp,mounted:Q(e=>e.mounted),transitionStatus:Q(e=>e.transitionStatus),floatingRootContext:Q(e=>e.floatingRootContext),triggerCount:Q(e=>e.triggerCount),preventUnmountingOnClose:Q(e=>e.preventUnmountingOnClose),payload:Q(e=>e.payload),activeTriggerId:Kp,activeTriggerElement:Q(e=>e.mounted?e.activeTriggerElement:null),popupId:Jp,isTriggerActive:Q((e,t)=>t!==void 0&&Kp(e)===t),isOpenedByTrigger:Q((e,t)=>Yp(e,t)),isMountedByTrigger:Q((e,t)=>t!==void 0&&Kp(e)===t&&e.mounted),triggerProps:Q((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),triggerPopupId:Q((e,t)=>Xp(e,t)?Jp(e):void 0),popupProps:Q(e=>e.popupProps),popupElement:Q(e=>e.popupElement),positionerElement:Q(e=>e.positionerElement)};function Qp(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=gr(),a=Bd()!=null,o=Bt(()=>new jp({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new Hp,floatingId:i,syncOnly:!1,nested:a})).current;return B(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=V(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o}function $p(e={}){let{nodeId:t,externalTree:n}=e,r=Qp(e),i=e.rootContext||r,a=i.useState(`referenceElement`),o=i.useState(`floatingElement`),s=i.useState(`domReferenceElement`),c=i.useState(`open`),l=i.useState(`floatingId`),[u,d]=U.useState(null),[f,p]=U.useState(void 0),[m,h]=U.useState(void 0),g=U.useRef(null),_=Vd(n),v=U.useMemo(()=>({reference:a,floating:o,domReference:s}),[a,o,s]),y=sp({...e,elements:{...v,...u&&{reference:u}}}),b=V(f)?f:null,x=m===void 0?i.state.floatingElement:m;i.useSyncedValue(`referenceElement`,f??null),i.useSyncedValue(`domReferenceElement`,f===void 0?s:b),i.useSyncedValue(`floatingElement`,x);let S=U.useCallback(e=>{let t=V(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;d(t),y.refs.setReference(t)},[y.refs]),C=U.useCallback(e=>{(V(e)||e===null)&&(g.current=e,p(e)),(V(y.refs.reference.current)||y.refs.reference.current===null||e!==null&&!V(e))&&y.refs.setReference(e)},[y.refs,p]),w=U.useCallback(e=>{h(e),y.refs.setFloating(e)},[y.refs]),T=U.useMemo(()=>({...y.refs,setReference:C,setFloating:w,setPositionReference:S,domReference:g}),[y.refs,C,w,S]),E=U.useMemo(()=>({...y.elements,domReference:s}),[y.elements,s]),D=U.useMemo(()=>({...y,dataRef:i.context.dataRef,open:c,onOpenChange:i.setOpen,events:i.context.events,floatingId:l,refs:T,elements:E,nodeId:t,rootStore:i}),[y,T,E,t,i,c,l]);return B(()=>{s&&(g.current=s)},[s]),B(()=>{i.context.dataRef.current.floatingContext=D;let e=_?.nodesRef.current.find(e=>e.id===t);e&&(e.context=D)}),U.useMemo(()=>({...y,context:D,refs:T,elements:E,rootStore:i}),[y,T,E,D,i])}var em=Mc&&Ac;function tm(e,t={}){let{enabled:n=!0,delay:r}=t,i=`rootStore`in e?e.rootStore:e,{events:a,dataRef:o}=i.context,s=U.useRef(!1),c=U.useRef(null),l=U.useRef(!0),u=hu();U.useEffect(()=>{let e=i.select(`domReferenceElement`);if(!n)return;let t=$n(e);function r(){let e=i.select(`domReferenceElement`);!i.select(`open`)&&er(e)&&e===Ar(jr(e))&&(s.current=!0)}function a(){l.current=!0}function o(){l.current=!1}return sd(X(t,`blur`,r),em&&X(t,`keydown`,a,!0),em&&X(t,`pointerdown`,o,!0))},[i,n]),U.useEffect(()=>{if(!n)return;function e(e){if(e.reason===`trigger-press`||e.reason===`escape-key`){let e=i.select(`domReferenceElement`);V(e)&&(c.current=e,s.current=!0)}}return a.on(`openchange`,e),()=>{a.off(`openchange`,e)}},[a,n,i]);let d=U.useMemo(()=>{function e(){s.current=!1,c.current=null}return{onMouseLeave(){e()},onFocus(t){let n=t.currentTarget;if(s.current){if(c.current===n)return;e()}let a=yr(t.nativeEvent);if(V(a)){if(em&&!t.relatedTarget){if(!l.current&&!Kc(a))return}else if(!Yc(a))return}let o=Uc(t.relatedTarget,i.context.triggerElements),{nativeEvent:d,currentTarget:f}=t,p=typeof r==`function`?r():r;if(i.select(`open`)&&o||p===0||p===void 0){i.setOpen(!0,kr(wr,d,f));return}u.start(p,()=>{s.current||i.setOpen(!0,kr(wr,d,f))})},onBlur(t){e();let n=t.relatedTarget,r=t.nativeEvent,a=V(n)&&n.hasAttribute(md(`focus-guard`))&&n.getAttribute(`data-type`)===`outside`;u.start(0,()=>{let e=i.select(`domReferenceElement`),t=Ar(jr(e));!n&&t===e||H(o.current.floatingContext?.refs.floating.current,t)||H(e,t)||a||Uc(n??t,i.context.triggerElements)||i.setOpen(!1,kr(wr,r))})}}},[o,r,i,u]);return U.useMemo(()=>n?{reference:d,trigger:d}:{},[n,d])}var nm=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new mu,this.restTimeout=new mu,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},rm=new WeakMap;function im(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&rm.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),rm.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function am(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=rm.get(n);a&&a!==e&&im(a),im(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,rm.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function om(e){let t=e.context.dataRef.current,n=Bt(()=>t.hoverInteractionState??nm.create()).current;return t.hoverInteractionState||=n,fu(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function sm(e,t={}){let{enabled:n=!0,closeDelay:r=0,nodeId:i}=t,a=`rootStore`in e?e.rootStore:e,o=a.useState(`open`),s=a.useState(`floatingElement`),c=a.useState(`domReferenceElement`),{dataRef:l}=a.context,u=Vd(),d=Bd(),f=om(a),p=hu(),m=ur(()=>nd(l.current.openEvent?.type,f.interactedInside)),h=ur(()=>rd(l.current.openEvent?.type)),g=ur(()=>{im(f)});B(()=>{o||(f.pointerType=void 0,f.restTimeoutPending=!1,f.interactedInside=!1,g())},[o,f,g]),U.useEffect(()=>g,[g]),B(()=>{if(n&&o&&f.handleCloseOptions?.blockPointerEvents&&h()&&V(c)&&s){let e=c,t=s,n=jr(s),r=u?.nodesRef.current.find(e=>e.id===d)?.context?.elements.floating;r&&(r.style.pointerEvents=``);let i=f.pointerEventsScopeElement===t?null:f.pointerEventsScopeElement,a=r===t?null:r;return am(f,{scopeElement:f.handleCloseOptions?.getScope?.()??i??a??e.closest(`[data-rootownerid]`)??n.body,referenceElement:e,floatingElement:t}),()=>{g()}}},[n,o,c,s,f,h,u,d,g]),U.useEffect(()=>{if(!n)return;function e(){return!!(u&&d&&Zc(u.nodesRef.current,d).length>0)}function t(e){let t=ed(r,`close`,f.pointerType),n=()=>{a.setOpen(!1,kr(Sr,e)),u?.events.emit(`floating.closed`,e)};t?f.openChangeTimeout.start(t,n):(f.openChangeTimeout.clear(),n())}function o(e){let t=yr(e);if(!qc(t)){f.interactedInside=!1;return}f.interactedInside=t?.closest(`[aria-haspopup]`)!=null}function c(){f.openChangeTimeout.clear(),p.clear(),u?.events.off(`floating.closed`,_),g()}function h(n){if(e()&&u){u.events.on(`floating.closed`,_);return}if(Uc(n.relatedTarget,a.context.triggerElements))return;let r=l.current.floatingContext?.nodeId??i,o=n.relatedTarget;if(!(u&&r&&V(o)&&Zc(u.nodesRef.current,r,!1).some(e=>H(e.context?.elements.floating,o)))){if(f.handler){f.handler(n);return}g(),m()||t(n)}}function _(t){!u||!d||e()||p.start(0,()=>{u.events.off(`floating.closed`,_),a.setOpen(!1,kr(Sr,t)),u.events.emit(`floating.closed`,t)})}let v=s;return sd(v&&X(v,`mouseenter`,c),v&&X(v,`mouseleave`,h),v&&X(v,`pointerdown`,o,!0),()=>{u?.events.off(`floating.closed`,_)})},[n,s,a,l,r,i,m,g,f,u,d,p])}var cm={current:null};function lm(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:o=0,move:s=!0,triggerElementRef:c=cm,externalTree:l,isActiveTrigger:u=!0,getHandleCloseContext:d,isClosing:f,shouldOpen:p}=t,m=`rootStore`in e?e.rootStore:e,{dataRef:h,events:g}=m.context,_=Vd(l),v=om(m),y=U.useRef(!1),b=cd(i),x=cd(r),S=cd(o),C=cd(n),w=cd(p),T=cd(f),E=ur(()=>nd(h.current.openEvent?.type,v.interactedInside)),D=ur(()=>w.current?.()!==!1),O=ur((e,t,n)=>{let r=m.context.triggerElements;if(r.hasElement(t))return!e||!H(e,t);if(!V(n))return!1;let i=n;return r.hasMatchingElement(e=>H(e,i))&&(!e||!H(e,i))}),k=ur(()=>{v.handler&&=(jr(m.select(`domReferenceElement`)).removeEventListener(`mousemove`,v.handler),void 0)}),A=ur(()=>{im(v)});return u&&(v.handleCloseOptions=b.current?.__options),U.useEffect(()=>k,[k]),U.useEffect(()=>{if(!n)return;function e(e){e.open?y.current=!1:(y.current=e.reason===Sr,k(),v.openChangeTimeout.clear(),v.restTimeout.clear(),v.blockMouseMove=!0,v.restTimeoutPending=!1)}return g.on(`openchange`,e),()=>{g.off(`openchange`,e)}},[n,g,v,k]),U.useEffect(()=>{if(!n)return;function e(e,t=!0){let n=ed(x.current,`close`,v.pointerType);n?v.openChangeTimeout.start(n,()=>{m.setOpen(!1,kr(Sr,e)),_?.events.emit(`floating.closed`,e)}):t&&(v.openChangeTimeout.clear(),m.setOpen(!1,kr(Sr,e)),_?.events.emit(`floating.closed`,e))}let t=c.current??(u?m.select(`domReferenceElement`):null);if(!V(t))return;function r(e){if(v.openChangeTimeout.clear(),v.blockMouseMove=!1,a&&!rl(v.pointerType))return;let t=td(S.current),n=ed(x.current,`open`,v.pointerType),r=yr(e),i=e.currentTarget??null,o=m.select(`domReferenceElement`),s=i;if(V(r)&&!m.context.triggerElements.hasElement(r)){for(let e of m.context.triggerElements.elements())if(H(e,r)){s=e;break}}V(i)&&V(o)&&!m.context.triggerElements.hasElement(i)&&H(i,o)&&(s=o);let c=s==null?!1:O(o,s,r),l=m.select(`open`),u=T.current?.()??m.select(`transitionStatus`)===`ending`,d=!l&&u&&y.current,f=!c&&V(s)&&V(o)&&H(o,s)&&d,p=t>0&&!n,h=c&&(l||d)||f,g=!l||c;if(h){D()&&m.setOpen(!0,kr(Sr,e,s));return}p||(n?v.openChangeTimeout.start(n,()=>{g&&D()&&m.setOpen(!0,kr(Sr,e,s))}):g&&D()&&m.setOpen(!0,kr(Sr,e,s)))}function i(t){if(E()){A();return}k();let n=jr(m.select(`domReferenceElement`));v.restTimeout.clear(),v.restTimeoutPending=!1;let r=h.current.floatingContext??d?.();if(!Uc(t.relatedTarget,m.context.triggerElements)){if(b.current&&r){m.select(`open`)||v.openChangeTimeout.clear();let i=c.current;v.handler=b.current({...r,tree:_,x:t.clientX,y:t.clientY,onClose(){A(),k(),C.current&&!E()&&i===m.select(`domReferenceElement`)&&e(t,!0)}}),n.addEventListener(`mousemove`,v.handler),v.handler(t);return}(v.pointerType!==`touch`||!H(m.select(`floatingElement`),t.relatedTarget))&&e(t)}}return s?sd(X(t,`mousemove`,r,{once:!0}),X(t,`mouseenter`,r),X(t,`mouseleave`,i)):sd(X(t,`mouseenter`,r),X(t,`mouseleave`,i))},[k,A,h,x,m,n,b,v,u,O,E,a,s,S,c,_,C,d,T,D]),U.useMemo(()=>{if(!n)return;function e(e){v.pointerType=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,n=e.currentTarget,r=m.select(`domReferenceElement`),i=m.select(`open`),o=O(r,n,e.target);if(a&&!rl(v.pointerType))return;if(i&&o&&v.handleCloseOptions?.blockPointerEvents){let e=m.select(`floatingElement`);e&&am(v,{scopeElement:v.handleCloseOptions?.getScope?.()??n.ownerDocument.body,referenceElement:n,floatingElement:e})}let s=td(S.current);if(i&&!o||s===0||!o&&v.restTimeoutPending&&e.movementX**2+e.movementY**2<2)return;v.restTimeout.clear();function c(){if(v.restTimeoutPending=!1,E())return;let e=m.select(`open`);!v.blockMouseMove&&(!e||o)&&D()&&m.setOpen(!0,kr(Sr,t,n))}v.pointerType===`touch`?Tu.flushSync(()=>{c()}):o&&i?c():(v.restTimeoutPending=!0,v.restTimeout.start(s,c))}}},[n,v,E,O,a,m,S,D])}var um=.1,dm=um*um,fm=.5;function pm(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function mm(e,t,n,r,i,a,o,s,c,l){let u=!1;return pm(e,t,n,r,i,a)&&(u=!u),pm(e,t,i,a,o,s)&&(u=!u),pm(e,t,o,s,c,l)&&(u=!u),pm(e,t,c,l,n,r)&&(u=!u),u}function hm(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function gm(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function _m(e={}){let{blockPointerEvents:t=!1}=e,n=new mu,r=({x:e,y:t,placement:r,elements:i,onClose:a,nodeId:o,tree:s})=>{let c=r?.split(`-`)[0],l=!1,u=null,d=null,f=typeof performance<`u`?performance.now():0;function p(e,t){let n=performance.now(),r=n-f;if(u===null||d===null||r===0)return u=e,d=t,f=n,!1;let i=e-u,a=t-d,o=i*i+a*a,s=r*r*dm;return u=e,d=t,f=n,o0)}function b(){y()||m()}if(y())return;let x=a.getBoundingClientRect(),S=u.getBoundingClientRect(),C=e>S.right-S.width/2,w=t>S.bottom-S.height/2,T=S.width>x.width,E=S.height>x.height,D=(T?x:S).left,O=(T?x:S).right,k=(E?x:S).top,A=(E?x:S).bottom;if(c===`top`&&t>=x.bottom-1||c===`bottom`&&t<=x.top+1||c===`left`&&e>=x.right-1||c===`right`&&e<=x.left+1){b();return}let j=!1;switch(c){case`top`:j=gm(d,f,D,x.top+1,O,S.bottom-1);break;case`bottom`:j=gm(d,f,D,S.top+1,O,x.bottom-1);break;case`left`:j=gm(d,f,S.right-1,A,x.left+1,k);break;case`right`:j=gm(d,f,x.right-1,A,S.left+1,k);break;default:}if(j)return;if(l&&!hm(d,f,x)){b();return}if(!g&&p(d,f)){b();return}let M=!1;switch(c){case`top`:{let n=T?fm/2:fm*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t+fm+1,o=C||T?S.bottom-fm:S.top,s=C?T?S.bottom-fm:S.top:S.bottom-fm;M=mm(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=T?fm/2:fm*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t-fm,o=C||T?S.top+fm:S.bottom,s=C?T?S.top+fm:S.bottom:S.top+fm;M=mm(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=E?fm/2:fm*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e+fm+1,o=w||E?S.right-fm:S.left,s=w?E?S.right-fm:S.left:S.right-fm;M=mm(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=E?fm/2:fm*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e-fm,o=w||E?S.left+fm:S.right,s=w?E?S.left+fm:S.right:S.left+fm;M=mm(d,f,a,r,a,i,o,S.top,s,S.bottom);break}default:}M?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}var vm=function(e){return e.nestedDialogs=`--nested-dialogs`,e}({}),ym=function(e){return e[e.open=zu.open]=`open`,e[e.closed=zu.closed]=`closed`,e[e.startingStyle=zu.startingStyle]=`startingStyle`,e[e.endingStyle=zu.endingStyle]=`endingStyle`,e.nested=`data-nested`,e.nestedDialogOpen=`data-nested-dialog-open`,e}({}),bm=U.createContext(void 0);function xm(){let e=U.useContext(bm);if(e===void 0)throw Error(Gt(26));return e}var Sm=`ArrowUp`,Cm=`ArrowDown`,wm=`ArrowLeft`,Tm=`ArrowRight`,Em=`Home`,Dm=new Set([wm,Tm]),Om=new Set([wm,Tm,Em,`End`]),km=new Set([Sm,Cm]),Am=new Set([Sm,Cm,Em,`End`]),jm=new Set([...Dm,...km]),Mm=new Set([...jm,Em,`End`]),Nm=new Set([`Shift`,`Control`,`Alt`,`Meta`]);function Pm(e){return er(e)&&e.tagName===`INPUT`}function Fm(e){return!!(Pm(e)&&e.selectionStart!=null||er(e)&&e.tagName===`TEXTAREA`)}function Im(e,t,n,r){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,a=e.scrollTop,o=e.clientWidthe.scrollLeft+e.clientWidth-a.scrollPaddingRight?i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight:r-o.scrollMarginLefte.scrollLeft+e.clientWidth-a.scrollPaddingRight&&(i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight))}if(s&&r!==`horizontal`){let n=Lm(e,t,`top`),r=Rm(e),i=Rm(t);n-i.scrollMarginTope.scrollTop+e.clientHeight-r.scrollPaddingBottom&&(a=n+t.offsetHeight+i.scrollMarginBottom-e.clientHeight+r.scrollPaddingBottom)}e.scrollTo({left:i,top:a,behavior:`auto`})}function Lm(e,t,n){let r=n===`left`?`offsetLeft`:`offsetTop`,i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);)t=t.offsetParent;return i}function Rm(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}var zm={...Ju,...wu,nestedDialogOpen(e){return e?{[ym.nestedDialogOpen]:``}:null}},Bm=U.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,initialFocus:o,...s}=e,{store:c}=Ru(),l=c.useState(`descriptionElementId`),u=c.useState(`disablePointerDismissal`),d=c.useState(`floatingRootContext`),f=c.useState(`popupProps`),p=c.useState(`modal`),m=c.useState(`mounted`),h=c.useState(`nested`),g=c.useState(`nestedOpenDialogCount`),_=c.useState(`open`),v=c.useState(`openMethod`),y=c.useState(`titleElementId`),b=c.useState(`transitionStatus`),x=c.useState(`role`),S=d.useState(`floatingId`),C=s.id??S;xm(),Du({open:_,ref:c.context.popupRef,onComplete(){_&&c.context.onOpenChangeComplete?.(!0)}});function w(e){return e===`touch`?c.context.popupRef.current:!0}let T=o===void 0?w:o,E=g>0,D=c.useStateSetter(`popupElement`),O=Vt(`div`,e,{state:{open:_,nested:h,transitionStatus:b,nestedDialogOpen:E},props:[f,{id:C,"aria-labelledby":y??void 0,"aria-describedby":l??void 0,role:x,...Np,hidden:!m,onKeyDown(e){Mm.has(e.key)&&e.stopPropagation()},style:{[vm.nestedDialogs]:g}},s],ref:[t,c.context.popupRef,D],stateAttributesMapping:zm});return(0,W.jsx)(Xd,{context:d,openInteractionType:v,disabled:!m,closeOnFocusOut:!u,initialFocus:T,returnFocus:a,modal:p!==!1,restoreFocus:`popup`,children:O})});function Vm(e){return Ut(19)?e:e?`true`:void 0}var Hm=U.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,W.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})}),Um=U.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i}=Ru(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,W.jsx)(bm.Provider,{value:n,children:(0,W.jsxs)(Id,{ref:t,...r,children:[a&&o===!0&&(0,W.jsx)(Hm,{ref:i.context.internalBackdropRef,inert:Vm(!s)}),e.children]})}):null});function Wm(e){let t=U.useRef(!0);t.current&&(t.current=!1,e())}var Gm={},Km={},qm=``;function Jm(e){if(typeof document>`u`)return!1;let t=jr(e);return $n(t).innerWidth-t.documentElement.clientWidth>0}function Ym(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=jr(e),n=t.documentElement,r=t.body,i=Jn(n)?n:r,a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function Xm(e){let t=jr(e),n=t.documentElement,r=t.body,i=Jn(n)?n:r,a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function Zm(e){let t=jr(e),n=t.documentElement,r=t.body,i=$n(n),a=0,o=0,s=!1,c=vu.create();if(Oc&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,Gm={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},qm=n.style.scrollBehavior,Km={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=Jn(n)?n:r;if(s=Ym(e),s){n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`;return}Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflow:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`}function u(){Object.assign(n.style,Gm),Object.assign(r.style,Km),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=qm)}function d(){u(),c.request(l)}l();let f=X(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var Qm=new class{lockCount=0;restore=null;timeoutLock=mu.create();timeoutUnlock=mu.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=jr(e).documentElement,n=$n(t).getComputedStyle(t).overflowY;if(n===`hidden`||n===`clip`){this.restore=Ht;return}let r=kc||!Jm(e);this.restore=r?Xm(e):Zm(e)}};function $m(e=!0,t=null){B(()=>{if(e)return Qm.acquire(t)},[e,t])}function eh(e){let{store:t,parentContext:n,actionsRef:r,isDrawer:i}=e,a=t.useState(`open`);Vp(t,a),Rp(t);let{forceUnmount:o}=zp(a,t),s=U.useCallback(()=>{t.setOpen(!1,kr(Or))},[t]);return U.useImperativeHandle(r,()=>({unmount:o,close:s}),[o,s]),{parentContext:n,isDrawer:i}}function th({store:e,dialogRoot:t}){let{parentContext:n,isDrawer:r}=t,i=e.useState(`open`),a=e.useState(`disablePointerDismissal`),o=e.useState(`modal`),s=e.useState(`popupElement`),c=e.useState(`floatingRootContext`),[l,u]=U.useState(0),[d,f]=U.useState(0),p=l===0,m=rf(c,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?`intentional`:{mouse:o===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||`button`in t&&t.button!==0||`touches`in t&&t.touches.length!==1)return!1;let n=yr(t);if(p&&!a){let t=n;return o&&(e.context.internalBackdropRef.current||e.context.backdropRef.current)?e.context.internalBackdropRef.current===t||e.context.backdropRef.current===t||H(t,s)&&!t?.hasAttribute(`data-base-ui-portal`):!0}return!1},escapeKey:p});return $m(i&&o===!0,s),e.useContextCallback(`onNestedDialogOpen`,(e,t)=>{u(e),f(t)}),e.useContextCallback(`onNestedDialogClose`,()=>{u(0),f(0)}),U.useEffect(()=>(n?.onNestedDialogOpen&&i&&n.onNestedDialogOpen(l+1,d+ +!!r),n?.onNestedDialogClose&&!i&&n.onNestedDialogClose(),()=>{n?.onNestedDialogClose&&i&&n.onNestedDialogClose()}),[r,i,l,d,n]),Bp(e,{activeTriggerProps:m.reference??Lt,inactiveTriggerProps:m.trigger??Lt,popupProps:U.useMemo(()=>zt(Np,m.floating),[m.floating]),nestedOpenDialogCount:l,nestedOpenDrawerCount:d}),null}var nh={...Zp,modal:Q(e=>e.modal),nested:Q(e=>e.nested),nestedOpenDialogCount:Q(e=>e.nestedOpenDialogCount),nestedOpenDrawerCount:Q(e=>e.nestedOpenDrawerCount),disablePointerDismissal:Q(e=>e.disablePointerDismissal),openMethod:Q(e=>e.openMethod),descriptionElementId:Q(e=>e.descriptionElementId),titleElementId:Q(e=>e.titleElementId),viewportElement:Q(e=>e.viewportElement),role:Q(e=>e.role)},rh=class e extends kp{constructor(e,t,n=!1){let r=new Hp,i=ih(e);i.floatingRootContext=Gp(r,t,n),super(i,{popupRef:U.createRef(),backdropRef:U.createRef(),internalBackdropRef:U.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:r,onOpenChange:void 0,onOpenChangeComplete:void 0},nh)}setOpen=(e,t)=>{if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let n={open:e};Ip(n,e,t.trigger),this.update(n)};static useStore(t,n){return Pp(t,(t,r)=>new e(n,t,r),!0).store}};function ih(e={}){return{...Wp(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:`dialog`,...e}}function ah(e,t=`dialog`){let{children:n,open:r,defaultOpen:i=!1,onOpenChange:a,onOpenChangeComplete:o,disablePointerDismissal:s=!1,modal:c=!0,actionsRef:l,handle:u,triggerId:d,defaultTriggerId:f=null}=e,p=t===`drawer`,m=t===`alert-dialog`,h=m?!0:c,g=m||s,_=m?`alertdialog`:`dialog`,v=Ru(!0),y={modal:h,disablePointerDismissal:g,nested:!!v,role:_},b=rh.useStore(u?.store,{open:i,openProp:r,activeTriggerId:f,triggerIdProp:d,...y});Wm(()=>{let e=r===void 0&&b.state.open===!1&&i===!0?{open:!0,activeTriggerId:f}:null;m?b.update(e?{...y,...e}:y):e&&b.update(e)}),b.useControlledProp(`openProp`,r),b.useControlledProp(`triggerIdProp`,d),b.useSyncedValues(y),b.useContextCallback(`onOpenChange`,a),b.useContextCallback(`onOpenChangeComplete`,o);let x=b.useState(`open`),S=b.useState(`mounted`),C=b.useState(`payload`),w=eh({store:b,actionsRef:l,parentContext:v?.store.context,isDrawer:p}),T=x||S,E=U.useMemo(()=>({store:b}),[b]);return(0,W.jsx)(Iu.Provider,{value:!1,children:(0,W.jsxs)(Lu.Provider,{value:E,children:[T&&(0,W.jsx)(th,{store:b,dialogRoot:w}),typeof n==`function`?n({payload:C}):n]})})}function oh(e){return ah(e,U.useContext(Iu)?`drawer`:`dialog`)}var sh=U.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{store:s}=Ru(),c=_r(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),Vt(`h2`,e,{ref:t,props:[{id:c},o]})});function ch(e){let t=(0,xs.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,W.jsx)(oh,{"data-slot":`sheet`,...n}),t[2]=n,t[3]=r),r}function lh(e){let t=(0,xs.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,W.jsx)(Um,{"data-slot":`sheet-portal`,...n}),t[2]=n,t[3]=r),r}function uh(e){let t=(0,xs.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=un(`data-closed:fade-out-0 data-open:fade-in-0 data-closed:animate-out data-open:animate-in fixed inset-0 z-50 bg-black/80 duration-100 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(Xu,{className:i,"data-slot":`sheet-overlay`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function dh(e){let t=(0,xs.c)(17),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:r,children:n,side:a,showCloseButton:o,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=a===void 0?`right`:a,c=o===void 0?!0:o,l;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,W.jsx)(uh,{}),t[6]=l):l=t[6];let u;t[7]===r?u=t[8]:(u=un(`data-[side=right]:data-closed:slide-out-to-right-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=top]:data-closed:slide-out-to-top-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:fade-out-0 data-open:fade-in-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=bottom]:data-open:slide-in-from-bottom-10 data-closed:animate-out data-open:animate-in fixed z-50 flex flex-col bg-background bg-clip-padding text-xs/relaxed shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm`,r),t[7]=r,t[8]=u);let d;t[9]===c?d=t[10]:(d=c&&(0,W.jsxs)(Zu,{"data-slot":`sheet-close`,render:(0,W.jsx)(dr,{className:`absolute top-4 right-4`,size:`icon-sm`,variant:`ghost`}),children:[(0,W.jsx)(fc,{}),(0,W.jsx)(`span`,{className:`sr-only`,children:`Close`})]}),t[9]=c,t[10]=d);let f;return t[11]!==n||t[12]!==i||t[13]!==s||t[14]!==u||t[15]!==d?(f=(0,W.jsxs)(lh,{children:[l,(0,W.jsxs)(Bm,{className:u,"data-side":s,"data-slot":`sheet-content`,...i,children:[n,d]})]}),t[11]=n,t[12]=i,t[13]=s,t[14]=u,t[15]=d,t[16]=f):f=t[16],f}function fh(e){let t=(0,xs.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=un(`flex flex-col gap-1.5 p-6`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(`div`,{className:i,"data-slot":`sheet-header`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function ph(e){let t=(0,xs.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=un(`text-sm font-medium text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(sh,{className:i,"data-slot":`sheet-title`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function mh(e){let t=(0,xs.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=un(`text-xs/relaxed text-muted-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(Qu,{className:i,"data-slot":`sheet-description`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var hh=U.createContext(void 0);function gh(e){let t=U.useContext(hh);if(t===void 0&&!e)throw Error(Gt(72));return t}var _h={...Zp,disabled:Q(e=>e.disabled),instantType:Q(e=>e.instantType),isInstantPhase:Q(e=>e.isInstantPhase),trackCursorAxis:Q(e=>e.trackCursorAxis),disableHoverablePopup:Q(e=>e.disableHoverablePopup),lastOpenChangeReason:Q(e=>e.openChangeReason),closeOnClick:Q(e=>e.closeOnClick),closeDelay:Q(e=>e.closeDelay),hasViewport:Q(e=>e.hasViewport)},vh=class e extends kp{constructor(e,t,n=!1){let r=new Hp,i={...yh(),...e};i.floatingRootContext=Gp(r,t,n),super(i,{popupRef:U.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:r},_h)}setOpen=(e,t)=>{let n=t.reason,r=n===Sr,i=e&&n===`trigger-focus`,a=!e&&(n===`trigger-press`||n===`escape-key`);if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let o=()=>{let r={open:e,openChangeReason:n};i?r.instantType=`focus`:a?r.instantType=`dismiss`:n===`trigger-hover`&&(r.instantType=void 0),Ip(r,e,t.trigger),this.update(r)};r?Tu.flushSync(o):o()};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,kr(xr,e))}static useStore(t,n){return Pp(t,(t,r)=>new e(n,t,r)).store}};function yh(){return{...Wp(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}var bh=vp(function(e){let{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:i=!1,trackCursorAxis:a=`none`,actionsRef:o,onOpenChange:s,onOpenChangeComplete:c,handle:l,triggerId:u,defaultTriggerId:d=null,children:f}=e,p=vh.useStore(l?.store,{open:n,openProp:r,activeTriggerId:d,triggerIdProp:u});Wm(()=>{r===void 0&&p.state.open===!1&&n===!0&&p.update({open:!0,activeTriggerId:d})}),p.useControlledProp(`openProp`,r),p.useControlledProp(`triggerIdProp`,u),p.useContextCallback(`onOpenChange`,s),p.useContextCallback(`onOpenChangeComplete`,c);let m=p.useState(`open`),h=!t&&m,g=p.useState(`activeTriggerId`),_=p.useState(`mounted`),v=p.useState(`payload`);p.useSyncedValues({trackCursorAxis:a,disableHoverablePopup:i}),p.useSyncedValue(`disabled`,t),Rp(p);let{forceUnmount:y,transitionStatus:b}=zp(h,p),x=p.useState(`isInstantPhase`),S=p.useState(`instantType`),C=p.useState(`lastOpenChangeReason`),w=U.useRef(null);B(()=>{m&&t&&p.setOpen(!1,kr(Cr))},[m,t,p]),B(()=>{b===`ending`&&C===`none`||b!==`ending`&&x?(S!==`delay`&&(w.current=S),p.set(`instantType`,`delay`)):w.current!==null&&(p.set(`instantType`,w.current),w.current=null)},[b,x,C,S,p]),B(()=>{h&&(g??p.set(`payload`,void 0))},[p,g,h]);let T=U.useCallback(()=>{p.setOpen(!1,kr(Or))},[p]);U.useImperativeHandle(o,()=>({unmount:y,close:T}),[y,T]);let E=h||_||!t&&a!==`none`;return(0,W.jsxs)(hh.Provider,{value:p,children:[E&&(0,W.jsx)(xh,{store:p,disabled:t,trackCursorAxis:a}),typeof f==`function`?f({payload:v}):f]})});function xh({store:e,disabled:t,trackCursorAxis:n}){let r=e.useState(`floatingRootContext`),i=rf(r,{enabled:!t,referencePress:()=>e.select(`closeOnClick`)}),a=$d(r,{enabled:!t&&n!==`none`,axis:n===`none`?void 0:n});return Bp(e,{activeTriggerProps:U.useMemo(()=>zt(a.reference,i.reference),[a.reference,i.reference]),inactiveTriggerProps:U.useMemo(()=>zt(a.trigger,i.trigger),[a.trigger,i.trigger]),popupProps:U.useMemo(()=>zt(Np,a.floating,i.floating),[a.floating,i.floating])}),null}var Sh=U.createContext(void 0);function Ch(){return U.useContext(Sh)}var wh=function(e){return e[e.popupOpen=Bu.popupOpen]=`popupOpen`,e.triggerDisabled=`data-trigger-disabled`,e}({}),Th=`data-base-ui-tooltip-trigger`;function Eh(e){if(`composedPath`in e){let t=e.composedPath();for(let e=0;em.select(`transitionStatus`)===`ending`,shouldOpen(){return!N.current}}),F=tm(v,{enabled:!A}).reference,oe=e=>{let t=N.current,n=Eh(e),r=ie(n),i=y.current,a=i&&n&&H(i,n);if(r&&m.select(`open`)&&m.select(`lastOpenChangeReason`)===`trigger-hover`){m.setOpen(!1,kr(Sr,e));return}if(t&&!r&&a&&!j.current&&!m.select(`open`)&&i&&rl(te.current)){let t=()=>{!N.current&&!j.current&&!m.select(`open`)&&m.setOpen(!0,kr(Sr,e,i))},n=ne();n===0?(P.clear(),t()):P.start(n,t)}},se=m.useState(`triggerProps`,C);return Vt(`button`,e,{state:{open:_},ref:[t,S,y],props:[ae,F,C||M!==`none`?se:void 0,{onMouseOver(e){oe(e.nativeEvent)},onFocus(e){re(Eh(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){N.current=!1,P.clear(),te.current=void 0},onPointerEnter(e){te.current=e.pointerType},onPointerDown(e){te.current=e.pointerType,m.set(`closeOnClick`,l),l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},onClick(e){l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},id:h,[wh.triggerDisabled]:A?``:void 0,[Th]:A?void 0:``},f],stateAttributesMapping:Ku})}),kh=U.createContext(void 0);function Ah(){let e=U.useContext(kh);if(e===void 0)throw Error(Gt(70));return e}var jh=U.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{portalNode:c,portalSubtree:l}=Fd({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,W.jsxs)(U.Fragment,{children:[l,c&&Tu.createPortal(n,c)]})}),Mh=U.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return gh().useState(`mounted`)||n?(0,W.jsx)(kh.Provider,{value:n,children:(0,W.jsx)(jh,{ref:t,...r})}):null}),Nh=U.createContext(void 0);function Ph(){let e=U.useContext(Nh);if(e===void 0)throw Error(Gt(71));return e}var Fh=U.createContext(void 0);function Ih(){return U.useContext(Fh)?.direction??`ltr`}var Lh=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0,offsetParent:d=`real`}=pl(e,t)||{};if(l==null)return{};let f=jl(u),p={x:n,y:r},m=yl(i),h=_l(m),g=await o.getDimensions(l),_=m===`y`,v=_?`top`:`left`,y=_?`bottom`:`right`,b=_?`clientHeight`:`clientWidth`,x=a.reference[h]+a.reference[m]-p[m]-a.floating[h],S=p[m]-a.reference[m],C=d===`real`?await o.getOffsetParent?.(l):s.floating,w=s.floating[b]||a.floating[h];(!w||!await o.isElement?.(C))&&(w=s.floating[b]||a.floating[h]);let T=x/2-S/2,E=w/2-g[h]/2-1,D=Math.min(f[v],E),O=Math.min(f[y],E),k=D,A=w-g[h]-O,j=w/2-g[h]/2+T,M=fl(k,j,A),ee=!c.arrow&&hl(i)!=null&&j!==M&&a.reference[h]/2-(j({...Lh(e),options:[e,t]}),zh={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0;return{data:{referenceHidden:(await pp().fn(e)).data?.referenceHidden||a}}}},Bh={sideX:`left`,sideY:`top`},Vh={name:`adaptiveOrigin`,async fn(e){let{x:t,y:n,rects:{floating:r},elements:{floating:i},platform:a,strategy:o,placement:s}=e,c=$n(i),l=c.getComputedStyle(i);if(!(l.transitionDuration!==`0s`&&l.transitionDuration!==``))return{x:t,y:n,data:Bh};let u=await a.getOffsetParent?.(i),d={width:0,height:0};if(o===`fixed`&&c?.visualViewport)d={width:c.visualViewport.width,height:c.visualViewport.height};else if(u===c){let e=jr(i);d={width:e.documentElement.clientWidth,height:e.documentElement.clientHeight}}else await a.isElement?.(u)&&(d=await a.getDimensions(u));let f=ml(s),p=t,m=n;f===`left`&&(p=d.width-(t+r.width)),f===`top`&&(m=d.height-(n+r.height));let h=f===`left`?`right`:Bh.sideX,g=f===`top`?`bottom`:Bh.sideY;return{x:p,y:m,data:{sideX:h,sideY:g}}}};function Hh(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function Uh(e,t,n){let{rects:r,placement:i}=e;return{side:Hh(t,ml(i),n),align:hl(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function Wh(e){let{anchor:t,positionMethod:n=`absolute`,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,collisionBoundary:s,collisionPadding:c=5,sticky:l=!1,arrowPadding:u=5,disableAnchorTracking:d=!1,inline:f,keepMounted:p=!1,floatingRootContext:m,mounted:h,collisionAvoidance:g,shiftCrossAxis:_=!1,nodeId:v,adaptiveOrigin:y,lazyFlip:b=!1,externalTree:x}=e,[S,C]=U.useState(null);!h&&S!==null&&C(null);let w=g.side||`flip`,T=g.align||`flip`,E=g.fallbackAxisSide||`end`,D=typeof t==`function`?t:void 0,O=ur(D),k=D?O:t,A=cd(t),j=cd(h),M=Ih()===`rtl`,ee=S||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":M?`left`:`right`,"inline-start":M?`right`:`left`}[r],N=a===`center`?ee:`${ee}-${a}`,P=c,te=+(r===`bottom`),ne=+(r===`top`),re=+(r===`right`),ie=+(r===`left`);typeof P==`number`?P={top:P+te,right:P+ie,bottom:P+ne,left:P+re}:P&&={top:(P.top||0)+te,right:(P.right||0)+ie,bottom:(P.bottom||0)+ne,left:(P.left||0)+re};let ae={boundary:s===`clipping-ancestors`?`clippingAncestors`:s,padding:P},F=U.useRef(null),oe=cd(i),se=cd(o),I=typeof i==`function`?0:i,ce=typeof o==`function`?0:o,le=[];f&&le.push(f),le.push(cp(e=>{let t=Uh(e,r,M),n=typeof oe.current==`function`?oe.current(t):oe.current,i=typeof se.current==`function`?se.current(t):se.current;return{mainAxis:n,crossAxis:i,alignmentAxis:i}},[I,ce,M,r]));let ue=T===`none`&&w!==`shift`,de=!ue&&(l||_||w===`shift`),fe=w===`none`?null:dp({...ae,padding:{top:P.top+1,right:P.right+1,bottom:P.bottom+1,left:P.left+1},mainAxis:!_&&w===`flip`,crossAxis:T===`flip`?`alignment`:!1,fallbackAxisSideDirection:E}),pe=ue?null:lp(e=>{let t=jr(e.elements.floating).documentElement;return{...ae,rootBoundary:_?{x:0,y:0,width:t.clientWidth,height:t.clientHeight}:void 0,mainAxis:T!==`none`,crossAxis:de,limiter:l||_?void 0:up(e=>{if(!F.current)return{};let{width:t,height:n}=F.current.getBoundingClientRect(),r=vl(ml(e.placement)),i=r===`y`?t:n,a=r===`y`?P.left+P.right:P.top+P.bottom;return{offset:i/2+a/2}})}},[ae,l,_,P,T]);w===`shift`||T===`shift`||a===`center`?le.push(pe,fe):le.push(fe,pe),le.push(fp({...ae,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!j.current)return;let i=e.style;i.setProperty(`--available-width`,`${t}px`),i.setProperty(`--available-height`,`${n}px`);let a=$n(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(`--anchor-width`,`${u}px`),i.setProperty(`--anchor-height`,`${d}px`)}}),Rh(e=>({element:F.current||jr(e.elements.floating).createElement(`div`),padding:u,offsetParent:`floating`}),[u]),{name:`transformOrigin`,fn(e){let{elements:t,middlewareData:n,placement:a,rects:o,y:s}=e,c=ml(a),l=vl(c),u=F.current,d=n.arrow?.x||0,f=n.arrow?.y||0,p=u?.clientWidth||0,m=u?.clientHeight||0,h=d+p/2,g=f+m/2,_=Math.abs(n.shift?.y||0),v=o.reference.height/2,y=typeof i==`function`?i(Uh(e,r,M)):i,b=_>y,x={top:`${h}px calc(100% + ${y}px)`,bottom:`${h}px ${-y}px`,left:`calc(100% + ${y}px) ${g}px`,right:`${-y}px ${g}px`}[c],S=`${h}px ${o.reference.y+v-s}px`;return t.floating.style.setProperty(`--transform-origin`,de&&l===`y`&&b?S:x),{}}},zh,y),B(()=>{!h&&m&&m.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[h,m]);let me=U.useMemo(()=>({elementResize:!d&&typeof ResizeObserver<`u`,layoutShift:!d&&typeof IntersectionObserver<`u`}),[d]),{refs:he,elements:ge,x:_e,y:ve,middlewareData:ye,update:be,placement:xe,context:Se,isPositioned:Ce,floatingStyles:we}=$p({rootContext:m,open:p?h:void 0,placement:N,middleware:le,strategy:n,whileElementsMounted:p?void 0:(...e)=>Jf(...e,me),nodeId:v,externalTree:x}),{sideX:Te,sideY:Ee}=ye.adaptiveOrigin||Bh,De=Ce?n:`fixed`,Oe=U.useMemo(()=>{let e=y?{position:De,[Te]:_e,[Ee]:ve}:{position:De,...we};return Ce||(e.opacity=0),e},[y,De,Te,_e,Ee,ve,we,Ce]),ke=U.useRef(null);B(()=>{if(!h)return;let e=A.current,t=typeof e==`function`?e():e,n=(Gh(t)?t.current:t)||null;n!==ke.current&&(he.setPositionReference(n),ke.current=n)},[h,he,k,A]),U.useEffect(()=>{if(!h)return;let e=A.current;typeof e!=`function`&&Gh(e)&&e.current!==ke.current&&(he.setPositionReference(e.current),ke.current=e.current)},[h,he,k,A]),U.useEffect(()=>{if(p&&h&&ge.domReference&&ge.floating)return Jf(ge.domReference,ge.floating,be,me)},[p,h,ge,be,me]);let Ae=ml(xe),je=Hh(r,Ae,M),Me=hl(xe)||`center`,Ne=!!ye.hide?.referenceHidden;B(()=>{b&&h&&Ce&&C(Ae)},[b,h,Ce,Ae]);let Pe=U.useMemo(()=>({position:`absolute`,top:ye.arrow?.y,left:ye.arrow?.x}),[ye.arrow]),Fe=ye.arrow?.centerOffset!==0;return U.useMemo(()=>({positionerStyles:Oe,arrowStyles:Pe,arrowRef:F,arrowUncentered:Fe,side:je,align:Me,physicalSide:Ae,anchorHidden:Ne,refs:he,context:Se,isPositioned:Ce,update:be}),[Oe,Pe,F,Fe,je,Me,Ae,Ne,he,Se,Ce,be])}function Gh(e){return e!=null&&`current`in e}function Kh(e){return e===`starting`?Od:Lt}function qh(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),Vt(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},Kh(r),i],stateAttributesMapping:Ju})}var Jh=U.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`top`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=Ad,style:g,..._}=e,v=gh(),y=Ah(),b=v.useState(`open`),x=v.useState(`mounted`),S=v.useState(`trackCursorAxis`),C=v.useState(`disableHoverablePopup`),w=v.useState(`floatingRootContext`),T=v.useState(`instantType`),E=v.useState(`transitionStatus`),D=Wh({anchor:i,positionMethod:a,floatingRootContext:w,mounted:x,side:o,sideOffset:c,align:s,alignOffset:l,collisionBoundary:u,collisionPadding:d,sticky:p,arrowPadding:f,disableAnchorTracking:m,keepMounted:y,collisionAvoidance:h,adaptiveOrigin:v.useState(`hasViewport`)?Vh:void 0}),O=qh(e,U.useMemo(()=>({open:b,side:D.side,align:D.align,anchorHidden:D.anchorHidden,instant:S===`none`?T:`tracking-cursor`}),[b,D.side,D.align,D.anchorHidden,S,T]),{styles:D.positionerStyles,transitionStatus:E,props:_,refs:[t,v.useStateSetter(`positionerElement`)],hidden:!x,inert:!b||S===`both`||C});return(0,W.jsx)(Nh.Provider,{value:D,children:O})}),Yh={...Ju,...wu},Xh=U.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=gh(),{side:s,align:c}=Ph(),l=o.useState(`open`),u=o.useState(`instantType`),d=o.useState(`transitionStatus`),f=o.useState(`popupProps`),p=o.useState(`floatingRootContext`),m=o.useState(`disabled`),h=o.useState(`closeDelay`);Du({open:l,ref:o.context.popupRef,onComplete(){l&&o.context.onOpenChangeComplete?.(!0)}}),sm(p,{enabled:!m,closeDelay:h});let g=o.useStateSetter(`popupElement`);return Vt(`div`,e,{state:{open:l,side:s,align:c,instant:u,transitionStatus:d},ref:[t,o.context.popupRef,g],props:[f,Kh(d),a],stateAttributesMapping:Yh})}),Zh=U.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=gh(),{arrowRef:s,side:c,align:l,arrowUncentered:u,arrowStyles:d}=Ph();return Vt(`div`,e,{state:{open:o.useState(`open`),side:c,align:l,uncentered:u,instant:o.useState(`instantType`)},ref:[t,s],props:[{style:d,"aria-hidden":!0},a],stateAttributesMapping:Ju})}),Qh=function(e){let{delay:t,closeDelay:n,timeout:r=400}=e,i=U.useMemo(()=>({delay:t,closeDelay:n}),[t,n]),a=U.useMemo(()=>({open:t,close:n}),[t,n]);return(0,W.jsx)(Sh.Provider,{value:i,children:(0,W.jsx)(ad,{delay:a,timeoutMs:r,children:e.children})})};function $h(e){let t=(0,xs.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({delay:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i=r===void 0?0:r,a;return t[3]!==i||t[4]!==n?(a=(0,W.jsx)(Qh,{"data-slot":`tooltip-provider`,delay:i,...n}),t[3]=i,t[4]=n,t[5]=a):a=t[5],a}function eg(e){let t=(0,xs.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,W.jsx)($h,{children:(0,W.jsx)(bh,{"data-slot":`tooltip`,...n})}),t[2]=n,t[3]=r),r}function tg(e){let t=(0,xs.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,W.jsx)(Oh,{"data-slot":`tooltip-trigger`,...n}),t[2]=n,t[3]=r),r}function ng(e){let t=(0,xs.c)(21),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({className:r,side:a,sideOffset:o,align:s,alignOffset:c,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=a===void 0?`top`:a,u=o===void 0?4:o,d=s===void 0?`center`:s,f=c===void 0?0:c,p;t[8]===r?p=t[9]:(p=un(`data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=delayed-open]:animate-in data-closed:animate-out data-open:animate-in z-50 w-fit max-w-xs origin-(--transform-origin) rounded-md bg-foreground px-3 py-1.5 text-xs text-background **:data-[slot=kbd]:rounded-md`,r),t[8]=r,t[9]=p);let m;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,W.jsx)(Zh,{className:`z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5`}),t[10]=m):m=t[10];let h;t[11]!==n||t[12]!==i||t[13]!==p?(h=(0,W.jsxs)(Xh,{className:p,"data-slot":`tooltip-content`,...i,children:[n,m]}),t[11]=n,t[12]=i,t[13]=p,t[14]=h):h=t[14];let g;return t[15]!==d||t[16]!==f||t[17]!==l||t[18]!==u||t[19]!==h?(g=(0,W.jsx)(Mh,{children:(0,W.jsx)(Jh,{align:d,alignOffset:f,className:`isolate z-50`,side:l,sideOffset:u,children:h})}),t[15]=d,t[16]=f,t[17]=l,t[18]=u,t[19]=h,t[20]=g):g=t[20],g}var rg=window.matchMedia(`(max-width: 767px)`);function ig(e){return rg.addEventListener(`change`,e),()=>rg.removeEventListener(`change`,e)}function ag(){return rg.matches}function og(){return(0,U.useSyncExternalStore)(ig,ag)}var sg=`sidebar_state`,cg=3600*24*7,lg=`12rem`,ug=`16rem`,dg=`3rem`,fg=`b`,pg=U.createContext(null);function mg(){let e=U.useContext(pg);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function hg(e){let t=(0,xs.c)(36),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({defaultOpen:c,open:i,onOpenChange:o,className:r,style:s,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=c===void 0?!0:c,u=og(),[d,f]=U.useState(!1),[p,m]=U.useState(l),h=i??p,g;t[8]!==h||t[9]!==o?(g=e=>{let t=typeof e==`function`?e(h):e;o?o(t):m(t),document.cookie=`${sg}=${t}; path=/; max-age=${cg}`},t[8]=h,t[9]=o,t[10]=g):g=t[10];let _=g,v;t[11]!==u||t[12]!==_?(v=()=>u?f(_g):_(gg),t[11]=u,t[12]=_,t[13]=v):v=t[13];let y=v,b,x;t[14]===y?(b=t[15],x=t[16]):(b=()=>{let e=e=>{e.key===fg&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),y())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},x=[y],t[14]=y,t[15]=b,t[16]=x),U.useEffect(b,x);let S=h?`expanded`:`collapsed`,C;t[17]!==u||t[18]!==h||t[19]!==d||t[20]!==_||t[21]!==S||t[22]!==y?(C={state:S,open:h,setOpen:_,isMobile:u,openMobile:d,setOpenMobile:f,toggleSidebar:y},t[17]=u,t[18]=h,t[19]=d,t[20]=_,t[21]=S,t[22]=y,t[23]=C):C=t[23];let w=C,T;t[24]===r?T=t[25]:(T=un(`group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar`,r),t[24]=r,t[25]=T);let E;t[26]===s?E=t[27]:(E={"--sidebar-width":lg,"--sidebar-width-icon":dg,...s},t[26]=s,t[27]=E);let D=E,O;t[28]!==n||t[29]!==a||t[30]!==T||t[31]!==D?(O=(0,W.jsx)(`div`,{className:T,"data-slot":`sidebar-wrapper`,style:D,...a,children:n}),t[28]=n,t[29]=a,t[30]=T,t[31]=D,t[32]=O):O=t[32];let k;return t[33]!==w||t[34]!==O?(k=(0,W.jsx)(pg.Provider,{value:w,children:O}),t[33]=w,t[34]=O,t[35]=k):k=t[35],k}function gg(e){return!e}function _g(e){return!e}function vg(e){let t=(0,xs.c)(46),n,r,i,a,o,s;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6]):({side:a,variant:o,collapsible:s,className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s);let c=a===void 0?`left`:a,l=o===void 0?`sidebar`:o,u=s===void 0?`offExamples`:s,{isMobile:d,state:f,openMobile:p,setOpenMobile:m}=mg();if(u===`none`){let e;t[7]===r?e=t[8]:(e=un(`flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground`,r),t[7]=r,t[8]=e);let a;return t[9]!==n||t[10]!==i||t[11]!==e?(a=(0,W.jsx)(`div`,{className:e,"data-slot":`sidebar`,...i,children:n}),t[9]=n,t[10]=i,t[11]=e,t[12]=a):a=t[12],a}if(d){let e;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(e={"--sidebar-width":ug},t[13]=e):e=t[13];let r=e,a;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,W.jsxs)(fh,{className:`sr-only`,children:[(0,W.jsx)(ph,{children:`Sidebar`}),(0,W.jsx)(mh,{children:`Displays the mobile sidebar.`})]}),t[14]=a):a=t[14];let o;t[15]===n?o=t[16]:(o=(0,W.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:n}),t[15]=n,t[16]=o);let s;t[17]!==c||t[18]!==o?(s=(0,W.jsxs)(dh,{className:`w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden`,"data-mobile":`true`,"data-sidebar":`sidebar`,"data-slot":`sidebar`,side:c,style:r,children:[a,o]}),t[17]=c,t[18]=o,t[19]=s):s=t[19];let l;return t[20]!==p||t[21]!==i||t[22]!==m||t[23]!==s?(l=(0,W.jsx)(ch,{onOpenChange:m,open:p,...i,children:s}),t[20]=p,t[21]=i,t[22]=m,t[23]=s,t[24]=l):l=t[24],l}let h=f===`collapsed`?u:``,g=l===`floating`||l===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`,_;t[25]===g?_=t[26]:(_=un(`relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear`,`group-data-[collapsible=offExamples]:w-0`,`group-data-[side=right]:rotate-180`,g),t[25]=g,t[26]=_);let v;t[27]===_?v=t[28]:(v=(0,W.jsx)(`div`,{className:_,"data-slot":`sidebar-gap`}),t[27]=_,t[28]=v);let y=c===`left`?`left-0 group-data-[collapsible=offExamples]:left-[calc(var(--sidebar-width)*-1)]`:`right-0 group-data-[collapsible=offExamples]:right-[calc(var(--sidebar-width)*-1)]`,b=l===`floating`||l===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,x;t[29]!==r||t[30]!==y||t[31]!==b?(x=un(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex`,y,b,r),t[29]=r,t[30]=y,t[31]=b,t[32]=x):x=t[32];let S;t[33]===n?S=t[34]:(S=(0,W.jsx)(`div`,{className:`flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border`,"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,children:n}),t[33]=n,t[34]=S);let C;t[35]!==i||t[36]!==x||t[37]!==S?(C=(0,W.jsx)(`div`,{className:x,"data-slot":`sidebar-container`,...i,children:S}),t[35]=i,t[36]=x,t[37]=S,t[38]=C):C=t[38];let w;return t[39]!==c||t[40]!==f||t[41]!==C||t[42]!==h||t[43]!==v||t[44]!==l?(w=(0,W.jsxs)(`div`,{className:`group peer hidden text-sidebar-foreground md:block`,"data-collapsible":h,"data-side":c,"data-slot":`sidebar`,"data-state":f,"data-variant":l,children:[v,C]}),t[39]=c,t[40]=f,t[41]=C,t[42]=h,t[43]=v,t[44]=l,t[45]=w):w=t[45],w}function yg(e){let t=(0,xs.c)(15),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,onClick:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let{toggleSidebar:a}=mg(),o;t[4]===n?o=t[5]:(o=un(n),t[4]=n,t[5]=o);let s;t[6]!==r||t[7]!==a?(s=e=>{r?.(e),a()},t[6]=r,t[7]=a,t[8]=s):s=t[8];let c,l;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,W.jsx)(nc,{}),l=(0,W.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`}),t[9]=c,t[10]=l):(c=t[9],l=t[10]);let u;return t[11]!==i||t[12]!==o||t[13]!==s?(u=(0,W.jsxs)(dr,{className:o,"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,onClick:s,size:`icon-lg`,variant:`ghost`,...i,children:[c,l]}),t[11]=i,t[12]=o,t[13]=s,t[14]=u):u=t[14],u}function bg(e){let t=(0,xs.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let{toggleSidebar:i}=mg(),a;t[3]===n?a=t[4]:(a=un(`absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border sm:flex`,`in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize`,`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize`,`group-data-[collapsible=offExamples]:translate-x-0 group-data-[collapsible=offExamples]:after:left-full hover:group-data-[collapsible=offExamples]:bg-sidebar`,`[[data-side=left][data-collapsible=offExamples]_&]:-right-2`,`[[data-side=right][data-collapsible=offExamples]_&]:-left-2`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a||t[7]!==i?(o=(0,W.jsx)(`button`,{"aria-label":`Toggle Sidebar`,className:a,"data-sidebar":`rail`,"data-slot":`sidebar-rail`,onClick:i,tabIndex:-1,title:`Toggle Sidebar`,...r}),t[5]=r,t[6]=a,t[7]=i,t[8]=o):o=t[8],o}function xg(e){let t=(0,xs.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=un(`flex flex-col gap-2 p-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(`div`,{className:i,"data-sidebar":`header`,"data-slot":`sidebar-header`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Sg(e){let t=(0,xs.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=un(`flex flex-col gap-2 p-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(`div`,{className:i,"data-sidebar":`footer`,"data-slot":`sidebar-footer`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Cg(e){let t=(0,xs.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=un(`mx-2 w-auto bg-sidebar-border`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(Fu,{className:i,"data-sidebar":`separator`,"data-slot":`sidebar-separator`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function wg(e){let t=(0,xs.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=un(`no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(`div`,{className:i,"data-sidebar":`content`,"data-slot":`sidebar-content`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Tg(e){let t=(0,xs.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=un(`relative flex w-full min-w-0 flex-col px-2 py-1`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(`div`,{className:i,"data-sidebar":`group`,"data-slot":`sidebar-group`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Eg(e){let t=(0,xs.c)(10),n,r,i,a;if(t[0]!==e){let{className:o,render:s,...c}=e;n=s,a=Es,r=`div`,i=zt({className:un(`flex h-8 shrink-0 items-center rounded-md px-2 text-xs text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,o)},c),t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a}else n=t[1],r=t[2],i=t[3],a=t[4];let o;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(o={slot:`sidebar-group-label`,sidebar:`group-label`},t[5]=o):o=t[5];let s;return t[6]!==n||t[7]!==r||t[8]!==i?(s={defaultTagName:r,props:i,render:n,state:o},t[6]=n,t[7]=r,t[8]=i,t[9]=s):s=t[9],a(s)}function Dg(e){let t=(0,xs.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=un(`flex w-full min-w-0 flex-col gap-px`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(`ul`,{className:i,"data-sidebar":`menu`,"data-slot":`sidebar-menu`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Og(e){let t=(0,xs.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=un(`group/menu-item relative`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,W.jsx)(`li`,{className:i,"data-sidebar":`menu-item`,"data-slot":`sidebar-menu-item`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var kg=Wt(`peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-[calc(var(--radius-sm)+2px)] p-2 text-left text-xs ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate`,{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-8 text-xs`,sm:`h-7 text-xs`,lg:`h-12 text-xs group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function Ag(e){let t=(0,xs.c)(15),{render:n,isActive:r,variant:i,size:a,tooltip:o,className:s,...c}=e,l=r===void 0?!1:r,u=i===void 0?`default`:i,d=a===void 0?`default`:a,{isMobile:f,state:p}=mg(),m=zt({className:un(kg({variant:u,size:d}),s)},c),h=o?tg:n,g;t[0]!==l||t[1]!==d?(g={slot:`sidebar-menu-button`,sidebar:`menu-button`,size:d,active:l},t[0]=l,t[1]=d,t[2]=g):g=t[2];let _;t[3]!==m||t[4]!==h||t[5]!==g?(_={defaultTagName:`button`,props:m,render:h,state:g},t[3]=m,t[4]=h,t[5]=g,t[6]=_):_=t[6];let v=Es(_);if(!o)return v;let y;t[7]===o?y=t[8]:(y=typeof o==`string`?{children:o}:o,t[7]=o,t[8]=y);let b=y,x=p!==`collapsed`||f,S;t[9]!==x||t[10]!==b?(S=(0,W.jsx)(ng,{align:`center`,hidden:x,side:`right`,...b}),t[9]=x,t[10]=b,t[11]=S):S=t[11];let C;return t[12]!==v||t[13]!==S?(C=(0,W.jsxs)(eg,{children:[v,S]}),t[12]=v,t[13]=S,t[14]=C):C=t[14],C}var jg=class{async sign(e,t,n){return e}},Mg=`ref`,Ng=-1,Pg=!0,Fg=`isSet`,Ig=`PartitionResult`,Lg=`booleanEquals`,Rg=`stringEquals`,zg=`getAttr`,Bg=`us-east-1`,Vg=`sigv4`,Hg=`sts`,Ug=`https://sts.{Region}.{PartitionResult#dnsSuffix}`,Wg={[Mg]:`Endpoint`},Gg={[Mg]:`Region`},Kg={[Mg]:Ig},qg={},Jg=[Gg],Yg={conditions:[[Fg,[Wg]],[Fg,Jg],[`aws.partition`,Jg,Ig],[Lg,[{[Mg]:`UseFIPS`},Pg]],[Lg,[{[Mg]:`UseDualStack`},Pg]],[Rg,[Gg,`aws-global`]],[Lg,[{[Mg]:`UseGlobalEndpoint`},Pg]],[Rg,[Gg,`eu-central-1`]],[Lg,[{fn:zg,argv:[Kg,`supportsDualStack`]},Pg]],[Lg,[{fn:zg,argv:[Kg,`supportsFIPS`]},Pg]],[Rg,[Gg,`ap-south-1`]],[Rg,[Gg,`eu-north-1`]],[Rg,[Gg,`eu-west-1`]],[Rg,[Gg,`eu-west-2`]],[Rg,[Gg,`eu-west-3`]],[Rg,[Gg,`sa-east-1`]],[Rg,[Gg,Bg]],[Rg,[Gg,`us-east-2`]],[Rg,[Gg,`us-west-2`]],[Rg,[Gg,`us-west-1`]],[Rg,[Gg,`ca-central-1`]],[Rg,[Gg,`ap-southeast-1`]],[Rg,[Gg,`ap-northeast-1`]],[Rg,[Gg,`ap-southeast-2`]],[Rg,[{fn:zg,argv:[Kg,`name`]},`aws-us-gov`]]],results:[[Ng],[`https://sts.amazonaws.com`,{authSchemes:[{name:Vg,signingName:Hg,signingRegion:Bg}]}],[Ug,{authSchemes:[{name:Vg,signingName:Hg,signingRegion:`{Region}`}]}],[Ng,`Invalid Configuration: FIPS and custom endpoint are not supported`],[Ng,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[Wg,qg],[`https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,qg],[Ng,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://sts.{Region}.amazonaws.com`,qg],[`https://sts-fips.{Region}.{PartitionResult#dnsSuffix}`,qg],[Ng,`FIPS is enabled but this partition does not support FIPS`],[`https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}`,qg],[Ng,`DualStack is enabled but this partition does not support DualStack`],[Ug,qg],[Ng,`Invalid Configuration: Missing Region`]]},Xg=2,Zg=new Int32Array([-1,1,-1,0,30,3,1,4,100000014,2,5,100000014,3,25,6,4,24,7,5,100000001,8,6,9,100000013,7,100000001,10,10,100000001,11,11,100000001,12,12,100000001,13,13,100000001,14,14,100000001,15,15,100000001,16,16,100000001,17,17,100000001,18,18,100000001,19,19,100000001,20,20,100000001,21,21,100000001,22,22,100000001,23,23,100000001,100000002,8,100000011,100000012,4,28,26,9,27,100000010,24,100000008,100000009,8,29,100000007,9,100000006,100000007,3,100000003,31,4,100000004,100000005]),Qg=Pn.from(Zg,Xg,Yg.conditions,Yg.results),$g=new zn({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`,`UseGlobalEndpoint`]}),e_=(e,t={})=>$g.get(e,()=>jn(Qg,{endpointParams:e,logger:t.logger}));Vn.aws=en;var t_=(e=>async(t,n,r)=>{if(!r)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let i=await e(t,n,r),a=tn(n)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!a)throw Error(`getEndpointParameterInstructions() is not defined on '${n.commandName}'`);let o=await Nn(r,{getEndpointParameterInstructions:a},t);return Object.assign(i,o)})(async(e,t,n)=>({operation:tn(t).operation,region:await fn(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}));function n_(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`sts`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function r_(e){return{schemeId:`aws.auth#sigv4a`,signingProperties:{name:`sts`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function i_(e){return{schemeId:`smithy.api#noAuth`}}var a_=((e,t,n)=>r=>{let i=e(r).properties?.authSchemes;if(!i)return t(r);let a=[];for(let e of i){let{name:t,properties:o={},...s}=e,c=t.toLowerCase();t!==c&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${t}' to '${c}'`);let l;if(c===`sigv4a`){l=`aws.auth#sigv4a`;let e=i.find(e=>{let t=e.name.toLowerCase();return t!==`sigv4a`&&t.startsWith(`sigv4`)});if(Sn.sigv4aDependency()===`none`&&e)continue}else if(c.startsWith(`sigv4`))l=`aws.auth#sigv4`;else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${c}'`);let u=n[l];if(!u)throw Error(`Could not find HttpAuthOption create function for '${l}'`);let d=u(r);d.schemeId=l,d.signingProperties={...d.signingProperties||{},...s,...o},a.push(d)}return a})(e_,e=>{let t=[];switch(e.operation){case`AssumeRoleWithSAML`:t.push(i_(e)),t.push(r_(e));break;case`AssumeRoleWithWebIdentity`:t.push(i_(e)),t.push(r_(e));break;default:t.push(n_(e)),t.push(r_(e))}return t},{"aws.auth#sigv4":n_,"aws.auth#sigv4a":r_,"smithy.api#noAuth":i_}),o_=e=>{let t=mn(Qt(e));return Object.assign(t,{authSchemePreference:fn(e.authSchemePreference??[])})},s_=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:`sts`}),c_={UseGlobalEndpoint:{type:`builtInParams`,name:`useGlobalEndpoint`},UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},l_={name:`@aws-sdk/client-sts`,description:`AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native`,version:`3.1067.0`,scripts:{build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`premove ./dist-types tsconfig.types.tsbuildinfo && tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo sts`,test:`yarn g:vitest run`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts --mode development`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`,"test:integration":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:watch":`yarn g:vitest watch`},main:`./dist-cjs/index.js`,types:`./dist-types/index.d.ts`,module:`./dist-es/index.js`,sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.20`,"@aws-sdk/credential-provider-node":`^3.972.55`,"@aws-sdk/signature-v4-multi-region":`^3.996.34`,"@aws-sdk/types":`^3.973.12`,"@smithy/core":`^3.24.6`,"@smithy/fetch-http-handler":`^5.4.6`,"@smithy/node-http-handler":`^4.7.6`,"@smithy/types":`^4.14.3`,tslib:`^2.6.2`},devDependencies:{"@smithy/snapshot-testing":`^2.1.7`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},engines:{node:`>=20.0.0`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`dist-*/**`],author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/sdk-for-javascript/`},license:`Apache-2.0`,browser:{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-sts`}},u_=class e extends Gn{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},d_=class e extends u_{name=`ExpiredTokenException`;$fault=`client`;constructor(t){super({name:`ExpiredTokenException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},f_=class e extends u_{name=`MalformedPolicyDocumentException`;$fault=`client`;constructor(t){super({name:`MalformedPolicyDocumentException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},p_=class e extends u_{name=`PackedPolicyTooLargeException`;$fault=`client`;constructor(t){super({name:`PackedPolicyTooLargeException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},m_=class e extends u_{name=`RegionDisabledException`;$fault=`client`;constructor(t){super({name:`RegionDisabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},h_=class e extends u_{name=`IDPRejectedClaimException`;$fault=`client`;constructor(t){super({name:`IDPRejectedClaimException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},g_=class e extends u_{name=`InvalidIdentityTokenException`;$fault=`client`;constructor(t){super({name:`InvalidIdentityTokenException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},__=class e extends u_{name=`IDPCommunicationErrorException`;$fault=`client`;$retryable={};constructor(t){super({name:`IDPCommunicationErrorException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},v_=class e extends u_{name=`InvalidAuthorizationMessageException`;$fault=`client`;constructor(t){super({name:`InvalidAuthorizationMessageException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},y_=class e extends u_{name=`ExpiredTradeInTokenException`;$fault=`client`;constructor(t){super({name:`ExpiredTradeInTokenException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},b_=class e extends u_{name=`JWTPayloadSizeExceededException`;$fault=`client`;constructor(t){super({name:`JWTPayloadSizeExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},x_=class e extends u_{name=`OutboundWebIdentityFederationDisabledException`;$fault=`client`;constructor(t){super({name:`OutboundWebIdentityFederationDisabledException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},S_=class e extends u_{name=`SessionDurationEscalationException`;$fault=`client`;constructor(t){super({name:`SessionDurationEscalationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},C_=`Arn`,w_=`AccessKeyId`,T_=`Account`,E_=`Credentials`,D_=`DurationSeconds`,O_=`Expiration`,k_=`ExpiredTokenException`,A_=`ExpiredTradeInTokenException`,j_=`GetCallerIdentity`,M_=`GetCallerIdentityRequest`,N_=`GetCallerIdentityResponse`,P_=`GetSessionToken`,F_=`GetSessionTokenRequest`,I_=`GetSessionTokenResponse`,L_=`InvalidAuthorizationMessageException`,R_=`IDPCommunicationErrorException`,z_=`IDPRejectedClaimException`,B_=`InvalidIdentityTokenException`,V_=`JWTPayloadSizeExceededException`,H_=`MalformedPolicyDocumentException`,U_=`OutboundWebIdentityFederationDisabledException`,W_=`PackedPolicyTooLargeException`,G_=`RegionDisabledException`,K_=`SecretAccessKey`,q_=`SessionDurationEscalationException`,J_=`SerialNumber`,Y_=`SessionToken`,X_=`TokenCode`,Z_=`UserId`,Q_=`accessKeySecretType`,$_=`awsQueryError`,ev=`client`,tv=`error`,nv=`httpError`,rv=`message`,iv=`smithy.ts.sdk.synthetic.com.amazonaws.sts`,av=`com.amazonaws.sts`,ov=Xt.for(iv),sv=[-3,iv,`STSServiceException`,0,[],[]];ov.registerError(sv,u_);var cv=Xt.for(av),lv=[-3,av,k_,{[$_]:[`ExpiredTokenException`,400],[tv]:ev,[nv]:400},[rv],[0]];cv.registerError(lv,d_);var uv=[-3,av,A_,{[$_]:[`ExpiredTradeInTokenException`,400],[tv]:ev,[nv]:400},[rv],[0]];cv.registerError(uv,y_);var dv=[-3,av,R_,{[$_]:[`IDPCommunicationError`,400],[tv]:ev,[nv]:400},[rv],[0]];cv.registerError(dv,__);var fv=[-3,av,z_,{[$_]:[`IDPRejectedClaim`,403],[tv]:ev,[nv]:403},[rv],[0]];cv.registerError(fv,h_);var pv=[-3,av,L_,{[$_]:[`InvalidAuthorizationMessageException`,400],[tv]:ev,[nv]:400},[rv],[0]];cv.registerError(pv,v_);var mv=[-3,av,B_,{[$_]:[`InvalidIdentityToken`,400],[tv]:ev,[nv]:400},[rv],[0]];cv.registerError(mv,g_);var hv=[-3,av,V_,{[$_]:[`JWTPayloadSizeExceededException`,400],[tv]:ev,[nv]:400},[rv],[0]];cv.registerError(hv,b_);var gv=[-3,av,H_,{[$_]:[`MalformedPolicyDocument`,400],[tv]:ev,[nv]:400},[rv],[0]];cv.registerError(gv,f_);var _v=[-3,av,U_,{[$_]:[`OutboundWebIdentityFederationDisabledException`,403],[tv]:ev,[nv]:403},[rv],[0]];cv.registerError(_v,x_);var vv=[-3,av,W_,{[$_]:[`PackedPolicyTooLarge`,400],[tv]:ev,[nv]:400},[rv],[0]];cv.registerError(vv,p_);var yv=[-3,av,G_,{[$_]:[`RegionDisabledException`,403],[tv]:ev,[nv]:403},[rv],[0]];cv.registerError(yv,m_);var bv=[-3,av,q_,{[$_]:[`SessionDurationEscalationException`,403],[tv]:ev,[nv]:403},[rv],[0]];cv.registerError(bv,S_);var xv=[ov,cv],Sv=[0,av,Q_,8,0],Cv=[3,av,E_,0,[w_,K_,Y_,O_],[0,[()=>Sv,0],0,4],4],wv=[3,av,M_,0,[],[]],Tv=[3,av,N_,0,[Z_,T_,C_],[0,0,0]],Ev=[3,av,F_,0,[D_,J_,X_],[1,0,0]],Dv=[3,av,I_,0,[E_],[[()=>Cv,0]]],Ov=[9,av,j_,0,()=>wv,()=>Tv],kv=[9,av,P_,0,()=>Ev,()=>Dv],Av=e=>({apiVersion:`2011-06-15`,base64Decoder:e?.base64Decoder??Nr,base64Encoder:e?.base64Encoder??Fr,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??e_,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??a_,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new qt},{schemeId:`aws.auth#sigv4a`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4a`),signer:new Ln},{schemeId:`smithy.api#noAuth`,identityProvider:e=>e.getIdentityProvider(`smithy.api#noAuth`)||(async()=>({})),signer:new jg}],logger:e?.logger??new Dn,protocol:e?.protocol??Mn,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.sts`,errorTypeRegistries:xv,xmlNamespace:`https://sts.amazonaws.com/doc/2011-06-15/`,version:`2011-06-15`,serviceTarget:`AWSSecurityTokenServiceV20110615`},serviceId:e?.serviceId??`STS`,signerConstructor:e?.signerConstructor??Sn,urlParser:e?.urlParser??In,utf8Decoder:e?.utf8Decoder??Mr,utf8Encoder:e?.utf8Encoder??Pr}),jv=e=>{let t=pn(e),n=()=>t().then(On),r=Av(e);return{...r,...e,runtime:`browser`,defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Ir,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error(`Credential is missing`))),defaultUserAgentProvider:e?.defaultUserAgentProvider??an({serviceId:r.serviceId,clientVersion:l_.version}),maxAttempts:e?.maxAttempts??3,region:e?.region??Rn(`Region is missing`),requestHandler:xn.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||Tn),sha256:e?.sha256??Yt,streamCollector:e?.streamCollector??Wn,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}},Mv=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},Nv=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Pv=(e,t)=>{let n=Object.assign(Fn(e),Un(e),Kt(e),Mv(e));return t.forEach(e=>e.configure(n)),Object.assign(e,dn(n),Kn(n),An(n),Nv(n))},Fv=class extends hn{config;constructor(...[e]){let t=jv(e||{});super(t),this.initConfig=t;let n=Pv(o_(kn(cn(gn(En(yn(s_(t))))))),e?.extensions||[]);this.config=n,this.middlewareStack.use($t(this.config)),this.middlewareStack.use(ln(this.config)),this.middlewareStack.use(sn(this.config)),this.middlewareStack.use(vn(this.config)),this.middlewareStack.use(nn(this.config)),this.middlewareStack.use(wn(this.config)),this.middlewareStack.use(Cn(this.config)),this.middlewareStack.use(rn(this.config,{httpAuthSchemeParametersProvider:t_,identityProviderConfigProvider:async e=>new qn({"aws.auth#sigv4":e.credentials,"aws.auth#sigv4a":e.credentials})})),this.middlewareStack.use(Jt(this.config))}destroy(){super.destroy()}},Iv=class extends L.classBuilder().ep(c_).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSSecurityTokenServiceV20110615`,`GetCallerIdentity`,{}).n(`STSClient`,`GetCallerIdentityCommand`).sc(Ov).build(){},Lv=class extends L.classBuilder().ep(c_).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSSecurityTokenServiceV20110615`,`GetSessionToken`,{}).n(`STSClient`,`GetSessionTokenCommand`).sc(kv).build(){},Rv=`ap-southeast-2`,zv=9999,Bv=class extends Error{status;constructor(e,t,n){super(e),this.name=t,this.status=n}};function Vv(e,t){let n=`<${t}>`,r=``,i=e.indexOf(n);if(i===-1)return null;let a=e.indexOf(r,i+n.length);return a===-1?null:e.slice(i+n.length,a)}async function Hv({action:e,credentials:t,service:n=`spinifex`}){let r=window.location.protocol.replace(`:`,``),i=`Action=${e}`,a=new _n({method:`POST`,protocol:r,hostname:`localhost`,port:zv,path:`/`,headers:{host:`localhost:${zv}`,"content-type":`application/x-www-form-urlencoded`},body:i}),o=await new Zt({credentials:{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey,sessionToken:t.sessionToken},region:Rv,service:n,sha256:Yt}).sign(a),s={};for(let[e,t]of Object.entries(o.headers))typeof t==`string`&&(s[e]=t);let c=`${window.location.protocol}//${window.location.host}/proxy/awsgw/`,l=await fetch(c,{method:`POST`,headers:s,body:i});if(!l.ok){let t=await l.text().catch(()=>``),n=Vv(t,`Code`),r=Vv(t,`Message`)??t;throw new Bv(`${e} failed: ${l.status}${r?` - ${r}`:``}`,n??`SignedFetchError`,l.status)}return await l.json()}var Uv=`ap-southeast-2`,Wv=`${window.location.protocol}//localhost:9999`,Gv=43200;function Kv(e){e.middlewareStack.add(e=>async t=>(_n.isInstance(t.request)&&(t.request.hostname=window.location.hostname,t.request.port=Number(window.location.port)||443,t.request.path=`/proxy/awsgw${t.request.path}`),await e(t)),{step:`finalizeRequest`,name:`proxyRewrite`,override:!0})}function qv(e){let t=new Fv({endpoint:Wv,region:Uv,credentials:e});return Kv(t),t}function Jv(){let e=Hn();if(!e)throw Error(`AWS credentials not configured`);return qv({accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken})}async function Yv(e){let t=(await qv(e).send(new Lv({DurationSeconds:Gv}))).Credentials;if(!t?.AccessKeyId||!t.SecretAccessKey||!t.SessionToken||!t.Expiration)throw Error(`GetSessionToken returned incomplete credentials`);return{accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,sessionToken:t.SessionToken,expiration:t.Expiration.toISOString()}}var Xv=`000000000001`;function Zv(e){let t=e?.indexOf(`:user/`)??-1;return t===-1||e===void 0?null:e.slice(t+6)||null}var Qv=(0,U.createContext)(void 0);function $v({children:e}){let[t,n]=(0,U.useState)({isAdmin:!1,accountId:null,userName:null,version:null,license:null,loading:!0});return(0,U.useEffect)(()=>{async function e(){let e=Hn();if(!e){n(e=>({...e,loading:!1}));return}try{let t=await Jv().send(new Iv({})),r=t.Account??null,i=r===Xv,a=null;if(i)try{a=await Hv({action:`GetVersion`,credentials:e})}catch{}n({isAdmin:i,accountId:r,userName:Zv(t.Arn),version:a,license:a?.license??null,loading:!1})}catch{n(e=>({...e,loading:!1}))}}e()},[]),(0,W.jsx)(Qv,{value:t,children:e})}function ey(){let e=(0,U.useContext)(Qv);if(e===void 0)throw Error(`useAdmin must be used within an AdminProvider`);return e}var ty=new Set([`InvalidClientTokenId`,`SignatureDoesNotMatch`,`AuthFailure`,`MissingAuthenticationToken`,`IncompleteSignature`,`UnrecognizedClientException`,`ExpiredToken`,`ExpiredTokenException`,`InvalidAccessKeyId`]);function ny(e){if(typeof e!=`object`||!e||!(`name`in e))return!1;let{name:t}=e;return typeof t==`string`&&ty.has(t)}var ry=class extends L.classBuilder().ep(pt).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`CertificateManager`,`ListCertificates`,{}).n(`ACMClient`,`ListCertificatesCommand`).sc(Me).build(){},iy=class extends L.classBuilder().ep(xe).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeAddresses`,{}).n(`EC2Client`,`DescribeAddressesCommand`).sc(Ce).build(){},ay=class extends L.classBuilder().ep(xe).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeAvailabilityZones`,{}).n(`EC2Client`,`DescribeAvailabilityZonesCommand`).sc(Ae).build(){},oy=class extends L.classBuilder().ep(xe).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeIamInstanceProfileAssociations`,{}).n(`EC2Client`,`DescribeIamInstanceProfileAssociationsCommand`).sc(Ct).build(){},sy=class extends L.classBuilder().ep(xe).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeImages`,{}).n(`EC2Client`,`DescribeImagesCommand`).sc(De).build(){},cy=class extends L.classBuilder().ep(xe).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeInstances`,{}).n(`EC2Client`,`DescribeInstancesCommand`).sc(He).build(){},ly=class extends L.classBuilder().ep(xe).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeInstanceTypes`,{}).n(`EC2Client`,`DescribeInstanceTypesCommand`).sc(Ge).build(){},uy=class extends L.classBuilder().ep(xe).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeInternetGateways`,{}).n(`EC2Client`,`DescribeInternetGatewaysCommand`).sc(Je).build(){},dy=class extends L.classBuilder().ep(xe).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeKeyPairs`,{}).n(`EC2Client`,`DescribeKeyPairsCommand`).sc(Pe).build(){},fy=class extends L.classBuilder().ep(xe).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeNatGateways`,{}).n(`EC2Client`,`DescribeNatGatewaysCommand`).sc(_e).build(){},py=class extends L.classBuilder().ep(xe).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribePlacementGroups`,{}).n(`EC2Client`,`DescribePlacementGroupsCommand`).sc(it).build(){},my=class extends L.classBuilder().ep(xe).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeRegions`,{}).n(`EC2Client`,`DescribeRegionsCommand`).sc(Mt).build(){},hy=class extends L.classBuilder().ep(xe).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeRouteTables`,{}).n(`EC2Client`,`DescribeRouteTablesCommand`).sc(gt).build(){},gy=class extends L.classBuilder().ep(xe).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeSecurityGroups`,{}).n(`EC2Client`,`DescribeSecurityGroupsCommand`).sc(Et).build(){},_y=class extends L.classBuilder().ep(xe).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeSnapshots`,{}).n(`EC2Client`,`DescribeSnapshotsCommand`).sc(dt).build(){},vy=class extends L.classBuilder().ep(xe).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeSubnets`,{}).n(`EC2Client`,`DescribeSubnetsCommand`).sc(Qe).build(){},yy=class extends L.classBuilder().ep(xe).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeVolumes`,{}).n(`EC2Client`,`DescribeVolumesCommand`).sc(bt).build(){},by=class extends L.classBuilder().ep(xe).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2`,`DescribeVpcs`,{}).n(`EC2Client`,`DescribeVpcsCommand`).sc(kt).build(){},xy=class extends L.classBuilder().ep(at).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`DescribeImages`,{}).n(`ECRClient`,`DescribeImagesCommand`).sc(yt).build(){},Sy=class extends L.classBuilder().ep(at).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`DescribeRepositories`,{}).n(`ECRClient`,`DescribeRepositoriesCommand`).sc(Ot).build(){},Cy=class extends L.classBuilder().ep(at).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AmazonEC2ContainerRegistry_V20150921`,`GetRepositoryPolicy`,{}).n(`ECRClient`,`GetRepositoryPolicyCommand`).sc(nt).build(){},wy=class extends L.classBuilder().ep(jt).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DescribeAccessEntry`,{}).n(`EKSClient`,`DescribeAccessEntryCommand`).sc(be).build(){},Ty=class extends L.classBuilder().ep(jt).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DescribeAddon`,{}).n(`EKSClient`,`DescribeAddonCommand`).sc(Re).build(){},Ey=class extends L.classBuilder().ep(jt).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DescribeAddonVersions`,{}).n(`EKSClient`,`DescribeAddonVersionsCommand`).sc(Te).build(){},Dy=class extends L.classBuilder().ep(jt).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DescribeCluster`,{}).n(`EKSClient`,`DescribeClusterCommand`).sc(Ie).build(){},Oy=class extends L.classBuilder().ep(jt).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`DescribeNodegroup`,{}).n(`EKSClient`,`DescribeNodegroupCommand`).sc(Be).build(){},ky=class extends L.classBuilder().ep(jt).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`ListAccessEntries`,{}).n(`EKSClient`,`ListAccessEntriesCommand`).sc(je).build(){},Ay=class extends L.classBuilder().ep(jt).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`ListAccessPolicies`,{}).n(`EKSClient`,`ListAccessPoliciesCommand`).sc(wt).build(){},jy=class extends L.classBuilder().ep(jt).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`ListAddons`,{}).n(`EKSClient`,`ListAddonsCommand`).sc(Oe).build(){},My=class extends L.classBuilder().ep(jt).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`ListAssociatedAccessPolicies`,{}).n(`EKSClient`,`ListAssociatedAccessPoliciesCommand`).sc(Ke).build(){},Ny=class extends L.classBuilder().ep(jt).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`ListClusters`,{}).n(`EKSClient`,`ListClustersCommand`).sc(Ue).build(){},Py=class extends L.classBuilder().ep(jt).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSWesleyFrontend`,`ListNodegroups`,{}).n(`EKSClient`,`ListNodegroupsCommand`).sc(Ye).build(){},Fy=class extends L.classBuilder().ep(ye).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeListeners`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeListenersCommand`).sc(xt).build(){},Iy=class extends L.classBuilder().ep(ye).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeLoadBalancerAttributes`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeLoadBalancerAttributesCommand`).sc(mt).build(){},Ly=class extends L.classBuilder().ep(ye).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeLoadBalancers`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeLoadBalancersCommand`).sc(lt).build(){},Ry=class extends L.classBuilder().ep(ye).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeRules`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeRulesCommand`).sc(st).build(){},zy=class extends L.classBuilder().ep(ye).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeSSLPolicies`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeSSLPoliciesCommand`).sc(Xe).build(){},By=class extends L.classBuilder().ep(ye).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTags`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTagsCommand`).sc(Nt).build(){},Vy=class extends L.classBuilder().ep(ye).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTargetGroupAttributes`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTargetGroupAttributesCommand`).sc(It).build(){},Hy=class extends L.classBuilder().ep(ye).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTargetGroups`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTargetGroupsCommand`).sc(et).build(){},Uy=class extends L.classBuilder().ep(ye).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`ElasticLoadBalancing_v10`,`DescribeTargetHealth`,{}).n(`ElasticLoadBalancingV2Client`,`DescribeTargetHealthCommand`).sc(Ft).build(){},Wy=class extends L.classBuilder().ep(_t).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetInstanceProfile`,{}).n(`IAMClient`,`GetInstanceProfileCommand`).sc(Le).build(){},Gy=class extends L.classBuilder().ep(_t).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetPolicy`,{}).n(`IAMClient`,`GetPolicyCommand`).sc(we).build(){},Ky=class extends L.classBuilder().ep(_t).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetPolicyVersion`,{}).n(`IAMClient`,`GetPolicyVersionCommand`).sc(Fe).build(){},qy=class extends L.classBuilder().ep(_t).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetRole`,{}).n(`IAMClient`,`GetRoleCommand`).sc(ze).build(){},Jy=class extends L.classBuilder().ep(_t).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`GetUser`,{}).n(`IAMClient`,`GetUserCommand`).sc(Se).build(){},Yy=class extends L.classBuilder().ep(_t).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListAccessKeys`,{}).n(`IAMClient`,`ListAccessKeysCommand`).sc(ke).build(){},Xy=class extends L.classBuilder().ep(_t).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListAttachedRolePolicies`,{}).n(`IAMClient`,`ListAttachedRolePoliciesCommand`).sc(St).build(){},Zy=class extends L.classBuilder().ep(_t).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListAttachedUserPolicies`,{}).n(`IAMClient`,`ListAttachedUserPoliciesCommand`).sc(Ee).build(){},Qy=class extends L.classBuilder().ep(_t).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListInstanceProfiles`,{}).n(`IAMClient`,`ListInstanceProfilesCommand`).sc(We).build(){},$y=class extends L.classBuilder().ep(_t).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListInstanceProfilesForRole`,{}).n(`IAMClient`,`ListInstanceProfilesForRoleCommand`).sc(Ve).build(){},eb=class extends L.classBuilder().ep(_t).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListPolicies`,{}).n(`IAMClient`,`ListPoliciesCommand`).sc(qe).build(){},tb=class extends L.classBuilder().ep(_t).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListRoles`,{}).n(`IAMClient`,`ListRolesCommand`).sc(Ne).build(){},nb=class extends L.classBuilder().ep(_t).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions())]}).s(`AWSIdentityManagementV20100508`,`ListUsers`,{}).n(`IAMClient`,`ListUsersCommand`).sc(ge).build(){},rb=class extends L.classBuilder().ep($e).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions()),Pt(n)]}).s(`AmazonS3`,`ListBuckets`,{}).n(`S3Client`,`ListBucketsCommand`).sc(ct).build(){},ib=class extends L.classBuilder().ep({...$e,Bucket:{type:`contextParams`,name:`Bucket`},Prefix:{type:`contextParams`,name:`Prefix`}}).m(function(e,t,n,r){return[z(n,e.getEndpointParameterInstructions()),Pt(n)]}).s(`AmazonS3`,`ListObjectsV2`,{}).n(`S3Client`,`ListObjectsV2Command`).sc(ot).build(){},ab=!1;function ob(e,t){ab||!ny(e)||(ab=!0,Bn(),At(),t.clear(),window.location.pathname!==`/login`&&(window.location.href=`/login?reason=expired`))}function sb(){let e=new Li({queryCache:new Ii({onError:t=>ob(t,e)}),mutationCache:new Pi({onError:t=>ob(t,e)}),defaultOptions:{queries:{staleTime:5e3,refetchIntervalInBackground:!1}}});return e}function cb(){let e=(0,xs.c)(8),{theme:t,setTheme:n}=Ts(),r;e[0]!==n||e[1]!==t?(r=()=>{n(t===`light`?`dark`:t===`dark`?`light`:`dark`)},e[0]=n,e[1]=t,e[2]=r):r=e[2];let i=r,a,o,s;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,W.jsx)(cc,{className:`size-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90`}),o=(0,W.jsx)($s,{className:`absolute size-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0`}),s=(0,W.jsx)(`span`,{className:`sr-only`,children:`Toggle theme`}),e[3]=a,e[4]=o,e[5]=s):(a=e[3],o=e[4],s=e[5]);let c;return e[6]===i?c=e[7]:(c=(0,W.jsxs)(dr,{className:`rounded-full`,onClick:i,size:`icon-sm`,variant:`ghost`,children:[a,o,s]}),e[6]=i,e[7]=c),c}function lb(){let e=(0,xs.c)(7),{isAdmin:t,license:n}=ey(),r=t&&n===`open-source`,i,a;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=un(`z-50 flex h-10 shrink-0 items-center gap-2 border-b border-sidebar-border bg-sidebar px-4 text-sidebar-foreground`,`sticky top-0`),a=(0,W.jsx)(yg,{className:`-ml-1`}),e[0]=i,e[1]=a):(i=e[0],a=e[1]);let o;e[2]===r?o=e[3]:(o=r&&(0,W.jsx)(`a`,{href:`https://mulgadc.com/purchase`,target:`_blank`,rel:`noopener noreferrer`,className:un(sr({variant:`outline`,size:`sm`})),children:`Upgrade`}),e[2]=r,e[3]=o);let s;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,W.jsx)(cb,{}),e[4]=s):s=e[4];let c;return e[5]===o?c=e[6]:(c=(0,W.jsxs)(`header`,{className:i,children:[a,(0,W.jsxs)(`div`,{className:`flex w-full items-center justify-end gap-2`,children:[o,s]})]}),e[5]=o,e[6]=c),c}function ub(){let e=(0,xs.c)(3),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,W.jsx)(`h1`,{className:`text-4xl font-bold`,children:`404`}),n=(0,W.jsx)(`p`,{className:`text-muted-foreground`,children:`Page not found`}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;return e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,W.jsxs)(`div`,{className:`flex flex-1 flex-col items-center justify-center gap-4`,children:[t,n,(0,W.jsx)(ve,{to:`/`,children:(0,W.jsx)(dr,{variant:`outline`,children:`Go back home`})})]}),e[2]=r):r=e[2],r}function db(){let e=(0,xs.c)(202),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={select:fb},e[0]=t):t=e[0];let n=ds(t),r=Bo(),i=zi(),{isAdmin:a}=ey(),o;e[1]!==r||e[2]!==i?(o=function(){Bn(),At(),i.clear(),r({to:`/login`})},e[1]=r,e[2]=i,e[3]=o):o=e[3];let s=o,c;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,W.jsxs)(xg,{className:`flex flex-row items-center gap-2 px-4 py-3`,children:[(0,W.jsx)(`img`,{src:`/mulga-logo.svg`,alt:`Mulga`,className:`size-6 shrink-0 dark:invert`}),(0,W.jsx)(`span`,{className:`truncate text-sm font-semibold group-data-[collapsible=icon]:hidden`,children:`Spinifex`})]}),e[4]=c):c=e[4];let l;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,W.jsx)(Eg,{children:`General`}),e[5]=l):l=e[5];let u=n===`/`,d,f;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,W.jsx)(Gs,{className:`size-4`}),f=(0,W.jsx)(`span`,{children:`Dashboard`}),e[6]=d,e[7]=f):(d=e[6],f=e[7]);let p;e[8]===u?p=e[9]:(p=(0,W.jsx)(Og,{children:(0,W.jsx)(ve,{to:`/`,children:(0,W.jsxs)(Ag,{isActive:u,tooltip:`Dashboard`,children:[d,f]})})}),e[8]=u,e[9]=p);let m;e[10]!==a||e[11]!==n?(m=a&&(0,W.jsx)(Og,{children:(0,W.jsx)(ve,{to:`/nodes`,children:(0,W.jsxs)(Ag,{isActive:n.startsWith(`/nodes`),tooltip:`Nodes`,children:[(0,W.jsx)(ac,{className:`size-4`}),(0,W.jsx)(`span`,{children:`Nodes`})]})})}),e[10]=a,e[11]=n,e[12]=m):m=e[12];let h;e[13]!==p||e[14]!==m?(h=(0,W.jsxs)(Tg,{children:[l,(0,W.jsxs)(Dg,{children:[p,m]})]}),e[13]=p,e[14]=m,e[15]=h):h=e[15];let g;e[16]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,W.jsx)(Eg,{children:`EC2`}),e[16]=g):g=e[16];let _;e[17]===n?_=e[18]:(_=n.startsWith(`/ec2/describe-instances`)||n.startsWith(`/ec2/run-instances`),e[17]=n,e[18]=_);let v,y;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,W.jsx)(ac,{className:`size-4`}),y=(0,W.jsx)(`span`,{children:`Instances`}),e[19]=v,e[20]=y):(v=e[19],y=e[20]);let b;e[21]===_?b=e[22]:(b=(0,W.jsx)(Og,{children:(0,W.jsx)(ve,{to:`/ec2/describe-instances`,children:(0,W.jsxs)(Ag,{isActive:_,tooltip:`Instances`,children:[v,y]})})}),e[21]=_,e[22]=b);let x;e[23]===n?x=e[24]:(x=n.startsWith(`/ec2/describe-images`),e[23]=n,e[24]=x);let S,C;e[25]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,W.jsx)(qs,{className:`size-4`}),C=(0,W.jsx)(`span`,{children:`Images`}),e[25]=S,e[26]=C):(S=e[25],C=e[26]);let w;e[27]===x?w=e[28]:(w=(0,W.jsx)(Og,{children:(0,W.jsx)(ve,{to:`/ec2/describe-images`,children:(0,W.jsxs)(Ag,{isActive:x,tooltip:`Images`,children:[S,C]})})}),e[27]=x,e[28]=w);let T;e[29]===n?T=e[30]:(T=n.startsWith(`/ec2/describe-key-pairs`),e[29]=n,e[30]=T);let E,D;e[31]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,W.jsx)(Js,{className:`size-4`}),D=(0,W.jsx)(`span`,{children:`Key Pairs`}),e[31]=E,e[32]=D):(E=e[31],D=e[32]);let O;e[33]===T?O=e[34]:(O=(0,W.jsx)(Og,{children:(0,W.jsx)(ve,{to:`/ec2/describe-key-pairs`,children:(0,W.jsxs)(Ag,{isActive:T,tooltip:`Key Pairs`,children:[E,D]})})}),e[33]=T,e[34]=O);let k;e[35]===n?k=e[36]:(k=n.startsWith(`/ec2/describe-addresses`)||n.startsWith(`/ec2/allocate-address`),e[35]=n,e[36]=k);let A,j;e[37]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,W.jsx)(Qs,{className:`size-4`}),j=(0,W.jsx)(`span`,{children:`Elastic IPs`}),e[37]=A,e[38]=j):(A=e[37],j=e[38]);let M;e[39]===k?M=e[40]:(M=(0,W.jsx)(Og,{children:(0,W.jsx)(ve,{to:`/ec2/describe-addresses`,children:(0,W.jsxs)(Ag,{isActive:k,tooltip:`Elastic IPs`,children:[A,j]})})}),e[39]=k,e[40]=M);let ee;e[41]===n?ee=e[42]:(ee=n.startsWith(`/ec2/describe-volumes`)||n.startsWith(`/ec2/create-volume`)||n.startsWith(`/ec2/modify-volume`),e[41]=n,e[42]=ee);let N,P;e[43]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,W.jsx)(Ws,{className:`size-4`}),P=(0,W.jsx)(`span`,{children:`Volumes`}),e[43]=N,e[44]=P):(N=e[43],P=e[44]);let te;e[45]===ee?te=e[46]:(te=(0,W.jsx)(Og,{children:(0,W.jsx)(ve,{to:`/ec2/describe-volumes`,children:(0,W.jsxs)(Ag,{isActive:ee,tooltip:`Volumes`,children:[N,P]})})}),e[45]=ee,e[46]=te);let ne;e[47]===n?ne=e[48]:(ne=n.startsWith(`/ec2/describe-snapshots`)||n.startsWith(`/ec2/create-snapshot`),e[47]=n,e[48]=ne);let re,ie;e[49]===Symbol.for(`react.memo_cache_sentinel`)?(re=(0,W.jsx)(Bs,{className:`size-4`}),ie=(0,W.jsx)(`span`,{children:`Snapshots`}),e[49]=re,e[50]=ie):(re=e[49],ie=e[50]);let ae;e[51]===ne?ae=e[52]:(ae=(0,W.jsx)(Og,{children:(0,W.jsx)(ve,{to:`/ec2/describe-snapshots`,children:(0,W.jsxs)(Ag,{isActive:ne,tooltip:`Snapshots`,children:[re,ie]})})}),e[51]=ne,e[52]=ae);let F;e[53]===n?F=e[54]:(F=n.startsWith(`/ec2/describe-placement-groups`)||n.startsWith(`/ec2/create-placement-group`),e[53]=n,e[54]=F);let oe,se;e[55]===Symbol.for(`react.memo_cache_sentinel`)?(oe=(0,W.jsx)(Ys,{className:`size-4`}),se=(0,W.jsx)(`span`,{children:`Placement Groups`}),e[55]=oe,e[56]=se):(oe=e[55],se=e[56]);let I;e[57]===F?I=e[58]:(I=(0,W.jsx)(Og,{children:(0,W.jsx)(ve,{to:`/ec2/describe-placement-groups`,children:(0,W.jsxs)(Ag,{isActive:F,tooltip:`Placement Groups`,children:[oe,se]})})}),e[57]=F,e[58]=I);let ce;e[59]===n?ce=e[60]:(ce=n.startsWith(`/ec2/describe-load-balancers`)||n.startsWith(`/ec2/create-load-balancer`),e[59]=n,e[60]=ce);let le,ue;e[61]===Symbol.for(`react.memo_cache_sentinel`)?(le=(0,W.jsx)(dc,{className:`size-4`}),ue=(0,W.jsx)(`span`,{children:`Load Balancers`}),e[61]=le,e[62]=ue):(le=e[61],ue=e[62]);let de;e[63]===ce?de=e[64]:(de=(0,W.jsx)(Og,{children:(0,W.jsx)(ve,{to:`/ec2/describe-load-balancers`,children:(0,W.jsxs)(Ag,{isActive:ce,tooltip:`Load Balancers`,children:[le,ue]})})}),e[63]=ce,e[64]=de);let fe;e[65]===n?fe=e[66]:(fe=n.startsWith(`/ec2/describe-target-groups`)||n.startsWith(`/ec2/create-target-group`),e[65]=n,e[66]=fe);let pe,me;e[67]===Symbol.for(`react.memo_cache_sentinel`)?(pe=(0,W.jsx)(Hs,{className:`size-4`}),me=(0,W.jsx)(`span`,{children:`Target Groups`}),e[67]=pe,e[68]=me):(pe=e[67],me=e[68]);let he;e[69]===fe?he=e[70]:(he=(0,W.jsx)(Og,{children:(0,W.jsx)(ve,{to:`/ec2/describe-target-groups`,children:(0,W.jsxs)(Ag,{isActive:fe,tooltip:`Target Groups`,children:[pe,me]})})}),e[69]=fe,e[70]=he);let ge;e[71]!==b||e[72]!==w||e[73]!==O||e[74]!==M||e[75]!==te||e[76]!==ae||e[77]!==I||e[78]!==de||e[79]!==he?(ge=(0,W.jsxs)(Tg,{children:[g,(0,W.jsxs)(Dg,{children:[b,w,O,M,te,ae,I,de,he]})]}),e[71]=b,e[72]=w,e[73]=O,e[74]=M,e[75]=te,e[76]=ae,e[77]=I,e[78]=de,e[79]=he,e[80]=ge):ge=e[80];let _e;e[81]===Symbol.for(`react.memo_cache_sentinel`)?(_e=(0,W.jsx)(Eg,{children:`Networking`}),e[81]=_e):_e=e[81];let ye;e[82]===n?ye=e[83]:(ye=n.startsWith(`/ec2/describe-vpcs`)||n.startsWith(`/ec2/create-vpc`),e[82]=n,e[83]=ye);let be,xe;e[84]===Symbol.for(`react.memo_cache_sentinel`)?(be=(0,W.jsx)(ec,{className:`size-4`}),xe=(0,W.jsx)(`span`,{children:`VPCs`}),e[84]=be,e[85]=xe):(be=e[84],xe=e[85]);let Se;e[86]===ye?Se=e[87]:(Se=(0,W.jsx)(Og,{children:(0,W.jsx)(ve,{to:`/ec2/describe-vpcs`,children:(0,W.jsxs)(Ag,{isActive:ye,tooltip:`VPCs`,children:[be,xe]})})}),e[86]=ye,e[87]=Se);let Ce;e[88]===n?Ce=e[89]:(Ce=n.startsWith(`/ec2/describe-subnets`)||n.startsWith(`/ec2/create-subnet`),e[88]=n,e[89]=Ce);let we,Te;e[90]===Symbol.for(`react.memo_cache_sentinel`)?(we=(0,W.jsx)(Xs,{className:`size-4`}),Te=(0,W.jsx)(`span`,{children:`Subnets`}),e[90]=we,e[91]=Te):(we=e[90],Te=e[91]);let Ee;e[92]===Ce?Ee=e[93]:(Ee=(0,W.jsx)(Og,{children:(0,W.jsx)(ve,{to:`/ec2/describe-subnets`,children:(0,W.jsxs)(Ag,{isActive:Ce,tooltip:`Subnets`,children:[we,Te]})})}),e[92]=Ce,e[93]=Ee);let De;e[94]===n?De=e[95]:(De=n.startsWith(`/ec2/describe-security-groups`)||n.startsWith(`/ec2/create-security-group`),e[94]=n,e[95]=De);let Oe,ke;e[96]===Symbol.for(`react.memo_cache_sentinel`)?(Oe=(0,W.jsx)(oc,{className:`size-4`}),ke=(0,W.jsx)(`span`,{children:`Security Groups`}),e[96]=Oe,e[97]=ke):(Oe=e[96],ke=e[97]);let Ae;e[98]===De?Ae=e[99]:(Ae=(0,W.jsx)(Og,{children:(0,W.jsx)(ve,{to:`/ec2/describe-security-groups`,children:(0,W.jsxs)(Ag,{isActive:De,tooltip:`Security Groups`,children:[Oe,ke]})})}),e[98]=De,e[99]=Ae);let je;e[100]===n?je=e[101]:(je=n.startsWith(`/ec2/describe-route-tables`)||n.startsWith(`/ec2/create-route-table`),e[100]=n,e[101]=je);let Me,Ne;e[102]===Symbol.for(`react.memo_cache_sentinel`)?(Me=(0,W.jsx)(ic,{className:`size-4`}),Ne=(0,W.jsx)(`span`,{children:`Route Tables`}),e[102]=Me,e[103]=Ne):(Me=e[102],Ne=e[103]);let Pe;e[104]===je?Pe=e[105]:(Pe=(0,W.jsx)(Og,{children:(0,W.jsx)(ve,{to:`/ec2/describe-route-tables`,children:(0,W.jsxs)(Ag,{isActive:je,tooltip:`Route Tables`,children:[Me,Ne]})})}),e[104]=je,e[105]=Pe);let Fe;e[106]===n?Fe=e[107]:(Fe=n.startsWith(`/ec2/describe-internet-gateways`),e[106]=n,e[107]=Fe);let Ie,Le;e[108]===Symbol.for(`react.memo_cache_sentinel`)?(Ie=(0,W.jsx)(Us,{className:`size-4`}),Le=(0,W.jsx)(`span`,{children:`Internet Gateways`}),e[108]=Ie,e[109]=Le):(Ie=e[108],Le=e[109]);let Re;e[110]===Fe?Re=e[111]:(Re=(0,W.jsx)(Og,{children:(0,W.jsx)(ve,{to:`/ec2/describe-internet-gateways`,children:(0,W.jsxs)(Ag,{isActive:Fe,tooltip:`Internet Gateways`,children:[Ie,Le]})})}),e[110]=Fe,e[111]=Re);let ze;e[112]===n?ze=e[113]:(ze=n.startsWith(`/ec2/describe-nat-gateways`)||n.startsWith(`/ec2/create-nat-gateway`),e[112]=n,e[113]=ze);let Be,Ve;e[114]===Symbol.for(`react.memo_cache_sentinel`)?(Be=(0,W.jsx)(rc,{className:`size-4`}),Ve=(0,W.jsx)(`span`,{children:`NAT Gateways`}),e[114]=Be,e[115]=Ve):(Be=e[114],Ve=e[115]);let He;e[116]===ze?He=e[117]:(He=(0,W.jsx)(Og,{children:(0,W.jsx)(ve,{to:`/ec2/describe-nat-gateways`,children:(0,W.jsxs)(Ag,{isActive:ze,tooltip:`NAT Gateways`,children:[Be,Ve]})})}),e[116]=ze,e[117]=He);let Ue;e[118]!==Se||e[119]!==Ee||e[120]!==Ae||e[121]!==Pe||e[122]!==Re||e[123]!==He?(Ue=(0,W.jsxs)(Tg,{children:[_e,(0,W.jsxs)(Dg,{children:[Se,Ee,Ae,Pe,Re,He]})]}),e[118]=Se,e[119]=Ee,e[120]=Ae,e[121]=Pe,e[122]=Re,e[123]=He,e[124]=Ue):Ue=e[124];let We;e[125]===Symbol.for(`react.memo_cache_sentinel`)?(We=(0,W.jsx)(Eg,{children:`EKS`}),e[125]=We):We=e[125];let Ge;e[126]===n?Ge=e[127]:(Ge=n.startsWith(`/eks/list-clusters`)||n.startsWith(`/eks/create-cluster`),e[126]=n,e[127]=Ge);let Ke,qe;e[128]===Symbol.for(`react.memo_cache_sentinel`)?(Ke=(0,W.jsx)(zs,{className:`size-4`}),qe=(0,W.jsx)(`span`,{children:`Clusters`}),e[128]=Ke,e[129]=qe):(Ke=e[128],qe=e[129]);let Je;e[130]===Ge?Je=e[131]:(Je=(0,W.jsxs)(Tg,{children:[We,(0,W.jsx)(Dg,{children:(0,W.jsx)(Og,{children:(0,W.jsx)(ve,{to:`/eks/list-clusters`,children:(0,W.jsxs)(Ag,{isActive:Ge,tooltip:`Clusters`,children:[Ke,qe]})})})})]}),e[130]=Ge,e[131]=Je);let Ye;e[132]===Symbol.for(`react.memo_cache_sentinel`)?(Ye=(0,W.jsx)(Eg,{children:`ECR`}),e[132]=Ye):Ye=e[132];let Xe;e[133]===n?Xe=e[134]:(Xe=n.startsWith(`/ecr/list-repositories`),e[133]=n,e[134]=Xe);let Ze,Qe;e[135]===Symbol.for(`react.memo_cache_sentinel`)?(Ze=(0,W.jsx)(tc,{className:`size-4`}),Qe=(0,W.jsx)(`span`,{children:`Repositories`}),e[135]=Ze,e[136]=Qe):(Ze=e[135],Qe=e[136]);let $e;e[137]===Xe?$e=e[138]:($e=(0,W.jsxs)(Tg,{children:[Ye,(0,W.jsx)(Dg,{children:(0,W.jsx)(Og,{children:(0,W.jsx)(ve,{to:`/ecr/list-repositories`,children:(0,W.jsxs)(Ag,{isActive:Xe,tooltip:`Repositories`,children:[Ze,Qe]})})})})]}),e[137]=Xe,e[138]=$e);let et;e[139]===Symbol.for(`react.memo_cache_sentinel`)?(et=(0,W.jsx)(Eg,{children:`IAM`}),e[139]=et):et=e[139];let tt;e[140]===n?tt=e[141]:(tt=n.startsWith(`/iam/list-users`)||n.startsWith(`/iam/create-user`),e[140]=n,e[141]=tt);let nt,rt;e[142]===Symbol.for(`react.memo_cache_sentinel`)?(nt=(0,W.jsx)(uc,{className:`size-4`}),rt=(0,W.jsx)(`span`,{children:`Users`}),e[142]=nt,e[143]=rt):(nt=e[142],rt=e[143]);let it;e[144]===tt?it=e[145]:(it=(0,W.jsx)(Og,{children:(0,W.jsx)(ve,{to:`/iam/list-users`,children:(0,W.jsxs)(Ag,{isActive:tt,tooltip:`Users`,children:[nt,rt]})})}),e[144]=tt,e[145]=it);let at;e[146]===n?at=e[147]:(at=n.startsWith(`/iam/list-policies`)||n.startsWith(`/iam/create-policy`),e[146]=n,e[147]=at);let ot,st;e[148]===Symbol.for(`react.memo_cache_sentinel`)?(ot=(0,W.jsx)(sc,{className:`size-4`}),st=(0,W.jsx)(`span`,{children:`Policies`}),e[148]=ot,e[149]=st):(ot=e[148],st=e[149]);let ct;e[150]===at?ct=e[151]:(ct=(0,W.jsx)(Og,{children:(0,W.jsx)(ve,{to:`/iam/list-policies`,children:(0,W.jsxs)(Ag,{isActive:at,tooltip:`Policies`,children:[ot,st]})})}),e[150]=at,e[151]=ct);let lt;e[152]===n?lt=e[153]:(lt=n.startsWith(`/iam/list-roles`)||n.startsWith(`/iam/create-role`),e[152]=n,e[153]=lt);let ut,dt;e[154]===Symbol.for(`react.memo_cache_sentinel`)?(ut=(0,W.jsx)(lc,{className:`size-4`}),dt=(0,W.jsx)(`span`,{children:`Roles`}),e[154]=ut,e[155]=dt):(ut=e[154],dt=e[155]);let ft;e[156]===lt?ft=e[157]:(ft=(0,W.jsx)(Og,{children:(0,W.jsx)(ve,{to:`/iam/list-roles`,children:(0,W.jsxs)(Ag,{isActive:lt,tooltip:`Roles`,children:[ut,dt]})})}),e[156]=lt,e[157]=ft);let pt;e[158]===n?pt=e[159]:(pt=n.startsWith(`/iam/list-instance-profiles`)||n.startsWith(`/iam/create-instance-profile`),e[158]=n,e[159]=pt);let mt,ht;e[160]===Symbol.for(`react.memo_cache_sentinel`)?(mt=(0,W.jsx)(Ks,{className:`size-4`}),ht=(0,W.jsx)(`span`,{children:`Instance Profiles`}),e[160]=mt,e[161]=ht):(mt=e[160],ht=e[161]);let gt;e[162]===pt?gt=e[163]:(gt=(0,W.jsx)(Og,{children:(0,W.jsx)(ve,{to:`/iam/list-instance-profiles`,children:(0,W.jsxs)(Ag,{isActive:pt,tooltip:`Instance Profiles`,children:[mt,ht]})})}),e[162]=pt,e[163]=gt);let _t;e[164]!==gt||e[165]!==it||e[166]!==ct||e[167]!==ft?(_t=(0,W.jsxs)(Tg,{children:[et,(0,W.jsxs)(Dg,{children:[it,ct,ft,gt]})]}),e[164]=gt,e[165]=it,e[166]=ct,e[167]=ft,e[168]=_t):_t=e[168];let vt;e[169]===Symbol.for(`react.memo_cache_sentinel`)?(vt=(0,W.jsx)(Eg,{children:`S3`}),e[169]=vt):vt=e[169];let yt;e[170]===n?yt=e[171]:(yt=n.startsWith(`/s3/ls`),e[170]=n,e[171]=yt);let bt,xt;e[172]===Symbol.for(`react.memo_cache_sentinel`)?(bt=(0,W.jsx)(ac,{className:`size-4`}),xt=(0,W.jsx)(`span`,{children:`Buckets`}),e[172]=bt,e[173]=xt):(bt=e[172],xt=e[173]);let St;e[174]===yt?St=e[175]:(St=(0,W.jsx)(Og,{children:(0,W.jsx)(ve,{to:`/s3/ls`,children:(0,W.jsxs)(Ag,{isActive:yt,tooltip:`Buckets`,children:[bt,xt]})})}),e[174]=yt,e[175]=St);let Ct;e[176]!==a||e[177]!==n?(Ct=a&&(0,W.jsx)(Og,{children:(0,W.jsx)(ve,{to:`/s3/service-metrics`,children:(0,W.jsxs)(Ag,{isActive:n.startsWith(`/s3/service-metrics`),tooltip:`Service Metrics`,children:[(0,W.jsx)(Ls,{className:`size-4`}),(0,W.jsx)(`span`,{children:`Service Metrics`})]})})}),e[176]=a,e[177]=n,e[178]=Ct):Ct=e[178];let wt;e[179]!==St||e[180]!==Ct?(wt=(0,W.jsxs)(Tg,{children:[vt,(0,W.jsxs)(Dg,{children:[St,Ct]})]}),e[179]=St,e[180]=Ct,e[181]=wt):wt=e[181];let Tt;e[182]===a?Tt=e[183]:(Tt=a&&(0,W.jsxs)(Tg,{children:[(0,W.jsx)(Eg,{children:`Documentation`}),(0,W.jsx)(Dg,{children:(0,W.jsx)(Og,{children:(0,W.jsx)(`a`,{href:`https://docs.mulgadc.com`,target:`_blank`,rel:`noopener noreferrer`,children:(0,W.jsxs)(Ag,{tooltip:`Documentation`,children:[(0,W.jsx)(Rs,{className:`size-4`}),(0,W.jsx)(`span`,{children:`Docs`})]})})})})]}),e[182]=a,e[183]=Tt);let Et;e[184]!==_t||e[185]!==wt||e[186]!==Tt||e[187]!==ge||e[188]!==Ue||e[189]!==Je||e[190]!==$e||e[191]!==h?(Et=(0,W.jsxs)(wg,{children:[h,ge,Ue,Je,$e,_t,wt,Tt]}),e[184]=_t,e[185]=wt,e[186]=Tt,e[187]=ge,e[188]=Ue,e[189]=Je,e[190]=$e,e[191]=h,e[192]=Et):Et=e[192];let Dt;e[193]===Symbol.for(`react.memo_cache_sentinel`)?(Dt=(0,W.jsx)(Cg,{className:`mx-0 w-full`}),e[193]=Dt):Dt=e[193];let Ot,kt;e[194]===Symbol.for(`react.memo_cache_sentinel`)?(Ot=(0,W.jsx)(Zs,{className:`size-4`}),kt=(0,W.jsx)(`span`,{children:`Sign out`}),e[194]=Ot,e[195]=kt):(Ot=e[194],kt=e[195]);let jt;e[196]===s?jt=e[197]:(jt=(0,W.jsxs)(Sg,{children:[Dt,(0,W.jsx)(Dg,{children:(0,W.jsx)(Og,{children:(0,W.jsxs)(Ag,{onClick:s,tooltip:`Sign out`,children:[Ot,kt]})})})]}),e[196]=s,e[197]=jt);let Mt;e[198]===Symbol.for(`react.memo_cache_sentinel`)?(Mt=(0,W.jsx)(bg,{}),e[198]=Mt):Mt=e[198];let Nt;return e[199]!==Et||e[200]!==jt?(Nt=(0,W.jsxs)(vg,{collapsible:`icon`,children:[c,Et,jt,Mt]}),e[199]=Et,e[200]=jt,e[201]=Nt):Nt=e[201],Nt}function fb(e){return e.pathname}function pb(e){let t=(0,xs.c)(18),{error:n,reset:r}=e,i=M(),a=zi(),o;t[0]!==a||t[1]!==r||t[2]!==i?(o=function(){a.invalidateQueries(),r(),i.invalidate()},t[0]=a,t[1]=r,t[2]=i,t[3]=o):o=t[3];let s=o,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,W.jsx)(db,{}),t[4]=c):c=t[4];let l;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,W.jsx)(lb,{}),t[5]=l):l=t[5];let u,d;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,W.jsx)(`div`,{className:`flex justify-center`,children:(0,W.jsx)(Vs,{className:`size-12 text-destructive`})}),d=(0,W.jsx)(`h1`,{className:`text-2xl font-semibold`,children:`Something went wrong`}),t[6]=u,t[7]=d):(u=t[6],d=t[7]);let f=n.message||`An unexpected error occurred`,p;t[8]===f?p=t[9]:(p=(0,W.jsx)(`p`,{className:`text-muted-foreground`,children:f}),t[8]=f,t[9]=p);let m;t[10]===s?m=t[11]:(m=(0,W.jsx)(dr,{onClick:s,variant:`default`,children:`Try Again`}),t[10]=s,t[11]=m);let h;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,W.jsx)(ve,{to:`/`,children:(0,W.jsx)(dr,{variant:`outline`,children:`Go Home`})}),t[12]=h):h=t[12];let g;t[13]===m?g=t[14]:(g=(0,W.jsxs)(`div`,{className:`flex justify-center gap-2`,children:[m,h]}),t[13]=m,t[14]=g);let _;return t[15]!==g||t[16]!==p?(_=(0,W.jsxs)(W.Fragment,{children:[c,(0,W.jsxs)(`main`,{className:`flex flex-1 flex-col`,children:[l,(0,W.jsx)(`div`,{className:`flex flex-1 items-center justify-center p-6 pt-0`,children:(0,W.jsxs)(`div`,{className:`max-w-md space-y-4 text-center`,children:[u,d,p,g]})})]})]}),t[15]=g,t[16]=p,t[17]=_):_=t[17],_}var mb=Wo()({head:()=>({meta:[{title:`Mulga`}]}),component:()=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(gs,{}),(0,W.jsx)(db,{}),(0,W.jsxs)(`main`,{className:`flex flex-1 flex-col`,children:[(0,W.jsx)(lb,{}),(0,W.jsx)(`div`,{className:`flex flex-1 flex-col p-8`,children:(0,W.jsx)(ns,{})})]})]}),errorComponent:pb,notFoundComponent:ub}),hb=K(`/login`)({validateSearch:e=>({reason:e.reason===`expired`?`expired`:void 0}),beforeLoad:()=>{if(Hn())throw me({to:`/`})},component:q(()=>R(()=>import(`./login.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13])),`component`)}),gb=K(`/_auth`)({beforeLoad:()=>{if(!Hn())throw me({to:`/login`})},component:q(()=>R(()=>import(`./route.js`),__vite__mapDeps([14,1])),`component`)}),_b=a({queryKey:[`ec2`,`availabilityZones`],queryFn:async()=>{let e=new ay({});return await Tt().send(e)},staleTime:3e5}),vb=a({queryKey:[`ec2`,`instances`],queryFn:async()=>{let e=new cy({});return await Tt().send(e)},refetchInterval:5e3}),yb=e=>a({queryKey:[`ec2`,`instances`,e],queryFn:async()=>{let t=new cy({InstanceIds:[e]});return await Tt().send(t)},refetchInterval:5e3}),bb=e=>a({queryKey:[`ec2`,`iam-instance-profile-associations`,e],queryFn:async()=>{let t=new oy({Filters:[{Name:`instance-id`,Values:[e]}]});return await Tt().send(t)},refetchInterval:5e3}),xb=a({queryKey:[`ec2`,`instances`,`types`],queryFn:async()=>{let e=new ly({Filters:[{Name:`capacity`,Values:[`true`]}]});return await Tt().send(e)},refetchInterval:5e3}),Sb=a({queryKey:[`ec2`,`images`],queryFn:async()=>{let e=new sy({});return await Tt().send(e)}}),Cb=e=>a({queryKey:[`ec2`,`images`,e??`none`],queryFn:async()=>{if(!e)return{Images:[],$metadata:{}};let t=new sy({ImageIds:[e]});return await Tt().send(t)}}),wb=a({queryKey:[`ec2`,`keypairs`],queryFn:async()=>{let e=new dy({});return await Tt().send(e)}}),Tb=e=>a({queryKey:[`ec2`,`keypairs`,e],queryFn:async()=>{let t=new dy({KeyPairIds:[e]});return await Tt().send(t)}}),Eb=a({queryKey:[`ec2`,`regions`],queryFn:async()=>{let e=new my({});return await Tt().send(e)},staleTime:3e5}),Db=a({queryKey:[`ec2`,`subnets`],queryFn:async()=>{let e=new vy({});return await Tt().send(e)}}),Ob=e=>a({queryKey:[`ec2`,`subnets`,e],queryFn:async()=>{let t=new vy({SubnetIds:[e]});return await Tt().send(t)}}),kb=a({queryKey:[`ec2`,`snapshots`],queryFn:async()=>{let e=new _y({});return await Tt().send(e)},refetchInterval:5e3}),Ab=e=>a({queryKey:[`ec2`,`snapshots`,e],queryFn:async()=>{let t=new _y({SnapshotIds:[e]});return await Tt().send(t)},refetchInterval:5e3}),jb=a({queryKey:[`ec2`,`internetGateways`],queryFn:async()=>{let e=new uy({});return await Tt().send(e)},refetchInterval:5e3}),Mb=e=>a({queryKey:[`ec2`,`internetGateways`,e],queryFn:async()=>{let t=new uy({InternetGatewayIds:[e]});return await Tt().send(t)},refetchInterval:5e3}),Nb=a({queryKey:[`ec2`,`routeTables`],queryFn:async()=>{let e=new hy({});return await Tt().send(e)},refetchInterval:5e3}),Pb=e=>a({queryKey:[`ec2`,`routeTables`,e],queryFn:async()=>{let t=new hy({RouteTableIds:[e]});return await Tt().send(t)},refetchInterval:5e3}),Fb=a({queryKey:[`ec2`,`vpcs`],queryFn:async()=>{let e=new by({});return await Tt().send(e)}}),Ib=e=>a({queryKey:[`ec2`,`vpcs`,e],queryFn:async()=>{let t=new by({VpcIds:[e]});return await Tt().send(t)}}),Lb=a({queryKey:[`ec2`,`placementGroups`],queryFn:async()=>{let e=new py({});return await Tt().send(e)}}),Rb=e=>a({queryKey:[`ec2`,`placementGroups`,e],queryFn:async()=>{let t=new py({GroupIds:[e]});return await Tt().send(t)}}),zb=a({queryKey:[`ec2`,`securityGroups`],queryFn:async()=>{let e=new gy({});return await Tt().send(e)}}),Bb=e=>a({queryKey:[`ec2`,`securityGroups`,e],queryFn:async()=>{let t=new gy({GroupIds:[e]});return await Tt().send(t)}}),Vb=a({queryKey:[`ec2`,`addresses`],queryFn:async()=>{let e=new iy({});return await Tt().send(e)},refetchInterval:5e3}),Hb=e=>a({queryKey:[`ec2`,`addresses`,e],queryFn:async()=>{let t=new iy({AllocationIds:[e]});return await Tt().send(t)},refetchInterval:5e3}),Ub=a({queryKey:[`ec2`,`natGateways`],queryFn:async()=>{let e=new fy({});return await Tt().send(e)},refetchInterval:5e3}),Wb=e=>a({queryKey:[`ec2`,`natGateways`,e],queryFn:async()=>{let t=new fy({NatGatewayIds:[e]});return await Tt().send(t)},refetchInterval:5e3}),Gb=a({queryKey:[`ec2`,`volumes`],queryFn:async()=>{let e=new yy({});return await Tt().send(e)},refetchInterval:5e3}),Kb=e=>a({queryKey:[`ec2`,`volumes`,e],queryFn:async()=>{let t=new yy({VolumeIds:[e]});return await Tt().send(t)},refetchInterval:5e3}),qb=a({queryKey:[`s3`,`buckets`],queryFn:async()=>{let e=new rb({});return await tt().send(e)}}),Jb=(e,t)=>a({queryKey:[`s3`,`buckets`,e,`objects`,t??``],queryFn:async()=>{let n=new ib({Bucket:e,Prefix:t,Delimiter:`/`});return await tt().send(n)}}),Yb=K(`/_auth/`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(vb),e.queryClient.ensureQueryData(Gb),e.queryClient.ensureQueryData(Fb),e.queryClient.ensureQueryData(wb),e.queryClient.ensureQueryData(qb),e.queryClient.ensureQueryData(zb),e.queryClient.ensureQueryData(Ub),e.queryClient.ensureQueryData(Vb),e.queryClient.ensureQueryData(jb)])},head:()=>({meta:[{title:`Dashboard | Mulga`}]}),component:q(()=>R(()=>import(`./_auth.js`),__vite__mapDeps([15,1,2,3,4,5,6,16,17,18,19,20,21,22,8,12,23,24])),`component`)}),Xb=K(`/_auth/nodes`)({head:()=>({meta:[{title:`Nodes | Mulga`}]}),component:q(()=>R(()=>import(`./nodes.js`),__vite__mapDeps([25,1,2,3,16,17,26,20,22,8,12,23,24])),`component`)}),Zb=K(`/_auth/s3/service-metrics`)({head:()=>({meta:[{title:`Service Metrics | S3 | Mulga`}]}),component:q(()=>R(()=>import(`./service-metrics.js`),__vite__mapDeps([27,1,16,17,26,20,22,2,3,8,12,23,24])),`component`)}),Qb=K(`/_auth/s3/ls/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(qb)},head:()=>({meta:[{title:`Buckets | S3 | Mulga`}]}),component:q(()=>R(()=>import(`./ls.js`),__vite__mapDeps([28,1,2,3,4,5,6,7,8,29,17,30,20])),`component`)}),$b=K(`/_auth/s3/(buckets)/create-bucket`)({head:()=>({meta:[{title:`Create Bucket | S3 | Mulga`}]}),component:q(()=>R(()=>import(`./create-bucket.js`),__vite__mapDeps([31,1,2,3,32,5,4,6,33,11,34,35,7,8,36,18,37,38,39,40,20,13])),`component`)}),ex=K(`/_auth/iam/(users)/create-user`)({head:()=>({meta:[{title:`Create User | IAM | Mulga`}]}),component:q(()=>R(()=>import(`./create-user.js`),__vite__mapDeps([41,1,42,2,3,4,5,6,33,11,34,35,7,8,36,18,37,38,39,40,20,13,43,44])),`component`)}),tx=K(`/_auth/iam/(roles)/create-role`)({head:()=>({meta:[{title:`Create Role | IAM | Mulga`}]}),component:q(()=>R(()=>import(`./create-role.js`),__vite__mapDeps([45,1,42,2,3,4,5,6,33,11,34,35,7,8,36,18,37,38,39,40,20,13,46,47,44,43])),`component`)}),nx=K(`/_auth/iam/(policies)/create-policy`)({head:()=>({meta:[{title:`Create Policy | IAM | Mulga`}]}),component:q(()=>R(()=>import(`./create-policy.js`),__vite__mapDeps([48,1,42,2,3,4,5,6,33,11,34,35,7,8,36,18,37,38,39,40,20,13,46,47,44,43])),`component`)}),rx=K(`/_auth/iam/(instance-profiles)/create-instance-profile`)({head:()=>({meta:[{title:`Create Instance Profile | IAM | Mulga`}]}),component:q(()=>R(()=>import(`./create-instance-profile.js`),__vite__mapDeps([49,1,42,2,3,4,5,6,33,11,34,35,7,8,36,18,37,38,39,40,20,13,43,44])),`component`)}),ix=a({queryKey:[`iam`,`users`],queryFn:async()=>{let e=new nb({});return await Dt().send(e)},staleTime:3e5}),ax=e=>a({queryKey:[`iam`,`users`,e],queryFn:async()=>{let t=new Jy({UserName:e});return await Dt().send(t)},staleTime:3e5}),ox=e=>a({queryKey:[`iam`,`access-keys`,e],queryFn:async()=>{let t=new Yy({UserName:e});return await Dt().send(t)},staleTime:3e5}),sx=a({queryKey:[`iam`,`policies`],queryFn:async()=>{let e=new eb({Scope:`Local`});return await Dt().send(e)},staleTime:3e5}),cx=e=>a({queryKey:[`iam`,`policies`,e],queryFn:async()=>{let t=new Gy({PolicyArn:e});return await Dt().send(t)},staleTime:3e5}),lx=(e,t)=>a({queryKey:[`iam`,`policy-versions`,e,t],queryFn:async()=>{let n=new Ky({PolicyArn:e,VersionId:t});return await Dt().send(n)},staleTime:3e5}),ux=e=>a({queryKey:[`iam`,`attached-user-policies`,e],queryFn:async()=>{let t=new Zy({UserName:e});return await Dt().send(t)},staleTime:3e5}),dx=a({queryKey:[`iam`,`roles`],queryFn:async()=>{let e=new tb({});return await Dt().send(e)},staleTime:3e5}),fx=e=>a({queryKey:[`iam`,`roles`,e],queryFn:async()=>{let t=new qy({RoleName:e});return await Dt().send(t)},staleTime:3e5}),px=e=>a({queryKey:[`iam`,`attached-role-policies`,e],queryFn:async()=>{let t=new Xy({RoleName:e});return await Dt().send(t)},staleTime:3e5}),mx=a({queryKey:[`iam`,`instance-profiles`],queryFn:async()=>{let e=new Qy({});return await Dt().send(e)},staleTime:3e5}),hx=e=>a({queryKey:[`iam`,`instance-profiles`,e],queryFn:async()=>{let t=new Wy({InstanceProfileName:e});return await Dt().send(t)},staleTime:3e5}),gx=e=>a({queryKey:[`iam`,`instance-profiles-for-role`,e],queryFn:async()=>{let t=new $y({RoleName:e});return await Dt().send(t)},staleTime:3e5}),_x=K(`/_auth/eks/(clusters)/create-cluster`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Fb),e.queryClient.ensureQueryData(Db),e.queryClient.ensureQueryData(dx),e.queryClient.ensureQueryData(Sb)])},head:()=>({meta:[{title:`Create Cluster | EKS | Mulga`}]}),component:q(()=>R(()=>import(`./create-cluster.js`),__vite__mapDeps([50,1,2,3,51,4,5,6,33,44,52,42,53,7,8,54,55,10,36,18,11,29,17,34,37,56,57,39,40,20,13,38,58,59])),`component`)}),vx=K(`/_auth/ec2/(vpc)/create-vpc`)({head:()=>({meta:[{title:`Create VPC | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./create-vpc.js`),__vite__mapDeps([60,1,61,2,3,4,5,6,33,52,7,8,54,55,10,36,18,11,34,19,35,37,38,39,40,20,13,62])),`component`)}),yx=K(`/_auth/ec2/(volumes)/create-volume`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(_b)},head:()=>({meta:[{title:`Create Volume | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./create-volume.js`),__vite__mapDeps([63,1,61,2,3,4,5,6,33,52,54,7,8,55,10,36,18,11,29,17,34,35,37,38,39,40,20,13,62])),`component`)}),bx=K(`/_auth/ec2/(target-groups)/create-target-group`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Fb)},head:()=>({meta:[{title:`Create Target Group | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./create-target-group.js`),__vite__mapDeps([64,1,65,2,3,4,5,6,33,11,29,17,34,35,7,8,36,18,37,38,66,9,10,54,55,67,68,13,39,40,20,69])),`component`)}),xx=K(`/_auth/ec2/(subnet)/create-subnet`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Fb),e.queryClient.ensureQueryData(_b)])},head:()=>({meta:[{title:`Create Subnet | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./create-subnet.js`),__vite__mapDeps([70,1,2,3,61,4,5,6,33,52,54,7,8,55,10,36,18,11,29,17,34,35,37,38,39,40,20,13,62])),`component`)}),Sx=K(`/_auth/ec2/(snapshots)/create-snapshot`)({validateSearch:e=>({volumeId:typeof e.volumeId==`string`?e.volumeId:void 0}),loader:async({context:e})=>{await e.queryClient.ensureQueryData(Gb)},head:()=>({meta:[{title:`Create Snapshot | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./create-snapshot.js`),__vite__mapDeps([71,1,61,2,3,4,5,6,33,52,54,7,8,55,10,36,18,11,29,17,34,35,37,38,39,40,20,13,47,62])),`component`)}),Cx=K(`/_auth/ec2/(security-groups)/create-security-group`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Fb)},head:()=>({meta:[{title:`Create Security Group | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./create-security-group.js`),__vite__mapDeps([72,1,2,3,61,4,5,6,33,52,54,7,8,55,10,36,18,11,29,17,34,35,37,38,39,40,20,13,62])),`component`)}),wx=K(`/_auth/ec2/(route-tables)/create-route-table`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Fb)},head:()=>({meta:[{title:`Create Route Table | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./create-route-table.js`),__vite__mapDeps([73,1,2,3,61,4,5,6,33,52,54,7,8,55,10,36,18,11,29,17,34,39,40,20,13,62])),`component`)}),Tx=K(`/_auth/ec2/(placement-groups)/create-placement-group`)({head:()=>({meta:[{title:`Create Placement Group | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./create-placement-group.js`),__vite__mapDeps([74,1,61,2,3,4,5,6,33,52,54,7,8,55,10,36,18,11,34,35,37,38,39,40,20,13,62])),`component`)}),Ex=K(`/_auth/ec2/(nat-gateways)/create-nat-gateway`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Db),e.queryClient.ensureQueryData(Vb)])},head:()=>({meta:[{title:`Create NAT Gateway | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./create-nat-gateway.js`),__vite__mapDeps([75,1,2,3,4,5,6,61,33,52,54,7,8,55,10,36,18,11,29,17,34,35,37,38,39,40,20,13,62])),`component`)}),Dx=a({queryKey:[`acm`,`certificates`],queryFn:async()=>{let e=new ry({});return await ht().send(e)}}),Ox=5e3,kx=a({queryKey:[`elbv2`,`loadBalancers`],queryFn:async()=>{let e=new Ly({});return await vt().send(e)},refetchInterval:e=>(e.state.data?.LoadBalancers??[]).some(e=>e.State?.Code===`provisioning`)?Ox:!1}),Ax=e=>a({queryKey:[`elbv2`,`loadBalancers`,e],queryFn:async()=>{let t=new Ly({LoadBalancerArns:[e]});return await vt().send(t)},refetchInterval:e=>(e.state.data?.LoadBalancers?.[0])?.State?.Code===`provisioning`?Ox:!1}),jx=e=>a({queryKey:[`elbv2`,`loadBalancers`,e,`attributes`],queryFn:async()=>{let t=new Iy({LoadBalancerArn:e});return await vt().send(t)}}),Mx=a({queryKey:[`elbv2`,`targetGroups`],queryFn:async()=>{let e=new Hy({});return await vt().send(e)}}),Nx=e=>a({queryKey:[`elbv2`,`targetGroups`,e],queryFn:async()=>{let t=new Hy({TargetGroupArns:[e]});return await vt().send(t)}}),Px=e=>a({queryKey:[`elbv2`,`targetGroups`,e,`attributes`],queryFn:async()=>{let t=new Vy({TargetGroupArn:e});return await vt().send(t)}}),Fx=e=>a({queryKey:[`elbv2`,`listeners`,e],queryFn:async()=>{let t=new Fy({LoadBalancerArn:e});return await vt().send(t)}}),Ix=e=>a({queryKey:[`elbv2`,`listeners`,e,`rules`],queryFn:async()=>{let t=new Ry({ListenerArn:e});return await vt().send(t)}}),Lx=e=>a({queryKey:[`elbv2`,`targetGroups`,e,`health`],queryFn:async()=>{let t=new Uy({TargetGroupArn:e});return await vt().send(t)}}),Rx=a({queryKey:[`elbv2`,`sslPolicies`],queryFn:async()=>{let e=new zy({});return await vt().send(e)},staleTime:1/0}),zx=e=>a({queryKey:[`elbv2`,`tags`,...e],queryFn:async()=>{let t=new By({ResourceArns:e});return await vt().send(t)},enabled:e.length>0}),Bx=K(`/_auth/ec2/(load-balancers)/create-load-balancer`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Fb),e.queryClient.ensureQueryData(Db),e.queryClient.ensureQueryData(zb),e.queryClient.ensureQueryData(Mx),e.queryClient.ensureQueryData(Dx),e.queryClient.ensureQueryData(Rx)])},head:()=>({meta:[{title:`Create Load Balancer | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./create-load-balancer.js`),__vite__mapDeps([76,1,2,3,77,4,5,6,53,7,8,33,39,13,47,65,54,55,10,36,18,11,29,17,34,67,35,37,38,68,66,9,40,20,69])),`component`)}),Vx=K(`/_auth/ec2/(key)/import-key-pair`)({head:()=>({meta:[{title:`Import Key Pair | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./import-key-pair.js`),__vite__mapDeps([78,1,61,2,3,4,5,6,33,52,11,34,35,7,8,36,18,37,38,39,40,20,13,47,62])),`component`)}),Hx=K(`/_auth/ec2/(key)/create-key-pair`)({head:()=>({meta:[{title:`Create Key Pair | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./create-key-pair.js`),__vite__mapDeps([79,1,61,2,3,4,5,6,33,52,53,7,8,11,34,36,80,35,18,37,38,57,39,40,20,13,62])),`component`)}),Ux=K(`/_auth/ec2/(internet-gateways)/create-internet-gateway`)({head:()=>({meta:[{title:`Create Internet Gateway | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./create-internet-gateway.js`),__vite__mapDeps([81,1,61,2,3,4,5,6,33,52,11,34,35,7,8,36,18,37,38,39,40,20,13,62])),`component`)}),Wx=K(`/_auth/ec2/(instances)/run-instances`)({loader:async({context:e})=>{await Promise.all([e.queryClient.ensureQueryData(Sb),e.queryClient.ensureQueryData(wb),e.queryClient.ensureQueryData(xb),e.queryClient.ensureQueryData(Db),e.queryClient.ensureQueryData(Lb),e.queryClient.ensureQueryData(Fb),e.queryClient.ensureQueryData(zb)])},head:()=>({meta:[{title:`Run Instances | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./run-instances.js`),__vite__mapDeps([82,1,2,3,61,4,5,6,33,52,7,8,9,10,54,55,36,18,11,29,17,34,35,37,38,39,20,13,62])),`component`)}),Gx=K(`/_auth/ec2/(elastic-ips)/allocate-address`)({head:()=>({meta:[{title:`Allocate Elastic IP | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./allocate-address.js`),__vite__mapDeps([83,1,61,2,3,4,5,6,33,52,11,34,35,7,8,36,18,37,38,39,40,20,13,62])),`component`)}),Kx=K(`/_auth/s3/ls/$bucket`)({component:q(()=>R(()=>import(`./route2.js`),__vite__mapDeps([84,1])),`component`)}),qx=K(`/_auth/s3/ls/$bucket/`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(Jb(t.bucket))},head:({params:e})=>({meta:[{title:`${e.bucket} | S3 | Mulga`}]}),component:q(()=>R(()=>import(`./_bucket.js`),__vite__mapDeps([85,1,2,3,32,5,4,6,33,86,7,8,80,68,87,53,39,29,17,34,20])),`component`)}),Jx=K(`/_auth/iam/(users)/list-users/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(ix)},head:()=>({meta:[{title:`Users | IAM | Mulga`}]}),component:q(()=>R(()=>import(`./list-users.js`),__vite__mapDeps([88,1,4,2,3,5,6,7,8,29,17,30,20])),`component`)}),Yx=K(`/_auth/iam/(roles)/list-roles/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(dx)},head:()=>({meta:[{title:`Roles | IAM | Mulga`}]}),component:q(()=>R(()=>import(`./list-roles.js`),__vite__mapDeps([89,1,4,2,3,5,6,7,8,29,17,30,20])),`component`)}),Xx=K(`/_auth/iam/(policies)/list-policies/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(sx)},head:()=>({meta:[{title:`Policies | IAM | Mulga`}]}),component:q(()=>R(()=>import(`./list-policies.js`),__vite__mapDeps([90,1,4,2,3,5,6,7,8,29,17,30,20])),`component`)}),Zx=K(`/_auth/iam/(instance-profiles)/list-instance-profiles/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(mx)},head:()=>({meta:[{title:`Instance Profiles | IAM | Mulga`}]}),component:q(()=>R(()=>import(`./list-instance-profiles.js`),__vite__mapDeps([91,1,4,2,3,5,6,7,8,29,17,30,20])),`component`)}),Qx=3e4,$x=3e5,eS=a({queryKey:[`eks`,`clusters`],queryFn:async()=>{let e=new Ny({});return await Ze().send(e)},staleTime:Qx}),tS=e=>a({queryKey:[`eks`,`clusters`,e],queryFn:async()=>{let t=new Dy({name:e});return await Ze().send(t)},staleTime:Qx}),nS=e=>a({queryKey:[`eks`,`clusters`,e,`nodegroups`],queryFn:async()=>{let t=new Py({clusterName:e});return await Ze().send(t)},staleTime:Qx}),rS=(e,t)=>a({queryKey:[`eks`,`clusters`,e,`nodegroups`,t],queryFn:async()=>{let n=new Oy({clusterName:e,nodegroupName:t});return await Ze().send(n)},staleTime:Qx}),iS=e=>a({queryKey:[`eks`,`clusters`,e,`access-entries`],queryFn:async()=>{let t=new ky({clusterName:e});return await Ze().send(t)},staleTime:Qx}),aS=(e,t)=>a({queryKey:[`eks`,`clusters`,e,`access-entries`,t],queryFn:async()=>{let n=new wy({clusterName:e,principalArn:t});return await Ze().send(n)},staleTime:Qx}),oS=(e,t)=>a({queryKey:[`eks`,`clusters`,e,`access-entries`,t,`policies`],queryFn:async()=>{let n=new My({clusterName:e,principalArn:t});return await Ze().send(n)},staleTime:Qx});a({queryKey:[`eks`,`access-policies`],queryFn:async()=>{let e=new Ay({});return await Ze().send(e)},staleTime:$x});var sS=a({queryKey:[`eks`,`addon-versions`],queryFn:async()=>{let e=new Ey({});return await Ze().send(e)},staleTime:$x}),cS=e=>a({queryKey:[`eks`,`clusters`,e,`addons`],queryFn:async()=>{let t=new jy({clusterName:e});return await Ze().send(t)},staleTime:Qx}),lS=(e,t)=>a({queryKey:[`eks`,`clusters`,e,`addons`,t],queryFn:async()=>{let n=new Ty({clusterName:e,addonName:t});return await Ze().send(n)},staleTime:Qx}),uS=K(`/_auth/eks/(clusters)/list-clusters/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(eS)},head:()=>({meta:[{title:`Clusters | EKS | Mulga`}]}),component:q(()=>R(()=>import(`./list-clusters.js`),__vite__mapDeps([92,1,4,2,3,5,6,7,8,29,17,30,20])),`component`)}),dS=a({queryKey:[`ecr`,`repositories`],queryFn:async()=>{let e=new Sy({});return await ut().send(e)}}),fS=e=>a({queryKey:[`ecr`,`repositories`,e,`images`],queryFn:async()=>{let t=new xy({repositoryName:e});return await ut().send(t)}}),pS=e=>a({queryKey:[`ecr`,`repositories`,e,`policy`],queryFn:async()=>{try{let t=new Cy({repositoryName:e});return(await ut().send(t)).policyText??null}catch(e){if(e instanceof rt)return null;throw e}}}),mS=K(`/_auth/ecr/(repositories)/list-repositories/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(dS)},head:()=>({meta:[{title:`Repositories | ECR | Mulga`}]}),component:q(()=>R(()=>import(`./list-repositories.js`),__vite__mapDeps([93,1,2,3,4,5,6,94,33,53,7,8,29,17,20,13])),`component`)}),hS=K(`/_auth/ec2/(vpc)/describe-vpcs/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Fb)},head:()=>({meta:[{title:`VPCs | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./describe-vpcs.js`),__vite__mapDeps([95,1,2,3,4,5,6,7,8,29,17,30,20,21])),`component`)}),gS=K(`/_auth/ec2/(volumes)/describe-volumes/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Gb)},head:()=>({meta:[{title:`Volumes | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./describe-volumes.js`),__vite__mapDeps([96,1,4,2,3,5,6,7,8,29,17,30,20,21])),`component`)}),_S=K(`/_auth/ec2/(target-groups)/describe-target-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Mx)},head:()=>({meta:[{title:`Target Groups | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./describe-target-groups.js`),__vite__mapDeps([97,1,4,2,3,5,6,7,8,16,17,29,20])),`component`)}),vS=K(`/_auth/ec2/(subnet)/describe-subnets/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Db)},head:()=>({meta:[{title:`Subnets | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./describe-subnets.js`),__vite__mapDeps([98,1,2,3,4,5,6,7,8,29,17,30,20,21])),`component`)}),yS=K(`/_auth/ec2/(snapshots)/describe-snapshots/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(kb)},head:()=>({meta:[{title:`Snapshots | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./describe-snapshots.js`),__vite__mapDeps([99,1,4,2,3,5,6,7,8,29,17,30,20,21])),`component`)}),bS=K(`/_auth/ec2/(security-groups)/describe-security-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(zb)},head:()=>({meta:[{title:`Security Groups | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./describe-security-groups.js`),__vite__mapDeps([100,1,4,2,3,5,6,7,8,29,17,30,20])),`component`)}),xS=K(`/_auth/ec2/(route-tables)/describe-route-tables/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Nb)},head:()=>({meta:[{title:`Route Tables | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./describe-route-tables.js`),__vite__mapDeps([101,1,2,3,4,5,6,7,8,29,17,30,20,22])),`component`)}),SS=K(`/_auth/ec2/(placement-groups)/describe-placement-groups/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Lb)},head:()=>({meta:[{title:`Placement Groups | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./describe-placement-groups.js`),__vite__mapDeps([102,1,4,2,3,5,6,7,8,29,17,30,20,21])),`component`)}),CS=K(`/_auth/ec2/(nat-gateways)/describe-nat-gateways/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Ub)},head:()=>({meta:[{title:`NAT Gateways | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./describe-nat-gateways.js`),__vite__mapDeps([103,1,2,3,4,5,6,7,8,29,17,30,20,21])),`component`)}),wS=K(`/_auth/ec2/(load-balancers)/describe-load-balancers/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(kx)},head:()=>({meta:[{title:`Load Balancers | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./describe-load-balancers.js`),__vite__mapDeps([104,1,2,3,4,5,6,7,8,29,17,20,21])),`component`)}),TS=K(`/_auth/ec2/(key)/describe-key-pairs/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(wb)},head:()=>({meta:[{title:`Key Pairs | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./describe-key-pairs.js`),__vite__mapDeps([105,1,4,2,3,5,6,7,8,29,17,30,20])),`component`)}),ES=K(`/_auth/ec2/(internet-gateways)/describe-internet-gateways/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(jb)},head:()=>({meta:[{title:`Internet Gateways | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./describe-internet-gateways.js`),__vite__mapDeps([106,1,2,3,4,5,6,7,8,29,17,30,20])),`component`)}),DS=K(`/_auth/ec2/(instances)/describe-instances/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(vb)},head:()=>({meta:[{title:`Instances | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./describe-instances.js`),__vite__mapDeps([107,1,4,2,3,5,6,7,8,29,17,30,20,21])),`component`)}),OS=K(`/_auth/ec2/(images)/describe-images/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Sb)},head:()=>({meta:[{title:`Images | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./describe-images.js`),__vite__mapDeps([108,1,29,17,30,4,2,3,5,6,20,21,58])),`component`)}),kS=K(`/_auth/ec2/(elastic-ips)/describe-addresses/`)({loader:async({context:e})=>{await e.queryClient.ensureQueryData(Vb)},head:()=>({meta:[{title:`Elastic IPs | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./describe-addresses.js`),__vite__mapDeps([109,1,2,3,4,5,6,7,8,29,17,30,20])),`component`)}),AS=K(`/_auth/s3/ls/$bucket/$`)({loader:async({context:e,params:t})=>{let n=bn(t._splat??``);await e.queryClient.ensureQueryData(Jb(t.bucket,n))},head:({params:e})=>({meta:[{title:`${on(e._splat??``,`${e.bucket}/`)} | S3 | Mulga`}]}),component:q(()=>R(()=>import(`./_.js`),__vite__mapDeps([110,1,2,3,32,5,4,6,33,86,7,8,80,68,87,53,39,29,17,34])),`component`)}),jS=K(`/_auth/iam/(users)/list-users/$userName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(ax(t.userName)),e.queryClient.ensureQueryData(ox(t.userName)),e.queryClient.ensureQueryData(ux(t.userName)),e.queryClient.ensureQueryData(sx)])},head:({params:e})=>({meta:[{title:`${e.userName} | IAM | Mulga`}]}),component:q(()=>R(()=>import(`./_userName.js`),__vite__mapDeps([111,1,2,3,42,4,5,6,33,53,7,8,29,17,34,36,68,57,87,112,39,20,21,38])),`component`)}),MS=K(`/_auth/iam/(roles)/list-roles/$roleName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(fx(t.roleName)),e.queryClient.ensureQueryData(px(t.roleName)),e.queryClient.ensureQueryData(gx(t.roleName)),e.queryClient.ensureQueryData(sx)])},head:({params:e})=>({meta:[{title:`${e.roleName} | IAM | Mulga`}]}),component:q(()=>R(()=>import(`./_roleName.js`),__vite__mapDeps([113,1,2,3,4,5,6,42,33,7,8,29,17,34,68,87,53,112,39,20,59])),`component`)}),NS=K(`/_auth/iam/(policies)/list-policies/$policyArn`)({loader:async({context:e,params:t})=>{let n=decodeURIComponent(t.policyArn),r=await e.queryClient.ensureQueryData(cx(n)),i=r.Policy?.DefaultVersionId;return i&&await e.queryClient.ensureQueryData(lx(n,i)),r},head:({loaderData:e})=>({meta:[{title:`${e?.Policy?.PolicyName??`Policy`} | IAM | Mulga`}]}),component:q(()=>R(()=>import(`./_policyArn.js`),__vite__mapDeps([114,1,2,3,42,4,5,6,33,7,8,29,17,34,68,87,53,112,39,20,59])),`component`)}),PS=K(`/_auth/iam/(instance-profiles)/list-instance-profiles/$instanceProfileName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(hx(t.instanceProfileName)),e.queryClient.ensureQueryData(dx)])},head:({params:e})=>({meta:[{title:`${e.instanceProfileName} | IAM | Mulga`}]}),component:q(()=>R(()=>import(`./_instanceProfileName.js`),__vite__mapDeps([115,1,2,3,4,5,6,42,33,7,8,29,17,34,68,87,53,112,39,20])),`component`)}),FS=K(`/_auth/eks/(clusters)/list-clusters/$clusterName`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(tS(t.clusterName)),e.queryClient.ensureQueryData(nS(t.clusterName)),e.queryClient.ensureQueryData(iS(t.clusterName))])},head:({params:e})=>({meta:[{title:`${e.clusterName} | EKS | Mulga`}]}),component:q(()=>R(()=>import(`./_clusterName.js`),__vite__mapDeps([116,1,2,3,4,5,6,51,33,44,52,53,7,8,117,55,10,11,16,17,29,34,35,36,18,37,38,68,87,112,39,20,22,13,46,47])),`component`)}),IS=K(`/_auth/ecr/(repositories)/list-repositories/$id`)({loader:async({context:e,params:t})=>{let n=decodeURIComponent(t.id);await Promise.all([e.queryClient.ensureQueryData(dS),e.queryClient.ensureQueryData(fS(n)),e.queryClient.ensureQueryData(pS(n))])},head:({params:e})=>({meta:[{title:`${decodeURIComponent(e.id)} | Repository | Mulga`}]}),component:q(()=>R(()=>import(`./_id17.js`),__vite__mapDeps([118,1,2,3,4,5,6,94,33,53,7,8,117,55,10,29,17,20,22,47])),`component`)}),LS=K(`/_auth/ec2/(vpc)/describe-vpcs/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Ib(t.id)),e.queryClient.ensureQueryData(Db)])},head:({params:e})=>({meta:[{title:`${e.id} | VPC | Mulga`}]}),component:q(()=>R(()=>import(`./_id16.js`),__vite__mapDeps([119,1,2,3,4,5,6,61,33,52,7,8,29,17,34,68,87,53,112,39,20,21])),`component`)}),RS=K(`/_auth/ec2/(volumes)/modify-volume/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(Kb(t.id))},head:({params:e})=>({meta:[{title:`Resize ${e.id} | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./_id15.js`),__vite__mapDeps([120,1,61,2,3,4,5,6,33,52,11,29,17,34,39,40,7,8,20,13,62])),`component`)}),zS=K(`/_auth/ec2/(volumes)/describe-volumes/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Kb(t.id)),e.queryClient.ensureQueryData(vb)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./_id14.js`),__vite__mapDeps([121,1,2,3,4,5,6,61,33,52,53,7,8,54,55,10,36,18,29,17,34,68,87,112,39,20,21,13])),`component`)}),BS=K(`/_auth/ec2/(target-groups)/describe-target-groups/$id`)({loader:async({context:e,params:t})=>{let n=decodeURIComponent(t.id);await Promise.all([e.queryClient.ensureQueryData(Nx(n)),e.queryClient.ensureQueryData(Px(n)),e.queryClient.ensureQueryData(zx([n])),e.queryClient.ensureQueryData(vb)])},head:({params:e})=>({meta:[{title:`${decodeURIComponent(e.id)} | Target Group | Mulga`}]}),component:q(()=>R(()=>import(`./_id13.js`),__vite__mapDeps([122,1,2,3,65,4,5,6,33,53,7,8,117,55,10,16,17,29,34,68,87,112,123,54,36,18,67,13,39,20])),`component`)}),VS=K(`/_auth/ec2/(subnet)/describe-subnets/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(Ob(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | Subnet | Mulga`}]}),component:q(()=>R(()=>import(`./_id12.js`),__vite__mapDeps([124,1,2,3,4,5,6,61,33,52,7,8,29,17,34,68,87,53,112,39,20,21])),`component`)}),HS=K(`/_auth/ec2/(snapshots)/describe-snapshots/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Ab(t.id)),e.queryClient.ensureQueryData(Eb)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./_id11.js`),__vite__mapDeps([125,1,2,3,4,5,6,61,33,52,53,7,8,29,17,34,37,68,87,112,39,20,21,13])),`component`)}),US=K(`/_auth/ec2/(security-groups)/describe-security-groups/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(Bb(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | Security Group | Mulga`}]}),component:q(()=>R(()=>import(`./_id10.js`),__vite__mapDeps([126,1,4,2,3,5,6,61,33,52,53,7,8,54,55,10,36,18,11,29,17,34,67,68,87,112,39,20,13,62])),`component`)}),WS=K(`/_auth/ec2/(route-tables)/describe-route-tables/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Pb(t.id)),e.queryClient.ensureQueryData(jb),e.queryClient.ensureQueryData(Ub),e.queryClient.ensureQueryData(Db)])},head:({params:e})=>({meta:[{title:`${e.id} | Route Table | Mulga`}]}),component:q(()=>R(()=>import(`./_id9.js`),__vite__mapDeps([127,1,2,3,4,5,6,61,33,52,7,8,54,55,10,36,18,11,29,17,34,68,87,53,112,39,20,22,13,62])),`component`)}),GS=K(`/_auth/ec2/(placement-groups)/describe-placement-groups/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Rb(t.id)),e.queryClient.ensureQueryData(vb)])},head:({params:e})=>({meta:[{title:`${e.id} | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./_id8.js`),__vite__mapDeps([128,1,4,2,3,5,6,61,33,52,7,8,29,17,34,68,87,53,112,39,20,21])),`component`)}),KS=K(`/_auth/ec2/(nat-gateways)/describe-nat-gateways/$id`)({loader:async({context:e,params:t})=>{await e.queryClient.ensureQueryData(Wb(t.id))},head:({params:e})=>({meta:[{title:`${e.id} | NAT Gateway | Mulga`}]}),component:q(()=>R(()=>import(`./_id7.js`),__vite__mapDeps([129,1,2,3,4,5,6,61,33,52,7,8,29,17,34,68,87,53,112,39,20,21])),`component`)}),qS=K(`/_auth/ec2/(load-balancers)/describe-load-balancers/$id`)({loader:async({context:e,params:t})=>{let n=decodeURIComponent(t.id);await Promise.all([e.queryClient.ensureQueryData(Ax(n)),e.queryClient.ensureQueryData(Fx(n)),e.queryClient.ensureQueryData(jx(n)),e.queryClient.ensureQueryData(zx([n])),e.queryClient.ensureQueryData(Mx),e.queryClient.ensureQueryData(Db)])},head:({params:e})=>({meta:[{title:`${decodeURIComponent(e.id)} | Load Balancer | Mulga`}]}),component:q(()=>R(()=>import(`./_id6.js`),__vite__mapDeps([130,1,2,3,77,4,5,6,53,7,8,33,39,13,47,65,54,55,10,36,18,117,11,29,17,34,68,87,112,123,67,20,21,69])),`component`)}),JS=K(`/_auth/ec2/(key)/describe-key-pairs/$id`)({loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData(Tb(t.id)),head:({loaderData:e})=>({meta:[{title:`${e?.KeyPairs?.[0]?.KeyName??`Key Pair`} | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./_id5.js`),__vite__mapDeps([131,1,2,3,61,4,5,6,33,52,7,8,29,17,34,68,87,53,112,39,20])),`component`)}),YS=K(`/_auth/ec2/(internet-gateways)/describe-internet-gateways/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Mb(t.id)),e.queryClient.ensureQueryData(Fb)])},head:({params:e})=>({meta:[{title:`${e.id} | Internet Gateway | Mulga`}]}),component:q(()=>R(()=>import(`./_id4.js`),__vite__mapDeps([132,1,2,3,4,5,6,61,33,52,7,8,54,55,10,36,18,29,17,34,68,87,53,112,39,20])),`component`)}),XS=K(`/_auth/ec2/(instances)/describe-instances/$id`)({loader:async({context:e,params:t})=>{let[n]=await Promise.all([e.queryClient.ensureQueryData(yb(t.id)),e.queryClient.ensureQueryData(xb)]),r=n.Reservations?.[0]?.Instances?.[0]?.ImageId;return await e.queryClient.ensureQueryData(Cb(r)),n},head:({loaderData:e})=>({meta:[{title:`${e?.Reservations?.[0]?.Instances?.[0]?.InstanceId??`Instance`} | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./_id3.js`),__vite__mapDeps([133,1,2,3,4,5,6,61,33,52,53,7,8,54,55,10,36,18,16,17,29,34,56,68,87,112,39,20,21,13,47,23,24,134])),`component`)}),ZS=K(`/_auth/ec2/(images)/describe-images/$id`)({loader:async({context:e,params:t})=>await e.queryClient.ensureQueryData(Cb(t.id)),head:({loaderData:e})=>({meta:[{title:`${e?.Images?.[0]?.Name??`Image`} | EC2 | Mulga`}]}),component:q(()=>R(()=>import(`./_id2.js`),__vite__mapDeps([135,1,29,17,34,4,2,3,5,6,20,21,58,134,112])),`component`)}),QS=K(`/_auth/ec2/(elastic-ips)/describe-addresses/$id`)({loader:async({context:e,params:t})=>{await Promise.all([e.queryClient.ensureQueryData(Hb(t.id)),e.queryClient.ensureQueryData(vb)])},head:({params:e})=>({meta:[{title:`${e.id} | Elastic IP | Mulga`}]}),component:q(()=>R(()=>import(`./_id.js`),__vite__mapDeps([136,1,2,3,61,4,5,6,33,52,7,8,54,55,10,36,18,29,17,34,68,87,53,112,39,20])),`component`)}),$S=hb.update({id:`/login`,path:`/login`,getParentRoute:()=>mb}),$=gb.update({id:`/_auth`,getParentRoute:()=>mb}),eC=Yb.update({id:`/`,path:`/`,getParentRoute:()=>$}),tC=Xb.update({id:`/nodes`,path:`/nodes`,getParentRoute:()=>$}),nC=Zb.update({id:`/s3/service-metrics`,path:`/s3/service-metrics`,getParentRoute:()=>$}),rC=Qb.update({id:`/s3/ls/`,path:`/s3/ls/`,getParentRoute:()=>$}),iC=$b.update({id:`/s3/(buckets)/create-bucket`,path:`/s3/create-bucket`,getParentRoute:()=>$}),aC=ex.update({id:`/iam/(users)/create-user`,path:`/iam/create-user`,getParentRoute:()=>$}),oC=tx.update({id:`/iam/(roles)/create-role`,path:`/iam/create-role`,getParentRoute:()=>$}),sC=nx.update({id:`/iam/(policies)/create-policy`,path:`/iam/create-policy`,getParentRoute:()=>$}),cC=rx.update({id:`/iam/(instance-profiles)/create-instance-profile`,path:`/iam/create-instance-profile`,getParentRoute:()=>$}),lC=_x.update({id:`/eks/(clusters)/create-cluster`,path:`/eks/create-cluster`,getParentRoute:()=>$}),uC=vx.update({id:`/ec2/(vpc)/create-vpc`,path:`/ec2/create-vpc`,getParentRoute:()=>$}),dC=yx.update({id:`/ec2/(volumes)/create-volume`,path:`/ec2/create-volume`,getParentRoute:()=>$}),fC=bx.update({id:`/ec2/(target-groups)/create-target-group`,path:`/ec2/create-target-group`,getParentRoute:()=>$}),pC=xx.update({id:`/ec2/(subnet)/create-subnet`,path:`/ec2/create-subnet`,getParentRoute:()=>$}),mC=Sx.update({id:`/ec2/(snapshots)/create-snapshot`,path:`/ec2/create-snapshot`,getParentRoute:()=>$}),hC=Cx.update({id:`/ec2/(security-groups)/create-security-group`,path:`/ec2/create-security-group`,getParentRoute:()=>$}),gC=wx.update({id:`/ec2/(route-tables)/create-route-table`,path:`/ec2/create-route-table`,getParentRoute:()=>$}),_C=Tx.update({id:`/ec2/(placement-groups)/create-placement-group`,path:`/ec2/create-placement-group`,getParentRoute:()=>$}),vC=Ex.update({id:`/ec2/(nat-gateways)/create-nat-gateway`,path:`/ec2/create-nat-gateway`,getParentRoute:()=>$}),yC=Bx.update({id:`/ec2/(load-balancers)/create-load-balancer`,path:`/ec2/create-load-balancer`,getParentRoute:()=>$}),bC=Vx.update({id:`/ec2/(key)/import-key-pair`,path:`/ec2/import-key-pair`,getParentRoute:()=>$}),xC=Hx.update({id:`/ec2/(key)/create-key-pair`,path:`/ec2/create-key-pair`,getParentRoute:()=>$}),SC=Ux.update({id:`/ec2/(internet-gateways)/create-internet-gateway`,path:`/ec2/create-internet-gateway`,getParentRoute:()=>$}),CC=Wx.update({id:`/ec2/(instances)/run-instances`,path:`/ec2/run-instances`,getParentRoute:()=>$}),wC=Gx.update({id:`/ec2/(elastic-ips)/allocate-address`,path:`/ec2/allocate-address`,getParentRoute:()=>$}),TC=Kx.update({id:`/s3/ls/$bucket`,path:`/s3/ls/$bucket`,getParentRoute:()=>$}),EC=qx.update({id:`/`,path:`/`,getParentRoute:()=>TC}),DC=Jx.update({id:`/iam/(users)/list-users/`,path:`/iam/list-users/`,getParentRoute:()=>$}),OC=Yx.update({id:`/iam/(roles)/list-roles/`,path:`/iam/list-roles/`,getParentRoute:()=>$}),kC=Xx.update({id:`/iam/(policies)/list-policies/`,path:`/iam/list-policies/`,getParentRoute:()=>$}),AC=Zx.update({id:`/iam/(instance-profiles)/list-instance-profiles/`,path:`/iam/list-instance-profiles/`,getParentRoute:()=>$}),jC=uS.update({id:`/eks/(clusters)/list-clusters/`,path:`/eks/list-clusters/`,getParentRoute:()=>$}),MC=mS.update({id:`/ecr/(repositories)/list-repositories/`,path:`/ecr/list-repositories/`,getParentRoute:()=>$}),NC=hS.update({id:`/ec2/(vpc)/describe-vpcs/`,path:`/ec2/describe-vpcs/`,getParentRoute:()=>$}),PC=gS.update({id:`/ec2/(volumes)/describe-volumes/`,path:`/ec2/describe-volumes/`,getParentRoute:()=>$}),FC=_S.update({id:`/ec2/(target-groups)/describe-target-groups/`,path:`/ec2/describe-target-groups/`,getParentRoute:()=>$}),IC=vS.update({id:`/ec2/(subnet)/describe-subnets/`,path:`/ec2/describe-subnets/`,getParentRoute:()=>$}),LC=yS.update({id:`/ec2/(snapshots)/describe-snapshots/`,path:`/ec2/describe-snapshots/`,getParentRoute:()=>$}),RC=bS.update({id:`/ec2/(security-groups)/describe-security-groups/`,path:`/ec2/describe-security-groups/`,getParentRoute:()=>$}),zC=xS.update({id:`/ec2/(route-tables)/describe-route-tables/`,path:`/ec2/describe-route-tables/`,getParentRoute:()=>$}),BC=SS.update({id:`/ec2/(placement-groups)/describe-placement-groups/`,path:`/ec2/describe-placement-groups/`,getParentRoute:()=>$}),VC=CS.update({id:`/ec2/(nat-gateways)/describe-nat-gateways/`,path:`/ec2/describe-nat-gateways/`,getParentRoute:()=>$}),HC=wS.update({id:`/ec2/(load-balancers)/describe-load-balancers/`,path:`/ec2/describe-load-balancers/`,getParentRoute:()=>$}),UC=TS.update({id:`/ec2/(key)/describe-key-pairs/`,path:`/ec2/describe-key-pairs/`,getParentRoute:()=>$}),WC=ES.update({id:`/ec2/(internet-gateways)/describe-internet-gateways/`,path:`/ec2/describe-internet-gateways/`,getParentRoute:()=>$}),GC=DS.update({id:`/ec2/(instances)/describe-instances/`,path:`/ec2/describe-instances/`,getParentRoute:()=>$}),KC=OS.update({id:`/ec2/(images)/describe-images/`,path:`/ec2/describe-images/`,getParentRoute:()=>$}),qC=kS.update({id:`/ec2/(elastic-ips)/describe-addresses/`,path:`/ec2/describe-addresses/`,getParentRoute:()=>$}),JC=AS.update({id:`/$`,path:`/$`,getParentRoute:()=>TC}),YC=jS.update({id:`/iam/(users)/list-users/$userName`,path:`/iam/list-users/$userName`,getParentRoute:()=>$}),XC=MS.update({id:`/iam/(roles)/list-roles/$roleName`,path:`/iam/list-roles/$roleName`,getParentRoute:()=>$}),ZC=NS.update({id:`/iam/(policies)/list-policies/$policyArn`,path:`/iam/list-policies/$policyArn`,getParentRoute:()=>$}),QC=PS.update({id:`/iam/(instance-profiles)/list-instance-profiles/$instanceProfileName`,path:`/iam/list-instance-profiles/$instanceProfileName`,getParentRoute:()=>$}),$C=FS.update({id:`/eks/(clusters)/list-clusters/$clusterName`,path:`/eks/list-clusters/$clusterName`,getParentRoute:()=>$}),ew=IS.update({id:`/ecr/(repositories)/list-repositories/$id`,path:`/ecr/list-repositories/$id`,getParentRoute:()=>$}),tw=LS.update({id:`/ec2/(vpc)/describe-vpcs/$id`,path:`/ec2/describe-vpcs/$id`,getParentRoute:()=>$}),nw=RS.update({id:`/ec2/(volumes)/modify-volume/$id`,path:`/ec2/modify-volume/$id`,getParentRoute:()=>$}),rw=zS.update({id:`/ec2/(volumes)/describe-volumes/$id`,path:`/ec2/describe-volumes/$id`,getParentRoute:()=>$}),iw=BS.update({id:`/ec2/(target-groups)/describe-target-groups/$id`,path:`/ec2/describe-target-groups/$id`,getParentRoute:()=>$}),aw=VS.update({id:`/ec2/(subnet)/describe-subnets/$id`,path:`/ec2/describe-subnets/$id`,getParentRoute:()=>$}),ow=HS.update({id:`/ec2/(snapshots)/describe-snapshots/$id`,path:`/ec2/describe-snapshots/$id`,getParentRoute:()=>$}),sw=US.update({id:`/ec2/(security-groups)/describe-security-groups/$id`,path:`/ec2/describe-security-groups/$id`,getParentRoute:()=>$}),cw=WS.update({id:`/ec2/(route-tables)/describe-route-tables/$id`,path:`/ec2/describe-route-tables/$id`,getParentRoute:()=>$}),lw=GS.update({id:`/ec2/(placement-groups)/describe-placement-groups/$id`,path:`/ec2/describe-placement-groups/$id`,getParentRoute:()=>$}),uw=KS.update({id:`/ec2/(nat-gateways)/describe-nat-gateways/$id`,path:`/ec2/describe-nat-gateways/$id`,getParentRoute:()=>$}),dw=qS.update({id:`/ec2/(load-balancers)/describe-load-balancers/$id`,path:`/ec2/describe-load-balancers/$id`,getParentRoute:()=>$}),fw=JS.update({id:`/ec2/(key)/describe-key-pairs/$id`,path:`/ec2/describe-key-pairs/$id`,getParentRoute:()=>$}),pw=YS.update({id:`/ec2/(internet-gateways)/describe-internet-gateways/$id`,path:`/ec2/describe-internet-gateways/$id`,getParentRoute:()=>$}),mw=XS.update({id:`/ec2/(instances)/describe-instances/$id`,path:`/ec2/describe-instances/$id`,getParentRoute:()=>$}),hw=ZS.update({id:`/ec2/(images)/describe-images/$id`,path:`/ec2/describe-images/$id`,getParentRoute:()=>$}),gw=QS.update({id:`/ec2/(elastic-ips)/describe-addresses/$id`,path:`/ec2/describe-addresses/$id`,getParentRoute:()=>$}),_w={AuthS3LsBucketSplatRoute:JC,AuthS3LsBucketIndexRoute:EC},vw={AuthNodesRoute:tC,AuthIndexRoute:eC,AuthS3ServiceMetricsRoute:nC,AuthS3LsBucketRouteRoute:TC._addFileChildren(_w),AuthEc2elasticIpsAllocateAddressRoute:wC,AuthEc2instancesRunInstancesRoute:CC,AuthEc2internetGatewaysCreateInternetGatewayRoute:SC,AuthEc2keyCreateKeyPairRoute:xC,AuthEc2keyImportKeyPairRoute:bC,AuthEc2loadBalancersCreateLoadBalancerRoute:yC,AuthEc2natGatewaysCreateNatGatewayRoute:vC,AuthEc2placementGroupsCreatePlacementGroupRoute:_C,AuthEc2routeTablesCreateRouteTableRoute:gC,AuthEc2securityGroupsCreateSecurityGroupRoute:hC,AuthEc2snapshotsCreateSnapshotRoute:mC,AuthEc2subnetCreateSubnetRoute:pC,AuthEc2targetGroupsCreateTargetGroupRoute:fC,AuthEc2volumesCreateVolumeRoute:dC,AuthEc2vpcCreateVpcRoute:uC,AuthEksclustersCreateClusterRoute:lC,AuthIaminstanceProfilesCreateInstanceProfileRoute:cC,AuthIampoliciesCreatePolicyRoute:sC,AuthIamrolesCreateRoleRoute:oC,AuthIamusersCreateUserRoute:aC,AuthS3bucketsCreateBucketRoute:iC,AuthS3LsIndexRoute:rC,AuthEc2elasticIpsDescribeAddressesIdRoute:gw,AuthEc2imagesDescribeImagesIdRoute:hw,AuthEc2instancesDescribeInstancesIdRoute:mw,AuthEc2internetGatewaysDescribeInternetGatewaysIdRoute:pw,AuthEc2keyDescribeKeyPairsIdRoute:fw,AuthEc2loadBalancersDescribeLoadBalancersIdRoute:dw,AuthEc2natGatewaysDescribeNatGatewaysIdRoute:uw,AuthEc2placementGroupsDescribePlacementGroupsIdRoute:lw,AuthEc2routeTablesDescribeRouteTablesIdRoute:cw,AuthEc2securityGroupsDescribeSecurityGroupsIdRoute:sw,AuthEc2snapshotsDescribeSnapshotsIdRoute:ow,AuthEc2subnetDescribeSubnetsIdRoute:aw,AuthEc2targetGroupsDescribeTargetGroupsIdRoute:iw,AuthEc2volumesDescribeVolumesIdRoute:rw,AuthEc2volumesModifyVolumeIdRoute:nw,AuthEc2vpcDescribeVpcsIdRoute:tw,AuthEcrrepositoriesListRepositoriesIdRoute:ew,AuthEksclustersListClustersClusterNameRoute:$C,AuthIaminstanceProfilesListInstanceProfilesInstanceProfileNameRoute:QC,AuthIampoliciesListPoliciesPolicyArnRoute:ZC,AuthIamrolesListRolesRoleNameRoute:XC,AuthIamusersListUsersUserNameRoute:YC,AuthEc2elasticIpsDescribeAddressesIndexRoute:qC,AuthEc2imagesDescribeImagesIndexRoute:KC,AuthEc2instancesDescribeInstancesIndexRoute:GC,AuthEc2internetGatewaysDescribeInternetGatewaysIndexRoute:WC,AuthEc2keyDescribeKeyPairsIndexRoute:UC,AuthEc2loadBalancersDescribeLoadBalancersIndexRoute:HC,AuthEc2natGatewaysDescribeNatGatewaysIndexRoute:VC,AuthEc2placementGroupsDescribePlacementGroupsIndexRoute:BC,AuthEc2routeTablesDescribeRouteTablesIndexRoute:zC,AuthEc2securityGroupsDescribeSecurityGroupsIndexRoute:RC,AuthEc2snapshotsDescribeSnapshotsIndexRoute:LC,AuthEc2subnetDescribeSubnetsIndexRoute:IC,AuthEc2targetGroupsDescribeTargetGroupsIndexRoute:FC,AuthEc2volumesDescribeVolumesIndexRoute:PC,AuthEc2vpcDescribeVpcsIndexRoute:NC,AuthEcrrepositoriesListRepositoriesIndexRoute:MC,AuthEksclustersListClustersIndexRoute:jC,AuthIaminstanceProfilesListInstanceProfilesIndexRoute:AC,AuthIampoliciesListPoliciesIndexRoute:kC,AuthIamrolesListRolesIndexRoute:OC,AuthIamusersListUsersIndexRoute:DC},yw={AuthRouteRoute:$._addFileChildren(vw),LoginRoute:$S},bw=mb._addFileChildren(yw)._addFileTypes(),xw=sb(),Sw=ss({routeTree:bw,context:{queryClient:xw},defaultPreload:`intent`,scrollRestoration:!0,defaultStructuralSharing:!0,defaultPreloadStaleTime:0}),Cw=document.querySelector(`#app`);Cw&&!Cw.innerHTML&&bs.createRoot(Cw).render((0,W.jsx)(U.StrictMode,{children:(0,W.jsx)(ws,{defaultTheme:`dark`,storageKey:`spinifex-ui-theme`,children:(0,W.jsx)(Bi,{client:xw,children:(0,W.jsx)($v,{children:(0,W.jsx)(hg,{children:(0,W.jsx)(us,{router:Sw})})})})})}));export{ux as $,Y as $n,ni as $r,Wm as $t,sS as A,gd as An,ac as Ar,Pb as At,jx as B,Ku as Bn,Bo as Br,Ib as Bt,AS as C,Gf as Cn,Cc as Cr,Tb as Ct,iS as D,Vd as Dn,fc as Dr,Rb as Dt,pS as E,Bd as En,_c as Er,Ub as Et,rS as F,Qu as Fn,Us as Fr,kb as Ft,Px as G,Ou as Gn,hi as Gr,Hv as Gt,kx as H,Nu as Hn,Ni as Hr,hb as Ht,nS as I,Zu as In,Bs as Ir,Ob as It,Lx as J,xu as Jn,Gr as Jr,Wh as Jt,Nx as K,Du as Kn,mi as Kr,qh as Kt,qx as L,Xu as Ln,Is as Lr,Db as Lt,oS as M,fd as Mn,ec as Mr,Bb as Mt,tS as N,cd as Nn,Js as Nr,zb as Nt,aS as O,Id as On,dc as Or,Lb as Ot,eS as P,X as Pn,Ws as Pr,Ab as Pt,px as Q,hu as Qn,qr as Qr,$m as Qt,Ix as R,Ju as Rn,Es as Rr,Kb as Rt,jS as S,Q as Sn,Oc as Sr,jb as St,fS as T,Xd as Tn,bc as Tr,Wb as Tt,Rx as U,Au as Un,ki as Ur,ey as Ut,Ax as V,Pu as Vn,zi as Vr,Fb as Vt,zx as W,ku as Wn,vi as Wr,Yv as Wt,Sx as X,vu as Xn,si as Xr,sh as Xt,Dx as Y,wu as Yn,Ur as Yr,Ih as Yt,ox as Z,yu as Zn,Jr as Zr,ah as Zt,IS as _,Im as _n,Hc as _r,Sb as _t,JS as a,jm as an,Fl as ar,lx as at,NS as b,Op as bn,Vc as br,vb as bt,GS as c,Sm as cn,Bl as cr,ax as ct,HS as d,Dm as dn,tl as dr,qb as dt,fi as ei,Um as en,J as er,hx as et,VS as f,Om as fn,nl as fr,Hb as ft,LS as g,Fm as gn,Kc as gr,Cb as gt,RS as h,Am as hn,Jc as hr,bb as ht,YS as i,Lr as ii,Cm as in,Il as ir,cx as it,cS as j,dd as jn,rc as jr,Nb as jt,lS as k,kd as kn,sc as kr,Eb as kt,WS as l,Mm as ln,Ml as lr,ix as lt,zS as m,km as mn,Xc as mr,_b as mt,ZS as n,Br as ni,Vm as nn,zl as nr,mx as nt,qS as o,wm as on,Hl as or,fx as ot,BS as p,Nm as pn,$c as pr,Vb as pt,Mx as q,Eu as qn,Qr as qr,Kh as qt,XS as r,Rr as ri,Bm as rn,Ll as rr,sx as rt,KS as s,Tm as sn,Pl as sr,dx as st,QS as t,Kr as ti,Hm as tn,Rl as tr,gx as tt,US as u,Em as un,rl as ur,Jb as ut,FS as v,Qp as vn,zc as vr,yb as vt,dS as w,rf as wn,Sc as wr,wb as wt,MS as x,wp as xn,kc as xr,Mb as xt,PS as y,Np as yn,Bc as yr,xb as yt,Fx as z,qu as zn,ns as zr,Gb as zt}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/list-card.js b/spinifex/services/spinifexui/frontend/dist/assets/list-card.js index aab30b0df..87c7bfcb0 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/list-card.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/list-card.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{kr as n}from"./awsClient.js";var r=t(),i=e();function a(e){let t=(0,r.c)(22),a,o,s,c,l;t[0]===e?(a=t[1],o=t[2],s=t[3],c=t[4],l=t[5]):({title:l,subtitle:c,badge:a,children:o,...s}=e,t[0]=e,t[1]=a,t[2]=o,t[3]=s,t[4]=c,t[5]=l);let u;t[6]===l?u=t[7]:(u=(0,i.jsx)(`h3`,{className:`font-semibold`,children:l}),t[6]=l,t[7]=u);let d;t[8]===c?d=t[9]:(d=c&&(0,i.jsx)(`p`,{className:`mt-1 text-sm font-medium text-muted-foreground`,children:c}),t[8]=c,t[9]=d);let f;t[10]!==o||t[11]!==u||t[12]!==d?(f=(0,i.jsxs)(`div`,{className:`flex-1`,children:[u,d,o]}),t[10]=o,t[11]=u,t[12]=d,t[13]=f):f=t[13];let p;t[14]===a?p=t[15]:(p=a&&(0,i.jsx)(`div`,{className:`ml-4`,children:a}),t[14]=a,t[15]=p);let m;t[16]!==f||t[17]!==p?(m=(0,i.jsxs)(`div`,{className:`flex items-start justify-between`,children:[f,p]}),t[16]=f,t[17]=p,t[18]=m):m=t[18];let h;return t[19]!==s||t[20]!==m?(h=(0,i.jsx)(n,{className:`block rounded-lg border bg-card p-4 transition-colors hover:bg-accent`,...s,children:m}),t[19]=s,t[20]=m,t[21]=h):h=t[21],h}export{a as t}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{Ar as n}from"./awsClient.js";var r=t(),i=e();function a(e){let t=(0,r.c)(22),a,o,s,c,l;t[0]===e?(a=t[1],o=t[2],s=t[3],c=t[4],l=t[5]):({title:l,subtitle:c,badge:a,children:o,...s}=e,t[0]=e,t[1]=a,t[2]=o,t[3]=s,t[4]=c,t[5]=l);let u;t[6]===l?u=t[7]:(u=(0,i.jsx)(`h3`,{className:`font-semibold`,children:l}),t[6]=l,t[7]=u);let d;t[8]===c?d=t[9]:(d=c&&(0,i.jsx)(`p`,{className:`mt-1 text-sm font-medium text-muted-foreground`,children:c}),t[8]=c,t[9]=d);let f;t[10]!==o||t[11]!==u||t[12]!==d?(f=(0,i.jsxs)(`div`,{className:`flex-1`,children:[u,d,o]}),t[10]=o,t[11]=u,t[12]=d,t[13]=f):f=t[13];let p;t[14]===a?p=t[15]:(p=a&&(0,i.jsx)(`div`,{className:`ml-4`,children:a}),t[14]=a,t[15]=p);let m;t[16]!==f||t[17]!==p?(m=(0,i.jsxs)(`div`,{className:`flex items-start justify-between`,children:[f,p]}),t[16]=f,t[17]=p,t[18]=m):m=t[18];let h;return t[19]!==s||t[20]!==m?(h=(0,i.jsx)(n,{className:`block rounded-lg border bg-card p-4 transition-colors hover:bg-accent`,...s,children:m}),t[19]=s,t[20]=m,t[21]=h):h=t[21],h}export{a as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/list-clusters.js b/spinifex/services/spinifexui/frontend/dist/assets/list-clusters.js index f55252ba3..dfadbe24c 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/list-clusters.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/list-clusters.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{kr as r}from"./awsClient.js";import{t as i}from"./button.js";import{P as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=t(),l=e();function u(){let e=(0,c.c)(3),{data:t}=n(a),s;if(e[0]!==t.clusters){let n=(t.clusters??[]).toSorted(f),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,l.jsx)(o,{actions:(0,l.jsx)(r,{to:`/eks/create-cluster`,children:(0,l.jsx)(i,{children:`Create Cluster`})}),title:`Clusters`}),e[2]=a):a=e[2],s=(0,l.jsxs)(l.Fragment,{children:[a,n.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:n.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No EKS clusters found.`})]}),e[0]=t.clusters,e[1]=s}else s=e[1];return s}function d(e){return(0,l.jsx)(s,{params:{clusterName:e},title:e,to:`/eks/list-clusters/$clusterName`},e)}function f(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}var p=u;export{p as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ar as r}from"./awsClient.js";import{t as i}from"./button.js";import{P as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=t(),l=e();function u(){let e=(0,c.c)(3),{data:t}=n(a),s;if(e[0]!==t.clusters){let n=(t.clusters??[]).toSorted(f),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,l.jsx)(o,{actions:(0,l.jsx)(r,{to:`/eks/create-cluster`,children:(0,l.jsx)(i,{children:`Create Cluster`})}),title:`Clusters`}),e[2]=a):a=e[2],s=(0,l.jsxs)(l.Fragment,{children:[a,n.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:n.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No EKS clusters found.`})]}),e[0]=t.clusters,e[1]=s}else s=e[1];return s}function d(e){return(0,l.jsx)(s,{params:{clusterName:e},title:e,to:`/eks/list-clusters/$clusterName`},e)}function f(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}var p=u;export{p as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/list-instance-profiles.js b/spinifex/services/spinifexui/frontend/dist/assets/list-instance-profiles.js index f01c1618e..01ffd3c45 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/list-instance-profiles.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/list-instance-profiles.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{kr as r}from"./awsClient.js";import{t as i}from"./button.js";import{nt as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=t(),l=e();function u(){let e=(0,c.c)(3),{data:t}=n(a),s;if(e[0]!==t.InstanceProfiles){let n=(t.InstanceProfiles??[]).toSorted(f),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,l.jsx)(o,{actions:(0,l.jsx)(r,{to:`/iam/create-instance-profile`,children:(0,l.jsx)(i,{children:`Create Instance Profile`})}),title:`Instance Profiles`}),e[2]=a):a=e[2],s=(0,l.jsxs)(l.Fragment,{children:[a,n.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:n.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No instance profiles found.`})]}),e[0]=t.InstanceProfiles,e[1]=s}else s=e[1];return s}function d(e){return e.InstanceProfileName?(0,l.jsx)(s,{params:{instanceProfileName:e.InstanceProfileName},subtitle:e.Arn??``,title:e.InstanceProfileName,to:`/iam/list-instance-profiles/$instanceProfileName`},e.InstanceProfileName):null}function f(e,t){let n=e.InstanceProfileName?.toLowerCase()??``,r=t.InstanceProfileName?.toLowerCase()??``;return n.localeCompare(r)}export{u as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ar as r}from"./awsClient.js";import{t as i}from"./button.js";import{nt as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=t(),l=e();function u(){let e=(0,c.c)(3),{data:t}=n(a),s;if(e[0]!==t.InstanceProfiles){let n=(t.InstanceProfiles??[]).toSorted(f),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,l.jsx)(o,{actions:(0,l.jsx)(r,{to:`/iam/create-instance-profile`,children:(0,l.jsx)(i,{children:`Create Instance Profile`})}),title:`Instance Profiles`}),e[2]=a):a=e[2],s=(0,l.jsxs)(l.Fragment,{children:[a,n.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:n.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No instance profiles found.`})]}),e[0]=t.InstanceProfiles,e[1]=s}else s=e[1];return s}function d(e){return e.InstanceProfileName?(0,l.jsx)(s,{params:{instanceProfileName:e.InstanceProfileName},subtitle:e.Arn??``,title:e.InstanceProfileName,to:`/iam/list-instance-profiles/$instanceProfileName`},e.InstanceProfileName):null}function f(e,t){let n=e.InstanceProfileName?.toLowerCase()??``,r=t.InstanceProfileName?.toLowerCase()??``;return n.localeCompare(r)}export{u as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/list-policies.js b/spinifex/services/spinifexui/frontend/dist/assets/list-policies.js index 6153268d0..6275c1e36 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/list-policies.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/list-policies.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{kr as r}from"./awsClient.js";import{t as i}from"./button.js";import{rt as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=t(),l=e();function u(){let e=(0,c.c)(3),{data:t}=n(a),s;if(e[0]!==t.Policies){let n=(t.Policies??[]).toSorted(f),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,l.jsx)(o,{actions:(0,l.jsx)(r,{to:`/iam/create-policy`,children:(0,l.jsx)(i,{children:`Create Policy`})}),title:`Policies`}),e[2]=a):a=e[2],s=(0,l.jsxs)(l.Fragment,{children:[a,n.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:n.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No IAM policies found.`})]}),e[0]=t.Policies,e[1]=s}else s=e[1];return s}function d(e){return e.Arn?(0,l.jsx)(s,{params:{policyArn:encodeURIComponent(e.Arn)},subtitle:e.Arn??``,title:e.PolicyName??``,to:`/iam/list-policies/$policyArn`},e.Arn):null}function f(e,t){let n=e.PolicyName?.toLowerCase()??``,r=t.PolicyName?.toLowerCase()??``;return n.localeCompare(r)}export{u as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ar as r}from"./awsClient.js";import{t as i}from"./button.js";import{rt as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=t(),l=e();function u(){let e=(0,c.c)(3),{data:t}=n(a),s;if(e[0]!==t.Policies){let n=(t.Policies??[]).toSorted(f),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,l.jsx)(o,{actions:(0,l.jsx)(r,{to:`/iam/create-policy`,children:(0,l.jsx)(i,{children:`Create Policy`})}),title:`Policies`}),e[2]=a):a=e[2],s=(0,l.jsxs)(l.Fragment,{children:[a,n.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:n.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No IAM policies found.`})]}),e[0]=t.Policies,e[1]=s}else s=e[1];return s}function d(e){return e.Arn?(0,l.jsx)(s,{params:{policyArn:encodeURIComponent(e.Arn)},subtitle:e.Arn??``,title:e.PolicyName??``,to:`/iam/list-policies/$policyArn`},e.Arn):null}function f(e,t){let n=e.PolicyName?.toLowerCase()??``,r=t.PolicyName?.toLowerCase()??``;return n.localeCompare(r)}export{u as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/list-repositories.js b/spinifex/services/spinifexui/frontend/dist/assets/list-repositories.js index c707adf9f..82ea93a57 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/list-repositories.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/list-repositories.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useSuspenseQuery.js";import{kr as a}from"./awsClient.js";import{Bt as o}from"./auth.js";import{t as s}from"./button.js";import{n as c,r as l}from"./ecr.js";import{Br as u,Hn as d,w as f}from"./index.js";import{t as p}from"./page-heading.js";import{a as m,t as h}from"./field.js";import{a as g,i as _,l as v,n as y,o as b,r as x,s as S,t as C}from"./alert-dialog.js";var w=r(),T=t(n(),1),E=e();function D(e){let t=(0,w.c)(32),{open:n,onOpenChange:r}=e,i=c(),[a,o]=(0,T.useState)(``),s;t[0]!==i||t[1]!==r?(s=function(e){e||(o(``),i.reset()),r(e)},t[0]=i,t[1]=r,t[2]=s):s=t[2];let l=s,u;t[3]!==i||t[4]!==l||t[5]!==a?(u=async function(){try{await i.mutateAsync(a.trim()),l(!1)}catch{}},t[3]=i,t[4]=l,t[5]=a,t[6]=u):u=t[6];let f=u,p;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,E.jsxs)(S,{children:[(0,E.jsx)(v,{children:`Create Repository`}),(0,E.jsxs)(g,{children:[`Repository names may include namespaces, e.g. `,`team/app`,`.`]})]}),t[7]=p):p=t[7];let D;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,E.jsx)(m,{children:(0,E.jsx)(`label`,{htmlFor:`repositoryName`,children:`Name`})}),t[8]=D):D=t[8];let O;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(O=e=>o(e.target.value),t[9]=O):O=t[9];let k;t[10]===a?k=t[11]:(k=(0,E.jsxs)(h,{children:[D,(0,E.jsx)(d,{id:`repositoryName`,onChange:O,placeholder:`team/app`,value:a})]}),t[10]=a,t[11]=k);let A;t[12]===i.error?A=t[13]:(A=i.error&&(0,E.jsx)(`p`,{className:`text-sm text-destructive`,children:i.error.message}),t[12]=i.error,t[13]=A);let j;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,E.jsx)(x,{children:`Cancel`}),t[14]=j):j=t[14];let M;t[15]!==i.isPending||t[16]!==a?(M=i.isPending||!a.trim(),t[15]=i.isPending,t[16]=a,t[17]=M):M=t[17];let N;t[18]===f?N=t[19]:(N=e=>{e.preventDefault(),f()},t[18]=f,t[19]=N);let P=i.isPending?`Creating…`:`Create Repository`,F;t[20]!==N||t[21]!==P||t[22]!==M?(F=(0,E.jsxs)(b,{children:[j,(0,E.jsx)(y,{disabled:M,onClick:N,children:P})]}),t[20]=N,t[21]=P,t[22]=M,t[23]=F):F=t[23];let I;t[24]!==F||t[25]!==k||t[26]!==A?(I=(0,E.jsxs)(_,{children:[p,k,A,F]}),t[24]=F,t[25]=k,t[26]=A,t[27]=I):I=t[27];let L;return t[28]!==l||t[29]!==n||t[30]!==I?(L=(0,E.jsx)(C,{onOpenChange:l,open:n,children:I}),t[28]=l,t[29]=n,t[30]=I,t[31]=L):L=t[31],L}function O(){let e=(0,w.c)(35),t=u(),{data:n}=i(f),r=l(),[c,d]=(0,T.useState)(!1),[m,h]=(0,T.useState)(null),O;e[0]===n.repositories?O=e[1]:(O=n.repositories??[],e[0]=n.repositories,e[1]=O);let A=O,j;e[2]!==r||e[3]!==m?(j=async function(){if(m)try{await r.mutateAsync(m),h(null)}catch{}},e[2]=r,e[3]=m,e[4]=j):j=e[4];let M=j,N;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,E.jsx)(p,{actions:(0,E.jsx)(s,{onClick:()=>d(!0),children:`Create Repository`}),title:`Repositories`}),e[5]=N):N=e[5];let P;e[6]!==t||e[7]!==A?(P=A.length>0?(0,E.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,E.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,E.jsx)(`thead`,{children:(0,E.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,E.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Name`}),(0,E.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`URI`}),(0,E.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Tag Mutability`}),(0,E.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Created`}),(0,E.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,E.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,E.jsx)(`tbody`,{children:A.map(e=>{if(!e.repositoryName)return null;let n=e.repositoryName;return(0,E.jsxs)(`tr`,{className:`cursor-pointer border-b transition-colors last:border-0 hover:bg-accent`,onClick:async()=>await t({to:`/ecr/list-repositories/$id`,params:{id:encodeURIComponent(n)}}),children:[(0,E.jsx)(`td`,{className:`px-4 py-2 font-medium`,children:(0,E.jsx)(a,{className:`text-primary hover:underline`,onClick:k,params:{id:encodeURIComponent(n)},to:`/ecr/list-repositories/$id`,children:n})}),(0,E.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.repositoryUri??``}),(0,E.jsx)(`td`,{className:`px-4 py-2`,children:e.imageTagMutability??``}),(0,E.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:o(e.createdAt)}),(0,E.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,E.jsx)(s,{onClick:e=>{e.stopPropagation(),h(n)},size:`sm`,variant:`destructive`,children:`Delete`})})]},n)})})]})}):(0,E.jsx)(`p`,{className:`text-muted-foreground`,children:`No repositories found.`}),e[6]=t,e[7]=A,e[8]=P):P=e[8];let F;e[9]===c?F=e[10]:(F=(0,E.jsx)(D,{onOpenChange:d,open:c}),e[9]=c,e[10]=F);let I;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(I=e=>!e&&h(null),e[11]=I):I=e[11];let L=m!==null,R;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,E.jsx)(v,{children:`Delete repository?`}),e[12]=R):R=e[12];let z;e[13]===m?z=e[14]:(z=(0,E.jsxs)(S,{children:[R,(0,E.jsxs)(g,{children:[`This permanently deletes `,m,` and every image it holds. This cannot be undone.`]})]}),e[13]=m,e[14]=z);let B;e[15]===r.error?B=e[16]:(B=r.error&&(0,E.jsx)(`p`,{className:`text-sm text-destructive`,children:r.error.message}),e[15]=r.error,e[16]=B);let V;e[17]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,E.jsx)(x,{children:`Cancel`}),e[17]=V):V=e[17];let H;e[18]===M?H=e[19]:(H=e=>{e.preventDefault(),M()},e[18]=M,e[19]=H);let U=r.isPending?`Deleting…`:`Delete`,W;e[20]!==r.isPending||e[21]!==H||e[22]!==U?(W=(0,E.jsxs)(b,{children:[V,(0,E.jsx)(y,{disabled:r.isPending,onClick:H,children:U})]}),e[20]=r.isPending,e[21]=H,e[22]=U,e[23]=W):W=e[23];let G;e[24]!==W||e[25]!==z||e[26]!==B?(G=(0,E.jsxs)(_,{children:[z,B,W]}),e[24]=W,e[25]=z,e[26]=B,e[27]=G):G=e[27];let K;e[28]!==G||e[29]!==L?(K=(0,E.jsx)(C,{onOpenChange:I,open:L,children:G}),e[28]=G,e[29]=L,e[30]=K):K=e[30];let q;return e[31]!==K||e[32]!==P||e[33]!==F?(q=(0,E.jsxs)(E.Fragment,{children:[N,P,F,K]}),e[31]=K,e[32]=P,e[33]=F,e[34]=q):q=e[34],q}function k(e){return e.stopPropagation()}var A=O;export{A as component}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{t as i}from"./useSuspenseQuery.js";import{Ar as a}from"./awsClient.js";import{Bt as o}from"./auth.js";import{t as s}from"./button.js";import{n as c,r as l}from"./ecr.js";import{Br as u,Hn as d,w as f}from"./index.js";import{t as p}from"./page-heading.js";import{a as m,t as h}from"./field.js";import{a as g,i as _,l as v,n as y,o as b,r as x,s as S,t as C}from"./alert-dialog.js";var w=r(),T=t(n(),1),E=e();function D(e){let t=(0,w.c)(32),{open:n,onOpenChange:r}=e,i=c(),[a,o]=(0,T.useState)(``),s;t[0]!==i||t[1]!==r?(s=function(e){e||(o(``),i.reset()),r(e)},t[0]=i,t[1]=r,t[2]=s):s=t[2];let l=s,u;t[3]!==i||t[4]!==l||t[5]!==a?(u=async function(){try{await i.mutateAsync(a.trim()),l(!1)}catch{}},t[3]=i,t[4]=l,t[5]=a,t[6]=u):u=t[6];let f=u,p;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,E.jsxs)(S,{children:[(0,E.jsx)(v,{children:`Create Repository`}),(0,E.jsxs)(g,{children:[`Repository names may include namespaces, e.g. `,`team/app`,`.`]})]}),t[7]=p):p=t[7];let D;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,E.jsx)(m,{children:(0,E.jsx)(`label`,{htmlFor:`repositoryName`,children:`Name`})}),t[8]=D):D=t[8];let O;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(O=e=>o(e.target.value),t[9]=O):O=t[9];let k;t[10]===a?k=t[11]:(k=(0,E.jsxs)(h,{children:[D,(0,E.jsx)(d,{id:`repositoryName`,onChange:O,placeholder:`team/app`,value:a})]}),t[10]=a,t[11]=k);let A;t[12]===i.error?A=t[13]:(A=i.error&&(0,E.jsx)(`p`,{className:`text-sm text-destructive`,children:i.error.message}),t[12]=i.error,t[13]=A);let j;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,E.jsx)(x,{children:`Cancel`}),t[14]=j):j=t[14];let M;t[15]!==i.isPending||t[16]!==a?(M=i.isPending||!a.trim(),t[15]=i.isPending,t[16]=a,t[17]=M):M=t[17];let N;t[18]===f?N=t[19]:(N=e=>{e.preventDefault(),f()},t[18]=f,t[19]=N);let P=i.isPending?`Creating…`:`Create Repository`,F;t[20]!==N||t[21]!==P||t[22]!==M?(F=(0,E.jsxs)(b,{children:[j,(0,E.jsx)(y,{disabled:M,onClick:N,children:P})]}),t[20]=N,t[21]=P,t[22]=M,t[23]=F):F=t[23];let I;t[24]!==F||t[25]!==k||t[26]!==A?(I=(0,E.jsxs)(_,{children:[p,k,A,F]}),t[24]=F,t[25]=k,t[26]=A,t[27]=I):I=t[27];let L;return t[28]!==l||t[29]!==n||t[30]!==I?(L=(0,E.jsx)(C,{onOpenChange:l,open:n,children:I}),t[28]=l,t[29]=n,t[30]=I,t[31]=L):L=t[31],L}function O(){let e=(0,w.c)(35),t=u(),{data:n}=i(f),r=l(),[c,d]=(0,T.useState)(!1),[m,h]=(0,T.useState)(null),O;e[0]===n.repositories?O=e[1]:(O=n.repositories??[],e[0]=n.repositories,e[1]=O);let A=O,j;e[2]!==r||e[3]!==m?(j=async function(){if(m)try{await r.mutateAsync(m),h(null)}catch{}},e[2]=r,e[3]=m,e[4]=j):j=e[4];let M=j,N;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,E.jsx)(p,{actions:(0,E.jsx)(s,{onClick:()=>d(!0),children:`Create Repository`}),title:`Repositories`}),e[5]=N):N=e[5];let P;e[6]!==t||e[7]!==A?(P=A.length>0?(0,E.jsx)(`div`,{className:`overflow-x-auto rounded-lg border bg-card`,children:(0,E.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,E.jsx)(`thead`,{children:(0,E.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,E.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Name`}),(0,E.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`URI`}),(0,E.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Tag Mutability`}),(0,E.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:`Created`}),(0,E.jsx)(`th`,{className:`px-4 py-2 font-medium`,children:(0,E.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,E.jsx)(`tbody`,{children:A.map(e=>{if(!e.repositoryName)return null;let n=e.repositoryName;return(0,E.jsxs)(`tr`,{className:`cursor-pointer border-b transition-colors last:border-0 hover:bg-accent`,onClick:async()=>await t({to:`/ecr/list-repositories/$id`,params:{id:encodeURIComponent(n)}}),children:[(0,E.jsx)(`td`,{className:`px-4 py-2 font-medium`,children:(0,E.jsx)(a,{className:`text-primary hover:underline`,onClick:k,params:{id:encodeURIComponent(n)},to:`/ecr/list-repositories/$id`,children:n})}),(0,E.jsx)(`td`,{className:`px-4 py-2 font-mono text-xs`,children:e.repositoryUri??``}),(0,E.jsx)(`td`,{className:`px-4 py-2`,children:e.imageTagMutability??``}),(0,E.jsx)(`td`,{className:`px-4 py-2 text-xs`,children:o(e.createdAt)}),(0,E.jsx)(`td`,{className:`px-4 py-2 text-right`,children:(0,E.jsx)(s,{onClick:e=>{e.stopPropagation(),h(n)},size:`sm`,variant:`destructive`,children:`Delete`})})]},n)})})]})}):(0,E.jsx)(`p`,{className:`text-muted-foreground`,children:`No repositories found.`}),e[6]=t,e[7]=A,e[8]=P):P=e[8];let F;e[9]===c?F=e[10]:(F=(0,E.jsx)(D,{onOpenChange:d,open:c}),e[9]=c,e[10]=F);let I;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(I=e=>!e&&h(null),e[11]=I):I=e[11];let L=m!==null,R;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,E.jsx)(v,{children:`Delete repository?`}),e[12]=R):R=e[12];let z;e[13]===m?z=e[14]:(z=(0,E.jsxs)(S,{children:[R,(0,E.jsxs)(g,{children:[`This permanently deletes `,m,` and every image it holds. This cannot be undone.`]})]}),e[13]=m,e[14]=z);let B;e[15]===r.error?B=e[16]:(B=r.error&&(0,E.jsx)(`p`,{className:`text-sm text-destructive`,children:r.error.message}),e[15]=r.error,e[16]=B);let V;e[17]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,E.jsx)(x,{children:`Cancel`}),e[17]=V):V=e[17];let H;e[18]===M?H=e[19]:(H=e=>{e.preventDefault(),M()},e[18]=M,e[19]=H);let U=r.isPending?`Deleting…`:`Delete`,W;e[20]!==r.isPending||e[21]!==H||e[22]!==U?(W=(0,E.jsxs)(b,{children:[V,(0,E.jsx)(y,{disabled:r.isPending,onClick:H,children:U})]}),e[20]=r.isPending,e[21]=H,e[22]=U,e[23]=W):W=e[23];let G;e[24]!==W||e[25]!==z||e[26]!==B?(G=(0,E.jsxs)(_,{children:[z,B,W]}),e[24]=W,e[25]=z,e[26]=B,e[27]=G):G=e[27];let K;e[28]!==G||e[29]!==L?(K=(0,E.jsx)(C,{onOpenChange:I,open:L,children:G}),e[28]=G,e[29]=L,e[30]=K):K=e[30];let q;return e[31]!==K||e[32]!==P||e[33]!==F?(q=(0,E.jsxs)(E.Fragment,{children:[N,P,F,K]}),e[31]=K,e[32]=P,e[33]=F,e[34]=q):q=e[34],q}function k(e){return e.stopPropagation()}var A=O;export{A as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/list-roles.js b/spinifex/services/spinifexui/frontend/dist/assets/list-roles.js index f4e1e0e6d..bd5649eb8 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/list-roles.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/list-roles.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{kr as r}from"./awsClient.js";import{t as i}from"./button.js";import{st as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=t(),l=e();function u(){let e=(0,c.c)(3),{data:t}=n(a),s;if(e[0]!==t.Roles){let n=(t.Roles??[]).toSorted(f),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,l.jsx)(o,{actions:(0,l.jsx)(r,{to:`/iam/create-role`,children:(0,l.jsx)(i,{children:`Create Role`})}),title:`Roles`}),e[2]=a):a=e[2],s=(0,l.jsxs)(l.Fragment,{children:[a,n.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:n.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No IAM roles found.`})]}),e[0]=t.Roles,e[1]=s}else s=e[1];return s}function d(e){return e.RoleName?(0,l.jsx)(s,{params:{roleName:e.RoleName},subtitle:e.Arn??``,title:e.RoleName,to:`/iam/list-roles/$roleName`},e.RoleName):null}function f(e,t){let n=e.RoleName?.toLowerCase()??``,r=t.RoleName?.toLowerCase()??``;return n.localeCompare(r)}export{u as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ar as r}from"./awsClient.js";import{t as i}from"./button.js";import{st as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=t(),l=e();function u(){let e=(0,c.c)(3),{data:t}=n(a),s;if(e[0]!==t.Roles){let n=(t.Roles??[]).toSorted(f),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,l.jsx)(o,{actions:(0,l.jsx)(r,{to:`/iam/create-role`,children:(0,l.jsx)(i,{children:`Create Role`})}),title:`Roles`}),e[2]=a):a=e[2],s=(0,l.jsxs)(l.Fragment,{children:[a,n.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:n.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No IAM roles found.`})]}),e[0]=t.Roles,e[1]=s}else s=e[1];return s}function d(e){return e.RoleName?(0,l.jsx)(s,{params:{roleName:e.RoleName},subtitle:e.Arn??``,title:e.RoleName,to:`/iam/list-roles/$roleName`},e.RoleName):null}function f(e,t){let n=e.RoleName?.toLowerCase()??``,r=t.RoleName?.toLowerCase()??``;return n.localeCompare(r)}export{u as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/list-users.js b/spinifex/services/spinifexui/frontend/dist/assets/list-users.js index 86b40ffb0..162f821e7 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/list-users.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/list-users.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{kr as r}from"./awsClient.js";import{t as i}from"./button.js";import{lt as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=t(),l=e();function u(){let e=(0,c.c)(3),{data:t}=n(a),s;if(e[0]!==t.Users){let n=(t.Users??[]).toSorted(f),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,l.jsx)(o,{actions:(0,l.jsx)(r,{to:`/iam/create-user`,children:(0,l.jsx)(i,{children:`Create User`})}),title:`Users`}),e[2]=a):a=e[2],s=(0,l.jsxs)(l.Fragment,{children:[a,n.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:n.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No IAM users found.`})]}),e[0]=t.Users,e[1]=s}else s=e[1];return s}function d(e){return e.UserName?(0,l.jsx)(s,{params:{userName:e.UserName},subtitle:e.UserId??``,title:e.UserName,to:`/iam/list-users/$userName`},e.UserName):null}function f(e,t){let n=e.UserName?.toLowerCase()??``,r=t.UserName?.toLowerCase()??``;return n.localeCompare(r)}export{u as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ar as r}from"./awsClient.js";import{t as i}from"./button.js";import{lt as a}from"./index.js";import{t as o}from"./page-heading.js";import{t as s}from"./list-card.js";var c=t(),l=e();function u(){let e=(0,c.c)(3),{data:t}=n(a),s;if(e[0]!==t.Users){let n=(t.Users??[]).toSorted(f),a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,l.jsx)(o,{actions:(0,l.jsx)(r,{to:`/iam/create-user`,children:(0,l.jsx)(i,{children:`Create User`})}),title:`Users`}),e[2]=a):a=e[2],s=(0,l.jsxs)(l.Fragment,{children:[a,n.length>0?(0,l.jsx)(`div`,{className:`space-y-4`,children:n.map(d)}):(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`No IAM users found.`})]}),e[0]=t.Users,e[1]=s}else s=e[1];return s}function d(e){return e.UserName?(0,l.jsx)(s,{params:{userName:e.UserName},subtitle:e.UserId??``,title:e.UserName,to:`/iam/list-users/$userName`},e.UserName):null}function f(e,t){let n=e.UserName?.toLowerCase()??``,r=t.UserName?.toLowerCase()??``;return n.localeCompare(r)}export{u as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/ls.js b/spinifex/services/spinifexui/frontend/dist/assets/ls.js index dff284877..92d012489 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/ls.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/ls.js @@ -1 +1 @@ -import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{kr as r}from"./awsClient.js";import{Bt as i}from"./auth.js";import{t as a}from"./button.js";import{dt as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";var l=t(),u=e();function d(){let e=(0,l.c)(5),{data:t}=n(o),i;e[0]===t.Buckets?i=e[1]:(i=t.Buckets??[],e[0]=t.Buckets,e[1]=i);let c=i,d;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(s,{actions:(0,u.jsx)(r,{to:`/s3/create-bucket`,children:(0,u.jsx)(a,{children:`Create Bucket`})}),title:`Buckets`}),e[2]=d):d=e[2];let p;return e[3]===c?p=e[4]:(p=(0,u.jsxs)(u.Fragment,{children:[d,c.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:c.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No buckets found.`})]}),e[3]=c,e[4]=p),p}function f(e){return e.Name?(0,u.jsx)(c,{params:{bucket:e.Name},subtitle:e.CreationDate?`Created: ${i(e.CreationDate)}`:void 0,title:e.Name,to:`/s3/ls/$bucket`},e.Name):null}export{d as component}; \ No newline at end of file +import{n as e,t}from"./compiler-runtime.js";import{t as n}from"./useSuspenseQuery.js";import{Ar as r}from"./awsClient.js";import{Bt as i}from"./auth.js";import{t as a}from"./button.js";import{dt as o}from"./index.js";import{t as s}from"./page-heading.js";import{t as c}from"./list-card.js";var l=t(),u=e();function d(){let e=(0,l.c)(5),{data:t}=n(o),i;e[0]===t.Buckets?i=e[1]:(i=t.Buckets??[],e[0]=t.Buckets,e[1]=i);let c=i,d;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,u.jsx)(s,{actions:(0,u.jsx)(r,{to:`/s3/create-bucket`,children:(0,u.jsx)(a,{children:`Create Bucket`})}),title:`Buckets`}),e[2]=d):d=e[2];let p;return e[3]===c?p=e[4]:(p=(0,u.jsxs)(u.Fragment,{children:[d,c.length>0?(0,u.jsx)(`div`,{className:`space-y-4`,children:c.map(f)}):(0,u.jsx)(`p`,{className:`text-muted-foreground`,children:`No buckets found.`})]}),e[3]=c,e[4]=p),p}function f(e){return e.Name?(0,u.jsx)(c,{params:{bucket:e.Name},subtitle:e.CreationDate?`Created: ${i(e.CreationDate)}`:void 0,title:e.Name,to:`/s3/ls/$bucket`},e.Name):null}export{d as component}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/dist/assets/upload-button.js b/spinifex/services/spinifexui/frontend/dist/assets/upload-button.js index 54d8ce05e..d98a030a3 100644 --- a/spinifex/services/spinifexui/frontend/dist/assets/upload-button.js +++ b/spinifex/services/spinifexui/frontend/dist/assets/upload-button.js @@ -1 +1 @@ -import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{b as i,c as a,kr as o,m as s}from"./awsClient.js";import{Bt as c,Nt as l,St as u,Vt as d,ut as f}from"./auth.js";import{t as p}from"./download.js";import{t as m}from"./trash-2.js";import{t as h}from"./button.js";import{M as g}from"./tslib.es6.js";import{a as _,i as v,n as y}from"./s3.js";import{Lr as b}from"./index.js";import{t as x}from"./error-banner.js";import{t as S}from"./delete-confirmation-dialog.js";var C=b(`file`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]),w=b(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),T=b(`upload`,[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]),E=e=>(e,t)=>async n=>{let r=await e(n),{response:i}=r;if(l.isInstance(i)&&i.headers.expires){i.headers.expiresstring=i.headers.expires;try{g(i.headers.expires)}catch(e){t.logger?.warn(`AWS SDK Warning for ${t.clientName}::${t.commandName} response parsing (${i.headers.expires}): ${e}`),delete i.headers.expires}}return r},D={tags:[`S3`],name:`s3ExpiresMiddleware`,override:!0,relation:`after`,toMiddleware:`deserializerMiddleware`},O=e=>({applyToStack:t=>{t.addRelativeTo(E(e),D)}}),k=class extends u.classBuilder().ep({...i,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[f(n,e.getEndpointParameterInstructions()),_(n,{requestChecksumRequired:!1,requestValidationModeMember:`ChecksumMode`,responseAlgorithms:[`CRC64NVME`,`CRC32`,`CRC32C`,`SHA256`,`SHA1`,`SHA512`,`MD5`,`XXHASH64`,`XXHASH3`,`XXHASH128`]}),v(n),O(n)]}).s(`AmazonS3`,`GetObject`,{}).n(`S3Client`,`GetObjectCommand`).sc(s).build(){},A=r(),j=e();function M(e){let t=(0,A.c)(9),{folderName:n,fullPrefix:r,bucketName:i}=e,a;t[0]!==i||t[1]!==r?(a={bucket:i,_splat:r},t[0]=i,t[1]=r,t[2]=a):a=t[2];let s;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,j.jsx)(w,{className:`size-5 text-muted-foreground`}),t[3]=s):s=t[3];let c;t[4]===n?c=t[5]:(c=(0,j.jsx)(`span`,{className:`font-medium`,children:n}),t[4]=n,t[5]=c);let l;return t[6]!==a||t[7]!==c?(l=(0,j.jsxs)(o,{className:`flex items-center gap-3 rounded-lg border bg-card p-4 transition-colors hover:bg-accent`,params:a,to:`/s3/ls/$bucket/$`,children:[s,c]}),t[6]=a,t[7]=c,t[8]=l):l=t[8],l}var N=t(n(),1);function P({object:e,bucketName:t,displayName:n,fullKey:r}){let[i,o]=(0,N.useState)(!1),[s,l]=(0,N.useState)(null),u=y();async function f(){l(null);try{let e=new k({Bucket:t,Key:r}),i=await a().send(e);if(i.Body){let e=await i.Body.transformToByteArray(),t=URL.createObjectURL(new Blob([e])),r=document.createElement(`a`);r.href=t,r.download=n,document.body.append(r),r.click(),r.remove(),URL.revokeObjectURL(t)}}catch(e){l(Error(`Failed to download object`,{cause:e}))}}async function h(){try{await u.mutateAsync({bucket:t,key:r})}finally{o(!1)}}return(0,j.jsxs)(`div`,{children:[u.error&&(0,j.jsx)(x,{error:u.error,msg:`Failed to delete object`}),s&&(0,j.jsx)(x,{error:s,msg:`Failed to download object`}),(0,j.jsxs)(`div`,{className:`flex items-center justify-between rounded-lg border bg-card p-4`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsx)(C,{className:`size-5 text-muted-foreground`}),(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`h3`,{className:`font-medium`,children:n}),e.LastModified&&(0,j.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`Last Modified: `,c(e.LastModified)]})]})]}),(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsx)(`div`,{className:`text-sm text-muted-foreground`,children:d(e.Size??0)}),(0,j.jsx)(`button`,{"aria-label":`Download ${n}`,className:`rounded-md p-2 transition-colors hover:bg-accent`,onClick:f,type:`button`,children:(0,j.jsx)(p,{className:`size-4`})}),(0,j.jsx)(`button`,{"aria-label":`Delete ${n}`,className:`rounded-md p-2 text-destructive transition-colors hover:bg-accent`,onClick:()=>o(!0),type:`button`,children:(0,j.jsx)(m,{className:`size-4`})})]}),(0,j.jsx)(S,{description:(0,j.jsxs)(j.Fragment,{children:[`Are you sure you want to delete `,(0,j.jsx)(`strong`,{children:n}),`? This action cannot be undone.`]}),isPending:u.isPending,onConfirm:h,onOpenChange:o,open:i,title:`Delete Object`})]})]},e.Key)}function F({bucket:e,prefix:t=``,isPending:n,onUpload:r}){let i=(0,N.useRef)(null);async function a(n){let a=n.target.files;if(!(!a||a.length===0))try{await Promise.all([...a].map(async n=>await r({bucket:e,key:`${t}${n.name}`,file:n})))}finally{i.current&&(i.current.value=``)}}return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`input`,{accept:`*/*`,"aria-label":`Choose files to upload`,className:`hidden`,multiple:!0,onChange:a,ref:i,type:`file`}),(0,j.jsxs)(h,{disabled:n,onClick:()=>i.current?.click(),size:`sm`,children:[(0,j.jsx)(T,{className:`mr-2 size-4`}),n?`Uploading…`:`Upload Files`]})]})}export{P as n,M as r,F as t}; \ No newline at end of file +import{n as e,o as t,r as n,t as r}from"./compiler-runtime.js";import{Ar as i,b as a,c as o,m as s}from"./awsClient.js";import{Bt as c,Nt as l,St as u,Vt as d,ut as f}from"./auth.js";import{t as p}from"./download.js";import{t as m}from"./trash-2.js";import{t as h}from"./button.js";import{M as g}from"./tslib.es6.js";import{a as _,i as v,n as y}from"./s3.js";import{Lr as b}from"./index.js";import{t as x}from"./error-banner.js";import{t as S}from"./delete-confirmation-dialog.js";var C=b(`file`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]),w=b(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),T=b(`upload`,[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]),E=e=>(e,t)=>async n=>{let r=await e(n),{response:i}=r;if(l.isInstance(i)&&i.headers.expires){i.headers.expiresstring=i.headers.expires;try{g(i.headers.expires)}catch(e){t.logger?.warn(`AWS SDK Warning for ${t.clientName}::${t.commandName} response parsing (${i.headers.expires}): ${e}`),delete i.headers.expires}}return r},D={tags:[`S3`],name:`s3ExpiresMiddleware`,override:!0,relation:`after`,toMiddleware:`deserializerMiddleware`},O=e=>({applyToStack:t=>{t.addRelativeTo(E(e),D)}}),k=class extends u.classBuilder().ep({...a,Bucket:{type:`contextParams`,name:`Bucket`},Key:{type:`contextParams`,name:`Key`}}).m(function(e,t,n,r){return[f(n,e.getEndpointParameterInstructions()),_(n,{requestChecksumRequired:!1,requestValidationModeMember:`ChecksumMode`,responseAlgorithms:[`CRC64NVME`,`CRC32`,`CRC32C`,`SHA256`,`SHA1`,`SHA512`,`MD5`,`XXHASH64`,`XXHASH3`,`XXHASH128`]}),v(n),O(n)]}).s(`AmazonS3`,`GetObject`,{}).n(`S3Client`,`GetObjectCommand`).sc(s).build(){},A=r(),j=e();function M(e){let t=(0,A.c)(9),{folderName:n,fullPrefix:r,bucketName:a}=e,o;t[0]!==a||t[1]!==r?(o={bucket:a,_splat:r},t[0]=a,t[1]=r,t[2]=o):o=t[2];let s;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,j.jsx)(w,{className:`size-5 text-muted-foreground`}),t[3]=s):s=t[3];let c;t[4]===n?c=t[5]:(c=(0,j.jsx)(`span`,{className:`font-medium`,children:n}),t[4]=n,t[5]=c);let l;return t[6]!==o||t[7]!==c?(l=(0,j.jsxs)(i,{className:`flex items-center gap-3 rounded-lg border bg-card p-4 transition-colors hover:bg-accent`,params:o,to:`/s3/ls/$bucket/$`,children:[s,c]}),t[6]=o,t[7]=c,t[8]=l):l=t[8],l}var N=t(n(),1);function P({object:e,bucketName:t,displayName:n,fullKey:r}){let[i,a]=(0,N.useState)(!1),[s,l]=(0,N.useState)(null),u=y();async function f(){l(null);try{let e=new k({Bucket:t,Key:r}),i=await o().send(e);if(i.Body){let e=await i.Body.transformToByteArray(),t=URL.createObjectURL(new Blob([e])),r=document.createElement(`a`);r.href=t,r.download=n,document.body.append(r),r.click(),r.remove(),URL.revokeObjectURL(t)}}catch(e){l(Error(`Failed to download object`,{cause:e}))}}async function h(){try{await u.mutateAsync({bucket:t,key:r})}finally{a(!1)}}return(0,j.jsxs)(`div`,{children:[u.error&&(0,j.jsx)(x,{error:u.error,msg:`Failed to delete object`}),s&&(0,j.jsx)(x,{error:s,msg:`Failed to download object`}),(0,j.jsxs)(`div`,{className:`flex items-center justify-between rounded-lg border bg-card p-4`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsx)(C,{className:`size-5 text-muted-foreground`}),(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`h3`,{className:`font-medium`,children:n}),e.LastModified&&(0,j.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`Last Modified: `,c(e.LastModified)]})]})]}),(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsx)(`div`,{className:`text-sm text-muted-foreground`,children:d(e.Size??0)}),(0,j.jsx)(`button`,{"aria-label":`Download ${n}`,className:`rounded-md p-2 transition-colors hover:bg-accent`,onClick:f,type:`button`,children:(0,j.jsx)(p,{className:`size-4`})}),(0,j.jsx)(`button`,{"aria-label":`Delete ${n}`,className:`rounded-md p-2 text-destructive transition-colors hover:bg-accent`,onClick:()=>a(!0),type:`button`,children:(0,j.jsx)(m,{className:`size-4`})})]}),(0,j.jsx)(S,{description:(0,j.jsxs)(j.Fragment,{children:[`Are you sure you want to delete `,(0,j.jsx)(`strong`,{children:n}),`? This action cannot be undone.`]}),isPending:u.isPending,onConfirm:h,onOpenChange:a,open:i,title:`Delete Object`})]})]},e.Key)}function F({bucket:e,prefix:t=``,isPending:n,onUpload:r}){let i=(0,N.useRef)(null);async function a(n){let a=n.target.files;if(!(!a||a.length===0))try{await Promise.all([...a].map(async n=>await r({bucket:e,key:`${t}${n.name}`,file:n})))}finally{i.current&&(i.current.value=``)}}return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`input`,{accept:`*/*`,"aria-label":`Choose files to upload`,className:`hidden`,multiple:!0,onChange:a,ref:i,type:`file`}),(0,j.jsxs)(h,{disabled:n,onClick:()=>i.current?.click(),size:`sm`,children:[(0,j.jsx)(T,{className:`mr-2 size-4`}),n?`Uploading…`:`Upload Files`]})]})}export{P as n,M as r,F as t}; \ No newline at end of file diff --git a/spinifex/services/spinifexui/frontend/src/mutations/ecr.ts b/spinifex/services/spinifexui/frontend/src/mutations/ecr.ts index e7f0eb392..1a13f7581 100644 --- a/spinifex/services/spinifexui/frontend/src/mutations/ecr.ts +++ b/spinifex/services/spinifexui/frontend/src/mutations/ecr.ts @@ -1,9 +1,11 @@ import { type ImageIdentifier, + type ImageTagMutability, BatchDeleteImageCommand, CreateRepositoryCommand, DeleteRepositoryCommand, DeleteRepositoryPolicyCommand, + PutImageTagMutabilityCommand, SetRepositoryPolicyCommand, } from "@aws-sdk/client-ecr" import { useMutation, useQueryClient } from "@tanstack/react-query" @@ -87,6 +89,29 @@ export function useSetRepositoryPolicy() { }) } +export interface PutImageTagMutabilityParams { + repositoryName: string + imageTagMutability: ImageTagMutability +} + +// usePutImageTagMutability flips a repo between MUTABLE and IMMUTABLE; the value +// lives on the repository record, so the repositories list is invalidated. +export function usePutImageTagMutability() { + const queryClient = useQueryClient() + return useMutation({ + mutationFn: async (params: PutImageTagMutabilityParams) => { + const command = new PutImageTagMutabilityCommand({ + repositoryName: params.repositoryName, + imageTagMutability: params.imageTagMutability, + }) + return await getEcrClient().send(command) + }, + onSuccess: () => { + void queryClient.invalidateQueries({ queryKey: ["ecr", "repositories"] }) + }, + }) +} + export function useDeleteRepositoryPolicy() { const queryClient = useQueryClient() return useMutation({ diff --git a/spinifex/services/spinifexui/frontend/src/routes/_auth/ecr/(repositories)/-components/repository-detail-page.test.tsx b/spinifex/services/spinifexui/frontend/src/routes/_auth/ecr/(repositories)/-components/repository-detail-page.test.tsx index c018b5ee7..d55e8cf45 100644 --- a/spinifex/services/spinifexui/frontend/src/routes/_auth/ecr/(repositories)/-components/repository-detail-page.test.tsx +++ b/spinifex/services/spinifexui/frontend/src/routes/_auth/ecr/(repositories)/-components/repository-detail-page.test.tsx @@ -28,13 +28,23 @@ const URI = "111.dkr.ecr.ap-southeast-2.local/team/app" function seed(imageDetails: unknown[]) { const qc = createTestQueryClient() qc.setQueryData(["ecr", "repositories"], { - repositories: [{ repositoryName: REPO, repositoryUri: URI }], + repositories: [ + { + repositoryName: REPO, + repositoryUri: URI, + imageTagMutability: "MUTABLE", + }, + ], }) qc.setQueryData(["ecr", "repositories", REPO, "images"], { imageDetails }) qc.setQueryData(["ecr", "repositories", REPO, "policy"], null) return qc } +function openImagesTab() { + fireEvent.click(screen.getByRole("tab", { name: "Images" })) +} + const IMAGE = { imageDigest: "sha256:abcdef0123456789abcdef", imageTags: ["v1", "latest"], @@ -43,12 +53,13 @@ const IMAGE = { } describe("RepositoryDetailPage", () => { - it("renders the push commands and an image row", () => { + it("renders the push commands on the Summary tab and image rows on Images", () => { renderWithClient( , seed([IMAGE]), ) expect(screen.getByText(/docker push/)).toBeInTheDocument() + openImagesTab() expect(screen.getByText("v1, latest")).toBeInTheDocument() }) @@ -57,11 +68,13 @@ describe("RepositoryDetailPage", () => { , seed([{ imageDigest: "sha256:deadbeef00112233445566", imageTags: [] }]), ) + openImagesTab() expect(screen.getByText("")).toBeInTheDocument() }) it("shows the empty state when no images are pushed", () => { renderWithClient(, seed([])) + openImagesTab() expect(screen.getByText("No images pushed yet.")).toBeInTheDocument() }) @@ -70,6 +83,7 @@ describe("RepositoryDetailPage", () => { , seed([IMAGE]), ) + openImagesTab() fireEvent.click(screen.getAllByRole("button", { name: "Delete" })[0]) expect( screen.getByText(/permanently deletes the image manifest/), diff --git a/spinifex/services/spinifexui/frontend/src/routes/_auth/ecr/(repositories)/-components/repository-detail-page.tsx b/spinifex/services/spinifexui/frontend/src/routes/_auth/ecr/(repositories)/-components/repository-detail-page.tsx index 9e2de64b5..eec0d8644 100644 --- a/spinifex/services/spinifexui/frontend/src/routes/_auth/ecr/(repositories)/-components/repository-detail-page.tsx +++ b/spinifex/services/spinifexui/frontend/src/routes/_auth/ecr/(repositories)/-components/repository-detail-page.tsx @@ -15,6 +15,7 @@ import { AlertDialogTitle, } from "@/components/ui/alert-dialog" import { Button } from "@/components/ui/button" +import { Tabs, TabsList, TabsPanel, TabsTab } from "@/components/ui/tabs" import { formatDateTime, formatSize } from "@/lib/utils" import { useBatchDeleteImage } from "@/mutations/ecr" import { @@ -22,8 +23,8 @@ import { ecrRepositoryImagesQueryOptions, } from "@/queries/ecr" -import { PushCommands } from "./push-commands" import { RepositoryPolicyEditor } from "./repository-policy-editor" +import { RepositorySummary } from "./repository-summary" interface RepositoryDetailPageProps { repositoryName: string @@ -75,14 +76,22 @@ export function RepositoryDetailPage({ -
- + + + Summary + Images + Permissions + -
-

Images

+ + + + + {images.length > 0 ? (
@@ -137,10 +146,12 @@ export function RepositoryDetailPage({ ) : (

No images pushed yet.

)} - + - - + + + + !open && setDeleteTarget(null)} diff --git a/spinifex/services/spinifexui/frontend/src/routes/_auth/ecr/(repositories)/-components/repository-summary.test.tsx b/spinifex/services/spinifexui/frontend/src/routes/_auth/ecr/(repositories)/-components/repository-summary.test.tsx new file mode 100644 index 000000000..40bd62d72 --- /dev/null +++ b/spinifex/services/spinifexui/frontend/src/routes/_auth/ecr/(repositories)/-components/repository-summary.test.tsx @@ -0,0 +1,67 @@ +import { fireEvent, screen, waitFor } from "@testing-library/react" +import { describe, expect, it, vi } from "vitest" + +import { + createTestQueryClient, + renderWithClient, +} from "@/test/elbv2-integration" + +const { send } = vi.hoisted(() => ({ send: vi.fn() })) + +vi.mock("@/lib/awsClient", () => ({ + getEcrClient: () => ({ send }), +})) + +import { RepositorySummary } from "./repository-summary" + +const REPO = "team/app" +const URI = "111.dkr.ecr.ap-southeast-2.local/team/app" + +function render(imageTagMutability: string | undefined) { + renderWithClient( + , + createTestQueryClient(), + ) +} + +describe("RepositorySummary", () => { + it("renders the push commands", () => { + render("MUTABLE") + expect(screen.getByText(/docker push/)).toBeInTheDocument() + }) + + it("shows Mutable and offers to make immutable when unset", () => { + render(undefined) + expect(screen.getByText("Mutable")).toBeInTheDocument() + expect( + screen.getByRole("button", { name: "Make immutable" }), + ).toBeInTheDocument() + }) + + it("flips a mutable repo to IMMUTABLE", async () => { + send.mockResolvedValue({}) + render("MUTABLE") + fireEvent.click(screen.getByRole("button", { name: "Make immutable" })) + await waitFor(() => expect(send).toHaveBeenCalled()) + expect(send.mock.calls[0][0].input).toStrictEqual({ + repositoryName: REPO, + imageTagMutability: "IMMUTABLE", + }) + }) + + it("flips an immutable repo back to MUTABLE", async () => { + send.mockResolvedValue({}) + render("IMMUTABLE") + expect(screen.getByText("Immutable")).toBeInTheDocument() + fireEvent.click(screen.getByRole("button", { name: "Make mutable" })) + await waitFor(() => expect(send).toHaveBeenCalled()) + expect(send.mock.calls[0][0].input).toStrictEqual({ + repositoryName: REPO, + imageTagMutability: "MUTABLE", + }) + }) +}) diff --git a/spinifex/services/spinifexui/frontend/src/routes/_auth/ecr/(repositories)/-components/repository-summary.tsx b/spinifex/services/spinifexui/frontend/src/routes/_auth/ecr/(repositories)/-components/repository-summary.tsx new file mode 100644 index 000000000..d901493da --- /dev/null +++ b/spinifex/services/spinifexui/frontend/src/routes/_auth/ecr/(repositories)/-components/repository-summary.tsx @@ -0,0 +1,74 @@ +import { Badge } from "@/components/ui/badge" +import { Button } from "@/components/ui/button" +import { usePutImageTagMutability } from "@/mutations/ecr" + +import { PushCommands } from "./push-commands" + +interface RepositorySummaryProps { + repositoryName: string + repositoryUri: string | undefined + imageTagMutability: string | undefined +} + +// RepositorySummary renders the push-command snippet plus the tag-immutability +// control. An unset mutability defaults to MUTABLE, matching the backend. +export function RepositorySummary({ + repositoryName, + repositoryUri, + imageTagMutability, +}: RepositorySummaryProps) { + const putMutability = usePutImageTagMutability() + const isImmutable = imageTagMutability === "IMMUTABLE" + const next = isImmutable ? "MUTABLE" : "IMMUTABLE" + const toggleLabel = isImmutable ? "Make mutable" : "Make immutable" + + async function handleToggle() { + try { + await putMutability.mutateAsync({ + repositoryName, + imageTagMutability: next, + }) + } catch { + // error shown via putMutability.error + } + } + + return ( +
+ + +
+
+
+

Tag immutability

+

+ {isImmutable + ? "Tags cannot be overwritten to point at a different image." + : "Tags can be overwritten by a new push."} +

+
+ + {isImmutable ? "Immutable" : "Mutable"} + +
+ {putMutability.error && ( +

+ {putMutability.error.message} +

+ )} + +
+
+ ) +}